Class BatchRecognizeResponse (4.46.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
Type Description
int

TOTAL_BILLED_DURATION_FIELD_NUMBER

public static final int TOTAL_BILLED_DURATION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static BatchRecognizeResponse getDefaultInstance()
Returns
Type Description
BatchRecognizeResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static BatchRecognizeResponse.Builder newBuilder()
Returns
Type Description
BatchRecognizeResponse.Builder

newBuilder(BatchRecognizeResponse prototype)

public static BatchRecognizeResponse.Builder newBuilder(BatchRecognizeResponse prototype)
Parameter
Name Description
prototype BatchRecognizeResponse
Returns
Type Description
BatchRecognizeResponse.Builder

parseDelimitedFrom(InputStream input)

public static BatchRecognizeResponse parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BatchRecognizeResponse
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchRecognizeResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchRecognizeResponse
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static BatchRecognizeResponse parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
BatchRecognizeResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BatchRecognizeResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchRecognizeResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BatchRecognizeResponse parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
BatchRecognizeResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BatchRecognizeResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchRecognizeResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BatchRecognizeResponse parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
BatchRecognizeResponse
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchRecognizeResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchRecognizeResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static BatchRecognizeResponse parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BatchRecognizeResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchRecognizeResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchRecognizeResponse
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static BatchRecognizeResponse parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
BatchRecognizeResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BatchRecognizeResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchRecognizeResponse
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<BatchRecognizeResponse> parser()
Returns
Type Description
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
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public BatchRecognizeResponse getDefaultInstanceForType()
Returns
Type Description
BatchRecognizeResponse

getParserForType()

public Parser<BatchRecognizeResponse> getParserForType()
Returns
Type Description
Parser<BatchRecognizeResponse>
Overrides

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

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.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected BatchRecognizeResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
BatchRecognizeResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException