Reference documentation and code samples for the Google Cloud IoT Core V1 Client class ModifyCloudToDeviceConfigRequest.
Request forModifyCloudToDeviceConfig.
Generated from protobuf messagegoogle.cloud.iot.v1.ModifyCloudToDeviceConfigRequest
Namespace
Google \ Cloud \ Iot \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. The name of the device. For example,projects/p0/locations/us-central1/registries/registry0/devices/device0orprojects/p0/locations/us-central1/registries/registry0/devices/{num_id}.
↳ version_to_update
int|string
The version number to update. If this value is zero, it will not check the version number of the server and will always update the current version; otherwise, this update will fail if the version number found on the server does not match this version number. This is used to support multiple simultaneous updates without losing data.
↳ binary_data
string
Required. The configuration data for the device.
getName
Required. The name of the device. For example,projects/p0/locations/us-central1/registries/registry0/devices/device0orprojects/p0/locations/us-central1/registries/registry0/devices/{num_id}.
Returns
Type
Description
string
setName
Required. The name of the device. For example,projects/p0/locations/us-central1/registries/registry0/devices/device0orprojects/p0/locations/us-central1/registries/registry0/devices/{num_id}.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getVersionToUpdate
The version number to update. If this value is zero, it will not check the
version number of the server and will always update the current version;
otherwise, this update will fail if the version number found on the server
does not match this version number. This is used to support multiple
simultaneous updates without losing data.
Returns
Type
Description
int|string
setVersionToUpdate
The version number to update. If this value is zero, it will not check the
version number of the server and will always update the current version;
otherwise, this update will fail if the version number found on the server
does not match this version number. This is used to support multiple
simultaneous updates without losing data.
Parameter
Name
Description
var
int|string
Returns
Type
Description
$this
getBinaryData
Required. The configuration data for the device.
Returns
Type
Description
string
setBinaryData
Required. The configuration data for the device.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameters
Name
Description
name
string
Required. The name of the device. For example,projects/p0/locations/us-central1/registries/registry0/devices/device0orprojects/p0/locations/us-central1/registries/registry0/devices/{num_id}. Please seeGoogle\Cloud\Iot\V1\DeviceManagerClient::deviceName()for help formatting this field.
[[["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 ModifyCloudToDeviceConfigRequest (1.7.5)\n\nVersion latestkeyboard_arrow_down\n\n- [1.7.5 (latest)](/php/docs/reference/cloud-iot/latest/V1.ModifyCloudToDeviceConfigRequest)\n- [1.7.4](/php/docs/reference/cloud-iot/1.7.4/V1.ModifyCloudToDeviceConfigRequest)\n- [1.6.4](/php/docs/reference/cloud-iot/1.6.4/V1.ModifyCloudToDeviceConfigRequest)\n- [1.5.12](/php/docs/reference/cloud-iot/1.5.12/V1.ModifyCloudToDeviceConfigRequest) \nReference documentation and code samples for the Google Cloud IoT Core V1 Client class ModifyCloudToDeviceConfigRequest.\n\nRequest for `ModifyCloudToDeviceConfig`.\n\nGenerated from protobuf message `google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Iot \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. The name of the device. For example,\n`projects/p0/locations/us-central1/registries/registry0/devices/device0` or\n`projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.\n\n### setName\n\nRequired. The name of the device. For example,\n`projects/p0/locations/us-central1/registries/registry0/devices/device0` or\n`projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.\n\n### getVersionToUpdate\n\nThe version number to update. If this value is zero, it will not check the\nversion number of the server and will always update the current version;\notherwise, this update will fail if the version number found on the server\ndoes not match this version number. This is used to support multiple\nsimultaneous updates without losing data.\n\n### setVersionToUpdate\n\nThe version number to update. If this value is zero, it will not check the\nversion number of the server and will always update the current version;\notherwise, this update will fail if the version number found on the server\ndoes not match this version number. This is used to support multiple\nsimultaneous updates without losing data.\n\n### getBinaryData\n\nRequired. The configuration data for the device.\n\n### setBinaryData\n\nRequired. The configuration data for the device.\n\n### static::build"]]