public final class RecognitionMetadata extends GeneratedMessageV3 implements RecognitionMetadataOrBuilder
Description of audio data to be recognized.
Protobuf type google.cloud.speech.v1p1beta1.RecognitionMetadata
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int AUDIO_TOPIC_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int INDUSTRY_NAICS_CODE_OF_AUDIO_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int INTERACTION_TYPE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int MICROPHONE_DISTANCE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int OBFUSCATED_ID_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int ORIGINAL_MEDIA_TYPE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int ORIGINAL_MIME_TYPE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int RECORDING_DEVICE_NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int RECORDING_DEVICE_TYPE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
public static RecognitionMetadata getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static RecognitionMetadata.Builder newBuilder()
public static RecognitionMetadata.Builder newBuilder(RecognitionMetadata prototype)
public static RecognitionMetadata parseDelimitedFrom(InputStream input)
public static RecognitionMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static RecognitionMetadata parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
public static RecognitionMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RecognitionMetadata parseFrom(ByteString data)
public static RecognitionMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RecognitionMetadata parseFrom(CodedInputStream input)
public static RecognitionMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static RecognitionMetadata parseFrom(InputStream input)
public static RecognitionMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static RecognitionMetadata parseFrom(ByteBuffer data)
public static RecognitionMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<RecognitionMetadata> parser()
Methods
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
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()
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;
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;
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=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.
|
public RecognitionMetadata.OriginalMediaType getOriginalMediaType()
The original media the speech was recorded on.
.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5;
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()
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;
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 |
---|
Type | Description |
int | |
Overrides
Returns |
---|
Type | Description |
int | |
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public RecognitionMetadata.Builder newBuilderForType()
protected RecognitionMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
public RecognitionMetadata.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides