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

namespace PhpWA\Protocol\Proto;

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

/**
 * Generated from protobuf message <code>proto.BotMetricsMetadata</code>
 */
class BotMetricsMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string destinationId = 1;</code>
     */
    protected $destinationId = null;
    /**
     * Generated from protobuf field <code>optional .proto.BotMetricsEntryPoint destinationEntryPoint = 2;</code>
     */
    protected $destinationEntryPoint = null;
    /**
     * Generated from protobuf field <code>optional .proto.BotMetricsThreadEntryPoint threadOrigin = 3;</code>
     */
    protected $threadOrigin = null;

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

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

    public function hasDestinationId()
    {
        return isset($this->destinationId);
    }

    public function clearDestinationId()
    {
        unset($this->destinationId);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.BotMetricsEntryPoint destinationEntryPoint = 2;</code>
     * @return int
     */
    public function getDestinationEntryPoint()
    {
        return isset($this->destinationEntryPoint) ? $this->destinationEntryPoint : 0;
    }

    public function hasDestinationEntryPoint()
    {
        return isset($this->destinationEntryPoint);
    }

    public function clearDestinationEntryPoint()
    {
        unset($this->destinationEntryPoint);
    }

    /**
     * Generated from protobuf field <code>optional .proto.BotMetricsEntryPoint destinationEntryPoint = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setDestinationEntryPoint($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\BotMetricsEntryPoint::class);
        $this->destinationEntryPoint = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.BotMetricsThreadEntryPoint threadOrigin = 3;</code>
     * @return int
     */
    public function getThreadOrigin()
    {
        return isset($this->threadOrigin) ? $this->threadOrigin : 0;
    }

    public function hasThreadOrigin()
    {
        return isset($this->threadOrigin);
    }

    public function clearThreadOrigin()
    {
        unset($this->threadOrigin);
    }

    /**
     * Generated from protobuf field <code>optional .proto.BotMetricsThreadEntryPoint threadOrigin = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setThreadOrigin($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\BotMetricsThreadEntryPoint::class);
        $this->threadOrigin = $var;

        return $this;
    }

}

