<?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.SessionTransparencyMetadata</code>
 */
class SessionTransparencyMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string disclaimerText = 1;</code>
     */
    protected $disclaimerText = null;
    /**
     * Generated from protobuf field <code>optional string hcaId = 2;</code>
     */
    protected $hcaId = null;
    /**
     * Generated from protobuf field <code>optional .proto.SessionTransparencyType sessionTransparencyType = 3;</code>
     */
    protected $sessionTransparencyType = null;

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

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

    public function hasDisclaimerText()
    {
        return isset($this->disclaimerText);
    }

    public function clearDisclaimerText()
    {
        unset($this->disclaimerText);
    }

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

        return $this;
    }

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

    public function hasHcaId()
    {
        return isset($this->hcaId);
    }

    public function clearHcaId()
    {
        unset($this->hcaId);
    }

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

        return $this;
    }

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

    public function hasSessionTransparencyType()
    {
        return isset($this->sessionTransparencyType);
    }

    public function clearSessionTransparencyType()
    {
        unset($this->sessionTransparencyType);
    }

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

        return $this;
    }

}

