Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryParameters

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2QueryParameters

Returns a new instance of GoogleCloudDialogflowV2QueryParameters.



14477
14478
14479
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14477

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

Instance Attribute Details

#contextsArray<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context>

Corresponds to the JSON property contexts



14434
14435
14436
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14434

def contexts
  @contexts
end

#geo_locationGoogle::Apis::DialogflowV2::GoogleTypeLatLng

Corresponds to the JSON property geoLocation



14439
14440
14441
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14439

def geo_location
  @geo_location
end

#payloadHash<String,Object>

Corresponds to the JSON property payload

Returns:

  • (Hash<String,Object>)


14444
14445
14446
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14444

def payload
  @payload
end

#platformString

Corresponds to the JSON property platform

Returns:

  • (String)


14449
14450
14451
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14449

def platform
  @platform
end

#reset_contextsBoolean Also known as: reset_contexts?

Corresponds to the JSON property resetContexts

Returns:

  • (Boolean)


14454
14455
14456
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14454

def reset_contexts
  @reset_contexts
end

#sentiment_analysis_request_configGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2SentimentAnalysisRequestConfig

Corresponds to the JSON property sentimentAnalysisRequestConfig



14460
14461
14462
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14460

def sentiment_analysis_request_config
  @sentiment_analysis_request_config
end

#session_entity_typesArray<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType>

Corresponds to the JSON property sessionEntityTypes



14465
14466
14467
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14465

def session_entity_types
  @session_entity_types
end

#time_zoneString

Corresponds to the JSON property timeZone

Returns:

  • (String)


14470
14471
14472
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14470

def time_zone
  @time_zone
end

#webhook_headersHash<String,String>

Corresponds to the JSON property webhookHeaders

Returns:

  • (Hash<String,String>)


14475
14476
14477
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14475

def webhook_headers
  @webhook_headers
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14482

def update!(**args)
  @contexts = args[:contexts] if args.key?(:contexts)
  @geo_location = args[:geo_location] if args.key?(:geo_location)
  @payload = args[:payload] if args.key?(:payload)
  @platform = args[:platform] if args.key?(:platform)
  @reset_contexts = args[:reset_contexts] if args.key?(:reset_contexts)
  @sentiment_analysis_request_config = args[:sentiment_analysis_request_config] if args.key?(:sentiment_analysis_request_config)
  @session_entity_types = args[:session_entity_types] if args.key?(:session_entity_types)
  @time_zone = args[:time_zone] if args.key?(:time_zone)
  @webhook_headers = args[:webhook_headers] if args.key?(:webhook_headers)
end