Class SparkplugBProto.Payload.Metric.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<SparkplugBProto.Payload.Metric.Builder>
com.cirruslink.sparkplug.protobuf.SparkplugBProto.Payload.Metric.Builder
- All Implemented Interfaces:
SparkplugBProto.Payload.MetricOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SparkplugBProto.Payload.Metric
public static final class SparkplugBProto.Payload.Metric.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<SparkplugBProto.Payload.Metric.Builder>
implements SparkplugBProto.Payload.MetricOrBuilder
Protobuf type
com.cirruslink.sparkplug.protobuf.Payload.Metric-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Metric alias - tied to name on birth and included in all later DATA messagesbool boolean_value = 14;Bytes, File.com.cirruslink.sparkplug.protobuf.Payload.DataSet dataset_value = 17;DataType of the metric/tag valuedouble double_value = 13;.com.cirruslink.sparkplug.protobuf.Payload.Metric.MetricValueExtension extension_value = 19;clearField(com.google.protobuf.Descriptors.FieldDescriptor field) float float_value = 12;uint32 int_value = 10;If this is historical data and should not update real time tagIf this is null - explicitly say so rather than using -1, false, etc for some datatypes.Tells consuming clients such as MQTT Engine to not store this as a taguint64 long_value = 11;Metadata for the payloadMetric name - should only be included on birthclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) optional .com.cirruslink.sparkplug.protobuf.Payload.PropertySet properties = 9;string string_value = 15;.com.cirruslink.sparkplug.protobuf.Payload.Template template_value = 18;Timestamp associated with data acquisition timeclone()longgetAlias()Metric alias - tied to name on birth and included in all later DATA messagesbooleanbool boolean_value = 14;com.google.protobuf.ByteStringBytes, File.com.cirruslink.sparkplug.protobuf.Payload.DataSet dataset_value = 17;.com.cirruslink.sparkplug.protobuf.Payload.DataSet dataset_value = 17;.com.cirruslink.sparkplug.protobuf.Payload.DataSet dataset_value = 17;intDataType of the metric/tag valuestatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptordoubledouble double_value = 13;.com.cirruslink.sparkplug.protobuf.Payload.Metric.MetricValueExtension extension_value = 19;.com.cirruslink.sparkplug.protobuf.Payload.Metric.MetricValueExtension extension_value = 19;.com.cirruslink.sparkplug.protobuf.Payload.Metric.MetricValueExtension extension_value = 19;floatfloat float_value = 12;intuint32 int_value = 10;booleanIf this is historical data and should not update real time tagbooleanIf this is null - explicitly say so rather than using -1, false, etc for some datatypes.booleanTells consuming clients such as MQTT Engine to not store this as a taglonguint64 long_value = 11;Metadata for the payloadMetadata for the payloadMetadata for the payloadgetName()Metric name - should only be included on birthcom.google.protobuf.ByteStringMetric name - should only be included on birthoptional .com.cirruslink.sparkplug.protobuf.Payload.PropertySet properties = 9;optional .com.cirruslink.sparkplug.protobuf.Payload.PropertySet properties = 9;optional .com.cirruslink.sparkplug.protobuf.Payload.PropertySet properties = 9;string string_value = 15;com.google.protobuf.ByteStringstring string_value = 15;.com.cirruslink.sparkplug.protobuf.Payload.Template template_value = 18;.com.cirruslink.sparkplug.protobuf.Payload.Template template_value = 18;.com.cirruslink.sparkplug.protobuf.Payload.Template template_value = 18;longTimestamp associated with data acquisition timebooleanhasAlias()Metric alias - tied to name on birth and included in all later DATA messagesbooleanbool boolean_value = 14;booleanBytes, Fileboolean.com.cirruslink.sparkplug.protobuf.Payload.DataSet dataset_value = 17;booleanDataType of the metric/tag valuebooleandouble double_value = 13;boolean.com.cirruslink.sparkplug.protobuf.Payload.Metric.MetricValueExtension extension_value = 19;booleanfloat float_value = 12;booleanuint32 int_value = 10;booleanIf this is historical data and should not update real time tagbooleanIf this is null - explicitly say so rather than using -1, false, etc for some datatypes.booleanTells consuming clients such as MQTT Engine to not store this as a tagbooleanuint64 long_value = 11;booleanMetadata for the payloadbooleanhasName()Metric name - should only be included on birthbooleanoptional .com.cirruslink.sparkplug.protobuf.Payload.PropertySet properties = 9;booleanstring string_value = 15;boolean.com.cirruslink.sparkplug.protobuf.Payload.Template template_value = 18;booleanTimestamp associated with data acquisition timeprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal boolean.com.cirruslink.sparkplug.protobuf.Payload.DataSet dataset_value = 17;.com.cirruslink.sparkplug.protobuf.Payload.Metric.MetricValueExtension extension_value = 19;mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Metadata for the payloadoptional .com.cirruslink.sparkplug.protobuf.Payload.PropertySet properties = 9;.com.cirruslink.sparkplug.protobuf.Payload.Template template_value = 18;mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setAlias(long value) Metric alias - tied to name on birth and included in all later DATA messagessetBooleanValue(boolean value) bool boolean_value = 14;setBytesValue(com.google.protobuf.ByteString value) Bytes, File.com.cirruslink.sparkplug.protobuf.Payload.DataSet dataset_value = 17;setDatasetValue(SparkplugBProto.Payload.DataSet.Builder builderForValue) .com.cirruslink.sparkplug.protobuf.Payload.DataSet dataset_value = 17;setDatatype(int value) DataType of the metric/tag valuesetDoubleValue(double value) double double_value = 13;.com.cirruslink.sparkplug.protobuf.Payload.Metric.MetricValueExtension extension_value = 19;.com.cirruslink.sparkplug.protobuf.Payload.Metric.MetricValueExtension extension_value = 19;setFloatValue(float value) float float_value = 12;setIntValue(int value) uint32 int_value = 10;setIsHistorical(boolean value) If this is historical data and should not update real time tagsetIsNull(boolean value) If this is null - explicitly say so rather than using -1, false, etc for some datatypes.setIsTransient(boolean value) Tells consuming clients such as MQTT Engine to not store this as a tagsetLongValue(long value) uint64 long_value = 11;Metadata for the payloadsetMetadata(SparkplugBProto.Payload.MetaData.Builder builderForValue) Metadata for the payloadMetric name - should only be included on birthsetNameBytes(com.google.protobuf.ByteString value) Metric name - should only be included on birthoptional .com.cirruslink.sparkplug.protobuf.Payload.PropertySet properties = 9;setProperties(SparkplugBProto.Payload.PropertySet.Builder builderForValue) optional .com.cirruslink.sparkplug.protobuf.Payload.PropertySet properties = 9;setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStringValue(String value) string string_value = 15;setStringValueBytes(com.google.protobuf.ByteString value) string string_value = 15;.com.cirruslink.sparkplug.protobuf.Payload.Template template_value = 18;setTemplateValue(SparkplugBProto.Payload.Template.Builder builderForValue) .com.cirruslink.sparkplug.protobuf.Payload.Template template_value = 18;setTimestamp(long value) Timestamp associated with data acquisition timesetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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.Builder<SparkplugBProto.Payload.Metric.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<SparkplugBProto.Payload.Metric.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<SparkplugBProto.Payload.Metric.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<SparkplugBProto.Payload.Metric.Builder>
-
setField
public SparkplugBProto.Payload.Metric.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SparkplugBProto.Payload.Metric.Builder>
-
clearField
public SparkplugBProto.Payload.Metric.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SparkplugBProto.Payload.Metric.Builder>
-
clearOneof
public SparkplugBProto.Payload.Metric.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<SparkplugBProto.Payload.Metric.Builder>
-
setRepeatedField
public SparkplugBProto.Payload.Metric.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SparkplugBProto.Payload.Metric.Builder>
-
addRepeatedField
public SparkplugBProto.Payload.Metric.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SparkplugBProto.Payload.Metric.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SparkplugBProto.Payload.Metric.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<SparkplugBProto.Payload.Metric.Builder>
-
mergeFrom
public SparkplugBProto.Payload.Metric.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SparkplugBProto.Payload.Metric.Builder>- Throws:
IOException
-
getValueCase
- Specified by:
getValueCasein interfaceSparkplugBProto.Payload.MetricOrBuilder
-
clearValue
-
hasName
public boolean hasName()Metric name - should only be included on birth
optional string name = 1;- Specified by:
hasNamein interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- Whether the name field is set.
-
getName
Metric name - should only be included on birth
optional string name = 1;- Specified by:
getNamein interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Metric name - should only be included on birth
optional string name = 1;- Specified by:
getNameBytesin interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- The bytes for name.
-
setName
Metric name - should only be included on birth
optional string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Metric name - should only be included on birth
optional string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
Metric name - should only be included on birth
optional string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasAlias
public boolean hasAlias()Metric alias - tied to name on birth and included in all later DATA messages
optional uint64 alias = 2;- Specified by:
hasAliasin interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- Whether the alias field is set.
-
getAlias
public long getAlias()Metric alias - tied to name on birth and included in all later DATA messages
optional uint64 alias = 2;- Specified by:
getAliasin interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- The alias.
-
setAlias
Metric alias - tied to name on birth and included in all later DATA messages
optional uint64 alias = 2;- Parameters:
value- The alias to set.- Returns:
- This builder for chaining.
-
clearAlias
Metric alias - tied to name on birth and included in all later DATA messages
optional uint64 alias = 2;- Returns:
- This builder for chaining.
-
hasTimestamp
public boolean hasTimestamp()Timestamp associated with data acquisition time
optional uint64 timestamp = 3;- Specified by:
hasTimestampin interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- Whether the timestamp field is set.
-
getTimestamp
public long getTimestamp()Timestamp associated with data acquisition time
optional uint64 timestamp = 3;- Specified by:
getTimestampin interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- The timestamp.
-
setTimestamp
Timestamp associated with data acquisition time
optional uint64 timestamp = 3;- Parameters:
value- The timestamp to set.- Returns:
- This builder for chaining.
-
clearTimestamp
Timestamp associated with data acquisition time
optional uint64 timestamp = 3;- Returns:
- This builder for chaining.
-
hasDatatype
public boolean hasDatatype()DataType of the metric/tag value
optional uint32 datatype = 4;- Specified by:
hasDatatypein interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- Whether the datatype field is set.
-
getDatatype
public int getDatatype()DataType of the metric/tag value
optional uint32 datatype = 4;- Specified by:
getDatatypein interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- The datatype.
-
setDatatype
DataType of the metric/tag value
optional uint32 datatype = 4;- Parameters:
value- The datatype to set.- Returns:
- This builder for chaining.
-
clearDatatype
DataType of the metric/tag value
optional uint32 datatype = 4;- Returns:
- This builder for chaining.
-
hasIsHistorical
public boolean hasIsHistorical()If this is historical data and should not update real time tag
optional bool is_historical = 5;- Specified by:
hasIsHistoricalin interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- Whether the isHistorical field is set.
-
getIsHistorical
public boolean getIsHistorical()If this is historical data and should not update real time tag
optional bool is_historical = 5;- Specified by:
getIsHistoricalin interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- The isHistorical.
-
setIsHistorical
If this is historical data and should not update real time tag
optional bool is_historical = 5;- Parameters:
value- The isHistorical to set.- Returns:
- This builder for chaining.
-
clearIsHistorical
If this is historical data and should not update real time tag
optional bool is_historical = 5;- Returns:
- This builder for chaining.
-
hasIsTransient
public boolean hasIsTransient()Tells consuming clients such as MQTT Engine to not store this as a tag
optional bool is_transient = 6;- Specified by:
hasIsTransientin interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- Whether the isTransient field is set.
-
getIsTransient
public boolean getIsTransient()Tells consuming clients such as MQTT Engine to not store this as a tag
optional bool is_transient = 6;- Specified by:
getIsTransientin interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- The isTransient.
-
setIsTransient
Tells consuming clients such as MQTT Engine to not store this as a tag
optional bool is_transient = 6;- Parameters:
value- The isTransient to set.- Returns:
- This builder for chaining.
-
clearIsTransient
Tells consuming clients such as MQTT Engine to not store this as a tag
optional bool is_transient = 6;- Returns:
- This builder for chaining.
-
hasIsNull
public boolean hasIsNull()If this is null - explicitly say so rather than using -1, false, etc for some datatypes.
optional bool is_null = 7;- Specified by:
hasIsNullin interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- Whether the isNull field is set.
-
getIsNull
public boolean getIsNull()If this is null - explicitly say so rather than using -1, false, etc for some datatypes.
optional bool is_null = 7;- Specified by:
getIsNullin interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- The isNull.
-
setIsNull
If this is null - explicitly say so rather than using -1, false, etc for some datatypes.
optional bool is_null = 7;- Parameters:
value- The isNull to set.- Returns:
- This builder for chaining.
-
clearIsNull
If this is null - explicitly say so rather than using -1, false, etc for some datatypes.
optional bool is_null = 7;- Returns:
- This builder for chaining.
-
hasMetadata
public boolean hasMetadata()Metadata for the payload
optional .com.cirruslink.sparkplug.protobuf.Payload.MetaData metadata = 8;- Specified by:
hasMetadatain interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- Whether the metadata field is set.
-
getMetadata
Metadata for the payload
optional .com.cirruslink.sparkplug.protobuf.Payload.MetaData metadata = 8;- Specified by:
getMetadatain interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- The metadata.
-
setMetadata
Metadata for the payload
optional .com.cirruslink.sparkplug.protobuf.Payload.MetaData metadata = 8; -
setMetadata
public SparkplugBProto.Payload.Metric.Builder setMetadata(SparkplugBProto.Payload.MetaData.Builder builderForValue) Metadata for the payload
optional .com.cirruslink.sparkplug.protobuf.Payload.MetaData metadata = 8; -
mergeMetadata
Metadata for the payload
optional .com.cirruslink.sparkplug.protobuf.Payload.MetaData metadata = 8; -
clearMetadata
Metadata for the payload
optional .com.cirruslink.sparkplug.protobuf.Payload.MetaData metadata = 8; -
getMetadataBuilder
Metadata for the payload
optional .com.cirruslink.sparkplug.protobuf.Payload.MetaData metadata = 8; -
getMetadataOrBuilder
Metadata for the payload
optional .com.cirruslink.sparkplug.protobuf.Payload.MetaData metadata = 8;- Specified by:
getMetadataOrBuilderin interfaceSparkplugBProto.Payload.MetricOrBuilder
-
hasProperties
public boolean hasProperties()optional .com.cirruslink.sparkplug.protobuf.Payload.PropertySet properties = 9;- Specified by:
hasPropertiesin interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- Whether the properties field is set.
-
getProperties
optional .com.cirruslink.sparkplug.protobuf.Payload.PropertySet properties = 9;- Specified by:
getPropertiesin interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- The properties.
-
setProperties
public SparkplugBProto.Payload.Metric.Builder setProperties(SparkplugBProto.Payload.PropertySet value) optional .com.cirruslink.sparkplug.protobuf.Payload.PropertySet properties = 9; -
setProperties
public SparkplugBProto.Payload.Metric.Builder setProperties(SparkplugBProto.Payload.PropertySet.Builder builderForValue) optional .com.cirruslink.sparkplug.protobuf.Payload.PropertySet properties = 9; -
mergeProperties
public SparkplugBProto.Payload.Metric.Builder mergeProperties(SparkplugBProto.Payload.PropertySet value) optional .com.cirruslink.sparkplug.protobuf.Payload.PropertySet properties = 9; -
clearProperties
optional .com.cirruslink.sparkplug.protobuf.Payload.PropertySet properties = 9; -
getPropertiesBuilder
optional .com.cirruslink.sparkplug.protobuf.Payload.PropertySet properties = 9; -
getPropertiesOrBuilder
optional .com.cirruslink.sparkplug.protobuf.Payload.PropertySet properties = 9;- Specified by:
getPropertiesOrBuilderin interfaceSparkplugBProto.Payload.MetricOrBuilder
-
hasIntValue
public boolean hasIntValue()uint32 int_value = 10;- Specified by:
hasIntValuein interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- Whether the intValue field is set.
-
getIntValue
public int getIntValue()uint32 int_value = 10;- Specified by:
getIntValuein interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- The intValue.
-
setIntValue
uint32 int_value = 10;- Parameters:
value- The intValue to set.- Returns:
- This builder for chaining.
-
clearIntValue
uint32 int_value = 10;- Returns:
- This builder for chaining.
-
hasLongValue
public boolean hasLongValue()uint64 long_value = 11;- Specified by:
hasLongValuein interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- Whether the longValue field is set.
-
getLongValue
public long getLongValue()uint64 long_value = 11;- Specified by:
getLongValuein interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- The longValue.
-
setLongValue
uint64 long_value = 11;- Parameters:
value- The longValue to set.- Returns:
- This builder for chaining.
-
clearLongValue
uint64 long_value = 11;- Returns:
- This builder for chaining.
-
hasFloatValue
public boolean hasFloatValue()float float_value = 12;- Specified by:
hasFloatValuein interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- Whether the floatValue field is set.
-
getFloatValue
public float getFloatValue()float float_value = 12;- Specified by:
getFloatValuein interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- The floatValue.
-
setFloatValue
float float_value = 12;- Parameters:
value- The floatValue to set.- Returns:
- This builder for chaining.
-
clearFloatValue
float float_value = 12;- Returns:
- This builder for chaining.
-
hasDoubleValue
public boolean hasDoubleValue()double double_value = 13;- Specified by:
hasDoubleValuein interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- Whether the doubleValue field is set.
-
getDoubleValue
public double getDoubleValue()double double_value = 13;- Specified by:
getDoubleValuein interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- The doubleValue.
-
setDoubleValue
double double_value = 13;- Parameters:
value- The doubleValue to set.- Returns:
- This builder for chaining.
-
clearDoubleValue
double double_value = 13;- Returns:
- This builder for chaining.
-
hasBooleanValue
public boolean hasBooleanValue()bool boolean_value = 14;- Specified by:
hasBooleanValuein interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- Whether the booleanValue field is set.
-
getBooleanValue
public boolean getBooleanValue()bool boolean_value = 14;- Specified by:
getBooleanValuein interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- The booleanValue.
-
setBooleanValue
bool boolean_value = 14;- Parameters:
value- The booleanValue to set.- Returns:
- This builder for chaining.
-
clearBooleanValue
bool boolean_value = 14;- Returns:
- This builder for chaining.
-
hasStringValue
public boolean hasStringValue()string string_value = 15;- Specified by:
hasStringValuein interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- Whether the stringValue field is set.
-
getStringValue
string string_value = 15;- Specified by:
getStringValuein interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- The stringValue.
-
getStringValueBytes
public com.google.protobuf.ByteString getStringValueBytes()string string_value = 15;- Specified by:
getStringValueBytesin interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- The bytes for stringValue.
-
setStringValue
string string_value = 15;- Parameters:
value- The stringValue to set.- Returns:
- This builder for chaining.
-
clearStringValue
string string_value = 15;- Returns:
- This builder for chaining.
-
setStringValueBytes
public SparkplugBProto.Payload.Metric.Builder setStringValueBytes(com.google.protobuf.ByteString value) string string_value = 15;- Parameters:
value- The bytes for stringValue to set.- Returns:
- This builder for chaining.
-
hasBytesValue
public boolean hasBytesValue()Bytes, File
bytes bytes_value = 16;- Specified by:
hasBytesValuein interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- Whether the bytesValue field is set.
-
getBytesValue
public com.google.protobuf.ByteString getBytesValue()Bytes, File
bytes bytes_value = 16;- Specified by:
getBytesValuein interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- The bytesValue.
-
setBytesValue
Bytes, File
bytes bytes_value = 16;- Parameters:
value- The bytesValue to set.- Returns:
- This builder for chaining.
-
clearBytesValue
Bytes, File
bytes bytes_value = 16;- Returns:
- This builder for chaining.
-
hasDatasetValue
public boolean hasDatasetValue().com.cirruslink.sparkplug.protobuf.Payload.DataSet dataset_value = 17;- Specified by:
hasDatasetValuein interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- Whether the datasetValue field is set.
-
getDatasetValue
.com.cirruslink.sparkplug.protobuf.Payload.DataSet dataset_value = 17;- Specified by:
getDatasetValuein interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- The datasetValue.
-
setDatasetValue
public SparkplugBProto.Payload.Metric.Builder setDatasetValue(SparkplugBProto.Payload.DataSet value) .com.cirruslink.sparkplug.protobuf.Payload.DataSet dataset_value = 17; -
setDatasetValue
public SparkplugBProto.Payload.Metric.Builder setDatasetValue(SparkplugBProto.Payload.DataSet.Builder builderForValue) .com.cirruslink.sparkplug.protobuf.Payload.DataSet dataset_value = 17; -
mergeDatasetValue
public SparkplugBProto.Payload.Metric.Builder mergeDatasetValue(SparkplugBProto.Payload.DataSet value) .com.cirruslink.sparkplug.protobuf.Payload.DataSet dataset_value = 17; -
clearDatasetValue
.com.cirruslink.sparkplug.protobuf.Payload.DataSet dataset_value = 17; -
getDatasetValueBuilder
.com.cirruslink.sparkplug.protobuf.Payload.DataSet dataset_value = 17; -
getDatasetValueOrBuilder
.com.cirruslink.sparkplug.protobuf.Payload.DataSet dataset_value = 17;- Specified by:
getDatasetValueOrBuilderin interfaceSparkplugBProto.Payload.MetricOrBuilder
-
hasTemplateValue
public boolean hasTemplateValue().com.cirruslink.sparkplug.protobuf.Payload.Template template_value = 18;- Specified by:
hasTemplateValuein interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- Whether the templateValue field is set.
-
getTemplateValue
.com.cirruslink.sparkplug.protobuf.Payload.Template template_value = 18;- Specified by:
getTemplateValuein interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- The templateValue.
-
setTemplateValue
public SparkplugBProto.Payload.Metric.Builder setTemplateValue(SparkplugBProto.Payload.Template value) .com.cirruslink.sparkplug.protobuf.Payload.Template template_value = 18; -
setTemplateValue
public SparkplugBProto.Payload.Metric.Builder setTemplateValue(SparkplugBProto.Payload.Template.Builder builderForValue) .com.cirruslink.sparkplug.protobuf.Payload.Template template_value = 18; -
mergeTemplateValue
public SparkplugBProto.Payload.Metric.Builder mergeTemplateValue(SparkplugBProto.Payload.Template value) .com.cirruslink.sparkplug.protobuf.Payload.Template template_value = 18; -
clearTemplateValue
.com.cirruslink.sparkplug.protobuf.Payload.Template template_value = 18; -
getTemplateValueBuilder
.com.cirruslink.sparkplug.protobuf.Payload.Template template_value = 18; -
getTemplateValueOrBuilder
.com.cirruslink.sparkplug.protobuf.Payload.Template template_value = 18;- Specified by:
getTemplateValueOrBuilderin interfaceSparkplugBProto.Payload.MetricOrBuilder
-
hasExtensionValue
public boolean hasExtensionValue().com.cirruslink.sparkplug.protobuf.Payload.Metric.MetricValueExtension extension_value = 19;- Specified by:
hasExtensionValuein interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- Whether the extensionValue field is set.
-
getExtensionValue
.com.cirruslink.sparkplug.protobuf.Payload.Metric.MetricValueExtension extension_value = 19;- Specified by:
getExtensionValuein interfaceSparkplugBProto.Payload.MetricOrBuilder- Returns:
- The extensionValue.
-
setExtensionValue
public SparkplugBProto.Payload.Metric.Builder setExtensionValue(SparkplugBProto.Payload.Metric.MetricValueExtension value) .com.cirruslink.sparkplug.protobuf.Payload.Metric.MetricValueExtension extension_value = 19; -
setExtensionValue
public SparkplugBProto.Payload.Metric.Builder setExtensionValue(SparkplugBProto.Payload.Metric.MetricValueExtension.Builder builderForValue) .com.cirruslink.sparkplug.protobuf.Payload.Metric.MetricValueExtension extension_value = 19; -
mergeExtensionValue
public SparkplugBProto.Payload.Metric.Builder mergeExtensionValue(SparkplugBProto.Payload.Metric.MetricValueExtension value) .com.cirruslink.sparkplug.protobuf.Payload.Metric.MetricValueExtension extension_value = 19; -
clearExtensionValue
.com.cirruslink.sparkplug.protobuf.Payload.Metric.MetricValueExtension extension_value = 19; -
getExtensionValueBuilder
.com.cirruslink.sparkplug.protobuf.Payload.Metric.MetricValueExtension extension_value = 19; -
getExtensionValueOrBuilder
.com.cirruslink.sparkplug.protobuf.Payload.Metric.MetricValueExtension extension_value = 19;- Specified by:
getExtensionValueOrBuilderin interfaceSparkplugBProto.Payload.MetricOrBuilder
-
setUnknownFields
public final SparkplugBProto.Payload.Metric.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SparkplugBProto.Payload.Metric.Builder>
-
mergeUnknownFields
public final SparkplugBProto.Payload.Metric.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SparkplugBProto.Payload.Metric.Builder>
-