Reference documentation and code samples for the Gemini Enterprise for Customer Experience V1BETA API class Google::Cloud::Ces::V1beta::Guardrail::ModelSafety::SafetySetting.
Safety setting.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#category
def category() -> ::Google::Cloud::Ces::V1beta::Guardrail::ModelSafety::HarmCategory
Returns
- (::Google::Cloud::Ces::V1beta::Guardrail::ModelSafety::HarmCategory) — Required. The harm category.
#category=
def category=(value) -> ::Google::Cloud::Ces::V1beta::Guardrail::ModelSafety::HarmCategory
Parameter
- value (::Google::Cloud::Ces::V1beta::Guardrail::ModelSafety::HarmCategory) — Required. The harm category.
Returns
- (::Google::Cloud::Ces::V1beta::Guardrail::ModelSafety::HarmCategory) — Required. The harm category.
#threshold
def threshold() -> ::Google::Cloud::Ces::V1beta::Guardrail::ModelSafety::HarmBlockThreshold
Returns
- (::Google::Cloud::Ces::V1beta::Guardrail::ModelSafety::HarmBlockThreshold) — Required. The harm block threshold.
#threshold=
def threshold=(value) -> ::Google::Cloud::Ces::V1beta::Guardrail::ModelSafety::HarmBlockThreshold
Parameter
- value (::Google::Cloud::Ces::V1beta::Guardrail::ModelSafety::HarmBlockThreshold) — Required. The harm block threshold.
Returns
- (::Google::Cloud::Ces::V1beta::Guardrail::ModelSafety::HarmBlockThreshold) — Required. The harm block threshold.