Class BatchRecognizeResponse.Builder (4.8.0)

public static final class BatchRecognizeResponse.Builder extends GeneratedMessageV3.Builder<BatchRecognizeResponse.Builder> implements BatchRecognizeResponseOrBuilder

Response message for BatchRecognize that is packaged into a longrunning Operation.

Protobuf type google.cloud.speech.v2.BatchRecognizeResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchRecognizeResponse build()
Returns
TypeDescription
BatchRecognizeResponse

buildPartial()

public BatchRecognizeResponse buildPartial()
Returns
TypeDescription
BatchRecognizeResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResults()

public BatchRecognizeResponse.Builder clearResults()
Returns
TypeDescription
BatchRecognizeResponse.Builder

clone()

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

containsResults(String key)

public boolean containsResults(String key)

Map from filename to the final result for that file.

map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public BatchRecognizeResponse getDefaultInstanceForType()
Returns
TypeDescription
BatchRecognizeResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMutableResults()

public Map<String,BatchRecognizeFileResult> getMutableResults()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,BatchRecognizeFileResult>

getResults()

public Map<String,BatchRecognizeFileResult> getResults()

Use #getResultsMap() instead.

Returns
TypeDescription
Map<String,BatchRecognizeFileResult>

getResultsCount()

public int getResultsCount()

Map from filename to the final result for that file.

map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1;

Returns
TypeDescription
int

getResultsMap()

public Map<String,BatchRecognizeFileResult> getResultsMap()

Map from filename to the final result for that file.

map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1;

Returns
TypeDescription
Map<String,BatchRecognizeFileResult>

getResultsOrDefault(String key, BatchRecognizeFileResult defaultValue)

public BatchRecognizeFileResult getResultsOrDefault(String key, BatchRecognizeFileResult defaultValue)

Map from filename to the final result for that file.

map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1;

Parameters
NameDescription
keyString
defaultValueBatchRecognizeFileResult
Returns
TypeDescription
BatchRecognizeFileResult

getResultsOrThrow(String key)

public BatchRecognizeFileResult getResultsOrThrow(String key)

Map from filename to the final result for that file.

map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
BatchRecognizeFileResult

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

public BatchRecognizeResponse.Builder mergeFrom(BatchRecognizeResponse other)
Parameter
NameDescription
otherBatchRecognizeResponse
Returns
TypeDescription
BatchRecognizeResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllResults(Map<String,BatchRecognizeFileResult> values)

public BatchRecognizeResponse.Builder putAllResults(Map<String,BatchRecognizeFileResult> values)

Map from filename to the final result for that file.

map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1;

Parameter
NameDescription
valuesMap<String,BatchRecognizeFileResult>
Returns
TypeDescription
BatchRecognizeResponse.Builder

putResults(String key, BatchRecognizeFileResult value)

public BatchRecognizeResponse.Builder putResults(String key, BatchRecognizeFileResult value)

Map from filename to the final result for that file.

map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1;

Parameters
NameDescription
keyString
valueBatchRecognizeFileResult
Returns
TypeDescription
BatchRecognizeResponse.Builder

removeResults(String key)

public BatchRecognizeResponse.Builder removeResults(String key)

Map from filename to the final result for that file.

map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
BatchRecognizeResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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