Package com.google.cloud.aiplatform.v1
Interface SafetySettingOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SafetySetting,SafetySetting.Builder
@Generated
public interface SafetySettingOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionRequired.intRequired.Optional.intOptional.Required.intRequired.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getCategoryValue
int getCategoryValue()Required. Harm category.
.google.cloud.aiplatform.v1.HarmCategory category = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The enum numeric value on the wire for category.
-
getCategory
HarmCategory getCategory()Required. Harm category.
.google.cloud.aiplatform.v1.HarmCategory category = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The category.
-
getThresholdValue
int getThresholdValue()Required. The harm block threshold.
.google.cloud.aiplatform.v1.SafetySetting.HarmBlockThreshold threshold = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The enum numeric value on the wire for threshold.
-
getThreshold
SafetySetting.HarmBlockThreshold getThreshold()Required. The harm block threshold.
.google.cloud.aiplatform.v1.SafetySetting.HarmBlockThreshold threshold = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The threshold.
-
getMethodValue
int getMethodValue()Optional. Specify if the threshold is used for probability or severity score. If not specified, the threshold is used for probability score.
.google.cloud.aiplatform.v1.SafetySetting.HarmBlockMethod method = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The enum numeric value on the wire for method.
-
getMethod
SafetySetting.HarmBlockMethod getMethod()Optional. Specify if the threshold is used for probability or severity score. If not specified, the threshold is used for probability score.
.google.cloud.aiplatform.v1.SafetySetting.HarmBlockMethod method = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The method.
-