Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerStepAction

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

Overview

Action.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAnswerStepAction

Returns a new instance of GoogleCloudDiscoveryengineV1alphaAnswerStepAction.



5518
5519
5520
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5518

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

Instance Attribute Details

#observationGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservation

Observation. Corresponds to the JSON property observation



5511
5512
5513
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5511

def observation
  @observation
end

#search_actionGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerStepActionSearchAction

Search action. Corresponds to the JSON property searchAction



5516
5517
5518
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5516

def search_action
  @search_action
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5523
5524
5525
5526
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5523

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