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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > BatchTranslateDocumentResponse.BuilderImplements
BatchTranslateDocumentResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BatchTranslateDocumentResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
BatchTranslateDocumentResponse.Builder |
build()
public BatchTranslateDocumentResponse build()
Type | Description |
BatchTranslateDocumentResponse |
buildPartial()
public BatchTranslateDocumentResponse buildPartial()
Type | Description |
BatchTranslateDocumentResponse |
clear()
public BatchTranslateDocumentResponse.Builder clear()
Type | Description |
BatchTranslateDocumentResponse.Builder |
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;
Type | Description |
BatchTranslateDocumentResponse.Builder |
clearFailedCharacters()
public BatchTranslateDocumentResponse.Builder clearFailedCharacters()
Number of characters that have failed to process (Unicode codepoints) in all documents.
int64 failed_characters = 7;
Type | Description |
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;
Type | Description |
BatchTranslateDocumentResponse.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public BatchTranslateDocumentResponse.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
BatchTranslateDocumentResponse.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public BatchTranslateDocumentResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
BatchTranslateDocumentResponse.Builder |
clearSubmitTime()
public BatchTranslateDocumentResponse.Builder clearSubmitTime()
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 9;
Type | Description |
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;
Type | Description |
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;
Type | Description |
BatchTranslateDocumentResponse.Builder | This builder for chaining. |
clearTotalCharacters()
public BatchTranslateDocumentResponse.Builder clearTotalCharacters()
Total number of characters (Unicode codepoints) in all documents.
int64 total_characters = 5;
Type | Description |
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;
Type | Description |
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;
Type | Description |
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.