public static final class BatchTranslateDocumentResponse.Builder extends GeneratedMessageV3.Builder<BatchTranslateDocumentResponse.Builder> implements BatchTranslateDocumentResponseOrBuilder
Stored in the [google.longrunning.Operation.response][google.longrunning.Operation.response] field returned by BatchTranslateDocument if at least one document is translated successfully.Protobuf type
google.cloud.translation.v3.BatchTranslateDocumentResponse
Modifier and Type | Method and Description |
---|---|
BatchTranslateDocumentResponse.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
BatchTranslateDocumentResponse |
build() |
BatchTranslateDocumentResponse |
buildPartial() |
BatchTranslateDocumentResponse.Builder |
clear() |
BatchTranslateDocumentResponse.Builder |
clearEndTime()
The time when the operation is finished and
[google.longrunning.Operation.done][google.longrunning.Operation.done] is
set to true.
|
BatchTranslateDocumentResponse.Builder |
clearFailedCharacters()
Number of characters that have failed to process (Unicode codepoints) in
all documents.
|
BatchTranslateDocumentResponse.Builder |
clearFailedPages()
Number of pages that failed to process in all documents.
|
BatchTranslateDocumentResponse.Builder |
clearField(Descriptors.FieldDescriptor field) |
BatchTranslateDocumentResponse.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
BatchTranslateDocumentResponse.Builder |
clearSubmitTime()
Time when the operation was submitted.
|
BatchTranslateDocumentResponse.Builder |
clearTotalBillableCharacters()
Number of billable characters (Unicode codepoints) in documents without
clear page definition, such as XLSX.
|
BatchTranslateDocumentResponse.Builder |
clearTotalBillablePages()
Number of billable pages in documents with clear page definition (such as
PDF, DOCX, PPTX)
|
BatchTranslateDocumentResponse.Builder |
clearTotalCharacters()
Total number of characters (Unicode codepoints) in all documents.
|
BatchTranslateDocumentResponse.Builder |
clearTotalPages()
Total number of pages to translate in all documents.
|
BatchTranslateDocumentResponse.Builder |
clearTranslatedCharacters()
Number of successfully translated characters (Unicode codepoints) in all
documents.
|
BatchTranslateDocumentResponse.Builder |
clearTranslatedPages()
Number of successfully translated pages in all documents.
|
BatchTranslateDocumentResponse.Builder |
clone() |
BatchTranslateDocumentResponse |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
Timestamp |
getEndTime()
The time when the operation is finished and
[google.longrunning.Operation.done][google.longrunning.Operation.done] is
set to true.
|
Timestamp.Builder |
getEndTimeBuilder()
The time when the operation is finished and
[google.longrunning.Operation.done][google.longrunning.Operation.done] is
set to true.
|
TimestampOrBuilder |
getEndTimeOrBuilder()
The time when the operation is finished and
[google.longrunning.Operation.done][google.longrunning.Operation.done] is
set to true.
|
long |
getFailedCharacters()
Number of characters that have failed to process (Unicode codepoints) in
all documents.
|
long |
getFailedPages()
Number of pages that failed to process in all documents.
|
Timestamp |
getSubmitTime()
Time when the operation was submitted.
|
Timestamp.Builder |
getSubmitTimeBuilder()
Time when the operation was submitted.
|
TimestampOrBuilder |
getSubmitTimeOrBuilder()
Time when the operation was submitted.
|
long |
getTotalBillableCharacters()
Number of billable characters (Unicode codepoints) in documents without
clear page definition, such as XLSX.
|
long |
getTotalBillablePages()
Number of billable pages in documents with clear page definition (such as
PDF, DOCX, PPTX)
|
long |
getTotalCharacters()
Total number of characters (Unicode codepoints) in all documents.
|
long |
getTotalPages()
Total number of pages to translate in all documents.
|
long |
getTranslatedCharacters()
Number of successfully translated characters (Unicode codepoints) in all
documents.
|
long |
getTranslatedPages()
Number of successfully translated pages in all documents.
|
boolean |
hasEndTime()
The time when the operation is finished and
[google.longrunning.Operation.done][google.longrunning.Operation.done] is
set to true.
|
boolean |
hasSubmitTime()
Time when the operation was submitted.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
BatchTranslateDocumentResponse.Builder |
mergeEndTime(Timestamp value)
The time when the operation is finished and
[google.longrunning.Operation.done][google.longrunning.Operation.done] is
set to true.
|
BatchTranslateDocumentResponse.Builder |
mergeFrom(BatchTranslateDocumentResponse other) |
BatchTranslateDocumentResponse.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
BatchTranslateDocumentResponse.Builder |
mergeFrom(Message other) |
BatchTranslateDocumentResponse.Builder |
mergeSubmitTime(Timestamp value)
Time when the operation was submitted.
|
BatchTranslateDocumentResponse.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
BatchTranslateDocumentResponse.Builder |
setEndTime(Timestamp.Builder builderForValue)
The time when the operation is finished and
[google.longrunning.Operation.done][google.longrunning.Operation.done] is
set to true.
|
BatchTranslateDocumentResponse.Builder |
setEndTime(Timestamp value)
The time when the operation is finished and
[google.longrunning.Operation.done][google.longrunning.Operation.done] is
set to true.
|
BatchTranslateDocumentResponse.Builder |
setFailedCharacters(long value)
Number of characters that have failed to process (Unicode codepoints) in
all documents.
|
BatchTranslateDocumentResponse.Builder |
setFailedPages(long value)
Number of pages that failed to process in all documents.
|
BatchTranslateDocumentResponse.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
BatchTranslateDocumentResponse.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
BatchTranslateDocumentResponse.Builder |
setSubmitTime(Timestamp.Builder builderForValue)
Time when the operation was submitted.
|
BatchTranslateDocumentResponse.Builder |
setSubmitTime(Timestamp value)
Time when the operation was submitted.
|
BatchTranslateDocumentResponse.Builder |
setTotalBillableCharacters(long value)
Number of billable characters (Unicode codepoints) in documents without
clear page definition, such as XLSX.
|
BatchTranslateDocumentResponse.Builder |
setTotalBillablePages(long value)
Number of billable pages in documents with clear page definition (such as
PDF, DOCX, PPTX)
|
BatchTranslateDocumentResponse.Builder |
setTotalCharacters(long value)
Total number of characters (Unicode codepoints) in all documents.
|
BatchTranslateDocumentResponse.Builder |
setTotalPages(long value)
Total number of pages to translate in all documents.
|
BatchTranslateDocumentResponse.Builder |
setTranslatedCharacters(long value)
Number of successfully translated characters (Unicode codepoints) in all
documents.
|
BatchTranslateDocumentResponse.Builder |
setTranslatedPages(long value)
Number of successfully translated pages in all documents.
|
BatchTranslateDocumentResponse.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<BatchTranslateDocumentResponse.Builder>
public BatchTranslateDocumentResponse.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<BatchTranslateDocumentResponse.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<BatchTranslateDocumentResponse.Builder>
public BatchTranslateDocumentResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public BatchTranslateDocumentResponse build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public BatchTranslateDocumentResponse buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public BatchTranslateDocumentResponse.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<BatchTranslateDocumentResponse.Builder>
public BatchTranslateDocumentResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<BatchTranslateDocumentResponse.Builder>
public BatchTranslateDocumentResponse.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<BatchTranslateDocumentResponse.Builder>
public BatchTranslateDocumentResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<BatchTranslateDocumentResponse.Builder>
public BatchTranslateDocumentResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<BatchTranslateDocumentResponse.Builder>
public BatchTranslateDocumentResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<BatchTranslateDocumentResponse.Builder>
public BatchTranslateDocumentResponse.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<BatchTranslateDocumentResponse.Builder>
public BatchTranslateDocumentResponse.Builder mergeFrom(BatchTranslateDocumentResponse other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<BatchTranslateDocumentResponse.Builder>
public BatchTranslateDocumentResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<BatchTranslateDocumentResponse.Builder>
IOException
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;
getTotalPages
in interface BatchTranslateDocumentResponseOrBuilder
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;
value
- The totalPages to set.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;
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;
getTranslatedPages
in interface BatchTranslateDocumentResponseOrBuilder
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;
value
- The translatedPages to set.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;
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;
getFailedPages
in interface BatchTranslateDocumentResponseOrBuilder
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;
value
- The failedPages to set.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;
public long getTotalBillablePages()
Number of billable pages in documents with clear page definition (such as PDF, DOCX, PPTX)
int64 total_billable_pages = 4;
getTotalBillablePages
in interface BatchTranslateDocumentResponseOrBuilder
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;
value
- The totalBillablePages to set.public BatchTranslateDocumentResponse.Builder clearTotalBillablePages()
Number of billable pages in documents with clear page definition (such as PDF, DOCX, PPTX)
int64 total_billable_pages = 4;
public long getTotalCharacters()
Total number of characters (Unicode codepoints) in all documents.
int64 total_characters = 5;
getTotalCharacters
in interface BatchTranslateDocumentResponseOrBuilder
public BatchTranslateDocumentResponse.Builder setTotalCharacters(long value)
Total number of characters (Unicode codepoints) in all documents.
int64 total_characters = 5;
value
- The totalCharacters to set.public BatchTranslateDocumentResponse.Builder clearTotalCharacters()
Total number of characters (Unicode codepoints) in all documents.
int64 total_characters = 5;
public long getTranslatedCharacters()
Number of successfully translated characters (Unicode codepoints) in all documents.
int64 translated_characters = 6;
getTranslatedCharacters
in interface BatchTranslateDocumentResponseOrBuilder
public BatchTranslateDocumentResponse.Builder setTranslatedCharacters(long value)
Number of successfully translated characters (Unicode codepoints) in all documents.
int64 translated_characters = 6;
value
- The translatedCharacters to set.public BatchTranslateDocumentResponse.Builder clearTranslatedCharacters()
Number of successfully translated characters (Unicode codepoints) in all documents.
int64 translated_characters = 6;
public long getFailedCharacters()
Number of characters that have failed to process (Unicode codepoints) in all documents.
int64 failed_characters = 7;
getFailedCharacters
in interface BatchTranslateDocumentResponseOrBuilder
public BatchTranslateDocumentResponse.Builder setFailedCharacters(long value)
Number of characters that have failed to process (Unicode codepoints) in all documents.
int64 failed_characters = 7;
value
- The failedCharacters to set.public BatchTranslateDocumentResponse.Builder clearFailedCharacters()
Number of characters that have failed to process (Unicode codepoints) in all documents.
int64 failed_characters = 7;
public long getTotalBillableCharacters()
Number of billable characters (Unicode codepoints) in documents without clear page definition, such as XLSX.
int64 total_billable_characters = 8;
getTotalBillableCharacters
in interface BatchTranslateDocumentResponseOrBuilder
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;
value
- The totalBillableCharacters to set.public BatchTranslateDocumentResponse.Builder clearTotalBillableCharacters()
Number of billable characters (Unicode codepoints) in documents without clear page definition, such as XLSX.
int64 total_billable_characters = 8;
public boolean hasSubmitTime()
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 9;
hasSubmitTime
in interface BatchTranslateDocumentResponseOrBuilder
public Timestamp getSubmitTime()
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 9;
getSubmitTime
in interface BatchTranslateDocumentResponseOrBuilder
public BatchTranslateDocumentResponse.Builder setSubmitTime(Timestamp value)
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 9;
public BatchTranslateDocumentResponse.Builder setSubmitTime(Timestamp.Builder builderForValue)
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 9;
public BatchTranslateDocumentResponse.Builder mergeSubmitTime(Timestamp value)
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 9;
public BatchTranslateDocumentResponse.Builder clearSubmitTime()
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 9;
public Timestamp.Builder getSubmitTimeBuilder()
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 9;
public TimestampOrBuilder getSubmitTimeOrBuilder()
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 9;
getSubmitTimeOrBuilder
in interface BatchTranslateDocumentResponseOrBuilder
public boolean hasEndTime()
The time when the operation is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
.google.protobuf.Timestamp end_time = 10;
hasEndTime
in interface BatchTranslateDocumentResponseOrBuilder
public Timestamp getEndTime()
The time when the operation is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
.google.protobuf.Timestamp end_time = 10;
getEndTime
in interface BatchTranslateDocumentResponseOrBuilder
public BatchTranslateDocumentResponse.Builder setEndTime(Timestamp value)
The time when the operation is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
.google.protobuf.Timestamp end_time = 10;
public BatchTranslateDocumentResponse.Builder setEndTime(Timestamp.Builder builderForValue)
The time when the operation is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
.google.protobuf.Timestamp end_time = 10;
public BatchTranslateDocumentResponse.Builder mergeEndTime(Timestamp value)
The time when the operation is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
.google.protobuf.Timestamp end_time = 10;
public BatchTranslateDocumentResponse.Builder clearEndTime()
The time when the operation is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
.google.protobuf.Timestamp end_time = 10;
public Timestamp.Builder getEndTimeBuilder()
The time when the operation is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
.google.protobuf.Timestamp end_time = 10;
public TimestampOrBuilder getEndTimeOrBuilder()
The time when the operation is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
.google.protobuf.Timestamp end_time = 10;
getEndTimeOrBuilder
in interface BatchTranslateDocumentResponseOrBuilder
public final BatchTranslateDocumentResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<BatchTranslateDocumentResponse.Builder>
public final BatchTranslateDocumentResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<BatchTranslateDocumentResponse.Builder>
Copyright © 2022 Google LLC. All rights reserved.