Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SafetySpec::SafetySetting.
Safety settings.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#category
def category() -> ::Google::Cloud::DiscoveryEngine::V1::HarmCategory
Returns
- (::Google::Cloud::DiscoveryEngine::V1::HarmCategory) — Required. Harm category.
#category=
def category=(value) -> ::Google::Cloud::DiscoveryEngine::V1::HarmCategory
Parameter
- value (::Google::Cloud::DiscoveryEngine::V1::HarmCategory) — Required. Harm category.
Returns
- (::Google::Cloud::DiscoveryEngine::V1::HarmCategory) — Required. Harm category.
#threshold
def threshold() -> ::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SafetySpec::SafetySetting::HarmBlockThreshold
Returns
- (::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SafetySpec::SafetySetting::HarmBlockThreshold) — Required. The harm block threshold.
#threshold=
def threshold=(value) -> ::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SafetySpec::SafetySetting::HarmBlockThreshold
Parameter
- value (::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SafetySpec::SafetySetting::HarmBlockThreshold) — Required. The harm block threshold.
Returns
- (::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::SafetySpec::SafetySetting::HarmBlockThreshold) — Required. The harm block threshold.