Package com.iotics.api
Class Value.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
com.iotics.api.Value.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ValueOrBuilder,Cloneable
- Enclosing class:
- Value
public static final class Value.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
implements ValueOrBuilder
Value is the definition of an individual piece of data within a Feed share or an Input send. Values are purely descriptive, e.g. a follower should expect data to match the values associated with said Feed/Input but must be able to recover where this is not the case.Protobuf type
iotics.api.Value-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()comment is the (optional) human-readable description of the value.dataType is the xsd type in shorthand notation.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) label is the unique identifier of the value.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) unit is the (optional) fully qualified ontology string URI of the unit, e.g.clone()comment is the (optional) human-readable description of the value.com.google.protobuf.ByteStringcomment is the (optional) human-readable description of the value.dataType is the xsd type in shorthand notation.com.google.protobuf.ByteStringdataType is the xsd type in shorthand notation.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetLabel()label is the unique identifier of the value.com.google.protobuf.ByteStringlabel is the unique identifier of the value.getUnit()unit is the (optional) fully qualified ontology string URI of the unit, e.g.com.google.protobuf.ByteStringunit is the (optional) fully qualified ontology string URI of the unit, e.g.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final Value.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setComment(String value) comment is the (optional) human-readable description of the value.setCommentBytes(com.google.protobuf.ByteString value) comment is the (optional) human-readable description of the value.setDataType(String value) dataType is the xsd type in shorthand notation.setDataTypeBytes(com.google.protobuf.ByteString value) dataType is the xsd type in shorthand notation.label is the unique identifier of the value.setLabelBytes(com.google.protobuf.ByteString value) label is the unique identifier of the value.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) unit is the (optional) fully qualified ontology string URI of the unit, e.g.setUnitBytes(com.google.protobuf.ByteString value) unit is the (optional) fully qualified ontology string URI of the unit, e.g.final Value.BuildersetUnknownFields(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, internalGetMutableMapField, 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<Value.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<Value.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<Value.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<Value.Builder>
-
setField
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
-
setRepeatedField
public Value.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<Value.Builder>
-
addRepeatedField
public Value.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<Value.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Value.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
-
mergeFrom
public Value.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<Value.Builder>- Throws:
IOException
-
getLabel
label is the unique identifier of the value. It is language-neutral. E.g.: "t" / "temp" / "temperature".
string label = 1;- Specified by:
getLabelin interfaceValueOrBuilder- Returns:
- The label.
-
getLabelBytes
public com.google.protobuf.ByteString getLabelBytes()label is the unique identifier of the value. It is language-neutral. E.g.: "t" / "temp" / "temperature".
string label = 1;- Specified by:
getLabelBytesin interfaceValueOrBuilder- Returns:
- The bytes for label.
-
setLabel
label is the unique identifier of the value. It is language-neutral. E.g.: "t" / "temp" / "temperature".
string label = 1;- Parameters:
value- The label to set.- Returns:
- This builder for chaining.
-
clearLabel
label is the unique identifier of the value. It is language-neutral. E.g.: "t" / "temp" / "temperature".
string label = 1;- Returns:
- This builder for chaining.
-
setLabelBytes
label is the unique identifier of the value. It is language-neutral. E.g.: "t" / "temp" / "temperature".
string label = 1;- Parameters:
value- The bytes for label to set.- Returns:
- This builder for chaining.
-
getComment
comment is the (optional) human-readable description of the value. It is language-specific. E.g.: "Engine oil temperature"
string comment = 2;- Specified by:
getCommentin interfaceValueOrBuilder- Returns:
- The comment.
-
getCommentBytes
public com.google.protobuf.ByteString getCommentBytes()comment is the (optional) human-readable description of the value. It is language-specific. E.g.: "Engine oil temperature"
string comment = 2;- Specified by:
getCommentBytesin interfaceValueOrBuilder- Returns:
- The bytes for comment.
-
setComment
comment is the (optional) human-readable description of the value. It is language-specific. E.g.: "Engine oil temperature"
string comment = 2;- Parameters:
value- The comment to set.- Returns:
- This builder for chaining.
-
clearComment
comment is the (optional) human-readable description of the value. It is language-specific. E.g.: "Engine oil temperature"
string comment = 2;- Returns:
- This builder for chaining.
-
setCommentBytes
comment is the (optional) human-readable description of the value. It is language-specific. E.g.: "Engine oil temperature"
string comment = 2;- Parameters:
value- The bytes for comment to set.- Returns:
- This builder for chaining.
-
getUnit
unit is the (optional) fully qualified ontology string URI of the unit, e.g. http://purl.obolibrary.org/obo/UO_0000027
string unit = 3;- Specified by:
getUnitin interfaceValueOrBuilder- Returns:
- The unit.
-
getUnitBytes
public com.google.protobuf.ByteString getUnitBytes()unit is the (optional) fully qualified ontology string URI of the unit, e.g. http://purl.obolibrary.org/obo/UO_0000027
string unit = 3;- Specified by:
getUnitBytesin interfaceValueOrBuilder- Returns:
- The bytes for unit.
-
setUnit
unit is the (optional) fully qualified ontology string URI of the unit, e.g. http://purl.obolibrary.org/obo/UO_0000027
string unit = 3;- Parameters:
value- The unit to set.- Returns:
- This builder for chaining.
-
clearUnit
unit is the (optional) fully qualified ontology string URI of the unit, e.g. http://purl.obolibrary.org/obo/UO_0000027
string unit = 3;- Returns:
- This builder for chaining.
-
setUnitBytes
unit is the (optional) fully qualified ontology string URI of the unit, e.g. http://purl.obolibrary.org/obo/UO_0000027
string unit = 3;- Parameters:
value- The bytes for unit to set.- Returns:
- This builder for chaining.
-
getDataType
dataType is the xsd type in shorthand notation. Currently supported types are: base64Binary, decimal, float, double, dateTime, time, date, boolean, integer, nonPositiveInteger, negativeInteger, nonNegativeInteger, positiveInteger, long, unsignedLong, int, unsignedInt, short, unsignedShort, byte, unsignedByte
string dataType = 4;- Specified by:
getDataTypein interfaceValueOrBuilder- Returns:
- The dataType.
-
getDataTypeBytes
public com.google.protobuf.ByteString getDataTypeBytes()dataType is the xsd type in shorthand notation. Currently supported types are: base64Binary, decimal, float, double, dateTime, time, date, boolean, integer, nonPositiveInteger, negativeInteger, nonNegativeInteger, positiveInteger, long, unsignedLong, int, unsignedInt, short, unsignedShort, byte, unsignedByte
string dataType = 4;- Specified by:
getDataTypeBytesin interfaceValueOrBuilder- Returns:
- The bytes for dataType.
-
setDataType
dataType is the xsd type in shorthand notation. Currently supported types are: base64Binary, decimal, float, double, dateTime, time, date, boolean, integer, nonPositiveInteger, negativeInteger, nonNegativeInteger, positiveInteger, long, unsignedLong, int, unsignedInt, short, unsignedShort, byte, unsignedByte
string dataType = 4;- Parameters:
value- The dataType to set.- Returns:
- This builder for chaining.
-
clearDataType
dataType is the xsd type in shorthand notation. Currently supported types are: base64Binary, decimal, float, double, dateTime, time, date, boolean, integer, nonPositiveInteger, negativeInteger, nonNegativeInteger, positiveInteger, long, unsignedLong, int, unsignedInt, short, unsignedShort, byte, unsignedByte
string dataType = 4;- Returns:
- This builder for chaining.
-
setDataTypeBytes
dataType is the xsd type in shorthand notation. Currently supported types are: base64Binary, decimal, float, double, dateTime, time, date, boolean, integer, nonPositiveInteger, negativeInteger, nonNegativeInteger, positiveInteger, long, unsignedLong, int, unsignedInt, short, unsignedShort, byte, unsignedByte
string dataType = 4;- Parameters:
value- The bytes for dataType to set.- Returns:
- This builder for chaining.
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
-