Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSafetySpecSafetySetting

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

Safety settings.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSafetySpecSafetySetting

Returns a new instance of GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSafetySpecSafetySetting.



4822
4823
4824
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4822

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

Instance Attribute Details

#categoryString

Required. Harm category. Corresponds to the JSON property category

Returns:

  • (String)


4815
4816
4817
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4815

def category
  @category
end

#thresholdString

Required. The harm block threshold. Corresponds to the JSON property threshold

Returns:

  • (String)


4820
4821
4822
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4820

def threshold
  @threshold
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4827
4828
4829
4830
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4827

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