Class BatchTranslateMetadata.Builder (2.9.0)

Stay organized with collections Save and categorize content based on your preferences.
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
TypeDescr