Class BatchRecognizeResponse (4.22.0)

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
TypeDescription
int

TOTAL_BILLED_DURATION_FIELD_NUMBER

public static final int TOTAL_BILLED_DURATION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static BatchRecognizeResponse getDefaultInstance()
Returns
TypeDescription
BatchRecognizeResponse

getDescriptor()

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

newBuilder()

public static BatchRecognizeResponse.Builder newBuilder()
Returns
TypeDescription
BatchRecognizeResponse.Builder

newBuilder(BatchRecognizeResponse prototype)

public static BatchRecognizeResponse.Builder newBuilder(BatchRecognizeResponse prototype)
Parameter
NameDescription
prototypeBatchRecognizeResponse
Returns
TypeDescription
BatchRecognizeResponse.Builder

parseDelimitedFrom(InputStream input)

public static BatchRecognizeResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
BatchRecognizeResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchRecognizeResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchRecognizeResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static BatchRecognizeResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
BatchRecognizeResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BatchRecognizeResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchRecognizeResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BatchRecognizeResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
BatchRecognizeResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BatchRecognizeResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchRecognizeResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BatchRecognizeResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
BatchRecognizeResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchRecognizeResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchRecognizeResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static BatchRecognizeResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
BatchRecognizeResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchRecognizeResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchRecognizeResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static BatchRecognizeResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
BatchRecognizeResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BatchRecognizeResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchRecognizeResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<BatchRecognizeResponse> parser()
Returns
TypeDescription
Parser<BatchRecognizeResponse>

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
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public BatchRecognizeResponse getDefaultInstanceForType()
Returns
TypeDescription
BatchRecognizeResponse

getParserForType()

public Parser<BatchRecognizeResponse> getParserForType()
Returns
TypeDescription
Parser<BatchRecognizeResponse>
Overrides

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTotalBilledDuration()

public Duration getTotalBilledDuration()

When available, billed audio seconds for the corresponding request.

.google.protobuf.Duration total_billed_duration = 2;

Returns
TypeDescription
Duration

The totalBilledDuration.

getTotalBilledDurationOrBuilder()

public DurationOrBuilder getTotalBilledDurationOrBuilder()

When available, billed audio seconds for the corresponding request.

.google.protobuf.Duration total_billed_duration = 2;

Returns
TypeDescription
DurationOrBuilder

hasTotalBilledDuration()

public boolean hasTotalBilledDuration()

When available, billed audio seconds for the corresponding request.

.google.protobuf.Duration total_billed_duration = 2;

Returns
TypeDescription
boolean

Whether the totalBilledDuration field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected BatchRecognizeResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
BatchRecognizeResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException