Class RagFileParsingConfig.LayoutParser.Builder

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

public static final class RagFileParsingConfig.LayoutParser.Builder extends com.google.protobuf.GeneratedMessage.Builder<RagFileParsingConfig.LayoutParser.Builder> implements RagFileParsingConfig.LayoutParserOrBuilder
 Document AI Layout Parser config.
 
Protobuf type google.cloud.aiplatform.v1.RagFileParsingConfig.LayoutParser
  • 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<RagFileParsingConfig.LayoutParser.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<RagFileParsingConfig.LayoutParser.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<RagFileParsingConfig.LayoutParser.Builder>
    • getDefaultInstanceForType

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

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

      public RagFileParsingConfig.LayoutParser.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<RagFileParsingConfig.LayoutParser.Builder>
      Throws:
      IOException
    • getProcessorName

      public String getProcessorName()
       The full resource name of a Document AI processor or processor version.
       The processor must have type `LAYOUT_PARSER_PROCESSOR`. If specified, the
       `additional_config.parse_as_scanned_pdf` field must be false.
       Format:
       * `projects/{project_id}/locations/{location}/processors/{processor_id}`
       * `projects/{project_id}/locations/{location}/processors/{processor_id}/processorVersions/{processor_version_id}`
       
      string processor_name = 1;
      Specified by:
      getProcessorName in interface RagFileParsingConfig.LayoutParserOrBuilder
      Returns:
      The processorName.
    • getProcessorNameBytes

      public com.google.protobuf.ByteString getProcessorNameBytes()
       The full resource name of a Document AI processor or processor version.
       The processor must have type `LAYOUT_PARSER_PROCESSOR`. If specified, the
       `additional_config.parse_as_scanned_pdf` field must be false.
       Format:
       * `projects/{project_id}/locations/{location}/processors/{processor_id}`
       * `projects/{project_id}/locations/{location}/processors/{processor_id}/processorVersions/{processor_version_id}`
       
      string processor_name = 1;
      Specified by:
      getProcessorNameBytes in interface RagFileParsingConfig.LayoutParserOrBuilder
      Returns:
      The bytes for processorName.
    • setProcessorName

      public RagFileParsingConfig.LayoutParser.Builder setProcessorName(String value)
       The full resource name of a Document AI processor or processor version.
       The processor must have type `LAYOUT_PARSER_PROCESSOR`. If specified, the
       `additional_config.parse_as_scanned_pdf` field must be false.
       Format:
       * `projects/{project_id}/locations/{location}/processors/{processor_id}`
       * `projects/{project_id}/locations/{location}/processors/{processor_id}/processorVersions/{processor_version_id}`
       
      string processor_name = 1;
      Parameters:
      value - The processorName to set.
      Returns:
      This builder for chaining.
    • clearProcessorName

      public RagFileParsingConfig.LayoutParser.Builder clearProcessorName()
       The full resource name of a Document AI processor or processor version.
       The processor must have type `LAYOUT_PARSER_PROCESSOR`. If specified, the
       `additional_config.parse_as_scanned_pdf` field must be false.
       Format:
       * `projects/{project_id}/locations/{location}/processors/{processor_id}`
       * `projects/{project_id}/locations/{location}/processors/{processor_id}/processorVersions/{processor_version_id}`
       
      string processor_name = 1;
      Returns:
      This builder for chaining.
    • setProcessorNameBytes

      public RagFileParsingConfig.LayoutParser.Builder setProcessorNameBytes(com.google.protobuf.ByteString value)
       The full resource name of a Document AI processor or processor version.
       The processor must have type `LAYOUT_PARSER_PROCESSOR`. If specified, the
       `additional_config.parse_as_scanned_pdf` field must be false.
       Format:
       * `projects/{project_id}/locations/{location}/processors/{processor_id}`
       * `projects/{project_id}/locations/{location}/processors/{processor_id}/processorVersions/{processor_version_id}`
       
      string processor_name = 1;
      Parameters:
      value - The bytes for processorName to set.
      Returns:
      This builder for chaining.
    • getMaxParsingRequestsPerMin

      public int getMaxParsingRequestsPerMin()
       The maximum number of requests the job is allowed to make to the Document
       AI processor per minute. Consult
       https://cloud.google.com/document-ai/quotas and the Quota page for your
       project to set an appropriate value here. If unspecified, a default value
       of 120 QPM would be used.
       
      int32 max_parsing_requests_per_min = 2;
      Specified by:
      getMaxParsingRequestsPerMin in interface RagFileParsingConfig.LayoutParserOrBuilder
      Returns:
      The maxParsingRequestsPerMin.
    • setMaxParsingRequestsPerMin

      public RagFileParsingConfig.LayoutParser.Builder setMaxParsingRequestsPerMin(int value)
       The maximum number of requests the job is allowed to make to the Document
       AI processor per minute. Consult
       https://cloud.google.com/document-ai/quotas and the Quota page for your
       project to set an appropriate value here. If unspecified, a default value
       of 120 QPM would be used.
       
      int32 max_parsing_requests_per_min = 2;
      Parameters:
      value - The maxParsingRequestsPerMin to set.
      Returns:
      This builder for chaining.
    • clearMaxParsingRequestsPerMin

      public RagFileParsingConfig.LayoutParser.Builder clearMaxParsingRequestsPerMin()
       The maximum number of requests the job is allowed to make to the Document
       AI processor per minute. Consult
       https://cloud.google.com/document-ai/quotas and the Quota page for your
       project to set an appropriate value here. If unspecified, a default value
       of 120 QPM would be used.
       
      int32 max_parsing_requests_per_min = 2;
      Returns:
      This builder for chaining.