Package com.google.cloud.texttospeech.v1
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 Summary
Enum ConstantsEnum ConstantDescriptionContent that promotes, facilitates, or enables dangerous activities.Abusive, threatening, or content intended to bully, torment, or ridicule.Content that promotes violence or incites hatred against individuals or groups based on certain attributes.Content that contains sexually explicit material.Default value. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intContent that promotes, facilitates, or enables dangerous activities.static final intAbusive, threatening, or content intended to bully, torment, or ridicule.static final intContent that promotes violence or incites hatred against individuals or groups based on certain attributes.static final intContent that contains sexually explicit material.static final intDefault value. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<AdvancedVoiceOptions.HarmCategory>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.static AdvancedVoiceOptions.HarmCategory[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
HARM_CATEGORY_UNSPECIFIED
Default value. This value is unused.
HARM_CATEGORY_UNSPECIFIED = 0; -
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
Content that promotes, facilitates, or enables dangerous activities.
HARM_CATEGORY_DANGEROUS_CONTENT = 2; -
HARM_CATEGORY_HARASSMENT
Abusive, threatening, or content intended to bully, torment, or ridicule.
HARM_CATEGORY_HARASSMENT = 3; -
HARM_CATEGORY_SEXUALLY_EXPLICIT
Content that contains sexually explicit material.
HARM_CATEGORY_SEXUALLY_EXPLICIT = 4; -
UNRECOGNIZED
-
-
Field Details
-
HARM_CATEGORY_UNSPECIFIED_VALUE
public static final int HARM_CATEGORY_UNSPECIFIED_VALUEDefault value. This value is unused.
HARM_CATEGORY_UNSPECIFIED = 0;- See Also:
-
HARM_CATEGORY_HATE_SPEECH_VALUE
public static final int HARM_CATEGORY_HATE_SPEECH_VALUEContent 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_VALUEContent 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_VALUEAbusive, 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_VALUEContent that contains sexually explicit material.
HARM_CATEGORY_SEXUALLY_EXPLICIT = 4;- See Also:
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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 nameNullPointerException- if the argument is null
-
forNumber
- 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:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.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 nameNullPointerException- if the argument is null
-