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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<BatchTranslateDocumentResponse.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<BatchTranslateDocumentResponse.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<BatchTranslateDocumentResponse.Builder>
    • getDefaultInstanceForType

      public BatchTranslateDocumentResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public BatchTranslateDocumentResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public BatchTranslateDocumentResponse.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<BatchTranslateDocumentResponse.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getTotalPages in interface BatchTranslateDocumentResponseOrBuilder
      Returns:
      The totalPages.
    • setTotalPages

      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;
      Parameters:
      value - The totalPages to set.
      Returns:
      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:
      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:
      getTranslatedPages in interface BatchTranslateDocumentResponseOrBuilder
      Returns:
      The translatedPages.
    • setTranslatedPages

      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;
      Parameters:
      value - The translatedPages to set.
      Returns:
      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;
      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:
      getFailedPages in interface BatchTranslateDocumentResponseOrBuilder
      Returns:
      The failedPages.
    • setFailedPages

      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;
      Parameters:
      value - The failedPages to set.
      Returns:
      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:
      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:
      getTotalBillablePages in interface BatchTranslateDocumentResponseOrBuilder
      Returns:
      The totalBillablePages.
    • setTotalBillablePages

      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;
      Parameters:
      value - The totalBillablePages to set.
      Returns:
      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:
      This builder for chaining.
    • getTotalCharacters

      public long getTotalCharacters()
       Total number of characters (Unicode codepoints) in all documents.
       
      int64 total_characters = 5;
      Specified by:
      getTotalCharacters in interface BatchTranslateDocumentResponseOrBuilder
      Returns:
      The totalCharacters.
    • setTotalCharacters

      public BatchTranslateDocumentResponse.Builder setTotalCharacters(long value)
       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

      public BatchTranslateDocumentResponse.Builder 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:
      getTranslatedCharacters in interface BatchTranslateDocumentResponseOrBuilder
      Returns:
      The translatedCharacters.
    • setTranslatedCharacters

      public BatchTranslateDocumentResponse.Builder setTranslatedCharacters(long value)
       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

      public BatchTranslateDocumentResponse.Builder 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:
      getFailedCharacters in interface BatchTranslateDocumentResponseOrBuilder
      Returns:
      The failedCharacters.
    • setFailedCharacters

      public BatchTranslateDocumentResponse.Builder setFailedCharacters(long value)
       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

      public BatchTranslateDocumentResponse.Builder 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:
      getTotalBillableCharacters in interface BatchTranslateDocumentResponseOrBuilder
      Returns:
      The totalBillableCharacters.
    • setTotalBillableCharacters

      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;
      Parameters:
      value - The totalBillableCharacters to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • hasSubmitTime

      public boolean hasSubmitTime()
       Time when the operation was submitted.
       
      .google.protobuf.Timestamp submit_time = 9;
      Specified by:
      hasSubmitTime in interface BatchTranslateDocumentResponseOrBuilder
      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:
      getSubmitTime in interface BatchTranslateDocumentResponseOrBuilder
      Returns:
      The submitTime.
    • setSubmitTime

      public BatchTranslateDocumentResponse.Builder setSubmitTime(com.google.protobuf.Timestamp value)
       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

      public BatchTranslateDocumentResponse.Builder mergeSubmitTime(com.google.protobuf.Timestamp value)
       Time when the operation was submitted.
       
      .google.protobuf.Timestamp submit_time = 9;
    • clearSubmitTime

      public BatchTranslateDocumentResponse.Builder 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:
      getSubmitTimeOrBuilder in interface BatchTranslateDocumentResponseOrBuilder
    • 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:
      hasEndTime in interface BatchTranslateDocumentResponseOrBuilder
      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:
      getEndTime in interface BatchTranslateDocumentResponseOrBuilder
      Returns:
      The endTime.
    • setEndTime

      public BatchTranslateDocumentResponse.Builder 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.
       
      .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

      public BatchTranslateDocumentResponse.Builder mergeEndTime(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.
       
      .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:
      getEndTimeOrBuilder in interface BatchTranslateDocumentResponseOrBuilder