<?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.ShieldedInstanceIdentity</code>
 */
class ShieldedInstanceIdentity extends \Google\Protobuf\Internal\Message
{
    /**
     * An Endorsement Key (EK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM.
     *
     * Generated from protobuf field <code>.google.cloud.compute.v1.ShieldedInstanceIdentityEntry encryption_key = 219833251;</code>
     */
    private $encryption_key = null;
    /**
     * [Output Only] Type of the resource. Always compute#shieldedInstanceIdentity for shielded Instance identity entry.
     *
     * Generated from protobuf field <code>string kind = 3292052;</code>
     */
    private $kind = '';
    /**
     * An Attestation Key (AK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM.
     *
     * Generated from protobuf field <code>.google.cloud.compute.v1.ShieldedInstanceIdentityEntry signing_key = 52512805;</code>
     */
    private $signing_key = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Compute\V1\ShieldedInstanceIdentityEntry $encryption_key
     *           An Endorsement Key (EK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM.
     *     @type string $kind
     *           [Output Only] Type of the resource. Always compute#shieldedInstanceIdentity for shielded Instance identity entry.
     *     @type \Google\Cloud\Compute\V1\ShieldedInstanceIdentityEntry $signing_key
     *           An Attestation Key (AK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * An Endorsement Key (EK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM.
     *
     * Generated from protobuf field <code>.google.cloud.compute.v1.ShieldedInstanceIdentityEntry encryption_key = 219833251;</code>
     * @return \Google\Cloud\Compute\V1\ShieldedInstanceIdentityEntry
     */
    public function getEncryptionKey()
    {
        return isset($this->encryption_key) ? $this->encryption_key : null;
    }

    public function hasEncryptionKey()
    {
        return isset($this->encryption_key);
    }

    public function clearEncryptionKey()
    {
        unset($this->encryption_key);
    }

    /**
     * An Endorsement Key (EK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM.
     *
     * Generated from protobuf field <code>.google.cloud.compute.v1.ShieldedInstanceIdentityEntry encryption_key = 219833251;</code>
     * @param \Google\Cloud\Compute\V1\ShieldedInstanceIdentityEntry $var
     * @return $this
     */
    public function setEncryptionKey($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Compute\V1\ShieldedInstanceIdentityEntry::class);
        $this->encryption_key = $var;

        return $this;
    }

    /**
     * [Output Only] Type of the resource. Always compute#shieldedInstanceIdentity for shielded Instance identity entry.
     *
     * Generated from protobuf field <code>string kind = 3292052;</code>
     * @return string
     */
    public function getKind()
    {
        return $this->kind;
    }

    /**
     * [Output Only] Type of the resource. Always compute#shieldedInstanceIdentity for shielded Instance identity entry.
     *
     * Generated from protobuf field <code>string kind = 3292052;</code>
     * @param string $var
     * @return $this
     */
    public function setKind($var)
    {
        GPBUtil::checkString($var, True);
        $this->kind = $var;

        return $this;
    }

    /**
     * An Attestation Key (AK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM.
     *
     * Generated from protobuf field <code>.google.cloud.compute.v1.ShieldedInstanceIdentityEntry signing_key = 52512805;</code>
     * @return \Google\Cloud\Compute\V1\ShieldedInstanceIdentityEntry
     */
    public function getSigningKey()
    {
        return isset($this->signing_key) ? $this->signing_key : null;
    }

    public function hasSigningKey()
    {
        return isset($this->signing_key);
    }

    public function clearSigningKey()
    {
        unset($this->signing_key);
    }

    /**
     * An Attestation Key (AK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM.
     *
     * Generated from protobuf field <code>.google.cloud.compute.v1.ShieldedInstanceIdentityEntry signing_key = 52512805;</code>
     * @param \Google\Cloud\Compute\V1\ShieldedInstanceIdentityEntry $var
     * @return $this
     */
    public function setSigningKey($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Compute\V1\ShieldedInstanceIdentityEntry::class);
        $this->signing_key = $var;

        return $this;
    }

}

