Class Values.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Values.Builder>
com.iotics.api.Values.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ValuesOrBuilder, Cloneable
Enclosing class:
Values

public static final class Values.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Values.Builder> implements ValuesOrBuilder
 Values defines a set of values to be added and/or deleted.
 
Protobuf type iotics.api.Values
  • 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<Values.Builder>
    • clear

      public Values.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<Values.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<Values.Builder>
    • getDefaultInstanceForType

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

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

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

      public Values.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<Values.Builder>
    • setField

      public Values.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<Values.Builder>
    • clearField

      public Values.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<Values.Builder>
    • clearOneof

      public Values.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<Values.Builder>
    • setRepeatedField

      public Values.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<Values.Builder>
    • addRepeatedField

      public Values.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<Values.Builder>
    • mergeFrom

      public Values.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<Values.Builder>
    • mergeFrom

      public Values.Builder mergeFrom(Values other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Values.Builder>
    • mergeFrom

      public Values.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<Values.Builder>
      Throws:
      IOException
    • getAddedList

      public List<Value> getAddedList()
       added is the list of values to be added. Note that deletedByLabel takes precedence over this, i.e. if both added
       and deletedByLabel contain the same value, the value will be deleted.
       
      repeated .iotics.api.Value added = 1;
      Specified by:
      getAddedList in interface ValuesOrBuilder
    • getAddedCount

      public int getAddedCount()
       added is the list of values to be added. Note that deletedByLabel takes precedence over this, i.e. if both added
       and deletedByLabel contain the same value, the value will be deleted.
       
      repeated .iotics.api.Value added = 1;
      Specified by:
      getAddedCount in interface ValuesOrBuilder
    • getAdded

      public Value getAdded(int index)
       added is the list of values to be added. Note that deletedByLabel takes precedence over this, i.e. if both added
       and deletedByLabel contain the same value, the value will be deleted.
       
      repeated .iotics.api.Value added = 1;
      Specified by:
      getAdded in interface ValuesOrBuilder
    • setAdded

      public Values.Builder setAdded(int index, Value value)
       added is the list of values to be added. Note that deletedByLabel takes precedence over this, i.e. if both added
       and deletedByLabel contain the same value, the value will be deleted.
       
      repeated .iotics.api.Value added = 1;
    • setAdded

      public Values.Builder setAdded(int index, Value.Builder builderForValue)
       added is the list of values to be added. Note that deletedByLabel takes precedence over this, i.e. if both added
       and deletedByLabel contain the same value, the value will be deleted.
       
      repeated .iotics.api.Value added = 1;
    • addAdded

      public Values.Builder addAdded(Value value)
       added is the list of values to be added. Note that deletedByLabel takes precedence over this, i.e. if both added
       and deletedByLabel contain the same value, the value will be deleted.
       
      repeated .iotics.api.Value added = 1;
    • addAdded

      public Values.Builder addAdded(int index, Value value)
       added is the list of values to be added. Note that deletedByLabel takes precedence over this, i.e. if both added
       and deletedByLabel contain the same value, the value will be deleted.
       
      repeated .iotics.api.Value added = 1;
    • addAdded

      public Values.Builder addAdded(Value.Builder builderForValue)
       added is the list of values to be added. Note that deletedByLabel takes precedence over this, i.e. if both added
       and deletedByLabel contain the same value, the value will be deleted.
       
      repeated .iotics.api.Value added = 1;
    • addAdded

      public Values.Builder addAdded(int index, Value.Builder builderForValue)
       added is the list of values to be added. Note that deletedByLabel takes precedence over this, i.e. if both added
       and deletedByLabel contain the same value, the value will be deleted.
       
      repeated .iotics.api.Value added = 1;
    • addAllAdded

      public Values.Builder addAllAdded(Iterable<? extends Value> values)
       added is the list of values to be added. Note that deletedByLabel takes precedence over this, i.e. if both added
       and deletedByLabel contain the same value, the value will be deleted.
       
      repeated .iotics.api.Value added = 1;
    • clearAdded

      public Values.Builder clearAdded()
       added is the list of values to be added. Note that deletedByLabel takes precedence over this, i.e. if both added
       and deletedByLabel contain the same value, the value will be deleted.
       
      repeated .iotics.api.Value added = 1;
    • removeAdded

      public Values.Builder removeAdded(int index)
       added is the list of values to be added. Note that deletedByLabel takes precedence over this, i.e. if both added
       and deletedByLabel contain the same value, the value will be deleted.
       
      repeated .iotics.api.Value added = 1;
    • getAddedBuilder

      public Value.Builder getAddedBuilder(int index)
       added is the list of values to be added. Note that deletedByLabel takes precedence over this, i.e. if both added
       and deletedByLabel contain the same value, the value will be deleted.
       
      repeated .iotics.api.Value added = 1;
    • getAddedOrBuilder

      public ValueOrBuilder getAddedOrBuilder(int index)
       added is the list of values to be added. Note that deletedByLabel takes precedence over this, i.e. if both added
       and deletedByLabel contain the same value, the value will be deleted.
       
      repeated .iotics.api.Value added = 1;
      Specified by:
      getAddedOrBuilder in interface ValuesOrBuilder
    • getAddedOrBuilderList

      public List<? extends ValueOrBuilder> getAddedOrBuilderList()
       added is the list of values to be added. Note that deletedByLabel takes precedence over this, i.e. if both added
       and deletedByLabel contain the same value, the value will be deleted.
       
      repeated .iotics.api.Value added = 1;
      Specified by:
      getAddedOrBuilderList in interface ValuesOrBuilder
    • addAddedBuilder

      public Value.Builder addAddedBuilder()
       added is the list of values to be added. Note that deletedByLabel takes precedence over this, i.e. if both added
       and deletedByLabel contain the same value, the value will be deleted.
       
      repeated .iotics.api.Value added = 1;
    • addAddedBuilder

      public Value.Builder addAddedBuilder(int index)
       added is the list of values to be added. Note that deletedByLabel takes precedence over this, i.e. if both added
       and deletedByLabel contain the same value, the value will be deleted.
       
      repeated .iotics.api.Value added = 1;
    • getAddedBuilderList

      public List<Value.Builder> getAddedBuilderList()
       added is the list of values to be added. Note that deletedByLabel takes precedence over this, i.e. if both added
       and deletedByLabel contain the same value, the value will be deleted.
       
      repeated .iotics.api.Value added = 1;
    • getDeletedByLabelList

      public com.google.protobuf.ProtocolStringList getDeletedByLabelList()
       deletedByLabel is the list of labels of values to be deleted.
       
      repeated string deletedByLabel = 2;
      Specified by:
      getDeletedByLabelList in interface ValuesOrBuilder
      Returns:
      A list containing the deletedByLabel.
    • getDeletedByLabelCount

      public int getDeletedByLabelCount()
       deletedByLabel is the list of labels of values to be deleted.
       
      repeated string deletedByLabel = 2;
      Specified by:
      getDeletedByLabelCount in interface ValuesOrBuilder
      Returns:
      The count of deletedByLabel.
    • getDeletedByLabel

      public String getDeletedByLabel(int index)
       deletedByLabel is the list of labels of values to be deleted.
       
      repeated string deletedByLabel = 2;
      Specified by:
      getDeletedByLabel in interface ValuesOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The deletedByLabel at the given index.
    • getDeletedByLabelBytes

      public com.google.protobuf.ByteString getDeletedByLabelBytes(int index)
       deletedByLabel is the list of labels of values to be deleted.
       
      repeated string deletedByLabel = 2;
      Specified by:
      getDeletedByLabelBytes in interface ValuesOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the deletedByLabel at the given index.
    • setDeletedByLabel

      public Values.Builder setDeletedByLabel(int index, String value)
       deletedByLabel is the list of labels of values to be deleted.
       
      repeated string deletedByLabel = 2;
      Parameters:
      index - The index to set the value at.
      value - The deletedByLabel to set.
      Returns:
      This builder for chaining.
    • addDeletedByLabel

      public Values.Builder addDeletedByLabel(String value)
       deletedByLabel is the list of labels of values to be deleted.
       
      repeated string deletedByLabel = 2;
      Parameters:
      value - The deletedByLabel to add.
      Returns:
      This builder for chaining.
    • addAllDeletedByLabel

      public Values.Builder addAllDeletedByLabel(Iterable<String> values)
       deletedByLabel is the list of labels of values to be deleted.
       
      repeated string deletedByLabel = 2;
      Parameters:
      values - The deletedByLabel to add.
      Returns:
      This builder for chaining.
    • clearDeletedByLabel

      public Values.Builder clearDeletedByLabel()
       deletedByLabel is the list of labels of values to be deleted.
       
      repeated string deletedByLabel = 2;
      Returns:
      This builder for chaining.
    • addDeletedByLabelBytes

      public Values.Builder addDeletedByLabelBytes(com.google.protobuf.ByteString value)
       deletedByLabel is the list of labels of values to be deleted.
       
      repeated string deletedByLabel = 2;
      Parameters:
      value - The bytes of the deletedByLabel to add.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final Values.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<Values.Builder>
    • mergeUnknownFields

      public final Values.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<Values.Builder>