Class BatchRecognizeResponse.Builder (4.38.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchRecognizeResponse build()
Returns
Type Description
BatchRecognizeResponse

buildPartial()

public BatchRecognizeResponse buildPartial()
Returns
Type Description
BatchRecognizeResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResults()

public BatchRecognizeResponse.Builder clearResults()
Returns
Type Description
BatchRecognizeResponse.Builder

clearTotalBilledDuration()

public BatchRecognizeResponse.Builder clearTotalBilledDuration()

When available, billed audio seconds for the corresponding request.

.google.protobuf.Duration total_billed_duration = 2;

Returns
Type Description
BatchRecognizeResponse.Builder

clone()

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

getDefaultInstanceForType()

public BatchRecognizeResponse getDefaultInstanceForType()
Returns
Type Description
BatchRecognizeResponse

getDescriptorForType()

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

getMutableResults() (deprecated)

public Map<String,BatchRecognizeFileResult> getMutableResults()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,BatchRecognizeFileResult>

getResults() (deprecated)

public Map<String,BatchRecognizeFileResult> getResults()

Use #getResultsMap() instead.

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
key String
defaultValue BatchRecognizeFileResult
Returns
Type Description
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
Name Description
key String
Returns
Type Description
BatchRecognizeFileResult

getTotalBilledDuration()

public Duration getTotalBilledDuration()

When available, billed audio seconds for the corresponding request.

.google.protobuf.Duration total_billed_duration = 2;

Returns
Type Description
Duration

The totalBilledDuration.

getTotalBilledDurationBuilder()

public Duration.Builder getTotalBilledDurationBuilder()

When available, billed audio seconds for the corresponding request.

.google.protobuf.Duration total_billed_duration = 2;

Returns
Type Description
Builder

getTotalBilledDurationOrBuilder()

public DurationOrBuilder getTotalBilledDurationOrBuilder()

When available, billed audio seconds for the corresponding request.

.google.protobuf.Duration total_billed_duration = 2;

Returns
Type Description
DurationOrBuilder

hasTotalBilledDuration()

public boolean hasTotalBilledDuration()

When available, billed audio seconds for the corresponding request.

.google.protobuf.Duration total_billed_duration = 2;

Returns
Type Description
boolean

Whether the totalBilledDuration field is set.

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTotalBilledDuration(Duration value)

public BatchRecognizeResponse.Builder mergeTotalBilledDuration(Duration value)

When available, billed audio seconds for the corresponding request.

.google.protobuf.Duration total_billed_duration = 2;

Parameter
Name Description
value Duration
Returns
Type Description
BatchRecognizeResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putResultsBuilderIfAbsent(String key)

public BatchRecognizeFileResult.Builder putResultsBuilderIfAbsent(String key)

Map from filename to the final result for that file.

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

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTotalBilledDuration(Duration value)

public BatchRecognizeResponse.Builder setTotalBilledDuration(Duration value)

When available, billed audio seconds for the corresponding request.

.google.protobuf.Duration total_billed_duration = 2;

Parameter
Name Description
value Duration
Returns
Type Description
BatchRecognizeResponse.Builder

setTotalBilledDuration(Duration.Builder builderForValue)

public BatchRecognizeResponse.Builder setTotalBilledDuration(Duration.Builder builderForValue)

When available, billed audio seconds for the corresponding request.

.google.protobuf.Duration total_billed_duration = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
BatchRecognizeResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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