Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpecModelSpec

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

Query Rephraser Model specification.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpecModelSpec

Returns a new instance of GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpecModelSpec.



4748
4749
4750
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4748

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

Instance Attribute Details

#model_typeString

Optional. Enabled query rephraser model type. If not set, it will use LARGE by default. Corresponds to the JSON property modelType

Returns:

  • (String)


4746
4747
4748
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4746

def model_type
  @model_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4753
4754
4755
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4753

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