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

namespace Google\Cloud\Kms\V1\ImportJob;

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

/**
 * The public key component of the wrapping key. For details of the type of
 * key this public key corresponds to, see the
 * [ImportMethod][google.cloud.kms.v1.ImportJob.ImportMethod].
 *
 * Generated from protobuf message <code>google.cloud.kms.v1.ImportJob.WrappingPublicKey</code>
 */
class WrappingPublicKey extends \Google\Protobuf\Internal\Message
{
    /**
     * The public key, encoded in PEM format. For more information, see the [RFC
     * 7468](https://tools.ietf.org/html/rfc7468) sections for [General
     * Considerations](https://tools.ietf.org/html/rfc7468#section-2) and
     * [Textual Encoding of Subject Public Key Info]
     * (https://tools.ietf.org/html/rfc7468#section-13).
     *
     * Generated from protobuf field <code>string pem = 1;</code>
     */
    protected $pem = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $pem
     *           The public key, encoded in PEM format. For more information, see the [RFC
     *           7468](https://tools.ietf.org/html/rfc7468) sections for [General
     *           Considerations](https://tools.ietf.org/html/rfc7468#section-2) and
     *           [Textual Encoding of Subject Public Key Info]
     *           (https://tools.ietf.org/html/rfc7468#section-13).
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Kms\V1\Resources::initOnce();
        parent::__construct($data);
    }

    /**
     * The public key, encoded in PEM format. For more information, see the [RFC
     * 7468](https://tools.ietf.org/html/rfc7468) sections for [General
     * Considerations](https://tools.ietf.org/html/rfc7468#section-2) and
     * [Textual Encoding of Subject Public Key Info]
     * (https://tools.ietf.org/html/rfc7468#section-13).
     *
     * Generated from protobuf field <code>string pem = 1;</code>
     * @return string
     */
    public function getPem()
    {
        return $this->pem;
    }

    /**
     * The public key, encoded in PEM format. For more information, see the [RFC
     * 7468](https://tools.ietf.org/html/rfc7468) sections for [General
     * Considerations](https://tools.ietf.org/html/rfc7468#section-2) and
     * [Textual Encoding of Subject Public Key Info]
     * (https://tools.ietf.org/html/rfc7468#section-13).
     *
     * Generated from protobuf field <code>string pem = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setPem($var)
    {
        GPBUtil::checkString($var, True);
        $this->pem = $var;

        return $this;
    }

}


