Class BatchRecognizeMetadata.Builder (4.78.0)

public static final class BatchRecognizeMetadata.Builder extends GeneratedMessage.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

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

clearTranscriptionMetadata()

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

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 GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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

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