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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BatchRecognizeResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public BatchRecognizeResponse build()
buildPartial()
public BatchRecognizeResponse buildPartial()
clear()
public BatchRecognizeResponse.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public BatchRecognizeResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public BatchRecognizeResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearResults()
public BatchRecognizeResponse.Builder clearResults()
clearTotalBilledDuration()
public BatchRecognizeResponse.Builder clearTotalBilledDuration()
When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_duration = 2;
clone()
public BatchRecognizeResponse.Builder clone()
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
|
getDefaultInstanceForType()
public BatchRecognizeResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getMutableResults() (deprecated)
public Map<String,BatchRecognizeFileResult> getMutableResults()
Use alternate mutation accessors instead.
getResults() (deprecated)
public Map<String,BatchRecognizeFileResult> getResults()
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;
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;
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
|
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;
getTotalBilledDurationOrBuilder()
public DurationOrBuilder getTotalBilledDurationOrBuilder()
When available, billed audio seconds for the corresponding request.
.google.protobuf.Duration total_billed_duration = 2;
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()
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()
Overrides
mergeFrom(BatchRecognizeResponse other)
public BatchRecognizeResponse.Builder mergeFrom(BatchRecognizeResponse other)
public BatchRecognizeResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public BatchRecognizeResponse.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
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
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BatchRecognizeResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
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;
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
|
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public BatchRecognizeResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BatchRecognizeResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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
|
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
|
setUnknownFields(UnknownFieldSet unknownFields)
public final BatchRecognizeResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides