Enum StreamingTranslateSpeechRequest.StreamingRequestCase
- java.lang.Object
-
- java.lang.Enum<StreamingTranslateSpeechRequest.StreamingRequestCase>
-
- com.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechRequest.StreamingRequestCase
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,Serializable
,Comparable<StreamingTranslateSpeechRequest.StreamingRequestCase>
- Enclosing class:
- StreamingTranslateSpeechRequest
public static enum StreamingTranslateSpeechRequest.StreamingRequestCase extends Enum<StreamingTranslateSpeechRequest.StreamingRequestCase> implements com.google.protobuf.Internal.EnumLite
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUDIO_CONTENT
STREAMING_CONFIG
STREAMINGREQUEST_NOT_SET
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static StreamingTranslateSpeechRequest.StreamingRequestCase
forNumber(int value)
int
getNumber()
static StreamingTranslateSpeechRequest.StreamingRequestCase
valueOf(int value)
Deprecated.static StreamingTranslateSpeechRequest.StreamingRequestCase
valueOf(String name)
Returns the enum constant of this type with the specified name.static StreamingTranslateSpeechRequest.StreamingRequestCase[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STREAMING_CONFIG
public static final StreamingTranslateSpeechRequest.StreamingRequestCase STREAMING_CONFIG
-
AUDIO_CONTENT
public static final StreamingTranslateSpeechRequest.StreamingRequestCase AUDIO_CONTENT
-
STREAMINGREQUEST_NOT_SET
public static final StreamingTranslateSpeechRequest.StreamingRequestCase STREAMINGREQUEST_NOT_SET
-
-
Method Detail
-
values
public static StreamingTranslateSpeechRequest.StreamingRequestCase[] 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 (StreamingTranslateSpeechRequest.StreamingRequestCase c : StreamingTranslateSpeechRequest.StreamingRequestCase.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StreamingTranslateSpeechRequest.StreamingRequestCase 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
-
valueOf
@Deprecated public static StreamingTranslateSpeechRequest.StreamingRequestCase 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 StreamingTranslateSpeechRequest.StreamingRequestCase forNumber(int value)
-
getNumber
public int getNumber()
- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
-
-