<?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.
 *
 * 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>optional .google.cloud.compute.v1.ShieldedInstanceIdentityEntry encryption_key = 488268707;</code>
     */
    private $encryption_key = null;
    /**
     * [Output Only] Type of the resource. Always compute#shieldedInstanceIdentity for shielded Instance identity entry.
     *
     * Generated from protobuf field <code>optional string kind = 3292052;</code>
     */
    private $kind = null;
    /**
     * An Attestation Key (AK) made by the RSA 2048 algorithm issued to the Shielded Instance's vTPM.
     *
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.ShieldedInstanceIdentityEntry signing_key = 320948261;</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>optional .google.cloud.compute.v1.ShieldedInstanceIdentityEntry encryption_key = 488268707;</code>
     * @return \Google\Cloud\Compute\V1\ShieldedInstanceIdentityEntry|null
     */
    public function getEncryptionKey()
    {
        return $this->encryption_key;
    }

    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>optional .google.cloud.compute.v1.ShieldedInstanceIdentityEntry encryption_key = 488268707;</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>optional string kind = 3292052;</code>
     * @return string
     */
    public function getKind()
    {
        return isset($this->kind) ? $this->kind : '';
    }

    public function hasKind()
    {
        return isset($this->kind);
    }

    public function clearKind()
    {
        unset($this->kind);
    }

    /**
     * [Output Only] Type of the resource. Always compute#shieldedInstanceIdentity for shielded Instance identity entry.
     *
     * Generated from protobuf field <code>optional 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>optional .google.cloud.compute.v1.ShieldedInstanceIdentityEntry signing_key = 320948261;</code>
     * @return \Google\Cloud\Compute\V1\ShieldedInstanceIdentityEntry|null
     */
    public function getSigningKey()
    {
        return $this->signing_key;
    }

    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>optional .google.cloud.compute.v1.ShieldedInstanceIdentityEntry signing_key = 320948261;</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;
    }

}

