Class BatchTranslateDocumentMetadata.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BatchTranslateDocumentMetadata.Builder>
com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.Builder
All Implemented Interfaces:
BatchTranslateDocumentMetadataOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BatchTranslateDocumentMetadata

public static final class BatchTranslateDocumentMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<BatchTranslateDocumentMetadata.Builder> implements BatchTranslateDocumentMetadataOrBuilder
 State metadata for the batch translation operation.
 
Protobuf type google.cloud.translation.v3.BatchTranslateDocumentMetadata
  • 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<BatchTranslateDocumentMetadata.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<BatchTranslateDocumentMetadata.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<BatchTranslateDocumentMetadata.Builder>
    • getDefaultInstanceForType

      public BatchTranslateDocumentMetadata 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 BatchTranslateDocumentMetadata buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public BatchTranslateDocumentMetadata.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<BatchTranslateDocumentMetadata.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<BatchTranslateDocumentMetadata.Builder>
    • mergeFrom

      public BatchTranslateDocumentMetadata.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<BatchTranslateDocumentMetadata.Builder>
      Throws:
      IOException
    • getStateValue

      public int getStateValue()
       The state of the operation.
       
      .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1;
      Specified by:
      getStateValue in interface BatchTranslateDocumentMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public BatchTranslateDocumentMetadata.Builder setStateValue(int value)
       The state of the operation.
       
      .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1;
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

       The state of the operation.
       
      .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1;
      Specified by:
      getState in interface BatchTranslateDocumentMetadataOrBuilder
      Returns:
      The state.
    • setState

       The state of the operation.
       
      .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

       The state of the operation.
       
      .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1;
      Returns:
      This builder for chaining.
    • getTotalPages

      public long getTotalPages()
       Total number of pages to translate in all documents so far. Documents
       without clear page definition (such as XLSX) are not counted.
       
      int64 total_pages = 2;
      Specified by:
      getTotalPages in interface BatchTranslateDocumentMetadataOrBuilder
      Returns:
      The totalPages.
    • setTotalPages

      public BatchTranslateDocumentMetadata.Builder setTotalPages(long value)
       Total number of pages to translate in all documents so far. Documents
       without clear page definition (such as XLSX) are not counted.
       
      int64 total_pages = 2;
      Parameters:
      value - The totalPages to set.
      Returns:
      This builder for chaining.
    • clearTotalPages

      public BatchTranslateDocumentMetadata.Builder clearTotalPages()
       Total number of pages to translate in all documents so far. Documents
       without clear page definition (such as XLSX) are not counted.
       
      int64 total_pages = 2;
      Returns:
      This builder for chaining.
    • getTranslatedPages

      public long getTranslatedPages()
       Number of successfully translated pages in all documents so far. Documents
       without clear page definition (such as XLSX) are not counted.
       
      int64 translated_pages = 3;
      Specified by:
      getTranslatedPages in interface BatchTranslateDocumentMetadataOrBuilder
      Returns:
      The translatedPages.
    • setTranslatedPages

      public BatchTranslateDocumentMetadata.Builder setTranslatedPages(long value)
       Number of successfully translated pages in all documents so far. Documents
       without clear page definition (such as XLSX) are not counted.
       
      int64 translated_pages = 3;
      Parameters:
      value - The translatedPages to set.
      Returns:
      This builder for chaining.
    • clearTranslatedPages

      public BatchTranslateDocumentMetadata.Builder clearTranslatedPages()
       Number of successfully translated pages in all documents so far. Documents
       without clear page definition (such as XLSX) are not counted.
       
      int64 translated_pages = 3;
      Returns:
      This builder for chaining.
    • getFailedPages

      public long getFailedPages()
       Number of pages that failed to process in all documents so far. Documents
       without clear page definition (such as XLSX) are not counted.
       
      int64 failed_pages = 4;
      Specified by:
      getFailedPages in interface BatchTranslateDocumentMetadataOrBuilder
      Returns:
      The failedPages.
    • setFailedPages

      public BatchTranslateDocumentMetadata.Builder setFailedPages(long value)
       Number of pages that failed to process in all documents so far. Documents
       without clear page definition (such as XLSX) are not counted.
       
      int64 failed_pages = 4;
      Parameters:
      value - The failedPages to set.
      Returns:
      This builder for chaining.
    • clearFailedPages

      public BatchTranslateDocumentMetadata.Builder clearFailedPages()
       Number of pages that failed to process in all documents so far. Documents
       without clear page definition (such as XLSX) are not counted.
       
      int64 failed_pages = 4;
      Returns:
      This builder for chaining.
    • getTotalBillablePages

      public long getTotalBillablePages()
       Number of billable pages in documents with clear page definition (such as
       PDF, DOCX, PPTX) so far.
       
      int64 total_billable_pages = 5;
      Specified by:
      getTotalBillablePages in interface BatchTranslateDocumentMetadataOrBuilder
      Returns:
      The totalBillablePages.
    • setTotalBillablePages

      public BatchTranslateDocumentMetadata.Builder setTotalBillablePages(long value)
       Number of billable pages in documents with clear page definition (such as
       PDF, DOCX, PPTX) so far.
       
      int64 total_billable_pages = 5;
      Parameters:
      value - The totalBillablePages to set.
      Returns:
      This builder for chaining.
    • clearTotalBillablePages

      public BatchTranslateDocumentMetadata.Builder clearTotalBillablePages()
       Number of billable pages in documents with clear page definition (such as
       PDF, DOCX, PPTX) so far.
       
      int64 total_billable_pages = 5;
      Returns:
      This builder for chaining.
    • getTotalCharacters

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

      public BatchTranslateDocumentMetadata.Builder setTotalCharacters(long value)
       Total number of characters (Unicode codepoints) in all documents so far.
       
      int64 total_characters = 6;
      Parameters:
      value - The totalCharacters to set.
      Returns:
      This builder for chaining.
    • clearTotalCharacters

      public BatchTranslateDocumentMetadata.Builder clearTotalCharacters()
       Total number of characters (Unicode codepoints) in all documents so far.
       
      int64 total_characters = 6;
      Returns:
      This builder for chaining.
    • getTranslatedCharacters

      public long getTranslatedCharacters()
       Number of successfully translated characters (Unicode codepoints) in all
       documents so far.
       
      int64 translated_characters = 7;
      Specified by:
      getTranslatedCharacters in interface BatchTranslateDocumentMetadataOrBuilder
      Returns:
      The translatedCharacters.
    • setTranslatedCharacters

      public BatchTranslateDocumentMetadata.Builder setTranslatedCharacters(long value)
       Number of successfully translated characters (Unicode codepoints) in all
       documents so far.
       
      int64 translated_characters = 7;
      Parameters:
      value - The translatedCharacters to set.
      Returns:
      This builder for chaining.
    • clearTranslatedCharacters

      public BatchTranslateDocumentMetadata.Builder clearTranslatedCharacters()
       Number of successfully translated characters (Unicode codepoints) in all
       documents so far.
       
      int64 translated_characters = 7;
      Returns:
      This builder for chaining.
    • getFailedCharacters

      public long getFailedCharacters()
       Number of characters that have failed to process (Unicode codepoints) in
       all documents so far.
       
      int64 failed_characters = 8;
      Specified by:
      getFailedCharacters in interface BatchTranslateDocumentMetadataOrBuilder
      Returns:
      The failedCharacters.
    • setFailedCharacters

      public BatchTranslateDocumentMetadata.Builder setFailedCharacters(long value)
       Number of characters that have failed to process (Unicode codepoints) in
       all documents so far.
       
      int64 failed_characters = 8;
      Parameters:
      value - The failedCharacters to set.
      Returns:
      This builder for chaining.
    • clearFailedCharacters

      public BatchTranslateDocumentMetadata.Builder clearFailedCharacters()
       Number of characters that have failed to process (Unicode codepoints) in
       all documents so far.
       
      int64 failed_characters = 8;
      Returns:
      This builder for chaining.
    • getTotalBillableCharacters

      public long getTotalBillableCharacters()
       Number of billable characters (Unicode codepoints) in documents without
       clear page definition (such as XLSX) so far.
       
      int64 total_billable_characters = 9;
      Specified by:
      getTotalBillableCharacters in interface BatchTranslateDocumentMetadataOrBuilder
      Returns:
      The totalBillableCharacters.
    • setTotalBillableCharacters

      public BatchTranslateDocumentMetadata.Builder setTotalBillableCharacters(long value)
       Number of billable characters (Unicode codepoints) in documents without
       clear page definition (such as XLSX) so far.
       
      int64 total_billable_characters = 9;
      Parameters:
      value - The totalBillableCharacters to set.
      Returns:
      This builder for chaining.
    • clearTotalBillableCharacters

      public BatchTranslateDocumentMetadata.Builder clearTotalBillableCharacters()
       Number of billable characters (Unicode codepoints) in documents without
       clear page definition (such as XLSX) so far.
       
      int64 total_billable_characters = 9;
      Returns:
      This builder for chaining.
    • hasSubmitTime

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

      public BatchTranslateDocumentMetadata.Builder setSubmitTime(com.google.protobuf.Timestamp value)
       Time when the operation was submitted.
       
      .google.protobuf.Timestamp submit_time = 10;
    • setSubmitTime

      public BatchTranslateDocumentMetadata.Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Time when the operation was submitted.
       
      .google.protobuf.Timestamp submit_time = 10;
    • mergeSubmitTime

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

      public BatchTranslateDocumentMetadata.Builder clearSubmitTime()
       Time when the operation was submitted.
       
      .google.protobuf.Timestamp submit_time = 10;
    • getSubmitTimeBuilder

      public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder()
       Time when the operation was submitted.
       
      .google.protobuf.Timestamp submit_time = 10;
    • getSubmitTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder()
       Time when the operation was submitted.
       
      .google.protobuf.Timestamp submit_time = 10;
      Specified by:
      getSubmitTimeOrBuilder in interface BatchTranslateDocumentMetadataOrBuilder