public static final class Device.Builder extends GeneratedMessageV3.Builder<Device.Builder> implements DeviceOrBuilder
The device resource.Protobuf type
google.cloud.iot.v1.Device
Modifier and Type | Method and Description |
---|---|
Device.Builder |
addAllCredentials(Iterable<? extends DeviceCredential> values)
The credentials used to authenticate this device.
|
Device.Builder |
addCredentials(DeviceCredential.Builder builderForValue)
The credentials used to authenticate this device.
|
Device.Builder |
addCredentials(DeviceCredential value)
The credentials used to authenticate this device.
|
Device.Builder |
addCredentials(int index,
DeviceCredential.Builder builderForValue)
The credentials used to authenticate this device.
|
Device.Builder |
addCredentials(int index,
DeviceCredential value)
The credentials used to authenticate this device.
|
DeviceCredential.Builder |
addCredentialsBuilder()
The credentials used to authenticate this device.
|
DeviceCredential.Builder |
addCredentialsBuilder(int index)
The credentials used to authenticate this device.
|
Device.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
Device |
build() |
Device |
buildPartial() |
Device.Builder |
clear() |
Device.Builder |
clearBlocked()
If a device is blocked, connections or requests from this device will fail.
|
Device.Builder |
clearConfig()
The most recent device configuration, which is eventually sent from
Cloud IoT Core to the device.
|
Device.Builder |
clearCredentials()
The credentials used to authenticate this device.
|
Device.Builder |
clearField(Descriptors.FieldDescriptor field) |
Device.Builder |
clearGatewayConfig()
Gateway-related configuration and state.
|
Device.Builder |
clearId()
The user-defined device identifier.
|
Device.Builder |
clearLastConfigAckTime()
[Output only] The last time a cloud-to-device config version acknowledgment
was received from the device.
|
Device.Builder |
clearLastConfigSendTime()
[Output only] The last time a cloud-to-device config version was sent to
the device.
|
Device.Builder |
clearLastErrorStatus()
[Output only] The error message of the most recent error, such as a failure
to publish to Cloud Pub/Sub.
|
Device.Builder |
clearLastErrorTime()
[Output only] The time the most recent error occurred, such as a failure to
publish to Cloud Pub/Sub.
|
Device.Builder |
clearLastEventTime()
[Output only] The last time a telemetry event was received.
|
Device.Builder |
clearLastHeartbeatTime()
[Output only] The last time an MQTT `PINGREQ` was received.
|
Device.Builder |
clearLastStateTime()
[Output only] The last time a state event was received.
|
Device.Builder |
clearLogLevel()
**Beta Feature**
The logging verbosity for device activity.
|
Device.Builder |
clearMetadata() |
Device.Builder |
clearName()
The resource path name.
|
Device.Builder |
clearNumId()
[Output only] A server-defined unique numeric ID for the device.
|
Device.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
Device.Builder |
clearState()
[Output only] The state most recently received from the device.
|
Device.Builder |
clone() |
boolean |
containsMetadata(String key)
The metadata key-value pairs assigned to the device.
|
boolean |
getBlocked()
If a device is blocked, connections or requests from this device will fail.
|
DeviceConfig |
getConfig()
The most recent device configuration, which is eventually sent from
Cloud IoT Core to the device.
|
DeviceConfig.Builder |
getConfigBuilder()
The most recent device configuration, which is eventually sent from
Cloud IoT Core to the device.
|
DeviceConfigOrBuilder |
getConfigOrBuilder()
The most recent device configuration, which is eventually sent from
Cloud IoT Core to the device.
|
DeviceCredential |
getCredentials(int index)
The credentials used to authenticate this device.
|
DeviceCredential.Builder |
getCredentialsBuilder(int index)
The credentials used to authenticate this device.
|
List<DeviceCredential.Builder> |
getCredentialsBuilderList()
The credentials used to authenticate this device.
|
int |
getCredentialsCount()
The credentials used to authenticate this device.
|
List<DeviceCredential> |
getCredentialsList()
The credentials used to authenticate this device.
|
DeviceCredentialOrBuilder |
getCredentialsOrBuilder(int index)
The credentials used to authenticate this device.
|
List<? extends DeviceCredentialOrBuilder> |
getCredentialsOrBuilderList()
The credentials used to authenticate this device.
|
Device |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
GatewayConfig |
getGatewayConfig()
Gateway-related configuration and state.
|
GatewayConfig.Builder |
getGatewayConfigBuilder()
Gateway-related configuration and state.
|
GatewayConfigOrBuilder |
getGatewayConfigOrBuilder()
Gateway-related configuration and state.
|
String |
getId()
The user-defined device identifier.
|
ByteString |
getIdBytes()
The user-defined device identifier.
|
Timestamp |
getLastConfigAckTime()
[Output only] The last time a cloud-to-device config version acknowledgment
was received from the device.
|
Timestamp.Builder |
getLastConfigAckTimeBuilder()
[Output only] The last time a cloud-to-device config version acknowledgment
was received from the device.
|
TimestampOrBuilder |
getLastConfigAckTimeOrBuilder()
[Output only] The last time a cloud-to-device config version acknowledgment
was received from the device.
|
Timestamp |
getLastConfigSendTime()
[Output only] The last time a cloud-to-device config version was sent to
the device.
|
Timestamp.Builder |
getLastConfigSendTimeBuilder()
[Output only] The last time a cloud-to-device config version was sent to
the device.
|
TimestampOrBuilder |
getLastConfigSendTimeOrBuilder()
[Output only] The last time a cloud-to-device config version was sent to
the device.
|
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.
|
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.
|
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.
|
Timestamp |
getLastErrorTime()
[Output only] The time the most recent error occurred, such as a failure to
publish to Cloud Pub/Sub.
|
Timestamp.Builder |
getLastErrorTimeBuilder()
[Output only] The time the most recent error occurred, such as a failure to
publish to Cloud Pub/Sub.
|
TimestampOrBuilder |
getLastErrorTimeOrBuilder()
[Output only] The time the most recent error occurred, such as a failure to
publish to Cloud Pub/Sub.
|
Timestamp |
getLastEventTime()
[Output only] The last time a telemetry event was received.
|
Timestamp.Builder |
getLastEventTimeBuilder()
[Output only] The last time a telemetry event was received.
|
TimestampOrBuilder |
getLastEventTimeOrBuilder()
[Output only] The last time a telemetry event was received.
|
Timestamp |
getLastHeartbeatTime()
[Output only] The last time an MQTT `PINGREQ` was received.
|
Timestamp.Builder |
getLastHeartbeatTimeBuilder()
[Output only] The last time an MQTT `PINGREQ` was received.
|
TimestampOrBuilder |
getLastHeartbeatTimeOrBuilder()
[Output only] The last time an MQTT `PINGREQ` was received.
|
Timestamp |
getLastStateTime()
[Output only] The last time a state event was received.
|
Timestamp.Builder |
getLastStateTimeBuilder()
[Output only] The last time a state event was received.
|
TimestampOrBuilder |
getLastStateTimeOrBuilder()
[Output only] The last time a state event was received.
|
LogLevel |
getLogLevel()
**Beta Feature**
The logging verbosity for device activity.
|
int |
getLogLevelValue()
**Beta Feature**
The logging verbosity for device activity.
|
Map<String,String> |
getMetadata()
Deprecated.
|
int |
getMetadataCount()
The metadata key-value pairs assigned to the device.
|
Map<String,String> |
getMetadataMap()
The metadata key-value pairs assigned to the device.
|
String |
getMetadataOrDefault(String key,
String defaultValue)
The metadata key-value pairs assigned to the device.
|
String |
getMetadataOrThrow(String key)
The metadata key-value pairs assigned to the device.
|
Map<String,String> |
getMutableMetadata()
Deprecated.
|
String |
getName()
The resource path name.
|
ByteString |
getNameBytes()
The resource path name.
|
long |
getNumId()
[Output only] A server-defined unique numeric ID for the device.
|
DeviceState |
getState()
[Output only] The state most recently received from the device.
|
DeviceState.Builder |
getStateBuilder()
[Output only] The state most recently received from the device.
|
DeviceStateOrBuilder |
getStateOrBuilder()
[Output only] The state most recently received from the device.
|
boolean |
hasConfig()
The most recent device configuration, which is eventually sent from
Cloud IoT Core to the device.
|
boolean |
hasGatewayConfig()
Gateway-related configuration and state.
|
boolean |
hasLastConfigAckTime()
[Output only] The last time a cloud-to-device config version acknowledgment
was received from the device.
|
boolean |
hasLastConfigSendTime()
[Output only] The last time a cloud-to-device config version was sent to
the device.
|
boolean |
hasLastErrorStatus()
[Output only] The error message of the most recent error, such as a failure
to publish to Cloud Pub/Sub.
|
boolean |
hasLastErrorTime()
[Output only] The time the most recent error occurred, such as a failure to
publish to Cloud Pub/Sub.
|
boolean |
hasLastEventTime()
[Output only] The last time a telemetry event was received.
|
boolean |
hasLastHeartbeatTime()
[Output only] The last time an MQTT `PINGREQ` was received.
|
boolean |
hasLastStateTime()
[Output only] The last time a state event was received.
|
boolean |
hasState()
[Output only] The state most recently received from the device.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected MapField |
internalGetMapField(int number) |
protected MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
Device.Builder |
mergeConfig(DeviceConfig value)
The most recent device configuration, which is eventually sent from
Cloud IoT Core to the device.
|
Device.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Device.Builder |
mergeFrom(Device other) |
Device.Builder |
mergeFrom(Message other) |
Device.Builder |
mergeGatewayConfig(GatewayConfig value)
Gateway-related configuration and state.
|
Device.Builder |
mergeLastConfigAckTime(Timestamp value)
[Output only] The last time a cloud-to-device config version acknowledgment
was received from the device.
|
Device.Builder |
mergeLastConfigSendTime(Timestamp value)
[Output only] The last time a cloud-to-device config version was sent to
the device.
|
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.
|
Device.Builder |
mergeLastErrorTime(Timestamp value)
[Output only] The time the most recent error occurred, such as a failure to
publish to Cloud Pub/Sub.
|
Device.Builder |
mergeLastEventTime(Timestamp value)
[Output only] The last time a telemetry event was received.
|
Device.Builder |
mergeLastHeartbeatTime(Timestamp value)
[Output only] The last time an MQTT `PINGREQ` was received.
|
Device.Builder |
mergeLastStateTime(Timestamp value)
[Output only] The last time a state event was received.
|
Device.Builder |
mergeState(DeviceState value)
[Output only] The state most recently received from the device.
|
Device.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
Device.Builder |
putAllMetadata(Map<String,String> values)
The metadata key-value pairs assigned to the device.
|
Device.Builder |
putMetadata(String key,
String value)
The metadata key-value pairs assigned to the device.
|
Device.Builder |
removeCredentials(int index)
The credentials used to authenticate this device.
|
Device.Builder |
removeMetadata(String key)
The metadata key-value pairs assigned to the device.
|
Device.Builder |
setBlocked(boolean value)
If a device is blocked, connections or requests from this device will fail.
|
Device.Builder |
setConfig(DeviceConfig.Builder builderForValue)
The most recent device configuration, which is eventually sent from
Cloud IoT Core to the device.
|
Device.Builder |
setConfig(DeviceConfig value)
The most recent device configuration, which is eventually sent from
Cloud IoT Core to the device.
|
Device.Builder |
setCredentials(int index,
DeviceCredential.Builder builderForValue)
The credentials used to authenticate this device.
|
Device.Builder |
setCredentials(int index,
DeviceCredential value)
The credentials used to authenticate this device.
|
Device.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
Device.Builder |
setGatewayConfig(GatewayConfig.Builder builderForValue)
Gateway-related configuration and state.
|
Device.Builder |
setGatewayConfig(GatewayConfig value)
Gateway-related configuration and state.
|
Device.Builder |
setId(String value)
The user-defined device identifier.
|
Device.Builder |
setIdBytes(ByteString value)
The user-defined device identifier.
|
Device.Builder |
setLastConfigAckTime(Timestamp.Builder builderForValue)
[Output only] The last time a cloud-to-device config version acknowledgment
was received from the device.
|
Device.Builder |
setLastConfigAckTime(Timestamp value)
[Output only] The last time a cloud-to-device config version acknowledgment
was received from the device.
|
Device.Builder |
setLastConfigSendTime(Timestamp.Builder builderForValue)
[Output only] The last time a cloud-to-device config version was sent to
the device.
|
Device.Builder |
setLastConfigSendTime(Timestamp value)
[Output only] The last time a cloud-to-device config version was sent to
the device.
|
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.
|
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.
|
Device.Builder |
setLastErrorTime(Timestamp.Builder builderForValue)
[Output only] The time the most recent error occurred, such as a failure to
publish to Cloud Pub/Sub.
|
Device.Builder |
setLastErrorTime(Timestamp value)
[Output only] The time the most recent error occurred, such as a failure to
publish to Cloud Pub/Sub.
|
Device.Builder |
setLastEventTime(Timestamp.Builder builderForValue)
[Output only] The last time a telemetry event was received.
|
Device.Builder |
setLastEventTime(Timestamp value)
[Output only] The last time a telemetry event was received.
|
Device.Builder |
setLastHeartbeatTime(Timestamp.Builder builderForValue)
[Output only] The last time an MQTT `PINGREQ` was received.
|
Device.Builder |
setLastHeartbeatTime(Timestamp value)
[Output only] The last time an MQTT `PINGREQ` was received.
|
Device.Builder |
setLastStateTime(Timestamp.Builder builderForValue)
[Output only] The last time a state event was received.
|
Device.Builder |
setLastStateTime(Timestamp value)
[Output only] The last time a state event was received.
|
Device.Builder |
setLogLevel(LogLevel value)
**Beta Feature**
The logging verbosity for device activity.
|
Device.Builder |
setLogLevelValue(int value)
**Beta Feature**
The logging verbosity for device activity.
|
Device.Builder |
setName(String value)
The resource path name.
|
Device.Builder |
setNameBytes(ByteString value)
The resource path name.
|
Device.Builder |
setNumId(long value)
[Output only] A server-defined unique numeric ID for the device.
|
Device.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
Device.Builder |
setState(DeviceState.Builder builderForValue)
[Output only] The state most recently received from the device.
|
Device.Builder |
setState(DeviceState value)
[Output only] The state most recently received from the device.
|
Device.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3.Builder<Device.Builder>
protected MapField internalGetMutableMapField(int number)
internalGetMutableMapField
in class GeneratedMessageV3.Builder<Device.Builder>
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Device.Builder>
public Device.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Device.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Device.Builder>
public Device getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Device build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Device buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Device.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Device.Builder>
public Device.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Device.Builder>
public Device.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Device.Builder>
public Device.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Device.Builder>
public Device.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Device.Builder>
public Device.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Device.Builder>
public Device.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Device.Builder>
public Device.Builder mergeFrom(Device other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Device.Builder>
public Device.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Device.Builder>
IOException
public String getId()
The user-defined device identifier. The device ID must be unique within a device registry.
string id = 1;
getId
in interface DeviceOrBuilder
public ByteString getIdBytes()
The user-defined device identifier. The device ID must be unique within a device registry.
string id = 1;
getIdBytes
in interface DeviceOrBuilder
public Device.Builder setId(String value)
The user-defined device identifier. The device ID must be unique within a device registry.
string id = 1;
value
- The id to set.public Device.Builder clearId()
The user-defined device identifier. The device ID must be unique within a device registry.
string id = 1;
public Device.Builder setIdBytes(ByteString value)
The user-defined device identifier. The device ID must be unique within a device registry.
string id = 1;
value
- The bytes for id to set.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;
getName
in interface DeviceOrBuilder
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;
getNameBytes
in interface DeviceOrBuilder
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;
value
- The name to set.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;
public Device.Builder setNameBytes(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;
value
- The bytes for name to set.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;
getNumId
in interface DeviceOrBuilder
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;
value
- The numId to set.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;
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;
getCredentialsList
in interface DeviceOrBuilder
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;
getCredentialsCount
in interface DeviceOrBuilder
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;
getCredentials
in interface DeviceOrBuilder
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
getCredentialsOrBuilder
in interface DeviceOrBuilder
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;
getCredentialsOrBuilderList
in interface DeviceOrBuilder
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;
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;
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;
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;
hasLastHeartbeatTime
in interface DeviceOrBuilder
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;
getLastHeartbeatTime
in interface DeviceOrBuilder
public Device.Builder setLastHeartbeatTime(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;
public Device.Builder setLastHeartbeatTime(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;
public Device.Builder mergeLastHeartbeatTime(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;
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;
public 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;
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;
getLastHeartbeatTimeOrBuilder
in interface DeviceOrBuilder
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;
hasLastEventTime
in interface DeviceOrBuilder
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;
getLastEventTime
in interface DeviceOrBuilder
public Device.Builder setLastEventTime(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;
public Device.Builder setLastEventTime(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;
public Device.Builder mergeLastEventTime(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;
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;
public 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;
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;
getLastEventTimeOrBuilder
in interface DeviceOrBuilder
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;
hasLastStateTime
in interface DeviceOrBuilder
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;
getLastStateTime
in interface DeviceOrBuilder
public Device.Builder setLastStateTime(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;
public Device.Builder setLastStateTime(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;
public Device.Builder mergeLastStateTime(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;
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;
public 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;
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;
getLastStateTimeOrBuilder
in interface DeviceOrBuilder
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;
hasLastConfigAckTime
in interface DeviceOrBuilder
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;
getLastConfigAckTime
in interface DeviceOrBuilder
public Device.Builder setLastConfigAckTime(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;
public Device.Builder setLastConfigAckTime(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;
public Device.Builder mergeLastConfigAckTime(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;
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;
public 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;
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;
getLastConfigAckTimeOrBuilder
in interface DeviceOrBuilder
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;
hasLastConfigSendTime
in interface DeviceOrBuilder
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;
getLastConfigSendTime
in interface DeviceOrBuilder
public Device.Builder setLastConfigSendTime(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;
public Device.Builder setLastConfigSendTime(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;
public Device.Builder mergeLastConfigSendTime(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;
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;
public 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;
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;
getLastConfigSendTimeOrBuilder
in interface DeviceOrBuilder
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;
getBlocked
in interface DeviceOrBuilder
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;
value
- The blocked to set.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;
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;
hasLastErrorTime
in interface DeviceOrBuilder
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;
getLastErrorTime
in interface DeviceOrBuilder
public Device.Builder setLastErrorTime(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;
public Device.Builder setLastErrorTime(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;
public Device.Builder mergeLastErrorTime(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;
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;
public 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;
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;
getLastErrorTimeOrBuilder
in interface DeviceOrBuilder
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;
hasLastErrorStatus
in interface DeviceOrBuilder
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;
getLastErrorStatus
in interface DeviceOrBuilder
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;
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;
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;
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;
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;
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;
getLastErrorStatusOrBuilder
in interface DeviceOrBuilder
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;
hasConfig
in interface DeviceOrBuilder
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;
getConfig
in interface DeviceOrBuilder
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;
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;
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;
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;
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;
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;
getConfigOrBuilder
in interface DeviceOrBuilder
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;
hasState
in interface DeviceOrBuilder
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;
getState
in interface DeviceOrBuilder
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;
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;
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;
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;
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;
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;
getStateOrBuilder
in interface DeviceOrBuilder
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;
getLogLevelValue
in interface DeviceOrBuilder
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;
value
- The enum numeric value on the wire for logLevel to set.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;
getLogLevel
in interface DeviceOrBuilder
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;
value
- The logLevel to set.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;
public int getMetadataCount()
DeviceOrBuilder
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;
getMetadataCount
in interface DeviceOrBuilder
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;
containsMetadata
in interface DeviceOrBuilder
@Deprecated public Map<String,String> getMetadata()
getMetadataMap()
instead.getMetadata
in interface DeviceOrBuilder
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;
getMetadataMap
in interface DeviceOrBuilder
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;
getMetadataOrDefault
in interface DeviceOrBuilder
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;
getMetadataOrThrow
in interface DeviceOrBuilder
public Device.Builder clearMetadata()
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;
@Deprecated public Map<String,String> getMutableMetadata()
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;
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;
public boolean hasGatewayConfig()
Gateway-related configuration and state.
.google.cloud.iot.v1.GatewayConfig gateway_config = 24;
hasGatewayConfig
in interface DeviceOrBuilder
public GatewayConfig getGatewayConfig()
Gateway-related configuration and state.
.google.cloud.iot.v1.GatewayConfig gateway_config = 24;
getGatewayConfig
in interface DeviceOrBuilder
public Device.Builder setGatewayConfig(GatewayConfig value)
Gateway-related configuration and state.
.google.cloud.iot.v1.GatewayConfig gateway_config = 24;
public Device.Builder setGatewayConfig(GatewayConfig.Builder builderForValue)
Gateway-related configuration and state.
.google.cloud.iot.v1.GatewayConfig gateway_config = 24;
public Device.Builder mergeGatewayConfig(GatewayConfig value)
Gateway-related configuration and state.
.google.cloud.iot.v1.GatewayConfig gateway_config = 24;
public Device.Builder clearGatewayConfig()
Gateway-related configuration and state.
.google.cloud.iot.v1.GatewayConfig gateway_config = 24;
public GatewayConfig.Builder getGatewayConfigBuilder()
Gateway-related configuration and state.
.google.cloud.iot.v1.GatewayConfig gateway_config = 24;
public GatewayConfigOrBuilder getGatewayConfigOrBuilder()
Gateway-related configuration and state.
.google.cloud.iot.v1.GatewayConfig gateway_config = 24;
getGatewayConfigOrBuilder
in interface DeviceOrBuilder
public final Device.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Device.Builder>
public final Device.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Device.Builder>
Copyright © 2022 Google LLC. All rights reserved.