public static enum RecognitionMetadata.RecordingDeviceType extends Enum<RecognitionMetadata.RecordingDeviceType> implements com.google.protobuf.ProtocolMessageEnum
The type of device the speech was recorded with.Protobuf enum
google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType| Enum Constant and Description |
|---|
OTHER_INDOOR_DEVICE
Speech was recorded indoors.
|
OTHER_OUTDOOR_DEVICE
Speech was recorded outdoors.
|
PC
Speech was recorded using a personal computer or tablet.
|
PHONE_LINE
Speech was recorded over a phone line.
|
RECORDING_DEVICE_TYPE_UNSPECIFIED
The recording device is unknown.
|
SMARTPHONE
Speech was recorded on a smartphone.
|
UNRECOGNIZED |
VEHICLE
Speech was recorded in a vehicle.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
OTHER_INDOOR_DEVICE_VALUE
Speech was recorded indoors.
|
static int |
OTHER_OUTDOOR_DEVICE_VALUE
Speech was recorded outdoors.
|
static int |
PC_VALUE
Speech was recorded using a personal computer or tablet.
|
static int |
PHONE_LINE_VALUE
Speech was recorded over a phone line.
|
static int |
RECORDING_DEVICE_TYPE_UNSPECIFIED_VALUE
The recording device is unknown.
|
static int |
SMARTPHONE_VALUE
Speech was recorded on a smartphone.
|
static int |
VEHICLE_VALUE
Speech was recorded in a vehicle.
|
| Modifier and Type | Method and Description |
|---|---|
static RecognitionMetadata.RecordingDeviceType |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<RecognitionMetadata.RecordingDeviceType> |
internalGetValueMap() |
static RecognitionMetadata.RecordingDeviceType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static RecognitionMetadata.RecordingDeviceType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static RecognitionMetadata.RecordingDeviceType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RecognitionMetadata.RecordingDeviceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RecognitionMetadata.RecordingDeviceType RECORDING_DEVICE_TYPE_UNSPECIFIED
The recording device is unknown.
RECORDING_DEVICE_TYPE_UNSPECIFIED = 0;public static final RecognitionMetadata.RecordingDeviceType SMARTPHONE
Speech was recorded on a smartphone.
SMARTPHONE = 1;public static final RecognitionMetadata.RecordingDeviceType PC
Speech was recorded using a personal computer or tablet.
PC = 2;public static final RecognitionMetadata.RecordingDeviceType PHONE_LINE
Speech was recorded over a phone line.
PHONE_LINE = 3;public static final RecognitionMetadata.RecordingDeviceType VEHICLE
Speech was recorded in a vehicle.
VEHICLE = 4;public static final RecognitionMetadata.RecordingDeviceType OTHER_OUTDOOR_DEVICE
Speech was recorded outdoors.
OTHER_OUTDOOR_DEVICE = 5;public static final RecognitionMetadata.RecordingDeviceType OTHER_INDOOR_DEVICE
Speech was recorded indoors.
OTHER_INDOOR_DEVICE = 6;public static final RecognitionMetadata.RecordingDeviceType UNRECOGNIZED
public static final int RECORDING_DEVICE_TYPE_UNSPECIFIED_VALUE
The recording device is unknown.
RECORDING_DEVICE_TYPE_UNSPECIFIED = 0;public static final int SMARTPHONE_VALUE
Speech was recorded on a smartphone.
SMARTPHONE = 1;public static final int PC_VALUE
Speech was recorded using a personal computer or tablet.
PC = 2;public static final int PHONE_LINE_VALUE
Speech was recorded over a phone line.
PHONE_LINE = 3;public static final int VEHICLE_VALUE
Speech was recorded in a vehicle.
VEHICLE = 4;public static final int OTHER_OUTDOOR_DEVICE_VALUE
Speech was recorded outdoors.
OTHER_OUTDOOR_DEVICE = 5;public static final int OTHER_INDOOR_DEVICE_VALUE
Speech was recorded indoors.
OTHER_INDOOR_DEVICE = 6;public static RecognitionMetadata.RecordingDeviceType[] values()
for (RecognitionMetadata.RecordingDeviceType c : RecognitionMetadata.RecordingDeviceType.values()) System.out.println(c);
public static RecognitionMetadata.RecordingDeviceType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static RecognitionMetadata.RecordingDeviceType valueOf(int value)
forNumber(int) instead.public static RecognitionMetadata.RecordingDeviceType forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<RecognitionMetadata.RecordingDeviceType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static RecognitionMetadata.RecordingDeviceType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2019 Google LLC. All rights reserved.