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

namespace Couchbase\Protostellar\Generated\KV\V1;

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

/**
 * Generated from protobuf message <code>couchbase.kv.v1.MutationToken</code>
 */
class MutationToken extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string bucket_name = 1;</code>
     */
    protected $bucket_name = '';
    /**
     * Generated from protobuf field <code>uint32 vbucket_id = 2;</code>
     */
    protected $vbucket_id = 0;
    /**
     * Generated from protobuf field <code>uint64 vbucket_uuid = 3;</code>
     */
    protected $vbucket_uuid = 0;
    /**
     * Generated from protobuf field <code>uint64 seq_no = 4;</code>
     */
    protected $seq_no = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $bucket_name
     *     @type int $vbucket_id
     *     @type int|string $vbucket_uuid
     *     @type int|string $seq_no
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Couchbase\Kv\V1\Kv::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint32 vbucket_id = 2;</code>
     * @return int
     */
    public function getVbucketId()
    {
        return $this->vbucket_id;
    }

    /**
     * Generated from protobuf field <code>uint32 vbucket_id = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setVbucketId($var)
    {
        GPBUtil::checkUint32($var);
        $this->vbucket_id = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint64 vbucket_uuid = 3;</code>
     * @return int|string
     */
    public function getVbucketUuid()
    {
        return $this->vbucket_uuid;
    }

    /**
     * Generated from protobuf field <code>uint64 vbucket_uuid = 3;</code>
     * @param int|string $var
     * @return $this
     */
    public function setVbucketUuid($var)
    {
        GPBUtil::checkUint64($var);
        $this->vbucket_uuid = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint64 seq_no = 4;</code>
     * @return int|string
     */
    public function getSeqNo()
    {
        return $this->seq_no;
    }

    /**
     * Generated from protobuf field <code>uint64 seq_no = 4;</code>
     * @param int|string $var
     * @return $this
     */
    public function setSeqNo($var)
    {
        GPBUtil::checkUint64($var);
        $this->seq_no = $var;

        return $this;
    }

}

