Interface BatchRecognizeResponseOrBuilder (4.27.0)

public interface BatchRecognizeResponseOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsResults(String key)

public abstract 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

getResults() (deprecated)

public abstract Map<String,BatchRecognizeFileResult> getResults()

Use #getResultsMap() instead.

Returns
TypeDescription
Map<String,BatchRecognizeFileResult>

getResultsCount()

public abstract 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 abstract 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 abstract 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 abstract 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

getTotalBilledDuration()

public abstract 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 abstract DurationOrBuilder getTotalBilledDurationOrBuilder()

When available, billed audio seconds for the corresponding request.

.google.protobuf.Duration total_billed_duration = 2;

Returns
TypeDescription
DurationOrBuilder

hasTotalBilledDuration()

public abstract 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.