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 classProtobuf typecom.cirruslink.sparkplug.protobuf.Payload.DataSetstatic interfacestatic final classProtobuf typecom.cirruslink.sparkplug.protobuf.Payload.MetaDatastatic interfacestatic final classProtobuf typecom.cirruslink.sparkplug.protobuf.Payload.Metricstatic interfacestatic final classProtobuf typecom.cirruslink.sparkplug.protobuf.Payload.PropertySetstatic final classProtobuf typecom.cirruslink.sparkplug.protobuf.Payload.PropertySetListstatic interfacestatic interfacestatic final classProtobuf typecom.cirruslink.sparkplug.protobuf.Payload.PropertyValuestatic interfacestatic final classProtobuf typecom.cirruslink.sparkplug.protobuf.Payload.Templatestatic interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3.ExtendableMessage
com.google.protobuf.GeneratedMessageV3.ExtendableMessage.ExtensionWriterNested 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 intstatic final intstatic final com.google.protobuf.Parser<SparkplugBProto.Payload>Deprecated.static final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancom.google.protobuf.ByteStringgetBody()To optionally bypass the whole definition abovestatic SparkplugBProto.Payloadstatic final com.google.protobuf.Descriptors.DescriptorgetMetrics(int index) Repeated forever - no limit in Google ProtobufsintRepeated 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>longgetSeq()Sequence numberintlongTimestamp at message sending timegetUuid()UUID to track message type in terms of schema definitionscom.google.protobuf.ByteStringUUID to track message type in terms of schema definitionsbooleanhasBody()To optionally bypass the whole definition aboveinthashCode()booleanhasSeq()Sequence numberbooleanTimestamp at message sending timebooleanhasUuid()UUID to track message type in terms of schema definitionsprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(SparkplugBProto.Payload prototype) protected SparkplugBProto.Payload.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static SparkplugBProto.PayloadparseDelimitedFrom(InputStream input) static SparkplugBProto.PayloadparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SparkplugBProto.PayloadparseFrom(byte[] data) static SparkplugBProto.PayloadparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SparkplugBProto.PayloadparseFrom(com.google.protobuf.ByteString data) static SparkplugBProto.PayloadparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SparkplugBProto.PayloadparseFrom(com.google.protobuf.CodedInputStream input) static SparkplugBProto.PayloadparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SparkplugBProto.PayloadparseFrom(InputStream input) static SparkplugBProto.PayloadparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SparkplugBProto.PayloadparseFrom(ByteBuffer data) static SparkplugBProto.PayloadparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<SparkplugBProto.Payload>parser()voidwriteTo(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, parseUnknownFieldProto3Methods 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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder
getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, hasExtension, hasExtension, hasExtensionMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods 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:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasTimestamp
public boolean hasTimestamp()Timestamp at message sending time
optional uint64 timestamp = 1;- Specified by:
hasTimestampin interfaceSparkplugBProto.PayloadOrBuilder- Returns:
- Whether the timestamp field is set.
-
getTimestamp
public long getTimestamp()Timestamp at message sending time
optional uint64 timestamp = 1;- Specified by:
getTimestampin interfaceSparkplugBProto.PayloadOrBuilder- Returns:
- The timestamp.
-
getMetricsList
Repeated forever - no limit in Google Protobufs
repeated .com.cirruslink.sparkplug.protobuf.Payload.Metric metrics = 2;- Specified by:
getMetricsListin interfaceSparkplugBProto.PayloadOrBuilder
-
getMetricsOrBuilderList
Repeated forever - no limit in Google Protobufs
repeated .com.cirruslink.sparkplug.protobuf.Payload.Metric metrics = 2;- Specified by:
getMetricsOrBuilderListin interfaceSparkplugBProto.PayloadOrBuilder
-
getMetricsCount
public int getMetricsCount()Repeated forever - no limit in Google Protobufs
repeated .com.cirruslink.sparkplug.protobuf.Payload.Metric metrics = 2;- Specified by:
getMetricsCountin interfaceSparkplugBProto.PayloadOrBuilder
-
getMetrics
Repeated forever - no limit in Google Protobufs
repeated .com.cirruslink.sparkplug.protobuf.Payload.Metric metrics = 2;- Specified by:
getMetricsin interfaceSparkplugBProto.PayloadOrBuilder
-
getMetricsOrBuilder
Repeated forever - no limit in Google Protobufs
repeated .com.cirruslink.sparkplug.protobuf.Payload.Metric metrics = 2;- Specified by:
getMetricsOrBuilderin interfaceSparkplugBProto.PayloadOrBuilder
-
hasSeq
public boolean hasSeq()Sequence number
optional uint64 seq = 3;- Specified by:
hasSeqin interfaceSparkplugBProto.PayloadOrBuilder- Returns:
- Whether the seq field is set.
-
getSeq
public long getSeq()Sequence number
optional uint64 seq = 3;- Specified by:
getSeqin 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:
hasUuidin 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:
getUuidin 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:
getUuidBytesin interfaceSparkplugBProto.PayloadOrBuilder- Returns:
- The bytes for uuid.
-
hasBody
public boolean hasBody()To optionally bypass the whole definition above
optional bytes body = 5;- Specified by:
hasBodyin 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:
getBodyin interfaceSparkplugBProto.PayloadOrBuilder- Returns:
- The body.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.ExtendableMessage<SparkplugBProto.Payload>
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein 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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SparkplugBProto.Payload.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<SparkplugBProto.Payload>- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-