Class DocumentOutputConfig.GcsOutputConfig.Builder

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

public static final class DocumentOutputConfig.GcsOutputConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<DocumentOutputConfig.GcsOutputConfig.Builder> implements DocumentOutputConfig.GcsOutputConfigOrBuilder
 The configuration used when outputting documents.
 
Protobuf type google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig
  • 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<DocumentOutputConfig.GcsOutputConfig.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<DocumentOutputConfig.GcsOutputConfig.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<DocumentOutputConfig.GcsOutputConfig.Builder>
    • getDefaultInstanceForType

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

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

      public DocumentOutputConfig.GcsOutputConfig.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<DocumentOutputConfig.GcsOutputConfig.Builder>
      Throws:
      IOException
    • getGcsUri

      public String getGcsUri()
       The Cloud Storage uri (a directory) of the output.
       
      string gcs_uri = 1;
      Specified by:
      getGcsUri in interface DocumentOutputConfig.GcsOutputConfigOrBuilder
      Returns:
      The gcsUri.
    • getGcsUriBytes

      public com.google.protobuf.ByteString getGcsUriBytes()
       The Cloud Storage uri (a directory) of the output.
       
      string gcs_uri = 1;
      Specified by:
      getGcsUriBytes in interface DocumentOutputConfig.GcsOutputConfigOrBuilder
      Returns:
      The bytes for gcsUri.
    • setGcsUri

       The Cloud Storage uri (a directory) of the output.
       
      string gcs_uri = 1;
      Parameters:
      value - The gcsUri to set.
      Returns:
      This builder for chaining.
    • clearGcsUri

       The Cloud Storage uri (a directory) of the output.
       
      string gcs_uri = 1;
      Returns:
      This builder for chaining.
    • setGcsUriBytes

      public DocumentOutputConfig.GcsOutputConfig.Builder setGcsUriBytes(com.google.protobuf.ByteString value)
       The Cloud Storage uri (a directory) of the output.
       
      string gcs_uri = 1;
      Parameters:
      value - The bytes for gcsUri to set.
      Returns:
      This builder for chaining.
    • hasFieldMask

      public boolean hasFieldMask()
       Specifies which fields to include in the output documents.
       Only supports top level document and pages field so it must be in the
       form of `{document_field_name}` or `pages.{page_field_name}`.
       
      .google.protobuf.FieldMask field_mask = 2;
      Specified by:
      hasFieldMask in interface DocumentOutputConfig.GcsOutputConfigOrBuilder
      Returns:
      Whether the fieldMask field is set.
    • getFieldMask

      public com.google.protobuf.FieldMask getFieldMask()
       Specifies which fields to include in the output documents.
       Only supports top level document and pages field so it must be in the
       form of `{document_field_name}` or `pages.{page_field_name}`.
       
      .google.protobuf.FieldMask field_mask = 2;
      Specified by:
      getFieldMask in interface DocumentOutputConfig.GcsOutputConfigOrBuilder
      Returns:
      The fieldMask.
    • setFieldMask

      public DocumentOutputConfig.GcsOutputConfig.Builder setFieldMask(com.google.protobuf.FieldMask value)
       Specifies which fields to include in the output documents.
       Only supports top level document and pages field so it must be in the
       form of `{document_field_name}` or `pages.{page_field_name}`.
       
      .google.protobuf.FieldMask field_mask = 2;
    • setFieldMask

      public DocumentOutputConfig.GcsOutputConfig.Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue)
       Specifies which fields to include in the output documents.
       Only supports top level document and pages field so it must be in the
       form of `{document_field_name}` or `pages.{page_field_name}`.
       
      .google.protobuf.FieldMask field_mask = 2;
    • mergeFieldMask

      public DocumentOutputConfig.GcsOutputConfig.Builder mergeFieldMask(com.google.protobuf.FieldMask value)
       Specifies which fields to include in the output documents.
       Only supports top level document and pages field so it must be in the
       form of `{document_field_name}` or `pages.{page_field_name}`.
       
      .google.protobuf.FieldMask field_mask = 2;
    • clearFieldMask

       Specifies which fields to include in the output documents.
       Only supports top level document and pages field so it must be in the
       form of `{document_field_name}` or `pages.{page_field_name}`.
       
      .google.protobuf.FieldMask field_mask = 2;
    • getFieldMaskBuilder

      public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder()
       Specifies which fields to include in the output documents.
       Only supports top level document and pages field so it must be in the
       form of `{document_field_name}` or `pages.{page_field_name}`.
       
      .google.protobuf.FieldMask field_mask = 2;
    • getFieldMaskOrBuilder

      public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder()
       Specifies which fields to include in the output documents.
       Only supports top level document and pages field so it must be in the
       form of `{document_field_name}` or `pages.{page_field_name}`.
       
      .google.protobuf.FieldMask field_mask = 2;
      Specified by:
      getFieldMaskOrBuilder in interface DocumentOutputConfig.GcsOutputConfigOrBuilder
    • hasShardingConfig

      public boolean hasShardingConfig()
       Specifies the sharding config for the output document.
       
      .google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.ShardingConfig sharding_config = 3;
      Specified by:
      hasShardingConfig in interface DocumentOutputConfig.GcsOutputConfigOrBuilder
      Returns:
      Whether the shardingConfig field is set.
    • getShardingConfig

       Specifies the sharding config for the output document.
       
      .google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.ShardingConfig sharding_config = 3;
      Specified by:
      getShardingConfig in interface DocumentOutputConfig.GcsOutputConfigOrBuilder
      Returns:
      The shardingConfig.
    • setShardingConfig

       Specifies the sharding config for the output document.
       
      .google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.ShardingConfig sharding_config = 3;
    • setShardingConfig

       Specifies the sharding config for the output document.
       
      .google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.ShardingConfig sharding_config = 3;
    • mergeShardingConfig

       Specifies the sharding config for the output document.
       
      .google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.ShardingConfig sharding_config = 3;
    • clearShardingConfig

      public DocumentOutputConfig.GcsOutputConfig.Builder clearShardingConfig()
       Specifies the sharding config for the output document.
       
      .google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.ShardingConfig sharding_config = 3;
    • getShardingConfigBuilder

       Specifies the sharding config for the output document.
       
      .google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.ShardingConfig sharding_config = 3;
    • getShardingConfigOrBuilder

       Specifies the sharding config for the output document.
       
      .google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.ShardingConfig sharding_config = 3;
      Specified by:
      getShardingConfigOrBuilder in interface DocumentOutputConfig.GcsOutputConfigOrBuilder