Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest

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) ⇒ GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest

Returns a new instance of GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest



3607
3608
3609
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 3607

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>)


3593
3594
3595
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 3593

def payload
  @payload
end

#sourceString

The source of this request, e.g., google, facebook, slack. It is set by Dialogflow-owned servers. Corresponds to the JSON property source

Returns:

  • (String)


3599
3600
3601
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 3599

def source
  @source
end

#versionString

Optional. The version of the protocol used for this request. This field is AoG-specific. Corresponds to the JSON property version

Returns:

  • (String)


3605
3606
3607
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 3605

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3612
3613
3614
3615
3616
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 3612

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