Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AnswerQueryRequestSafetySpec

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

Safety specification.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1AnswerQueryRequestSafetySpec

Returns a new instance of GoogleCloudDiscoveryengineV1AnswerQueryRequestSafetySpec.



795
796
797
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 795

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

Instance Attribute Details

#enableBoolean Also known as: enable?

Enable the safety filtering on the answer response. It is false by default. Corresponds to the JSON property enable

Returns:

  • (Boolean)


792
793
794
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 792

def enable
  @enable
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



800
801
802
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 800

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