Enum AdvancedVoiceOptions.HarmCategory

java.lang.Object
java.lang.Enum<AdvancedVoiceOptions.HarmCategory>
com.google.cloud.texttospeech.v1.AdvancedVoiceOptions.HarmCategory
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<AdvancedVoiceOptions.HarmCategory>
Enclosing class:
AdvancedVoiceOptions

public static enum AdvancedVoiceOptions.HarmCategory extends Enum<AdvancedVoiceOptions.HarmCategory> implements com.google.protobuf.ProtocolMessageEnum
 Harm categories that will block the content.
 
Protobuf enum google.cloud.texttospeech.v1.AdvancedVoiceOptions.HarmCategory
  • Enum Constant Details

    • HARM_CATEGORY_UNSPECIFIED

      public static final AdvancedVoiceOptions.HarmCategory HARM_CATEGORY_UNSPECIFIED
       Default value. This value is unused.
       
      HARM_CATEGORY_UNSPECIFIED = 0;
    • HARM_CATEGORY_HATE_SPEECH

      public static final AdvancedVoiceOptions.HarmCategory HARM_CATEGORY_HATE_SPEECH
       Content that promotes violence or incites hatred against individuals or
       groups based on certain attributes.
       
      HARM_CATEGORY_HATE_SPEECH = 1;
    • HARM_CATEGORY_DANGEROUS_CONTENT

      public static final AdvancedVoiceOptions.HarmCategory HARM_CATEGORY_DANGEROUS_CONTENT
       Content that promotes, facilitates, or enables dangerous activities.
       
      HARM_CATEGORY_DANGEROUS_CONTENT = 2;
    • HARM_CATEGORY_HARASSMENT

      public static final AdvancedVoiceOptions.HarmCategory HARM_CATEGORY_HARASSMENT
       Abusive, threatening, or content intended to bully, torment, or ridicule.
       
      HARM_CATEGORY_HARASSMENT = 3;
    • HARM_CATEGORY_SEXUALLY_EXPLICIT

      public static final AdvancedVoiceOptions.HarmCategory HARM_CATEGORY_SEXUALLY_EXPLICIT
       Content that contains sexually explicit material.
       
      HARM_CATEGORY_SEXUALLY_EXPLICIT = 4;
    • UNRECOGNIZED

      public static final AdvancedVoiceOptions.HarmCategory UNRECOGNIZED
  • Field Details

    • HARM_CATEGORY_UNSPECIFIED_VALUE

      public static final int HARM_CATEGORY_UNSPECIFIED_VALUE
       Default value. This value is unused.
       
      HARM_CATEGORY_UNSPECIFIED = 0;
      See Also:
    • HARM_CATEGORY_HATE_SPEECH_VALUE

      public static final int HARM_CATEGORY_HATE_SPEECH_VALUE
       Content that promotes violence or incites hatred against individuals or
       groups based on certain attributes.
       
      HARM_CATEGORY_HATE_SPEECH = 1;
      See Also:
    • HARM_CATEGORY_DANGEROUS_CONTENT_VALUE

      public static final int HARM_CATEGORY_DANGEROUS_CONTENT_VALUE
       Content that promotes, facilitates, or enables dangerous activities.
       
      HARM_CATEGORY_DANGEROUS_CONTENT = 2;
      See Also:
    • HARM_CATEGORY_HARASSMENT_VALUE

      public static final int HARM_CATEGORY_HARASSMENT_VALUE
       Abusive, threatening, or content intended to bully, torment, or ridicule.
       
      HARM_CATEGORY_HARASSMENT = 3;
      See Also:
    • HARM_CATEGORY_SEXUALLY_EXPLICIT_VALUE

      public static final int HARM_CATEGORY_SEXUALLY_EXPLICIT_VALUE
       Content that contains sexually explicit material.
       
      HARM_CATEGORY_SEXUALLY_EXPLICIT = 4;
      See Also:
  • Method Details

    • values

      public static AdvancedVoiceOptions.HarmCategory[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static AdvancedVoiceOptions.HarmCategory valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static AdvancedVoiceOptions.HarmCategory valueOf(int value)
      Deprecated.
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      value - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • forNumber

      public static AdvancedVoiceOptions.HarmCategory forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<AdvancedVoiceOptions.HarmCategory> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static AdvancedVoiceOptions.HarmCategory valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      desc - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null