Class RecognitionMetadata (4.7.0)

public final class RecognitionMetadata extends GeneratedMessageV3 implements RecognitionMetadataOrBuilder

Description of audio data to be recognized.

Protobuf type google.cloud.speech.v1.RecognitionMetadata

Static Fields

AUDIO_TOPIC_FIELD_NUMBER

public static final int AUDIO_TOPIC_FIELD_NUMBER
Field Value
TypeDescription
int

INDUSTRY_NAICS_CODE_OF_AUDIO_FIELD_NUMBER

public static final int INDUSTRY_NAICS_CODE_OF_AUDIO_FIELD_NUMBER
Field Value
TypeDescription
int

INTERACTION_TYPE_FIELD_NUMBER

public static final int INTERACTION_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

MICROPHONE_DISTANCE_FIELD_NUMBER

public static final int MICROPHONE_DISTANCE_FIELD_NUMBER
Field Value
TypeDescription
int

ORIGINAL_MEDIA_TYPE_FIELD_NUMBER

public static final int ORIGINAL_MEDIA_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

ORIGINAL_MIME_TYPE_FIELD_NUMBER

public static final int ORIGINAL_MIME_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

RECORDING_DEVICE_NAME_FIELD_NUMBER

public static final int RECORDING_DEVICE_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

RECORDING_DEVICE_TYPE_FIELD_NUMBER

public static final int RECORDING_DEVICE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static RecognitionMetadata getDefaultInstance()
Returns
TypeDescription
RecognitionMetadata

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static RecognitionMetadata.Builder newBuilder()
Returns
TypeDescription
RecognitionMetadata.Builder

newBuilder(RecognitionMetadata prototype)

public static RecognitionMetadata.Builder newBuilder(RecognitionMetadata prototype)
Parameter
NameDescription
prototypeRecognitionMetadata
Returns
TypeDescription
RecognitionMetadata.Builder

parseDelimitedFrom(InputStream input)

public static RecognitionMetadata parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RecognitionMetadata
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RecognitionMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RecognitionMetadata
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static RecognitionMetadata parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
RecognitionMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RecognitionMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RecognitionMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RecognitionMetadata parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
RecognitionMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RecognitionMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RecognitionMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RecognitionMetadata parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
RecognitionMetadata
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RecognitionMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RecognitionMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static RecognitionMetadata parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RecognitionMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RecognitionMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RecognitionMetadata
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static RecognitionMetadata parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
RecognitionMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RecognitionMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RecognitionMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<RecognitionMetadata> parser()
Returns
TypeDescription
Parser<RecognitionMetadata>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAudioTopic()

public String getAudioTopic()

Description of the content. Eg. "Recordings of federal supreme court hearings from 2012".

string audio_topic = 10;

Returns
TypeDescription
String

The audioTopic.

getAudioTopicBytes()

public ByteString getAudioTopicBytes()

Description of the content. Eg. "Recordings of federal supreme court hearings from 2012".

string audio_topic = 10;

Returns
TypeDescription
ByteString

The bytes for audioTopic.

getDefaultInstanceForType()

public RecognitionMetadata getDefaultInstanceForType()
Returns
TypeDescription
RecognitionMetadata

getIndustryNaicsCodeOfAudio()

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;

Returns
TypeDescription
int

The industryNaicsCodeOfAudio.

getInteractionType()

public RecognitionMetadata.InteractionType getInteractionType()

The use case most closely describing the audio content to be recognized.

.google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1;

Returns
TypeDescription
RecognitionMetadata.InteractionType

The interactionType.

getInteractionTypeValue()

public int getInteractionTypeValue()

The use case most closely describing the audio content to be recognized.

.google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for interactionType.

getMicrophoneDistance()

public RecognitionMetadata.MicrophoneDistance getMicrophoneDistance()

The audio type that most closely describes the audio being recognized.

.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4;

Returns
TypeDescription
RecognitionMetadata.MicrophoneDistance

The microphoneDistance.

getMicrophoneDistanceValue()

public int getMicrophoneDistanceValue()

The audio type that most closely describes the audio being recognized.

.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4;

Returns
TypeDescription
int

The enum numeric value on the wire for microphoneDistance.

getOriginalMediaType()

public RecognitionMetadata.OriginalMediaType getOriginalMediaType()

The original media the speech was recorded on.

.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5;

Returns
TypeDescription
RecognitionMetadata.OriginalMediaType

The originalMediaType.

getOriginalMediaTypeValue()

public int getOriginalMediaTypeValue()

The original media the speech was recorded on.

.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5;

Returns
TypeDescription
int

The enum numeric value on the wire for originalMediaType.

getOriginalMimeType()

public 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;

Returns
TypeDescription
String

The originalMimeType.

getOriginalMimeTypeBytes()

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;

Returns
TypeDescription
ByteString

The bytes for originalMimeType.

getParserForType()

public Parser<RecognitionMetadata> getParserForType()
Returns
TypeDescription
Parser<RecognitionMetadata>
Overrides

getRecordingDeviceName()

public 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;

Returns
TypeDescription
String

The recordingDeviceName.

getRecordingDeviceNameBytes()

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;

Returns
TypeDescription
ByteString

The bytes for recordingDeviceName.

getRecordingDeviceType()

public RecognitionMetadata.RecordingDeviceType getRecordingDeviceType()

The type of device the speech was recorded with.

.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6;

Returns
TypeDescription
RecognitionMetadata.RecordingDeviceType

The recordingDeviceType.

getRecordingDeviceTypeValue()

public int getRecordingDeviceTypeValue()

The type of device the speech was recorded with.

.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6;

Returns
TypeDescription
int

The enum numeric value on the wire for recordingDeviceType.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public RecognitionMetadata.Builder newBuilderForType()
Returns
TypeDescription
RecognitionMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RecognitionMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
RecognitionMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public RecognitionMetadata.Builder toBuilder()
Returns
TypeDescription
RecognitionMetadata.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException