Class BatchRecognizeMetadata.Builder (4.37.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchRecognizeMetadata build()
Returns
Type Description
BatchRecognizeMetadata

buildPartial()

public BatchRecognizeMetadata buildPartial()
Returns
Type Description
BatchRecognizeMetadata

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTranscriptionMetadata()

public BatchRecognizeMetadata.Builder clearTranscriptionMetadata()
Returns
Type Description
BatchRecognizeMetadata.Builder

clone()

public BatchRecognizeMetadata.Builder clone()
Returns
Type Description
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
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public BatchRecognizeMetadata getDefaultInstanceForType()
Returns
Type Description
BatchRecognizeMetadata

getDescriptorForType()

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

getMutableTranscriptionMetadata() (deprecated)

public Map<String,BatchRecognizeTranscriptionMetadata> getMutableTranscriptionMetadata()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,BatchRecognizeTranscriptionMetadata>

getTranscriptionMetadata() (deprecated)

public Map<String,BatchRecognizeTranscriptionMetadata> getTranscriptionMetadata()
Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
key String
defaultValue BatchRecognizeTranscriptionMetadata
Returns
Type Description
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
Name Description
key String
Returns
Type Description
BatchRecognizeTranscriptionMetadata

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchRecognizeMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchRecognizeMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
values Map<String,BatchRecognizeTranscriptionMetadata>
Returns
Type Description
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
Name Description
key String
value BatchRecognizeTranscriptionMetadata
Returns
Type Description
BatchRecognizeMetadata.Builder

putTranscriptionMetadataBuilderIfAbsent(String key)

public BatchRecognizeTranscriptionMetadata.Builder putTranscriptionMetadataBuilderIfAbsent(String key)

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

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

Parameter
Name Description
key String
Returns
Type Description
BatchRecognizeTranscriptionMetadata.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
Name Description
key String
Returns
Type Description
BatchRecognizeMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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