Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationTelephonyConnectionInfo

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 information about phone calls connected via phone gateway to the conversation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2ConversationTelephonyConnectionInfo

Returns a new instance of GoogleCloudDialogflowV2ConversationTelephonyConnectionInfo.



9299
9300
9301
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9299

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

Instance Attribute Details

#dialed_numberString

Output only. The number dialed to connect this call in E.164 format. Corresponds to the JSON property dialedNumber

Returns:

  • (String)


9281
9282
9283
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9281

def dialed_number
  @dialed_number
end

#extra_mime_contentsArray<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoMimeContent>

Output only. The mime content from the initial SIP INVITE. Corresponds to the JSON property extraMimeContents



9286
9287
9288
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9286

def extra_mime_contents
  @extra_mime_contents
end

#sdpString

Optional. SDP of the call. It's initially the SDP answer to the endpoint, but maybe later updated for the purpose of making the link active, etc. Corresponds to the JSON property sdp

Returns:

  • (String)


9292
9293
9294
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9292

def sdp
  @sdp
end

#sip_headersArray<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoSipHeader>

Output only. The SIP headers from the initial SIP INVITE. Corresponds to the JSON property sipHeaders



9297
9298
9299
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9297

def sip_headers
  @sip_headers
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9304
9305
9306
9307
9308
9309
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9304

def update!(**args)
  @dialed_number = args[:dialed_number] if args.key?(:dialed_number)
  @extra_mime_contents = args[:extra_mime_contents] if args.key?(:extra_mime_contents)
  @sdp = args[:sdp] if args.key?(:sdp)
  @sip_headers = args[:sip_headers] if args.key?(:sip_headers)
end