Class BatchRecognizeTranscriptionMetadata.Builder (4.39.0)

public static final class BatchRecognizeTranscriptionMetadata.Builder extends GeneratedMessageV3.Builder<BatchRecognizeTranscriptionMetadata.Builder> implements BatchRecognizeTranscriptionMetadataOrBuilder

Metadata about transcription for a single file (for example, progress percent).

Protobuf type google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchRecognizeTranscriptionMetadata build()
Returns
Type Description
BatchRecognizeTranscriptionMetadata

buildPartial()

public BatchRecognizeTranscriptionMetadata buildPartial()
Returns
Type Description
BatchRecognizeTranscriptionMetadata

clear()

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

clearError()

public BatchRecognizeTranscriptionMetadata.Builder clearError()

Error if one was encountered.

.google.rpc.Status error = 2;

Returns
Type Description
BatchRecognizeTranscriptionMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProgressPercent()

public BatchRecognizeTranscriptionMetadata.Builder clearProgressPercent()

How much of the file has been transcribed so far.

int32 progress_percent = 1;

Returns
Type Description
BatchRecognizeTranscriptionMetadata.Builder

This builder for chaining.

clearUri()

public BatchRecognizeTranscriptionMetadata.Builder clearUri()

The Cloud Storage URI to which recognition results will be written.

string uri = 3;

Returns
Type Description
BatchRecognizeTranscriptionMetadata.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public BatchRecognizeTranscriptionMetadata getDefaultInstanceForType()
Returns
Type Description
BatchRecognizeTranscriptionMetadata

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

getProgressPercent()

public int getProgressPercent()

How much of the file has been transcribed so far.

int32 progress_percent = 1;

Returns
Type Description
int

The progressPercent.

getUri()

public String getUri()

The Cloud Storage URI to which recognition results will be written.

string uri = 3;

Returns
Type Description
String

The uri.

getUriBytes()

public ByteString getUriBytes()

The Cloud Storage URI to which recognition results will be written.

string uri = 3;

Returns
Type Description
ByteString

The bytes for uri.

hasError()

public boolean hasError()

Error if one was encountered.

.google.rpc.Status error = 2;

Returns
Type Description
boolean

Whether the error field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeError(Status value)

public BatchRecognizeTranscriptionMetadata.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
BatchRecognizeTranscriptionMetadata.Builder

mergeFrom(BatchRecognizeTranscriptionMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setError(Status value)

public BatchRecognizeTranscriptionMetadata.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
BatchRecognizeTranscriptionMetadata.Builder

setError(Status.Builder builderForValue)

public BatchRecognizeTranscriptionMetadata.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
BatchRecognizeTranscriptionMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setProgressPercent(int value)

public BatchRecognizeTranscriptionMetadata.Builder setProgressPercent(int value)

How much of the file has been transcribed so far.

int32 progress_percent = 1;

Parameter
Name Description
value int

The progressPercent to set.

Returns
Type Description
BatchRecognizeTranscriptionMetadata.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUri(String value)

public BatchRecognizeTranscriptionMetadata.Builder setUri(String value)

The Cloud Storage URI to which recognition results will be written.

string uri = 3;

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
BatchRecognizeTranscriptionMetadata.Builder

This builder for chaining.

setUriBytes(ByteString value)

public BatchRecognizeTranscriptionMetadata.Builder setUriBytes(ByteString value)

The Cloud Storage URI to which recognition results will be written.

string uri = 3;

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
BatchRecognizeTranscriptionMetadata.Builder

This builder for chaining.