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

namespace Google\Cloud\AppEngine\V1;

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

/**
 * Request message for `Instances.DebugInstance`.
 *
 * Generated from protobuf message <code>google.appengine.v1.DebugInstanceRequest</code>
 */
class DebugInstanceRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Name of the resource requested. Example:
     * `apps/myapp/services/default/versions/v1/instances/instance-1`.
     *
     * Generated from protobuf field <code>string name = 1;</code>
     */
    private $name = '';
    /**
     * Public SSH key to add to the instance. Examples:
     * * `[USERNAME]:ssh-rsa [KEY_VALUE] [USERNAME]`
     * * `[USERNAME]:ssh-rsa [KEY_VALUE] google-ssh {"userName":"[USERNAME]","expireOn":"[EXPIRE_TIME]"}`
     * For more information, see
     * [Adding and Removing SSH Keys](https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys).
     *
     * Generated from protobuf field <code>string ssh_key = 2;</code>
     */
    private $ssh_key = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           Name of the resource requested. Example:
     *           `apps/myapp/services/default/versions/v1/instances/instance-1`.
     *     @type string $ssh_key
     *           Public SSH key to add to the instance. Examples:
     *           * `[USERNAME]:ssh-rsa [KEY_VALUE] [USERNAME]`
     *           * `[USERNAME]:ssh-rsa [KEY_VALUE] google-ssh {"userName":"[USERNAME]","expireOn":"[EXPIRE_TIME]"}`
     *           For more information, see
     *           [Adding and Removing SSH Keys](https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys).
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Appengine\V1\Appengine::initOnce();
        parent::__construct($data);
    }

    /**
     * Name of the resource requested. Example:
     * `apps/myapp/services/default/versions/v1/instances/instance-1`.
     *
     * Generated from protobuf field <code>string name = 1;</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Name of the resource requested. Example:
     * `apps/myapp/services/default/versions/v1/instances/instance-1`.
     *
     * Generated from protobuf field <code>string name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * Public SSH key to add to the instance. Examples:
     * * `[USERNAME]:ssh-rsa [KEY_VALUE] [USERNAME]`
     * * `[USERNAME]:ssh-rsa [KEY_VALUE] google-ssh {"userName":"[USERNAME]","expireOn":"[EXPIRE_TIME]"}`
     * For more information, see
     * [Adding and Removing SSH Keys](https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys).
     *
     * Generated from protobuf field <code>string ssh_key = 2;</code>
     * @return string
     */
    public function getSshKey()
    {
        return $this->ssh_key;
    }

    /**
     * Public SSH key to add to the instance. Examples:
     * * `[USERNAME]:ssh-rsa [KEY_VALUE] [USERNAME]`
     * * `[USERNAME]:ssh-rsa [KEY_VALUE] google-ssh {"userName":"[USERNAME]","expireOn":"[EXPIRE_TIME]"}`
     * For more information, see
     * [Adding and Removing SSH Keys](https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys).
     *
     * Generated from protobuf field <code>string ssh_key = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setSshKey($var)
    {
        GPBUtil::checkString($var, True);
        $this->ssh_key = $var;

        return $this;
    }

}

