Package com.google.cloud.translate.v3
Class BatchTranslateDocumentResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BatchTranslateDocumentResponse.Builder>
com.google.cloud.translate.v3.BatchTranslateDocumentResponse.Builder
- All Implemented Interfaces:
BatchTranslateDocumentResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BatchTranslateDocumentResponse
public static final class BatchTranslateDocumentResponse.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The time when the operation is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.Number of characters that have failed to process (Unicode codepoints) in all documents.Number of pages that failed to process in all documents.Time when the operation was submitted.Number of billable characters (Unicode codepoints) in documents without clear page definition, such as XLSX.Number of billable pages in documents with clear page definition (such as PDF, DOCX, PPTX)Total number of characters (Unicode codepoints) in all documents.Total number of pages to translate in all documents.Number of successfully translated characters (Unicode codepoints) in all documents.Number of successfully translated pages in all documents.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampThe time when the operation is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.com.google.protobuf.Timestamp.BuilderThe time when the operation is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.com.google.protobuf.TimestampOrBuilderThe time when the operation is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.longNumber of characters that have failed to process (Unicode codepoints) in all documents.longNumber of pages that failed to process in all documents.com.google.protobuf.TimestampTime when the operation was submitted.com.google.protobuf.Timestamp.BuilderTime when the operation was submitted.com.google.protobuf.TimestampOrBuilderTime when the operation was submitted.longNumber of billable characters (Unicode codepoints) in documents without clear page definition, such as XLSX.longNumber of billable pages in documents with clear page definition (such as PDF, DOCX, PPTX)longTotal number of characters (Unicode codepoints) in all documents.longTotal number of pages to translate in all documents.longNumber of successfully translated characters (Unicode codepoints) in all documents.longNumber of successfully translated pages in all documents.booleanThe time when the operation is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.booleanTime when the operation was submitted.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeEndTime(com.google.protobuf.Timestamp value) The time when the operation is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeSubmitTime(com.google.protobuf.Timestamp value) Time when the operation was submitted.setEndTime(com.google.protobuf.Timestamp value) The time when the operation is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) The time when the operation is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.setFailedCharacters(long value) Number of characters that have failed to process (Unicode codepoints) in all documents.setFailedPages(long value) Number of pages that failed to process in all documents.setSubmitTime(com.google.protobuf.Timestamp value) Time when the operation was submitted.setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) Time when the operation was submitted.setTotalBillableCharacters(long value) Number of billable characters (Unicode codepoints) in documents without clear page definition, such as XLSX.setTotalBillablePages(long value) Number of billable pages in documents with clear page definition (such as PDF, DOCX, PPTX)setTotalCharacters(long value) Total number of characters (Unicode codepoints) in all documents.setTotalPages(long value) Total number of pages to translate in all documents.setTranslatedCharacters(long value) Number of successfully translated characters (Unicode codepoints) in all documents.setTranslatedPages(long value) Number of successfully translated pages in all documents.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<BatchTranslateDocumentResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<BatchTranslateDocumentResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<BatchTranslateDocumentResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchTranslateDocumentResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<BatchTranslateDocumentResponse.Builder>
-
mergeFrom
public BatchTranslateDocumentResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchTranslateDocumentResponse.Builder>- Throws:
IOException
-
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;- Specified by:
getTotalPagesin interfaceBatchTranslateDocumentResponseOrBuilder- Returns:
- The totalPages.
-
setTotalPages
Total number of pages to translate in all documents. Documents without clear page definition (such as XLSX) are not counted.
int64 total_pages = 1;- Parameters:
value- The totalPages to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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;- Specified by:
getTranslatedPagesin interfaceBatchTranslateDocumentResponseOrBuilder- Returns:
- The translatedPages.
-
setTranslatedPages
Number of successfully translated pages in all documents. Documents without clear page definition (such as XLSX) are not counted.
int64 translated_pages = 2;- Parameters:
value- The translatedPages to set.- Returns:
- This builder for chaining.
-
clearTranslatedPages
Number of successfully translated pages in all documents. Documents without clear page definition (such as XLSX) are not counted.
int64 translated_pages = 2;- Returns:
- This builder for chaining.
-
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;- Specified by:
getFailedPagesin interfaceBatchTranslateDocumentResponseOrBuilder- Returns:
- The failedPages.
-
setFailedPages
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;- Parameters:
value- The failedPages to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
getTotalBillablePages
public long getTotalBillablePages()Number of billable pages in documents with clear page definition (such as PDF, DOCX, PPTX)
int64 total_billable_pages = 4;- Specified by:
getTotalBillablePagesin interfaceBatchTranslateDocumentResponseOrBuilder- Returns:
- The totalBillablePages.
-
setTotalBillablePages
Number of billable pages in documents with clear page definition (such as PDF, DOCX, PPTX)
int64 total_billable_pages = 4;- Parameters:
value- The totalBillablePages to set.- Returns:
- This builder for chaining.
-
clearTotalBillablePages
Number of billable pages in documents with clear page definition (such as PDF, DOCX, PPTX)
int64 total_billable_pages = 4;- Returns:
- This builder for chaining.
-
getTotalCharacters
public long getTotalCharacters()Total number of characters (Unicode codepoints) in all documents.
int64 total_characters = 5;- Specified by:
getTotalCharactersin interfaceBatchTranslateDocumentResponseOrBuilder- Returns:
- The totalCharacters.
-
setTotalCharacters
Total number of characters (Unicode codepoints) in all documents.
int64 total_characters = 5;- Parameters:
value- The totalCharacters to set.- Returns:
- This builder for chaining.
-
clearTotalCharacters
Total number of characters (Unicode codepoints) in all documents.
int64 total_characters = 5;- Returns:
- This builder for chaining.
-
getTranslatedCharacters
public long getTranslatedCharacters()Number of successfully translated characters (Unicode codepoints) in all documents.
int64 translated_characters = 6;- Specified by:
getTranslatedCharactersin interfaceBatchTranslateDocumentResponseOrBuilder- Returns:
- The translatedCharacters.
-
setTranslatedCharacters
Number of successfully translated characters (Unicode codepoints) in all documents.
int64 translated_characters = 6;- Parameters:
value- The translatedCharacters to set.- Returns:
- This builder for chaining.
-
clearTranslatedCharacters
Number of successfully translated characters (Unicode codepoints) in all documents.
int64 translated_characters = 6;- Returns:
- This builder for chaining.
-
getFailedCharacters
public long getFailedCharacters()Number of characters that have failed to process (Unicode codepoints) in all documents.
int64 failed_characters = 7;- Specified by:
getFailedCharactersin interfaceBatchTranslateDocumentResponseOrBuilder- Returns:
- The failedCharacters.
-
setFailedCharacters
Number of characters that have failed to process (Unicode codepoints) in all documents.
int64 failed_characters = 7;- Parameters:
value- The failedCharacters to set.- Returns:
- This builder for chaining.
-
clearFailedCharacters
Number of characters that have failed to process (Unicode codepoints) in all documents.
int64 failed_characters = 7;- Returns:
- This builder for chaining.
-
getTotalBillableCharacters
public long getTotalBillableCharacters()Number of billable characters (Unicode codepoints) in documents without clear page definition, such as XLSX.
int64 total_billable_characters = 8;- Specified by:
getTotalBillableCharactersin interfaceBatchTranslateDocumentResponseOrBuilder- Returns:
- The totalBillableCharacters.
-
setTotalBillableCharacters
Number of billable characters (Unicode codepoints) in documents without clear page definition, such as XLSX.
int64 total_billable_characters = 8;- Parameters:
value- The totalBillableCharacters to set.- Returns:
- This builder for chaining.
-
clearTotalBillableCharacters
Number of billable characters (Unicode codepoints) in documents without clear page definition, such as XLSX.
int64 total_billable_characters = 8;- Returns:
- This builder for chaining.
-
hasSubmitTime
public boolean hasSubmitTime()Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 9;- Specified by:
hasSubmitTimein interfaceBatchTranslateDocumentResponseOrBuilder- Returns:
- Whether the submitTime field is set.
-
getSubmitTime
public com.google.protobuf.Timestamp getSubmitTime()Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 9;- Specified by:
getSubmitTimein interfaceBatchTranslateDocumentResponseOrBuilder- Returns:
- The submitTime.
-
setSubmitTime
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 9; -
setSubmitTime
public BatchTranslateDocumentResponse.Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 9; -
mergeSubmitTime
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 9; -
clearSubmitTime
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 9; -
getSubmitTimeBuilder
public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder()Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 9; -
getSubmitTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder()Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 9;- Specified by:
getSubmitTimeOrBuilderin interfaceBatchTranslateDocumentResponseOrBuilder
-
hasEndTime
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;- Specified by:
hasEndTimein interfaceBatchTranslateDocumentResponseOrBuilder- Returns:
- Whether the endTime field is set.
-
getEndTime
public com.google.protobuf.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;- Specified by:
getEndTimein interfaceBatchTranslateDocumentResponseOrBuilder- Returns:
- The endTime.
-
setEndTime
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; -
setEndTime
public BatchTranslateDocumentResponse.Builder setEndTime(com.google.protobuf.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; -
mergeEndTime
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; -
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; -
getEndTimeBuilder
public com.google.protobuf.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; -
getEndTimeOrBuilder
public com.google.protobuf.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;- Specified by:
getEndTimeOrBuilderin interfaceBatchTranslateDocumentResponseOrBuilder
-