Class RecognitionMetadata.Builder (4.11.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.v1p1beta1.RecognitionMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RecognitionMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RecognitionMetadata.Builder
Overrides

build()

public RecognitionMetadata build()
Returns
TypeDescription
RecognitionMetadata

buildPartial()

public RecognitionMetadata buildPartial()
Returns
TypeDescription
RecognitionMetadata

clear()

public RecognitionMetadata.Builder clear()
Returns
TypeDescription
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
TypeDescription
RecognitionMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public RecognitionMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1;

Returns
TypeDescription
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.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4;

Returns
TypeDescription
RecognitionMetadata.Builder

This builder for chaining.

clearObfuscatedId() (deprecated)

public RecognitionMetadata.Builder clearObfuscatedId()

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RecognitionMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RecognitionMetadata.Builder
Overrides

clearOriginalMediaType()

public RecognitionMetadata.Builder clearOriginalMediaType()

The original media the speech was recorded on.

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

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

This builder for chaining.

clearRecordingDeviceType()

public RecognitionMetadata.Builder clearRecordingDeviceType()

The type of device the speech was recorded with.

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

Returns
TypeDescription
RecognitionMetadata.Builder

This builder for chaining.

clone()

public RecognitionMetadata.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for audioTopic.

getDefaultInstanceForType()

public RecognitionMetadata getDefaultInstanceForType()
Returns
TypeDescription
RecognitionMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
int

The industryNaicsCodeOfAudio.

getInteractionType()

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

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

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

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

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

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

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

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.

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
TypeDescription
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
TypeDescription
ByteString

The bytes for recordingDeviceName.

getRecordingDeviceType()

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

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RecognitionMetadata other)

public RecognitionMetadata.Builder mergeFrom(RecognitionMetadata other)
Parameter
NameDescription
otherRecognitionMetadata
Returns
TypeDescription
RecognitionMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RecognitionMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RecognitionMetadata.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RecognitionMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RecognitionMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RecognitionMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The audioTopic to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for audioTopic to set.

Returns
TypeDescription
RecognitionMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public RecognitionMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueint

The industryNaicsCodeOfAudio to set.

Returns
TypeDescription
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.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1;

Parameter
NameDescription
valueRecognitionMetadata.InteractionType

The interactionType to set.

Returns
TypeDescription
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.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
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.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4;

Parameter
NameDescription
valueRecognitionMetadata.MicrophoneDistance

The microphoneDistance to set.

Returns
TypeDescription
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.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
RecognitionMetadata.Builder

This builder for chaining.

setObfuscatedId(long value) (deprecated)

public RecognitionMetadata.Builder setObfuscatedId(long value)

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];

Parameter
NameDescription
valuelong

The obfuscatedId to set.

Returns
TypeDescription
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.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5;

Parameter
NameDescription
valueRecognitionMetadata.OriginalMediaType

The originalMediaType to set.

Returns
TypeDescription
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.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueString

The originalMimeType to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for originalMimeType to set.

Returns
TypeDescription
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
NameDescription
valueString

The recordingDeviceName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for recordingDeviceName to set.

Returns
TypeDescription
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.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6;

Parameter
NameDescription
valueRecognitionMetadata.RecordingDeviceType

The recordingDeviceType to set.

Returns
TypeDescription
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.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RecognitionMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RecognitionMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RecognitionMetadata.Builder
Overrides