Class BatchRecognizeFileResult.Builder (4.48.0)

public static final class BatchRecognizeFileResult.Builder extends GeneratedMessageV3.Builder<BatchRecognizeFileResult.Builder> implements BatchRecognizeFileResultOrBuilder

Final results for a single file.

Protobuf type google.cloud.speech.v2.BatchRecognizeFileResult

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchRecognizeFileResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BatchRecognizeFileResult.Builder
Overrides

build()

public BatchRecognizeFileResult build()
Returns
Type Description
BatchRecognizeFileResult

buildPartial()

public BatchRecognizeFileResult buildPartial()
Returns
Type Description
BatchRecognizeFileResult

clear()

public BatchRecognizeFileResult.Builder clear()
Returns
Type Description
BatchRecognizeFileResult.Builder
Overrides

clearCloudStorageResult()

public BatchRecognizeFileResult.Builder clearCloudStorageResult()

Recognition results written to Cloud Storage. This is populated only when GcsOutputConfig is set in the RecognitionOutputConfig.

.google.cloud.speech.v2.CloudStorageResult cloud_storage_result = 5;

Returns
Type Description
BatchRecognizeFileResult.Builder

clearError()

public BatchRecognizeFileResult.Builder clearError()

Error if one was encountered.

.google.rpc.Status error = 2;

Returns
Type Description
BatchRecognizeFileResult.Builder

clearField(Descriptors.FieldDescriptor field)

public BatchRecognizeFileResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BatchRecognizeFileResult.Builder
Overrides

clearInlineResult()

public BatchRecognizeFileResult.Builder clearInlineResult()

Recognition results. This is populated only when InlineOutputConfig is set in the RecognitionOutputConfig.

.google.cloud.speech.v2.InlineResult inline_result = 6;

Returns
Type Description
BatchRecognizeFileResult.Builder

clearMetadata()

public BatchRecognizeFileResult.Builder clearMetadata()

.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 3;

Returns
Type Description
BatchRecognizeFileResult.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchRecognizeFileResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BatchRecognizeFileResult.Builder
Overrides

clearResult()

public BatchRecognizeFileResult.Builder clearResult()
Returns
Type Description
BatchRecognizeFileResult.Builder

clearTranscript() (deprecated)

public BatchRecognizeFileResult.Builder clearTranscript()

Deprecated. Use inline_result.transcript instead.

.google.cloud.speech.v2.BatchRecognizeResults transcript = 4 [deprecated = true];

Returns
Type Description
BatchRecognizeFileResult.Builder

clearUri() (deprecated)

public BatchRecognizeFileResult.Builder clearUri()

Deprecated. google.cloud.speech.v2.BatchRecognizeFileResult.uri is deprecated. See google/cloud/speech/v2/cloud_speech.proto;l=1426

Deprecated. Use cloud_storage_result.native_format_uri instead.

string uri = 1 [deprecated = true];

Returns
Type Description
BatchRecognizeFileResult.Builder

This builder for chaining.

clone()

public BatchRecognizeFileResult.Builder clone()
Returns
Type Description
BatchRecognizeFileResult.Builder
Overrides

getCloudStorageResult()

public CloudStorageResult getCloudStorageResult()

Recognition results written to Cloud Storage. This is populated only when GcsOutputConfig is set in the RecognitionOutputConfig.

.google.cloud.speech.v2.CloudStorageResult cloud_storage_result = 5;

Returns
Type Description
CloudStorageResult

The cloudStorageResult.

getCloudStorageResultBuilder()

public CloudStorageResult.Builder getCloudStorageResultBuilder()

Recognition results written to Cloud Storage. This is populated only when GcsOutputConfig is set in the RecognitionOutputConfig.

.google.cloud.speech.v2.CloudStorageResult cloud_storage_result = 5;

Returns
Type Description
CloudStorageResult.Builder

getCloudStorageResultOrBuilder()

public CloudStorageResultOrBuilder getCloudStorageResultOrBuilder()

Recognition results written to Cloud Storage. This is populated only when GcsOutputConfig is set in the RecognitionOutputConfig.

.google.cloud.speech.v2.CloudStorageResult cloud_storage_result = 5;

Returns
Type Description
CloudStorageResultOrBuilder

getDefaultInstanceForType()

public BatchRecognizeFileResult getDefaultInstanceForType()
Returns
Type Description
BatchRecognizeFileResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getError()

public Status getError()

Error if one was encountered.

.google.rpc.Status error = 2;

Returns
Type Description
com.google.rpc.Status

The error.

getErrorBuilder()

public Status.Builder getErrorBuilder()

Error if one was encountered.

.google.rpc.Status error = 2;

Returns
Type Description
com.google.rpc.Status.Builder

getErrorOrBuilder()

public StatusOrBuilder getErrorOrBuilder()

Error if one was encountered.

.google.rpc.Status error = 2;

Returns
Type Description
com.google.rpc.StatusOrBuilder

getInlineResult()

public InlineResult getInlineResult()

Recognition results. This is populated only when InlineOutputConfig is set in the RecognitionOutputConfig.

.google.cloud.speech.v2.InlineResult inline_result = 6;

Returns
Type Description
InlineResult

The inlineResult.

getInlineResultBuilder()

public InlineResult.Builder getInlineResultBuilder()

Recognition results. This is populated only when InlineOutputConfig is set in the RecognitionOutputConfig.

.google.cloud.speech.v2.InlineResult inline_result = 6;

Returns
Type Description
InlineResult.Builder

getInlineResultOrBuilder()

public InlineResultOrBuilder getInlineResultOrBuilder()

Recognition results. This is populated only when InlineOutputConfig is set in the RecognitionOutputConfig.

.google.cloud.speech.v2.InlineResult inline_result = 6;

Returns
Type Description
InlineResultOrBuilder

getMetadata()

public RecognitionResponseMetadata getMetadata()

.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 3;

Returns
Type Description
RecognitionResponseMetadata

The metadata.

getMetadataBuilder()

public RecognitionResponseMetadata.Builder getMetadataBuilder()

.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 3;

Returns
Type Description
RecognitionResponseMetadata.Builder

getMetadataOrBuilder()

public RecognitionResponseMetadataOrBuilder getMetadataOrBuilder()

.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 3;

Returns
Type Description
RecognitionResponseMetadataOrBuilder

getResultCase()

public BatchRecognizeFileResult.ResultCase getResultCase()
Returns
Type Description
BatchRecognizeFileResult.ResultCase

getTranscript() (deprecated)

public BatchRecognizeResults getTranscript()

Deprecated. google.cloud.speech.v2.BatchRecognizeFileResult.transcript is deprecated. See google/cloud/speech/v2/cloud_speech.proto;l=1429

Deprecated. Use inline_result.transcript instead.

.google.cloud.speech.v2.BatchRecognizeResults transcript = 4 [deprecated = true];

Returns
Type Description
BatchRecognizeResults

The transcript.

getTranscriptBuilder() (deprecated)

public BatchRecognizeResults.Builder getTranscriptBuilder()

Deprecated. Use inline_result.transcript instead.

.google.cloud.speech.v2.BatchRecognizeResults transcript = 4 [deprecated = true];

Returns
Type Description
BatchRecognizeResults.Builder

getTranscriptOrBuilder() (deprecated)

public BatchRecognizeResultsOrBuilder getTranscriptOrBuilder()

Deprecated. Use inline_result.transcript instead.

.google.cloud.speech.v2.BatchRecognizeResults transcript = 4 [deprecated = true];

Returns
Type Description
BatchRecognizeResultsOrBuilder

getUri() (deprecated)

public String getUri()

Deprecated. google.cloud.speech.v2.BatchRecognizeFileResult.uri is deprecated. See google/cloud/speech/v2/cloud_speech.proto;l=1426

Deprecated. Use cloud_storage_result.native_format_uri instead.

string uri = 1 [deprecated = true];

Returns
Type Description
String

The uri.

getUriBytes() (deprecated)

public ByteString getUriBytes()

Deprecated. google.cloud.speech.v2.BatchRecognizeFileResult.uri is deprecated. See google/cloud/speech/v2/cloud_speech.proto;l=1426

Deprecated. Use cloud_storage_result.native_format_uri instead.

string uri = 1 [deprecated = true];

Returns
Type Description
ByteString

The bytes for uri.

hasCloudStorageResult()

public boolean hasCloudStorageResult()

Recognition results written to Cloud Storage. This is populated only when GcsOutputConfig is set in the RecognitionOutputConfig.

.google.cloud.speech.v2.CloudStorageResult cloud_storage_result = 5;

Returns
Type Description
boolean

Whether the cloudStorageResult field is set.

hasError()

public boolean hasError()

Error if one was encountered.

.google.rpc.Status error = 2;

Returns
Type Description
boolean

Whether the error field is set.

hasInlineResult()

public boolean hasInlineResult()

Recognition results. This is populated only when InlineOutputConfig is set in the RecognitionOutputConfig.

.google.cloud.speech.v2.InlineResult inline_result = 6;

Returns
Type Description
boolean

Whether the inlineResult field is set.

hasMetadata()

public boolean hasMetadata()

.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 3;

Returns
Type Description
boolean

Whether the metadata field is set.

hasTranscript() (deprecated)

public boolean hasTranscript()

Deprecated. google.cloud.speech.v2.BatchRecognizeFileResult.transcript is deprecated. See google/cloud/speech/v2/cloud_speech.proto;l=1429

Deprecated. Use inline_result.transcript instead.

.google.cloud.speech.v2.BatchRecognizeResults transcript = 4 [deprecated = true];

Returns
Type Description
boolean

Whether the transcript field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCloudStorageResult(CloudStorageResult value)

public BatchRecognizeFileResult.Builder mergeCloudStorageResult(CloudStorageResult value)

Recognition results written to Cloud Storage. This is populated only when GcsOutputConfig is set in the RecognitionOutputConfig.

.google.cloud.speech.v2.CloudStorageResult cloud_storage_result = 5;

Parameter
Name Description
value CloudStorageResult
Returns
Type Description
BatchRecognizeFileResult.Builder

mergeError(Status value)

public BatchRecognizeFileResult.Builder mergeError(Status value)

Error if one was encountered.

.google.rpc.Status error = 2;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
BatchRecognizeFileResult.Builder

mergeFrom(BatchRecognizeFileResult other)

public BatchRecognizeFileResult.Builder mergeFrom(BatchRecognizeFileResult other)
Parameter
Name Description
other BatchRecognizeFileResult
Returns
Type Description
BatchRecognizeFileResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BatchRecognizeFileResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchRecognizeFileResult.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BatchRecognizeFileResult.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BatchRecognizeFileResult.Builder
Overrides

mergeInlineResult(InlineResult value)

public BatchRecognizeFileResult.Builder mergeInlineResult(InlineResult value)

Recognition results. This is populated only when InlineOutputConfig is set in the RecognitionOutputConfig.

.google.cloud.speech.v2.InlineResult inline_result = 6;

Parameter
Name Description
value InlineResult
Returns
Type Description
BatchRecognizeFileResult.Builder

mergeMetadata(RecognitionResponseMetadata value)

public BatchRecognizeFileResult.Builder mergeMetadata(RecognitionResponseMetadata value)

.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 3;

Parameter
Name Description
value RecognitionResponseMetadata
Returns
Type Description
BatchRecognizeFileResult.Builder

mergeTranscript(BatchRecognizeResults value) (deprecated)

public BatchRecognizeFileResult.Builder mergeTranscript(BatchRecognizeResults value)

Deprecated. Use inline_result.transcript instead.

.google.cloud.speech.v2.BatchRecognizeResults transcript = 4 [deprecated = true];

Parameter
Name Description
value BatchRecognizeResults
Returns
Type Description
BatchRecognizeFileResult.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchRecognizeFileResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchRecognizeFileResult.Builder
Overrides

setCloudStorageResult(CloudStorageResult value)

public BatchRecognizeFileResult.Builder setCloudStorageResult(CloudStorageResult value)

Recognition results written to Cloud Storage. This is populated only when GcsOutputConfig is set in the RecognitionOutputConfig.

.google.cloud.speech.v2.CloudStorageResult cloud_storage_result = 5;

Parameter
Name Description
value CloudStorageResult
Returns
Type Description
BatchRecognizeFileResult.Builder

setCloudStorageResult(CloudStorageResult.Builder builderForValue)

public BatchRecognizeFileResult.Builder setCloudStorageResult(CloudStorageResult.Builder builderForValue)

Recognition results written to Cloud Storage. This is populated only when GcsOutputConfig is set in the RecognitionOutputConfig.

.google.cloud.speech.v2.CloudStorageResult cloud_storage_result = 5;

Parameter
Name Description
builderForValue CloudStorageResult.Builder
Returns
Type Description
BatchRecognizeFileResult.Builder

setError(Status value)

public BatchRecognizeFileResult.Builder setError(Status value)

Error if one was encountered.

.google.rpc.Status error = 2;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
BatchRecognizeFileResult.Builder

setError(Status.Builder builderForValue)

public BatchRecognizeFileResult.Builder setError(Status.Builder builderForValue)

Error if one was encountered.

.google.rpc.Status error = 2;

Parameter
Name Description
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
BatchRecognizeFileResult.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BatchRecognizeFileResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BatchRecognizeFileResult.Builder
Overrides

setInlineResult(InlineResult value)

public BatchRecognizeFileResult.Builder setInlineResult(InlineResult value)

Recognition results. This is populated only when InlineOutputConfig is set in the RecognitionOutputConfig.

.google.cloud.speech.v2.InlineResult inline_result = 6;

Parameter
Name Description
value InlineResult
Returns
Type Description
BatchRecognizeFileResult.Builder

setInlineResult(InlineResult.Builder builderForValue)

public BatchRecognizeFileResult.Builder setInlineResult(InlineResult.Builder builderForValue)

Recognition results. This is populated only when InlineOutputConfig is set in the RecognitionOutputConfig.

.google.cloud.speech.v2.InlineResult inline_result = 6;

Parameter
Name Description
builderForValue InlineResult.Builder
Returns
Type Description
BatchRecognizeFileResult.Builder

setMetadata(RecognitionResponseMetadata value)

public BatchRecognizeFileResult.Builder setMetadata(RecognitionResponseMetadata value)

.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 3;

Parameter
Name Description
value RecognitionResponseMetadata
Returns
Type Description
BatchRecognizeFileResult.Builder

setMetadata(RecognitionResponseMetadata.Builder builderForValue)

public BatchRecognizeFileResult.Builder setMetadata(RecognitionResponseMetadata.Builder builderForValue)

.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 3;

Parameter
Name Description
builderForValue RecognitionResponseMetadata.Builder
Returns
Type Description
BatchRecognizeFileResult.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BatchRecognizeFileResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BatchRecognizeFileResult.Builder
Overrides

setTranscript(BatchRecognizeResults value) (deprecated)

public BatchRecognizeFileResult.Builder setTranscript(BatchRecognizeResults value)

Deprecated. Use inline_result.transcript instead.

.google.cloud.speech.v2.BatchRecognizeResults transcript = 4 [deprecated = true];

Parameter
Name Description
value BatchRecognizeResults
Returns
Type Description
BatchRecognizeFileResult.Builder

setTranscript(BatchRecognizeResults.Builder builderForValue) (deprecated)

public BatchRecognizeFileResult.Builder setTranscript(BatchRecognizeResults.Builder builderForValue)

Deprecated. Use inline_result.transcript instead.

.google.cloud.speech.v2.BatchRecognizeResults transcript = 4 [deprecated = true];

Parameter
Name Description
builderForValue BatchRecognizeResults.Builder
Returns
Type Description
BatchRecognizeFileResult.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final BatchRecognizeFileResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchRecognizeFileResult.Builder
Overrides

setUri(String value) (deprecated)

public BatchRecognizeFileResult.Builder setUri(String value)

Deprecated. google.cloud.speech.v2.BatchRecognizeFileResult.uri is deprecated. See google/cloud/speech/v2/cloud_speech.proto;l=1426

Deprecated. Use cloud_storage_result.native_format_uri instead.

string uri = 1 [deprecated = true];

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
BatchRecognizeFileResult.Builder

This builder for chaining.

setUriBytes(ByteString value) (deprecated)

public BatchRecognizeFileResult.Builder setUriBytes(ByteString value)

Deprecated. google.cloud.speech.v2.BatchRecognizeFileResult.uri is deprecated. See google/cloud/speech/v2/cloud_speech.proto;l=1426

Deprecated. Use cloud_storage_result.native_format_uri instead.

string uri = 1 [deprecated = true];

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
BatchRecognizeFileResult.Builder

This builder for chaining.