<?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.BotAgeCollectionMetadata</code>
 */
class BotAgeCollectionMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional bool ageCollectionEligible = 1;</code>
     */
    protected $ageCollectionEligible = null;
    /**
     * Generated from protobuf field <code>optional bool shouldTriggerAgeCollectionOnClient = 2;</code>
     */
    protected $shouldTriggerAgeCollectionOnClient = null;
    /**
     * Generated from protobuf field <code>optional .proto.BotAgeCollectionMetadata.AgeCollectionType ageCollectionType = 3;</code>
     */
    protected $ageCollectionType = null;

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

    /**
     * Generated from protobuf field <code>optional bool ageCollectionEligible = 1;</code>
     * @return bool
     */
    public function getAgeCollectionEligible()
    {
        return isset($this->ageCollectionEligible) ? $this->ageCollectionEligible : false;
    }

    public function hasAgeCollectionEligible()
    {
        return isset($this->ageCollectionEligible);
    }

    public function clearAgeCollectionEligible()
    {
        unset($this->ageCollectionEligible);
    }

    /**
     * Generated from protobuf field <code>optional bool ageCollectionEligible = 1;</code>
     * @param bool $var
     * @return $this
     */
    public function setAgeCollectionEligible($var)
    {
        GPBUtil::checkBool($var);
        $this->ageCollectionEligible = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bool shouldTriggerAgeCollectionOnClient = 2;</code>
     * @return bool
     */
    public function getShouldTriggerAgeCollectionOnClient()
    {
        return isset($this->shouldTriggerAgeCollectionOnClient) ? $this->shouldTriggerAgeCollectionOnClient : false;
    }

    public function hasShouldTriggerAgeCollectionOnClient()
    {
        return isset($this->shouldTriggerAgeCollectionOnClient);
    }

    public function clearShouldTriggerAgeCollectionOnClient()
    {
        unset($this->shouldTriggerAgeCollectionOnClient);
    }

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

        return $this;
    }

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

    public function hasAgeCollectionType()
    {
        return isset($this->ageCollectionType);
    }

    public function clearAgeCollectionType()
    {
        unset($this->ageCollectionType);
    }

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

        return $this;
    }

}

