Class RecognitionMetadata.Builder (4.38.0)

public static final class RecognitionMetadata.Builder extends GeneratedMessageV3.Builder<RecognitionMetadata.Builder> implements RecognitionMetadataOrBuilder

Description of audio data to be recognized.

Protobuf type google.cloud.speech.v1.RecognitionMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RecognitionMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RecognitionMetadata.Builder
Overrides

build()

public RecognitionMetadata build()
Returns
Type Description
RecognitionMetadata

buildPartial()

public RecognitionMetadata buildPartial()
Returns
Type Description
RecognitionMetadata

clear()

public RecognitionMetadata.Builder clear()
Returns
Type Description
RecognitionMetadata.Builder
Overrides

clearAudioTopic()

public RecognitionMetadata.Builder clearAudioTopic()

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

string audio_topic = 10;

Returns
Type Description
RecognitionMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public RecognitionMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RecognitionMetadata.Builder
Overrides

clearIndustryNaicsCodeOfAudio()

public RecognitionMetadata.Builder clearIndustryNaicsCodeOfAudio()

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
RecognitionMetadata.Builder

This builder for chaining.

clearInteractionType()

public RecognitionMetadata.Builder clearInteractionType()

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

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

Returns
Type Description
RecognitionMetadata.Builder

This builder for chaining.

clearMicrophoneDistance()

public RecognitionMetadata.Builder clearMicrophoneDistance()

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

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

Returns
Type Description
RecognitionMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RecognitionMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RecognitionMetadata.Builder
Overrides

clearOriginalMediaType()

public RecognitionMetadata.Builder clearOriginalMediaType()

The original media the speech was recorded on.

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

Returns
Type Description
RecognitionMetadata.Builder

This builder for chaining.

clearOriginalMimeType()

public RecognitionMetadata.Builder clearOriginalMimeType()

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
RecognitionMetadata.Builder

This builder for chaining.

clearRecordingDeviceName()

public RecognitionMetadata.Builder clearRecordingDeviceName()

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
RecognitionMetadata.Builder

This builder for chaining.

clearRecordingDeviceType()

public RecognitionMetadata.Builder clearRecordingDeviceType()

The type of device the speech was recorded with.

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

Returns
Type Description
RecognitionMetadata.Builder

This builder for chaining.

clone()

public RecognitionMetadata.Builder clone()
Returns
Type Description
RecognitionMetadata.Builder
Overrides

getAudioTopic()

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()

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()

public RecognitionMetadata getDefaultInstanceForType()
Returns
Type Description
RecognitionMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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

The bytes for originalMimeType.

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

The enum numeric value on the wire for recordingDeviceType.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RecognitionMetadata other)

public RecognitionMetadata.Builder mergeFrom(RecognitionMetadata other)
Parameter
Name Description
other RecognitionMetadata
Returns
Type Description
RecognitionMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RecognitionMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RecognitionMetadata.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RecognitionMetadata.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RecognitionMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RecognitionMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RecognitionMetadata.Builder
Overrides

setAudioTopic(String value)

public RecognitionMetadata.Builder setAudioTopic(String value)

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

string audio_topic = 10;

Parameter
Name Description
value String

The audioTopic to set.

Returns
Type Description
RecognitionMetadata.Builder

This builder for chaining.

setAudioTopicBytes(ByteString value)

public RecognitionMetadata.Builder setAudioTopicBytes(ByteString value)

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

string audio_topic = 10;

Parameter
Name Description
value ByteString

The bytes for audioTopic to set.

Returns
Type Description
RecognitionMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public RecognitionMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RecognitionMetadata.Builder
Overrides

setIndustryNaicsCodeOfAudio(int value)

public RecognitionMetadata.Builder setIndustryNaicsCodeOfAudio(int value)

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;

Parameter
Name Description
value int

The industryNaicsCodeOfAudio to set.

Returns
Type Description
RecognitionMetadata.Builder

This builder for chaining.

setInteractionType(RecognitionMetadata.InteractionType value)

public RecognitionMetadata.Builder setInteractionType(RecognitionMetadata.InteractionType value)

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

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

Parameter
Name Description
value RecognitionMetadata.InteractionType

The interactionType to set.

Returns
Type Description
RecognitionMetadata.Builder

This builder for chaining.

setInteractionTypeValue(int value)

public RecognitionMetadata.Builder setInteractionTypeValue(int value)

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

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

Parameter
Name Description
value int

The enum numeric value on the wire for interactionType to set.

Returns
Type Description
RecognitionMetadata.Builder

This builder for chaining.

setMicrophoneDistance(RecognitionMetadata.MicrophoneDistance value)

public RecognitionMetadata.Builder setMicrophoneDistance(RecognitionMetadata.MicrophoneDistance value)

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

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

Parameter
Name Description
value RecognitionMetadata.MicrophoneDistance

The microphoneDistance to set.

Returns
Type Description
RecognitionMetadata.Builder

This builder for chaining.

setMicrophoneDistanceValue(int value)

public RecognitionMetadata.Builder setMicrophoneDistanceValue(int value)

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

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

Parameter
Name Description
value int

The enum numeric value on the wire for microphoneDistance to set.

Returns
Type Description
RecognitionMetadata.Builder

This builder for chaining.

setOriginalMediaType(RecognitionMetadata.OriginalMediaType value)

public RecognitionMetadata.Builder setOriginalMediaType(RecognitionMetadata.OriginalMediaType value)

The original media the speech was recorded on.

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

Parameter
Name Description
value RecognitionMetadata.OriginalMediaType

The originalMediaType to set.

Returns
Type Description
RecognitionMetadata.Builder

This builder for chaining.

setOriginalMediaTypeValue(int value)

public RecognitionMetadata.Builder setOriginalMediaTypeValue(int value)

The original media the speech was recorded on.

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

Parameter
Name Description
value int

The enum numeric value on the wire for originalMediaType to set.

Returns
Type Description
RecognitionMetadata.Builder

This builder for chaining.

setOriginalMimeType(String value)

public RecognitionMetadata.Builder setOriginalMimeType(String value)

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;

Parameter
Name Description
value String

The originalMimeType to set.

Returns
Type Description
RecognitionMetadata.Builder

This builder for chaining.

setOriginalMimeTypeBytes(ByteString value)

public RecognitionMetadata.Builder setOriginalMimeTypeBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for originalMimeType to set.

Returns
Type Description
RecognitionMetadata.Builder

This builder for chaining.

setRecordingDeviceName(String value)

public RecognitionMetadata.Builder setRecordingDeviceName(String value)

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;

Parameter
Name Description
value String

The recordingDeviceName to set.

Returns
Type Description
RecognitionMetadata.Builder

This builder for chaining.

setRecordingDeviceNameBytes(ByteString value)

public RecognitionMetadata.Builder setRecordingDeviceNameBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for recordingDeviceName to set.

Returns
Type Description
RecognitionMetadata.Builder

This builder for chaining.

setRecordingDeviceType(RecognitionMetadata.RecordingDeviceType value)

public RecognitionMetadata.Builder setRecordingDeviceType(RecognitionMetadata.RecordingDeviceType value)

The type of device the speech was recorded with.

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

Parameter
Name Description
value RecognitionMetadata.RecordingDeviceType

The recordingDeviceType to set.

Returns
Type Description
RecognitionMetadata.Builder

This builder for chaining.

setRecordingDeviceTypeValue(int value)

public RecognitionMetadata.Builder setRecordingDeviceTypeValue(int value)

The type of device the speech was recorded with.

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

Parameter
Name Description
value int

The enum numeric value on the wire for recordingDeviceType to set.

Returns
Type Description
RecognitionMetadata.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public RecognitionMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RecognitionMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RecognitionMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RecognitionMetadata.Builder
Overrides