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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchRecognizeTranscriptionMetadata build()
Returns
TypeDescription
BatchRecognizeTranscriptionMetadata

buildPartial()

public BatchRecognizeTranscriptionMetadata buildPartial()
Returns
TypeDescription
BatchRecognizeTranscriptionMetadata

clear()

public BatchRecognizeTranscriptionMetadata.Builder clear()
Returns
TypeDescription
BatchRecognizeTranscriptionMetadata.Builder
Overrides

clearError()

public BatchRecognizeTranscriptionMetadata.Builder clearError()

Error if one was encountered.

.google.rpc.Status error = 2;

Returns
TypeDescription
BatchRecognizeTranscriptionMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

public BatchRecognizeTranscriptionMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BatchRecognizeTranscriptionMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProgressPercent()

public BatchRecognizeTranscriptionMetadata.Builder clearProgressPercent()

How much of the file has been transcribed so far.

int32 progress_percent = 1;

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public BatchRecognizeTranscriptionMetadata getDefaultInstanceForType()
Returns
TypeDescription
BatchRecognizeTranscriptionMetadata

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

getProgressPercent()

public int getProgressPercent()

How much of the file has been transcribed so far.

int32 progress_percent = 1;

Returns
TypeDescription
int

The progressPercent.

getUri()

public String getUri()

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

string uri = 3;

Returns
TypeDescription
String

The uri.

getUriBytes()

public ByteString getUriBytes()

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

string uri = 3;

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeError(Status value)

public BatchRecognizeTranscriptionMetadata.Builder mergeError(Status value)

Error if one was encountered.

.google.rpc.Status error = 2;

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

mergeFrom(BatchRecognizeTranscriptionMetadata other)

public BatchRecognizeTranscriptionMetadata.Builder mergeFrom(BatchRecognizeTranscriptionMetadata other)
Parameter
NameDescription
otherBatchRecognizeTranscriptionMetadata
Returns
TypeDescription
BatchRecognizeTranscriptionMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public BatchRecognizeTranscriptionMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BatchRecognizeTranscriptionMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchRecognizeTranscriptionMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BatchRecognizeTranscriptionMetadata.Builder
Overrides

setError(Status value)

public BatchRecognizeTranscriptionMetadata.Builder setError(Status value)

Error if one was encountered.

.google.rpc.Status error = 2;

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

setError(Status.Builder builderForValue)

public BatchRecognizeTranscriptionMetadata.Builder setError(Status.Builder builderForValue)

Error if one was encountered.

.google.rpc.Status error = 2;

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The progressPercent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BatchRecognizeTranscriptionMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

The uri to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for uri to set.

Returns
TypeDescription
BatchRecognizeTranscriptionMetadata.Builder

This builder for chaining.