Class BatchRecognizeFileResult.Builder (4.12.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

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

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

clearTranscript()

public BatchRecognizeFileResult.Builder clearTranscript()

The transcript for the audio file. This is populated only when InlineOutputConfig is set in the RecognitionOutputConfig.

.google.cloud.speech.v2.BatchRecognizeResults transcript = 4;

Returns
TypeDescription
BatchRecognizeFileResult.Builder

clearUri()

public BatchRecognizeFileResult.Builder clearUri()

The Cloud Storage URI to which recognition results were written.

string uri = 1;

Returns
TypeDescription
BatchRecognizeFileResult.Builder

This builder for chaining.

clone()

public BatchRecognizeFileResult.Builder clone()
Returns
TypeDescription
BatchRecognizeFileResult.Builder
Overrides

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

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

getTranscript()

public BatchRecognizeResults getTranscript()

The transcript for the audio file. This is populated only when InlineOutputConfig is set in the RecognitionOutputConfig.

.google.cloud.speech.v2.BatchRecognizeResults transcript = 4;

Returns
TypeDescription
BatchRecognizeResults

The transcript.

getTranscriptBuilder()

public BatchRecognizeResults.Builder getTranscriptBuilder()

The transcript for the audio file. This is populated only when InlineOutputConfig is set in the RecognitionOutputConfig.

.google.cloud.speech.v2.BatchRecognizeResults transcript = 4;

Returns
TypeDescription
BatchRecognizeResults.Builder

getTranscriptOrBuilder()

public BatchRecognizeResultsOrBuilder getTranscriptOrBuilder()

The transcript for the audio file. This is populated only when InlineOutputConfig is set in the RecognitionOutputConfig.

.google.cloud.speech.v2.BatchRecognizeResults transcript = 4;

Returns
TypeDescription
BatchRecognizeResultsOrBuilder

getUri()

public String getUri()

The Cloud Storage URI to which recognition results were written.

string uri = 1;

Returns
TypeDescription
String

The uri.

getUriBytes()

public ByteString getUriBytes()

The Cloud Storage URI to which recognition results were written.

string uri = 1;

Returns
TypeDescription
ByteString

The bytes for uri.

hasError()

public boolean hasError()

Error if one was encountered.

.google.rpc.Status error = 2;

Returns
TypeDescription
boolean

Whether the error field is set.

hasMetadata()

public boolean hasMetadata()

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

Returns
TypeDescription
boolean

Whether the metadata field is set.

hasTranscript()

public boolean hasTranscript()

The transcript for the audio file. This is populated only when InlineOutputConfig is set in the RecognitionOutputConfig.

.google.cloud.speech.v2.BatchRecognizeResults transcript = 4;

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

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

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)

public BatchRecognizeFileResult.Builder mergeTranscript(BatchRecognizeResults value)

The transcript for the audio file. This is populated only when InlineOutputConfig is set in the RecognitionOutputConfig.

.google.cloud.speech.v2.BatchRecognizeResults transcript = 4;

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

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

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)

public BatchRecognizeFileResult.Builder setTranscript(BatchRecognizeResults value)

The transcript for the audio file. This is populated only when InlineOutputConfig is set in the RecognitionOutputConfig.

.google.cloud.speech.v2.BatchRecognizeResults transcript = 4;

Parameter
NameDescription
valueBatchRecognizeResults
Returns
TypeDescription
BatchRecognizeFileResult.Builder

setTranscript(BatchRecognizeResults.Builder builderForValue)

public BatchRecognizeFileResult.Builder setTranscript(BatchRecognizeResults.Builder builderForValue)

The transcript for the audio file. This is populated only when InlineOutputConfig is set in the RecognitionOutputConfig.

.google.cloud.speech.v2.BatchRecognizeResults transcript = 4;

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)

public BatchRecognizeFileResult.Builder setUri(String value)

The Cloud Storage URI to which recognition results were written.

string uri = 1;

Parameter
NameDescription
valueString

The uri to set.

Returns
TypeDescription
BatchRecognizeFileResult.Builder

This builder for chaining.

setUriBytes(ByteString value)

public BatchRecognizeFileResult.Builder setUriBytes(ByteString value)

The Cloud Storage URI to which recognition results were written.

string uri = 1;

Parameter
NameDescription
valueByteString

The bytes for uri to set.

Returns
TypeDescription
BatchRecognizeFileResult.Builder

This builder for chaining.