Package com.iotics.api
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 Summary
Modifier and TypeMethodDescriptionAdds the given propertiesaddAdded(int index, Property.Builder builderForValue) Adds the given propertiesAdds the given propertiesaddAdded(Property.Builder builderForValue) Adds the given propertiesAdds the given propertiesaddAddedBuilder(int index) Adds the given propertiesaddAllAdded(Iterable<? extends Property> values) Adds the given propertiesaddAllDeleted(Iterable<? extends Property> values) Delete specific exact properties (by key and value).addAllDeletedByKey(Iterable<String> values) Delete any properties with the given keys (predicates).addDeleted(int index, Property value) Delete specific exact properties (by key and value).addDeleted(int index, Property.Builder builderForValue) Delete specific exact properties (by key and value).addDeleted(Property value) Delete specific exact properties (by key and value).addDeleted(Property.Builder builderForValue) Delete specific exact properties (by key and value).Delete specific exact properties (by key and value).addDeletedBuilder(int index) Delete specific exact properties (by key and value).addDeletedByKey(String value) Delete any properties with the given keys (predicates).addDeletedByKeyBytes(com.google.protobuf.ByteString value) Delete any properties with the given keys (predicates).addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Adds the given propertiesDelete all properties currently set on the twin.Delete specific exact properties (by key and value).Delete any properties with the given keys (predicates).clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()getAdded(int index) Adds the given propertiesgetAddedBuilder(int index) Adds the given propertiesAdds the given propertiesintAdds the given propertiesAdds the given propertiesgetAddedOrBuilder(int index) Adds the given propertiesList<? extends PropertyOrBuilder>Adds the given propertiesbooleanDelete all properties currently set on the twin.getDeleted(int index) Delete specific exact properties (by key and value).getDeletedBuilder(int index) Delete specific exact properties (by key and value).Delete specific exact properties (by key and value).getDeletedByKey(int index) Delete any properties with the given keys (predicates).com.google.protobuf.ByteStringgetDeletedByKeyBytes(int index) Delete any properties with the given keys (predicates).intDelete any properties with the given keys (predicates).com.google.protobuf.ProtocolStringListDelete any properties with the given keys (predicates).intDelete specific exact properties (by key and value).Delete specific exact properties (by key and value).getDeletedOrBuilder(int index) Delete specific exact properties (by key and value).List<? extends PropertyOrBuilder>Delete specific exact properties (by key and value).static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(PropertyUpdate other) final PropertyUpdate.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeAdded(int index) Adds the given propertiesremoveDeleted(int index) Delete specific exact properties (by key and value).Adds the given propertiessetAdded(int index, Property.Builder builderForValue) Adds the given propertiessetClearedAll(boolean value) Delete all properties currently set on the twin.setDeleted(int index, Property value) Delete specific exact properties (by key and value).setDeleted(int index, Property.Builder builderForValue) Delete specific exact properties (by key and value).setDeletedByKey(int index, String value) Delete any properties with the given keys (predicates).setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final PropertyUpdate.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<PropertyUpdate.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<PropertyUpdate.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<PropertyUpdate.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<PropertyUpdate.Builder>
-
setField
public PropertyUpdate.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<PropertyUpdate.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PropertyUpdate.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<PropertyUpdate.Builder>
-
setRepeatedField
public PropertyUpdate.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<PropertyUpdate.Builder>
-
addRepeatedField
public PropertyUpdate.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<PropertyUpdate.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PropertyUpdate.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getClearedAllin interfacePropertyUpdateOrBuilder- Returns:
- The clearedAll.
-
setClearedAll
Delete all properties currently set on the twin.
bool clearedAll = 1;- Parameters:
value- The clearedAll to set.- Returns:
- This builder for chaining.
-
clearClearedAll
Delete all properties currently set on the twin.
bool clearedAll = 1;- Returns:
- This builder for chaining.
-
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:
getDeletedListin interfacePropertyUpdateOrBuilder
-
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:
getDeletedCountin interfacePropertyUpdateOrBuilder
-
getDeleted
Delete specific exact properties (by key and value). This operation is ignored if clearAll is True.
repeated .iotics.api.Property deleted = 2;- Specified by:
getDeletedin interfacePropertyUpdateOrBuilder
-
setDeleted
Delete specific exact properties (by key and value). This operation is ignored if clearAll is True.
repeated .iotics.api.Property deleted = 2; -
setDeleted
Delete specific exact properties (by key and value). This operation is ignored if clearAll is True.
repeated .iotics.api.Property deleted = 2; -
addDeleted
Delete specific exact properties (by key and value). This operation is ignored if clearAll is True.
repeated .iotics.api.Property deleted = 2; -
addDeleted
Delete specific exact properties (by key and value). This operation is ignored if clearAll is True.
repeated .iotics.api.Property deleted = 2; -
addDeleted
Delete specific exact properties (by key and value). This operation is ignored if clearAll is True.
repeated .iotics.api.Property deleted = 2; -
addDeleted
Delete specific exact properties (by key and value). This operation is ignored if clearAll is True.
repeated .iotics.api.Property deleted = 2; -
addAllDeleted
Delete specific exact properties (by key and value). This operation is ignored if clearAll is True.
repeated .iotics.api.Property deleted = 2; -
clearDeleted
Delete specific exact properties (by key and value). This operation is ignored if clearAll is True.
repeated .iotics.api.Property deleted = 2; -
removeDeleted
Delete specific exact properties (by key and value). This operation is ignored if clearAll is True.
repeated .iotics.api.Property deleted = 2; -
getDeletedBuilder
Delete specific exact properties (by key and value). This operation is ignored if clearAll is True.
repeated .iotics.api.Property deleted = 2; -
getDeletedOrBuilder
Delete specific exact properties (by key and value). This operation is ignored if clearAll is True.
repeated .iotics.api.Property deleted = 2;- Specified by:
getDeletedOrBuilderin interfacePropertyUpdateOrBuilder
-
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:
getDeletedOrBuilderListin interfacePropertyUpdateOrBuilder
-
addDeletedBuilder
Delete specific exact properties (by key and value). This operation is ignored if clearAll is True.
repeated .iotics.api.Property deleted = 2; -
addDeletedBuilder
Delete specific exact properties (by key and value). This operation is ignored if clearAll is True.
repeated .iotics.api.Property deleted = 2; -
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:
getDeletedByKeyListin interfacePropertyUpdateOrBuilder- 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:
getDeletedByKeyCountin interfacePropertyUpdateOrBuilder- Returns:
- The count of deletedByKey.
-
getDeletedByKey
Delete any properties with the given keys (predicates). This operation is ignored if clearAll is True.
repeated string deletedByKey = 3;- Specified by:
getDeletedByKeyin interfacePropertyUpdateOrBuilder- 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:
getDeletedByKeyBytesin interfacePropertyUpdateOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the deletedByKey at the given index.
-
setDeletedByKey
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
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
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
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
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
Adds the given properties
repeated .iotics.api.Property added = 4;- Specified by:
getAddedListin interfacePropertyUpdateOrBuilder
-
getAddedCount
public int getAddedCount()Adds the given properties
repeated .iotics.api.Property added = 4;- Specified by:
getAddedCountin interfacePropertyUpdateOrBuilder
-
getAdded
Adds the given properties
repeated .iotics.api.Property added = 4;- Specified by:
getAddedin interfacePropertyUpdateOrBuilder
-
setAdded
Adds the given properties
repeated .iotics.api.Property added = 4; -
setAdded
Adds the given properties
repeated .iotics.api.Property added = 4; -
addAdded
Adds the given properties
repeated .iotics.api.Property added = 4; -
addAdded
Adds the given properties
repeated .iotics.api.Property added = 4; -
addAdded
Adds the given properties
repeated .iotics.api.Property added = 4; -
addAdded
Adds the given properties
repeated .iotics.api.Property added = 4; -
addAllAdded
Adds the given properties
repeated .iotics.api.Property added = 4; -
clearAdded
Adds the given properties
repeated .iotics.api.Property added = 4; -
removeAdded
Adds the given properties
repeated .iotics.api.Property added = 4; -
getAddedBuilder
Adds the given properties
repeated .iotics.api.Property added = 4; -
getAddedOrBuilder
Adds the given properties
repeated .iotics.api.Property added = 4;- Specified by:
getAddedOrBuilderin interfacePropertyUpdateOrBuilder
-
getAddedOrBuilderList
Adds the given properties
repeated .iotics.api.Property added = 4;- Specified by:
getAddedOrBuilderListin interfacePropertyUpdateOrBuilder
-
addAddedBuilder
Adds the given properties
repeated .iotics.api.Property added = 4; -
addAddedBuilder
Adds the given properties
repeated .iotics.api.Property added = 4; -
getAddedBuilderList
Adds the given properties
repeated .iotics.api.Property added = 4; -
setUnknownFields
public final PropertyUpdate.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PropertyUpdate.Builder>
-
mergeUnknownFields
public final PropertyUpdate.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PropertyUpdate.Builder>
-