<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/privacy/dlp/v2/dlp.proto

namespace Google\Cloud\Dlp\V2;

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

/**
 * Statistics related to processing hybrid inspect requests.
 *
 * Generated from protobuf message <code>google.privacy.dlp.v2.HybridInspectStatistics</code>
 */
class HybridInspectStatistics extends \Google\Protobuf\Internal\Message
{
    /**
     * The number of hybrid inspection requests processed within this job.
     *
     * Generated from protobuf field <code>int64 processed_count = 1;</code>
     */
    private $processed_count = 0;
    /**
     * The number of hybrid inspection requests aborted because the job ran
     * out of quota or was ended before they could be processed.
     *
     * Generated from protobuf field <code>int64 aborted_count = 2;</code>
     */
    private $aborted_count = 0;
    /**
     * The number of hybrid requests currently being processed. Only populated
     * when called via method `getDlpJob`.
     * A burst of traffic may cause hybrid inspect requests to be enqueued.
     * Processing will take place as quickly as possible, but resource limitations
     * may impact how long a request is enqueued for.
     *
     * Generated from protobuf field <code>int64 pending_count = 3;</code>
     */
    private $pending_count = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $processed_count
     *           The number of hybrid inspection requests processed within this job.
     *     @type int|string $aborted_count
     *           The number of hybrid inspection requests aborted because the job ran
     *           out of quota or was ended before they could be processed.
     *     @type int|string $pending_count
     *           The number of hybrid requests currently being processed. Only populated
     *           when called via method `getDlpJob`.
     *           A burst of traffic may cause hybrid inspect requests to be enqueued.
     *           Processing will take place as quickly as possible, but resource limitations
     *           may impact how long a request is enqueued for.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce();
        parent::__construct($data);
    }

    /**
     * The number of hybrid inspection requests processed within this job.
     *
     * Generated from protobuf field <code>int64 processed_count = 1;</code>
     * @return int|string
     */
    public function getProcessedCount()
    {
        return $this->processed_count;
    }

    /**
     * The number of hybrid inspection requests processed within this job.
     *
     * Generated from protobuf field <code>int64 processed_count = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setProcessedCount($var)
    {
        GPBUtil::checkInt64($var);
        $this->processed_count = $var;

        return $this;
    }

    /**
     * The number of hybrid inspection requests aborted because the job ran
     * out of quota or was ended before they could be processed.
     *
     * Generated from protobuf field <code>int64 aborted_count = 2;</code>
     * @return int|string
     */
    public function getAbortedCount()
    {
        return $this->aborted_count;
    }

    /**
     * The number of hybrid inspection requests aborted because the job ran
     * out of quota or was ended before they could be processed.
     *
     * Generated from protobuf field <code>int64 aborted_count = 2;</code>
     * @param int|string $var
     * @return $this
     */
    public function setAbortedCount($var)
    {
        GPBUtil::checkInt64($var);
        $this->aborted_count = $var;

        return $this;
    }

    /**
     * The number of hybrid requests currently being processed. Only populated
     * when called via method `getDlpJob`.
     * A burst of traffic may cause hybrid inspect requests to be enqueued.
     * Processing will take place as quickly as possible, but resource limitations
     * may impact how long a request is enqueued for.
     *
     * Generated from protobuf field <code>int64 pending_count = 3;</code>
     * @return int|string
     */
    public function getPendingCount()
    {
        return $this->pending_count;
    }

    /**
     * The number of hybrid requests currently being processed. Only populated
     * when called via method `getDlpJob`.
     * A burst of traffic may cause hybrid inspect requests to be enqueued.
     * Processing will take place as quickly as possible, but resource limitations
     * may impact how long a request is enqueued for.
     *
     * Generated from protobuf field <code>int64 pending_count = 3;</code>
     * @param int|string $var
     * @return $this
     */
    public function setPendingCount($var)
    {
        GPBUtil::checkInt64($var);
        $this->pending_count = $var;

        return $this;
    }

}

