Class AsyncRecognizeMetadata.Builder (4.32.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AsyncRecognizeMetadata build()
Returns
TypeDescription
AsyncRecognizeMetadata

buildPartial()

public AsyncRecognizeMetadata buildPartial()
Returns
TypeDescription
AsyncRecognizeMetadata

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearLastUpdateTime()

public AsyncRecognizeMetadata.Builder clearLastUpdateTime()

Time of the most recent processing update.

.google.protobuf.Timestamp last_update_time = 3;

Returns
TypeDescription
AsyncRecognizeMetadata.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AsyncRecognizeMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
AsyncRecognizeMetadata.Builder

clearStartTime()

public AsyncRecognizeMetadata.Builder clearStartTime()

Time when the request was received.

.google.protobuf.Timestamp start_time = 2;

Returns
TypeDescription
AsyncRecognizeMetadata.Builder

clone()

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

getDefaultInstanceForType()

public AsyncRecognizeMetadata getDefaultInstanceForType()
Returns
TypeDescription
AsyncRecognizeMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLastUpdateTime()

public Timestamp getLastUpdateTime()

Time of the most recent processing update.

.google.protobuf.Timestamp last_update_time = 3;

Returns
TypeDescription
Timestamp

getLastUpdateTimeBuilder()

public Timestamp.Builder getLastUpdateTimeBuilder()

Time of the most recent processing update.

.google.protobuf.Timestamp last_update_time = 3;

Returns
TypeDescription
Builder

getLastUpdateTimeOrBuilder()

public TimestampOrBuilder getLastUpdateTimeOrBuilder()

Time of the most recent processing update.

.google.protobuf.Timestamp last_update_time = 3;

Returns
TypeDescription
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
TypeDescription
int

getStartTime()

public Timestamp getStartTime()

Time when the request was received.

.google.protobuf.Timestamp start_time = 2;

Returns
TypeDescription
Timestamp

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Time when the request was received.

.google.protobuf.Timestamp start_time = 2;

Returns
TypeDescription
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Time when the request was received.

.google.protobuf.Timestamp start_time = 2;

Returns
TypeDescription
TimestampOrBuilder

hasLastUpdateTime()

public boolean hasLastUpdateTime()

Time of the most recent processing update.

.google.protobuf.Timestamp last_update_time = 3;

Returns
TypeDescription
boolean

hasStartTime()

public boolean hasStartTime()

Time when the request was received.

.google.protobuf.Timestamp start_time = 2;

Returns
TypeDescription
boolean

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AsyncRecognizeMetadata other)

public AsyncRecognizeMetadata.Builder mergeFrom(AsyncRecognizeMetadata other)
Parameter
NameDescription
otherAsyncRecognizeMetadata
Returns
TypeDescription
AsyncRecognizeMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public AsyncRecognizeMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
AsyncRecognizeMetadata.Builder

mergeStartTime(Timestamp value)

public AsyncRecognizeMetadata.Builder mergeStartTime(Timestamp value)

Time when the request was received.

.google.protobuf.Timestamp start_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
AsyncRecognizeMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public AsyncRecognizeMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
AsyncRecognizeMetadata.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final AsyncRecognizeMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AsyncRecognizeMetadata.Builder
Overrides