<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/aiplatform/v1/vertex_rag_data.proto

namespace Google\Cloud\AIPlatform\V1\RagFileParsingConfig;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Document AI Layout Parser config.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.RagFileParsingConfig.LayoutParser</code>
 */
class LayoutParser extends \Google\Protobuf\Internal\Message
{
    /**
     * 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}`
     *
     * Generated from protobuf field <code>string processor_name = 1;</code>
     */
    protected $processor_name = '';
    /**
     * 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.
     *
     * Generated from protobuf field <code>int32 max_parsing_requests_per_min = 2;</code>
     */
    protected $max_parsing_requests_per_min = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $processor_name
     *           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}`
     *     @type int $max_parsing_requests_per_min
     *           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.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\VertexRagData::initOnce();
        parent::__construct($data);
    }

    /**
     * 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}`
     *
     * Generated from protobuf field <code>string processor_name = 1;</code>
     * @return string
     */
    public function getProcessorName()
    {
        return $this->processor_name;
    }

    /**
     * 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}`
     *
     * Generated from protobuf field <code>string processor_name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setProcessorName($var)
    {
        GPBUtil::checkString($var, True);
        $this->processor_name = $var;

        return $this;
    }

    /**
     * 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.
     *
     * Generated from protobuf field <code>int32 max_parsing_requests_per_min = 2;</code>
     * @return int
     */
    public function getMaxParsingRequestsPerMin()
    {
        return $this->max_parsing_requests_per_min;
    }

    /**
     * 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.
     *
     * Generated from protobuf field <code>int32 max_parsing_requests_per_min = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setMaxParsingRequestsPerMin($var)
    {
        GPBUtil::checkInt32($var);
        $this->max_parsing_requests_per_min = $var;

        return $this;
    }

}


