Class BatchRecognizeTranscriptionMetadata.Builder (4.78.0)

public static final class BatchRecognizeTranscriptionMetadata.Builder extends GeneratedMessage.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

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

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.

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 GeneratedMessage.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

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

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.

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.