Reference documentation and code samples for the Google Cloud IoT Core V1 Client class BindDeviceToGatewayRequest.
Request forBindDeviceToGateway.
Generated from protobuf messagegoogle.cloud.iot.v1.BindDeviceToGatewayRequest
Namespace
Google \ Cloud \ Iot \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. The name of the registry. For example,projects/example-project/locations/us-central1/registries/my-registry.
↳ gateway_id
string
Required. The value ofgateway_idcan be either the device numeric ID or the user-defined device identifier.
↳ device_id
string
Required. The device to associate with the specified gateway. The value ofdevice_idcan be either the device numeric ID or the user-defined device identifier.
getParent
Required. The name of the registry. For example,projects/example-project/locations/us-central1/registries/my-registry.
Returns
Type
Description
string
setParent
Required. The name of the registry. For example,projects/example-project/locations/us-central1/registries/my-registry.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getGatewayId
Required. The value ofgateway_idcan be either the device numeric ID or the
user-defined device identifier.
Returns
Type
Description
string
setGatewayId
Required. The value ofgateway_idcan be either the device numeric ID or the
user-defined device identifier.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getDeviceId
Required. The device to associate with the specified gateway. The value ofdevice_idcan be either the device numeric ID or the user-defined device
identifier.
Returns
Type
Description
string
setDeviceId
Required. The device to associate with the specified gateway. The value ofdevice_idcan be either the device numeric ID or the user-defined device
identifier.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameters
Name
Description
parent
string
Required. The name of the registry. For example,projects/example-project/locations/us-central1/registries/my-registry. Please seeGoogle\Cloud\Iot\V1\DeviceManagerClient::registryName()for help formatting this field.
gatewayId
string
Required. The value ofgateway_idcan be either the device numeric ID or the
user-defined device identifier.
deviceId
string
Required. The device to associate with the specified gateway. The value ofdevice_idcan be either the device numeric ID or the user-defined device
identifier.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud IoT Core V1 Client - Class BindDeviceToGatewayRequest (1.7.5)\n\nVersion latestkeyboard_arrow_down\n\n- [1.7.5 (latest)](/php/docs/reference/cloud-iot/latest/V1.BindDeviceToGatewayRequest)\n- [1.7.4](/php/docs/reference/cloud-iot/1.7.4/V1.BindDeviceToGatewayRequest)\n- [1.6.4](/php/docs/reference/cloud-iot/1.6.4/V1.BindDeviceToGatewayRequest)\n- [1.5.12](/php/docs/reference/cloud-iot/1.5.12/V1.BindDeviceToGatewayRequest) \nReference documentation and code samples for the Google Cloud IoT Core V1 Client class BindDeviceToGatewayRequest.\n\nRequest for `BindDeviceToGateway`.\n\nGenerated from protobuf message `google.cloud.iot.v1.BindDeviceToGatewayRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Iot \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. The name of the registry. For example,\n`projects/example-project/locations/us-central1/registries/my-registry`.\n\n### setParent\n\nRequired. The name of the registry. For example,\n`projects/example-project/locations/us-central1/registries/my-registry`.\n\n### getGatewayId\n\nRequired. The value of `gateway_id` can be either the device numeric ID or the\nuser-defined device identifier.\n\n### setGatewayId\n\nRequired. The value of `gateway_id` can be either the device numeric ID or the\nuser-defined device identifier.\n\n### getDeviceId\n\nRequired. The device to associate with the specified gateway. The value of\n`device_id` can be either the device numeric ID or the user-defined device\nidentifier.\n\n### setDeviceId\n\nRequired. The device to associate with the specified gateway. The value of\n`device_id` can be either the device numeric ID or the user-defined device\nidentifier.\n\n### static::build"]]