<?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.VerifiedNameCertificate</code>
 */
class VerifiedNameCertificate extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional bytes details = 1;</code>
     */
    protected $details = null;
    /**
     * Generated from protobuf field <code>optional bytes signature = 2;</code>
     */
    protected $signature = null;
    /**
     * Generated from protobuf field <code>optional bytes serverSignature = 3;</code>
     */
    protected $serverSignature = null;

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

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

    public function hasDetails()
    {
        return isset($this->details);
    }

    public function clearDetails()
    {
        unset($this->details);
    }

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

        return $this;
    }

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

    public function hasSignature()
    {
        return isset($this->signature);
    }

    public function clearSignature()
    {
        unset($this->signature);
    }

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

        return $this;
    }

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

    public function hasServerSignature()
    {
        return isset($this->serverSignature);
    }

    public function clearServerSignature()
    {
        unset($this->serverSignature);
    }

    /**
     * Generated from protobuf field <code>optional bytes serverSignature = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setServerSignature($var)
    {
        GPBUtil::checkString($var, False);
        $this->serverSignature = $var;

        return $this;
    }

}

