Class LongRunningRecognizeMetadata.Builder (4.0.0)

public static final class LongRunningRecognizeMetadata.Builder extends GeneratedMessageV3.Builder<LongRunningRecognizeMetadata.Builder> implements LongRunningRecognizeMetadataOrBuilder

Describes the progress of a long-running LongRunningRecognize 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.v1p1beta1.LongRunningRecognizeMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LongRunningRecognizeMetadata build()
Returns
TypeDescription
LongRunningRecognizeMetadata

buildPartial()

public LongRunningRecognizeMetadata buildPartial()
Returns
TypeDescription
LongRunningRecognizeMetadata

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearLastUpdateTime()

public LongRunningRecognizeMetadata.Builder clearLastUpdateTime()

Time of the most recent processing update.

.google.protobuf.Timestamp last_update_time = 3;

Returns
TypeDescription
LongRunningRecognizeMetadata.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOutputConfig()

public LongRunningRecognizeMetadata.Builder clearOutputConfig()

Output only. A copy of the TranscriptOutputConfig if it was set in the request.

.google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
LongRunningRecognizeMetadata.Builder

clearProgressPercent()

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

This builder for chaining.

clearStartTime()

public LongRunningRecognizeMetadata.Builder clearStartTime()

Time when the request was received.

.google.protobuf.Timestamp start_time = 2;

Returns
TypeDescription
LongRunningRecognizeMetadata.Builder

clearUri()

public LongRunningRecognizeMetadata.Builder clearUri()

Output only. The URI of the audio file being transcribed. Empty if the audio was sent as byte content.

string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
LongRunningRecognizeMetadata.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public LongRunningRecognizeMetadata getDefaultInstanceForType()
Returns
TypeDescription
LongRunningRecognizeMetadata

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

The lastUpdateTime.

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

getOutputConfig()

public TranscriptOutputConfig getOutputConfig()

Output only. A copy of the TranscriptOutputConfig if it was set in the request.

.google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TranscriptOutputConfig

The outputConfig.

getOutputConfigBuilder()

public TranscriptOutputConfig.Builder getOutputConfigBuilder()

Output only. A copy of the TranscriptOutputConfig if it was set in the request.

.google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TranscriptOutputConfig.Builder

getOutputConfigOrBuilder()

public TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder()

Output only. A copy of the TranscriptOutputConfig if it was set in the request.

.google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TranscriptOutputConfigOrBuilder

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

The progressPercent.

getStartTime()

public Timestamp getStartTime()

Time when the request was received.

.google.protobuf.Timestamp start_time = 2;

Returns
TypeDescription
Timestamp

The startTime.

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

getUri()

public String getUri()

Output only. The URI of the audio file being transcribed. Empty if the audio was sent as byte content.

string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The uri.

getUriBytes()

public ByteString getUriBytes()

Output only. The URI of the audio file being transcribed. Empty if the audio was sent as byte content.

string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for uri.

hasLastUpdateTime()

public boolean hasLastUpdateTime()

Time of the most recent processing update.

.google.protobuf.Timestamp last_update_time = 3;

Returns
TypeDescription
boolean

Whether the lastUpdateTime field is set.

hasOutputConfig()

public boolean hasOutputConfig()

Output only. A copy of the TranscriptOutputConfig if it was set in the request.

.google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the outputConfig field is set.

hasStartTime()

public boolean hasStartTime()

Time when the request was received.

.google.protobuf.Timestamp start_time = 2;

Returns
TypeDescription
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(LongRunningRecognizeMetadata other)

public LongRunningRecognizeMetadata.Builder mergeFrom(LongRunningRecognizeMetadata other)
Parameter
NameDescription
otherLongRunningRecognizeMetadata
Returns
TypeDescription
LongRunningRecognizeMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLastUpdateTime(Timestamp value)

public LongRunningRecognizeMetadata.Builder mergeLastUpdateTime(Timestamp value)

Time of the most recent processing update.

.google.protobuf.Timestamp last_update_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
LongRunningRecognizeMetadata.Builder

mergeOutputConfig(TranscriptOutputConfig value)

public LongRunningRecognizeMetadata.Builder mergeOutputConfig(TranscriptOutputConfig value)

Output only. A copy of the TranscriptOutputConfig if it was set in the request.

.google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTranscriptOutputConfig
Returns
TypeDescription
LongRunningRecognizeMetadata.Builder

mergeStartTime(Timestamp value)

public LongRunningRecognizeMetadata.Builder mergeStartTime(Timestamp value)

Time when the request was received.

.google.protobuf.Timestamp start_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
LongRunningRecognizeMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setLastUpdateTime(Timestamp value)

public LongRunningRecognizeMetadata.Builder setLastUpdateTime(Timestamp value)

Time of the most recent processing update.

.google.protobuf.Timestamp last_update_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
LongRunningRecognizeMetadata.Builder

setLastUpdateTime(Timestamp.Builder builderForValue)

public LongRunningRecognizeMetadata.Builder setLastUpdateTime(Timestamp.Builder builderForValue)

Time of the most recent processing update.

.google.protobuf.Timestamp last_update_time = 3;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
LongRunningRecognizeMetadata.Builder

setOutputConfig(TranscriptOutputConfig value)

public LongRunningRecognizeMetadata.Builder setOutputConfig(TranscriptOutputConfig value)

Output only. A copy of the TranscriptOutputConfig if it was set in the request.

.google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTranscriptOutputConfig
Returns
TypeDescription
LongRunningRecognizeMetadata.Builder

setOutputConfig(TranscriptOutputConfig.Builder builderForValue)

public LongRunningRecognizeMetadata.Builder setOutputConfig(TranscriptOutputConfig.Builder builderForValue)

Output only. A copy of the TranscriptOutputConfig if it was set in the request.

.google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueTranscriptOutputConfig.Builder
Returns
TypeDescription
LongRunningRecognizeMetadata.Builder

setProgressPercent(int value)

public LongRunningRecognizeMetadata.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

The progressPercent to set.

Returns
TypeDescription
LongRunningRecognizeMetadata.Builder

This builder for chaining.

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

public LongRunningRecognizeMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
LongRunningRecognizeMetadata.Builder
Overrides

setStartTime(Timestamp value)

public LongRunningRecognizeMetadata.Builder setStartTime(Timestamp value)

Time when the request was received.

.google.protobuf.Timestamp start_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
LongRunningRecognizeMetadata.Builder

setStartTime(Timestamp.Builder builderForValue)

public LongRunningRecognizeMetadata.Builder setStartTime(Timestamp.Builder builderForValue)

Time when the request was received.

.google.protobuf.Timestamp start_time = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
LongRunningRecognizeMetadata.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUri(String value)

public LongRunningRecognizeMetadata.Builder setUri(String value)

Output only. The URI of the audio file being transcribed. Empty if the audio was sent as byte content.

string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The uri to set.

Returns
TypeDescription
LongRunningRecognizeMetadata.Builder

This builder for chaining.

setUriBytes(ByteString value)

public LongRunningRecognizeMetadata.Builder setUriBytes(ByteString value)

Output only. The URI of the audio file being transcribed. Empty if the audio was sent as byte content.

string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for uri to set.

Returns
TypeDescription
LongRunningRecognizeMetadata.Builder

This builder for chaining.