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 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

       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

       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.