Class BatchTranslateDocumentMetadata.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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

        public BatchTranslateDocumentMetadata 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
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<BatchTranslateDocumentMetadata.Builder>
      • getStateValue

        public int getStateValue()
         The state of the operation.
         
        .google.cloud.translation.v3beta1.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.v3beta1.BatchTranslateDocumentMetadata.State state = 1;
        Parameters:
        value - The enum numeric value on the wire for state to set.
        Returns:
        This builder for chaining.
      • clearState

        public BatchTranslateDocumentMetadata.Builder clearState()
         The state of the operation.
         
        .google.cloud.translation.v3beta1.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.
      • 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;
      • getSubmitTimeBuilder

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