public final class RecognitionMetadata extends com.google.protobuf.GeneratedMessageV3 implements RecognitionMetadataOrBuilder
Description of audio data to be recognized.Protobuf type
google.cloud.speech.v1p1beta1.RecognitionMetadata| Modifier and Type | Class and Description |
|---|---|
static class |
RecognitionMetadata.Builder
Description of audio data to be recognized.
|
static class |
RecognitionMetadata.InteractionType
Use case categories that the audio recognition request can be described
by.
|
static class |
RecognitionMetadata.MicrophoneDistance
Enumerates the types of capture settings describing an audio file.
|
static class |
RecognitionMetadata.OriginalMediaType
The original media the speech was recorded on.
|
static class |
RecognitionMetadata.RecordingDeviceType
The type of device the speech was recorded with.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
AUDIO_TOPIC_FIELD_NUMBER |
static int |
INDUSTRY_NAICS_CODE_OF_AUDIO_FIELD_NUMBER |
static int |
INTERACTION_TYPE_FIELD_NUMBER |
static int |
MICROPHONE_DISTANCE_FIELD_NUMBER |
static int |
OBFUSCATED_ID_FIELD_NUMBER |
static int |
ORIGINAL_MEDIA_TYPE_FIELD_NUMBER |
static int |
ORIGINAL_MIME_TYPE_FIELD_NUMBER |
static int |
RECORDING_DEVICE_NAME_FIELD_NUMBER |
static int |
RECORDING_DEVICE_TYPE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAudioTopic()
Description of the content.
|
com.google.protobuf.ByteString |
getAudioTopicBytes()
Description of the content.
|
static RecognitionMetadata |
getDefaultInstance() |
RecognitionMetadata |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
int |
getIndustryNaicsCodeOfAudio()
The industry vertical to which this speech recognition request most
closely applies.
|
RecognitionMetadata.InteractionType |
getInteractionType()
The use case most closely describing the audio content to be recognized.
|
int |
getInteractionTypeValue()
The use case most closely describing the audio content to be recognized.
|
RecognitionMetadata.MicrophoneDistance |
getMicrophoneDistance()
The audio type that most closely describes the audio being recognized.
|
int |
getMicrophoneDistanceValue()
The audio type that most closely describes the audio being recognized.
|
long |
getObfuscatedId()
Obfuscated (privacy-protected) ID of the user, to identify number of
unique users using the service.
|
RecognitionMetadata.OriginalMediaType |
getOriginalMediaType()
The original media the speech was recorded on.
|
int |
getOriginalMediaTypeValue()
The original media the speech was recorded on.
|
String |
getOriginalMimeType()
Mime type of the original audio file.
|
com.google.protobuf.ByteString |
getOriginalMimeTypeBytes()
Mime type of the original audio file.
|
com.google.protobuf.Parser<RecognitionMetadata> |
getParserForType() |
String |
getRecordingDeviceName()
The device used to make the recording.
|
com.google.protobuf.ByteString |
getRecordingDeviceNameBytes()
The device used to make the recording.
|
RecognitionMetadata.RecordingDeviceType |
getRecordingDeviceType()
The type of device the speech was recorded with.
|
int |
getRecordingDeviceTypeValue()
The type of device the speech was recorded with.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static RecognitionMetadata.Builder |
newBuilder() |
static RecognitionMetadata.Builder |
newBuilder(RecognitionMetadata prototype) |
RecognitionMetadata.Builder |
newBuilderForType() |
protected RecognitionMetadata.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static RecognitionMetadata |
parseDelimitedFrom(InputStream input) |
static RecognitionMetadata |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RecognitionMetadata |
parseFrom(byte[] data) |
static RecognitionMetadata |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RecognitionMetadata |
parseFrom(ByteBuffer data) |
static RecognitionMetadata |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RecognitionMetadata |
parseFrom(com.google.protobuf.ByteString data) |
static RecognitionMetadata |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RecognitionMetadata |
parseFrom(com.google.protobuf.CodedInputStream input) |
static RecognitionMetadata |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RecognitionMetadata |
parseFrom(InputStream input) |
static RecognitionMetadata |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<RecognitionMetadata> |
parser() |
RecognitionMetadata.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int INTERACTION_TYPE_FIELD_NUMBER
public static final int INDUSTRY_NAICS_CODE_OF_AUDIO_FIELD_NUMBER
public static final int MICROPHONE_DISTANCE_FIELD_NUMBER
public static final int ORIGINAL_MEDIA_TYPE_FIELD_NUMBER
public static final int RECORDING_DEVICE_TYPE_FIELD_NUMBER
public static final int RECORDING_DEVICE_NAME_FIELD_NUMBER
public static final int ORIGINAL_MIME_TYPE_FIELD_NUMBER
public static final int OBFUSCATED_ID_FIELD_NUMBER
public static final int AUDIO_TOPIC_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public int getInteractionTypeValue()
The use case most closely describing the audio content to be recognized.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1;
getInteractionTypeValue in interface RecognitionMetadataOrBuilderpublic RecognitionMetadata.InteractionType getInteractionType()
The use case most closely describing the audio content to be recognized.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1;
getInteractionType in interface RecognitionMetadataOrBuilderpublic int getIndustryNaicsCodeOfAudio()
The industry vertical to which this speech recognition request most closely applies. This is most indicative of the topics contained in the audio. Use the 6-digit NAICS code to identify the industry vertical - see https://www.naics.com/search/.
uint32 industry_naics_code_of_audio = 3;getIndustryNaicsCodeOfAudio in interface RecognitionMetadataOrBuilderpublic int getMicrophoneDistanceValue()
The audio type that most closely describes the audio being recognized.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4;
getMicrophoneDistanceValue in interface RecognitionMetadataOrBuilderpublic RecognitionMetadata.MicrophoneDistance getMicrophoneDistance()
The audio type that most closely describes the audio being recognized.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4;
getMicrophoneDistance in interface RecognitionMetadataOrBuilderpublic int getOriginalMediaTypeValue()
The original media the speech was recorded on.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5;
getOriginalMediaTypeValue in interface RecognitionMetadataOrBuilderpublic RecognitionMetadata.OriginalMediaType getOriginalMediaType()
The original media the speech was recorded on.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5;
getOriginalMediaType in interface RecognitionMetadataOrBuilderpublic int getRecordingDeviceTypeValue()
The type of device the speech was recorded with.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6;
getRecordingDeviceTypeValue in interface RecognitionMetadataOrBuilderpublic RecognitionMetadata.RecordingDeviceType getRecordingDeviceType()
The type of device the speech was recorded with.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6;
getRecordingDeviceType in interface RecognitionMetadataOrBuilderpublic String getRecordingDeviceName()
The device used to make the recording. Examples 'Nexus 5X' or 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or 'Cardioid Microphone'.
string recording_device_name = 7;getRecordingDeviceName in interface RecognitionMetadataOrBuilderpublic com.google.protobuf.ByteString getRecordingDeviceNameBytes()
The device used to make the recording. Examples 'Nexus 5X' or 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or 'Cardioid Microphone'.
string recording_device_name = 7;getRecordingDeviceNameBytes in interface RecognitionMetadataOrBuilderpublic String getOriginalMimeType()
Mime type of the original audio file. For example `audio/m4a`, `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`. A list of possible audio mime types is maintained at http://www.iana.org/assignments/media-types/media-types.xhtml#audio
string original_mime_type = 8;getOriginalMimeType in interface RecognitionMetadataOrBuilderpublic com.google.protobuf.ByteString getOriginalMimeTypeBytes()
Mime type of the original audio file. For example `audio/m4a`, `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`. A list of possible audio mime types is maintained at http://www.iana.org/assignments/media-types/media-types.xhtml#audio
string original_mime_type = 8;getOriginalMimeTypeBytes in interface RecognitionMetadataOrBuilderpublic long getObfuscatedId()
Obfuscated (privacy-protected) ID of the user, to identify number of unique users using the service.
int64 obfuscated_id = 9;getObfuscatedId in interface RecognitionMetadataOrBuilderpublic String getAudioTopic()
Description of the content. Eg. "Recordings of federal supreme court hearings from 2012".
string audio_topic = 10;getAudioTopic in interface RecognitionMetadataOrBuilderpublic com.google.protobuf.ByteString getAudioTopicBytes()
Description of the content. Eg. "Recordings of federal supreme court hearings from 2012".
string audio_topic = 10;getAudioTopicBytes in interface RecognitionMetadataOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static RecognitionMetadata parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RecognitionMetadata parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RecognitionMetadata parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RecognitionMetadata parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RecognitionMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RecognitionMetadata parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RecognitionMetadata parseFrom(InputStream input) throws IOException
IOExceptionpublic static RecognitionMetadata parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RecognitionMetadata parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static RecognitionMetadata parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RecognitionMetadata parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static RecognitionMetadata parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic RecognitionMetadata.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static RecognitionMetadata.Builder newBuilder()
public static RecognitionMetadata.Builder newBuilder(RecognitionMetadata prototype)
public RecognitionMetadata.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected RecognitionMetadata.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static RecognitionMetadata getDefaultInstance()
public static com.google.protobuf.Parser<RecognitionMetadata> parser()
public com.google.protobuf.Parser<RecognitionMetadata> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public RecognitionMetadata getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2019 Google LLC. All rights reserved.