Class RagFileParsingConfig.LayoutParser (3.56.0)

public static final class RagFileParsingConfig.LayoutParser extends GeneratedMessageV3 implements RagFileParsingConfig.LayoutParserOrBuilder

Document AI Layout Parser config.

Protobuf type google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > RagFileParsingConfig.LayoutParser

Static Fields

MAX_PARSING_REQUESTS_PER_MIN_FIELD_NUMBER

public static final int MAX_PARSING_REQUESTS_PER_MIN_FIELD_NUMBER
Field Value
Type Description
int

PROCESSOR_NAME_FIELD_NUMBER

public static final int PROCESSOR_NAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static RagFileParsingConfig.LayoutParser getDefaultInstance()
Returns
Type Description
RagFileParsingConfig.LayoutParser

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static RagFileParsingConfig.LayoutParser.Builder newBuilder()
Returns
Type Description
RagFileParsingConfig.LayoutParser.Builder

newBuilder(RagFileParsingConfig.LayoutParser prototype)

public static RagFileParsingConfig.LayoutParser.Builder newBuilder(RagFileParsingConfig.LayoutParser prototype)
Parameter
Name Description
prototype RagFileParsingConfig.LayoutParser
Returns
Type Description
RagFileParsingConfig.LayoutParser.Builder

parseDelimitedFrom(InputStream input)

public static RagFileParsingConfig.LayoutParser parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RagFileParsingConfig.LayoutParser
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RagFileParsingConfig.LayoutParser parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RagFileParsingConfig.LayoutParser
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static RagFileParsingConfig.LayoutParser parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
RagFileParsingConfig.LayoutParser
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RagFileParsingConfig.LayoutParser parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RagFileParsingConfig.LayoutParser
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RagFileParsingConfig.LayoutParser parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
RagFileParsingConfig.LayoutParser
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RagFileParsingConfig.LayoutParser parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RagFileParsingConfig.LayoutParser
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RagFileParsingConfig.LayoutParser parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
RagFileParsingConfig.LayoutParser
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RagFileParsingConfig.LayoutParser parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RagFileParsingConfig.LayoutParser
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static RagFileParsingConfig.LayoutParser parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RagFileParsingConfig.LayoutParser
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RagFileParsingConfig.LayoutParser parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RagFileParsingConfig.LayoutParser
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static RagFileParsingConfig.LayoutParser parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
RagFileParsingConfig.LayoutParser
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RagFileParsingConfig.LayoutParser parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RagFileParsingConfig.LayoutParser
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<RagFileParsingConfig.LayoutParser> parser()
Returns
Type Description
Parser<LayoutParser>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public RagFileParsingConfig.LayoutParser getDefaultInstanceForType()
Returns
Type Description
RagFileParsingConfig.LayoutParser

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;

Returns
Type Description
int

The maxParsingRequestsPerMin.

getParserForType()

public Parser<RagFileParsingConfig.LayoutParser> getParserForType()
Returns
Type Description
Parser<LayoutParser>
Overrides

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;

Returns
Type Description
String

The processorName.

getProcessorNameBytes()

public 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;

Returns
Type Description
ByteString

The bytes for processorName.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public RagFileParsingConfig.LayoutParser.Builder newBuilderForType()
Returns
Type Description
RagFileParsingConfig.LayoutParser.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RagFileParsingConfig.LayoutParser.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RagFileParsingConfig.LayoutParser.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public RagFileParsingConfig.LayoutParser.Builder toBuilder()
Returns
Type Description
RagFileParsingConfig.LayoutParser.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException