public final class Device extends GeneratedMessageV3 implements DeviceOrBuilder
The device resource.Protobuf type
google.cloud.iot.v1.Device
Modifier and Type | Class and Description |
---|---|
static class |
Device.Builder
The device resource.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
BLOCKED_FIELD_NUMBER |
static int |
CONFIG_FIELD_NUMBER |
static int |
CREDENTIALS_FIELD_NUMBER |
static int |
GATEWAY_CONFIG_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
LAST_CONFIG_ACK_TIME_FIELD_NUMBER |
static int |
LAST_CONFIG_SEND_TIME_FIELD_NUMBER |
static int |
LAST_ERROR_STATUS_FIELD_NUMBER |
static int |
LAST_ERROR_TIME_FIELD_NUMBER |
static int |
LAST_EVENT_TIME_FIELD_NUMBER |
static int |
LAST_HEARTBEAT_TIME_FIELD_NUMBER |
static int |
LAST_STATE_TIME_FIELD_NUMBER |
static int |
LOG_LEVEL_FIELD_NUMBER |
static int |
METADATA_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
NUM_ID_FIELD_NUMBER |
static int |
STATE_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
containsMetadata(String key)
The metadata key-value pairs assigned to the device.
|
boolean |
equals(Object obj) |
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.
|
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.
|
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.
|
static Device |
getDefaultInstance() |
Device |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
GatewayConfig |
getGatewayConfig()
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.
|
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.
|
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.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.
|
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.
|
TimestampOrBuilder |
getLastEventTimeOrBuilder()
[Output only] The last time a telemetry event was received.
|
Timestamp |
getLastHeartbeatTime()
[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.
|
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.
|
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.
|
Parser<Device> |
getParserForType() |
int |
getSerializedSize() |
DeviceState |
getState()
[Output only] The state most recently received from the device.
|
DeviceStateOrBuilder |
getStateOrBuilder()
[Output only] The state most recently received from the device.
|
UnknownFieldSet |
getUnknownFields() |
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.
|
int |
hashCode() |
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) |
boolean |
isInitialized() |
static Device.Builder |
newBuilder() |
static Device.Builder |
newBuilder(Device prototype) |
Device.Builder |
newBuilderForType() |
protected Device.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) |
static Device |
parseDelimitedFrom(InputStream input) |
static Device |
parseDelimitedFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Device |
parseFrom(byte[] data) |
static Device |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static Device |
parseFrom(ByteBuffer data) |
static Device |
parseFrom(ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static Device |
parseFrom(ByteString data) |
static Device |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Device |
parseFrom(CodedInputStream input) |
static Device |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static Device |
parseFrom(InputStream input) |
static Device |
parseFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<Device> |
parser() |
Device.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int ID_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
public static final int NUM_ID_FIELD_NUMBER
public static final int CREDENTIALS_FIELD_NUMBER
public static final int LAST_HEARTBEAT_TIME_FIELD_NUMBER
public static final int LAST_EVENT_TIME_FIELD_NUMBER
public static final int LAST_STATE_TIME_FIELD_NUMBER
public static final int LAST_CONFIG_ACK_TIME_FIELD_NUMBER
public static final int LAST_CONFIG_SEND_TIME_FIELD_NUMBER
public static final int BLOCKED_FIELD_NUMBER
public static final int LAST_ERROR_TIME_FIELD_NUMBER
public static final int LAST_ERROR_STATUS_FIELD_NUMBER
public static final int CONFIG_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
public static final int LOG_LEVEL_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
public static final int GATEWAY_CONFIG_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 GatewayConfigOrBuilder getGatewayConfigOrBuilder()
Gateway-related configuration and state.
.google.cloud.iot.v1.GatewayConfig gateway_config = 24;
getGatewayConfigOrBuilder
in interface DeviceOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static Device parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Device parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Device parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Device parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Device parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Device parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Device parseFrom(InputStream input) throws IOException
IOException
public static Device parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Device parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Device parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Device parseFrom(CodedInputStream input) throws IOException
IOException
public static Device parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Device.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static Device.Builder newBuilder()
public static Device.Builder newBuilder(Device prototype)
public Device.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected Device.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static Device getDefaultInstance()
public Parser<Device> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public Device getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.