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 class
Protobuf typecom.cirruslink.sparkplug.protobuf.Payload.Template
static final class
Protobuf typecom.cirruslink.sparkplug.protobuf.Payload.Template.Parameter
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 int
static final com.google.protobuf.Parser<SparkplugBProto.Payload.Template>
Deprecated.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
static final com.google.protobuf.Descriptors.Descriptor
boolean
optional 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 valueint
Each 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;
int
repeated .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>
int
Reference to a template if this is extending a Template or an instance - must exist if an instancecom.google.protobuf.ByteString
Reference 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.ByteString
The version of the Template to prevent mismatchesint
hashCode()
boolean
optional bool is_definition = 5;
boolean
Reference to a template if this is extending a Template or an instance - must exist if an instanceboolean
The version of the Template to prevent mismatchesprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
newBuilder
(SparkplugBProto.Payload.Template prototype) protected SparkplugBProto.Payload.Template.Builder
newBuilderForType
(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected Object
newInstance
(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()
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
-
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:
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
-
hasVersion
public boolean hasVersion()The version of the Template to prevent mismatches
optional string version = 1;
- Specified by:
hasVersion
in 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:
getVersion
in 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:
getVersionBytes
in 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:
getMetricsList
in 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:
getMetricsOrBuilderList
in 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:
getMetricsCount
in 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:
getMetrics
in 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:
getMetricsOrBuilder
in interfaceSparkplugBProto.Payload.TemplateOrBuilder
-
getParametersList
repeated .com.cirruslink.sparkplug.protobuf.Payload.Template.Parameter parameters = 3;
- Specified by:
getParametersList
in interfaceSparkplugBProto.Payload.TemplateOrBuilder
-
getParametersOrBuilderList
public List<? extends SparkplugBProto.Payload.Template.ParameterOrBuilder> getParametersOrBuilderList()repeated .com.cirruslink.sparkplug.protobuf.Payload.Template.Parameter parameters = 3;
- Specified by:
getParametersOrBuilderList
in interfaceSparkplugBProto.Payload.TemplateOrBuilder
-
getParametersCount
public int getParametersCount()repeated .com.cirruslink.sparkplug.protobuf.Payload.Template.Parameter parameters = 3;
- Specified by:
getParametersCount
in interfaceSparkplugBProto.Payload.TemplateOrBuilder
-
getParameters
repeated .com.cirruslink.sparkplug.protobuf.Payload.Template.Parameter parameters = 3;
- Specified by:
getParameters
in interfaceSparkplugBProto.Payload.TemplateOrBuilder
-
getParametersOrBuilder
repeated .com.cirruslink.sparkplug.protobuf.Payload.Template.Parameter parameters = 3;
- Specified by:
getParametersOrBuilder
in 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:
hasTemplateRef
in 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:
getTemplateRef
in 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:
getTemplateRefBytes
in interfaceSparkplugBProto.Payload.TemplateOrBuilder
- Returns:
- The bytes for templateRef.
-
hasIsDefinition
public boolean hasIsDefinition()optional bool is_definition = 5;
- Specified by:
hasIsDefinition
in interfaceSparkplugBProto.Payload.TemplateOrBuilder
- Returns:
- Whether the isDefinition field is set.
-
getIsDefinition
public boolean getIsDefinition()optional bool is_definition = 5;
- Specified by:
getIsDefinition
in interfaceSparkplugBProto.Payload.TemplateOrBuilder
- Returns:
- The isDefinition.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.ExtendableMessage<SparkplugBProto.Payload.Template>
-
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.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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static SparkplugBProto.Payload.Template.Builder newBuilder(SparkplugBProto.Payload.Template prototype) -
toBuilder
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SparkplugBProto.Payload.Template.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.Template>
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-