<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/compute/v1/compute.proto

namespace Google\Cloud\Compute\V1;

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

/**
 * A Shielded Instance Identity Entry.
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.ShieldedInstanceIdentityEntry</code>
 */
class ShieldedInstanceIdentityEntry extends \Google\Protobuf\Internal\Message
{
    /**
     * A PEM-encoded X.509 certificate. This field can be empty.
     *
     * Generated from protobuf field <code>string ek_cert = 181743133;</code>
     */
    private $ek_cert = '';
    /**
     * A PEM-encoded public key.
     *
     * Generated from protobuf field <code>string ek_pub = 40512484;</code>
     */
    private $ek_pub = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $ek_cert
     *           A PEM-encoded X.509 certificate. This field can be empty.
     *     @type string $ek_pub
     *           A PEM-encoded public key.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * A PEM-encoded X.509 certificate. This field can be empty.
     *
     * Generated from protobuf field <code>string ek_cert = 181743133;</code>
     * @return string
     */
    public function getEkCert()
    {
        return $this->ek_cert;
    }

    /**
     * A PEM-encoded X.509 certificate. This field can be empty.
     *
     * Generated from protobuf field <code>string ek_cert = 181743133;</code>
     * @param string $var
     * @return $this
     */
    public function setEkCert($var)
    {
        GPBUtil::checkString($var, True);
        $this->ek_cert = $var;

        return $this;
    }

    /**
     * A PEM-encoded public key.
     *
     * Generated from protobuf field <code>string ek_pub = 40512484;</code>
     * @return string
     */
    public function getEkPub()
    {
        return $this->ek_pub;
    }

    /**
     * A PEM-encoded public key.
     *
     * Generated from protobuf field <code>string ek_pub = 40512484;</code>
     * @param string $var
     * @return $this
     */
    public function setEkPub($var)
    {
        GPBUtil::checkString($var, True);
        $this->ek_pub = $var;

        return $this;
    }

}

