<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: WAProto.proto

namespace PhpWA\Protocol\Proto\Message;

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

/**
 * Generated from protobuf message <code>proto.Message.SenderKeyDistributionMessage</code>
 */
class SenderKeyDistributionMessage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string groupId = 1;</code>
     */
    protected $groupId = null;
    /**
     * Generated from protobuf field <code>optional bytes axolotlSenderKeyDistributionMessage = 2;</code>
     */
    protected $axolotlSenderKeyDistributionMessage = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $groupId
     *     @type string $axolotlSenderKeyDistributionMessage
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional string groupId = 1;</code>
     * @return string
     */
    public function getGroupId()
    {
        return isset($this->groupId) ? $this->groupId : '';
    }

    public function hasGroupId()
    {
        return isset($this->groupId);
    }

    public function clearGroupId()
    {
        unset($this->groupId);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bytes axolotlSenderKeyDistributionMessage = 2;</code>
     * @return string
     */
    public function getAxolotlSenderKeyDistributionMessage()
    {
        return isset($this->axolotlSenderKeyDistributionMessage) ? $this->axolotlSenderKeyDistributionMessage : '';
    }

    public function hasAxolotlSenderKeyDistributionMessage()
    {
        return isset($this->axolotlSenderKeyDistributionMessage);
    }

    public function clearAxolotlSenderKeyDistributionMessage()
    {
        unset($this->axolotlSenderKeyDistributionMessage);
    }

    /**
     * Generated from protobuf field <code>optional bytes axolotlSenderKeyDistributionMessage = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setAxolotlSenderKeyDistributionMessage($var)
    {
        GPBUtil::checkString($var, False);
        $this->axolotlSenderKeyDistributionMessage = $var;

        return $this;
    }

}

