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.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()
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()
public Map<String,BatchRecognizeFileResult> getMutableResults()
Use alternate mutation accessors instead.
getResults()
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
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
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
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;
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
setUnknownFields(UnknownFieldSet unknownFields)
public final BatchRecognizeResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides