<?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.BizIdentityInfo</code>
 */
class BizIdentityInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.BizIdentityInfo.VerifiedLevelValue vlevel = 1;</code>
     */
    protected $vlevel = null;
    /**
     * Generated from protobuf field <code>optional .proto.VerifiedNameCertificate vnameCert = 2;</code>
     */
    protected $vnameCert = null;
    /**
     * Generated from protobuf field <code>optional bool signed = 3;</code>
     */
    protected $signed = null;
    /**
     * Generated from protobuf field <code>optional bool revoked = 4;</code>
     */
    protected $revoked = null;
    /**
     * Generated from protobuf field <code>optional .proto.BizIdentityInfo.HostStorageType hostStorage = 5;</code>
     */
    protected $hostStorage = null;
    /**
     * Generated from protobuf field <code>optional .proto.BizIdentityInfo.ActualActorsType actualActors = 6;</code>
     */
    protected $actualActors = null;
    /**
     * Generated from protobuf field <code>optional uint64 privacyModeTs = 7;</code>
     */
    protected $privacyModeTs = null;
    /**
     * Generated from protobuf field <code>optional uint64 featureControls = 8;</code>
     */
    protected $featureControls = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $vlevel
     *     @type \PhpWA\Protocol\Proto\VerifiedNameCertificate $vnameCert
     *     @type bool $signed
     *     @type bool $revoked
     *     @type int $hostStorage
     *     @type int $actualActors
     *     @type int|string $privacyModeTs
     *     @type int|string $featureControls
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

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

    public function hasVlevel()
    {
        return isset($this->vlevel);
    }

    public function clearVlevel()
    {
        unset($this->vlevel);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.VerifiedNameCertificate vnameCert = 2;</code>
     * @return \PhpWA\Protocol\Proto\VerifiedNameCertificate|null
     */
    public function getVnameCert()
    {
        return $this->vnameCert;
    }

    public function hasVnameCert()
    {
        return isset($this->vnameCert);
    }

    public function clearVnameCert()
    {
        unset($this->vnameCert);
    }

    /**
     * Generated from protobuf field <code>optional .proto.VerifiedNameCertificate vnameCert = 2;</code>
     * @param \PhpWA\Protocol\Proto\VerifiedNameCertificate $var
     * @return $this
     */
    public function setVnameCert($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\VerifiedNameCertificate::class);
        $this->vnameCert = $var;

        return $this;
    }

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

    public function hasSigned()
    {
        return isset($this->signed);
    }

    public function clearSigned()
    {
        unset($this->signed);
    }

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

        return $this;
    }

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

    public function hasRevoked()
    {
        return isset($this->revoked);
    }

    public function clearRevoked()
    {
        unset($this->revoked);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.BizIdentityInfo.HostStorageType hostStorage = 5;</code>
     * @return int
     */
    public function getHostStorage()
    {
        return isset($this->hostStorage) ? $this->hostStorage : 0;
    }

    public function hasHostStorage()
    {
        return isset($this->hostStorage);
    }

    public function clearHostStorage()
    {
        unset($this->hostStorage);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.BizIdentityInfo.ActualActorsType actualActors = 6;</code>
     * @return int
     */
    public function getActualActors()
    {
        return isset($this->actualActors) ? $this->actualActors : 0;
    }

    public function hasActualActors()
    {
        return isset($this->actualActors);
    }

    public function clearActualActors()
    {
        unset($this->actualActors);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint64 privacyModeTs = 7;</code>
     * @return int|string
     */
    public function getPrivacyModeTs()
    {
        return isset($this->privacyModeTs) ? $this->privacyModeTs : 0;
    }

    public function hasPrivacyModeTs()
    {
        return isset($this->privacyModeTs);
    }

    public function clearPrivacyModeTs()
    {
        unset($this->privacyModeTs);
    }

    /**
     * Generated from protobuf field <code>optional uint64 privacyModeTs = 7;</code>
     * @param int|string $var
     * @return $this
     */
    public function setPrivacyModeTs($var)
    {
        GPBUtil::checkUint64($var);
        $this->privacyModeTs = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint64 featureControls = 8;</code>
     * @return int|string
     */
    public function getFeatureControls()
    {
        return isset($this->featureControls) ? $this->featureControls : 0;
    }

    public function hasFeatureControls()
    {
        return isset($this->featureControls);
    }

    public function clearFeatureControls()
    {
        unset($this->featureControls);
    }

    /**
     * Generated from protobuf field <code>optional uint64 featureControls = 8;</code>
     * @param int|string $var
     * @return $this
     */
    public function setFeatureControls($var)
    {
        GPBUtil::checkUint64($var);
        $this->featureControls = $var;

        return $this;
    }

}

