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

namespace Mynaparrot\PlugnmeetProto;

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

/**
 * Generated from protobuf message <code>plugnmeet.PrivateDataDelivery</code>
 */
class PrivateDataDelivery extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string to_user_id = 1;</code>
     */
    protected $to_user_id = '';
    /**
     * Generated from protobuf field <code>bool echo_to_sender = 2;</code>
     */
    protected $echo_to_sender = false;
    /**
     * Generated from protobuf field <code>string type = 3;</code>
     */
    protected $type = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $to_user_id
     *     @type bool $echo_to_sender
     *     @type string $type
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetNatsMsg::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool echo_to_sender = 2;</code>
     * @return bool
     */
    public function getEchoToSender()
    {
        return $this->echo_to_sender;
    }

    /**
     * Generated from protobuf field <code>bool echo_to_sender = 2;</code>
     * @param bool $var
     * @return $this
     */
    public function setEchoToSender($var)
    {
        GPBUtil::checkBool($var);
        $this->echo_to_sender = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string type = 3;</code>
     * @return string
     */
    public function getType()
    {
        return $this->type;
    }

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

        return $this;
    }

}

