Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpecModelSpec

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

Query Rephraser Model specification.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1AnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpecModelSpec

Returns a new instance of GoogleCloudDiscoveryengineV1AnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpecModelSpec.



1310
1311
1312
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1310

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)


1308
1309
1310
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1308

def model_type
  @model_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1315
1316
1317
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1315

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