Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSafetySpec

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

Overview

Safety specification.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSafetySpec

Returns a new instance of GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSafetySpec.



6154
6155
6156
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 6154

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)


6151
6152
6153
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 6151

def enable
  @enable
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6159
6160
6161
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 6159

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