Class SparkplugBProto.Payload
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.ExtendableMessage<SparkplugBProto.Payload>
com.cirruslink.sparkplug.protobuf.SparkplugBProto.Payload
- All Implemented Interfaces:
SparkplugBProto.PayloadOrBuilder
,com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<SparkplugBProto.Payload>
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
- Enclosing class:
- SparkplugBProto
public static final class SparkplugBProto.Payload
extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<SparkplugBProto.Payload>
implements SparkplugBProto.PayloadOrBuilder
// Indexes of Data Types // Unknown placeholder for future expansion. Unknown = 0; // Basic Types Int8 = 1; Int16 = 2; Int32 = 3; Int64 = 4; UInt8 = 5; UInt16 = 6; UInt32 = 7; UInt64 = 8; Float = 9; Double = 10; Boolean = 11; String = 12; DateTime = 13; Text = 14; // Additional Metric Types UUID = 15; DataSet = 16; Bytes = 17; File = 18; Template = 19; // Additional PropertyValue Types PropertySet = 20; PropertySetList = 21;Protobuf type
com.cirruslink.sparkplug.protobuf.Payload
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
// Indexes of Data Types // Unknown placeholder for future expansion.static final class
Protobuf typecom.cirruslink.sparkplug.protobuf.Payload.DataSet
static interface
static final class
Protobuf typecom.cirruslink.sparkplug.protobuf.Payload.MetaData
static interface
static final class
Protobuf typecom.cirruslink.sparkplug.protobuf.Payload.Metric
static interface
static final class
Protobuf typecom.cirruslink.sparkplug.protobuf.Payload.PropertySet
static final class
Protobuf typecom.cirruslink.sparkplug.protobuf.Payload.PropertySetList
static interface
static interface
static final class
Protobuf typecom.cirruslink.sparkplug.protobuf.Payload.PropertyValue
static interface
static final class
Protobuf typecom.cirruslink.sparkplug.protobuf.Payload.Template
static interface
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3.ExtendableMessage
com.google.protobuf.GeneratedMessageV3.ExtendableMessage.ExtensionWriter
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,
BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final com.google.protobuf.Parser<SparkplugBProto.Payload>
Deprecated.static final int
static final int
static final int
Fields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFields
Fields inherited from class com.google.protobuf.AbstractMessage
memoizedSize
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Method Summary
Modifier and TypeMethodDescriptionboolean
com.google.protobuf.ByteString
getBody()
To optionally bypass the whole definition abovestatic SparkplugBProto.Payload
static final com.google.protobuf.Descriptors.Descriptor
getMetrics
(int index) Repeated forever - no limit in Google Protobufsint
Repeated forever - no limit in Google ProtobufsRepeated forever - no limit in Google ProtobufsgetMetricsOrBuilder
(int index) Repeated forever - no limit in Google ProtobufsList<? extends SparkplugBProto.Payload.MetricOrBuilder>
Repeated forever - no limit in Google Protobufscom.google.protobuf.Parser<SparkplugBProto.Payload>
long
getSeq()
Sequence numberint
long
Timestamp at message sending timegetUuid()
UUID to track message type in terms of schema definitionscom.google.protobuf.ByteString
UUID to track message type in terms of schema definitionsboolean
hasBody()
To optionally bypass the whole definition aboveint
hashCode()
boolean
hasSeq()
Sequence numberboolean
Timestamp at message sending timeboolean
hasUuid()
UUID to track message type in terms of schema definitionsprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
newBuilder
(SparkplugBProto.Payload prototype) protected SparkplugBProto.Payload.Builder
newBuilderForType
(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected Object
newInstance
(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static SparkplugBProto.Payload
parseDelimitedFrom
(InputStream input) static SparkplugBProto.Payload
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SparkplugBProto.Payload
parseFrom
(byte[] data) static SparkplugBProto.Payload
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SparkplugBProto.Payload
parseFrom
(com.google.protobuf.ByteString data) static SparkplugBProto.Payload
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SparkplugBProto.Payload
parseFrom
(com.google.protobuf.CodedInputStream input) static SparkplugBProto.Payload
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SparkplugBProto.Payload
parseFrom
(InputStream input) static SparkplugBProto.Payload
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SparkplugBProto.Payload
parseFrom
(ByteBuffer data) static SparkplugBProto.Payload
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<SparkplugBProto.Payload>
parser()
void
writeTo
(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3.ExtendableMessage
extensionsAreInitialized, extensionsSerializedSize, extensionsSerializedSizeAsMessageSet, getAllFields, getAllFieldsRaw, getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, getExtensionFields, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasExtension, hasExtension, hasField, makeExtensionsImmutable, newExtensionWriter, newMessageSetExtensionWriter, parseUnknownField, parseUnknownFieldProto3
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getDescriptorForType, getOneofFieldDescriptor, getUnknownFields, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder
getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, hasExtension, hasExtension, hasExtension
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
TIMESTAMP_FIELD_NUMBER
public static final int TIMESTAMP_FIELD_NUMBER- See Also:
-
METRICS_FIELD_NUMBER
public static final int METRICS_FIELD_NUMBER- See Also:
-
SEQ_FIELD_NUMBER
public static final int SEQ_FIELD_NUMBER- See Also:
-
UUID_FIELD_NUMBER
public static final int UUID_FIELD_NUMBER- See Also:
-
BODY_FIELD_NUMBER
public static final int BODY_FIELD_NUMBER- See Also:
-
PARSER
Deprecated.
-
-
Method Details
-
newInstance
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
hasTimestamp
public boolean hasTimestamp()Timestamp at message sending time
optional uint64 timestamp = 1;
- Specified by:
hasTimestamp
in interfaceSparkplugBProto.PayloadOrBuilder
- Returns:
- Whether the timestamp field is set.
-
getTimestamp
public long getTimestamp()Timestamp at message sending time
optional uint64 timestamp = 1;
- Specified by:
getTimestamp
in interfaceSparkplugBProto.PayloadOrBuilder
- Returns:
- The timestamp.
-
getMetricsList
Repeated forever - no limit in Google Protobufs
repeated .com.cirruslink.sparkplug.protobuf.Payload.Metric metrics = 2;
- Specified by:
getMetricsList
in interfaceSparkplugBProto.PayloadOrBuilder
-
getMetricsOrBuilderList
Repeated forever - no limit in Google Protobufs
repeated .com.cirruslink.sparkplug.protobuf.Payload.Metric metrics = 2;
- Specified by:
getMetricsOrBuilderList
in interfaceSparkplugBProto.PayloadOrBuilder
-
getMetricsCount
public int getMetricsCount()Repeated forever - no limit in Google Protobufs
repeated .com.cirruslink.sparkplug.protobuf.Payload.Metric metrics = 2;
- Specified by:
getMetricsCount
in interfaceSparkplugBProto.PayloadOrBuilder
-
getMetrics
Repeated forever - no limit in Google Protobufs
repeated .com.cirruslink.sparkplug.protobuf.Payload.Metric metrics = 2;
- Specified by:
getMetrics
in interfaceSparkplugBProto.PayloadOrBuilder
-
getMetricsOrBuilder
Repeated forever - no limit in Google Protobufs
repeated .com.cirruslink.sparkplug.protobuf.Payload.Metric metrics = 2;
- Specified by:
getMetricsOrBuilder
in interfaceSparkplugBProto.PayloadOrBuilder
-
hasSeq
public boolean hasSeq()Sequence number
optional uint64 seq = 3;
- Specified by:
hasSeq
in interfaceSparkplugBProto.PayloadOrBuilder
- Returns:
- Whether the seq field is set.
-
getSeq
public long getSeq()Sequence number
optional uint64 seq = 3;
- Specified by:
getSeq
in interfaceSparkplugBProto.PayloadOrBuilder
- Returns:
- The seq.
-
hasUuid
public boolean hasUuid()UUID to track message type in terms of schema definitions
optional string uuid = 4;
- Specified by:
hasUuid
in interfaceSparkplugBProto.PayloadOrBuilder
- Returns:
- Whether the uuid field is set.
-
getUuid
UUID to track message type in terms of schema definitions
optional string uuid = 4;
- Specified by:
getUuid
in interfaceSparkplugBProto.PayloadOrBuilder
- Returns:
- The uuid.
-
getUuidBytes
public com.google.protobuf.ByteString getUuidBytes()UUID to track message type in terms of schema definitions
optional string uuid = 4;
- Specified by:
getUuidBytes
in interfaceSparkplugBProto.PayloadOrBuilder
- Returns:
- The bytes for uuid.
-
hasBody
public boolean hasBody()To optionally bypass the whole definition above
optional bytes body = 5;
- Specified by:
hasBody
in interfaceSparkplugBProto.PayloadOrBuilder
- Returns:
- Whether the body field is set.
-
getBody
public com.google.protobuf.ByteString getBody()To optionally bypass the whole definition above
optional bytes body = 5;
- Specified by:
getBody
in interfaceSparkplugBProto.PayloadOrBuilder
- Returns:
- The body.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.ExtendableMessage<SparkplugBProto.Payload>
-
writeTo
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static SparkplugBProto.Payload parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SparkplugBProto.Payload parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SparkplugBProto.Payload parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SparkplugBProto.Payload parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SparkplugBProto.Payload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SparkplugBProto.Payload parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static SparkplugBProto.Payload parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static SparkplugBProto.Payload parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static SparkplugBProto.Payload parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static SparkplugBProto.Payload parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SparkplugBProto.Payload.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<SparkplugBProto.Payload>
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-