Class BatchRecognizeFileResult.Builder (4.29.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchRecognizeFileResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BatchRecognizeFileResult.Builder
Overrides

build()

public BatchRecognizeFileResult build()
Returns
TypeDescription
BatchRecognizeFileResult

buildPartial()

public BatchRecognizeFileResult buildPartial()
Returns
TypeDescription
BatchRecognizeFileResult

clear()

public BatchRecognizeFileResult.Builder clear()
Returns
TypeDescription
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
TypeDescription
BatchRecognizeFileResult.Builder

clearError()

public BatchRecognizeFileResult.Builder clearError()

Error if one was encountered.

.google.rpc.Status error = 2;

Returns
TypeDescription
BatchRecognizeFileResult.Builder

clearField(Descriptors.FieldDescriptor field)

public BatchRecognizeFileResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
BatchRecognizeFileResult.Builder

clearMetadata()

public BatchRecognizeFileResult.Builder clearMetadata()

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

Returns
TypeDescription
BatchRecognizeFileResult.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchRecognizeFileResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BatchRecognizeFileResult.Builder
Overrides

clearResult()

public BatchRecognizeFileResult.Builder clearResult()
Returns
TypeDescription
BatchRecognizeFileResult.Builder

clearTranscript() (deprecated)

public BatchRecognizeFileResult.Builder clearTranscript()

Deprecated. Use inline_result.transcript instead.

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

Returns
TypeDescription
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=1354

Deprecated. Use cloud_storage_result.native_format_uri instead.

string uri = 1 [deprecated = true];

Returns
TypeDescription
BatchRecognizeFileResult.Builder

This builder for chaining.

clone()

public BatchRecognizeFileResult.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CloudStorageResultOrBuilder

getDefaultInstanceForType()

public BatchRecognizeFileResult getDefaultInstanceForType()
Returns
TypeDescription
BatchRecognizeFileResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getError()

public Status getError()

Error if one was encountered.

.google.rpc.Status error = 2;

Returns
TypeDescription
com.google.rpc.Status

The error.

getErrorBuilder()

public Status.Builder getErrorBuilder()

Error if one was encountered.

.google.rpc.Status error = 2;

Returns
TypeDescription
com.google.rpc.Status.Builder

getErrorOrBuilder()

public StatusOrBuilder getErrorOrBuilder()

Error if one was encountered.

.google.rpc.Status error = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
InlineResultOrBuilder

getMetadata()

public RecognitionResponseMetadata getMetadata()

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

Returns
TypeDescription
RecognitionResponseMetadata

The metadata.

getMetadataBuilder()

public RecognitionResponseMetadata.Builder getMetadataBuilder()

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

Returns
TypeDescription
RecognitionResponseMetadata.Builder

getMetadataOrBuilder()

public RecognitionResponseMetadataOrBuilder getMetadataOrBuilder()

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

Returns
TypeDescription
RecognitionResponseMetadataOrBuilder

getResultCase()

public BatchRecognizeFileResult.ResultCase getResultCase()
Returns
TypeDescription
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=1357

Deprecated. Use inline_result.transcript instead.

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

Returns
TypeDescription
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
TypeDescription
BatchRecognizeResults.Builder

getTranscriptOrBuilder() (deprecated)

public BatchRecognizeResultsOrBuilder getTranscriptOrBuilder()

Deprecated. Use inline_result.transcript instead.

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

Returns
TypeDescription
BatchRecognizeResultsOrBuilder

getUri() (deprecated)

public String getUri()

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

Deprecated. Use cloud_storage_result.native_format_uri instead.

string uri = 1 [deprecated = true];

Returns
TypeDescription
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=1354

Deprecated. Use cloud_storage_result.native_format_uri instead.

string uri = 1 [deprecated = true];

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

Whether the cloudStorageResult field is set.

hasError()

public boolean hasError()

Error if one was encountered.

.google.rpc.Status error = 2;

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

Whether the inlineResult field is set.

hasMetadata()

public boolean hasMetadata()

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

Returns
TypeDescription
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=1357

Deprecated. Use inline_result.transcript instead.

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

Returns
TypeDescription
boolean

Whether the transcript field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueCloudStorageResult
Returns
TypeDescription
BatchRecognizeFileResult.Builder

mergeError(Status value)

public BatchRecognizeFileResult.Builder mergeError(Status value)

Error if one was encountered.

.google.rpc.Status error = 2;

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
BatchRecognizeFileResult.Builder

mergeFrom(BatchRecognizeFileResult other)

public BatchRecognizeFileResult.Builder mergeFrom(BatchRecognizeFileResult other)
Parameter
NameDescription
otherBatchRecognizeFileResult
Returns
TypeDescription
BatchRecognizeFileResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BatchRecognizeFileResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchRecognizeFileResult.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BatchRecognizeFileResult.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueInlineResult
Returns
TypeDescription
BatchRecognizeFileResult.Builder

mergeMetadata(RecognitionResponseMetadata value)

public BatchRecognizeFileResult.Builder mergeMetadata(RecognitionResponseMetadata value)

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

Parameter
NameDescription
valueRecognitionResponseMetadata
Returns
TypeDescription
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
NameDescription
valueBatchRecognizeResults
Returns
TypeDescription
BatchRecognizeFileResult.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchRecognizeFileResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueCloudStorageResult
Returns
TypeDescription
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
NameDescription
builderForValueCloudStorageResult.Builder
Returns
TypeDescription
BatchRecognizeFileResult.Builder

setError(Status value)

public BatchRecognizeFileResult.Builder setError(Status value)

Error if one was encountered.

.google.rpc.Status error = 2;

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
BatchRecognizeFileResult.Builder

setError(Status.Builder builderForValue)

public BatchRecognizeFileResult.Builder setError(Status.Builder builderForValue)

Error if one was encountered.

.google.rpc.Status error = 2;

Parameter
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
BatchRecognizeFileResult.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BatchRecognizeFileResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueInlineResult
Returns
TypeDescription
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
NameDescription
builderForValueInlineResult.Builder
Returns
TypeDescription
BatchRecognizeFileResult.Builder

setMetadata(RecognitionResponseMetadata value)

public BatchRecognizeFileResult.Builder setMetadata(RecognitionResponseMetadata value)

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

Parameter
NameDescription
valueRecognitionResponseMetadata
Returns
TypeDescription
BatchRecognizeFileResult.Builder

setMetadata(RecognitionResponseMetadata.Builder builderForValue)

public BatchRecognizeFileResult.Builder setMetadata(RecognitionResponseMetadata.Builder builderForValue)

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

Parameter
NameDescription
builderForValueRecognitionResponseMetadata.Builder
Returns
TypeDescription
BatchRecognizeFileResult.Builder

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

public BatchRecognizeFileResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueBatchRecognizeResults
Returns
TypeDescription
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
NameDescription
builderForValueBatchRecognizeResults.Builder
Returns
TypeDescription
BatchRecognizeFileResult.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final BatchRecognizeFileResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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=1354

Deprecated. Use cloud_storage_result.native_format_uri instead.

string uri = 1 [deprecated = true];

Parameter
NameDescription
valueString

The uri to set.

Returns
TypeDescription
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=1354

Deprecated. Use cloud_storage_result.native_format_uri instead.

string uri = 1 [deprecated = true];

Parameter
NameDescription
valueByteString

The bytes for uri to set.

Returns
TypeDescription
BatchRecognizeFileResult.Builder

This builder for chaining.