Class BatchDocumentsInputConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BatchDocumentsInputConfig.Builder>
com.google.cloud.documentai.v1.BatchDocumentsInputConfig.Builder
All Implemented Interfaces:
BatchDocumentsInputConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BatchDocumentsInputConfig

public static final class BatchDocumentsInputConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<BatchDocumentsInputConfig.Builder> implements BatchDocumentsInputConfigOrBuilder
 The common config to specify a set of documents used as input.
 
Protobuf type google.cloud.documentai.v1.BatchDocumentsInputConfig
  • 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<BatchDocumentsInputConfig.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<BatchDocumentsInputConfig.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<BatchDocumentsInputConfig.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public BatchDocumentsInputConfig.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<BatchDocumentsInputConfig.Builder>
      Throws:
      IOException
    • getSourceCase

      public BatchDocumentsInputConfig.SourceCase getSourceCase()
      Specified by:
      getSourceCase in interface BatchDocumentsInputConfigOrBuilder
    • clearSource

      public BatchDocumentsInputConfig.Builder clearSource()
    • hasGcsPrefix

      public boolean hasGcsPrefix()
       The set of documents that match the specified Cloud Storage `gcs_prefix`.
       
      .google.cloud.documentai.v1.GcsPrefix gcs_prefix = 1;
      Specified by:
      hasGcsPrefix in interface BatchDocumentsInputConfigOrBuilder
      Returns:
      Whether the gcsPrefix field is set.
    • getGcsPrefix

      public GcsPrefix getGcsPrefix()
       The set of documents that match the specified Cloud Storage `gcs_prefix`.
       
      .google.cloud.documentai.v1.GcsPrefix gcs_prefix = 1;
      Specified by:
      getGcsPrefix in interface BatchDocumentsInputConfigOrBuilder
      Returns:
      The gcsPrefix.
    • setGcsPrefix

      public BatchDocumentsInputConfig.Builder setGcsPrefix(GcsPrefix value)
       The set of documents that match the specified Cloud Storage `gcs_prefix`.
       
      .google.cloud.documentai.v1.GcsPrefix gcs_prefix = 1;
    • setGcsPrefix

      public BatchDocumentsInputConfig.Builder setGcsPrefix(GcsPrefix.Builder builderForValue)
       The set of documents that match the specified Cloud Storage `gcs_prefix`.
       
      .google.cloud.documentai.v1.GcsPrefix gcs_prefix = 1;
    • mergeGcsPrefix

      public BatchDocumentsInputConfig.Builder mergeGcsPrefix(GcsPrefix value)
       The set of documents that match the specified Cloud Storage `gcs_prefix`.
       
      .google.cloud.documentai.v1.GcsPrefix gcs_prefix = 1;
    • clearGcsPrefix

      public BatchDocumentsInputConfig.Builder clearGcsPrefix()
       The set of documents that match the specified Cloud Storage `gcs_prefix`.
       
      .google.cloud.documentai.v1.GcsPrefix gcs_prefix = 1;
    • getGcsPrefixBuilder

      public GcsPrefix.Builder getGcsPrefixBuilder()
       The set of documents that match the specified Cloud Storage `gcs_prefix`.
       
      .google.cloud.documentai.v1.GcsPrefix gcs_prefix = 1;
    • getGcsPrefixOrBuilder

      public GcsPrefixOrBuilder getGcsPrefixOrBuilder()
       The set of documents that match the specified Cloud Storage `gcs_prefix`.
       
      .google.cloud.documentai.v1.GcsPrefix gcs_prefix = 1;
      Specified by:
      getGcsPrefixOrBuilder in interface BatchDocumentsInputConfigOrBuilder
    • hasGcsDocuments

      public boolean hasGcsDocuments()
       The set of documents individually specified on Cloud Storage.
       
      .google.cloud.documentai.v1.GcsDocuments gcs_documents = 2;
      Specified by:
      hasGcsDocuments in interface BatchDocumentsInputConfigOrBuilder
      Returns:
      Whether the gcsDocuments field is set.
    • getGcsDocuments

      public GcsDocuments getGcsDocuments()
       The set of documents individually specified on Cloud Storage.
       
      .google.cloud.documentai.v1.GcsDocuments gcs_documents = 2;
      Specified by:
      getGcsDocuments in interface BatchDocumentsInputConfigOrBuilder
      Returns:
      The gcsDocuments.
    • setGcsDocuments

      public BatchDocumentsInputConfig.Builder setGcsDocuments(GcsDocuments value)
       The set of documents individually specified on Cloud Storage.
       
      .google.cloud.documentai.v1.GcsDocuments gcs_documents = 2;
    • setGcsDocuments

      public BatchDocumentsInputConfig.Builder setGcsDocuments(GcsDocuments.Builder builderForValue)
       The set of documents individually specified on Cloud Storage.
       
      .google.cloud.documentai.v1.GcsDocuments gcs_documents = 2;
    • mergeGcsDocuments

      public BatchDocumentsInputConfig.Builder mergeGcsDocuments(GcsDocuments value)
       The set of documents individually specified on Cloud Storage.
       
      .google.cloud.documentai.v1.GcsDocuments gcs_documents = 2;
    • clearGcsDocuments

      public BatchDocumentsInputConfig.Builder clearGcsDocuments()
       The set of documents individually specified on Cloud Storage.
       
      .google.cloud.documentai.v1.GcsDocuments gcs_documents = 2;
    • getGcsDocumentsBuilder

      public GcsDocuments.Builder getGcsDocumentsBuilder()
       The set of documents individually specified on Cloud Storage.
       
      .google.cloud.documentai.v1.GcsDocuments gcs_documents = 2;
    • getGcsDocumentsOrBuilder

      public GcsDocumentsOrBuilder getGcsDocumentsOrBuilder()
       The set of documents individually specified on Cloud Storage.
       
      .google.cloud.documentai.v1.GcsDocuments gcs_documents = 2;
      Specified by:
      getGcsDocumentsOrBuilder in interface BatchDocumentsInputConfigOrBuilder