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

namespace Google\Cloud\Chronicle\V1;

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

/**
 * A collection of user preferences for watchlist UI configuration.
 *
 * Generated from protobuf message <code>google.cloud.chronicle.v1.WatchlistUserPreferences</code>
 */
class WatchlistUserPreferences extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. Whether the watchlist is pinned on the dashboard.
     *
     * Generated from protobuf field <code>bool pinned = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $pinned = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $pinned
     *           Optional. Whether the watchlist is pinned on the dashboard.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Chronicle\V1\Entity::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. Whether the watchlist is pinned on the dashboard.
     *
     * Generated from protobuf field <code>bool pinned = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return bool
     */
    public function getPinned()
    {
        return $this->pinned;
    }

    /**
     * Optional. Whether the watchlist is pinned on the dashboard.
     *
     * Generated from protobuf field <code>bool pinned = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param bool $var
     * @return $this
     */
    public function setPinned($var)
    {
        GPBUtil::checkBool($var);
        $this->pinned = $var;

        return $this;
    }

}

