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 Type
    Method
    Description
    Harm category.
    int
    Harm category.
    Optional.
    int
    Optional.
    The harm block threshold.
    int
    The harm block threshold.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods 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

       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

       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.