Class BatchDocumentInputConfig.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<BatchDocumentInputConfig.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<BatchDocumentInputConfig.Builder>
      • getDefaultInstanceForType

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

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

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

        public BatchDocumentInputConfig.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 int index,
                                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BatchDocumentInputConfig.Builder>
      • addRepeatedField

        public BatchDocumentInputConfig.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BatchDocumentInputConfig.Builder>
      • isInitialized

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

        public BatchDocumentInputConfig.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<BatchDocumentInputConfig.Builder>
        Throws:
        IOException
      • hasGcsSource

        public boolean hasGcsSource()
         Google Cloud Storage location for the source input.
         This can be a single file (for example,
         `gs://translation-test/input.docx`) or a wildcard (for example,
         `gs://translation-test/*`).
        
         File mime type is determined based on extension. Supported mime type
         includes:
         - `pdf`, application/pdf
         - `docx`,
         application/vnd.openxmlformats-officedocument.wordprocessingml.document
         - `pptx`,
         application/vnd.openxmlformats-officedocument.presentationml.presentation
         - `xlsx`,
         application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
        
         The max file size to support for `.docx`, `.pptx` and `.xlsx` is 100MB.
         The max file size to support for `.pdf` is 1GB and the max page limit is
         1000 pages.
         The max file size to support for all input documents is 1GB.
         
        .google.cloud.translation.v3beta1.GcsSource gcs_source = 1;
        Specified by:
        hasGcsSource in interface BatchDocumentInputConfigOrBuilder
        Returns:
        Whether the gcsSource field is set.
      • getGcsSource

        public GcsSource getGcsSource()
         Google Cloud Storage location for the source input.
         This can be a single file (for example,
         `gs://translation-test/input.docx`) or a wildcard (for example,
         `gs://translation-test/*`).
        
         File mime type is determined based on extension. Supported mime type
         includes:
         - `pdf`, application/pdf
         - `docx`,
         application/vnd.openxmlformats-officedocument.wordprocessingml.document
         - `pptx`,
         application/vnd.openxmlformats-officedocument.presentationml.presentation
         - `xlsx`,
         application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
        
         The max file size to support for `.docx`, `.pptx` and `.xlsx` is 100MB.
         The max file size to support for `.pdf` is 1GB and the max page limit is
         1000 pages.
         The max file size to support for all input documents is 1GB.
         
        .google.cloud.translation.v3beta1.GcsSource gcs_source = 1;
        Specified by:
        getGcsSource in interface BatchDocumentInputConfigOrBuilder
        Returns:
        The gcsSource.
      • setGcsSource

        public BatchDocumentInputConfig.Builder setGcsSource​(GcsSource value)
         Google Cloud Storage location for the source input.
         This can be a single file (for example,
         `gs://translation-test/input.docx`) or a wildcard (for example,
         `gs://translation-test/*`).
        
         File mime type is determined based on extension. Supported mime type
         includes:
         - `pdf`, application/pdf
         - `docx`,
         application/vnd.openxmlformats-officedocument.wordprocessingml.document
         - `pptx`,
         application/vnd.openxmlformats-officedocument.presentationml.presentation
         - `xlsx`,
         application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
        
         The max file size to support for `.docx`, `.pptx` and `.xlsx` is 100MB.
         The max file size to support for `.pdf` is 1GB and the max page limit is
         1000 pages.
         The max file size to support for all input documents is 1GB.
         
        .google.cloud.translation.v3beta1.GcsSource gcs_source = 1;
      • setGcsSource

        public BatchDocumentInputConfig.Builder setGcsSource​(GcsSource.Builder builderForValue)
         Google Cloud Storage location for the source input.
         This can be a single file (for example,
         `gs://translation-test/input.docx`) or a wildcard (for example,
         `gs://translation-test/*`).
        
         File mime type is determined based on extension. Supported mime type
         includes:
         - `pdf`, application/pdf
         - `docx`,
         application/vnd.openxmlformats-officedocument.wordprocessingml.document
         - `pptx`,
         application/vnd.openxmlformats-officedocument.presentationml.presentation
         - `xlsx`,
         application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
        
         The max file size to support for `.docx`, `.pptx` and `.xlsx` is 100MB.
         The max file size to support for `.pdf` is 1GB and the max page limit is
         1000 pages.
         The max file size to support for all input documents is 1GB.
         
        .google.cloud.translation.v3beta1.GcsSource gcs_source = 1;
      • mergeGcsSource

        public BatchDocumentInputConfig.Builder mergeGcsSource​(GcsSource value)
         Google Cloud Storage location for the source input.
         This can be a single file (for example,
         `gs://translation-test/input.docx`) or a wildcard (for example,
         `gs://translation-test/*`).
        
         File mime type is determined based on extension. Supported mime type
         includes:
         - `pdf`, application/pdf
         - `docx`,
         application/vnd.openxmlformats-officedocument.wordprocessingml.document
         - `pptx`,
         application/vnd.openxmlformats-officedocument.presentationml.presentation
         - `xlsx`,
         application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
        
         The max file size to support for `.docx`, `.pptx` and `.xlsx` is 100MB.
         The max file size to support for `.pdf` is 1GB and the max page limit is
         1000 pages.
         The max file size to support for all input documents is 1GB.
         
        .google.cloud.translation.v3beta1.GcsSource gcs_source = 1;
      • clearGcsSource

        public BatchDocumentInputConfig.Builder clearGcsSource()
         Google Cloud Storage location for the source input.
         This can be a single file (for example,
         `gs://translation-test/input.docx`) or a wildcard (for example,
         `gs://translation-test/*`).
        
         File mime type is determined based on extension. Supported mime type
         includes:
         - `pdf`, application/pdf
         - `docx`,
         application/vnd.openxmlformats-officedocument.wordprocessingml.document
         - `pptx`,
         application/vnd.openxmlformats-officedocument.presentationml.presentation
         - `xlsx`,
         application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
        
         The max file size to support for `.docx`, `.pptx` and `.xlsx` is 100MB.
         The max file size to support for `.pdf` is 1GB and the max page limit is
         1000 pages.
         The max file size to support for all input documents is 1GB.
         
        .google.cloud.translation.v3beta1.GcsSource gcs_source = 1;
      • getGcsSourceBuilder

        public GcsSource.Builder getGcsSourceBuilder()
         Google Cloud Storage location for the source input.
         This can be a single file (for example,
         `gs://translation-test/input.docx`) or a wildcard (for example,
         `gs://translation-test/*`).
        
         File mime type is determined based on extension. Supported mime type
         includes:
         - `pdf`, application/pdf
         - `docx`,
         application/vnd.openxmlformats-officedocument.wordprocessingml.document
         - `pptx`,
         application/vnd.openxmlformats-officedocument.presentationml.presentation
         - `xlsx`,
         application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
        
         The max file size to support for `.docx`, `.pptx` and `.xlsx` is 100MB.
         The max file size to support for `.pdf` is 1GB and the max page limit is
         1000 pages.
         The max file size to support for all input documents is 1GB.
         
        .google.cloud.translation.v3beta1.GcsSource gcs_source = 1;
      • getGcsSourceOrBuilder

        public GcsSourceOrBuilder getGcsSourceOrBuilder()
         Google Cloud Storage location for the source input.
         This can be a single file (for example,
         `gs://translation-test/input.docx`) or a wildcard (for example,
         `gs://translation-test/*`).
        
         File mime type is determined based on extension. Supported mime type
         includes:
         - `pdf`, application/pdf
         - `docx`,
         application/vnd.openxmlformats-officedocument.wordprocessingml.document
         - `pptx`,
         application/vnd.openxmlformats-officedocument.presentationml.presentation
         - `xlsx`,
         application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
        
         The max file size to support for `.docx`, `.pptx` and `.xlsx` is 100MB.
         The max file size to support for `.pdf` is 1GB and the max page limit is
         1000 pages.
         The max file size to support for all input documents is 1GB.
         
        .google.cloud.translation.v3beta1.GcsSource gcs_source = 1;
        Specified by:
        getGcsSourceOrBuilder in interface BatchDocumentInputConfigOrBuilder
      • setUnknownFields

        public final BatchDocumentInputConfig.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BatchDocumentInputConfig.Builder>
      • mergeUnknownFields

        public final BatchDocumentInputConfig.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BatchDocumentInputConfig.Builder>