Class RagFileParsingConfig.LlmParser

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.aiplatform.v1.RagFileParsingConfig.LlmParser
All Implemented Interfaces:
RagFileParsingConfig.LlmParserOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
RagFileParsingConfig

public static final class RagFileParsingConfig.LlmParser extends com.google.protobuf.GeneratedMessage implements RagFileParsingConfig.LlmParserOrBuilder
 Specifies the advanced parsing for RagFiles.
 
Protobuf type google.cloud.aiplatform.v1.RagFileParsingConfig.LlmParser
See Also:
  • Field Details

    • MODEL_NAME_FIELD_NUMBER

      public static final int MODEL_NAME_FIELD_NUMBER
      See Also:
    • MAX_PARSING_REQUESTS_PER_MIN_FIELD_NUMBER

      public static final int MAX_PARSING_REQUESTS_PER_MIN_FIELD_NUMBER
      See Also:
    • CUSTOM_PARSING_PROMPT_FIELD_NUMBER

      public static final int CUSTOM_PARSING_PROMPT_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
    • getModelName

      public String getModelName()
       The name of a LLM model used for parsing.
       Format:
       * `projects/{project_id}/locations/{location}/publishers/{publisher}/models/{model}`
       
      string model_name = 1;
      Specified by:
      getModelName in interface RagFileParsingConfig.LlmParserOrBuilder
      Returns:
      The modelName.
    • getModelNameBytes

      public com.google.protobuf.ByteString getModelNameBytes()
       The name of a LLM model used for parsing.
       Format:
       * `projects/{project_id}/locations/{location}/publishers/{publisher}/models/{model}`
       
      string model_name = 1;
      Specified by:
      getModelNameBytes in interface RagFileParsingConfig.LlmParserOrBuilder
      Returns:
      The bytes for modelName.
    • getMaxParsingRequestsPerMin

      public int getMaxParsingRequestsPerMin()
       The maximum number of requests the job is allowed to make to the
       LLM model per minute. Consult
       https://cloud.google.com/vertex-ai/generative-ai/docs/quotas
       and your document size to set an appropriate value here. If unspecified,
       a default value of 5000 QPM would be used.
       
      int32 max_parsing_requests_per_min = 2;
      Specified by:
      getMaxParsingRequestsPerMin in interface RagFileParsingConfig.LlmParserOrBuilder
      Returns:
      The maxParsingRequestsPerMin.
    • getCustomParsingPrompt

      public String getCustomParsingPrompt()
       The prompt to use for parsing. If not specified, a default prompt will
       be used.
       
      string custom_parsing_prompt = 3;
      Specified by:
      getCustomParsingPrompt in interface RagFileParsingConfig.LlmParserOrBuilder
      Returns:
      The customParsingPrompt.
    • getCustomParsingPromptBytes

      public com.google.protobuf.ByteString getCustomParsingPromptBytes()
       The prompt to use for parsing. If not specified, a default prompt will
       be used.
       
      string custom_parsing_prompt = 3;
      Specified by:
      getCustomParsingPromptBytes in interface RagFileParsingConfig.LlmParserOrBuilder
      Returns:
      The bytes for customParsingPrompt.
    • 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 RagFileParsingConfig.LlmParser parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static RagFileParsingConfig.LlmParser parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static RagFileParsingConfig.LlmParser parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static RagFileParsingConfig.LlmParser.Builder newBuilder()
    • newBuilder

    • toBuilder

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

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

      public static RagFileParsingConfig.LlmParser getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<RagFileParsingConfig.LlmParser> parser()
    • getParserForType

      public com.google.protobuf.Parser<RagFileParsingConfig.LlmParser> 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 RagFileParsingConfig.LlmParser getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder