- 2.53.0 (latest)
- 2.52.0
- 2.51.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.5
- 2.2.0
- 2.1.13
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.v3beta1.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.
int64 translated_pages = 2;
Type | Description |
BatchTranslateDocumentResponse.Builder | This builder for chaining. |
clone()
public BatchTranslateDocumentResponse.Builder clone()
Type | Description |
BatchTranslateDocumentResponse.Builder |
getDefaultInstanceForType()
public BatchTranslateDocumentResponse getDefaultInstanceForType()
Type | Description |
BatchTranslateDocumentResponse |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getEndTime()
public Timestamp getEndTime()
The time when the operation is finished and google.longrunning.Operation.done is set to true.
.google.protobuf.Timestamp end_time = 10;
Type | Description |
Timestamp | The endTime. |
getEndTimeBuilder()
public Timestamp.Builder getEndTimeBuilder()
The time when the operation is finished and google.longrunning.Operation.done is set to true.
.google.protobuf.Timestamp end_time = 10;
Type | Description |
Builder |
getEndTimeOrBuilder()
public TimestampOrBuilder getEndTimeOrBuilder()
The time when the operation is finished and google.longrunning.Operation.done is set to true.
.google.protobuf.Timestamp end_time = 10;
Type | Description |
TimestampOrBuilder |
getFailedCharacters()
public long getFailedCharacters()
Number of characters that have failed to process (Unicode codepoints) in all documents.
int64 failed_characters = 7;
Type | Description |
long | The failedCharacters. |
getFailedPages()
public long getFailedPages()
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 |
long | The failedPages. |
getSubmitTime()
public Timestamp getSubmitTime()
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 9;
Type | Description |
Timestamp | The submitTime. |
getSubmitTimeBuilder()
public Timestamp.Builder getSubmitTimeBuilder()
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 9;
Type | Description |
Builder |
getSubmitTimeOrBuilder()
public TimestampOrBuilder getSubmitTimeOrBuilder()
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 9;
Type | Description |
TimestampOrBuilder |
getTotalBillableCharacters()
public long getTotalBillableCharacters()
Number of billable characters (Unicode codepoints) in documents without clear page definition, such as XLSX.
int64 total_billable_characters = 8;
Type | Description |
long | The totalBillableCharacters. |
getTotalBillablePages()
public long getTotalBillablePages()
Number of billable pages in documents with clear page definition (such as PDF, DOCX, PPTX)
int64 total_billable_pages = 4;
Type | Description |
long | The totalBillablePages. |
getTotalCharacters()
public long getTotalCharacters()
Total number of characters (Unicode codepoints) in all documents.
int64 total_characters = 5;
Type | Description |
long | The totalCharacters. |
getTotalPages()
public long getTotalPages()
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 |
long | The totalPages. |
getTranslatedCharacters()
public long getTranslatedCharacters()
Number of successfully translated characters (Unicode codepoints) in all documents.
int64 translated_characters = 6;
Type | Description |
long | The translatedCharacters. |
getTranslatedPages()
public long getTranslatedPages()
Number of successfully translated pages in all documents. Documents without clear page definition (such as XLSX) are not counted.
int64 translated_pages = 2;
Type | Description |
long | The translatedPages. |
hasEndTime()
public boolean hasEndTime()
The time when the operation is finished and google.longrunning.Operation.done is set to true.
.google.protobuf.Timestamp end_time = 10;
Type | Description |
boolean | Whether the endTime field is set. |
hasSubmitTime()
public boolean hasSubmitTime()
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 9;
Type | Description |
boolean | Whether the submitTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeEndTime(Timestamp value)
public BatchTranslateDocumentResponse.Builder mergeEndTime(Timestamp value)
The time when the operation is finished and google.longrunning.Operation.done is set to true.
.google.protobuf.Timestamp end_time = 10;
Name | Description |
value | Timestamp |
Type | Description |
BatchTranslateDocumentResponse.Builder |
mergeFrom(BatchTranslateDocumentResponse other)
public BatchTranslateDocumentResponse.Builder mergeFrom(BatchTranslateDocumentResponse other)
Name | Description |
other | BatchTranslateDocumentResponse |
Type | Description |
BatchTranslateDocumentResponse.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public BatchTranslateDocumentResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
BatchTranslateDocumentResponse.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public BatchTranslateDocumentResponse.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
BatchTranslateDocumentResponse.Builder |
mergeSubmitTime(Timestamp value)
public BatchTranslateDocumentResponse.Builder mergeSubmitTime(Timestamp value)
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 9;
Name | Description |
value | Timestamp |
Type | Description |
BatchTranslateDocumentResponse.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BatchTranslateDocumentResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
BatchTranslateDocumentResponse.Builder |
setEndTime(Timestamp value)
public BatchTranslateDocumentResponse.Builder setEndTime(Timestamp value)
The time when the operation is finished and google.longrunning.Operation.done is set to true.
.google.protobuf.Timestamp end_time = 10;
Name | Description |
value | Timestamp |
Type | Description |
BatchTranslateDocumentResponse.Builder |
setEndTime(Timestamp.Builder builderForValue)
public BatchTranslateDocumentResponse.Builder setEndTime(Timestamp.Builder builderForValue)
The time when the operation is finished and google.longrunning.Operation.done is set to true.
.google.protobuf.Timestamp end_time = 10;
Name | Description |
builderForValue | Builder |
Type | Description |
BatchTranslateDocumentResponse.Builder |
setFailedCharacters(long value)
public BatchTranslateDocumentResponse.Builder setFailedCharacters(long value)
Number of characters that have failed to process (Unicode codepoints) in all documents.
int64 failed_characters = 7;
Name | Description |
value | long The failedCharacters to set. |
Type | Description |
BatchTranslateDocumentResponse.Builder | This builder for chaining. |
setFailedPages(long value)
public BatchTranslateDocumentResponse.Builder setFailedPages(long value)
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;
Name | Description |
value | long The failedPages to set. |
Type | Description |
BatchTranslateDocumentResponse.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public BatchTranslateDocumentResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
BatchTranslateDocumentResponse.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BatchTranslateDocumentResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
BatchTranslateDocumentResponse.Builder |
setSubmitTime(Timestamp value)
public BatchTranslateDocumentResponse.Builder setSubmitTime(Timestamp value)
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 9;
Name | Description |
value | Timestamp |
Type | Description |
BatchTranslateDocumentResponse.Builder |
setSubmitTime(Timestamp.Builder builderForValue)
public BatchTranslateDocumentResponse.Builder setSubmitTime(Timestamp.Builder builderForValue)
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 9;
Name | Description |
builderForValue | Builder |
Type | Description |
BatchTranslateDocumentResponse.Builder |
setTotalBillableCharacters(long value)
public BatchTranslateDocumentResponse.Builder setTotalBillableCharacters(long value)
Number of billable characters (Unicode codepoints) in documents without clear page definition, such as XLSX.
int64 total_billable_characters = 8;
Name | Description |
value | long The totalBillableCharacters to set. |
Type | Description |
BatchTranslateDocumentResponse.Builder | This builder for chaining. |
setTotalBillablePages(long value)
public BatchTranslateDocumentResponse.Builder setTotalBillablePages(long value)
Number of billable pages in documents with clear page definition (such as PDF, DOCX, PPTX)
int64 total_billable_pages = 4;
Name | Description |
value | long The totalBillablePages to set. |
Type | Description |
BatchTranslateDocumentResponse.Builder | This builder for chaining. |
setTotalCharacters(long value)
public BatchTranslateDocumentResponse.Builder setTotalCharacters(long value)
Total number of characters (Unicode codepoints) in all documents.
int64 total_characters = 5;
Name | Description |
value | long The totalCharacters to set. |
Type | Description |
BatchTranslateDocumentResponse.Builder | This builder for chaining. |
setTotalPages(long value)
public BatchTranslateDocumentResponse.Builder setTotalPages(long value)
Total number of pages to translate in all documents. Documents without clear page definition (such as XLSX) are not counted.
int64 total_pages = 1;
Name | Description |
value | long The totalPages to set. |
Type | Description |
BatchTranslateDocumentResponse.Builder | This builder for chaining. |
setTranslatedCharacters(long value)
public BatchTranslateDocumentResponse.Builder setTranslatedCharacters(long value)
Number of successfully translated characters (Unicode codepoints) in all documents.
int64 translated_characters = 6;
Name | Description |
value | long The translatedCharacters to set. |
Type | Description |
BatchTranslateDocumentResponse.Builder | This builder for chaining. |
setTranslatedPages(long value)
public BatchTranslateDocumentResponse.Builder setTranslatedPages(long value)
Number of successfully translated pages in all documents. Documents without clear page definition (such as XLSX) are not counted.
int64 translated_pages = 2;
Name | Description |
value | long The translatedPages to set. |
Type | Description |
BatchTranslateDocumentResponse.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final BatchTranslateDocumentResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
BatchTranslateDocumentResponse.Builder |