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 Type
    Method
    Description
    addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
     
     
     
     
    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.
     
    comment is the (optional) human-readable description of the value.
    com.google.protobuf.ByteString
    comment is the (optional) human-readable description of the value.
    dataType is the xsd type in shorthand notation.
    com.google.protobuf.ByteString
    dataType is the xsd type in shorthand notation.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    label is the unique identifier of the value.
    com.google.protobuf.ByteString
    label is the unique identifier of the value.
    unit is the (optional) fully qualified ontology string URI of the unit, e.g.
    com.google.protobuf.ByteString
    unit is the (optional) fully qualified ontology string URI of the unit, e.g.
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
     
    mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
     
    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.
    dataType is the xsd type in shorthand notation.
    setDataTypeBytes(com.google.protobuf.ByteString value)
    dataType is the xsd type in shorthand notation.
    setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
     
    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)
     
    setUnit(String 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.
    setUnknownFields(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, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
    • clear

      public Value.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
    • getDefaultInstanceForType

      public Value getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Value build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Value buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public Value.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
    • setField

      public Value.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
    • clearField

      public Value.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
    • clearOneof

      public Value.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
    • setRepeatedField

      public Value.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
    • addRepeatedField

      public Value.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
    • mergeFrom

      public Value.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Value.Builder>
    • mergeFrom

      public Value.Builder mergeFrom(Value other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Value.Builder>
      Throws:
      IOException
    • getLabel

      public String getLabel()
       label is the unique identifier of the value. It is language-neutral. E.g.: "t" / "temp" / "temperature".
       
      string label = 1;
      Specified by:
      getLabel in interface ValueOrBuilder
      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:
      getLabelBytes in interface ValueOrBuilder
      Returns:
      The bytes for label.
    • setLabel

      public Value.Builder setLabel(String value)
       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

      public Value.Builder 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

      public Value.Builder setLabelBytes(com.google.protobuf.ByteString value)
       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

      public String 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:
      getComment in interface ValueOrBuilder
      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:
      getCommentBytes in interface ValueOrBuilder
      Returns:
      The bytes for comment.
    • setComment

      public Value.Builder setComment(String value)
       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

      public Value.Builder 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

      public Value.Builder setCommentBytes(com.google.protobuf.ByteString value)
       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

      public String 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:
      getUnit in interface ValueOrBuilder
      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:
      getUnitBytes in interface ValueOrBuilder
      Returns:
      The bytes for unit.
    • setUnit

      public Value.Builder setUnit(String value)
       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

      public Value.Builder 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

      public Value.Builder setUnitBytes(com.google.protobuf.ByteString value)
       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

      public String 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:
      getDataType in interface ValueOrBuilder
      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:
      getDataTypeBytes in interface ValueOrBuilder
      Returns:
      The bytes for dataType.
    • setDataType

      public Value.Builder setDataType(String value)
       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

      public Value.Builder 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

      public Value.Builder setDataTypeBytes(com.google.protobuf.ByteString value)
       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

      public final Value.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
    • mergeUnknownFields

      public final Value.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>