Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::SafetySetting.
Safety settings.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#category
def category() -> ::Google::Cloud::AIPlatform::V1::HarmCategory
Returns
- (::Google::Cloud::AIPlatform::V1::HarmCategory) — Required. Harm category.
#category=
def category=(value) -> ::Google::Cloud::AIPlatform::V1::HarmCategory
Parameter
- value (::Google::Cloud::AIPlatform::V1::HarmCategory) — Required. Harm category.
Returns
- (::Google::Cloud::AIPlatform::V1::HarmCategory) — Required. Harm category.
#method
def method() -> ::Google::Cloud::AIPlatform::V1::SafetySetting::HarmBlockMethod
Returns
- (::Google::Cloud::AIPlatform::V1::SafetySetting::HarmBlockMethod) — Optional. Specify if the threshold is used for probability or severity score. If not specified, the threshold is used for probability score.
#method=
def method=(value) -> ::Google::Cloud::AIPlatform::V1::SafetySetting::HarmBlockMethod
Parameter
- value (::Google::Cloud::AIPlatform::V1::SafetySetting::HarmBlockMethod) — Optional. Specify if the threshold is used for probability or severity score. If not specified, the threshold is used for probability score.
Returns
- (::Google::Cloud::AIPlatform::V1::SafetySetting::HarmBlockMethod) — Optional. Specify if the threshold is used for probability or severity score. If not specified, the threshold is used for probability score.
#threshold
def threshold() -> ::Google::Cloud::AIPlatform::V1::SafetySetting::HarmBlockThreshold
Returns
- (::Google::Cloud::AIPlatform::V1::SafetySetting::HarmBlockThreshold) — Required. The harm block threshold.
#threshold=
def threshold=(value) -> ::Google::Cloud::AIPlatform::V1::SafetySetting::HarmBlockThreshold
Parameter
- value (::Google::Cloud::AIPlatform::V1::SafetySetting::HarmBlockThreshold) — Required. The harm block threshold.
Returns
- (::Google::Cloud::AIPlatform::V1::SafetySetting::HarmBlockThreshold) — Required. The harm block threshold.