Class Device (2.63.0)

  public 
  
 final 
  
 class 
 Device 
  
 extends 
  
 GeneratedMessageV3 
  
 implements 
  
 DeviceOrBuilder 
 

The device resource.

Protobuf type google.cloud.iot.v1.Device

Implements

DeviceOrBuilder

Static Fields

BLOCKED_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 BLOCKED_FIELD_NUMBER 
 
Field Value
Type
Description
int

CONFIG_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 CONFIG_FIELD_NUMBER 
 
Field Value
Type
Description
int

CREDENTIALS_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 CREDENTIALS_FIELD_NUMBER 
 
Field Value
Type
Description
int

GATEWAY_CONFIG_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 GATEWAY_CONFIG_FIELD_NUMBER 
 
Field Value
Type
Description
int

ID_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 ID_FIELD_NUMBER 
 
Field Value
Type
Description
int

LAST_CONFIG_ACK_TIME_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 LAST_CONFIG_ACK_TIME_FIELD_NUMBER 
 
Field Value
Type
Description
int

LAST_CONFIG_SEND_TIME_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 LAST_CONFIG_SEND_TIME_FIELD_NUMBER 
 
Field Value
Type
Description
int

LAST_ERROR_STATUS_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 LAST_ERROR_STATUS_FIELD_NUMBER 
 
Field Value
Type
Description
int

LAST_ERROR_TIME_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 LAST_ERROR_TIME_FIELD_NUMBER 
 
Field Value
Type
Description
int

LAST_EVENT_TIME_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 LAST_EVENT_TIME_FIELD_NUMBER 
 
Field Value
Type
Description
int

LAST_HEARTBEAT_TIME_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 LAST_HEARTBEAT_TIME_FIELD_NUMBER 
 
Field Value
Type
Description
int

LAST_STATE_TIME_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 LAST_STATE_TIME_FIELD_NUMBER 
 
Field Value
Type
Description
int

LOG_LEVEL_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 LOG_LEVEL_FIELD_NUMBER 
 
Field Value
Type
Description
int
  public 
  
 static 
  
 final 
  
 int 
  
 METADATA_FIELD_NUMBER 
 
Field Value
Type
Description
int

NAME_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 NAME_FIELD_NUMBER 
 
Field Value
Type
Description
int

NUM_ID_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 NUM_ID_FIELD_NUMBER 
 
Field Value
Type
Description
int

STATE_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 STATE_FIELD_NUMBER 
 
Field Value
Type
Description
int

Static Methods

getDefaultInstance()

  public 
  
 static 
  
 Device 
  
 getDefaultInstance 
 () 
 
Returns
Type
Description

getDescriptor()

  public 
  
 static 
  
 final 
  
 Descriptors 
 . 
 Descriptor 
  
 getDescriptor 
 () 
 
Returns
Type
Description

newBuilder()

  public 
  
 static 
  
 Device 
 . 
 Builder 
  
 newBuilder 
 () 
 
Returns
Type
Description

newBuilder(Device prototype)

  public 
  
 static 
  
 Device 
 . 
 Builder 
  
 newBuilder 
 ( 
 Device 
  
 prototype 
 ) 
 
Parameter
Name
Description
prototype
Returns
Type
Description

parseDelimitedFrom(InputStream input)

  public 
  
 static 
  
 Device 
  
 parseDelimitedFrom 
 ( 
 InputStream 
  
 input 
 ) 
 
Parameter
Name
Description
input
Returns
Type
Description
Exceptions
Type
Description

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Device 
  
 parseDelimitedFrom 
 ( 
 InputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
input
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(byte[] data)

  public 
  
 static 
  
 Device 
  
 parseFrom 
 ( 
 byte 
 [] 
  
 data 
 ) 
 
Parameter
Name
Description
data
byte []
Returns
Type
Description
Exceptions
Type
Description

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Device 
  
 parseFrom 
 ( 
 byte 
 [] 
  
 data 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
data
byte []
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(ByteString data)

  public 
  
 static 
  
 Device 
  
 parseFrom 
 ( 
 ByteString 
  
 data 
 ) 
 
Parameter
Name
Description
data
Returns
Type
Description
Exceptions
Type
Description

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Device 
  
 parseFrom 
 ( 
 ByteString 
  
 data 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
data
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(CodedInputStream input)

  public 
  
 static 
  
 Device 
  
 parseFrom 
 ( 
 CodedInputStream 
  
 input 
 ) 
 
Parameter
Name
Description
Returns
Type
Description
Exceptions
Type
Description

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Device 
  
 parseFrom 
 ( 
 CodedInputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(InputStream input)

  public 
  
 static 
  
 Device 
  
 parseFrom 
 ( 
 InputStream 
  
 input 
 ) 
 
Parameter
Name
Description
input
Returns
Type
Description
Exceptions
Type
Description

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Device 
  
 parseFrom 
 ( 
 InputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
input
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(ByteBuffer data)

  public 
  
 static 
  
 Device 
  
 parseFrom 
 ( 
 ByteBuffer 
  
 data 
 ) 
 
Parameter
Name
Description
data
Returns
Type
Description
Exceptions
Type
Description

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Device 
  
 parseFrom 
 ( 
 ByteBuffer 
  
 data 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
data
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parser()

  public 
  
 static 
  
 Parser<Device> 
  
 parser 
 () 
 
Returns
Type
Description

Methods

  public 
  
 boolean 
  
 containsMetadata 
 ( 
 String 
  
 key 
 ) 
 

The metadata key-value pairs assigned to the device. This metadata is not interpreted or indexed by Cloud IoT Core. It can be used to add contextual information for the device.

Keys must conform to the regular expression a-zA-Z + and be less than 128 bytes in length.

Values are free-form strings. Each value must be less than or equal to 32 KB in size.

The total size of all keys and values must be less than 256 KB, and the maximum number of key-value pairs is 500.

map<string, string> metadata = 17;

Parameter
Name
Description
key
Returns
Type
Description

equals(Object obj)

  public 
  
 boolean 
  
 equals 
 ( 
 Object 
  
 obj 
 ) 
 
Parameter
Name
Description
obj
Returns
Type
Description
Overrides

getBlocked()

  public 
  
 boolean 
  
 getBlocked 
 () 
 

If a device is blocked, connections or requests from this device will fail. Can be used to temporarily prevent the device from connecting if, for example, the sensor is generating bad data and needs maintenance.

bool blocked = 19;

Returns
Type
Description

The blocked.

getConfig()

  public 
  
 DeviceConfig 
  
 getConfig 
 () 
 

The most recent device configuration, which is eventually sent from Cloud IoT Core to the device. If not present on creation, the configuration will be initialized with an empty payload and version value of 1 . To update this field after creation, use the DeviceManager.ModifyCloudToDeviceConfig method.

.google.cloud.iot.v1.DeviceConfig config = 13;

Returns
Type
Description

The config.

getConfigOrBuilder()

  public 
  
 DeviceConfigOrBuilder 
  
 getConfigOrBuilder 
 () 
 

The most recent device configuration, which is eventually sent from Cloud IoT Core to the device. If not present on creation, the configuration will be initialized with an empty payload and version value of 1 . To update this field after creation, use the DeviceManager.ModifyCloudToDeviceConfig method.

.google.cloud.iot.v1.DeviceConfig config = 13;

Returns
Type
Description

getCredentials(int index)

  public 
  
 DeviceCredential 
  
 getCredentials 
 ( 
 int 
  
 index 
 ) 
 

The credentials used to authenticate this device. To allow credential rotation without interruption, multiple device credentials can be bound to this device. No more than 3 credentials can be bound to a single device at a time. When new credentials are added to a device, they are verified against the registry credentials. For details, see the description of the DeviceRegistry.credentials field.

repeated .google.cloud.iot.v1.DeviceCredential credentials = 12;

Parameter
Name
Description
index
int
Returns
Type
Description

getCredentialsCount()

  public 
  
 int 
  
 getCredentialsCount 
 () 
 

The credentials used to authenticate this device. To allow credential rotation without interruption, multiple device credentials can be bound to this device. No more than 3 credentials can be bound to a single device at a time. When new credentials are added to a device, they are verified against the registry credentials. For details, see the description of the DeviceRegistry.credentials field.

repeated .google.cloud.iot.v1.DeviceCredential credentials = 12;

Returns
Type
Description
int

getCredentialsList()

  public 
  
 List<DeviceCredential> 
  
 getCredentialsList 
 () 
 

The credentials used to authenticate this device. To allow credential rotation without interruption, multiple device credentials can be bound to this device. No more than 3 credentials can be bound to a single device at a time. When new credentials are added to a device, they are verified against the registry credentials. For details, see the description of the DeviceRegistry.credentials field.

repeated .google.cloud.iot.v1.DeviceCredential credentials = 12;

Returns
Type
Description

getCredentialsOrBuilder(int index)

  public 
  
 DeviceCredentialOrBuilder 
  
 getCredentialsOrBuilder 
 ( 
 int 
  
 index 
 ) 
 

The credentials used to authenticate this device. To allow credential rotation without interruption, multiple device credentials can be bound to this device. No more than 3 credentials can be bound to a single device at a time. When new credentials are added to a device, they are verified against the registry credentials. For details, see the description of the DeviceRegistry.credentials field.

repeated .google.cloud.iot.v1.DeviceCredential credentials = 12;

Parameter
Name
Description
index
int
Returns
Type
Description

getCredentialsOrBuilderList()

  public 
  
 List 
< ? 
  
 extends 
  
 DeviceCredentialOrBuilder 
>  
 getCredentialsOrBuilderList 
 () 
 

The credentials used to authenticate this device. To allow credential rotation without interruption, multiple device credentials can be bound to this device. No more than 3 credentials can be bound to a single device at a time. When new credentials are added to a device, they are verified against the registry credentials. For details, see the description of the DeviceRegistry.credentials field.

repeated .google.cloud.iot.v1.DeviceCredential credentials = 12;

Returns
Type
Description
List < ? extends com.google.cloud.iot.v1.DeviceCredentialOrBuilder >

getDefaultInstanceForType()

  public 
  
 Device 
  
 getDefaultInstanceForType 
 () 
 
Returns
Type
Description

getGatewayConfig()

  public 
  
 GatewayConfig 
  
 getGatewayConfig 
 () 
 

Gateway-related configuration and state.

.google.cloud.iot.v1.GatewayConfig gateway_config = 24;

Returns
Type
Description

The gatewayConfig.

getGatewayConfigOrBuilder()

  public 
  
 GatewayConfigOrBuilder 
  
 getGatewayConfigOrBuilder 
 () 
 

Gateway-related configuration and state.

.google.cloud.iot.v1.GatewayConfig gateway_config = 24;

Returns
Type
Description

getId()

  public 
  
 String 
  
 getId 
 () 
 

The user-defined device identifier. The device ID must be unique within a device registry.

string id = 1;

Returns
Type
Description

The id.

getIdBytes()

  public 
  
 ByteString 
  
 getIdBytes 
 () 
 

The user-defined device identifier. The device ID must be unique within a device registry.

string id = 1;

Returns
Type
Description

The bytes for id.

getLastConfigAckTime()

  public 
  
 Timestamp 
  
 getLastConfigAckTime 
 () 
 

[Output only] The last time a cloud-to-device config version acknowledgment was received from the device. This field is only for configurations sent through MQTT.

.google.protobuf.Timestamp last_config_ack_time = 14;

Returns
Type
Description

The lastConfigAckTime.

getLastConfigAckTimeOrBuilder()

  public 
  
 TimestampOrBuilder 
  
 getLastConfigAckTimeOrBuilder 
 () 
 

[Output only] The last time a cloud-to-device config version acknowledgment was received from the device. This field is only for configurations sent through MQTT.

.google.protobuf.Timestamp last_config_ack_time = 14;

Returns
Type
Description

getLastConfigSendTime()

  public 
  
 Timestamp 
  
 getLastConfigSendTime 
 () 
 

[Output only] The last time a cloud-to-device config version was sent to the device.

.google.protobuf.Timestamp last_config_send_time = 18;

Returns
Type
Description

The lastConfigSendTime.

getLastConfigSendTimeOrBuilder()

  public 
  
 TimestampOrBuilder 
  
 getLastConfigSendTimeOrBuilder 
 () 
 

[Output only] The last time a cloud-to-device config version was sent to the device.

.google.protobuf.Timestamp last_config_send_time = 18;

Returns
Type
Description

getLastErrorStatus()

  public 
  
 Status 
  
 getLastErrorStatus 
 () 
 

[Output only] The error message of the most recent error, such as a failure to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this field. If no errors have occurred, this field has an empty message and the status code 0 == OK. Otherwise, this field is expected to have a status code other than OK.

.google.rpc.Status last_error_status = 11;

Returns
Type
Description
com.google.rpc.Status

The lastErrorStatus.

getLastErrorStatusOrBuilder()

  public 
  
 StatusOrBuilder 
  
 getLastErrorStatusOrBuilder 
 () 
 

[Output only] The error message of the most recent error, such as a failure to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this field. If no errors have occurred, this field has an empty message and the status code 0 == OK. Otherwise, this field is expected to have a status code other than OK.

.google.rpc.Status last_error_status = 11;

Returns
Type
Description
com.google.rpc.StatusOrBuilder

getLastErrorTime()

  public 
  
 Timestamp 
  
 getLastErrorTime 
 () 
 

[Output only] The time the most recent error occurred, such as a failure to publish to Cloud Pub/Sub. This field is the timestamp of 'last_error_status'.

.google.protobuf.Timestamp last_error_time = 10;

Returns
Type
Description

The lastErrorTime.

getLastErrorTimeOrBuilder()

  public 
  
 TimestampOrBuilder 
  
 getLastErrorTimeOrBuilder 
 () 
 

[Output only] The time the most recent error occurred, such as a failure to publish to Cloud Pub/Sub. This field is the timestamp of 'last_error_status'.

.google.protobuf.Timestamp last_error_time = 10;

Returns
Type
Description

getLastEventTime()

  public 
  
 Timestamp 
  
 getLastEventTime 
 () 
 

[Output only] The last time a telemetry event was received. Timestamps are periodically collected and written to storage; they may be stale by a few minutes.

.google.protobuf.Timestamp last_event_time = 8;

Returns
Type
Description

The lastEventTime.

getLastEventTimeOrBuilder()

  public 
  
 TimestampOrBuilder 
  
 getLastEventTimeOrBuilder 
 () 
 

[Output only] The last time a telemetry event was received. Timestamps are periodically collected and written to storage; they may be stale by a few minutes.

.google.protobuf.Timestamp last_event_time = 8;

Returns
Type
Description

getLastHeartbeatTime()

  public 
  
 Timestamp 
  
 getLastHeartbeatTime 
 () 
 

[Output only] The last time an MQTT PINGREQ was received. This field applies only to devices connecting through MQTT. MQTT clients usually only send PINGREQ messages if the connection is idle, and no other messages have been sent. Timestamps are periodically collected and written to storage; they may be stale by a few minutes.

.google.protobuf.Timestamp last_heartbeat_time = 7;

Returns
Type
Description

The lastHeartbeatTime.

getLastHeartbeatTimeOrBuilder()

  public 
  
 TimestampOrBuilder 
  
 getLastHeartbeatTimeOrBuilder 
 () 
 

[Output only] The last time an MQTT PINGREQ was received. This field applies only to devices connecting through MQTT. MQTT clients usually only send PINGREQ messages if the connection is idle, and no other messages have been sent. Timestamps are periodically collected and written to storage; they may be stale by a few minutes.

.google.protobuf.Timestamp last_heartbeat_time = 7;

Returns
Type
Description

getLastStateTime()

  public 
  
 Timestamp 
  
 getLastStateTime 
 () 
 

[Output only] The last time a state event was received. Timestamps are periodically collected and written to storage; they may be stale by a few minutes.

.google.protobuf.Timestamp last_state_time = 20;

Returns
Type
Description

The lastStateTime.

getLastStateTimeOrBuilder()

  public 
  
 TimestampOrBuilder 
  
 getLastStateTimeOrBuilder 
 () 
 

[Output only] The last time a state event was received. Timestamps are periodically collected and written to storage; they may be stale by a few minutes.

.google.protobuf.Timestamp last_state_time = 20;

Returns
Type
Description

getLogLevel()

  public 
  
 LogLevel 
  
 getLogLevel 
 () 
 

Beta Feature

The logging verbosity for device activity. If unspecified, DeviceRegistry.log_level will be used.

.google.cloud.iot.v1.LogLevel log_level = 21;

Returns
Type
Description

The logLevel.

getLogLevelValue()

  public 
  
 int 
  
 getLogLevelValue 
 () 
 

Beta Feature

The logging verbosity for device activity. If unspecified, DeviceRegistry.log_level will be used.

.google.cloud.iot.v1.LogLevel log_level = 21;

Returns
Type
Description
int

The enum numeric value on the wire for logLevel.

  public 
  
 Map<String 
 , 
 String 
>  
 getMetadata 
 () 
 

Use #getMetadataMap() instead.

Returns
Type
Description
Map < String , String >

getMetadataCount()

  public 
  
 int 
  
 getMetadataCount 
 () 
 

The metadata key-value pairs assigned to the device. This metadata is not interpreted or indexed by Cloud IoT Core. It can be used to add contextual information for the device.

Keys must conform to the regular expression a-zA-Z + and be less than 128 bytes in length.

Values are free-form strings. Each value must be less than or equal to 32 KB in size.

The total size of all keys and values must be less than 256 KB, and the maximum number of key-value pairs is 500.

map<string, string> metadata = 17;

Returns
Type
Description
int

getMetadataMap()

  public 
  
 Map<String 
 , 
 String 
>  
 getMetadataMap 
 () 
 

The metadata key-value pairs assigned to the device. This metadata is not interpreted or indexed by Cloud IoT Core. It can be used to add contextual information for the device.

Keys must conform to the regular expression a-zA-Z + and be less than 128 bytes in length.

Values are free-form strings. Each value must be less than or equal to 32 KB in size.

The total size of all keys and values must be less than 256 KB, and the maximum number of key-value pairs is 500.

map<string, string> metadata = 17;

Returns
Type
Description
Map < String , String >

getMetadataOrDefault(String key, String defaultValue)

  public 
  
 String 
  
 getMetadataOrDefault 
 ( 
 String 
  
 key 
 , 
  
 String 
  
 defaultValue 
 ) 
 

The metadata key-value pairs assigned to the device. This metadata is not interpreted or indexed by Cloud IoT Core. It can be used to add contextual information for the device.

Keys must conform to the regular expression a-zA-Z + and be less than 128 bytes in length.

Values are free-form strings. Each value must be less than or equal to 32 KB in size.

The total size of all keys and values must be less than 256 KB, and the maximum number of key-value pairs is 500.

map<string, string> metadata = 17;

Parameters
Name
Description
key
defaultValue
Returns
Type
Description

getMetadataOrThrow(String key)

  public 
  
 String 
  
 getMetadataOrThrow 
 ( 
 String 
  
 key 
 ) 
 

The metadata key-value pairs assigned to the device. This metadata is not interpreted or indexed by Cloud IoT Core. It can be used to add contextual information for the device.

Keys must conform to the regular expression a-zA-Z + and be less than 128 bytes in length.

Values are free-form strings. Each value must be less than or equal to 32 KB in size.

The total size of all keys and values must be less than 256 KB, and the maximum number of key-value pairs is 500.

map<string, string> metadata = 17;

Parameter
Name
Description
key
Returns
Type
Description

getName()

  public 
  
 String 
  
 getName 
 () 
 

The resource path name. For example, projects/p1/locations/us-central1/registries/registry0/devices/dev0 or projects/p1/locations/us-central1/registries/registry0/devices/{num_id} . When name is populated as a response from the service, it always ends in the device numeric ID.

string name = 2;

Returns
Type
Description

The name.

getNameBytes()

  public 
  
 ByteString 
  
 getNameBytes 
 () 
 

The resource path name. For example, projects/p1/locations/us-central1/registries/registry0/devices/dev0 or projects/p1/locations/us-central1/registries/registry0/devices/{num_id} . When name is populated as a response from the service, it always ends in the device numeric ID.

string name = 2;

Returns
Type
Description

The bytes for name.

getNumId()

  public 
  
 long 
  
 getNumId 
 () 
 

[Output only] A server-defined unique numeric ID for the device. This is a more compact way to identify devices, and it is globally unique.

uint64 num_id = 3;

Returns
Type
Description

The numId.

getParserForType()

  public 
  
 Parser<Device> 
  
 getParserForType 
 () 
 
Returns
Type
Description
Overrides

getSerializedSize()

  public 
  
 int 
  
 getSerializedSize 
 () 
 
Returns
Type
Description
int
Overrides

getState()

  public 
  
 DeviceState 
  
 getState 
 () 
 

[Output only] The state most recently received from the device. If no state has been reported, this field is not present.

.google.cloud.iot.v1.DeviceState state = 16;

Returns
Type
Description

The state.

getStateOrBuilder()

  public 
  
 DeviceStateOrBuilder 
  
 getStateOrBuilder 
 () 
 

[Output only] The state most recently received from the device. If no state has been reported, this field is not present.

.google.cloud.iot.v1.DeviceState state = 16;

Returns
Type
Description

hasConfig()

  public 
  
 boolean 
  
 hasConfig 
 () 
 

The most recent device configuration, which is eventually sent from Cloud IoT Core to the device. If not present on creation, the configuration will be initialized with an empty payload and version value of 1 . To update this field after creation, use the DeviceManager.ModifyCloudToDeviceConfig method.

.google.cloud.iot.v1.DeviceConfig config = 13;

Returns
Type
Description

Whether the config field is set.

hasGatewayConfig()

  public 
  
 boolean 
  
 hasGatewayConfig 
 () 
 

Gateway-related configuration and state.

.google.cloud.iot.v1.GatewayConfig gateway_config = 24;

Returns
Type
Description

Whether the gatewayConfig field is set.

hasLastConfigAckTime()

  public 
  
 boolean 
  
 hasLastConfigAckTime 
 () 
 

[Output only] The last time a cloud-to-device config version acknowledgment was received from the device. This field is only for configurations sent through MQTT.

.google.protobuf.Timestamp last_config_ack_time = 14;

Returns
Type
Description

Whether the lastConfigAckTime field is set.

hasLastConfigSendTime()

  public 
  
 boolean 
  
 hasLastConfigSendTime 
 () 
 

[Output only] The last time a cloud-to-device config version was sent to the device.

.google.protobuf.Timestamp last_config_send_time = 18;

Returns
Type
Description

Whether the lastConfigSendTime field is set.

hasLastErrorStatus()

  public 
  
 boolean 
  
 hasLastErrorStatus 
 () 
 

[Output only] The error message of the most recent error, such as a failure to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this field. If no errors have occurred, this field has an empty message and the status code 0 == OK. Otherwise, this field is expected to have a status code other than OK.

.google.rpc.Status last_error_status = 11;

Returns
Type
Description

Whether the lastErrorStatus field is set.

hasLastErrorTime()

  public 
  
 boolean 
  
 hasLastErrorTime 
 () 
 

[Output only] The time the most recent error occurred, such as a failure to publish to Cloud Pub/Sub. This field is the timestamp of 'last_error_status'.

.google.protobuf.Timestamp last_error_time = 10;

Returns
Type
Description

Whether the lastErrorTime field is set.

hasLastEventTime()

  public 
  
 boolean 
  
 hasLastEventTime 
 () 
 

[Output only] The last time a telemetry event was received. Timestamps are periodically collected and written to storage; they may be stale by a few minutes.

.google.protobuf.Timestamp last_event_time = 8;

Returns
Type
Description

Whether the lastEventTime field is set.

hasLastHeartbeatTime()

  public 
  
 boolean 
  
 hasLastHeartbeatTime 
 () 
 

[Output only] The last time an MQTT PINGREQ was received. This field applies only to devices connecting through MQTT. MQTT clients usually only send PINGREQ messages if the connection is idle, and no other messages have been sent. Timestamps are periodically collected and written to storage; they may be stale by a few minutes.

.google.protobuf.Timestamp last_heartbeat_time = 7;

Returns
Type
Description

Whether the lastHeartbeatTime field is set.

hasLastStateTime()

  public 
  
 boolean 
  
 hasLastStateTime 
 () 
 

[Output only] The last time a state event was received. Timestamps are periodically collected and written to storage; they may be stale by a few minutes.

.google.protobuf.Timestamp last_state_time = 20;

Returns
Type
Description

Whether the lastStateTime field is set.

hasState()

  public 
  
 boolean 
  
 hasState 
 () 
 

[Output only] The state most recently received from the device. If no state has been reported, this field is not present.

.google.cloud.iot.v1.DeviceState state = 16;

Returns
Type
Description

Whether the state field is set.

hashCode()

  public 
  
 int 
  
 hashCode 
 () 
 
Returns
Type
Description
int
Overrides

internalGetFieldAccessorTable()

  protected 
  
 GeneratedMessageV3 
 . 
 FieldAccessorTable 
  
 internalGetFieldAccessorTable 
 () 
 
Returns
Type
Description
Overrides

internalGetMapFieldReflection(int number)

  protected 
  
 MapFieldReflectionAccessor 
  
 internalGetMapFieldReflection 
 ( 
 int 
  
 number 
 ) 
 
Parameter
Name
Description
number
int
Returns
Type
Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

  public 
  
 final 
  
 boolean 
  
 isInitialized 
 () 
 
Returns
Type
Description
Overrides

newBuilderForType()

  public 
  
 Device 
 . 
 Builder 
  
 newBuilderForType 
 () 
 
Returns
Type
Description

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

  protected 
  
 Device 
 . 
 Builder 
  
 newBuilderForType 
 ( 
 GeneratedMessageV3 
 . 
 BuilderParent 
  
 parent 
 ) 
 
Parameter
Name
Description
parent
Returns
Type
Description
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

  protected 
  
 Object 
  
 newInstance 
 ( 
 GeneratedMessageV3 
 . 
 UnusedPrivateParameter 
  
 unused 
 ) 
 
Parameter
Name
Description
Returns
Type
Description
Overrides

toBuilder()

  public 
  
 Device 
 . 
 Builder 
  
 toBuilder 
 () 
 
Returns
Type
Description

writeTo(CodedOutputStream output)

  public 
  
 void 
  
 writeTo 
 ( 
 CodedOutputStream 
  
 output 
 ) 
 
Parameter
Name
Description
Overrides
Exceptions
Type
Description
Design a Mobile Site
View Site in Mobile | Classic
Share by: