public final class BatchRecognizeResponse extends GeneratedMessageV3 implements BatchRecognizeResponseOrBuilder
Response message for
BatchRecognize that is
packaged into a longrunning Operation.
Protobuf type google.cloud.speech.v2.BatchRecognizeResponse
Static Fields
RESULTS_FIELD_NUMBER
public static final int RESULTS_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static BatchRecognizeResponse getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static BatchRecognizeResponse.Builder newBuilder()
Returns
newBuilder(BatchRecognizeResponse prototype)
public static BatchRecognizeResponse.Builder newBuilder(BatchRecognizeResponse prototype)
Parameter
Returns
public static BatchRecognizeResponse parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static BatchRecognizeResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static BatchRecognizeResponse parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static BatchRecognizeResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static BatchRecognizeResponse parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static BatchRecognizeResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static BatchRecognizeResponse parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static BatchRecognizeResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static BatchRecognizeResponse parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static BatchRecognizeResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static BatchRecognizeResponse parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static BatchRecognizeResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<BatchRecognizeResponse> parser()
Returns
Methods
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
Returns
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public BatchRecognizeResponse getDefaultInstanceForType()
Returns
getParserForType()
public Parser<BatchRecognizeResponse> getParserForType()
Returns
Overrides
getResults()
public Map<String,BatchRecognizeFileResult> getResults()
Returns
getResultsCount()
public int getResultsCount()
Map from filename to the final result for that file.
map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1;
Returns
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
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
Returns
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
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public BatchRecognizeResponse.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected BatchRecognizeResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public BatchRecognizeResponse.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions