Class BatchTranslateMetadata.Builder (2.3.1)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchTranslateMetadata build()
Returns
TypeDescription
BatchTranslateMetadata

buildPartial()

public BatchTranslateMetadata buildPartial()
Returns
TypeDescription
BatchTranslateMetadata

clear()

public BatchTranslateMetadata.Builder clear()
Returns
TypeDescription
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
TypeDescription
BatchTranslateMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public BatchTranslateMetadata.Builder clearState()

The state of the operation.

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

Returns
TypeDescription
BatchTranslateMetadata.Builder

This builder for chaining.

clearSubmitTime()

public BatchTranslateMetadata.Builder clearSubmitTime()

Time when the operation was submitted.

.google.protobuf.Timestamp submit_time = 5;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
BatchTranslateMetadata.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public BatchTranslateMetadata getDefaultInstanceForType()
Returns
TypeDescription
BatchTranslateMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFailedCharacters()

public long getFailedCharacters()

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

int64 failed_characters = 3;

Returns
TypeDescription
long

The failedCharacters.

getState()

public BatchTranslateMetadata.State getState()

The state of the operation.

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

Returns
TypeDescription
BatchTranslateMetadata.State

The state.

getStateValue()

public int getStateValue()

The state of the operation.

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

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

The submitTime.

getSubmitTimeBuilder()

public Timestamp.Builder getSubmitTimeBuilder()

Time when the operation was submitted.

.google.protobuf.Timestamp submit_time = 5;

Returns
TypeDescription
Builder

getSubmitTimeOrBuilder()

public TimestampOrBuilder getSubmitTimeOrBuilder()

Time when the operation was submitted.

.google.protobuf.Timestamp submit_time = 5;

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

The totalCharacters.

getTranslatedCharacters()

public long getTranslatedCharacters()

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

int64 translated_characters = 2;

Returns
TypeDescription
long

The translatedCharacters.

hasSubmitTime()

public boolean hasSubmitTime()

Time when the operation was submitted.

.google.protobuf.Timestamp submit_time = 5;

Returns
TypeDescription
boolean

Whether the submitTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BatchTranslateMetadata other)

public BatchTranslateMetadata.Builder mergeFrom(BatchTranslateMetadata other)
Parameter
NameDescription
otherBatchTranslateMetadata
Returns
TypeDescription
BatchTranslateMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchTranslateMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuelong

The failedCharacters to set.

Returns
TypeDescription
BatchTranslateMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

The state to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valuelong

The totalCharacters to set.

Returns
TypeDescription
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
NameDescription
valuelong

The translatedCharacters to set.

Returns
TypeDescription
BatchTranslateMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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