Package com.google.cloud.retail.v2alpha
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 TypeMethodDescriptionHarm category.intHarm category.Optional.intOptional.The harm block threshold.intThe harm block threshold.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()Harm category.
.google.cloud.retail.v2alpha.HarmCategory category = 1;- Returns:
- The enum numeric value on the wire for category.
-
getCategory
HarmCategory getCategory()Harm category.
.google.cloud.retail.v2alpha.HarmCategory category = 1;- Returns:
- The category.
-
getThresholdValue
int getThresholdValue()The harm block threshold.
.google.cloud.retail.v2alpha.SafetySetting.HarmBlockThreshold threshold = 2;- Returns:
- The enum numeric value on the wire for threshold.
-
getThreshold
SafetySetting.HarmBlockThreshold getThreshold()The harm block threshold.
.google.cloud.retail.v2alpha.SafetySetting.HarmBlockThreshold threshold = 2;- 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.retail.v2alpha.SafetySetting.HarmBlockMethod method = 3 [(.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.retail.v2alpha.SafetySetting.HarmBlockMethod method = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The method.
-