public final class RecognitionMetadata extends GeneratedMessageV3 implements RecognitionMetadataOrBuilder
Description of audio data to be recognized.
Protobuf type google.cloud.speech.v1p1beta1.RecognitionMetadata
Static Fields
public static final int AUDIO_TOPIC_FIELD_NUMBER
Field Value
public static final int INDUSTRY_NAICS_CODE_OF_AUDIO_FIELD_NUMBER
Field Value
public static final int INTERACTION_TYPE_FIELD_NUMBER
Field Value
public static final int MICROPHONE_DISTANCE_FIELD_NUMBER
Field Value
public static final int OBFUSCATED_ID_FIELD_NUMBER
Field Value
public static final int ORIGINAL_MEDIA_TYPE_FIELD_NUMBER
Field Value
public static final int ORIGINAL_MIME_TYPE_FIELD_NUMBER
Field Value
public static final int RECORDING_DEVICE_NAME_FIELD_NUMBER
Field Value
public static final int RECORDING_DEVICE_TYPE_FIELD_NUMBER
Field Value
Static Methods
public static RecognitionMetadata getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static RecognitionMetadata.Builder newBuilder()
Returns
public static RecognitionMetadata.Builder newBuilder(RecognitionMetadata prototype)
Parameter
Returns
public static RecognitionMetadata parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static RecognitionMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static RecognitionMetadata parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static RecognitionMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static RecognitionMetadata parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static RecognitionMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static RecognitionMetadata parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static RecognitionMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static RecognitionMetadata parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static RecognitionMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static RecognitionMetadata parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static RecognitionMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<RecognitionMetadata> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
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.
|
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.
|
public RecognitionMetadata getDefaultInstanceForType()
Returns
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.
|
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
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.
|
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
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.
|
public long getObfuscatedId()
Deprecated. google.cloud.speech.v1p1beta1.RecognitionMetadata.obfuscated_id is deprecated. See
google/cloud/speech/v1p1beta1/cloud_speech.proto;l=612
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.
|
public RecognitionMetadata.OriginalMediaType getOriginalMediaType()
The original media the speech was recorded on.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5;
Returns
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.
|
public String getOriginalMimeType()
Returns
Type | Description |
String | The originalMimeType.
|
public ByteString getOriginalMimeTypeBytes()
Returns
Type | Description |
ByteString | The bytes for originalMimeType.
|
public Parser<RecognitionMetadata> getParserForType()
Returns
Overrides
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.
|
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.
|
public RecognitionMetadata.RecordingDeviceType getRecordingDeviceType()
The type of device the speech was recorded with.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6;
Returns
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.
|
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public RecognitionMetadata.Builder newBuilderForType()
Returns
protected RecognitionMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public RecognitionMetadata.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions