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

namespace Google\Cloud\Logging\V2\TailLogEntriesResponse;

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

/**
 * Information about entries that were omitted from the session.
 *
 * Generated from protobuf message <code>google.logging.v2.TailLogEntriesResponse.SuppressionInfo</code>
 */
class SuppressionInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * The reason that entries were omitted from the session.
     *
     * Generated from protobuf field <code>.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason reason = 1;</code>
     */
    protected $reason = 0;
    /**
     * A lower bound on the count of entries omitted due to `reason`.
     *
     * Generated from protobuf field <code>int32 suppressed_count = 2;</code>
     */
    protected $suppressed_count = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $reason
     *           The reason that entries were omitted from the session.
     *     @type int $suppressed_count
     *           A lower bound on the count of entries omitted due to `reason`.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Logging\V2\Logging::initOnce();
        parent::__construct($data);
    }

    /**
     * The reason that entries were omitted from the session.
     *
     * Generated from protobuf field <code>.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason reason = 1;</code>
     * @return int
     */
    public function getReason()
    {
        return $this->reason;
    }

    /**
     * The reason that entries were omitted from the session.
     *
     * Generated from protobuf field <code>.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason reason = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setReason($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Logging\V2\TailLogEntriesResponse\SuppressionInfo\Reason::class);
        $this->reason = $var;

        return $this;
    }

    /**
     * A lower bound on the count of entries omitted due to `reason`.
     *
     * Generated from protobuf field <code>int32 suppressed_count = 2;</code>
     * @return int
     */
    public function getSuppressedCount()
    {
        return $this->suppressed_count;
    }

    /**
     * A lower bound on the count of entries omitted due to `reason`.
     *
     * Generated from protobuf field <code>int32 suppressed_count = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setSuppressedCount($var)
    {
        GPBUtil::checkInt32($var);
        $this->suppressed_count = $var;

        return $this;
    }

}

