public static final class RagFileParsingConfig.LayoutParser.Builder extends GeneratedMessageV3.Builder<RagFileParsingConfig.LayoutParser.Builder> implements RagFileParsingConfig.LayoutParserOrBuilder
Document AI Layout Parser config.
Protobuf type google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParser
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public RagFileParsingConfig.LayoutParser.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public RagFileParsingConfig.LayoutParser build()
public RagFileParsingConfig.LayoutParser buildPartial()
public RagFileParsingConfig.LayoutParser.Builder clear()
Overrides
public RagFileParsingConfig.LayoutParser.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
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;
public RagFileParsingConfig.LayoutParser.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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;
public RagFileParsingConfig.LayoutParser.Builder clone()
Overrides
public RagFileParsingConfig.LayoutParser getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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.
|
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.
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public RagFileParsingConfig.LayoutParser.Builder mergeFrom(RagFileParsingConfig.LayoutParser other)
public RagFileParsingConfig.LayoutParser.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public RagFileParsingConfig.LayoutParser.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final RagFileParsingConfig.LayoutParser.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public RagFileParsingConfig.LayoutParser.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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;
Parameter |
Name |
Description |
value |
int
The maxParsingRequestsPerMin to set.
|
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;
Parameter |
Name |
Description |
value |
String
The processorName to set.
|
public RagFileParsingConfig.LayoutParser.Builder setProcessorNameBytes(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;
Parameter |
Name |
Description |
value |
ByteString
The bytes for processorName to set.
|
public RagFileParsingConfig.LayoutParser.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final RagFileParsingConfig.LayoutParser.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides