Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2OriginalDetectIntentRequest

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

Overview

Represents the contents of the original request that was passed to the [Streaming]DetectIntent call.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2OriginalDetectIntentRequest

Returns a new instance of GoogleCloudDialogflowV2OriginalDetectIntentRequest



1869
1870
1871
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 1869

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

Instance Attribute Details

#payloadHash<String,Object>

Optional. This field is set to the value of QueryParameters.payload field passed in the request. Corresponds to the JSON property payload

Returns:

  • (Hash<String,Object>)


1860
1861
1862
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 1860

def payload
  @payload
end

#sourceString

The source of this request, e.g., google, facebook, slack. It is set by Dialogflow-owned servers. Possible values of this field correspond to Intent.Message.Platform. Corresponds to the JSON property source

Returns:

  • (String)


1867
1868
1869
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 1867

def source
  @source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1874
1875
1876
1877
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 1874

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