Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::SafetyInput.
Input for safety metric.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#instance
def instance() -> ::Google::Cloud::AIPlatform::V1::SafetyInstance
Returns
- (::Google::Cloud::AIPlatform::V1::SafetyInstance) — Required. Safety instance.
#instance=
def instance=(value) -> ::Google::Cloud::AIPlatform::V1::SafetyInstance
Parameter
- value (::Google::Cloud::AIPlatform::V1::SafetyInstance) — Required. Safety instance.
Returns
- (::Google::Cloud::AIPlatform::V1::SafetyInstance) — Required. Safety instance.
#metric_spec
def metric_spec() -> ::Google::Cloud::AIPlatform::V1::SafetySpec
Returns
- (::Google::Cloud::AIPlatform::V1::SafetySpec) — Required. Spec for safety metric.
#metric_spec=
def metric_spec=(value) -> ::Google::Cloud::AIPlatform::V1::SafetySpec
Parameter
- value (::Google::Cloud::AIPlatform::V1::SafetySpec) — Required. Spec for safety metric.
Returns
- (::Google::Cloud::AIPlatform::V1::SafetySpec) — Required. Spec for safety metric.