<?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;

/**
 * Initial State for shielded instance, these are public keys which are safe to store in public
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.InitialStateConfig</code>
 */
class InitialStateConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * The Key Database (db).
     *
     * Generated from protobuf field <code>repeated .google.cloud.compute.v1.FileContentBuffer dbs = 99253;</code>
     */
    private $dbs;
    /**
     * The forbidden key database (dbx).
     *
     * Generated from protobuf field <code>repeated .google.cloud.compute.v1.FileContentBuffer dbxs = 3077113;</code>
     */
    private $dbxs;
    /**
     * The Key Exchange Key (KEK).
     *
     * Generated from protobuf field <code>repeated .google.cloud.compute.v1.FileContentBuffer keks = 3288130;</code>
     */
    private $keks;
    /**
     * The Platform Key (PK).
     *
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.FileContentBuffer pk = 3579;</code>
     */
    private $pk = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\Compute\V1\FileContentBuffer>|\Google\Protobuf\Internal\RepeatedField $dbs
     *           The Key Database (db).
     *     @type array<\Google\Cloud\Compute\V1\FileContentBuffer>|\Google\Protobuf\Internal\RepeatedField $dbxs
     *           The forbidden key database (dbx).
     *     @type array<\Google\Cloud\Compute\V1\FileContentBuffer>|\Google\Protobuf\Internal\RepeatedField $keks
     *           The Key Exchange Key (KEK).
     *     @type \Google\Cloud\Compute\V1\FileContentBuffer $pk
     *           The Platform Key (PK).
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * The Key Database (db).
     *
     * Generated from protobuf field <code>repeated .google.cloud.compute.v1.FileContentBuffer dbs = 99253;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getDbs()
    {
        return $this->dbs;
    }

    /**
     * The Key Database (db).
     *
     * Generated from protobuf field <code>repeated .google.cloud.compute.v1.FileContentBuffer dbs = 99253;</code>
     * @param array<\Google\Cloud\Compute\V1\FileContentBuffer>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setDbs($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Compute\V1\FileContentBuffer::class);
        $this->dbs = $arr;

        return $this;
    }

    /**
     * The forbidden key database (dbx).
     *
     * Generated from protobuf field <code>repeated .google.cloud.compute.v1.FileContentBuffer dbxs = 3077113;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getDbxs()
    {
        return $this->dbxs;
    }

    /**
     * The forbidden key database (dbx).
     *
     * Generated from protobuf field <code>repeated .google.cloud.compute.v1.FileContentBuffer dbxs = 3077113;</code>
     * @param array<\Google\Cloud\Compute\V1\FileContentBuffer>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setDbxs($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Compute\V1\FileContentBuffer::class);
        $this->dbxs = $arr;

        return $this;
    }

    /**
     * The Key Exchange Key (KEK).
     *
     * Generated from protobuf field <code>repeated .google.cloud.compute.v1.FileContentBuffer keks = 3288130;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getKeks()
    {
        return $this->keks;
    }

    /**
     * The Key Exchange Key (KEK).
     *
     * Generated from protobuf field <code>repeated .google.cloud.compute.v1.FileContentBuffer keks = 3288130;</code>
     * @param array<\Google\Cloud\Compute\V1\FileContentBuffer>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setKeks($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Compute\V1\FileContentBuffer::class);
        $this->keks = $arr;

        return $this;
    }

    /**
     * The Platform Key (PK).
     *
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.FileContentBuffer pk = 3579;</code>
     * @return \Google\Cloud\Compute\V1\FileContentBuffer|null
     */
    public function getPk()
    {
        return $this->pk;
    }

    public function hasPk()
    {
        return isset($this->pk);
    }

    public function clearPk()
    {
        unset($this->pk);
    }

    /**
     * The Platform Key (PK).
     *
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.FileContentBuffer pk = 3579;</code>
     * @param \Google\Cloud\Compute\V1\FileContentBuffer $var
     * @return $this
     */
    public function setPk($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Compute\V1\FileContentBuffer::class);
        $this->pk = $var;

        return $this;
    }

}

