Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoSipHeader

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.rb

Overview

The SIP headers from the initial SIP INVITE.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoSipHeader

Returns a new instance of GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoSipHeader.



10214
10215
10216
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10214

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#nameString

Optional. The name of the header. Corresponds to the JSON property name

Returns:

  • (String)


10207
10208
10209
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10207

def name
  @name
end

#valueString

Optional. The value of the header. Corresponds to the JSON property value

Returns:

  • (String)


10212
10213
10214
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10212

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10219
10220
10221
10222
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10219

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @value = args[:value] if args.key?(:value)
end