Class ProcessOptions.LayoutConfig.Builder

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

public static final class ProcessOptions.LayoutConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<ProcessOptions.LayoutConfig.Builder> implements ProcessOptions.LayoutConfigOrBuilder
 Serving config for layout parser processor.
 
Protobuf type google.cloud.documentai.v1.ProcessOptions.LayoutConfig
  • 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<ProcessOptions.LayoutConfig.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<ProcessOptions.LayoutConfig.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<ProcessOptions.LayoutConfig.Builder>
    • getDefaultInstanceForType

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

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

      public ProcessOptions.LayoutConfig.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<ProcessOptions.LayoutConfig.Builder>
      Throws:
      IOException
    • hasChunkingConfig

      public boolean hasChunkingConfig()
       Optional. Config for chunking in layout parser processor.
       
      .google.cloud.documentai.v1.ProcessOptions.LayoutConfig.ChunkingConfig chunking_config = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasChunkingConfig in interface ProcessOptions.LayoutConfigOrBuilder
      Returns:
      Whether the chunkingConfig field is set.
    • getChunkingConfig

      public ProcessOptions.LayoutConfig.ChunkingConfig getChunkingConfig()
       Optional. Config for chunking in layout parser processor.
       
      .google.cloud.documentai.v1.ProcessOptions.LayoutConfig.ChunkingConfig chunking_config = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getChunkingConfig in interface ProcessOptions.LayoutConfigOrBuilder
      Returns:
      The chunkingConfig.
    • setChunkingConfig

       Optional. Config for chunking in layout parser processor.
       
      .google.cloud.documentai.v1.ProcessOptions.LayoutConfig.ChunkingConfig chunking_config = 1 [(.google.api.field_behavior) = OPTIONAL];
    • setChunkingConfig

       Optional. Config for chunking in layout parser processor.
       
      .google.cloud.documentai.v1.ProcessOptions.LayoutConfig.ChunkingConfig chunking_config = 1 [(.google.api.field_behavior) = OPTIONAL];
    • mergeChunkingConfig

       Optional. Config for chunking in layout parser processor.
       
      .google.cloud.documentai.v1.ProcessOptions.LayoutConfig.ChunkingConfig chunking_config = 1 [(.google.api.field_behavior) = OPTIONAL];
    • clearChunkingConfig

      public ProcessOptions.LayoutConfig.Builder clearChunkingConfig()
       Optional. Config for chunking in layout parser processor.
       
      .google.cloud.documentai.v1.ProcessOptions.LayoutConfig.ChunkingConfig chunking_config = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getChunkingConfigBuilder

      public ProcessOptions.LayoutConfig.ChunkingConfig.Builder getChunkingConfigBuilder()
       Optional. Config for chunking in layout parser processor.
       
      .google.cloud.documentai.v1.ProcessOptions.LayoutConfig.ChunkingConfig chunking_config = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getChunkingConfigOrBuilder

      public ProcessOptions.LayoutConfig.ChunkingConfigOrBuilder getChunkingConfigOrBuilder()
       Optional. Config for chunking in layout parser processor.
       
      .google.cloud.documentai.v1.ProcessOptions.LayoutConfig.ChunkingConfig chunking_config = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getChunkingConfigOrBuilder in interface ProcessOptions.LayoutConfigOrBuilder
    • getReturnImages

      public boolean getReturnImages()
       Optional. Whether to include images in layout parser processor response.
       
      bool return_images = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getReturnImages in interface ProcessOptions.LayoutConfigOrBuilder
      Returns:
      The returnImages.
    • setReturnImages

      public ProcessOptions.LayoutConfig.Builder setReturnImages(boolean value)
       Optional. Whether to include images in layout parser processor response.
       
      bool return_images = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The returnImages to set.
      Returns:
      This builder for chaining.
    • clearReturnImages

      public ProcessOptions.LayoutConfig.Builder clearReturnImages()
       Optional. Whether to include images in layout parser processor response.
       
      bool return_images = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getReturnBoundingBoxes

      public boolean getReturnBoundingBoxes()
       Optional. Whether to include bounding boxes in layout parser processor
       response.
       
      bool return_bounding_boxes = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getReturnBoundingBoxes in interface ProcessOptions.LayoutConfigOrBuilder
      Returns:
      The returnBoundingBoxes.
    • setReturnBoundingBoxes

      public ProcessOptions.LayoutConfig.Builder setReturnBoundingBoxes(boolean value)
       Optional. Whether to include bounding boxes in layout parser processor
       response.
       
      bool return_bounding_boxes = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The returnBoundingBoxes to set.
      Returns:
      This builder for chaining.
    • clearReturnBoundingBoxes

      public ProcessOptions.LayoutConfig.Builder clearReturnBoundingBoxes()
       Optional. Whether to include bounding boxes in layout parser processor
       response.
       
      bool return_bounding_boxes = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getEnableImageAnnotation

      public boolean getEnableImageAnnotation()
       Optional. Whether to include image annotations in layout parser response.
       
      bool enable_image_annotation = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEnableImageAnnotation in interface ProcessOptions.LayoutConfigOrBuilder
      Returns:
      The enableImageAnnotation.
    • setEnableImageAnnotation

      public ProcessOptions.LayoutConfig.Builder setEnableImageAnnotation(boolean value)
       Optional. Whether to include image annotations in layout parser response.
       
      bool enable_image_annotation = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enableImageAnnotation to set.
      Returns:
      This builder for chaining.
    • clearEnableImageAnnotation

      public ProcessOptions.LayoutConfig.Builder clearEnableImageAnnotation()
       Optional. Whether to include image annotations in layout parser response.
       
      bool enable_image_annotation = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getEnableTableAnnotation

      public boolean getEnableTableAnnotation()
       Optional. Whether to include table annotations in layout parser response.
       
      bool enable_table_annotation = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEnableTableAnnotation in interface ProcessOptions.LayoutConfigOrBuilder
      Returns:
      The enableTableAnnotation.
    • setEnableTableAnnotation

      public ProcessOptions.LayoutConfig.Builder setEnableTableAnnotation(boolean value)
       Optional. Whether to include table annotations in layout parser response.
       
      bool enable_table_annotation = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enableTableAnnotation to set.
      Returns:
      This builder for chaining.
    • clearEnableTableAnnotation

      public ProcessOptions.LayoutConfig.Builder clearEnableTableAnnotation()
       Optional. Whether to include table annotations in layout parser response.
       
      bool enable_table_annotation = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.