Class BatchTranslateDocumentResponse.Builder (2.9.0)

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

Stored in the google.longrunning.Operation.response field returned by BatchTranslateDocument if at least one document is translated successfully.

Protobuf type google.cloud.translation.v3.BatchTranslateDocumentResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchTranslateDocumentResponse build()
Returns
TypeDescription
BatchTranslateDocumentResponse

buildPartial()

public BatchTranslateDocumentResponse buildPartial()
Returns
TypeDescription
BatchTranslateDocumentResponse

clear()

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

clearEndTime()

public BatchTranslateDocumentResponse.Builder clearEndTime()

The time when the operation is finished and google.longrunning.Operation.done is set to true.

.google.protobuf.Timestamp end_time = 10;

Returns
TypeDescription
BatchTranslateDocumentResponse.Builder

clearFailedCharacters()

public BatchTranslateDocumentResponse.Builder clearFailedCharacters()

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

int64 failed_characters = 7;

Returns
TypeDescription
BatchTranslateDocumentResponse.Builder

This builder for chaining.

clearFailedPages()

public BatchTranslateDocumentResponse.Builder clearFailedPages()

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

int64 failed_pages = 3;

Returns
TypeDescription
BatchTranslateDocumentResponse.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSubmitTime()

public BatchTranslateDocumentResponse.Builder clearSubmitTime()

Time when the operation was submitted.

.google.protobuf.Timestamp submit_time = 9;

Returns
TypeDescription
BatchTranslateDocumentResponse.Builder

clearTotalBillableCharacters()

public BatchTranslateDocumentResponse.Builder clearTotalBillableCharacters()

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

int64 total_billable_characters = 8;

Returns
TypeDescription
BatchTranslateDocumentResponse.Builder

This builder for chaining.

clearTotalBillablePages()

public BatchTranslateDocumentResponse.Builder clearTotalBillablePages()

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

int64 total_billable_pages = 4;

Returns
TypeDescription
BatchTranslateDocumentResponse.Builder

This builder for chaining.

clearTotalCharacters()

public BatchTranslateDocumentResponse.Builder clearTotalCharacters()

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

int64 total_characters = 5;

Returns
TypeDescription
BatchTranslateDocumentResponse.Builder

This builder for chaining.

clearTotalPages()

public BatchTranslateDocumentResponse.Builder clearTotalPages()

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

int64 total_pages = 1;

Returns
TypeDescription
BatchTranslateDocumentResponse.Builder

This builder for chaining.

clearTranslatedCharacters()

public BatchTranslateDocumentResponse.Builder clearTranslatedCharacters()

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

int64 translated_characters = 6;

Returns
TypeDescription
BatchTranslateDocumentResponse.Builder

This builder for chaining.

clearTranslatedPages()

public BatchTranslateDocumentResponse.Builder clearTranslatedPages()

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