088630aa32167e648db660196345c59db21d4923
[controller.git] / opendaylight / md-sal / sal-protocolbuffer-encoding / src / main / java / org / opendaylight / controller / protobuff / messages / persistent / PersistentMessages.java
1 /*
2  *
3  *  Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
4  *
5  *  This program and the accompanying materials are made available under the
6  *  terms of the Eclipse Public License v1.0 which accompanies this distribution,
7  *  and is available at http://www.eclipse.org/legal/epl-v10.html
8  *
9  */
10
11 // Generated by the protocol buffer compiler.  DO NOT EDIT!
12 // source: Persistent.proto
13
14 package org.opendaylight.controller.protobuff.messages.persistent;
15
16 public final class PersistentMessages {
17   private PersistentMessages() {}
18   public static void registerAllExtensions(
19       com.google.protobuf.ExtensionRegistry registry) {
20   }
21   public interface ModificationOrBuilder
22       extends com.google.protobuf.MessageOrBuilder {
23
24     // required string type = 1;
25     /**
26      * <code>required string type = 1;</code>
27      */
28     boolean hasType();
29     /**
30      * <code>required string type = 1;</code>
31      */
32     java.lang.String getType();
33     /**
34      * <code>required string type = 1;</code>
35      */
36     com.google.protobuf.ByteString
37         getTypeBytes();
38
39     // required .org.opendaylight.controller.mdsal.InstanceIdentifier path = 2;
40     /**
41      * <code>required .org.opendaylight.controller.mdsal.InstanceIdentifier path = 2;</code>
42      */
43     boolean hasPath();
44     /**
45      * <code>required .org.opendaylight.controller.mdsal.InstanceIdentifier path = 2;</code>
46      */
47     org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier getPath();
48     /**
49      * <code>required .org.opendaylight.controller.mdsal.InstanceIdentifier path = 2;</code>
50      */
51     org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifierOrBuilder getPathOrBuilder();
52
53     // optional .org.opendaylight.controller.mdsal.Node data = 3;
54     /**
55      * <code>optional .org.opendaylight.controller.mdsal.Node data = 3;</code>
56      */
57     boolean hasData();
58     /**
59      * <code>optional .org.opendaylight.controller.mdsal.Node data = 3;</code>
60      */
61     org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node getData();
62     /**
63      * <code>optional .org.opendaylight.controller.mdsal.Node data = 3;</code>
64      */
65     org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.NodeOrBuilder getDataOrBuilder();
66   }
67   /**
68    * Protobuf type {@code org.opendaylight.controller.mdsal.Modification}
69    */
70   public static final class Modification extends
71       com.google.protobuf.GeneratedMessage
72       implements ModificationOrBuilder {
73     // Use Modification.newBuilder() to construct.
74     private Modification(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
75       super(builder);
76       this.unknownFields = builder.getUnknownFields();
77     }
78     private Modification(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
79
80     private static final Modification defaultInstance;
81     public static Modification getDefaultInstance() {
82       return defaultInstance;
83     }
84
85     public Modification getDefaultInstanceForType() {
86       return defaultInstance;
87     }
88
89     private final com.google.protobuf.UnknownFieldSet unknownFields;
90     @java.lang.Override
91     public final com.google.protobuf.UnknownFieldSet
92         getUnknownFields() {
93       return this.unknownFields;
94     }
95     private Modification(
96         com.google.protobuf.CodedInputStream input,
97         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
98         throws com.google.protobuf.InvalidProtocolBufferException {
99       initFields();
100       int mutable_bitField0_ = 0;
101       com.google.protobuf.UnknownFieldSet.Builder unknownFields =
102           com.google.protobuf.UnknownFieldSet.newBuilder();
103       try {
104         boolean done = false;
105         while (!done) {
106           int tag = input.readTag();
107           switch (tag) {
108             case 0:
109               done = true;
110               break;
111             default: {
112               if (!parseUnknownField(input, unknownFields,
113                                      extensionRegistry, tag)) {
114                 done = true;
115               }
116               break;
117             }
118             case 10: {
119               bitField0_ |= 0x00000001;
120               type_ = input.readBytes();
121               break;
122             }
123             case 18: {
124               org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.Builder subBuilder = null;
125               if (((bitField0_ & 0x00000002) == 0x00000002)) {
126                 subBuilder = path_.toBuilder();
127               }
128               path_ = input.readMessage(org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.PARSER, extensionRegistry);
129               if (subBuilder != null) {
130                 subBuilder.mergeFrom(path_);
131                 path_ = subBuilder.buildPartial();
132               }
133               bitField0_ |= 0x00000002;
134               break;
135             }
136             case 26: {
137               org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node.Builder subBuilder = null;
138               if (((bitField0_ & 0x00000004) == 0x00000004)) {
139                 subBuilder = data_.toBuilder();
140               }
141               data_ = input.readMessage(org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node.PARSER, extensionRegistry);
142               if (subBuilder != null) {
143                 subBuilder.mergeFrom(data_);
144                 data_ = subBuilder.buildPartial();
145               }
146               bitField0_ |= 0x00000004;
147               break;
148             }
149           }
150         }
151       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
152         throw e.setUnfinishedMessage(this);
153       } catch (java.io.IOException e) {
154         throw new com.google.protobuf.InvalidProtocolBufferException(
155             e.getMessage()).setUnfinishedMessage(this);
156       } finally {
157         this.unknownFields = unknownFields.build();
158         makeExtensionsImmutable();
159       }
160     }
161     public static final com.google.protobuf.Descriptors.Descriptor
162         getDescriptor() {
163       return org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.internal_static_org_opendaylight_controller_mdsal_Modification_descriptor;
164     }
165
166     protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
167         internalGetFieldAccessorTable() {
168       return org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.internal_static_org_opendaylight_controller_mdsal_Modification_fieldAccessorTable
169           .ensureFieldAccessorsInitialized(
170               org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.class, org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.Builder.class);
171     }
172
173     public static com.google.protobuf.Parser<Modification> PARSER =
174         new com.google.protobuf.AbstractParser<Modification>() {
175       public Modification parsePartialFrom(
176           com.google.protobuf.CodedInputStream input,
177           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
178           throws com.google.protobuf.InvalidProtocolBufferException {
179         return new Modification(input, extensionRegistry);
180       }
181     };
182
183     @java.lang.Override
184     public com.google.protobuf.Parser<Modification> getParserForType() {
185       return PARSER;
186     }
187
188     private int bitField0_;
189     // required string type = 1;
190     public static final int TYPE_FIELD_NUMBER = 1;
191     private java.lang.Object type_;
192     /**
193      * <code>required string type = 1;</code>
194      */
195     public boolean hasType() {
196       return ((bitField0_ & 0x00000001) == 0x00000001);
197     }
198     /**
199      * <code>required string type = 1;</code>
200      */
201     public java.lang.String getType() {
202       java.lang.Object ref = type_;
203       if (ref instanceof java.lang.String) {
204         return (java.lang.String) ref;
205       } else {
206         com.google.protobuf.ByteString bs =
207             (com.google.protobuf.ByteString) ref;
208         java.lang.String s = bs.toStringUtf8();
209         if (bs.isValidUtf8()) {
210           type_ = s;
211         }
212         return s;
213       }
214     }
215     /**
216      * <code>required string type = 1;</code>
217      */
218     public com.google.protobuf.ByteString
219         getTypeBytes() {
220       java.lang.Object ref = type_;
221       if (ref instanceof java.lang.String) {
222         com.google.protobuf.ByteString b =
223             com.google.protobuf.ByteString.copyFromUtf8(
224                 (java.lang.String) ref);
225         type_ = b;
226         return b;
227       } else {
228         return (com.google.protobuf.ByteString) ref;
229       }
230     }
231
232     // required .org.opendaylight.controller.mdsal.InstanceIdentifier path = 2;
233     public static final int PATH_FIELD_NUMBER = 2;
234     private org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier path_;
235     /**
236      * <code>required .org.opendaylight.controller.mdsal.InstanceIdentifier path = 2;</code>
237      */
238     public boolean hasPath() {
239       return ((bitField0_ & 0x00000002) == 0x00000002);
240     }
241     /**
242      * <code>required .org.opendaylight.controller.mdsal.InstanceIdentifier path = 2;</code>
243      */
244     public org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier getPath() {
245       return path_;
246     }
247     /**
248      * <code>required .org.opendaylight.controller.mdsal.InstanceIdentifier path = 2;</code>
249      */
250     public org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifierOrBuilder getPathOrBuilder() {
251       return path_;
252     }
253
254     // optional .org.opendaylight.controller.mdsal.Node data = 3;
255     public static final int DATA_FIELD_NUMBER = 3;
256     private org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node data_;
257     /**
258      * <code>optional .org.opendaylight.controller.mdsal.Node data = 3;</code>
259      */
260     public boolean hasData() {
261       return ((bitField0_ & 0x00000004) == 0x00000004);
262     }
263     /**
264      * <code>optional .org.opendaylight.controller.mdsal.Node data = 3;</code>
265      */
266     public org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node getData() {
267       return data_;
268     }
269     /**
270      * <code>optional .org.opendaylight.controller.mdsal.Node data = 3;</code>
271      */
272     public org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.NodeOrBuilder getDataOrBuilder() {
273       return data_;
274     }
275
276     private void initFields() {
277       type_ = "";
278       path_ = org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.getDefaultInstance();
279       data_ = org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node.getDefaultInstance();
280     }
281     private byte memoizedIsInitialized = -1;
282     public final boolean isInitialized() {
283       byte isInitialized = memoizedIsInitialized;
284       if (isInitialized != -1) return isInitialized == 1;
285
286       if (!hasType()) {
287         memoizedIsInitialized = 0;
288         return false;
289       }
290       if (!hasPath()) {
291         memoizedIsInitialized = 0;
292         return false;
293       }
294       if (!getPath().isInitialized()) {
295         memoizedIsInitialized = 0;
296         return false;
297       }
298       if (hasData()) {
299         if (!getData().isInitialized()) {
300           memoizedIsInitialized = 0;
301           return false;
302         }
303       }
304       memoizedIsInitialized = 1;
305       return true;
306     }
307
308     public void writeTo(com.google.protobuf.CodedOutputStream output)
309                         throws java.io.IOException {
310       getSerializedSize();
311       if (((bitField0_ & 0x00000001) == 0x00000001)) {
312         output.writeBytes(1, getTypeBytes());
313       }
314       if (((bitField0_ & 0x00000002) == 0x00000002)) {
315         output.writeMessage(2, path_);
316       }
317       if (((bitField0_ & 0x00000004) == 0x00000004)) {
318         output.writeMessage(3, data_);
319       }
320       getUnknownFields().writeTo(output);
321     }
322
323     private int memoizedSerializedSize = -1;
324     public int getSerializedSize() {
325       int size = memoizedSerializedSize;
326       if (size != -1) return size;
327
328       size = 0;
329       if (((bitField0_ & 0x00000001) == 0x00000001)) {
330         size += com.google.protobuf.CodedOutputStream
331           .computeBytesSize(1, getTypeBytes());
332       }
333       if (((bitField0_ & 0x00000002) == 0x00000002)) {
334         size += com.google.protobuf.CodedOutputStream
335           .computeMessageSize(2, path_);
336       }
337       if (((bitField0_ & 0x00000004) == 0x00000004)) {
338         size += com.google.protobuf.CodedOutputStream
339           .computeMessageSize(3, data_);
340       }
341       size += getUnknownFields().getSerializedSize();
342       memoizedSerializedSize = size;
343       return size;
344     }
345
346     private static final long serialVersionUID = 0L;
347     @java.lang.Override
348     protected java.lang.Object writeReplace()
349         throws java.io.ObjectStreamException {
350       return super.writeReplace();
351     }
352
353     public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification parseFrom(
354         com.google.protobuf.ByteString data)
355         throws com.google.protobuf.InvalidProtocolBufferException {
356       return PARSER.parseFrom(data);
357     }
358     public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification parseFrom(
359         com.google.protobuf.ByteString data,
360         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
361         throws com.google.protobuf.InvalidProtocolBufferException {
362       return PARSER.parseFrom(data, extensionRegistry);
363     }
364     public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification parseFrom(byte[] data)
365         throws com.google.protobuf.InvalidProtocolBufferException {
366       return PARSER.parseFrom(data);
367     }
368     public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification parseFrom(
369         byte[] data,
370         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
371         throws com.google.protobuf.InvalidProtocolBufferException {
372       return PARSER.parseFrom(data, extensionRegistry);
373     }
374     public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification parseFrom(java.io.InputStream input)
375         throws java.io.IOException {
376       return PARSER.parseFrom(input);
377     }
378     public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification parseFrom(
379         java.io.InputStream input,
380         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
381         throws java.io.IOException {
382       return PARSER.parseFrom(input, extensionRegistry);
383     }
384     public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification parseDelimitedFrom(java.io.InputStream input)
385         throws java.io.IOException {
386       return PARSER.parseDelimitedFrom(input);
387     }
388     public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification parseDelimitedFrom(
389         java.io.InputStream input,
390         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
391         throws java.io.IOException {
392       return PARSER.parseDelimitedFrom(input, extensionRegistry);
393     }
394     public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification parseFrom(
395         com.google.protobuf.CodedInputStream input)
396         throws java.io.IOException {
397       return PARSER.parseFrom(input);
398     }
399     public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification parseFrom(
400         com.google.protobuf.CodedInputStream input,
401         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
402         throws java.io.IOException {
403       return PARSER.parseFrom(input, extensionRegistry);
404     }
405
406     public static Builder newBuilder() { return Builder.create(); }
407     public Builder newBuilderForType() { return newBuilder(); }
408     public static Builder newBuilder(org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification prototype) {
409       return newBuilder().mergeFrom(prototype);
410     }
411     public Builder toBuilder() { return newBuilder(this); }
412
413     @java.lang.Override
414     protected Builder newBuilderForType(
415         com.google.protobuf.GeneratedMessage.BuilderParent parent) {
416       Builder builder = new Builder(parent);
417       return builder;
418     }
419     /**
420      * Protobuf type {@code org.opendaylight.controller.mdsal.Modification}
421      */
422     public static final class Builder extends
423         com.google.protobuf.GeneratedMessage.Builder<Builder>
424        implements org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.ModificationOrBuilder {
425       public static final com.google.protobuf.Descriptors.Descriptor
426           getDescriptor() {
427         return org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.internal_static_org_opendaylight_controller_mdsal_Modification_descriptor;
428       }
429
430       protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
431           internalGetFieldAccessorTable() {
432         return org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.internal_static_org_opendaylight_controller_mdsal_Modification_fieldAccessorTable
433             .ensureFieldAccessorsInitialized(
434                 org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.class, org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.Builder.class);
435       }
436
437       // Construct using org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.newBuilder()
438       private Builder() {
439         maybeForceBuilderInitialization();
440       }
441
442       private Builder(
443           com.google.protobuf.GeneratedMessage.BuilderParent parent) {
444         super(parent);
445         maybeForceBuilderInitialization();
446       }
447       private void maybeForceBuilderInitialization() {
448         if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
449           getPathFieldBuilder();
450           getDataFieldBuilder();
451         }
452       }
453       private static Builder create() {
454         return new Builder();
455       }
456
457       public Builder clear() {
458         super.clear();
459         type_ = "";
460         bitField0_ = (bitField0_ & ~0x00000001);
461         if (pathBuilder_ == null) {
462           path_ = org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.getDefaultInstance();
463         } else {
464           pathBuilder_.clear();
465         }
466         bitField0_ = (bitField0_ & ~0x00000002);
467         if (dataBuilder_ == null) {
468           data_ = org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node.getDefaultInstance();
469         } else {
470           dataBuilder_.clear();
471         }
472         bitField0_ = (bitField0_ & ~0x00000004);
473         return this;
474       }
475
476       public Builder clone() {
477         return create().mergeFrom(buildPartial());
478       }
479
480       public com.google.protobuf.Descriptors.Descriptor
481           getDescriptorForType() {
482         return org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.internal_static_org_opendaylight_controller_mdsal_Modification_descriptor;
483       }
484
485       public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification getDefaultInstanceForType() {
486         return org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.getDefaultInstance();
487       }
488
489       public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification build() {
490         org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification result = buildPartial();
491         if (!result.isInitialized()) {
492           throw newUninitializedMessageException(result);
493         }
494         return result;
495       }
496
497       public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification buildPartial() {
498         org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification result = new org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification(this);
499         int from_bitField0_ = bitField0_;
500         int to_bitField0_ = 0;
501         if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
502           to_bitField0_ |= 0x00000001;
503         }
504         result.type_ = type_;
505         if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
506           to_bitField0_ |= 0x00000002;
507         }
508         if (pathBuilder_ == null) {
509           result.path_ = path_;
510         } else {
511           result.path_ = pathBuilder_.build();
512         }
513         if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
514           to_bitField0_ |= 0x00000004;
515         }
516         if (dataBuilder_ == null) {
517           result.data_ = data_;
518         } else {
519           result.data_ = dataBuilder_.build();
520         }
521         result.bitField0_ = to_bitField0_;
522         onBuilt();
523         return result;
524       }
525
526       public Builder mergeFrom(com.google.protobuf.Message other) {
527         if (other instanceof org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification) {
528           return mergeFrom((org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification)other);
529         } else {
530           super.mergeFrom(other);
531           return this;
532         }
533       }
534
535       public Builder mergeFrom(org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification other) {
536         if (other == org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.getDefaultInstance()) return this;
537         if (other.hasType()) {
538           bitField0_ |= 0x00000001;
539           type_ = other.type_;
540           onChanged();
541         }
542         if (other.hasPath()) {
543           mergePath(other.getPath());
544         }
545         if (other.hasData()) {
546           mergeData(other.getData());
547         }
548         this.mergeUnknownFields(other.getUnknownFields());
549         return this;
550       }
551
552       public final boolean isInitialized() {
553         if (!hasType()) {
554
555           return false;
556         }
557         if (!hasPath()) {
558
559           return false;
560         }
561         if (!getPath().isInitialized()) {
562
563           return false;
564         }
565         if (hasData()) {
566           if (!getData().isInitialized()) {
567
568             return false;
569           }
570         }
571         return true;
572       }
573
574       public Builder mergeFrom(
575           com.google.protobuf.CodedInputStream input,
576           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
577           throws java.io.IOException {
578         org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification parsedMessage = null;
579         try {
580           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
581         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
582           parsedMessage = (org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification) e.getUnfinishedMessage();
583           throw e;
584         } finally {
585           if (parsedMessage != null) {
586             mergeFrom(parsedMessage);
587           }
588         }
589         return this;
590       }
591       private int bitField0_;
592
593       // required string type = 1;
594       private java.lang.Object type_ = "";
595       /**
596        * <code>required string type = 1;</code>
597        */
598       public boolean hasType() {
599         return ((bitField0_ & 0x00000001) == 0x00000001);
600       }
601       /**
602        * <code>required string type = 1;</code>
603        */
604       public java.lang.String getType() {
605         java.lang.Object ref = type_;
606         if (!(ref instanceof java.lang.String)) {
607           java.lang.String s = ((com.google.protobuf.ByteString) ref)
608               .toStringUtf8();
609           type_ = s;
610           return s;
611         } else {
612           return (java.lang.String) ref;
613         }
614       }
615       /**
616        * <code>required string type = 1;</code>
617        */
618       public com.google.protobuf.ByteString
619           getTypeBytes() {
620         java.lang.Object ref = type_;
621         if (ref instanceof String) {
622           com.google.protobuf.ByteString b =
623               com.google.protobuf.ByteString.copyFromUtf8(
624                   (java.lang.String) ref);
625           type_ = b;
626           return b;
627         } else {
628           return (com.google.protobuf.ByteString) ref;
629         }
630       }
631       /**
632        * <code>required string type = 1;</code>
633        */
634       public Builder setType(
635           java.lang.String value) {
636         if (value == null) {
637     throw new NullPointerException();
638   }
639   bitField0_ |= 0x00000001;
640         type_ = value;
641         onChanged();
642         return this;
643       }
644       /**
645        * <code>required string type = 1;</code>
646        */
647       public Builder clearType() {
648         bitField0_ = (bitField0_ & ~0x00000001);
649         type_ = getDefaultInstance().getType();
650         onChanged();
651         return this;
652       }
653       /**
654        * <code>required string type = 1;</code>
655        */
656       public Builder setTypeBytes(
657           com.google.protobuf.ByteString value) {
658         if (value == null) {
659     throw new NullPointerException();
660   }
661   bitField0_ |= 0x00000001;
662         type_ = value;
663         onChanged();
664         return this;
665       }
666
667       // required .org.opendaylight.controller.mdsal.InstanceIdentifier path = 2;
668       private org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier path_ = org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.getDefaultInstance();
669       private com.google.protobuf.SingleFieldBuilder<
670           org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier, org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.Builder, org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifierOrBuilder> pathBuilder_;
671       /**
672        * <code>required .org.opendaylight.controller.mdsal.InstanceIdentifier path = 2;</code>
673        */
674       public boolean hasPath() {
675         return ((bitField0_ & 0x00000002) == 0x00000002);
676       }
677       /**
678        * <code>required .org.opendaylight.controller.mdsal.InstanceIdentifier path = 2;</code>
679        */
680       public org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier getPath() {
681         if (pathBuilder_ == null) {
682           return path_;
683         } else {
684           return pathBuilder_.getMessage();
685         }
686       }
687       /**
688        * <code>required .org.opendaylight.controller.mdsal.InstanceIdentifier path = 2;</code>
689        */
690       public Builder setPath(org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier value) {
691         if (pathBuilder_ == null) {
692           if (value == null) {
693             throw new NullPointerException();
694           }
695           path_ = value;
696           onChanged();
697         } else {
698           pathBuilder_.setMessage(value);
699         }
700         bitField0_ |= 0x00000002;
701         return this;
702       }
703       /**
704        * <code>required .org.opendaylight.controller.mdsal.InstanceIdentifier path = 2;</code>
705        */
706       public Builder setPath(
707           org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.Builder builderForValue) {
708         if (pathBuilder_ == null) {
709           path_ = builderForValue.build();
710           onChanged();
711         } else {
712           pathBuilder_.setMessage(builderForValue.build());
713         }
714         bitField0_ |= 0x00000002;
715         return this;
716       }
717       /**
718        * <code>required .org.opendaylight.controller.mdsal.InstanceIdentifier path = 2;</code>
719        */
720       public Builder mergePath(org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier value) {
721         if (pathBuilder_ == null) {
722           if (((bitField0_ & 0x00000002) == 0x00000002) &&
723               path_ != org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.getDefaultInstance()) {
724             path_ =
725               org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.newBuilder(path_).mergeFrom(value).buildPartial();
726           } else {
727             path_ = value;
728           }
729           onChanged();
730         } else {
731           pathBuilder_.mergeFrom(value);
732         }
733         bitField0_ |= 0x00000002;
734         return this;
735       }
736       /**
737        * <code>required .org.opendaylight.controller.mdsal.InstanceIdentifier path = 2;</code>
738        */
739       public Builder clearPath() {
740         if (pathBuilder_ == null) {
741           path_ = org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.getDefaultInstance();
742           onChanged();
743         } else {
744           pathBuilder_.clear();
745         }
746         bitField0_ = (bitField0_ & ~0x00000002);
747         return this;
748       }
749       /**
750        * <code>required .org.opendaylight.controller.mdsal.InstanceIdentifier path = 2;</code>
751        */
752       public org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.Builder getPathBuilder() {
753         bitField0_ |= 0x00000002;
754         onChanged();
755         return getPathFieldBuilder().getBuilder();
756       }
757       /**
758        * <code>required .org.opendaylight.controller.mdsal.InstanceIdentifier path = 2;</code>
759        */
760       public org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifierOrBuilder getPathOrBuilder() {
761         if (pathBuilder_ != null) {
762           return pathBuilder_.getMessageOrBuilder();
763         } else {
764           return path_;
765         }
766       }
767       /**
768        * <code>required .org.opendaylight.controller.mdsal.InstanceIdentifier path = 2;</code>
769        */
770       private com.google.protobuf.SingleFieldBuilder<
771           org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier, org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.Builder, org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifierOrBuilder>
772           getPathFieldBuilder() {
773         if (pathBuilder_ == null) {
774           pathBuilder_ = new com.google.protobuf.SingleFieldBuilder<
775               org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier, org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifier.Builder, org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.InstanceIdentifierOrBuilder>(
776                   path_,
777                   getParentForChildren(),
778                   isClean());
779           path_ = null;
780         }
781         return pathBuilder_;
782       }
783
784       // optional .org.opendaylight.controller.mdsal.Node data = 3;
785       private org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node data_ = org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node.getDefaultInstance();
786       private com.google.protobuf.SingleFieldBuilder<
787           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_;
788       /**
789        * <code>optional .org.opendaylight.controller.mdsal.Node data = 3;</code>
790        */
791       public boolean hasData() {
792         return ((bitField0_ & 0x00000004) == 0x00000004);
793       }
794       /**
795        * <code>optional .org.opendaylight.controller.mdsal.Node data = 3;</code>
796        */
797       public org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node getData() {
798         if (dataBuilder_ == null) {
799           return data_;
800         } else {
801           return dataBuilder_.getMessage();
802         }
803       }
804       /**
805        * <code>optional .org.opendaylight.controller.mdsal.Node data = 3;</code>
806        */
807       public Builder setData(org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node value) {
808         if (dataBuilder_ == null) {
809           if (value == null) {
810             throw new NullPointerException();
811           }
812           data_ = value;
813           onChanged();
814         } else {
815           dataBuilder_.setMessage(value);
816         }
817         bitField0_ |= 0x00000004;
818         return this;
819       }
820       /**
821        * <code>optional .org.opendaylight.controller.mdsal.Node data = 3;</code>
822        */
823       public Builder setData(
824           org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node.Builder builderForValue) {
825         if (dataBuilder_ == null) {
826           data_ = builderForValue.build();
827           onChanged();
828         } else {
829           dataBuilder_.setMessage(builderForValue.build());
830         }
831         bitField0_ |= 0x00000004;
832         return this;
833       }
834       /**
835        * <code>optional .org.opendaylight.controller.mdsal.Node data = 3;</code>
836        */
837       public Builder mergeData(org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node value) {
838         if (dataBuilder_ == null) {
839           if (((bitField0_ & 0x00000004) == 0x00000004) &&
840               data_ != org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node.getDefaultInstance()) {
841             data_ =
842               org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node.newBuilder(data_).mergeFrom(value).buildPartial();
843           } else {
844             data_ = value;
845           }
846           onChanged();
847         } else {
848           dataBuilder_.mergeFrom(value);
849         }
850         bitField0_ |= 0x00000004;
851         return this;
852       }
853       /**
854        * <code>optional .org.opendaylight.controller.mdsal.Node data = 3;</code>
855        */
856       public Builder clearData() {
857         if (dataBuilder_ == null) {
858           data_ = org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node.getDefaultInstance();
859           onChanged();
860         } else {
861           dataBuilder_.clear();
862         }
863         bitField0_ = (bitField0_ & ~0x00000004);
864         return this;
865       }
866       /**
867        * <code>optional .org.opendaylight.controller.mdsal.Node data = 3;</code>
868        */
869       public org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.Node.Builder getDataBuilder() {
870         bitField0_ |= 0x00000004;
871         onChanged();
872         return getDataFieldBuilder().getBuilder();
873       }
874       /**
875        * <code>optional .org.opendaylight.controller.mdsal.Node data = 3;</code>
876        */
877       public org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.NodeOrBuilder getDataOrBuilder() {
878         if (dataBuilder_ != null) {
879           return dataBuilder_.getMessageOrBuilder();
880         } else {
881           return data_;
882         }
883       }
884       /**
885        * <code>optional .org.opendaylight.controller.mdsal.Node data = 3;</code>
886        */
887       private com.google.protobuf.SingleFieldBuilder<
888           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>
889           getDataFieldBuilder() {
890         if (dataBuilder_ == null) {
891           dataBuilder_ = new com.google.protobuf.SingleFieldBuilder<
892               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>(
893                   data_,
894                   getParentForChildren(),
895                   isClean());
896           data_ = null;
897         }
898         return dataBuilder_;
899       }
900
901       // @@protoc_insertion_point(builder_scope:org.opendaylight.controller.mdsal.Modification)
902     }
903
904     static {
905       defaultInstance = new Modification(true);
906       defaultInstance.initFields();
907     }
908
909     // @@protoc_insertion_point(class_scope:org.opendaylight.controller.mdsal.Modification)
910   }
911
912   public interface CompositeModificationOrBuilder
913       extends com.google.protobuf.MessageOrBuilder {
914
915     // repeated .org.opendaylight.controller.mdsal.Modification modification = 1;
916     /**
917      * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
918      */
919     java.util.List<org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification>
920         getModificationList();
921     /**
922      * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
923      */
924     org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification getModification(int index);
925     /**
926      * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
927      */
928     int getModificationCount();
929     /**
930      * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
931      */
932     java.util.List<? extends org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.ModificationOrBuilder>
933         getModificationOrBuilderList();
934     /**
935      * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
936      */
937     org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.ModificationOrBuilder getModificationOrBuilder(
938         int index);
939   }
940   /**
941    * Protobuf type {@code org.opendaylight.controller.mdsal.CompositeModification}
942    */
943   public static final class CompositeModification extends
944       com.google.protobuf.GeneratedMessage
945       implements CompositeModificationOrBuilder {
946     // Use CompositeModification.newBuilder() to construct.
947     private CompositeModification(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
948       super(builder);
949       this.unknownFields = builder.getUnknownFields();
950     }
951     private CompositeModification(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
952
953     private static final CompositeModification defaultInstance;
954     public static CompositeModification getDefaultInstance() {
955       return defaultInstance;
956     }
957
958     public CompositeModification getDefaultInstanceForType() {
959       return defaultInstance;
960     }
961
962     private final com.google.protobuf.UnknownFieldSet unknownFields;
963     @java.lang.Override
964     public final com.google.protobuf.UnknownFieldSet
965         getUnknownFields() {
966       return this.unknownFields;
967     }
968     private CompositeModification(
969         com.google.protobuf.CodedInputStream input,
970         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
971         throws com.google.protobuf.InvalidProtocolBufferException {
972       initFields();
973       int mutable_bitField0_ = 0;
974       com.google.protobuf.UnknownFieldSet.Builder unknownFields =
975           com.google.protobuf.UnknownFieldSet.newBuilder();
976       try {
977         boolean done = false;
978         while (!done) {
979           int tag = input.readTag();
980           switch (tag) {
981             case 0:
982               done = true;
983               break;
984             default: {
985               if (!parseUnknownField(input, unknownFields,
986                                      extensionRegistry, tag)) {
987                 done = true;
988               }
989               break;
990             }
991             case 10: {
992               if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
993                 modification_ = new java.util.ArrayList<org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification>();
994                 mutable_bitField0_ |= 0x00000001;
995               }
996               modification_.add(input.readMessage(org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.PARSER, extensionRegistry));
997               break;
998             }
999           }
1000         }
1001       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1002         throw e.setUnfinishedMessage(this);
1003       } catch (java.io.IOException e) {
1004         throw new com.google.protobuf.InvalidProtocolBufferException(
1005             e.getMessage()).setUnfinishedMessage(this);
1006       } finally {
1007         if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
1008           modification_ = java.util.Collections.unmodifiableList(modification_);
1009         }
1010         this.unknownFields = unknownFields.build();
1011         makeExtensionsImmutable();
1012       }
1013     }
1014     public static final com.google.protobuf.Descriptors.Descriptor
1015         getDescriptor() {
1016       return org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.internal_static_org_opendaylight_controller_mdsal_CompositeModification_descriptor;
1017     }
1018
1019     protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1020         internalGetFieldAccessorTable() {
1021       return org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.internal_static_org_opendaylight_controller_mdsal_CompositeModification_fieldAccessorTable
1022           .ensureFieldAccessorsInitialized(
1023               org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification.class, org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification.Builder.class);
1024     }
1025
1026     public static com.google.protobuf.Parser<CompositeModification> PARSER =
1027         new com.google.protobuf.AbstractParser<CompositeModification>() {
1028       public CompositeModification parsePartialFrom(
1029           com.google.protobuf.CodedInputStream input,
1030           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1031           throws com.google.protobuf.InvalidProtocolBufferException {
1032         return new CompositeModification(input, extensionRegistry);
1033       }
1034     };
1035
1036     @java.lang.Override
1037     public com.google.protobuf.Parser<CompositeModification> getParserForType() {
1038       return PARSER;
1039     }
1040
1041     // repeated .org.opendaylight.controller.mdsal.Modification modification = 1;
1042     public static final int MODIFICATION_FIELD_NUMBER = 1;
1043     private java.util.List<org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification> modification_;
1044     /**
1045      * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1046      */
1047     public java.util.List<org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification> getModificationList() {
1048       return modification_;
1049     }
1050     /**
1051      * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1052      */
1053     public java.util.List<? extends org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.ModificationOrBuilder>
1054         getModificationOrBuilderList() {
1055       return modification_;
1056     }
1057     /**
1058      * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1059      */
1060     public int getModificationCount() {
1061       return modification_.size();
1062     }
1063     /**
1064      * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1065      */
1066     public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification getModification(int index) {
1067       return modification_.get(index);
1068     }
1069     /**
1070      * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1071      */
1072     public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.ModificationOrBuilder getModificationOrBuilder(
1073         int index) {
1074       return modification_.get(index);
1075     }
1076
1077     private void initFields() {
1078       modification_ = java.util.Collections.emptyList();
1079     }
1080     private byte memoizedIsInitialized = -1;
1081     public final boolean isInitialized() {
1082       byte isInitialized = memoizedIsInitialized;
1083       if (isInitialized != -1) return isInitialized == 1;
1084
1085       for (int i = 0; i < getModificationCount(); i++) {
1086         if (!getModification(i).isInitialized()) {
1087           memoizedIsInitialized = 0;
1088           return false;
1089         }
1090       }
1091       memoizedIsInitialized = 1;
1092       return true;
1093     }
1094
1095     public void writeTo(com.google.protobuf.CodedOutputStream output)
1096                         throws java.io.IOException {
1097       getSerializedSize();
1098       for (int i = 0; i < modification_.size(); i++) {
1099         output.writeMessage(1, modification_.get(i));
1100       }
1101       getUnknownFields().writeTo(output);
1102     }
1103
1104     private int memoizedSerializedSize = -1;
1105     public int getSerializedSize() {
1106       int size = memoizedSerializedSize;
1107       if (size != -1) return size;
1108
1109       size = 0;
1110       for (int i = 0; i < modification_.size(); i++) {
1111         size += com.google.protobuf.CodedOutputStream
1112           .computeMessageSize(1, modification_.get(i));
1113       }
1114       size += getUnknownFields().getSerializedSize();
1115       memoizedSerializedSize = size;
1116       return size;
1117     }
1118
1119     private static final long serialVersionUID = 0L;
1120     @java.lang.Override
1121     protected java.lang.Object writeReplace()
1122         throws java.io.ObjectStreamException {
1123       return super.writeReplace();
1124     }
1125
1126     public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseFrom(
1127         com.google.protobuf.ByteString data)
1128         throws com.google.protobuf.InvalidProtocolBufferException {
1129       return PARSER.parseFrom(data);
1130     }
1131     public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseFrom(
1132         com.google.protobuf.ByteString data,
1133         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1134         throws com.google.protobuf.InvalidProtocolBufferException {
1135       return PARSER.parseFrom(data, extensionRegistry);
1136     }
1137     public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseFrom(byte[] data)
1138         throws com.google.protobuf.InvalidProtocolBufferException {
1139       return PARSER.parseFrom(data);
1140     }
1141     public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseFrom(
1142         byte[] data,
1143         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1144         throws com.google.protobuf.InvalidProtocolBufferException {
1145       return PARSER.parseFrom(data, extensionRegistry);
1146     }
1147     public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseFrom(java.io.InputStream input)
1148         throws java.io.IOException {
1149       return PARSER.parseFrom(input);
1150     }
1151     public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseFrom(
1152         java.io.InputStream input,
1153         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1154         throws java.io.IOException {
1155       return PARSER.parseFrom(input, extensionRegistry);
1156     }
1157     public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseDelimitedFrom(java.io.InputStream input)
1158         throws java.io.IOException {
1159       return PARSER.parseDelimitedFrom(input);
1160     }
1161     public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseDelimitedFrom(
1162         java.io.InputStream input,
1163         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1164         throws java.io.IOException {
1165       return PARSER.parseDelimitedFrom(input, extensionRegistry);
1166     }
1167     public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseFrom(
1168         com.google.protobuf.CodedInputStream input)
1169         throws java.io.IOException {
1170       return PARSER.parseFrom(input);
1171     }
1172     public static org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parseFrom(
1173         com.google.protobuf.CodedInputStream input,
1174         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1175         throws java.io.IOException {
1176       return PARSER.parseFrom(input, extensionRegistry);
1177     }
1178
1179     public static Builder newBuilder() { return Builder.create(); }
1180     public Builder newBuilderForType() { return newBuilder(); }
1181     public static Builder newBuilder(org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification prototype) {
1182       return newBuilder().mergeFrom(prototype);
1183     }
1184     public Builder toBuilder() { return newBuilder(this); }
1185
1186     @java.lang.Override
1187     protected Builder newBuilderForType(
1188         com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1189       Builder builder = new Builder(parent);
1190       return builder;
1191     }
1192     /**
1193      * Protobuf type {@code org.opendaylight.controller.mdsal.CompositeModification}
1194      */
1195     public static final class Builder extends
1196         com.google.protobuf.GeneratedMessage.Builder<Builder>
1197        implements org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModificationOrBuilder {
1198       public static final com.google.protobuf.Descriptors.Descriptor
1199           getDescriptor() {
1200         return org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.internal_static_org_opendaylight_controller_mdsal_CompositeModification_descriptor;
1201       }
1202
1203       protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1204           internalGetFieldAccessorTable() {
1205         return org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.internal_static_org_opendaylight_controller_mdsal_CompositeModification_fieldAccessorTable
1206             .ensureFieldAccessorsInitialized(
1207                 org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification.class, org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification.Builder.class);
1208       }
1209
1210       // Construct using org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification.newBuilder()
1211       private Builder() {
1212         maybeForceBuilderInitialization();
1213       }
1214
1215       private Builder(
1216           com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1217         super(parent);
1218         maybeForceBuilderInitialization();
1219       }
1220       private void maybeForceBuilderInitialization() {
1221         if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
1222           getModificationFieldBuilder();
1223         }
1224       }
1225       private static Builder create() {
1226         return new Builder();
1227       }
1228
1229       public Builder clear() {
1230         super.clear();
1231         if (modificationBuilder_ == null) {
1232           modification_ = java.util.Collections.emptyList();
1233           bitField0_ = (bitField0_ & ~0x00000001);
1234         } else {
1235           modificationBuilder_.clear();
1236         }
1237         return this;
1238       }
1239
1240       public Builder clone() {
1241         return create().mergeFrom(buildPartial());
1242       }
1243
1244       public com.google.protobuf.Descriptors.Descriptor
1245           getDescriptorForType() {
1246         return org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.internal_static_org_opendaylight_controller_mdsal_CompositeModification_descriptor;
1247       }
1248
1249       public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification getDefaultInstanceForType() {
1250         return org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification.getDefaultInstance();
1251       }
1252
1253       public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification build() {
1254         org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification result = buildPartial();
1255         if (!result.isInitialized()) {
1256           throw newUninitializedMessageException(result);
1257         }
1258         return result;
1259       }
1260
1261       public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification buildPartial() {
1262         org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification result = new org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification(this);
1263         int from_bitField0_ = bitField0_;
1264         if (modificationBuilder_ == null) {
1265           if (((bitField0_ & 0x00000001) == 0x00000001)) {
1266             modification_ = java.util.Collections.unmodifiableList(modification_);
1267             bitField0_ = (bitField0_ & ~0x00000001);
1268           }
1269           result.modification_ = modification_;
1270         } else {
1271           result.modification_ = modificationBuilder_.build();
1272         }
1273         onBuilt();
1274         return result;
1275       }
1276
1277       public Builder mergeFrom(com.google.protobuf.Message other) {
1278         if (other instanceof org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification) {
1279           return mergeFrom((org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification)other);
1280         } else {
1281           super.mergeFrom(other);
1282           return this;
1283         }
1284       }
1285
1286       public Builder mergeFrom(org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification other) {
1287         if (other == org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification.getDefaultInstance()) return this;
1288         if (modificationBuilder_ == null) {
1289           if (!other.modification_.isEmpty()) {
1290             if (modification_.isEmpty()) {
1291               modification_ = other.modification_;
1292               bitField0_ = (bitField0_ & ~0x00000001);
1293             } else {
1294               ensureModificationIsMutable();
1295               modification_.addAll(other.modification_);
1296             }
1297             onChanged();
1298           }
1299         } else {
1300           if (!other.modification_.isEmpty()) {
1301             if (modificationBuilder_.isEmpty()) {
1302               modificationBuilder_.dispose();
1303               modificationBuilder_ = null;
1304               modification_ = other.modification_;
1305               bitField0_ = (bitField0_ & ~0x00000001);
1306               modificationBuilder_ =
1307                 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
1308                    getModificationFieldBuilder() : null;
1309             } else {
1310               modificationBuilder_.addAllMessages(other.modification_);
1311             }
1312           }
1313         }
1314         this.mergeUnknownFields(other.getUnknownFields());
1315         return this;
1316       }
1317
1318       public final boolean isInitialized() {
1319         for (int i = 0; i < getModificationCount(); i++) {
1320           if (!getModification(i).isInitialized()) {
1321
1322             return false;
1323           }
1324         }
1325         return true;
1326       }
1327
1328       public Builder mergeFrom(
1329           com.google.protobuf.CodedInputStream input,
1330           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1331           throws java.io.IOException {
1332         org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification parsedMessage = null;
1333         try {
1334           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1335         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1336           parsedMessage = (org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.CompositeModification) e.getUnfinishedMessage();
1337           throw e;
1338         } finally {
1339           if (parsedMessage != null) {
1340             mergeFrom(parsedMessage);
1341           }
1342         }
1343         return this;
1344       }
1345       private int bitField0_;
1346
1347       // repeated .org.opendaylight.controller.mdsal.Modification modification = 1;
1348       private java.util.List<org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification> modification_ =
1349         java.util.Collections.emptyList();
1350       private void ensureModificationIsMutable() {
1351         if (!((bitField0_ & 0x00000001) == 0x00000001)) {
1352           modification_ = new java.util.ArrayList<org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification>(modification_);
1353           bitField0_ |= 0x00000001;
1354          }
1355       }
1356
1357       private com.google.protobuf.RepeatedFieldBuilder<
1358           org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification, org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.Builder, org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.ModificationOrBuilder> modificationBuilder_;
1359
1360       /**
1361        * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1362        */
1363       public java.util.List<org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification> getModificationList() {
1364         if (modificationBuilder_ == null) {
1365           return java.util.Collections.unmodifiableList(modification_);
1366         } else {
1367           return modificationBuilder_.getMessageList();
1368         }
1369       }
1370       /**
1371        * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1372        */
1373       public int getModificationCount() {
1374         if (modificationBuilder_ == null) {
1375           return modification_.size();
1376         } else {
1377           return modificationBuilder_.getCount();
1378         }
1379       }
1380       /**
1381        * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1382        */
1383       public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification getModification(int index) {
1384         if (modificationBuilder_ == null) {
1385           return modification_.get(index);
1386         } else {
1387           return modificationBuilder_.getMessage(index);
1388         }
1389       }
1390       /**
1391        * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1392        */
1393       public Builder setModification(
1394           int index, org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification value) {
1395         if (modificationBuilder_ == null) {
1396           if (value == null) {
1397             throw new NullPointerException();
1398           }
1399           ensureModificationIsMutable();
1400           modification_.set(index, value);
1401           onChanged();
1402         } else {
1403           modificationBuilder_.setMessage(index, value);
1404         }
1405         return this;
1406       }
1407       /**
1408        * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1409        */
1410       public Builder setModification(
1411           int index, org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.Builder builderForValue) {
1412         if (modificationBuilder_ == null) {
1413           ensureModificationIsMutable();
1414           modification_.set(index, builderForValue.build());
1415           onChanged();
1416         } else {
1417           modificationBuilder_.setMessage(index, builderForValue.build());
1418         }
1419         return this;
1420       }
1421       /**
1422        * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1423        */
1424       public Builder addModification(org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification value) {
1425         if (modificationBuilder_ == null) {
1426           if (value == null) {
1427             throw new NullPointerException();
1428           }
1429           ensureModificationIsMutable();
1430           modification_.add(value);
1431           onChanged();
1432         } else {
1433           modificationBuilder_.addMessage(value);
1434         }
1435         return this;
1436       }
1437       /**
1438        * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1439        */
1440       public Builder addModification(
1441           int index, org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification value) {
1442         if (modificationBuilder_ == null) {
1443           if (value == null) {
1444             throw new NullPointerException();
1445           }
1446           ensureModificationIsMutable();
1447           modification_.add(index, value);
1448           onChanged();
1449         } else {
1450           modificationBuilder_.addMessage(index, value);
1451         }
1452         return this;
1453       }
1454       /**
1455        * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1456        */
1457       public Builder addModification(
1458           org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.Builder builderForValue) {
1459         if (modificationBuilder_ == null) {
1460           ensureModificationIsMutable();
1461           modification_.add(builderForValue.build());
1462           onChanged();
1463         } else {
1464           modificationBuilder_.addMessage(builderForValue.build());
1465         }
1466         return this;
1467       }
1468       /**
1469        * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1470        */
1471       public Builder addModification(
1472           int index, org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.Builder builderForValue) {
1473         if (modificationBuilder_ == null) {
1474           ensureModificationIsMutable();
1475           modification_.add(index, builderForValue.build());
1476           onChanged();
1477         } else {
1478           modificationBuilder_.addMessage(index, builderForValue.build());
1479         }
1480         return this;
1481       }
1482       /**
1483        * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1484        */
1485       public Builder addAllModification(
1486           java.lang.Iterable<? extends org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification> values) {
1487         if (modificationBuilder_ == null) {
1488           ensureModificationIsMutable();
1489           super.addAll(values, modification_);
1490           onChanged();
1491         } else {
1492           modificationBuilder_.addAllMessages(values);
1493         }
1494         return this;
1495       }
1496       /**
1497        * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1498        */
1499       public Builder clearModification() {
1500         if (modificationBuilder_ == null) {
1501           modification_ = java.util.Collections.emptyList();
1502           bitField0_ = (bitField0_ & ~0x00000001);
1503           onChanged();
1504         } else {
1505           modificationBuilder_.clear();
1506         }
1507         return this;
1508       }
1509       /**
1510        * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1511        */
1512       public Builder removeModification(int index) {
1513         if (modificationBuilder_ == null) {
1514           ensureModificationIsMutable();
1515           modification_.remove(index);
1516           onChanged();
1517         } else {
1518           modificationBuilder_.remove(index);
1519         }
1520         return this;
1521       }
1522       /**
1523        * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1524        */
1525       public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.Builder getModificationBuilder(
1526           int index) {
1527         return getModificationFieldBuilder().getBuilder(index);
1528       }
1529       /**
1530        * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1531        */
1532       public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.ModificationOrBuilder getModificationOrBuilder(
1533           int index) {
1534         if (modificationBuilder_ == null) {
1535           return modification_.get(index);  } else {
1536           return modificationBuilder_.getMessageOrBuilder(index);
1537         }
1538       }
1539       /**
1540        * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1541        */
1542       public java.util.List<? extends org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.ModificationOrBuilder>
1543            getModificationOrBuilderList() {
1544         if (modificationBuilder_ != null) {
1545           return modificationBuilder_.getMessageOrBuilderList();
1546         } else {
1547           return java.util.Collections.unmodifiableList(modification_);
1548         }
1549       }
1550       /**
1551        * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1552        */
1553       public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.Builder addModificationBuilder() {
1554         return getModificationFieldBuilder().addBuilder(
1555             org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.getDefaultInstance());
1556       }
1557       /**
1558        * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1559        */
1560       public org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.Builder addModificationBuilder(
1561           int index) {
1562         return getModificationFieldBuilder().addBuilder(
1563             index, org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.getDefaultInstance());
1564       }
1565       /**
1566        * <code>repeated .org.opendaylight.controller.mdsal.Modification modification = 1;</code>
1567        */
1568       public java.util.List<org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.Builder>
1569            getModificationBuilderList() {
1570         return getModificationFieldBuilder().getBuilderList();
1571       }
1572       private com.google.protobuf.RepeatedFieldBuilder<
1573           org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification, org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.Builder, org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.ModificationOrBuilder>
1574           getModificationFieldBuilder() {
1575         if (modificationBuilder_ == null) {
1576           modificationBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
1577               org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification, org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.Modification.Builder, org.opendaylight.controller.protobuff.messages.persistent.PersistentMessages.ModificationOrBuilder>(
1578                   modification_,
1579                   ((bitField0_ & 0x00000001) == 0x00000001),
1580                   getParentForChildren(),
1581                   isClean());
1582           modification_ = null;
1583         }
1584         return modificationBuilder_;
1585       }
1586
1587       // @@protoc_insertion_point(builder_scope:org.opendaylight.controller.mdsal.CompositeModification)
1588     }
1589
1590     static {
1591       defaultInstance = new CompositeModification(true);
1592       defaultInstance.initFields();
1593     }
1594
1595     // @@protoc_insertion_point(class_scope:org.opendaylight.controller.mdsal.CompositeModification)
1596   }
1597
1598   private static com.google.protobuf.Descriptors.Descriptor
1599     internal_static_org_opendaylight_controller_mdsal_Modification_descriptor;
1600   private static
1601     com.google.protobuf.GeneratedMessage.FieldAccessorTable
1602       internal_static_org_opendaylight_controller_mdsal_Modification_fieldAccessorTable;
1603   private static com.google.protobuf.Descriptors.Descriptor
1604     internal_static_org_opendaylight_controller_mdsal_CompositeModification_descriptor;
1605   private static
1606     com.google.protobuf.GeneratedMessage.FieldAccessorTable
1607       internal_static_org_opendaylight_controller_mdsal_CompositeModification_fieldAccessorTable;
1608
1609   public static com.google.protobuf.Descriptors.FileDescriptor
1610       getDescriptor() {
1611     return descriptor;
1612   }
1613   private static com.google.protobuf.Descriptors.FileDescriptor
1614       descriptor;
1615   static {
1616     java.lang.String[] descriptorData = {
1617       "\n\020Persistent.proto\022!org.opendaylight.con" +
1618       "troller.mdsal\032\014Common.proto\032\033AppendEntri" +
1619       "esMessages.proto\"\230\001\n\014Modification\022\014\n\004typ" +
1620       "e\030\001 \002(\t\022C\n\004path\030\002 \002(\01325.org.opendaylight" +
1621       ".controller.mdsal.InstanceIdentifier\0225\n\004" +
1622       "data\030\003 \001(\0132\'.org.opendaylight.controller" +
1623       ".mdsal.Node\"^\n\025CompositeModification\022E\n\014" +
1624       "modification\030\001 \003(\0132/.org.opendaylight.co" +
1625       "ntroller.mdsal.ModificationBO\n9org.opend" +
1626       "aylight.controller.protobuff.messages.pe",
1627       "rsistentB\022PersistentMessages"
1628     };
1629     com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
1630       new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
1631         public com.google.protobuf.ExtensionRegistry assignDescriptors(
1632             com.google.protobuf.Descriptors.FileDescriptor root) {
1633           descriptor = root;
1634           internal_static_org_opendaylight_controller_mdsal_Modification_descriptor =
1635             getDescriptor().getMessageTypes().get(0);
1636           internal_static_org_opendaylight_controller_mdsal_Modification_fieldAccessorTable = new
1637             com.google.protobuf.GeneratedMessage.FieldAccessorTable(
1638               internal_static_org_opendaylight_controller_mdsal_Modification_descriptor,
1639               new java.lang.String[] { "Type", "Path", "Data", });
1640           internal_static_org_opendaylight_controller_mdsal_CompositeModification_descriptor =
1641             getDescriptor().getMessageTypes().get(1);
1642           internal_static_org_opendaylight_controller_mdsal_CompositeModification_fieldAccessorTable = new
1643             com.google.protobuf.GeneratedMessage.FieldAccessorTable(
1644               internal_static_org_opendaylight_controller_mdsal_CompositeModification_descriptor,
1645               new java.lang.String[] { "Modification", });
1646           return null;
1647         }
1648       };
1649     com.google.protobuf.Descriptors.FileDescriptor
1650       .internalBuildGeneratedFileFrom(descriptorData,
1651         new com.google.protobuf.Descriptors.FileDescriptor[] {
1652           org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages.getDescriptor(),
1653           org.opendaylight.controller.cluster.raft.protobuff.messages.AppendEntriesMessages.getDescriptor(),
1654         }, assigner);
1655   }
1656
1657   // @@protoc_insertion_point(outer_class_scope)
1658 }