Package com.google.cloud.texttospeech.v1
Enum AdvancedVoiceOptions.HarmBlockThreshold
java.lang.Object
java.lang.Enum<AdvancedVoiceOptions.HarmBlockThreshold>
com.google.cloud.texttospeech.v1.AdvancedVoiceOptions.HarmBlockThreshold
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<AdvancedVoiceOptions.HarmBlockThreshold>
- Enclosing class:
- AdvancedVoiceOptions
public static enum AdvancedVoiceOptions.HarmBlockThreshold
extends Enum<AdvancedVoiceOptions.HarmBlockThreshold>
implements com.google.protobuf.ProtocolMessageEnum
Harm block thresholds for the safety settings.Protobuf enum
google.cloud.texttospeech.v1.AdvancedVoiceOptions.HarmBlockThreshold-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBlock content with a low harm probability or higher.Block content with a medium harm probability or higher.Do not block any content, regardless of its harm probability.Block content with a high harm probability.The harm block threshold is unspecified.Turn off the safety filter entirely. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intBlock content with a low harm probability or higher.static final intBlock content with a medium harm probability or higher.static final intDo not block any content, regardless of its harm probability.static final intBlock content with a high harm probability.static final intThe harm block threshold is unspecified.static final intTurn off the safety filter entirely. -
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.HarmBlockThreshold>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.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
HARM_BLOCK_THRESHOLD_UNSPECIFIED
The harm block threshold is unspecified.
HARM_BLOCK_THRESHOLD_UNSPECIFIED = 0; -
BLOCK_LOW_AND_ABOVE
Block content with a low harm probability or higher.
BLOCK_LOW_AND_ABOVE = 1; -
BLOCK_MEDIUM_AND_ABOVE
Block content with a medium harm probability or higher.
BLOCK_MEDIUM_AND_ABOVE = 2; -
BLOCK_ONLY_HIGH
Block content with a high harm probability.
BLOCK_ONLY_HIGH = 3; -
BLOCK_NONE
Do not block any content, regardless of its harm probability.
BLOCK_NONE = 4; -
OFF
Turn off the safety filter entirely.
OFF = 5; -
UNRECOGNIZED
-
-
Field Details
-
HARM_BLOCK_THRESHOLD_UNSPECIFIED_VALUE
public static final int HARM_BLOCK_THRESHOLD_UNSPECIFIED_VALUEThe harm block threshold is unspecified.
HARM_BLOCK_THRESHOLD_UNSPECIFIED = 0;- See Also:
-
BLOCK_LOW_AND_ABOVE_VALUE
public static final int BLOCK_LOW_AND_ABOVE_VALUEBlock content with a low harm probability or higher.
BLOCK_LOW_AND_ABOVE = 1;- See Also:
-
BLOCK_MEDIUM_AND_ABOVE_VALUE
public static final int BLOCK_MEDIUM_AND_ABOVE_VALUEBlock content with a medium harm probability or higher.
BLOCK_MEDIUM_AND_ABOVE = 2;- See Also:
-
BLOCK_ONLY_HIGH_VALUE
public static final int BLOCK_ONLY_HIGH_VALUEBlock content with a high harm probability.
BLOCK_ONLY_HIGH = 3;- See Also:
-
BLOCK_NONE_VALUE
public static final int BLOCK_NONE_VALUEDo not block any content, regardless of its harm probability.
BLOCK_NONE = 4;- See Also:
-
OFF_VALUE
public static final int OFF_VALUETurn off the safety filter entirely.
OFF = 5;- 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.HarmBlockThreshold> 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.HarmBlockThreshold 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
-