From: Moiz Raja
required string type = 1;
+ */
+ boolean hasType();
+
+ /**
+ * required string type = 1;
+ */
+ java.lang.String getType();
+
+ /**
+ * required string type = 1;
+ */
+ com.google.protobuf.ByteString
+ getTypeBytes();
+
+ // required string path = 2;
+
+ /**
+ * required string path = 2;
+ */
+ boolean hasPath();
+
+ /**
+ * required string path = 2;
+ */
+ java.lang.String getPath();
+
+ /**
+ * required string path = 2;
+ */
+ com.google.protobuf.ByteString
+ getPathBytes();
+
+ // optional .org.opendaylight.controller.mdsal.Node data = 3;
+
+ /**
+ * optional .org.opendaylight.controller.mdsal.Node data = 3;
+ */
+ boolean hasData();
+
+ /**
+ * optional .org.opendaylight.controller.mdsal.Node data = 3;
+ */
+ org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node getData();
+
+ /**
+ * optional .org.opendaylight.controller.mdsal.Node data = 3;
+ */
+ org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.NodeOrBuilder getDataOrBuilder();
+ }
+
+
+ /**
+ * Protobuf type {@code org.opendaylight.controller.mdsal.Modification}
+ */
+ public static final class Modification extends
+ com.google.protobuf.GeneratedMessage
+ implements ModificationOrBuilder {
+ // Use Modification.newBuilder() to construct.
+ private Modification(
+ com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ this.unknownFields = builder.getUnknownFields();
+ }
+
+ private Modification(boolean noInit) {
+ this.unknownFields =
+ com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+ }
+
+ private static final Modification defaultInstance;
+
+ public static Modification getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public Modification getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ private final com.google.protobuf.UnknownFieldSet unknownFields;
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private Modification(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ initFields();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ bitField0_ |= 0x00000001;
+ type_ = input.readBytes();
+ break;
+ }
+ case 18: {
+ bitField0_ |= 0x00000002;
+ path_ = input.readBytes();
+ break;
+ }
+ case 26: {
+ org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node.Builder
+ subBuilder = null;
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ subBuilder = data_.toBuilder();
+ }
+ data_ = input.readMessage(
+ org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node.PARSER,
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(data_);
+ data_ = subBuilder.buildPartial();
+ }
+ bitField0_ |= 0x00000004;
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.internal_static_org_opendaylight_controller_mdsal_Modification_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.internal_static_org_opendaylight_controller_mdsal_Modification_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.class,
+ org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.Builder.class);
+ }
+
+ public static com.google.protobuf.Parserrequired string type = 1;
+ */
+ public boolean hasType() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+
+ /**
+ * required string type = 1;
+ */
+ public java.lang.String getType() {
+ java.lang.Object ref = type_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ type_ = s;
+ }
+ return s;
+ }
+ }
+
+ /**
+ * required string type = 1;
+ */
+ public com.google.protobuf.ByteString
+ getTypeBytes() {
+ java.lang.Object ref = type_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ type_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ // required string path = 2;
+ public static final int PATH_FIELD_NUMBER = 2;
+ private java.lang.Object path_;
+
+ /**
+ * required string path = 2;
+ */
+ public boolean hasPath() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+
+ /**
+ * required string path = 2;
+ */
+ public java.lang.String getPath() {
+ java.lang.Object ref = path_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ path_ = s;
+ }
+ return s;
+ }
+ }
+
+ /**
+ * required string path = 2;
+ */
+ public com.google.protobuf.ByteString
+ getPathBytes() {
+ java.lang.Object ref = path_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ path_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ // optional .org.opendaylight.controller.mdsal.Node data = 3;
+ public static final int DATA_FIELD_NUMBER = 3;
+ private org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node
+ data_;
+
+ /**
+ * optional .org.opendaylight.controller.mdsal.Node data = 3;
+ */
+ public boolean hasData() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+
+ /**
+ * optional .org.opendaylight.controller.mdsal.Node data = 3;
+ */
+ public org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node getData() {
+ return data_;
+ }
+
+ /**
+ * optional .org.opendaylight.controller.mdsal.Node data = 3;
+ */
+ public org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.NodeOrBuilder getDataOrBuilder() {
+ return data_;
+ }
+
+ private void initFields() {
+ type_ = "";
+ path_ = "";
+ data_ =
+ org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node
+ .getDefaultInstance();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized != -1)
+ return isInitialized == 1;
+
+ if (!hasType()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!hasPath()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (hasData()) {
+ if (!getData().isInitialized()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ }
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeBytes(1, getTypeBytes());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeBytes(2, getPathBytes());
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ output.writeMessage(3, data_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(1, getTypeBytes());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(2, getPathBytes());
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, data_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+
+ @java.lang.Override
+ protected java.lang.Object writeReplace()
+ throws java.io.ObjectStreamException {
+ return super.writeReplace();
+ }
+
+ public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification parseFrom(
+ byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification parseFrom(
+ java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+
+ public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification parseDelimitedFrom(
+ java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+
+ public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+
+ public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+
+ public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() {
+ return Builder.create();
+ }
+
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder(
+ org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return newBuilder(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ * Protobuf type {@code org.opendaylight.controller.mdsal.Modification}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builderrequired string type = 1;
+ */
+ public boolean hasType() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+
+ /**
+ * required string type = 1;
+ */
+ public java.lang.String getType() {
+ java.lang.Object ref = type_;
+ if (!(ref instanceof java.lang.String)) {
+ java.lang.String s = ((com.google.protobuf.ByteString) ref)
+ .toStringUtf8();
+ type_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * required string type = 1;
+ */
+ public com.google.protobuf.ByteString
+ getTypeBytes() {
+ java.lang.Object ref = type_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ type_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * required string type = 1;
+ */
+ public Builder setType(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ type_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * required string type = 1;
+ */
+ public Builder clearType() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ type_ = getDefaultInstance().getType();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * required string type = 1;
+ */
+ public Builder setTypeBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ type_ = value;
+ onChanged();
+ return this;
+ }
+
+ // required string path = 2;
+ private java.lang.Object path_ = "";
+
+ /**
+ * required string path = 2;
+ */
+ public boolean hasPath() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+
+ /**
+ * required string path = 2;
+ */
+ public java.lang.String getPath() {
+ java.lang.Object ref = path_;
+ if (!(ref instanceof java.lang.String)) {
+ java.lang.String s = ((com.google.protobuf.ByteString) ref)
+ .toStringUtf8();
+ path_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ * required string path = 2;
+ */
+ public com.google.protobuf.ByteString
+ getPathBytes() {
+ java.lang.Object ref = path_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ path_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ * required string path = 2;
+ */
+ public Builder setPath(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ path_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * required string path = 2;
+ */
+ public Builder clearPath() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ path_ = getDefaultInstance().getPath();
+ onChanged();
+ return this;
+ }
+
+ /**
+ * required string path = 2;
+ */
+ public Builder setPathBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ path_ = value;
+ onChanged();
+ return this;
+ }
+
+ // optional .org.opendaylight.controller.mdsal.Node data = 3;
+ private org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node
+ data_ =
+ org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node
+ .getDefaultInstance();
+ private com.google.protobuf.SingleFieldBuilder<
+ org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node, org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node.Builder, org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.NodeOrBuilder>
+ dataBuilder_;
+
+ /**
+ * optional .org.opendaylight.controller.mdsal.Node data = 3;
+ */
+ public boolean hasData() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+
+ /**
+ * optional .org.opendaylight.controller.mdsal.Node data = 3;
+ */
+ public org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node getData() {
+ if (dataBuilder_ == null) {
+ return data_;
+ } else {
+ return dataBuilder_.getMessage();
+ }
+ }
+
+ /**
+ * optional .org.opendaylight.controller.mdsal.Node data = 3;
+ */
+ public Builder setData(
+ org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node value) {
+ if (dataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ data_ = value;
+ onChanged();
+ } else {
+ dataBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ return this;
+ }
+
+ /**
+ * optional .org.opendaylight.controller.mdsal.Node data = 3;
+ */
+ public Builder setData(
+ org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node.Builder builderForValue) {
+ if (dataBuilder_ == null) {
+ data_ = builderForValue.build();
+ onChanged();
+ } else {
+ dataBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ return this;
+ }
+
+ /**
+ * optional .org.opendaylight.controller.mdsal.Node data = 3;
+ */
+ public Builder mergeData(
+ org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node value) {
+ if (dataBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) == 0x00000004) &&
+ data_
+ != org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node
+ .getDefaultInstance()) {
+ data_ =
+ org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node
+ .newBuilder(data_).mergeFrom(value)
+ .buildPartial();
+ } else {
+ data_ = value;
+ }
+ onChanged();
+ } else {
+ dataBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000004;
+ return this;
+ }
+
+ /**
+ * optional .org.opendaylight.controller.mdsal.Node data = 3;
+ */
+ public Builder clearData() {
+ if (dataBuilder_ == null) {
+ data_ =
+ org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node
+ .getDefaultInstance();
+ onChanged();
+ } else {
+ dataBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000004);
+ return this;
+ }
+
+ /**
+ * optional .org.opendaylight.controller.mdsal.Node data = 3;
+ */
+ public org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node.Builder getDataBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getDataFieldBuilder().getBuilder();
+ }
+
+ /**
+ * optional .org.opendaylight.controller.mdsal.Node data = 3;
+ */
+ public org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.NodeOrBuilder getDataOrBuilder() {
+ if (dataBuilder_ != null) {
+ return dataBuilder_.getMessageOrBuilder();
+ } else {
+ return data_;
+ }
+ }
+
+ /**
+ * optional .org.opendaylight.controller.mdsal.Node data = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node, org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node.Builder, org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.NodeOrBuilder>
+ getDataFieldBuilder() {
+ if (dataBuilder_ == null) {
+ dataBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node, org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node.Builder, org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.NodeOrBuilder>(
+ data_,
+ getParentForChildren(),
+ isClean());
+ data_ = null;
+ }
+ return dataBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:org.opendaylight.controller.mdsal.Modification)
+ }
+
+
+ static {
+ defaultInstance = new Modification(true);
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:org.opendaylight.controller.mdsal.Modification)
+ }
+
+
+ public interface CompositeModificationOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+
+ // repeated .org.opendaylight.controller.mdsal.Modification modification = 1;
+
+ /**
+ * repeated .org.opendaylight.controller.mdsal.Modification modification = 1;
+ */
+ java.util.Listrepeated .org.opendaylight.controller.mdsal.Modification modification = 1;
+ */
+ org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification getModification(
+ int index);
+
+ /**
+ * repeated .org.opendaylight.controller.mdsal.Modification modification = 1;
+ */
+ int getModificationCount();
+
+ /**
+ * repeated .org.opendaylight.controller.mdsal.Modification modification = 1;
+ */
+ java.util.List extends org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.ModificationOrBuilder>
+ getModificationOrBuilderList();
+
+ /**
+ * repeated .org.opendaylight.controller.mdsal.Modification modification = 1;
+ */
+ org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.ModificationOrBuilder getModificationOrBuilder(
+ int index);
+ }
+
+
+ /**
+ * Protobuf type {@code org.opendaylight.controller.mdsal.CompositeModification}
+ */
+ public static final class CompositeModification extends
+ com.google.protobuf.GeneratedMessage
+ implements CompositeModificationOrBuilder {
+ // Use CompositeModification.newBuilder() to construct.
+ private CompositeModification(
+ com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ this.unknownFields = builder.getUnknownFields();
+ }
+
+ private CompositeModification(boolean noInit) {
+ this.unknownFields =
+ com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+ }
+
+ private static final CompositeModification defaultInstance;
+
+ public static CompositeModification getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public CompositeModification getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ private final com.google.protobuf.UnknownFieldSet unknownFields;
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private CompositeModification(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ initFields();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001)
+ == 0x00000001)) {
+ modification_ =
+ new java.util.ArrayListrepeated .org.opendaylight.controller.mdsal.Modification modification = 1;
+ */
+ public java.util.Listrepeated .org.opendaylight.controller.mdsal.Modification modification = 1;
+ */
+ public java.util.List extends org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.ModificationOrBuilder>
+ getModificationOrBuilderList() {
+ return modification_;
+ }
+
+ /**
+ * repeated .org.opendaylight.controller.mdsal.Modification modification = 1;
+ */
+ public int getModificationCount() {
+ return modification_.size();
+ }
+
+ /**
+ * repeated .org.opendaylight.controller.mdsal.Modification modification = 1;
+ */
+ public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification getModification(
+ int index) {
+ return modification_.get(index);
+ }
+
+ /**
+ * repeated .org.opendaylight.controller.mdsal.Modification modification = 1;
+ */
+ public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.ModificationOrBuilder getModificationOrBuilder(
+ int index) {
+ return modification_.get(index);
+ }
+
+ private void initFields() {
+ modification_ = java.util.Collections.emptyList();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized != -1)
+ return isInitialized == 1;
+
+ for (int i = 0; i < getModificationCount(); i++) {
+ if (!getModification(i).isInitialized()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ }
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ for (int i = 0; i < modification_.size(); i++) {
+ output.writeMessage(1, modification_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ for (int i = 0; i < modification_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, modification_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+
+ @java.lang.Override
+ protected java.lang.Object writeReplace()
+ throws java.io.ObjectStreamException {
+ return super.writeReplace();
+ }
+
+ public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseFrom(
+ byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseFrom(
+ java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+
+ public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseDelimitedFrom(
+ java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+
+ public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+
+ public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+
+ public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() {
+ return Builder.create();
+ }
+
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder(
+ org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return newBuilder(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ * Protobuf type {@code org.opendaylight.controller.mdsal.CompositeModification}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builderrepeated .org.opendaylight.controller.mdsal.Modification modification = 1;
+ */
+ public java.util.Listrepeated .org.opendaylight.controller.mdsal.Modification modification = 1;
+ */
+ public int getModificationCount() {
+ if (modificationBuilder_ == null) {
+ return modification_.size();
+ } else {
+ return modificationBuilder_.getCount();
+ }
+ }
+
+ /**
+ * repeated .org.opendaylight.controller.mdsal.Modification modification = 1;
+ */
+ public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification getModification(
+ int index) {
+ if (modificationBuilder_ == null) {
+ return modification_.get(index);
+ } else {
+ return modificationBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ * repeated .org.opendaylight.controller.mdsal.Modification modification = 1;
+ */
+ public Builder setModification(
+ int index,
+ org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification value) {
+ if (modificationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureModificationIsMutable();
+ modification_.set(index, value);
+ onChanged();
+ } else {
+ modificationBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ * repeated .org.opendaylight.controller.mdsal.Modification modification = 1;
+ */
+ public Builder setModification(
+ int index,
+ org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.Builder builderForValue) {
+ if (modificationBuilder_ == null) {
+ ensureModificationIsMutable();
+ modification_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ modificationBuilder_
+ .setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ * repeated .org.opendaylight.controller.mdsal.Modification modification = 1;
+ */
+ public Builder addModification(
+ org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification value) {
+ if (modificationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureModificationIsMutable();
+ modification_.add(value);
+ onChanged();
+ } else {
+ modificationBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ * repeated .org.opendaylight.controller.mdsal.Modification modification = 1;
+ */
+ public Builder addModification(
+ int index,
+ org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification value) {
+ if (modificationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureModificationIsMutable();
+ modification_.add(index, value);
+ onChanged();
+ } else {
+ modificationBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ * repeated .org.opendaylight.controller.mdsal.Modification modification = 1;
+ */
+ public Builder addModification(
+ org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.Builder builderForValue) {
+ if (modificationBuilder_ == null) {
+ ensureModificationIsMutable();
+ modification_.add(builderForValue.build());
+ onChanged();
+ } else {
+ modificationBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ * repeated .org.opendaylight.controller.mdsal.Modification modification = 1;
+ */
+ public Builder addModification(
+ int index,
+ org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.Builder builderForValue) {
+ if (modificationBuilder_ == null) {
+ ensureModificationIsMutable();
+ modification_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ modificationBuilder_
+ .addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ * repeated .org.opendaylight.controller.mdsal.Modification modification = 1;
+ */
+ public Builder addAllModification(
+ java.lang.Iterable extends org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification> values) {
+ if (modificationBuilder_ == null) {
+ ensureModificationIsMutable();
+ super.addAll(values, modification_);
+ onChanged();
+ } else {
+ modificationBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ * repeated .org.opendaylight.controller.mdsal.Modification modification = 1;
+ */
+ public Builder clearModification() {
+ if (modificationBuilder_ == null) {
+ modification_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ modificationBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ * repeated .org.opendaylight.controller.mdsal.Modification modification = 1;
+ */
+ public Builder removeModification(int index) {
+ if (modificationBuilder_ == null) {
+ ensureModificationIsMutable();
+ modification_.remove(index);
+ onChanged();
+ } else {
+ modificationBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ * repeated .org.opendaylight.controller.mdsal.Modification modification = 1;
+ */
+ public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.Builder getModificationBuilder(
+ int index) {
+ return getModificationFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ * repeated .org.opendaylight.controller.mdsal.Modification modification = 1;
+ */
+ public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.ModificationOrBuilder getModificationOrBuilder(
+ int index) {
+ if (modificationBuilder_ == null) {
+ return modification_.get(index);
+ } else {
+ return modificationBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ * repeated .org.opendaylight.controller.mdsal.Modification modification = 1;
+ */
+ public java.util.List extends org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.ModificationOrBuilder>
+ getModificationOrBuilderList() {
+ if (modificationBuilder_ != null) {
+ return modificationBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections
+ .unmodifiableList(modification_);
+ }
+ }
+
+ /**
+ * repeated .org.opendaylight.controller.mdsal.Modification modification = 1;
+ */
+ public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.Builder addModificationBuilder() {
+ return getModificationFieldBuilder().addBuilder(
+ org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification
+ .getDefaultInstance());
+ }
+
+ /**
+ * repeated .org.opendaylight.controller.mdsal.Modification modification = 1;
+ */
+ public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.Builder addModificationBuilder(
+ int index) {
+ return getModificationFieldBuilder().addBuilder(
+ index,
+ org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification
+ .getDefaultInstance());
+ }
+
+ /**
+ * repeated .org.opendaylight.controller.mdsal.Modification modification = 1;
+ */
+ public java.util.List