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

namespace Google\Cloud\Sql\V1beta4;

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

/**
 * SslCerts create ephemeral certificate request.
 *
 * Generated from protobuf message <code>google.cloud.sql.v1beta4.SslCertsCreateEphemeralRequest</code>
 */
class SslCertsCreateEphemeralRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * PEM encoded public key to include in the signed certificate.
     *
     * Generated from protobuf field <code>string public_key = 1;</code>
     */
    private $public_key = '';
    /**
     * Access token to include in the signed certificate.
     *
     * Generated from protobuf field <code>string access_token = 2;</code>
     */
    private $access_token = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $public_key
     *           PEM encoded public key to include in the signed certificate.
     *     @type string $access_token
     *           Access token to include in the signed certificate.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Sql\V1Beta4\CloudSqlResources::initOnce();
        parent::__construct($data);
    }

    /**
     * PEM encoded public key to include in the signed certificate.
     *
     * Generated from protobuf field <code>string public_key = 1;</code>
     * @return string
     */
    public function getPublicKey()
    {
        return $this->public_key;
    }

    /**
     * PEM encoded public key to include in the signed certificate.
     *
     * Generated from protobuf field <code>string public_key = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setPublicKey($var)
    {
        GPBUtil::checkString($var, True);
        $this->public_key = $var;

        return $this;
    }

    /**
     * Access token to include in the signed certificate.
     *
     * Generated from protobuf field <code>string access_token = 2;</code>
     * @return string
     */
    public function getAccessToken()
    {
        return $this->access_token;
    }

    /**
     * Access token to include in the signed certificate.
     *
     * Generated from protobuf field <code>string access_token = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setAccessToken($var)
    {
        GPBUtil::checkString($var, True);
        $this->access_token = $var;

        return $this;
    }

}

