Class AsyncRecognizeMetadata.Builder (4.40.0)

public static final class AsyncRecognizeMetadata.Builder extends GeneratedMessageV3.Builder<AsyncRecognizeMetadata.Builder> implements AsyncRecognizeMetadataOrBuilder

Describes the progress of a long-running AsyncRecognize call. It is included in the metadata field of the Operation returned by the GetOperation call of the google::longrunning::Operations service.

Protobuf type google.cloud.speech.v1beta1.AsyncRecognizeMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AsyncRecognizeMetadata build()
Returns
Type Description
AsyncRecognizeMetadata

buildPartial()

public AsyncRecognizeMetadata buildPartial()
Returns
Type Description
AsyncRecognizeMetadata

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearLastUpdateTime()

public AsyncRecognizeMetadata.Builder clearLastUpdateTime()

Time of the most recent processing update.

.google.protobuf.Timestamp last_update_time = 3;

Returns
Type Description
AsyncRecognizeMetadata.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProgressPercent()

public AsyncRecognizeMetadata.Builder clearProgressPercent()

Approximate percentage of audio processed thus far. Guaranteed to be 100 when the audio is fully processed and the results are available.

int32 progress_percent = 1;

Returns
Type Description
AsyncRecognizeMetadata.Builder

clearStartTime()

public AsyncRecognizeMetadata.Builder clearStartTime()

Time when the request was received.

.google.protobuf.Timestamp start_time = 2;

Returns
Type Description
AsyncRecognizeMetadata.Builder

clone()

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

getDefaultInstanceForType()

public AsyncRecognizeMetadata getDefaultInstanceForType()
Returns
Type Description
AsyncRecognizeMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLastUpdateTime()

public Timestamp getLastUpdateTime()

Time of the most recent processing update.

.google.protobuf.Timestamp last_update_time = 3;

Returns
Type Description
Timestamp

getLastUpdateTimeBuilder()

public Timestamp.Builder getLastUpdateTimeBuilder()

Time of the most recent processing update.

.google.protobuf.Timestamp last_update_time = 3;

Returns
Type Description
Builder

getLastUpdateTimeOrBuilder()

public TimestampOrBuilder getLastUpdateTimeOrBuilder()

Time of the most recent processing update.

.google.protobuf.Timestamp last_update_time = 3;

Returns
Type Description
TimestampOrBuilder

getProgressPercent()

public int getProgressPercent()

Approximate percentage of audio processed thus far. Guaranteed to be 100 when the audio is fully processed and the results are available.

int32 progress_percent = 1;

Returns
Type Description
int

getStartTime()

public Timestamp getStartTime()

Time when the request was received.

.google.protobuf.Timestamp start_time = 2;

Returns
Type Description
Timestamp

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Time when the request was received.

.google.protobuf.Timestamp start_time = 2;

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Time when the request was received.

.google.protobuf.Timestamp start_time = 2;

Returns
Type Description
TimestampOrBuilder

hasLastUpdateTime()

public boolean hasLastUpdateTime()

Time of the most recent processing update.

.google.protobuf.Timestamp last_update_time = 3;

Returns
Type Description
boolean

hasStartTime()

public boolean hasStartTime()

Time when the request was received.

.google.protobuf.Timestamp start_time = 2;

Returns
Type Description
boolean

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AsyncRecognizeMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLastUpdateTime(Timestamp value)

public AsyncRecognizeMetadata.Builder mergeLastUpdateTime(Timestamp value)

Time of the most recent processing update.

.google.protobuf.Timestamp last_update_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
AsyncRecognizeMetadata.Builder

mergeStartTime(Timestamp value)

public AsyncRecognizeMetadata.Builder mergeStartTime(Timestamp value)

Time when the request was received.

.google.protobuf.Timestamp start_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
AsyncRecognizeMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setLastUpdateTime(Timestamp value)

public AsyncRecognizeMetadata.Builder setLastUpdateTime(Timestamp value)

Time of the most recent processing update.

.google.protobuf.Timestamp last_update_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
AsyncRecognizeMetadata.Builder

setLastUpdateTime(Timestamp.Builder builderForValue)

public AsyncRecognizeMetadata.Builder setLastUpdateTime(Timestamp.Builder builderForValue)

Time of the most recent processing update.

.google.protobuf.Timestamp last_update_time = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AsyncRecognizeMetadata.Builder

setProgressPercent(int value)

public AsyncRecognizeMetadata.Builder setProgressPercent(int value)

Approximate percentage of audio processed thus far. Guaranteed to be 100 when the audio is fully processed and the results are available.

int32 progress_percent = 1;

Parameter
Name Description
value int
Returns
Type Description
AsyncRecognizeMetadata.Builder

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

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

setStartTime(Timestamp value)

public AsyncRecognizeMetadata.Builder setStartTime(Timestamp value)

Time when the request was received.

.google.protobuf.Timestamp start_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
AsyncRecognizeMetadata.Builder

setStartTime(Timestamp.Builder builderForValue)

public AsyncRecognizeMetadata.Builder setStartTime(Timestamp.Builder builderForValue)

Time when the request was received.

.google.protobuf.Timestamp start_time = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AsyncRecognizeMetadata.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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