<?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 insert request.
 *
 * Generated from protobuf message <code>google.cloud.sql.v1beta4.SslCertsInsertRequest</code>
 */
class SslCertsInsertRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * User supplied name.  Must be a distinct name from the other certificates
     * for this instance.
     *
     * Generated from protobuf field <code>string common_name = 1;</code>
     */
    private $common_name = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $common_name
     *           User supplied name.  Must be a distinct name from the other certificates
     *           for this instance.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Sql\V1Beta4\CloudSqlResources::initOnce();
        parent::__construct($data);
    }

    /**
     * User supplied name.  Must be a distinct name from the other certificates
     * for this instance.
     *
     * Generated from protobuf field <code>string common_name = 1;</code>
     * @return string
     */
    public function getCommonName()
    {
        return $this->common_name;
    }

    /**
     * User supplied name.  Must be a distinct name from the other certificates
     * for this instance.
     *
     * Generated from protobuf field <code>string common_name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setCommonName($var)
    {
        GPBUtil::checkString($var, True);
        $this->common_name = $var;

        return $this;
    }

}

