public final class DeviceConfig extends GeneratedMessageV3 implements DeviceConfigOrBuilder
The device configuration. Eventually delivered to devices.Protobuf type
google.cloud.iot.v1.DeviceConfig
Modifier and Type | Class and Description |
---|---|
static class |
DeviceConfig.Builder
The device configuration.
|
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 |
BINARY_DATA_FIELD_NUMBER |
static int |
CLOUD_UPDATE_TIME_FIELD_NUMBER |
static int |
DEVICE_ACK_TIME_FIELD_NUMBER |
static int |
VERSION_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
ByteString |
getBinaryData()
The device configuration data.
|
Timestamp |
getCloudUpdateTime()
[Output only] The time at which this configuration version was updated in
Cloud IoT Core.
|
TimestampOrBuilder |
getCloudUpdateTimeOrBuilder()
[Output only] The time at which this configuration version was updated in
Cloud IoT Core.
|
static DeviceConfig |
getDefaultInstance() |
DeviceConfig |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Timestamp |
getDeviceAckTime()
[Output only] The time at which Cloud IoT Core received the
acknowledgment from the device, indicating that the device has received
this configuration version.
|
TimestampOrBuilder |
getDeviceAckTimeOrBuilder()
[Output only] The time at which Cloud IoT Core received the
acknowledgment from the device, indicating that the device has received
this configuration version.
|
Parser<DeviceConfig> |
getParserForType() |
int |
getSerializedSize() |
UnknownFieldSet |
getUnknownFields() |
long |
getVersion()
[Output only] The version of this update.
|
boolean |
hasCloudUpdateTime()
[Output only] The time at which this configuration version was updated in
Cloud IoT Core.
|
boolean |
hasDeviceAckTime()
[Output only] The time at which Cloud IoT Core received the
acknowledgment from the device, indicating that the device has received
this configuration version.
|
int |
hashCode() |
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static DeviceConfig.Builder |
newBuilder() |
static DeviceConfig.Builder |
newBuilder(DeviceConfig prototype) |
DeviceConfig.Builder |
newBuilderForType() |
protected DeviceConfig.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) |
static DeviceConfig |
parseDelimitedFrom(InputStream input) |
static DeviceConfig |
parseDelimitedFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static DeviceConfig |
parseFrom(byte[] data) |
static DeviceConfig |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static DeviceConfig |
parseFrom(ByteBuffer data) |
static DeviceConfig |
parseFrom(ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static DeviceConfig |
parseFrom(ByteString data) |
static DeviceConfig |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static DeviceConfig |
parseFrom(CodedInputStream input) |
static DeviceConfig |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static DeviceConfig |
parseFrom(InputStream input) |
static DeviceConfig |
parseFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<DeviceConfig> |
parser() |
DeviceConfig.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, 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 VERSION_FIELD_NUMBER
public static final int CLOUD_UPDATE_TIME_FIELD_NUMBER
public static final int DEVICE_ACK_TIME_FIELD_NUMBER
public static final int BINARY_DATA_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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public long getVersion()
[Output only] The version of this update. The version number is assigned by the server, and is always greater than 0 after device creation. The version must be 0 on the `CreateDevice` request if a `config` is specified; the response of `CreateDevice` will always have a value of 1.
int64 version = 1;
getVersion
in interface DeviceConfigOrBuilder
public boolean hasCloudUpdateTime()
[Output only] The time at which this configuration version was updated in Cloud IoT Core. This timestamp is set by the server.
.google.protobuf.Timestamp cloud_update_time = 2;
hasCloudUpdateTime
in interface DeviceConfigOrBuilder
public Timestamp getCloudUpdateTime()
[Output only] The time at which this configuration version was updated in Cloud IoT Core. This timestamp is set by the server.
.google.protobuf.Timestamp cloud_update_time = 2;
getCloudUpdateTime
in interface DeviceConfigOrBuilder
public TimestampOrBuilder getCloudUpdateTimeOrBuilder()
[Output only] The time at which this configuration version was updated in Cloud IoT Core. This timestamp is set by the server.
.google.protobuf.Timestamp cloud_update_time = 2;
getCloudUpdateTimeOrBuilder
in interface DeviceConfigOrBuilder
public boolean hasDeviceAckTime()
[Output only] The time at which Cloud IoT Core received the acknowledgment from the device, indicating that the device has received this configuration version. If this field is not present, the device has not yet acknowledged that it received this version. Note that when the config was sent to the device, many config versions may have been available in Cloud IoT Core while the device was disconnected, and on connection, only the latest version is sent to the device. Some versions may never be sent to the device, and therefore are never acknowledged. This timestamp is set by Cloud IoT Core.
.google.protobuf.Timestamp device_ack_time = 3;
hasDeviceAckTime
in interface DeviceConfigOrBuilder
public Timestamp getDeviceAckTime()
[Output only] The time at which Cloud IoT Core received the acknowledgment from the device, indicating that the device has received this configuration version. If this field is not present, the device has not yet acknowledged that it received this version. Note that when the config was sent to the device, many config versions may have been available in Cloud IoT Core while the device was disconnected, and on connection, only the latest version is sent to the device. Some versions may never be sent to the device, and therefore are never acknowledged. This timestamp is set by Cloud IoT Core.
.google.protobuf.Timestamp device_ack_time = 3;
getDeviceAckTime
in interface DeviceConfigOrBuilder
public TimestampOrBuilder getDeviceAckTimeOrBuilder()
[Output only] The time at which Cloud IoT Core received the acknowledgment from the device, indicating that the device has received this configuration version. If this field is not present, the device has not yet acknowledged that it received this version. Note that when the config was sent to the device, many config versions may have been available in Cloud IoT Core while the device was disconnected, and on connection, only the latest version is sent to the device. Some versions may never be sent to the device, and therefore are never acknowledged. This timestamp is set by Cloud IoT Core.
.google.protobuf.Timestamp device_ack_time = 3;
getDeviceAckTimeOrBuilder
in interface DeviceConfigOrBuilder
public ByteString getBinaryData()
The device configuration data.
bytes binary_data = 4;
getBinaryData
in interface DeviceConfigOrBuilder
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 DeviceConfig parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DeviceConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DeviceConfig parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DeviceConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DeviceConfig parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DeviceConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DeviceConfig parseFrom(InputStream input) throws IOException
IOException
public static DeviceConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static DeviceConfig parseDelimitedFrom(InputStream input) throws IOException
IOException
public static DeviceConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static DeviceConfig parseFrom(CodedInputStream input) throws IOException
IOException
public static DeviceConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public DeviceConfig.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static DeviceConfig.Builder newBuilder()
public static DeviceConfig.Builder newBuilder(DeviceConfig prototype)
public DeviceConfig.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected DeviceConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static DeviceConfig getDefaultInstance()
public static Parser<DeviceConfig> parser()
public Parser<DeviceConfig> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public DeviceConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.