<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: couchbase/internal/hooks/v1/hooks.proto

namespace Couchbase\Protostellar\Generated\Internal\Hooks\V1;

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

/**
 * Generated from protobuf message <code>couchbase.internal.hooks.v1.WatchBarrierRequest</code>
 */
class WatchBarrierRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string hooks_context_id = 1;</code>
     */
    protected $hooks_context_id = '';
    /**
     * Generated from protobuf field <code>string barrier_id = 2;</code>
     */
    protected $barrier_id = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $hooks_context_id
     *     @type string $barrier_id
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Couchbase\Internal\Hooks\V1\Hooks::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>string hooks_context_id = 1;</code>
     * @return string
     */
    public function getHooksContextId()
    {
        return $this->hooks_context_id;
    }

    /**
     * Generated from protobuf field <code>string hooks_context_id = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setHooksContextId($var)
    {
        GPBUtil::checkString($var, True);
        $this->hooks_context_id = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string barrier_id = 2;</code>
     * @return string
     */
    public function getBarrierId()
    {
        return $this->barrier_id;
    }

    /**
     * Generated from protobuf field <code>string barrier_id = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setBarrierId($var)
    {
        GPBUtil::checkString($var, True);
        $this->barrier_id = $var;

        return $this;
    }

}

