Interface AdvancedVoiceOptions.SafetySettingOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
AdvancedVoiceOptions.SafetySetting, AdvancedVoiceOptions.SafetySetting.Builder
Enclosing class:
AdvancedVoiceOptions

public static interface AdvancedVoiceOptions.SafetySettingOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    The harm category to apply the safety setting to.
    int
    The harm category to apply the safety setting to.
    The harm block threshold for the safety setting.
    int
    The harm block threshold for the safety setting.

    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()
       The harm category to apply the safety setting to.
       
      .google.cloud.texttospeech.v1.AdvancedVoiceOptions.HarmCategory category = 1;
      Returns:
      The enum numeric value on the wire for category.
    • getCategory

       The harm category to apply the safety setting to.
       
      .google.cloud.texttospeech.v1.AdvancedVoiceOptions.HarmCategory category = 1;
      Returns:
      The category.
    • getThresholdValue

      int getThresholdValue()
       The harm block threshold for the safety setting.
       
      .google.cloud.texttospeech.v1.AdvancedVoiceOptions.HarmBlockThreshold threshold = 2;
      Returns:
      The enum numeric value on the wire for threshold.
    • getThreshold

       The harm block threshold for the safety setting.
       
      .google.cloud.texttospeech.v1.AdvancedVoiceOptions.HarmBlockThreshold threshold = 2;
      Returns:
      The threshold.