Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaAnswerStepAction

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

Overview

Action.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAnswerStepAction

Returns a new instance of GoogleCloudDiscoveryengineV1alphaAnswerStepAction.



8423
8424
8425
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8423

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

Instance Attribute Details

#observationGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservation

Observation. Corresponds to the JSON property observation



8416
8417
8418
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8416

def observation
  @observation
end

#search_actionGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaAnswerStepActionSearchAction

Search action. Corresponds to the JSON property searchAction



8421
8422
8423
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8421

def search_action
  @search_action
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8428
8429
8430
8431
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8428

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