<?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.BotMessageSharingInfo</code>
 */
class BotMessageSharingInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.BotMetricsEntryPoint botEntryPointOrigin = 1;</code>
     */
    protected $botEntryPointOrigin = null;
    /**
     * Generated from protobuf field <code>optional uint32 forwardScore = 2;</code>
     */
    protected $forwardScore = null;

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

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

    public function hasBotEntryPointOrigin()
    {
        return isset($this->botEntryPointOrigin);
    }

    public function clearBotEntryPointOrigin()
    {
        unset($this->botEntryPointOrigin);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint32 forwardScore = 2;</code>
     * @return int
     */
    public function getForwardScore()
    {
        return isset($this->forwardScore) ? $this->forwardScore : 0;
    }

    public function hasForwardScore()
    {
        return isset($this->forwardScore);
    }

    public function clearForwardScore()
    {
        unset($this->forwardScore);
    }

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

        return $this;
    }

}

