Class BatchDocumentInputConfig.Builder

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

public static final class BatchDocumentInputConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<BatchDocumentInputConfig.Builder> implements BatchDocumentInputConfigOrBuilder
 Input configuration for BatchTranslateDocument request.
 
Protobuf type google.cloud.translation.v3.BatchDocumentInputConfig
  • 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<BatchDocumentInputConfig.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<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.GeneratedMessage.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
    • mergeFrom

      public BatchDocumentInputConfig.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<BatchDocumentInputConfig.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<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
    • getSourceCase

      public BatchDocumentInputConfig.SourceCase getSourceCase()
      Specified by:
      getSourceCase in interface BatchDocumentInputConfigOrBuilder
    • clearSource

      public BatchDocumentInputConfig.Builder clearSource()
    • 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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.GcsSource gcs_source = 1;
      Specified by:
      getGcsSourceOrBuilder in interface BatchDocumentInputConfigOrBuilder