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

namespace Google\Cloud\Iot\V1;

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

/**
 * Request for `UnbindDeviceFromGateway`.
 *
 * Generated from protobuf message <code>google.cloud.iot.v1.UnbindDeviceFromGatewayRequest</code>
 */
class UnbindDeviceFromGatewayRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * The name of the registry. For example,
     * `projects/example-project/locations/us-central1/registries/my-registry`.
     *
     * Generated from protobuf field <code>string parent = 1;</code>
     */
    private $parent = '';
    /**
     * The value of `gateway_id` can be either the device numeric ID or the
     * user-defined device identifier.
     *
     * Generated from protobuf field <code>string gateway_id = 2;</code>
     */
    private $gateway_id = '';
    /**
     * The device to disassociate from the specified gateway. The value of
     * `device_id` can be either the device numeric ID or the user-defined device
     * identifier.
     *
     * Generated from protobuf field <code>string device_id = 3;</code>
     */
    private $device_id = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $parent
     *           The name of the registry. For example,
     *           `projects/example-project/locations/us-central1/registries/my-registry`.
     *     @type string $gateway_id
     *           The value of `gateway_id` can be either the device numeric ID or the
     *           user-defined device identifier.
     *     @type string $device_id
     *           The device to disassociate from the specified gateway. The value of
     *           `device_id` can be either the device numeric ID or the user-defined device
     *           identifier.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Iot\V1\DeviceManager::initOnce();
        parent::__construct($data);
    }

    /**
     * The name of the registry. For example,
     * `projects/example-project/locations/us-central1/registries/my-registry`.
     *
     * Generated from protobuf field <code>string parent = 1;</code>
     * @return string
     */
    public function getParent()
    {
        return $this->parent;
    }

    /**
     * The name of the registry. For example,
     * `projects/example-project/locations/us-central1/registries/my-registry`.
     *
     * Generated from protobuf field <code>string parent = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setParent($var)
    {
        GPBUtil::checkString($var, True);
        $this->parent = $var;

        return $this;
    }

    /**
     * The value of `gateway_id` can be either the device numeric ID or the
     * user-defined device identifier.
     *
     * Generated from protobuf field <code>string gateway_id = 2;</code>
     * @return string
     */
    public function getGatewayId()
    {
        return $this->gateway_id;
    }

    /**
     * The value of `gateway_id` can be either the device numeric ID or the
     * user-defined device identifier.
     *
     * Generated from protobuf field <code>string gateway_id = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setGatewayId($var)
    {
        GPBUtil::checkString($var, True);
        $this->gateway_id = $var;

        return $this;
    }

    /**
     * The device to disassociate from the specified gateway. The value of
     * `device_id` can be either the device numeric ID or the user-defined device
     * identifier.
     *
     * Generated from protobuf field <code>string device_id = 3;</code>
     * @return string
     */
    public function getDeviceId()
    {
        return $this->device_id;
    }

    /**
     * The device to disassociate from the specified gateway. The value of
     * `device_id` can be either the device numeric ID or the user-defined device
     * identifier.
     *
     * Generated from protobuf field <code>string device_id = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setDeviceId($var)
    {
        GPBUtil::checkString($var, True);
        $this->device_id = $var;

        return $this;
    }

}

