| Package | Description |
|---|---|
| com.google.api.services.cloudiot.v1 | |
| com.google.api.services.cloudiot.v1.model |
| Modifier and Type | Method and Description |
|---|---|
CloudIot.Projects.Locations.Registries.Devices.Create |
CloudIot.Projects.Locations.Registries.Devices.create(String parent,
Device content)
Creates a device in a device registry.
|
CloudIot.Projects.Locations.Registries.Devices.Patch |
CloudIot.Projects.Locations.Registries.Devices.patch(String name,
Device content)
Updates a device.
|
| Constructor and Description |
|---|
Create(String parent,
Device content)
Creates a device in a device registry.
|
Patch(String name,
Device content)
Updates a device.
|
| Modifier and Type | Method and Description |
|---|---|
Device |
Device.clone() |
Device |
Device.set(String fieldName,
Object value) |
Device |
Device.setBlocked(Boolean blocked)
If a device is blocked, connections or requests from this device will fail.
|
Device |
Device.setConfig(DeviceConfig config)
The most recent device configuration, which is eventually sent from Cloud IoT Core to the
device.
|
Device |
Device.setCredentials(List<DeviceCredential> credentials)
The credentials used to authenticate this device.
|
Device |
Device.setGatewayConfig(GatewayConfig gatewayConfig)
Gateway-related configuration and state.
|
Device |
Device.setId(String id)
The user-defined device identifier.
|
Device |
Device.setLastConfigAckTime(String lastConfigAckTime)
[Output only] The last time a cloud-to-device config version acknowledgment was received from
the device.
|
Device |
Device.setLastConfigSendTime(String lastConfigSendTime)
[Output only] The last time a cloud-to-device config version was sent to the device.
|
Device |
Device.setLastErrorStatus(Status lastErrorStatus)
[Output only] The error message of the most recent error, such as a failure to publish to Cloud
Pub/Sub.
|
Device |
Device.setLastErrorTime(String lastErrorTime)
[Output only] The time the most recent error occurred, such as a failure to publish to Cloud
Pub/Sub.
|
Device |
Device.setLastEventTime(String lastEventTime)
[Output only] The last time a telemetry event was received.
|
Device |
Device.setLastHeartbeatTime(String lastHeartbeatTime)
[Output only] The last time an MQTT `PINGREQ` was received.
|
Device |
Device.setLastStateTime(String lastStateTime)
[Output only] The last time a state event was received.
|
Device |
Device.setLogLevel(String logLevel)
**Beta Feature** The logging verbosity for device activity.
|
Device |
Device.setMetadata(Map<String,String> metadata)
The metadata key-value pairs assigned to the device.
|
Device |
Device.setName(String name)
The resource path name.
|
Device |
Device.setNumId(BigInteger numId)
[Output only] A server-defined unique numeric ID for the device.
|
Device |
Device.setState(DeviceState state)
[Output only] The state most recently received from the device.
|
| Modifier and Type | Method and Description |
|---|---|
List<Device> |
ListDevicesResponse.getDevices()
The devices that match the request.
|
| Modifier and Type | Method and Description |
|---|---|
ListDevicesResponse |
ListDevicesResponse.setDevices(List<Device> devices)
The devices that match the request.
|
Copyright © 2011–2023 Google. All rights reserved.