Package com.google.cloud.speech.v2
Enum ExplicitDecodingConfig.AudioEncoding
- java.lang.Object
-
- java.lang.Enum<ExplicitDecodingConfig.AudioEncoding>
-
- com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<ExplicitDecodingConfig.AudioEncoding>
- Enclosing class:
- ExplicitDecodingConfig
public static enum ExplicitDecodingConfig.AudioEncoding extends Enum<ExplicitDecodingConfig.AudioEncoding> implements com.google.protobuf.ProtocolMessageEnum
Supported audio data encodings.
Protobuf enumgoogle.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALAWHeaderless 8-bit companded alaw samples.AUDIO_ENCODING_UNSPECIFIEDDefault value.LINEAR16Headerless 16-bit signed little-endian PCM samples.MULAWHeaderless 8-bit companded mulaw samples.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intALAW_VALUEHeaderless 8-bit companded alaw samples.static intAUDIO_ENCODING_UNSPECIFIED_VALUEDefault value.static intLINEAR16_VALUEHeaderless 16-bit signed little-endian PCM samples.static intMULAW_VALUEHeaderless 8-bit companded mulaw samples.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ExplicitDecodingConfig.AudioEncodingforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<ExplicitDecodingConfig.AudioEncoding>internalGetValueMap()static ExplicitDecodingConfig.AudioEncodingvalueOf(int value)Deprecated.static ExplicitDecodingConfig.AudioEncodingvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static ExplicitDecodingConfig.AudioEncodingvalueOf(String name)Returns the enum constant of this type with the specified name.static ExplicitDecodingConfig.AudioEncoding[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUDIO_ENCODING_UNSPECIFIED
public static final ExplicitDecodingConfig.AudioEncoding AUDIO_ENCODING_UNSPECIFIED
Default value. This value is unused.
AUDIO_ENCODING_UNSPECIFIED = 0;
-
LINEAR16
public static final ExplicitDecodingConfig.AudioEncoding LINEAR16
Headerless 16-bit signed little-endian PCM samples.
LINEAR16 = 1;
-
MULAW
public static final ExplicitDecodingConfig.AudioEncoding MULAW
Headerless 8-bit companded mulaw samples.
MULAW = 2;
-
ALAW
public static final ExplicitDecodingConfig.AudioEncoding ALAW
Headerless 8-bit companded alaw samples.
ALAW = 3;
-
UNRECOGNIZED
public static final ExplicitDecodingConfig.AudioEncoding UNRECOGNIZED
-
-
Field Detail
-
AUDIO_ENCODING_UNSPECIFIED_VALUE
public static final int AUDIO_ENCODING_UNSPECIFIED_VALUE
Default value. This value is unused.
AUDIO_ENCODING_UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
LINEAR16_VALUE
public static final int LINEAR16_VALUE
Headerless 16-bit signed little-endian PCM samples.
LINEAR16 = 1;- See Also:
- Constant Field Values
-
MULAW_VALUE
public static final int MULAW_VALUE
Headerless 8-bit companded mulaw samples.
MULAW = 2;- See Also:
- Constant Field Values
-
ALAW_VALUE
public static final int ALAW_VALUE
Headerless 8-bit companded alaw samples.
ALAW = 3;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static ExplicitDecodingConfig.AudioEncoding[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ExplicitDecodingConfig.AudioEncoding c : ExplicitDecodingConfig.AudioEncoding.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExplicitDecodingConfig.AudioEncoding 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 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 public static ExplicitDecodingConfig.AudioEncoding 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 nameNullPointerException- if the argument is null
-
forNumber
public static ExplicitDecodingConfig.AudioEncoding 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<ExplicitDecodingConfig.AudioEncoding> 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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static ExplicitDecodingConfig.AudioEncoding 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
-
-