Class SparkplugBProto.Payload.Template
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.ExtendableMessage<SparkplugBProto.Payload.Template>
com.cirruslink.sparkplug.protobuf.SparkplugBProto.Payload.Template
- All Implemented Interfaces:
SparkplugBProto.Payload.TemplateOrBuilder,com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<SparkplugBProto.Payload.Template>,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- SparkplugBProto.Payload
public static final class SparkplugBProto.Payload.Template
extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<SparkplugBProto.Payload.Template>
implements SparkplugBProto.Payload.TemplateOrBuilder
Protobuf type
com.cirruslink.sparkplug.protobuf.Payload.Template- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typecom.cirruslink.sparkplug.protobuf.Payload.Templatestatic final classProtobuf typecom.cirruslink.sparkplug.protobuf.Payload.Template.Parameterstatic 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 intstatic final com.google.protobuf.Parser<SparkplugBProto.Payload.Template>Deprecated.static 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 TypeMethodDescriptionbooleanstatic final com.google.protobuf.Descriptors.Descriptorbooleanoptional bool is_definition = 5;getMetrics(int index) Each metric is the name of the metric and the datatype of the member but does not contain a valueintEach metric is the name of the metric and the datatype of the member but does not contain a valueEach metric is the name of the metric and the datatype of the member but does not contain a valuegetMetricsOrBuilder(int index) Each metric is the name of the metric and the datatype of the member but does not contain a valueList<? extends SparkplugBProto.Payload.MetricOrBuilder>Each metric is the name of the metric and the datatype of the member but does not contain a valuegetParameters(int index) repeated .com.cirruslink.sparkplug.protobuf.Payload.Template.Parameter parameters = 3;intrepeated .com.cirruslink.sparkplug.protobuf.Payload.Template.Parameter parameters = 3;repeated .com.cirruslink.sparkplug.protobuf.Payload.Template.Parameter parameters = 3;getParametersOrBuilder(int index) repeated .com.cirruslink.sparkplug.protobuf.Payload.Template.Parameter parameters = 3;repeated .com.cirruslink.sparkplug.protobuf.Payload.Template.Parameter parameters = 3;com.google.protobuf.Parser<SparkplugBProto.Payload.Template>intReference to a template if this is extending a Template or an instance - must exist if an instancecom.google.protobuf.ByteStringReference to a template if this is extending a Template or an instance - must exist if an instanceThe version of the Template to prevent mismatchescom.google.protobuf.ByteStringThe version of the Template to prevent mismatchesinthashCode()booleanoptional bool is_definition = 5;booleanReference to a template if this is extending a Template or an instance - must exist if an instancebooleanThe version of the Template to prevent mismatchesprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(SparkplugBProto.Payload.Template prototype) protected SparkplugBProto.Payload.Template.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<SparkplugBProto.Payload.Template>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
-
VERSION_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER- See Also:
-
METRICS_FIELD_NUMBER
public static final int METRICS_FIELD_NUMBER- See Also:
-
PARAMETERS_FIELD_NUMBER
public static final int PARAMETERS_FIELD_NUMBER- See Also:
-
TEMPLATE_REF_FIELD_NUMBER
public static final int TEMPLATE_REF_FIELD_NUMBER- See Also:
-
IS_DEFINITION_FIELD_NUMBER
public static final int IS_DEFINITION_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
-
hasVersion
public boolean hasVersion()The version of the Template to prevent mismatches
optional string version = 1;- Specified by:
hasVersionin interfaceSparkplugBProto.Payload.TemplateOrBuilder- Returns:
- Whether the version field is set.
-
getVersion
The version of the Template to prevent mismatches
optional string version = 1;- Specified by:
getVersionin interfaceSparkplugBProto.Payload.TemplateOrBuilder- Returns:
- The version.
-
getVersionBytes
public com.google.protobuf.ByteString getVersionBytes()The version of the Template to prevent mismatches
optional string version = 1;- Specified by:
getVersionBytesin interfaceSparkplugBProto.Payload.TemplateOrBuilder- Returns:
- The bytes for version.
-
getMetricsList
Each metric is the name of the metric and the datatype of the member but does not contain a value
repeated .com.cirruslink.sparkplug.protobuf.Payload.Metric metrics = 2;- Specified by:
getMetricsListin interfaceSparkplugBProto.Payload.TemplateOrBuilder
-
getMetricsOrBuilderList
Each metric is the name of the metric and the datatype of the member but does not contain a value
repeated .com.cirruslink.sparkplug.protobuf.Payload.Metric metrics = 2;- Specified by:
getMetricsOrBuilderListin interfaceSparkplugBProto.Payload.TemplateOrBuilder
-
getMetricsCount
public int getMetricsCount()Each metric is the name of the metric and the datatype of the member but does not contain a value
repeated .com.cirruslink.sparkplug.protobuf.Payload.Metric metrics = 2;- Specified by:
getMetricsCountin interfaceSparkplugBProto.Payload.TemplateOrBuilder
-
getMetrics
Each metric is the name of the metric and the datatype of the member but does not contain a value
repeated .com.cirruslink.sparkplug.protobuf.Payload.Metric metrics = 2;- Specified by:
getMetricsin interfaceSparkplugBProto.Payload.TemplateOrBuilder
-
getMetricsOrBuilder
Each metric is the name of the metric and the datatype of the member but does not contain a value
repeated .com.cirruslink.sparkplug.protobuf.Payload.Metric metrics = 2;- Specified by:
getMetricsOrBuilderin interfaceSparkplugBProto.Payload.TemplateOrBuilder
-
getParametersList
repeated .com.cirruslink.sparkplug.protobuf.Payload.Template.Parameter parameters = 3;- Specified by:
getParametersListin interfaceSparkplugBProto.Payload.TemplateOrBuilder
-
getParametersOrBuilderList
public List<? extends SparkplugBProto.Payload.Template.ParameterOrBuilder> getParametersOrBuilderList()repeated .com.cirruslink.sparkplug.protobuf.Payload.Template.Parameter parameters = 3;- Specified by:
getParametersOrBuilderListin interfaceSparkplugBProto.Payload.TemplateOrBuilder
-
getParametersCount
public int getParametersCount()repeated .com.cirruslink.sparkplug.protobuf.Payload.Template.Parameter parameters = 3;- Specified by:
getParametersCountin interfaceSparkplugBProto.Payload.TemplateOrBuilder
-
getParameters
repeated .com.cirruslink.sparkplug.protobuf.Payload.Template.Parameter parameters = 3;- Specified by:
getParametersin interfaceSparkplugBProto.Payload.TemplateOrBuilder
-
getParametersOrBuilder
repeated .com.cirruslink.sparkplug.protobuf.Payload.Template.Parameter parameters = 3;- Specified by:
getParametersOrBuilderin interfaceSparkplugBProto.Payload.TemplateOrBuilder
-
hasTemplateRef
public boolean hasTemplateRef()Reference to a template if this is extending a Template or an instance - must exist if an instance
optional string template_ref = 4;- Specified by:
hasTemplateRefin interfaceSparkplugBProto.Payload.TemplateOrBuilder- Returns:
- Whether the templateRef field is set.
-
getTemplateRef
Reference to a template if this is extending a Template or an instance - must exist if an instance
optional string template_ref = 4;- Specified by:
getTemplateRefin interfaceSparkplugBProto.Payload.TemplateOrBuilder- Returns:
- The templateRef.
-
getTemplateRefBytes
public com.google.protobuf.ByteString getTemplateRefBytes()Reference to a template if this is extending a Template or an instance - must exist if an instance
optional string template_ref = 4;- Specified by:
getTemplateRefBytesin interfaceSparkplugBProto.Payload.TemplateOrBuilder- Returns:
- The bytes for templateRef.
-
hasIsDefinition
public boolean hasIsDefinition()optional bool is_definition = 5;- Specified by:
hasIsDefinitionin interfaceSparkplugBProto.Payload.TemplateOrBuilder- Returns:
- Whether the isDefinition field is set.
-
getIsDefinition
public boolean getIsDefinition()optional bool is_definition = 5;- Specified by:
getIsDefinitionin interfaceSparkplugBProto.Payload.TemplateOrBuilder- Returns:
- The isDefinition.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.ExtendableMessage<SparkplugBProto.Payload.Template>
-
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.Template parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SparkplugBProto.Payload.Template parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SparkplugBProto.Payload.Template parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SparkplugBProto.Payload.Template 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.Template parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SparkplugBProto.Payload.Template 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.Template parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static SparkplugBProto.Payload.Template parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static SparkplugBProto.Payload.Template parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static SparkplugBProto.Payload.Template parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static SparkplugBProto.Payload.Template 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
public static SparkplugBProto.Payload.Template.Builder newBuilder(SparkplugBProto.Payload.Template prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SparkplugBProto.Payload.Template.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.Template>- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-