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

namespace PhpWA\Protocol\Proto\Message;

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

/**
 * Generated from protobuf message <code>proto.Message.HighlyStructuredMessage</code>
 */
class HighlyStructuredMessage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string namespace = 1;</code>
     */
    protected $namespace = null;
    /**
     * Generated from protobuf field <code>optional string elementName = 2;</code>
     */
    protected $elementName = null;
    /**
     * Generated from protobuf field <code>repeated string params = 3;</code>
     */
    private $params;
    /**
     * Generated from protobuf field <code>optional string fallbackLg = 4;</code>
     */
    protected $fallbackLg = null;
    /**
     * Generated from protobuf field <code>optional string fallbackLc = 5;</code>
     */
    protected $fallbackLc = null;
    /**
     * Generated from protobuf field <code>repeated .proto.Message.HighlyStructuredMessage.HSMLocalizableParameter localizableParams = 6;</code>
     */
    private $localizableParams;
    /**
     * Generated from protobuf field <code>optional string deterministicLg = 7;</code>
     */
    protected $deterministicLg = null;
    /**
     * Generated from protobuf field <code>optional string deterministicLc = 8;</code>
     */
    protected $deterministicLc = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message.TemplateMessage hydratedHsm = 9;</code>
     */
    protected $hydratedHsm = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $namespace
     *     @type string $elementName
     *     @type string[] $params
     *     @type string $fallbackLg
     *     @type string $fallbackLc
     *     @type \PhpWA\Protocol\Proto\Message\HighlyStructuredMessage\HSMLocalizableParameter[] $localizableParams
     *     @type string $deterministicLg
     *     @type string $deterministicLc
     *     @type \PhpWA\Protocol\Proto\Message\TemplateMessage $hydratedHsm
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

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

    public function hasNamespace()
    {
        return isset($this->namespace);
    }

    public function clearNamespace()
    {
        unset($this->namespace);
    }

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

        return $this;
    }

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

    public function hasElementName()
    {
        return isset($this->elementName);
    }

    public function clearElementName()
    {
        unset($this->elementName);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated string params = 3;</code>
     * @return RepeatedField<string>
     */
    public function getParams()
    {
        return $this->params;
    }

    /**
     * Generated from protobuf field <code>repeated string params = 3;</code>
     * @param string[] $var
     * @return $this
     */
    public function setParams($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->params = $arr;

        return $this;
    }

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

    public function hasFallbackLg()
    {
        return isset($this->fallbackLg);
    }

    public function clearFallbackLg()
    {
        unset($this->fallbackLg);
    }

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

        return $this;
    }

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

    public function hasFallbackLc()
    {
        return isset($this->fallbackLc);
    }

    public function clearFallbackLc()
    {
        unset($this->fallbackLc);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.Message.HighlyStructuredMessage.HSMLocalizableParameter localizableParams = 6;</code>
     * @return RepeatedField<\PhpWA\Protocol\Proto\Message\HighlyStructuredMessage\HSMLocalizableParameter>
     */
    public function getLocalizableParams()
    {
        return $this->localizableParams;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.Message.HighlyStructuredMessage.HSMLocalizableParameter localizableParams = 6;</code>
     * @param \PhpWA\Protocol\Proto\Message\HighlyStructuredMessage\HSMLocalizableParameter[] $var
     * @return $this
     */
    public function setLocalizableParams($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \PhpWA\Protocol\Proto\Message\HighlyStructuredMessage\HSMLocalizableParameter::class);
        $this->localizableParams = $arr;

        return $this;
    }

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

    public function hasDeterministicLg()
    {
        return isset($this->deterministicLg);
    }

    public function clearDeterministicLg()
    {
        unset($this->deterministicLg);
    }

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

        return $this;
    }

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

    public function hasDeterministicLc()
    {
        return isset($this->deterministicLc);
    }

    public function clearDeterministicLc()
    {
        unset($this->deterministicLc);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.TemplateMessage hydratedHsm = 9;</code>
     * @return \PhpWA\Protocol\Proto\Message\TemplateMessage|null
     */
    public function getHydratedHsm()
    {
        return $this->hydratedHsm;
    }

    public function hasHydratedHsm()
    {
        return isset($this->hydratedHsm);
    }

    public function clearHydratedHsm()
    {
        unset($this->hydratedHsm);
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.TemplateMessage hydratedHsm = 9;</code>
     * @param \PhpWA\Protocol\Proto\Message\TemplateMessage $var
     * @return $this
     */
    public function setHydratedHsm($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\TemplateMessage::class);
        $this->hydratedHsm = $var;

        return $this;
    }

}

