Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AnswerStepAction

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

Returns a new instance of GoogleCloudDiscoveryengineV1AnswerStepAction.



1490
1491
1492
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1490

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

Instance Attribute Details

#observationGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AnswerStepActionObservation

Observation. Corresponds to the JSON property observation



1483
1484
1485
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1483

def observation
  @observation
end

#search_actionGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AnswerStepActionSearchAction

Search action. Corresponds to the JSON property searchAction



1488
1489
1490
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1488

def search_action
  @search_action
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1495
1496
1497
1498
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1495

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