public final class RecognitionMetadata extends 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.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, 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 |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public 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 UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public 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 RecognitionMetadataOrBuilder
public 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 RecognitionMetadataOrBuilder
public 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 RecognitionMetadataOrBuilder
public 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 RecognitionMetadataOrBuilder
public 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 RecognitionMetadataOrBuilder
public int getOriginalMediaTypeValue()
The original media the speech was recorded on.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5;
getOriginalMediaTypeValue
in interface RecognitionMetadataOrBuilder
public RecognitionMetadata.OriginalMediaType getOriginalMediaType()
The original media the speech was recorded on.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5;
getOriginalMediaType
in interface RecognitionMetadataOrBuilder
public int getRecordingDeviceTypeValue()
The type of device the speech was recorded with.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6;
getRecordingDeviceTypeValue
in interface RecognitionMetadataOrBuilder
public 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 RecognitionMetadataOrBuilder
public java.lang.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 RecognitionMetadataOrBuilder
public 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 RecognitionMetadataOrBuilder
public java.lang.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 RecognitionMetadataOrBuilder
public 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 RecognitionMetadataOrBuilder
public 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 RecognitionMetadataOrBuilder
public java.lang.String getAudioTopic()
Description of the content. Eg. "Recordings of federal supreme court hearings from 2012".
string audio_topic = 10;
getAudioTopic
in interface RecognitionMetadataOrBuilder
public ByteString getAudioTopicBytes()
Description of the content. Eg. "Recordings of federal supreme court hearings from 2012".
string audio_topic = 10;
getAudioTopicBytes
in interface RecognitionMetadataOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static RecognitionMetadata parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static RecognitionMetadata parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static RecognitionMetadata parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static RecognitionMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static RecognitionMetadata parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static RecognitionMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static RecognitionMetadata parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static RecognitionMetadata parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static RecognitionMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static RecognitionMetadata parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static RecognitionMetadata parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static RecognitionMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public RecognitionMetadata.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static RecognitionMetadata.Builder newBuilder()
public static RecognitionMetadata.Builder newBuilder(RecognitionMetadata prototype)
public RecognitionMetadata.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected RecognitionMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static RecognitionMetadata getDefaultInstance()
public static Parser<RecognitionMetadata> parser()
public Parser<RecognitionMetadata> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public RecognitionMetadata getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder