Class BatchTranslateMetadata.Builder (2.45.0)

public static final class BatchTranslateMetadata.Builder extends GeneratedMessageV3.Builder<BatchTranslateMetadata.Builder> implements BatchTranslateMetadataOrBuilder

State metadata for the batch translation operation.

Protobuf type google.cloud.translation.v3beta1.BatchTranslateMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchTranslateMetadata build()
Returns
Type Description
BatchTranslateMetadata

buildPartial()

public BatchTranslateMetadata buildPartial()
Returns
Type Description
BatchTranslateMetadata

clear()

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

clearFailedCharacters()

public BatchTranslateMetadata.Builder clearFailedCharacters()

Number of characters that have failed to process so far (Unicode codepoints).

int64 failed_characters = 3;

Returns
Type Description
BatchTranslateMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public BatchTranslateMetadata.Builder clearState()

The state of the operation.

.google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1;

Returns
Type Description
BatchTranslateMetadata.Builder

This builder for chaining.

clearSubmitTime()

public BatchTranslateMetadata.Builder clearSubmitTime()

Time when the operation was submitted.

.google.protobuf.Timestamp submit_time = 5;

Returns
Type Description
BatchTranslateMetadata.Builder

clearTotalCharacters()

public BatchTranslateMetadata.Builder clearTotalCharacters()

Total number of characters (Unicode codepoints). This is the total number of codepoints from input files times the number of target languages and appears here shortly after the call is submitted.

int64 total_characters = 4;

Returns
Type Description
BatchTranslateMetadata.Builder

This builder for chaining.

clearTranslatedCharacters()

public BatchTranslateMetadata.Builder clearTranslatedCharacters()

Number of successfully translated characters so far (Unicode codepoints).

int64 translated_characters = 2;

Returns
Type Description
BatchTranslateMetadata.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public BatchTranslateMetadata getDefaultInstanceForType()
Returns
Type Description
BatchTranslateMetadata

getDescriptorForType()

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

getFailedCharacters()

public long getFailedCharacters()

Number of characters that have failed to process so far (Unicode codepoints).

int64 failed_characters = 3;

Returns
Type Description
long

The failedCharacters.

getState()

public BatchTranslateMetadata.State getState()

The state of the operation.

.google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1;

Returns
Type Description
BatchTranslateMetadata.State

The state.

getStateValue()

public int getStateValue()

The state of the operation.

.google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1;

Returns
Type Description
int

The enum numeric value on the wire for state.

getSubmitTime()

public Timestamp getSubmitTime()

Time when the operation was submitted.

.google.protobuf.Timestamp submit_time = 5;

Returns
Type Description
Timestamp

The submitTime.

getSubmitTimeBuilder()

public Timestamp.Builder getSubmitTimeBuilder()

Time when the operation was submitted.

.google.protobuf.Timestamp submit_time = 5;

Returns
Type Description
Builder

getSubmitTimeOrBuilder()

public TimestampOrBuilder getSubmitTimeOrBuilder()

Time when the operation was submitted.

.google.protobuf.Timestamp submit_time = 5;

Returns
Type Description
TimestampOrBuilder

getTotalCharacters()

public long getTotalCharacters()

Total number of characters (Unicode codepoints). This is the total number of codepoints from input files times the number of target languages and appears here shortly after the call is submitted.

int64 total_characters = 4;

Returns
Type Description
long

The totalCharacters.

getTranslatedCharacters()

public long getTranslatedCharacters()

Number of successfully translated characters so far (Unicode codepoints).

int64 translated_characters = 2;

Returns
Type Description
long

The translatedCharacters.

hasSubmitTime()

public boolean hasSubmitTime()

Time when the operation was submitted.

.google.protobuf.Timestamp submit_time = 5;

Returns
Type Description
boolean

Whether the submitTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchTranslateMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSubmitTime(Timestamp value)

public BatchTranslateMetadata.Builder mergeSubmitTime(Timestamp value)

Time when the operation was submitted.

.google.protobuf.Timestamp submit_time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
BatchTranslateMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setFailedCharacters(long value)

public BatchTranslateMetadata.Builder setFailedCharacters(long value)

Number of characters that have failed to process so far (Unicode codepoints).

int64 failed_characters = 3;

Parameter
Name Description
value long

The failedCharacters to set.

Returns
Type Description
BatchTranslateMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setState(BatchTranslateMetadata.State value)

public BatchTranslateMetadata.Builder setState(BatchTranslateMetadata.State value)

The state of the operation.

.google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1;

Parameter
Name Description
value BatchTranslateMetadata.State

The state to set.

Returns
Type Description
BatchTranslateMetadata.Builder

This builder for chaining.

setStateValue(int value)

public BatchTranslateMetadata.Builder setStateValue(int value)

The state of the operation.

.google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
BatchTranslateMetadata.Builder

This builder for chaining.

setSubmitTime(Timestamp value)

public BatchTranslateMetadata.Builder setSubmitTime(Timestamp value)

Time when the operation was submitted.

.google.protobuf.Timestamp submit_time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
BatchTranslateMetadata.Builder

setSubmitTime(Timestamp.Builder builderForValue)

public BatchTranslateMetadata.Builder setSubmitTime(Timestamp.Builder builderForValue)

Time when the operation was submitted.

.google.protobuf.Timestamp submit_time = 5;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
BatchTranslateMetadata.Builder

setTotalCharacters(long value)

public BatchTranslateMetadata.Builder setTotalCharacters(long value)

Total number of characters (Unicode codepoints). This is the total number of codepoints from input files times the number of target languages and appears here shortly after the call is submitted.

int64 total_characters = 4;

Parameter
Name Description
value long

The totalCharacters to set.

Returns
Type Description
BatchTranslateMetadata.Builder

This builder for chaining.

setTranslatedCharacters(long value)

public BatchTranslateMetadata.Builder setTranslatedCharacters(long value)

Number of successfully translated characters so far (Unicode codepoints).

int64 translated_characters = 2;

Parameter
Name Description
value long

The translatedCharacters to set.

Returns
Type Description
BatchTranslateMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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