Class RecognitionMetadata (4.43.0)

public final class RecognitionMetadata extends GeneratedMessageV3 implements RecognitionMetadataOrBuilder

Description of audio data to be recognized.

Protobuf type google.cloud.speech.v1p1beta1.RecognitionMetadata

Static Fields

AUDIO_TOPIC_FIELD_NUMBER (deprecated)

public static final int AUDIO_TOPIC_FIELD_NUMBER
Field Value
Type Description
int

INDUSTRY_NAICS_CODE_OF_AUDIO_FIELD_NUMBER (deprecated)

public static final int INDUSTRY_NAICS_CODE_OF_AUDIO_FIELD_NUMBER
Field Value
Type Description
int

INTERACTION_TYPE_FIELD_NUMBER (deprecated)

public static final int INTERACTION_TYPE_FIELD_NUMBER
Field Value
Type Description
int

MICROPHONE_DISTANCE_FIELD_NUMBER (deprecated)

public static final int MICROPHONE_DISTANCE_FIELD_NUMBER
Field Value
Type Description
int

OBFUSCATED_ID_FIELD_NUMBER (deprecated)

public static final int OBFUSCATED_ID_FIELD_NUMBER
Field Value
Type Description
int

ORIGINAL_MEDIA_TYPE_FIELD_NUMBER (deprecated)

public static final int ORIGINAL_MEDIA_TYPE_FIELD_NUMBER
Field Value
Type Description
int

ORIGINAL_MIME_TYPE_FIELD_NUMBER (deprecated)

public static final int ORIGINAL_MIME_TYPE_FIELD_NUMBER
Field Value
Type Description
int

RECORDING_DEVICE_NAME_FIELD_NUMBER (deprecated)

public static final int RECORDING_DEVICE_NAME_FIELD_NUMBER
Field Value
Type Description
int

RECORDING_DEVICE_TYPE_FIELD_NUMBER (deprecated)

public static final int RECORDING_DEVICE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance() (deprecated)

public static RecognitionMetadata getDefaultInstance()
Returns
Type Description
RecognitionMetadata

getDescriptor() (deprecated)

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder() (deprecated)

public static RecognitionMetadata.Builder newBuilder()
Returns
Type Description
RecognitionMetadata.Builder

newBuilder(RecognitionMetadata prototype) (deprecated)

public static RecognitionMetadata.Builder newBuilder(RecognitionMetadata prototype)
Parameter
Name Description
prototype RecognitionMetadata
Returns
Type Description
RecognitionMetadata.Builder

parseDelimitedFrom(InputStream input) (deprecated)

public static RecognitionMetadata parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RecognitionMetadata
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) (deprecated)

public static RecognitionMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RecognitionMetadata
Exceptions
Type Description
IOException

parseFrom(byte[] data) (deprecated)

public static RecognitionMetadata parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
RecognitionMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) (deprecated)

public static RecognitionMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RecognitionMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data) (deprecated)

public static RecognitionMetadata parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
RecognitionMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) (deprecated)

public static RecognitionMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RecognitionMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input) (deprecated)

public static RecognitionMetadata parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
RecognitionMetadata
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) (deprecated)

public static RecognitionMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RecognitionMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input) (deprecated)

public static RecognitionMetadata parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RecognitionMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) (deprecated)

public static RecognitionMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RecognitionMetadata
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data) (deprecated)

public static RecognitionMetadata parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
RecognitionMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) (deprecated)

public static RecognitionMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RecognitionMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parser() (deprecated)

public static Parser<RecognitionMetadata> parser()
Returns
Type Description
Parser<RecognitionMetadata>

Methods

equals(Object obj) (deprecated)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAudioTopic() (deprecated)

public String getAudioTopic()

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

string audio_topic = 10;

Returns
Type Description
String

The audioTopic.

getAudioTopicBytes() (deprecated)

public ByteString getAudioTopicBytes()

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

string audio_topic = 10;

Returns
Type Description
ByteString

The bytes for audioTopic.

getDefaultInstanceForType() (deprecated)

public RecognitionMetadata getDefaultInstanceForType()
Returns
Type Description
RecognitionMetadata

getIndustryNaicsCodeOfAudio() (deprecated)

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
Type Description
int

The industryNaicsCodeOfAudio.

getInteractionType() (deprecated)

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;

Returns
Type Description
RecognitionMetadata.InteractionType

The interactionType.

getInteractionTypeValue() (deprecated)

public int getInteractionTypeValue()

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

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

Returns
Type Description
int

The enum numeric value on the wire for interactionType.

getMicrophoneDistance() (deprecated)

public RecognitionMetadata.MicrophoneDistance getMicrophoneDistance()

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

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

Returns
Type Description
RecognitionMetadata.MicrophoneDistance

The microphoneDistance.

getMicrophoneDistanceValue() (deprecated)

public int getMicrophoneDistanceValue()

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

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

Returns
Type Description
int

The enum numeric value on the wire for microphoneDistance.

getObfuscatedId() (deprecated)

public long getObfuscatedId()

Deprecated. google.cloud.speech.v1p1beta1.RecognitionMetadata.obfuscated_id is deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=633

Obfuscated (privacy-protected) ID of the user, to identify number of unique users using the service.

int64 obfuscated_id = 9 [deprecated = true];

Returns
Type Description
long

The obfuscatedId.

getOriginalMediaType() (deprecated)

public RecognitionMetadata.OriginalMediaType getOriginalMediaType()

The original media the speech was recorded on.

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

Returns
Type Description
RecognitionMetadata.OriginalMediaType

The originalMediaType.

getOriginalMediaTypeValue() (deprecated)

public int getOriginalMediaTypeValue()

The original media the speech was recorded on.

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

Returns
Type Description
int

The enum numeric value on the wire for originalMediaType.

getOriginalMimeType() (deprecated)

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
Type Description
String

The originalMimeType.

getOriginalMimeTypeBytes() (deprecated)

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
Type Description
ByteString

The bytes for originalMimeType.

getParserForType() (deprecated)

public Parser<RecognitionMetadata> getParserForType()
Returns
Type Description
Parser<RecognitionMetadata>
Overrides

getRecordingDeviceName() (deprecated)

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
Type Description
String

The recordingDeviceName.

getRecordingDeviceNameBytes() (deprecated)

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
Type Description
ByteString

The bytes for recordingDeviceName.

getRecordingDeviceType() (deprecated)

public RecognitionMetadata.RecordingDeviceType getRecordingDeviceType()

The type of device the speech was recorded with.

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

Returns
Type Description
RecognitionMetadata.RecordingDeviceType

The recordingDeviceType.

getRecordingDeviceTypeValue() (deprecated)

public int getRecordingDeviceTypeValue()

The type of device the speech was recorded with.

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

Returns
Type Description
int

The enum numeric value on the wire for recordingDeviceType.

getSerializedSize() (deprecated)

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode() (deprecated)

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable() (deprecated)

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized() (deprecated)

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType() (deprecated)

public RecognitionMetadata.Builder newBuilderForType()
Returns
Type Description
RecognitionMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent) (deprecated)

protected RecognitionMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RecognitionMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) (deprecated)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder() (deprecated)

public RecognitionMetadata.Builder toBuilder()
Returns
Type Description
RecognitionMetadata.Builder

writeTo(CodedOutputStream output) (deprecated)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException