Class PropertyUpdate.Builder

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

public static final class PropertyUpdate.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PropertyUpdate.Builder> implements PropertyUpdateOrBuilder
 PropertyUpdate describes the update of a twin properties.
 Can be used to add, replace, or delete properties. The order of operations is:
 clearedAll (if True), deleted, deletedByKey, added.
 Note that internal properties (such as location) cannot be modified here.
 
Protobuf type iotics.api.PropertyUpdate
  • 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<PropertyUpdate.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public PropertyUpdate.Builder mergeFrom(PropertyUpdate other)
    • isInitialized

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

      public PropertyUpdate.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<PropertyUpdate.Builder>
      Throws:
      IOException
    • getClearedAll

      public boolean getClearedAll()
       Delete all properties currently set on the twin.
       
      bool clearedAll = 1;
      Specified by:
      getClearedAll in interface PropertyUpdateOrBuilder
      Returns:
      The clearedAll.
    • setClearedAll

      public PropertyUpdate.Builder setClearedAll(boolean value)
       Delete all properties currently set on the twin.
       
      bool clearedAll = 1;
      Parameters:
      value - The clearedAll to set.
      Returns:
      This builder for chaining.
    • clearClearedAll

      public PropertyUpdate.Builder clearClearedAll()
       Delete all properties currently set on the twin.
       
      bool clearedAll = 1;
      Returns:
      This builder for chaining.
    • getDeletedList

      public List<Property> getDeletedList()
       Delete specific exact properties (by key and value). This operation is ignored if clearAll is True.
       
      repeated .iotics.api.Property deleted = 2;
      Specified by:
      getDeletedList in interface PropertyUpdateOrBuilder
    • getDeletedCount

      public int getDeletedCount()
       Delete specific exact properties (by key and value). This operation is ignored if clearAll is True.
       
      repeated .iotics.api.Property deleted = 2;
      Specified by:
      getDeletedCount in interface PropertyUpdateOrBuilder
    • getDeleted

      public Property getDeleted(int index)
       Delete specific exact properties (by key and value). This operation is ignored if clearAll is True.
       
      repeated .iotics.api.Property deleted = 2;
      Specified by:
      getDeleted in interface PropertyUpdateOrBuilder
    • setDeleted

      public PropertyUpdate.Builder setDeleted(int index, Property value)
       Delete specific exact properties (by key and value). This operation is ignored if clearAll is True.
       
      repeated .iotics.api.Property deleted = 2;
    • setDeleted

      public PropertyUpdate.Builder setDeleted(int index, Property.Builder builderForValue)
       Delete specific exact properties (by key and value). This operation is ignored if clearAll is True.
       
      repeated .iotics.api.Property deleted = 2;
    • addDeleted

      public PropertyUpdate.Builder addDeleted(Property value)
       Delete specific exact properties (by key and value). This operation is ignored if clearAll is True.
       
      repeated .iotics.api.Property deleted = 2;
    • addDeleted

      public PropertyUpdate.Builder addDeleted(int index, Property value)
       Delete specific exact properties (by key and value). This operation is ignored if clearAll is True.
       
      repeated .iotics.api.Property deleted = 2;
    • addDeleted

      public PropertyUpdate.Builder addDeleted(Property.Builder builderForValue)
       Delete specific exact properties (by key and value). This operation is ignored if clearAll is True.
       
      repeated .iotics.api.Property deleted = 2;
    • addDeleted

      public PropertyUpdate.Builder addDeleted(int index, Property.Builder builderForValue)
       Delete specific exact properties (by key and value). This operation is ignored if clearAll is True.
       
      repeated .iotics.api.Property deleted = 2;
    • addAllDeleted

      public PropertyUpdate.Builder addAllDeleted(Iterable<? extends Property> values)
       Delete specific exact properties (by key and value). This operation is ignored if clearAll is True.
       
      repeated .iotics.api.Property deleted = 2;
    • clearDeleted

      public PropertyUpdate.Builder clearDeleted()
       Delete specific exact properties (by key and value). This operation is ignored if clearAll is True.
       
      repeated .iotics.api.Property deleted = 2;
    • removeDeleted

      public PropertyUpdate.Builder removeDeleted(int index)
       Delete specific exact properties (by key and value). This operation is ignored if clearAll is True.
       
      repeated .iotics.api.Property deleted = 2;
    • getDeletedBuilder

      public Property.Builder getDeletedBuilder(int index)
       Delete specific exact properties (by key and value). This operation is ignored if clearAll is True.
       
      repeated .iotics.api.Property deleted = 2;
    • getDeletedOrBuilder

      public PropertyOrBuilder getDeletedOrBuilder(int index)
       Delete specific exact properties (by key and value). This operation is ignored if clearAll is True.
       
      repeated .iotics.api.Property deleted = 2;
      Specified by:
      getDeletedOrBuilder in interface PropertyUpdateOrBuilder
    • getDeletedOrBuilderList

      public List<? extends PropertyOrBuilder> getDeletedOrBuilderList()
       Delete specific exact properties (by key and value). This operation is ignored if clearAll is True.
       
      repeated .iotics.api.Property deleted = 2;
      Specified by:
      getDeletedOrBuilderList in interface PropertyUpdateOrBuilder
    • addDeletedBuilder

      public Property.Builder addDeletedBuilder()
       Delete specific exact properties (by key and value). This operation is ignored if clearAll is True.
       
      repeated .iotics.api.Property deleted = 2;
    • addDeletedBuilder

      public Property.Builder addDeletedBuilder(int index)
       Delete specific exact properties (by key and value). This operation is ignored if clearAll is True.
       
      repeated .iotics.api.Property deleted = 2;
    • getDeletedBuilderList

      public List<Property.Builder> getDeletedBuilderList()
       Delete specific exact properties (by key and value). This operation is ignored if clearAll is True.
       
      repeated .iotics.api.Property deleted = 2;
    • getDeletedByKeyList

      public com.google.protobuf.ProtocolStringList getDeletedByKeyList()
       Delete any properties with the given keys (predicates). This operation is ignored if clearAll is True.
       
      repeated string deletedByKey = 3;
      Specified by:
      getDeletedByKeyList in interface PropertyUpdateOrBuilder
      Returns:
      A list containing the deletedByKey.
    • getDeletedByKeyCount

      public int getDeletedByKeyCount()
       Delete any properties with the given keys (predicates). This operation is ignored if clearAll is True.
       
      repeated string deletedByKey = 3;
      Specified by:
      getDeletedByKeyCount in interface PropertyUpdateOrBuilder
      Returns:
      The count of deletedByKey.
    • getDeletedByKey

      public String getDeletedByKey(int index)
       Delete any properties with the given keys (predicates). This operation is ignored if clearAll is True.
       
      repeated string deletedByKey = 3;
      Specified by:
      getDeletedByKey in interface PropertyUpdateOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The deletedByKey at the given index.
    • getDeletedByKeyBytes

      public com.google.protobuf.ByteString getDeletedByKeyBytes(int index)
       Delete any properties with the given keys (predicates). This operation is ignored if clearAll is True.
       
      repeated string deletedByKey = 3;
      Specified by:
      getDeletedByKeyBytes in interface PropertyUpdateOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the deletedByKey at the given index.
    • setDeletedByKey

      public PropertyUpdate.Builder setDeletedByKey(int index, String value)
       Delete any properties with the given keys (predicates). This operation is ignored if clearAll is True.
       
      repeated string deletedByKey = 3;
      Parameters:
      index - The index to set the value at.
      value - The deletedByKey to set.
      Returns:
      This builder for chaining.
    • addDeletedByKey

      public PropertyUpdate.Builder addDeletedByKey(String value)
       Delete any properties with the given keys (predicates). This operation is ignored if clearAll is True.
       
      repeated string deletedByKey = 3;
      Parameters:
      value - The deletedByKey to add.
      Returns:
      This builder for chaining.
    • addAllDeletedByKey

      public PropertyUpdate.Builder addAllDeletedByKey(Iterable<String> values)
       Delete any properties with the given keys (predicates). This operation is ignored if clearAll is True.
       
      repeated string deletedByKey = 3;
      Parameters:
      values - The deletedByKey to add.
      Returns:
      This builder for chaining.
    • clearDeletedByKey

      public PropertyUpdate.Builder clearDeletedByKey()
       Delete any properties with the given keys (predicates). This operation is ignored if clearAll is True.
       
      repeated string deletedByKey = 3;
      Returns:
      This builder for chaining.
    • addDeletedByKeyBytes

      public PropertyUpdate.Builder addDeletedByKeyBytes(com.google.protobuf.ByteString value)
       Delete any properties with the given keys (predicates). This operation is ignored if clearAll is True.
       
      repeated string deletedByKey = 3;
      Parameters:
      value - The bytes of the deletedByKey to add.
      Returns:
      This builder for chaining.
    • getAddedList

      public List<Property> getAddedList()
       Adds the given properties
       
      repeated .iotics.api.Property added = 4;
      Specified by:
      getAddedList in interface PropertyUpdateOrBuilder
    • getAddedCount

      public int getAddedCount()
       Adds the given properties
       
      repeated .iotics.api.Property added = 4;
      Specified by:
      getAddedCount in interface PropertyUpdateOrBuilder
    • getAdded

      public Property getAdded(int index)
       Adds the given properties
       
      repeated .iotics.api.Property added = 4;
      Specified by:
      getAdded in interface PropertyUpdateOrBuilder
    • setAdded

      public PropertyUpdate.Builder setAdded(int index, Property value)
       Adds the given properties
       
      repeated .iotics.api.Property added = 4;
    • setAdded

      public PropertyUpdate.Builder setAdded(int index, Property.Builder builderForValue)
       Adds the given properties
       
      repeated .iotics.api.Property added = 4;
    • addAdded

      public PropertyUpdate.Builder addAdded(Property value)
       Adds the given properties
       
      repeated .iotics.api.Property added = 4;
    • addAdded

      public PropertyUpdate.Builder addAdded(int index, Property value)
       Adds the given properties
       
      repeated .iotics.api.Property added = 4;
    • addAdded

      public PropertyUpdate.Builder addAdded(Property.Builder builderForValue)
       Adds the given properties
       
      repeated .iotics.api.Property added = 4;
    • addAdded

      public PropertyUpdate.Builder addAdded(int index, Property.Builder builderForValue)
       Adds the given properties
       
      repeated .iotics.api.Property added = 4;
    • addAllAdded

      public PropertyUpdate.Builder addAllAdded(Iterable<? extends Property> values)
       Adds the given properties
       
      repeated .iotics.api.Property added = 4;
    • clearAdded

      public PropertyUpdate.Builder clearAdded()
       Adds the given properties
       
      repeated .iotics.api.Property added = 4;
    • removeAdded

      public PropertyUpdate.Builder removeAdded(int index)
       Adds the given properties
       
      repeated .iotics.api.Property added = 4;
    • getAddedBuilder

      public Property.Builder getAddedBuilder(int index)
       Adds the given properties
       
      repeated .iotics.api.Property added = 4;
    • getAddedOrBuilder

      public PropertyOrBuilder getAddedOrBuilder(int index)
       Adds the given properties
       
      repeated .iotics.api.Property added = 4;
      Specified by:
      getAddedOrBuilder in interface PropertyUpdateOrBuilder
    • getAddedOrBuilderList

      public List<? extends PropertyOrBuilder> getAddedOrBuilderList()
       Adds the given properties
       
      repeated .iotics.api.Property added = 4;
      Specified by:
      getAddedOrBuilderList in interface PropertyUpdateOrBuilder
    • addAddedBuilder

      public Property.Builder addAddedBuilder()
       Adds the given properties
       
      repeated .iotics.api.Property added = 4;
    • addAddedBuilder

      public Property.Builder addAddedBuilder(int index)
       Adds the given properties
       
      repeated .iotics.api.Property added = 4;
    • getAddedBuilderList

      public List<Property.Builder> getAddedBuilderList()
       Adds the given properties
       
      repeated .iotics.api.Property added = 4;
    • setUnknownFields

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

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