Package com.google.cloud.iot.v1
Class Device.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Device.Builder>
-
- com.google.cloud.iot.v1.Device.Builder
-
- All Implemented Interfaces:
DeviceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Device
public static final class Device.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Device.Builder> implements DeviceOrBuilder
The device resource.
Protobuf typegoogle.cloud.iot.v1.Device
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Device.BuilderaddAllCredentials(Iterable<? extends DeviceCredential> values)The credentials used to authenticate this device.Device.BuilderaddCredentials(int index, DeviceCredential value)The credentials used to authenticate this device.Device.BuilderaddCredentials(int index, DeviceCredential.Builder builderForValue)The credentials used to authenticate this device.Device.BuilderaddCredentials(DeviceCredential value)The credentials used to authenticate this device.Device.BuilderaddCredentials(DeviceCredential.Builder builderForValue)The credentials used to authenticate this device.DeviceCredential.BuilderaddCredentialsBuilder()The credentials used to authenticate this device.DeviceCredential.BuilderaddCredentialsBuilder(int index)The credentials used to authenticate this device.Device.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Devicebuild()DevicebuildPartial()Device.Builderclear()Device.BuilderclearBlocked()If a device is blocked, connections or requests from this device will fail.Device.BuilderclearConfig()The most recent device configuration, which is eventually sent from Cloud IoT Core to the device.Device.BuilderclearCredentials()The credentials used to authenticate this device.Device.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Device.BuilderclearGatewayConfig()Gateway-related configuration and state.Device.BuilderclearId()The user-defined device identifier.Device.BuilderclearLastConfigAckTime()[Output only] The last time a cloud-to-device config version acknowledgment was received from the device.Device.BuilderclearLastConfigSendTime()[Output only] The last time a cloud-to-device config version was sent to the device.Device.BuilderclearLastErrorStatus()[Output only] The error message of the most recent error, such as a failure to publish to Cloud Pub/Sub.Device.BuilderclearLastErrorTime()[Output only] The time the most recent error occurred, such as a failure to publish to Cloud Pub/Sub.Device.BuilderclearLastEventTime()[Output only] The last time a telemetry event was received.Device.BuilderclearLastHeartbeatTime()[Output only] The last time an MQTT `PINGREQ` was received.Device.BuilderclearLastStateTime()[Output only] The last time a state event was received.Device.BuilderclearLogLevel()**Beta Feature** The logging verbosity for device activity.Device.BuilderclearMetadata()Device.BuilderclearName()The resource path name.Device.BuilderclearNumId()[Output only] A server-defined unique numeric ID for the device.Device.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Device.BuilderclearState()[Output only] The state most recently received from the device.Device.Builderclone()booleancontainsMetadata(String key)The metadata key-value pairs assigned to the device.booleangetBlocked()If a device is blocked, connections or requests from this device will fail.DeviceConfiggetConfig()The most recent device configuration, which is eventually sent from Cloud IoT Core to the device.DeviceConfig.BuildergetConfigBuilder()The most recent device configuration, which is eventually sent from Cloud IoT Core to the device.DeviceConfigOrBuildergetConfigOrBuilder()The most recent device configuration, which is eventually sent from Cloud IoT Core to the device.DeviceCredentialgetCredentials(int index)The credentials used to authenticate this device.DeviceCredential.BuildergetCredentialsBuilder(int index)The credentials used to authenticate this device.List<DeviceCredential.Builder>getCredentialsBuilderList()The credentials used to authenticate this device.intgetCredentialsCount()The credentials used to authenticate this device.List<DeviceCredential>getCredentialsList()The credentials used to authenticate this device.DeviceCredentialOrBuildergetCredentialsOrBuilder(int index)The credentials used to authenticate this device.List<? extends DeviceCredentialOrBuilder>getCredentialsOrBuilderList()The credentials used to authenticate this device.DevicegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()GatewayConfiggetGatewayConfig()Gateway-related configuration and state.GatewayConfig.BuildergetGatewayConfigBuilder()Gateway-related configuration and state.GatewayConfigOrBuildergetGatewayConfigOrBuilder()Gateway-related configuration and state.StringgetId()The user-defined device identifier.com.google.protobuf.ByteStringgetIdBytes()The user-defined device identifier.com.google.protobuf.TimestampgetLastConfigAckTime()[Output only] The last time a cloud-to-device config version acknowledgment was received from the device.com.google.protobuf.Timestamp.BuildergetLastConfigAckTimeBuilder()[Output only] The last time a cloud-to-device config version acknowledgment was received from the device.com.google.protobuf.TimestampOrBuildergetLastConfigAckTimeOrBuilder()[Output only] The last time a cloud-to-device config version acknowledgment was received from the device.com.google.protobuf.TimestampgetLastConfigSendTime()[Output only] The last time a cloud-to-device config version was sent to the device.com.google.protobuf.Timestamp.BuildergetLastConfigSendTimeBuilder()[Output only] The last time a cloud-to-device config version was sent to the device.com.google.protobuf.TimestampOrBuildergetLastConfigSendTimeOrBuilder()[Output only] The last time a cloud-to-device config version was sent to the device.com.google.rpc.StatusgetLastErrorStatus()[Output only] The error message of the most recent error, such as a failure to publish to Cloud Pub/Sub.com.google.rpc.Status.BuildergetLastErrorStatusBuilder()[Output only] The error message of the most recent error, such as a failure to publish to Cloud Pub/Sub.com.google.rpc.StatusOrBuildergetLastErrorStatusOrBuilder()[Output only] The error message of the most recent error, such as a failure to publish to Cloud Pub/Sub.com.google.protobuf.TimestampgetLastErrorTime()[Output only] The time the most recent error occurred, such as a failure to publish to Cloud Pub/Sub.com.google.protobuf.Timestamp.BuildergetLastErrorTimeBuilder()[Output only] The time the most recent error occurred, such as a failure to publish to Cloud Pub/Sub.com.google.protobuf.TimestampOrBuildergetLastErrorTimeOrBuilder()[Output only] The time the most recent error occurred, such as a failure to publish to Cloud Pub/Sub.com.google.protobuf.TimestampgetLastEventTime()[Output only] The last time a telemetry event was received.com.google.protobuf.Timestamp.BuildergetLastEventTimeBuilder()[Output only] The last time a telemetry event was received.com.google.protobuf.TimestampOrBuildergetLastEventTimeOrBuilder()[Output only] The last time a telemetry event was received.com.google.protobuf.TimestampgetLastHeartbeatTime()[Output only] The last time an MQTT `PINGREQ` was received.com.google.protobuf.Timestamp.BuildergetLastHeartbeatTimeBuilder()[Output only] The last time an MQTT `PINGREQ` was received.com.google.protobuf.TimestampOrBuildergetLastHeartbeatTimeOrBuilder()[Output only] The last time an MQTT `PINGREQ` was received.com.google.protobuf.TimestampgetLastStateTime()[Output only] The last time a state event was received.com.google.protobuf.Timestamp.BuildergetLastStateTimeBuilder()[Output only] The last time a state event was received.com.google.protobuf.TimestampOrBuildergetLastStateTimeOrBuilder()[Output only] The last time a state event was received.LogLevelgetLogLevel()**Beta Feature** The logging verbosity for device activity.intgetLogLevelValue()**Beta Feature** The logging verbosity for device activity.Map<String,String>getMetadata()Deprecated.intgetMetadataCount()The metadata key-value pairs assigned to the device.Map<String,String>getMetadataMap()The metadata key-value pairs assigned to the device.StringgetMetadataOrDefault(String key, String defaultValue)The metadata key-value pairs assigned to the device.StringgetMetadataOrThrow(String key)The metadata key-value pairs assigned to the device.Map<String,String>getMutableMetadata()Deprecated.StringgetName()The resource path name.com.google.protobuf.ByteStringgetNameBytes()The resource path name.longgetNumId()[Output only] A server-defined unique numeric ID for the device.DeviceStategetState()[Output only] The state most recently received from the device.DeviceState.BuildergetStateBuilder()[Output only] The state most recently received from the device.DeviceStateOrBuildergetStateOrBuilder()[Output only] The state most recently received from the device.booleanhasConfig()The most recent device configuration, which is eventually sent from Cloud IoT Core to the device.booleanhasGatewayConfig()Gateway-related configuration and state.booleanhasLastConfigAckTime()[Output only] The last time a cloud-to-device config version acknowledgment was received from the device.booleanhasLastConfigSendTime()[Output only] The last time a cloud-to-device config version was sent to the device.booleanhasLastErrorStatus()[Output only] The error message of the most recent error, such as a failure to publish to Cloud Pub/Sub.booleanhasLastErrorTime()[Output only] The time the most recent error occurred, such as a failure to publish to Cloud Pub/Sub.booleanhasLastEventTime()[Output only] The last time a telemetry event was received.booleanhasLastHeartbeatTime()[Output only] The last time an MQTT `PINGREQ` was received.booleanhasLastStateTime()[Output only] The last time a state event was received.booleanhasState()[Output only] The state most recently received from the device.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()Device.BuildermergeConfig(DeviceConfig value)The most recent device configuration, which is eventually sent from Cloud IoT Core to the device.Device.BuildermergeFrom(Device other)Device.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Device.BuildermergeFrom(com.google.protobuf.Message other)Device.BuildermergeGatewayConfig(GatewayConfig value)Gateway-related configuration and state.Device.BuildermergeLastConfigAckTime(com.google.protobuf.Timestamp value)[Output only] The last time a cloud-to-device config version acknowledgment was received from the device.Device.BuildermergeLastConfigSendTime(com.google.protobuf.Timestamp value)[Output only] The last time a cloud-to-device config version was sent to the device.Device.BuildermergeLastErrorStatus(com.google.rpc.Status value)[Output only] The error message of the most recent error, such as a failure to publish to Cloud Pub/Sub.Device.BuildermergeLastErrorTime(com.google.protobuf.Timestamp value)[Output only] The time the most recent error occurred, such as a failure to publish to Cloud Pub/Sub.Device.BuildermergeLastEventTime(com.google.protobuf.Timestamp value)[Output only] The last time a telemetry event was received.Device.BuildermergeLastHeartbeatTime(com.google.protobuf.Timestamp value)[Output only] The last time an MQTT `PINGREQ` was received.Device.BuildermergeLastStateTime(com.google.protobuf.Timestamp value)[Output only] The last time a state event was received.Device.BuildermergeState(DeviceState value)[Output only] The state most recently received from the device.Device.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Device.BuilderputAllMetadata(Map<String,String> values)The metadata key-value pairs assigned to the device.Device.BuilderputMetadata(String key, String value)The metadata key-value pairs assigned to the device.Device.BuilderremoveCredentials(int index)The credentials used to authenticate this device.Device.BuilderremoveMetadata(String key)The metadata key-value pairs assigned to the device.Device.BuildersetBlocked(boolean value)If a device is blocked, connections or requests from this device will fail.Device.BuildersetConfig(DeviceConfig value)The most recent device configuration, which is eventually sent from Cloud IoT Core to the device.Device.BuildersetConfig(DeviceConfig.Builder builderForValue)The most recent device configuration, which is eventually sent from Cloud IoT Core to the device.Device.BuildersetCredentials(int index, DeviceCredential value)The credentials used to authenticate this device.Device.BuildersetCredentials(int index, DeviceCredential.Builder builderForValue)The credentials used to authenticate this device.Device.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Device.BuildersetGatewayConfig(GatewayConfig value)Gateway-related configuration and state.Device.BuildersetGatewayConfig(GatewayConfig.Builder builderForValue)Gateway-related configuration and state.Device.BuildersetId(String value)The user-defined device identifier.Device.BuildersetIdBytes(com.google.protobuf.ByteString value)The user-defined device identifier.Device.BuildersetLastConfigAckTime(com.google.protobuf.Timestamp value)[Output only] The last time a cloud-to-device config version acknowledgment was received from the device.Device.BuildersetLastConfigAckTime(com.google.protobuf.Timestamp.Builder builderForValue)[Output only] The last time a cloud-to-device config version acknowledgment was received from the device.Device.BuildersetLastConfigSendTime(com.google.protobuf.Timestamp value)[Output only] The last time a cloud-to-device config version was sent to the device.Device.BuildersetLastConfigSendTime(com.google.protobuf.Timestamp.Builder builderForValue)[Output only] The last time a cloud-to-device config version was sent to the device.Device.BuildersetLastErrorStatus(com.google.rpc.Status value)[Output only] The error message of the most recent error, such as a failure to publish to Cloud Pub/Sub.Device.BuildersetLastErrorStatus(com.google.rpc.Status.Builder builderForValue)[Output only] The error message of the most recent error, such as a failure to publish to Cloud Pub/Sub.Device.BuildersetLastErrorTime(com.google.protobuf.Timestamp value)[Output only] The time the most recent error occurred, such as a failure to publish to Cloud Pub/Sub.Device.BuildersetLastErrorTime(com.google.protobuf.Timestamp.Builder builderForValue)[Output only] The time the most recent error occurred, such as a failure to publish to Cloud Pub/Sub.Device.BuildersetLastEventTime(com.google.protobuf.Timestamp value)[Output only] The last time a telemetry event was received.Device.BuildersetLastEventTime(com.google.protobuf.Timestamp.Builder builderForValue)[Output only] The last time a telemetry event was received.Device.BuildersetLastHeartbeatTime(com.google.protobuf.Timestamp value)[Output only] The last time an MQTT `PINGREQ` was received.Device.BuildersetLastHeartbeatTime(com.google.protobuf.Timestamp.Builder builderForValue)[Output only] The last time an MQTT `PINGREQ` was received.Device.BuildersetLastStateTime(com.google.protobuf.Timestamp value)[Output only] The last time a state event was received.Device.BuildersetLastStateTime(com.google.protobuf.Timestamp.Builder builderForValue)[Output only] The last time a state event was received.Device.BuildersetLogLevel(LogLevel value)**Beta Feature** The logging verbosity for device activity.Device.BuildersetLogLevelValue(int value)**Beta Feature** The logging verbosity for device activity.Device.BuildersetName(String value)The resource path name.Device.BuildersetNameBytes(com.google.protobuf.ByteString value)The resource path name.Device.BuildersetNumId(long value)[Output only] A server-defined unique numeric ID for the device.Device.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Device.BuildersetState(DeviceState value)[Output only] The state most recently received from the device.Device.BuildersetState(DeviceState.Builder builderForValue)[Output only] The state most recently received from the device.Device.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Device.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Device.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Device.Builder>
-
clear
public Device.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Device.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Device.Builder>
-
getDefaultInstanceForType
public Device getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Device build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Device buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Device.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Device.Builder>
-
setField
public Device.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Device.Builder>
-
clearField
public Device.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Device.Builder>
-
clearOneof
public Device.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Device.Builder>
-
setRepeatedField
public Device.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Device.Builder>
-
addRepeatedField
public Device.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Device.Builder>
-
mergeFrom
public Device.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Device.Builder>
-
mergeFrom
public Device.Builder mergeFrom(Device other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Device.Builder>
-
mergeFrom
public Device.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Device.Builder>- Throws:
IOException
-
getId
public String getId()
The user-defined device identifier. The device ID must be unique within a device registry.
string id = 1;- Specified by:
getIdin interfaceDeviceOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()
The user-defined device identifier. The device ID must be unique within a device registry.
string id = 1;- Specified by:
getIdBytesin interfaceDeviceOrBuilder- Returns:
- The bytes for id.
-
setId
public Device.Builder setId(String value)
The user-defined device identifier. The device ID must be unique within a device registry.
string id = 1;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
public Device.Builder clearId()
The user-defined device identifier. The device ID must be unique within a device registry.
string id = 1;- Returns:
- This builder for chaining.
-
setIdBytes
public Device.Builder setIdBytes(com.google.protobuf.ByteString value)
The user-defined device identifier. The device ID must be unique within a device registry.
string id = 1;- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getNamein interfaceDeviceOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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;- Specified by:
getNameBytesin interfaceDeviceOrBuilder- Returns:
- The bytes for name.
-
setName
public Device.Builder setName(String value)
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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Device.Builder clearName()
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:
- This builder for chaining.
-
setNameBytes
public Device.Builder setNameBytes(com.google.protobuf.ByteString value)
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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getNumIdin interfaceDeviceOrBuilder- Returns:
- The numId.
-
setNumId
public Device.Builder setNumId(long value)
[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;- Parameters:
value- The numId to set.- Returns:
- This builder for chaining.
-
clearNumId
public Device.Builder clearNumId()
[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:
- This builder for chaining.
-
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;- Specified by:
getCredentialsListin interfaceDeviceOrBuilder
-
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;- Specified by:
getCredentialsCountin interfaceDeviceOrBuilder
-
getCredentials
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;- Specified by:
getCredentialsin interfaceDeviceOrBuilder
-
setCredentials
public Device.Builder setCredentials(int index, DeviceCredential value)
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;
-
setCredentials
public Device.Builder setCredentials(int index, DeviceCredential.Builder builderForValue)
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;
-
addCredentials
public Device.Builder addCredentials(DeviceCredential value)
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;
-
addCredentials
public Device.Builder addCredentials(int index, DeviceCredential value)
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;
-
addCredentials
public Device.Builder addCredentials(DeviceCredential.Builder builderForValue)
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;
-
addCredentials
public Device.Builder addCredentials(int index, DeviceCredential.Builder builderForValue)
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;
-
addAllCredentials
public Device.Builder addAllCredentials(Iterable<? extends DeviceCredential> values)
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;
-
clearCredentials
public Device.Builder clearCredentials()
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;
-
removeCredentials
public Device.Builder removeCredentials(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;
-
getCredentialsBuilder
public DeviceCredential.Builder getCredentialsBuilder(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;
-
getCredentialsOrBuilder
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;- Specified by:
getCredentialsOrBuilderin interfaceDeviceOrBuilder
-
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;- Specified by:
getCredentialsOrBuilderListin interfaceDeviceOrBuilder
-
addCredentialsBuilder
public DeviceCredential.Builder addCredentialsBuilder()
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;
-
addCredentialsBuilder
public DeviceCredential.Builder addCredentialsBuilder(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;
-
getCredentialsBuilderList
public List<DeviceCredential.Builder> getCredentialsBuilderList()
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;
-
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;- Specified by:
hasLastHeartbeatTimein interfaceDeviceOrBuilder- Returns:
- Whether the lastHeartbeatTime field is set.
-
getLastHeartbeatTime
public com.google.protobuf.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;- Specified by:
getLastHeartbeatTimein interfaceDeviceOrBuilder- Returns:
- The lastHeartbeatTime.
-
setLastHeartbeatTime
public Device.Builder setLastHeartbeatTime(com.google.protobuf.Timestamp value)
[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;
-
setLastHeartbeatTime
public Device.Builder setLastHeartbeatTime(com.google.protobuf.Timestamp.Builder builderForValue)
[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;
-
mergeLastHeartbeatTime
public Device.Builder mergeLastHeartbeatTime(com.google.protobuf.Timestamp value)
[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;
-
clearLastHeartbeatTime
public Device.Builder clearLastHeartbeatTime()
[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;
-
getLastHeartbeatTimeBuilder
public com.google.protobuf.Timestamp.Builder getLastHeartbeatTimeBuilder()
[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;
-
getLastHeartbeatTimeOrBuilder
public com.google.protobuf.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;- Specified by:
getLastHeartbeatTimeOrBuilderin interfaceDeviceOrBuilder
-
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;- Specified by:
hasLastEventTimein interfaceDeviceOrBuilder- Returns:
- Whether the lastEventTime field is set.
-
getLastEventTime
public com.google.protobuf.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;- Specified by:
getLastEventTimein interfaceDeviceOrBuilder- Returns:
- The lastEventTime.
-
setLastEventTime
public Device.Builder setLastEventTime(com.google.protobuf.Timestamp value)
[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;
-
setLastEventTime
public Device.Builder setLastEventTime(com.google.protobuf.Timestamp.Builder builderForValue)
[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;
-
mergeLastEventTime
public Device.Builder mergeLastEventTime(com.google.protobuf.Timestamp value)
[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;
-
clearLastEventTime
public Device.Builder clearLastEventTime()
[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;
-
getLastEventTimeBuilder
public com.google.protobuf.Timestamp.Builder getLastEventTimeBuilder()
[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;
-
getLastEventTimeOrBuilder
public com.google.protobuf.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;- Specified by:
getLastEventTimeOrBuilderin interfaceDeviceOrBuilder
-
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;- Specified by:
hasLastStateTimein interfaceDeviceOrBuilder- Returns:
- Whether the lastStateTime field is set.
-
getLastStateTime
public com.google.protobuf.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;- Specified by:
getLastStateTimein interfaceDeviceOrBuilder- Returns:
- The lastStateTime.
-
setLastStateTime
public Device.Builder setLastStateTime(com.google.protobuf.Timestamp value)
[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;
-
setLastStateTime
public Device.Builder setLastStateTime(com.google.protobuf.Timestamp.Builder builderForValue)
[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;
-
mergeLastStateTime
public Device.Builder mergeLastStateTime(com.google.protobuf.Timestamp value)
[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;
-
clearLastStateTime
public Device.Builder clearLastStateTime()
[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;
-
getLastStateTimeBuilder
public com.google.protobuf.Timestamp.Builder getLastStateTimeBuilder()
[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;
-
getLastStateTimeOrBuilder
public com.google.protobuf.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;- Specified by:
getLastStateTimeOrBuilderin interfaceDeviceOrBuilder
-
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;- Specified by:
hasLastConfigAckTimein interfaceDeviceOrBuilder- Returns:
- Whether the lastConfigAckTime field is set.
-
getLastConfigAckTime
public com.google.protobuf.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;- Specified by:
getLastConfigAckTimein interfaceDeviceOrBuilder- Returns:
- The lastConfigAckTime.
-
setLastConfigAckTime
public Device.Builder setLastConfigAckTime(com.google.protobuf.Timestamp value)
[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;
-
setLastConfigAckTime
public Device.Builder setLastConfigAckTime(com.google.protobuf.Timestamp.Builder builderForValue)
[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;
-
mergeLastConfigAckTime
public Device.Builder mergeLastConfigAckTime(com.google.protobuf.Timestamp value)
[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;
-
clearLastConfigAckTime
public Device.Builder clearLastConfigAckTime()
[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;
-
getLastConfigAckTimeBuilder
public com.google.protobuf.Timestamp.Builder getLastConfigAckTimeBuilder()
[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;
-
getLastConfigAckTimeOrBuilder
public com.google.protobuf.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;- Specified by:
getLastConfigAckTimeOrBuilderin interfaceDeviceOrBuilder
-
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;- Specified by:
hasLastConfigSendTimein interfaceDeviceOrBuilder- Returns:
- Whether the lastConfigSendTime field is set.
-
getLastConfigSendTime
public com.google.protobuf.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;- Specified by:
getLastConfigSendTimein interfaceDeviceOrBuilder- Returns:
- The lastConfigSendTime.
-
setLastConfigSendTime
public Device.Builder setLastConfigSendTime(com.google.protobuf.Timestamp value)
[Output only] The last time a cloud-to-device config version was sent to the device.
.google.protobuf.Timestamp last_config_send_time = 18;
-
setLastConfigSendTime
public Device.Builder setLastConfigSendTime(com.google.protobuf.Timestamp.Builder builderForValue)
[Output only] The last time a cloud-to-device config version was sent to the device.
.google.protobuf.Timestamp last_config_send_time = 18;
-
mergeLastConfigSendTime
public Device.Builder mergeLastConfigSendTime(com.google.protobuf.Timestamp value)
[Output only] The last time a cloud-to-device config version was sent to the device.
.google.protobuf.Timestamp last_config_send_time = 18;
-
clearLastConfigSendTime
public Device.Builder clearLastConfigSendTime()
[Output only] The last time a cloud-to-device config version was sent to the device.
.google.protobuf.Timestamp last_config_send_time = 18;
-
getLastConfigSendTimeBuilder
public com.google.protobuf.Timestamp.Builder getLastConfigSendTimeBuilder()
[Output only] The last time a cloud-to-device config version was sent to the device.
.google.protobuf.Timestamp last_config_send_time = 18;
-
getLastConfigSendTimeOrBuilder
public com.google.protobuf.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;- Specified by:
getLastConfigSendTimeOrBuilderin interfaceDeviceOrBuilder
-
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;- Specified by:
getBlockedin interfaceDeviceOrBuilder- Returns:
- The blocked.
-
setBlocked
public Device.Builder setBlocked(boolean value)
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;- Parameters:
value- The blocked to set.- Returns:
- This builder for chaining.
-
clearBlocked
public Device.Builder clearBlocked()
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:
- This builder for chaining.
-
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;- Specified by:
hasLastErrorTimein interfaceDeviceOrBuilder- Returns:
- Whether the lastErrorTime field is set.
-
getLastErrorTime
public com.google.protobuf.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;- Specified by:
getLastErrorTimein interfaceDeviceOrBuilder- Returns:
- The lastErrorTime.
-
setLastErrorTime
public Device.Builder setLastErrorTime(com.google.protobuf.Timestamp value)
[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;
-
setLastErrorTime
public Device.Builder setLastErrorTime(com.google.protobuf.Timestamp.Builder builderForValue)
[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;
-
mergeLastErrorTime
public Device.Builder mergeLastErrorTime(com.google.protobuf.Timestamp value)
[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;
-
clearLastErrorTime
public Device.Builder clearLastErrorTime()
[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;
-
getLastErrorTimeBuilder
public com.google.protobuf.Timestamp.Builder getLastErrorTimeBuilder()
[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;
-
getLastErrorTimeOrBuilder
public com.google.protobuf.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;- Specified by:
getLastErrorTimeOrBuilderin interfaceDeviceOrBuilder
-
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;- Specified by:
hasLastErrorStatusin interfaceDeviceOrBuilder- Returns:
- Whether the lastErrorStatus field is set.
-
getLastErrorStatus
public com.google.rpc.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;- Specified by:
getLastErrorStatusin interfaceDeviceOrBuilder- Returns:
- The lastErrorStatus.
-
setLastErrorStatus
public Device.Builder setLastErrorStatus(com.google.rpc.Status value)
[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;
-
setLastErrorStatus
public Device.Builder setLastErrorStatus(com.google.rpc.Status.Builder builderForValue)
[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;
-
mergeLastErrorStatus
public Device.Builder mergeLastErrorStatus(com.google.rpc.Status value)
[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;
-
clearLastErrorStatus
public Device.Builder clearLastErrorStatus()
[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;
-
getLastErrorStatusBuilder
public com.google.rpc.Status.Builder getLastErrorStatusBuilder()
[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;
-
getLastErrorStatusOrBuilder
public com.google.rpc.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;- Specified by:
getLastErrorStatusOrBuilderin interfaceDeviceOrBuilder
-
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;- Specified by:
hasConfigin interfaceDeviceOrBuilder- Returns:
- Whether the config field is set.
-
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;- Specified by:
getConfigin interfaceDeviceOrBuilder- Returns:
- The config.
-
setConfig
public Device.Builder setConfig(DeviceConfig value)
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;
-
setConfig
public Device.Builder setConfig(DeviceConfig.Builder builderForValue)
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;
-
mergeConfig
public Device.Builder mergeConfig(DeviceConfig value)
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;
-
clearConfig
public Device.Builder clearConfig()
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;
-
getConfigBuilder
public DeviceConfig.Builder getConfigBuilder()
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;
-
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;- Specified by:
getConfigOrBuilderin interfaceDeviceOrBuilder
-
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;- Specified by:
hasStatein interfaceDeviceOrBuilder- Returns:
- Whether the state field is set.
-
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;- Specified by:
getStatein interfaceDeviceOrBuilder- Returns:
- The state.
-
setState
public Device.Builder setState(DeviceState value)
[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;
-
setState
public Device.Builder setState(DeviceState.Builder builderForValue)
[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;
-
mergeState
public Device.Builder mergeState(DeviceState value)
[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;
-
clearState
public Device.Builder clearState()
[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;
-
getStateBuilder
public DeviceState.Builder getStateBuilder()
[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;
-
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;- Specified by:
getStateOrBuilderin interfaceDeviceOrBuilder
-
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;- Specified by:
getLogLevelValuein interfaceDeviceOrBuilder- Returns:
- The enum numeric value on the wire for logLevel.
-
setLogLevelValue
public Device.Builder setLogLevelValue(int value)
**Beta Feature** The logging verbosity for device activity. If unspecified, DeviceRegistry.log_level will be used.
.google.cloud.iot.v1.LogLevel log_level = 21;- Parameters:
value- The enum numeric value on the wire for logLevel to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getLogLevelin interfaceDeviceOrBuilder- Returns:
- The logLevel.
-
setLogLevel
public Device.Builder setLogLevel(LogLevel value)
**Beta Feature** The logging verbosity for device activity. If unspecified, DeviceRegistry.log_level will be used.
.google.cloud.iot.v1.LogLevel log_level = 21;- Parameters:
value- The logLevel to set.- Returns:
- This builder for chaining.
-
clearLogLevel
public Device.Builder clearLogLevel()
**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:
- This builder for chaining.
-
getMetadataCount
public int getMetadataCount()
Description copied from interface:DeviceOrBuilderThe 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][a-zA-Z0-9-_.+~%]+ 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;- Specified by:
getMetadataCountin interfaceDeviceOrBuilder
-
containsMetadata
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][a-zA-Z0-9-_.+~%]+ 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;- Specified by:
containsMetadatain interfaceDeviceOrBuilder
-
getMetadata
@Deprecated public Map<String,String> getMetadata()
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceDeviceOrBuilder
-
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][a-zA-Z0-9-_.+~%]+ 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;- Specified by:
getMetadataMapin interfaceDeviceOrBuilder
-
getMetadataOrDefault
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][a-zA-Z0-9-_.+~%]+ 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;- Specified by:
getMetadataOrDefaultin interfaceDeviceOrBuilder
-
getMetadataOrThrow
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][a-zA-Z0-9-_.+~%]+ 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;- Specified by:
getMetadataOrThrowin interfaceDeviceOrBuilder
-
clearMetadata
public Device.Builder clearMetadata()
-
removeMetadata
public Device.Builder removeMetadata(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][a-zA-Z0-9-_.+~%]+ 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;
-
getMutableMetadata
@Deprecated public Map<String,String> getMutableMetadata()
Deprecated.Use alternate mutation accessors instead.
-
putMetadata
public Device.Builder putMetadata(String key, String value)
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][a-zA-Z0-9-_.+~%]+ 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;
-
putAllMetadata
public Device.Builder putAllMetadata(Map<String,String> values)
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][a-zA-Z0-9-_.+~%]+ 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;
-
hasGatewayConfig
public boolean hasGatewayConfig()
Gateway-related configuration and state.
.google.cloud.iot.v1.GatewayConfig gateway_config = 24;- Specified by:
hasGatewayConfigin interfaceDeviceOrBuilder- Returns:
- Whether the gatewayConfig field is set.
-
getGatewayConfig
public GatewayConfig getGatewayConfig()
Gateway-related configuration and state.
.google.cloud.iot.v1.GatewayConfig gateway_config = 24;- Specified by:
getGatewayConfigin interfaceDeviceOrBuilder- Returns:
- The gatewayConfig.
-
setGatewayConfig
public Device.Builder setGatewayConfig(GatewayConfig value)
Gateway-related configuration and state.
.google.cloud.iot.v1.GatewayConfig gateway_config = 24;
-
setGatewayConfig
public Device.Builder setGatewayConfig(GatewayConfig.Builder builderForValue)
Gateway-related configuration and state.
.google.cloud.iot.v1.GatewayConfig gateway_config = 24;
-
mergeGatewayConfig
public Device.Builder mergeGatewayConfig(GatewayConfig value)
Gateway-related configuration and state.
.google.cloud.iot.v1.GatewayConfig gateway_config = 24;
-
clearGatewayConfig
public Device.Builder clearGatewayConfig()
Gateway-related configuration and state.
.google.cloud.iot.v1.GatewayConfig gateway_config = 24;
-
getGatewayConfigBuilder
public GatewayConfig.Builder getGatewayConfigBuilder()
Gateway-related configuration and state.
.google.cloud.iot.v1.GatewayConfig gateway_config = 24;
-
getGatewayConfigOrBuilder
public GatewayConfigOrBuilder getGatewayConfigOrBuilder()
Gateway-related configuration and state.
.google.cloud.iot.v1.GatewayConfig gateway_config = 24;- Specified by:
getGatewayConfigOrBuilderin interfaceDeviceOrBuilder
-
setUnknownFields
public final Device.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Device.Builder>
-
mergeUnknownFields
public final Device.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Device.Builder>
-
-