Google Cloud IoT Core V1 Client - Class ModifyCloudToDeviceConfigRequest (1.5.12)

Reference documentation and code samples for the Google Cloud IoT Core V1 Client class ModifyCloudToDeviceConfigRequest.

Request for ModifyCloudToDeviceConfig.

Generated from protobuf message google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest

Methods

__construct

Constructor.

Parameters
NameDescription
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/device0 or projects/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/device0 or projects/p0/locations/us-central1/registries/registry0/devices/{num_id}.

Returns
TypeDescription
string

setName

Required. The name of the device. For example, projects/p0/locations/us-central1/registries/registry0/devices/device0 or projects/p0/locations/us-central1/registries/registry0/devices/{num_id}.

Parameter
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var int|string
Returns
TypeDescription
$this

getBinaryData

Required. The configuration data for the device.

Returns
TypeDescription
string

setBinaryData

Required. The configuration data for the device.

Parameter
NameDescription
var string
Returns
TypeDescription
$this