Class ProcessOptions.LayoutConfig

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

public static final class ProcessOptions.LayoutConfig extends com.google.protobuf.GeneratedMessage implements ProcessOptions.LayoutConfigOrBuilder
 Serving config for layout parser processor.
 
Protobuf type google.cloud.documentai.v1.ProcessOptions.LayoutConfig
See Also:
  • Field Details

    • CHUNKING_CONFIG_FIELD_NUMBER

      public static final int CHUNKING_CONFIG_FIELD_NUMBER
      See Also:
    • RETURN_IMAGES_FIELD_NUMBER

      public static final int RETURN_IMAGES_FIELD_NUMBER
      See Also:
    • RETURN_BOUNDING_BOXES_FIELD_NUMBER

      public static final int RETURN_BOUNDING_BOXES_FIELD_NUMBER
      See Also:
    • ENABLE_IMAGE_ANNOTATION_FIELD_NUMBER

      public static final int ENABLE_IMAGE_ANNOTATION_FIELD_NUMBER
      See Also:
    • ENABLE_TABLE_ANNOTATION_FIELD_NUMBER

      public static final int ENABLE_TABLE_ANNOTATION_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ProcessOptions.LayoutConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ProcessOptions.LayoutConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ProcessOptions.LayoutConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ProcessOptions.LayoutConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ProcessOptions.LayoutConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ProcessOptions.LayoutConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ProcessOptions.LayoutConfig parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ProcessOptions.LayoutConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ProcessOptions.LayoutConfig parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ProcessOptions.LayoutConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ProcessOptions.LayoutConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ProcessOptions.LayoutConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public ProcessOptions.LayoutConfig.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ProcessOptions.LayoutConfig.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ProcessOptions.LayoutConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ProcessOptions.LayoutConfig getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ProcessOptions.LayoutConfig> parser()
    • getParserForType

      public com.google.protobuf.Parser<ProcessOptions.LayoutConfig> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public ProcessOptions.LayoutConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder