Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpec

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

Overview

Query understanding specification.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpec

Returns a new instance of GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpec.



10495
10496
10497
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 10495

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

Instance Attribute Details

#query_classification_specGoogle::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpecQueryClassificationSpec

Query classification specification. Corresponds to the JSON property queryClassificationSpec



10488
10489
10490
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 10488

def query_classification_spec
  @query_classification_spec
end

#query_rephraser_specGoogle::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpec

Query rephraser specification. Corresponds to the JSON property queryRephraserSpec



10493
10494
10495
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 10493

def query_rephraser_spec
  @query_rephraser_spec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10500
10501
10502
10503
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 10500

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