Class RecognitionMetadata (4.27.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
TypeDescription
int

INDUSTRY_NAICS_CODE_OF_AUDIO_FIELD_NUMBER (deprecated)

public static final int INDUSTRY_NAICS_CODE_OF_AUDIO_FIELD_NUMBER
Field Value
TypeDescription
int

INTERACTION_TYPE_FIELD_NUMBER (deprecated)

public static final int INTERACTION_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

MICROPHONE_DISTANCE_FIELD_NUMBER (deprecated)

public static final int MICROPHONE_DISTANCE_FIELD_NUMBER
Field Value
TypeDescription
int

OBFUSCATED_ID_FIELD_NUMBER (deprecated)

public static final int OBFUSCATED_ID_FIELD_NUMBER
Field Value
TypeDescription
int

ORIGINAL_MEDIA_TYPE_FIELD_NUMBER (deprecated)

public static final int ORIGINAL_MEDIA_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

ORIGINAL_MIME_TYPE_FIELD_NUMBER (deprecated)

public static final int ORIGINAL_MIME_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

RECORDING_DEVICE_NAME_FIELD_NUMBER (deprecated)

public static final int RECORDING_DEVICE_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

RECORDING_DEVICE_TYPE_FIELD_NUMBER (deprecated)

public static final int RECORDING_DEVICE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance() (deprecated)

public static RecognitionMetadata getDefaultInstance()
Returns
TypeDescription
RecognitionMetadata

getDescriptor() (deprecated)

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

newBuilder() (deprecated)

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

newBuilder(RecognitionMetadata prototype) (deprecated)

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

parseDelimitedFrom(InputStream input) (deprecated)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) (deprecated)

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

parseFrom(byte[] data) (deprecated)

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

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

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

parseFrom(ByteString data) (deprecated)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) (deprecated)

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

parseFrom(CodedInputStream input) (deprecated)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) (deprecated)

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

parseFrom(InputStream input) (deprecated)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) (deprecated)

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

parseFrom(ByteBuffer data) (deprecated)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) (deprecated)

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

parser() (deprecated)

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

Methods

equals(Object obj) (deprecated)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for audioTopic.

getDefaultInstanceForType() (deprecated)

public RecognitionMetadata getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for originalMimeType.

getParserForType() (deprecated)

public Parser<RecognitionMetadata> getParserForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for recordingDeviceType.

getSerializedSize() (deprecated)

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode() (deprecated)

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable() (deprecated)

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized() (deprecated)

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType() (deprecated)

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent) (deprecated)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) (deprecated)

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

toBuilder() (deprecated)

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

writeTo(CodedOutputStream output) (deprecated)

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