Class BatchRecognizeMetadata.Builder (4.17.0)

public static final class BatchRecognizeMetadata.Builder extends GeneratedMessageV3.Builder<BatchRecognizeMetadata.Builder> implements BatchRecognizeMetadataOrBuilder

Operation metadata for BatchRecognize.

Protobuf type google.cloud.speech.v2.BatchRecognizeMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchRecognizeMetadata build()
Returns
TypeDescription
BatchRecognizeMetadata

buildPartial()

public BatchRecognizeMetadata buildPartial()
Returns
TypeDescription
BatchRecognizeMetadata

clear()

public BatchRecognizeMetadata.Builder clear()
Returns
TypeDescription
BatchRecognizeMetadata.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public BatchRecognizeMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BatchRecognizeMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTranscriptionMetadata()

public BatchRecognizeMetadata.Builder clearTranscriptionMetadata()
Returns
TypeDescription
BatchRecognizeMetadata.Builder

clone()

public BatchRecognizeMetadata.Builder clone()
Returns
TypeDescription
BatchRecognizeMetadata.Builder
Overrides

containsTranscriptionMetadata(String key)

public boolean containsTranscriptionMetadata(String key)

Map from provided filename to the transcription metadata for that file.

map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public BatchRecognizeMetadata getDefaultInstanceForType()
Returns
TypeDescription
BatchRecognizeMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMutableTranscriptionMetadata()

public Map<String,BatchRecognizeTranscriptionMetadata> getMutableTranscriptionMetadata()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,BatchRecognizeTranscriptionMetadata>

getTranscriptionMetadata()

public Map<String,BatchRecognizeTranscriptionMetadata> getTranscriptionMetadata()
Returns
TypeDescription
Map<String,BatchRecognizeTranscriptionMetadata>

getTranscriptionMetadataCount()

public int getTranscriptionMetadataCount()

Map from provided filename to the transcription metadata for that file.

map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1;

Returns
TypeDescription
int

getTranscriptionMetadataMap()

public Map<String,BatchRecognizeTranscriptionMetadata> getTranscriptionMetadataMap()

Map from provided filename to the transcription metadata for that file.

map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1;

Returns
TypeDescription
Map<String,BatchRecognizeTranscriptionMetadata>

getTranscriptionMetadataOrDefault(String key, BatchRecognizeTranscriptionMetadata defaultValue)

public BatchRecognizeTranscriptionMetadata getTranscriptionMetadataOrDefault(String key, BatchRecognizeTranscriptionMetadata defaultValue)

Map from provided filename to the transcription metadata for that file.

map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1;

Parameters
NameDescription
keyString
defaultValueBatchRecognizeTranscriptionMetadata
Returns
TypeDescription
BatchRecognizeTranscriptionMetadata

getTranscriptionMetadataOrThrow(String key)

public BatchRecognizeTranscriptionMetadata getTranscriptionMetadataOrThrow(String key)

Map from provided filename to the transcription metadata for that file.

map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
BatchRecognizeTranscriptionMetadata

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BatchRecognizeMetadata other)

public BatchRecognizeMetadata.Builder mergeFrom(BatchRecognizeMetadata other)
Parameter
NameDescription
otherBatchRecognizeMetadata
Returns
TypeDescription
BatchRecognizeMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchRecognizeMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BatchRecognizeMetadata.Builder
Overrides

putAllTranscriptionMetadata(Map<String,BatchRecognizeTranscriptionMetadata> values)

public BatchRecognizeMetadata.Builder putAllTranscriptionMetadata(Map<String,BatchRecognizeTranscriptionMetadata> values)

Map from provided filename to the transcription metadata for that file.

map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1;

Parameter
NameDescription
valuesMap<String,BatchRecognizeTranscriptionMetadata>
Returns
TypeDescription
BatchRecognizeMetadata.Builder

putTranscriptionMetadata(String key, BatchRecognizeTranscriptionMetadata value)

public BatchRecognizeMetadata.Builder putTranscriptionMetadata(String key, BatchRecognizeTranscriptionMetadata value)

Map from provided filename to the transcription metadata for that file.

map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1;

Parameters
NameDescription
keyString
valueBatchRecognizeTranscriptionMetadata
Returns
TypeDescription
BatchRecognizeMetadata.Builder

removeTranscriptionMetadata(String key)

public BatchRecognizeMetadata.Builder removeTranscriptionMetadata(String key)

Map from provided filename to the transcription metadata for that file.

map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
BatchRecognizeMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public BatchRecognizeMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BatchRecognizeMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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