Class BatchTranslateDocumentMetadata.Builder (2.9.0)

Stay organized with collections Save and categorize content based on your preferences.
public static final class BatchTranslateDocumentMetadata.Builder extends GeneratedMessageV3.Builder<BatchTranslateDocumentMetadata.Builder> implements BatchTranslateDocumentMetadataOrBuilder

State metadata for the batch translation operation.

Protobuf type google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchTranslateDocumentMetadata build()
Returns
TypeDescription
BatchTranslateDocumentMetadata

buildPartial()

public BatchTranslateDocumentMetadata buildPartial()
Returns
TypeDescription
BatchTranslateDocumentMetadata

clear()

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

clearFailedCharacters()

public BatchTranslateDocumentMetadata.Builder clearFailedCharacters()

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

int64 failed_characters = 8;

Returns
TypeDescription
BatchTranslateDocumentMetadata.Builder

This builder for chaining.

clearFailedPages()

public BatchTranslateDocumentMetadata.Builder clearFailedPages()

Number of pages that failed to process in all documents so far. Documents without clear page definition (such as XLSX) are not counted.

int64 failed_pages = 4;

Returns
TypeDescription
BatchTranslateDocumentMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public BatchTranslateDocumentMetadata.Builder clearState()

The state of the operation.

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

Returns
TypeDescription
BatchTranslateDocumentMetadata.Builder

This builder for chaining.

clearSubmitTime()

public BatchTranslateDocumentMetadata.Builder clearSubmitTime()

Time when the operation was submitted.

.google.protobuf.Timestamp submit_time = 10;

Returns
TypeDescription
BatchTranslateDocumentMetadata.Builder

clearTotalBillableCharacters()

public BatchTranslateDocumentMetadata.Builder clearTotalBillableCharacters()

Number of billable characters (Unicode codepoints) in documents without clear page definition (such as XLSX) so far.

int64 total_billable_characters = 9;

Returns
TypeDescription
BatchTranslateDocumentMetadata.Builder

This builder for chaining.

clearTotalBillablePages()

public BatchTranslateDocumentMetadata.Builder clearTotalBillablePages()

Number of billable pages in documents with clear page definition (such as PDF, DOCX, PPTX) so far.

int64 total_billable_pages = 5;

Returns
TypeDescription
BatchTranslateDocumentMetadata.Builder

This builder for chaining.

clearTotalCharacters()

public BatchTranslateDocumentMetadata.Builder clearTotalCharacters()

Total number of characters (Unicode codepoints) in all documents so far.

int64 total_characters = 6;

Returns
TypeDescription
BatchTranslateDocumentMetadata.Builder

This builder for chaining.

clearTotalPages()

public BatchTranslateDocumentMetadata.Builder clearTotalPages()

Total number of pages to translate in all documents so far. Documents without clear page definition (such as XLSX) are not counted.

int64 total_pages = 2;

Returns
TypeDescription
BatchTranslateDocumentMetadata.Builder

This builder for chaining.

clearTranslatedCharacters()

public BatchTranslateDocumentMetadata.Builder clearTranslatedCharacters()

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

int64 translated_characters = 7;

Returns
TypeDescription
BatchTranslateDocumentMetadata.Builder

This builder for chaining.

clearTranslatedPages()

public BatchTranslateDocumentMetadata.Builder clearTranslatedPages()

Number of successfully translated pages in all documents so far. Documents without clear page definition (such as XLSX) are not counted.

<