Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaUpdateGenerativeQuestionConfigRequest

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

Overview

Request for UpdateGenerativeQuestionConfig method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2betaUpdateGenerativeQuestionConfigRequest

Returns a new instance of GoogleCloudRetailV2betaUpdateGenerativeQuestionConfigRequest.



8931
8932
8933
# File 'lib/google/apis/retail_v2beta/classes.rb', line 8931

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

Instance Attribute Details

#generative_question_configGoogle::Apis::RetailV2beta::GoogleCloudRetailV2betaGenerativeQuestionConfig

Configuration for a single generated question. Corresponds to the JSON property generativeQuestionConfig



8922
8923
8924
# File 'lib/google/apis/retail_v2beta/classes.rb', line 8922

def generative_question_config
  @generative_question_config
end

#update_maskString

Optional. Indicates which fields in the provided GenerativeQuestionConfig to update. The following are NOT supported: * GenerativeQuestionConfig.frequency If not set or empty, all supported fields are updated. Corresponds to the JSON property updateMask

Returns:

  • (String)


8929
8930
8931
# File 'lib/google/apis/retail_v2beta/classes.rb', line 8929

def update_mask
  @update_mask
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8936
8937
8938
8939
# File 'lib/google/apis/retail_v2beta/classes.rb', line 8936

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