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

namespace Google\Cloud\DiscoveryEngine\V1\TargetSite\FailureReason;

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

/**
 * Failed due to insufficient quota.
 *
 * Generated from protobuf message <code>google.cloud.discoveryengine.v1.TargetSite.FailureReason.QuotaFailure</code>
 */
class QuotaFailure extends \Google\Protobuf\Internal\Message
{
    /**
     * This number is an estimation on how much total quota this project needs
     * to successfully complete indexing.
     *
     * Generated from protobuf field <code>int64 total_required_quota = 1;</code>
     */
    protected $total_required_quota = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $total_required_quota
     *           This number is an estimation on how much total quota this project needs
     *           to successfully complete indexing.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Discoveryengine\V1\SiteSearchEngine::initOnce();
        parent::__construct($data);
    }

    /**
     * This number is an estimation on how much total quota this project needs
     * to successfully complete indexing.
     *
     * Generated from protobuf field <code>int64 total_required_quota = 1;</code>
     * @return int|string
     */
    public function getTotalRequiredQuota()
    {
        return $this->total_required_quota;
    }

    /**
     * This number is an estimation on how much total quota this project needs
     * to successfully complete indexing.
     *
     * Generated from protobuf field <code>int64 total_required_quota = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setTotalRequiredQuota($var)
    {
        GPBUtil::checkInt64($var);
        $this->total_required_quota = $var;

        return $this;
    }

}


