Merge "Bug 1569 - [DEV] Too small variable for OF-Port-Number"
[controller.git] / opendaylight / md-sal / sal-clustering-commons / src / main / java / org / opendaylight / controller / protobuff / messages / cluster / raft / AppendEntriesMessages.java
1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: AppendEntriesMessages.proto
3
4 package org.opendaylight.controller.protobuff.messages.cluster.raft;
5
6 public final class AppendEntriesMessages {
7   private AppendEntriesMessages() {}
8   public static void registerAllExtensions(
9       com.google.protobuf.ExtensionRegistry registry) {
10   }
11   public interface AppendEntriesOrBuilder
12       extends com.google.protobuf.MessageOrBuilder {
13
14     // optional int64 term = 1;
15     /**
16      * <code>optional int64 term = 1;</code>
17      */
18     boolean hasTerm();
19     /**
20      * <code>optional int64 term = 1;</code>
21      */
22     long getTerm();
23
24     // optional string leaderId = 2;
25     /**
26      * <code>optional string leaderId = 2;</code>
27      */
28     boolean hasLeaderId();
29     /**
30      * <code>optional string leaderId = 2;</code>
31      */
32     java.lang.String getLeaderId();
33     /**
34      * <code>optional string leaderId = 2;</code>
35      */
36     com.google.protobuf.ByteString
37         getLeaderIdBytes();
38
39     // optional int64 prevLogIndex = 3;
40     /**
41      * <code>optional int64 prevLogIndex = 3;</code>
42      */
43     boolean hasPrevLogIndex();
44     /**
45      * <code>optional int64 prevLogIndex = 3;</code>
46      */
47     long getPrevLogIndex();
48
49     // optional int64 prevLogTerm = 4;
50     /**
51      * <code>optional int64 prevLogTerm = 4;</code>
52      */
53     boolean hasPrevLogTerm();
54     /**
55      * <code>optional int64 prevLogTerm = 4;</code>
56      */
57     long getPrevLogTerm();
58
59     // repeated .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry logEntries = 5;
60     /**
61      * <code>repeated .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry logEntries = 5;</code>
62      */
63     java.util.List<org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry>
64         getLogEntriesList();
65     /**
66      * <code>repeated .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry logEntries = 5;</code>
67      */
68     org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry getLogEntries(int index);
69     /**
70      * <code>repeated .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry logEntries = 5;</code>
71      */
72     int getLogEntriesCount();
73     /**
74      * <code>repeated .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry logEntries = 5;</code>
75      */
76     java.util.List<? extends org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntryOrBuilder>
77         getLogEntriesOrBuilderList();
78     /**
79      * <code>repeated .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry logEntries = 5;</code>
80      */
81     org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntryOrBuilder getLogEntriesOrBuilder(
82         int index);
83
84     // optional int64 leaderCommit = 6;
85     /**
86      * <code>optional int64 leaderCommit = 6;</code>
87      */
88     boolean hasLeaderCommit();
89     /**
90      * <code>optional int64 leaderCommit = 6;</code>
91      */
92     long getLeaderCommit();
93   }
94   /**
95    * Protobuf type {@code org.opendaylight.controller.cluster.raft.AppendEntries}
96    */
97   public static final class AppendEntries extends
98       com.google.protobuf.GeneratedMessage
99       implements AppendEntriesOrBuilder {
100     // Use AppendEntries.newBuilder() to construct.
101     private AppendEntries(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
102       super(builder);
103       this.unknownFields = builder.getUnknownFields();
104     }
105     private AppendEntries(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
106
107     private static final AppendEntries defaultInstance;
108     public static AppendEntries getDefaultInstance() {
109       return defaultInstance;
110     }
111
112     public AppendEntries getDefaultInstanceForType() {
113       return defaultInstance;
114     }
115
116     private final com.google.protobuf.UnknownFieldSet unknownFields;
117     @java.lang.Override
118     public final com.google.protobuf.UnknownFieldSet
119         getUnknownFields() {
120       return this.unknownFields;
121     }
122     private AppendEntries(
123         com.google.protobuf.CodedInputStream input,
124         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
125         throws com.google.protobuf.InvalidProtocolBufferException {
126       initFields();
127       int mutable_bitField0_ = 0;
128       com.google.protobuf.UnknownFieldSet.Builder unknownFields =
129           com.google.protobuf.UnknownFieldSet.newBuilder();
130       try {
131         boolean done = false;
132         while (!done) {
133           int tag = input.readTag();
134           switch (tag) {
135             case 0:
136               done = true;
137               break;
138             default: {
139               if (!parseUnknownField(input, unknownFields,
140                                      extensionRegistry, tag)) {
141                 done = true;
142               }
143               break;
144             }
145             case 8: {
146               bitField0_ |= 0x00000001;
147               term_ = input.readInt64();
148               break;
149             }
150             case 18: {
151               bitField0_ |= 0x00000002;
152               leaderId_ = input.readBytes();
153               break;
154             }
155             case 24: {
156               bitField0_ |= 0x00000004;
157               prevLogIndex_ = input.readInt64();
158               break;
159             }
160             case 32: {
161               bitField0_ |= 0x00000008;
162               prevLogTerm_ = input.readInt64();
163               break;
164             }
165             case 42: {
166               if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
167                 logEntries_ = new java.util.ArrayList<org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry>();
168                 mutable_bitField0_ |= 0x00000010;
169               }
170               logEntries_.add(input.readMessage(org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.PARSER, extensionRegistry));
171               break;
172             }
173             case 48: {
174               bitField0_ |= 0x00000010;
175               leaderCommit_ = input.readInt64();
176               break;
177             }
178           }
179         }
180       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
181         throw e.setUnfinishedMessage(this);
182       } catch (java.io.IOException e) {
183         throw new com.google.protobuf.InvalidProtocolBufferException(
184             e.getMessage()).setUnfinishedMessage(this);
185       } finally {
186         if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
187           logEntries_ = java.util.Collections.unmodifiableList(logEntries_);
188         }
189         this.unknownFields = unknownFields.build();
190         makeExtensionsImmutable();
191       }
192     }
193     public static final com.google.protobuf.Descriptors.Descriptor
194         getDescriptor() {
195       return org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.internal_static_org_opendaylight_controller_cluster_raft_AppendEntries_descriptor;
196     }
197
198     protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
199         internalGetFieldAccessorTable() {
200       return org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.internal_static_org_opendaylight_controller_cluster_raft_AppendEntries_fieldAccessorTable
201           .ensureFieldAccessorsInitialized(
202               org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.class, org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.Builder.class);
203     }
204
205     public static com.google.protobuf.Parser<AppendEntries> PARSER =
206         new com.google.protobuf.AbstractParser<AppendEntries>() {
207       public AppendEntries parsePartialFrom(
208           com.google.protobuf.CodedInputStream input,
209           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
210           throws com.google.protobuf.InvalidProtocolBufferException {
211         return new AppendEntries(input, extensionRegistry);
212       }
213     };
214
215     @java.lang.Override
216     public com.google.protobuf.Parser<AppendEntries> getParserForType() {
217       return PARSER;
218     }
219
220     public interface ReplicatedLogEntryOrBuilder
221         extends com.google.protobuf.MessageOrBuilder {
222
223       // optional int64 term = 1;
224       /**
225        * <code>optional int64 term = 1;</code>
226        */
227       boolean hasTerm();
228       /**
229        * <code>optional int64 term = 1;</code>
230        */
231       long getTerm();
232
233       // optional int64 index = 2;
234       /**
235        * <code>optional int64 index = 2;</code>
236        */
237       boolean hasIndex();
238       /**
239        * <code>optional int64 index = 2;</code>
240        */
241       long getIndex();
242
243       // optional .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry.Payload data = 3;
244       /**
245        * <code>optional .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry.Payload data = 3;</code>
246        */
247       boolean hasData();
248       /**
249        * <code>optional .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry.Payload data = 3;</code>
250        */
251       org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload getData();
252       /**
253        * <code>optional .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry.Payload data = 3;</code>
254        */
255       org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.PayloadOrBuilder getDataOrBuilder();
256     }
257     /**
258      * Protobuf type {@code org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry}
259      */
260     public static final class ReplicatedLogEntry extends
261         com.google.protobuf.GeneratedMessage
262         implements ReplicatedLogEntryOrBuilder {
263       // Use ReplicatedLogEntry.newBuilder() to construct.
264       private ReplicatedLogEntry(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
265         super(builder);
266         this.unknownFields = builder.getUnknownFields();
267       }
268       private ReplicatedLogEntry(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
269
270       private static final ReplicatedLogEntry defaultInstance;
271       public static ReplicatedLogEntry getDefaultInstance() {
272         return defaultInstance;
273       }
274
275       public ReplicatedLogEntry getDefaultInstanceForType() {
276         return defaultInstance;
277       }
278
279       private final com.google.protobuf.UnknownFieldSet unknownFields;
280       @java.lang.Override
281       public final com.google.protobuf.UnknownFieldSet
282           getUnknownFields() {
283         return this.unknownFields;
284       }
285       private ReplicatedLogEntry(
286           com.google.protobuf.CodedInputStream input,
287           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
288           throws com.google.protobuf.InvalidProtocolBufferException {
289         initFields();
290         int mutable_bitField0_ = 0;
291         com.google.protobuf.UnknownFieldSet.Builder unknownFields =
292             com.google.protobuf.UnknownFieldSet.newBuilder();
293         try {
294           boolean done = false;
295           while (!done) {
296             int tag = input.readTag();
297             switch (tag) {
298               case 0:
299                 done = true;
300                 break;
301               default: {
302                 if (!parseUnknownField(input, unknownFields,
303                                        extensionRegistry, tag)) {
304                   done = true;
305                 }
306                 break;
307               }
308               case 8: {
309                 bitField0_ |= 0x00000001;
310                 term_ = input.readInt64();
311                 break;
312               }
313               case 16: {
314                 bitField0_ |= 0x00000002;
315                 index_ = input.readInt64();
316                 break;
317               }
318               case 26: {
319                 org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload.Builder subBuilder = null;
320                 if (((bitField0_ & 0x00000004) == 0x00000004)) {
321                   subBuilder = data_.toBuilder();
322                 }
323                 data_ = input.readMessage(org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload.PARSER, extensionRegistry);
324                 if (subBuilder != null) {
325                   subBuilder.mergeFrom(data_);
326                   data_ = subBuilder.buildPartial();
327                 }
328                 bitField0_ |= 0x00000004;
329                 break;
330               }
331             }
332           }
333         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
334           throw e.setUnfinishedMessage(this);
335         } catch (java.io.IOException e) {
336           throw new com.google.protobuf.InvalidProtocolBufferException(
337               e.getMessage()).setUnfinishedMessage(this);
338         } finally {
339           this.unknownFields = unknownFields.build();
340           makeExtensionsImmutable();
341         }
342       }
343       public static final com.google.protobuf.Descriptors.Descriptor
344           getDescriptor() {
345         return org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.internal_static_org_opendaylight_controller_cluster_raft_AppendEntries_ReplicatedLogEntry_descriptor;
346       }
347
348       protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
349           internalGetFieldAccessorTable() {
350         return org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.internal_static_org_opendaylight_controller_cluster_raft_AppendEntries_ReplicatedLogEntry_fieldAccessorTable
351             .ensureFieldAccessorsInitialized(
352                 org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.class, org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Builder.class);
353       }
354
355       public static com.google.protobuf.Parser<ReplicatedLogEntry> PARSER =
356           new com.google.protobuf.AbstractParser<ReplicatedLogEntry>() {
357         public ReplicatedLogEntry parsePartialFrom(
358             com.google.protobuf.CodedInputStream input,
359             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
360             throws com.google.protobuf.InvalidProtocolBufferException {
361           return new ReplicatedLogEntry(input, extensionRegistry);
362         }
363       };
364
365       @java.lang.Override
366       public com.google.protobuf.Parser<ReplicatedLogEntry> getParserForType() {
367         return PARSER;
368       }
369
370       public interface PayloadOrBuilder extends
371           com.google.protobuf.GeneratedMessage.
372               ExtendableMessageOrBuilder<Payload> {
373
374         // optional string clientPayloadClassName = 1;
375         /**
376          * <code>optional string clientPayloadClassName = 1;</code>
377          */
378         boolean hasClientPayloadClassName();
379         /**
380          * <code>optional string clientPayloadClassName = 1;</code>
381          */
382         java.lang.String getClientPayloadClassName();
383         /**
384          * <code>optional string clientPayloadClassName = 1;</code>
385          */
386         com.google.protobuf.ByteString
387             getClientPayloadClassNameBytes();
388       }
389       /**
390        * Protobuf type {@code org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry.Payload}
391        */
392       public static final class Payload extends
393           com.google.protobuf.GeneratedMessage.ExtendableMessage<
394             Payload> implements PayloadOrBuilder {
395         // Use Payload.newBuilder() to construct.
396         private Payload(com.google.protobuf.GeneratedMessage.ExtendableBuilder<org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload, ?> builder) {
397           super(builder);
398           this.unknownFields = builder.getUnknownFields();
399         }
400         private Payload(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
401
402         private static final Payload defaultInstance;
403         public static Payload getDefaultInstance() {
404           return defaultInstance;
405         }
406
407         public Payload getDefaultInstanceForType() {
408           return defaultInstance;
409         }
410
411         private final com.google.protobuf.UnknownFieldSet unknownFields;
412         @java.lang.Override
413         public final com.google.protobuf.UnknownFieldSet
414             getUnknownFields() {
415           return this.unknownFields;
416         }
417         private Payload(
418             com.google.protobuf.CodedInputStream input,
419             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
420             throws com.google.protobuf.InvalidProtocolBufferException {
421           initFields();
422           int mutable_bitField0_ = 0;
423           com.google.protobuf.UnknownFieldSet.Builder unknownFields =
424               com.google.protobuf.UnknownFieldSet.newBuilder();
425           try {
426             boolean done = false;
427             while (!done) {
428               int tag = input.readTag();
429               switch (tag) {
430                 case 0:
431                   done = true;
432                   break;
433                 default: {
434                   if (!parseUnknownField(input, unknownFields,
435                                          extensionRegistry, tag)) {
436                     done = true;
437                   }
438                   break;
439                 }
440                 case 10: {
441                   bitField0_ |= 0x00000001;
442                   clientPayloadClassName_ = input.readBytes();
443                   break;
444                 }
445               }
446             }
447           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
448             throw e.setUnfinishedMessage(this);
449           } catch (java.io.IOException e) {
450             throw new com.google.protobuf.InvalidProtocolBufferException(
451                 e.getMessage()).setUnfinishedMessage(this);
452           } finally {
453             this.unknownFields = unknownFields.build();
454             makeExtensionsImmutable();
455           }
456         }
457         public static final com.google.protobuf.Descriptors.Descriptor
458             getDescriptor() {
459           return org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.internal_static_org_opendaylight_controller_cluster_raft_AppendEntries_ReplicatedLogEntry_Payload_descriptor;
460         }
461
462         protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
463             internalGetFieldAccessorTable() {
464           return org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.internal_static_org_opendaylight_controller_cluster_raft_AppendEntries_ReplicatedLogEntry_Payload_fieldAccessorTable
465               .ensureFieldAccessorsInitialized(
466                   org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload.class, org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload.Builder.class);
467         }
468
469         public static com.google.protobuf.Parser<Payload> PARSER =
470             new com.google.protobuf.AbstractParser<Payload>() {
471           public Payload parsePartialFrom(
472               com.google.protobuf.CodedInputStream input,
473               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
474               throws com.google.protobuf.InvalidProtocolBufferException {
475             return new Payload(input, extensionRegistry);
476           }
477         };
478
479         @java.lang.Override
480         public com.google.protobuf.Parser<Payload> getParserForType() {
481           return PARSER;
482         }
483
484         private int bitField0_;
485         // optional string clientPayloadClassName = 1;
486         public static final int CLIENTPAYLOADCLASSNAME_FIELD_NUMBER = 1;
487         private java.lang.Object clientPayloadClassName_;
488         /**
489          * <code>optional string clientPayloadClassName = 1;</code>
490          */
491         public boolean hasClientPayloadClassName() {
492           return ((bitField0_ & 0x00000001) == 0x00000001);
493         }
494         /**
495          * <code>optional string clientPayloadClassName = 1;</code>
496          */
497         public java.lang.String getClientPayloadClassName() {
498           java.lang.Object ref = clientPayloadClassName_;
499           if (ref instanceof java.lang.String) {
500             return (java.lang.String) ref;
501           } else {
502             com.google.protobuf.ByteString bs =
503                 (com.google.protobuf.ByteString) ref;
504             java.lang.String s = bs.toStringUtf8();
505             if (bs.isValidUtf8()) {
506               clientPayloadClassName_ = s;
507             }
508             return s;
509           }
510         }
511         /**
512          * <code>optional string clientPayloadClassName = 1;</code>
513          */
514         public com.google.protobuf.ByteString
515             getClientPayloadClassNameBytes() {
516           java.lang.Object ref = clientPayloadClassName_;
517           if (ref instanceof java.lang.String) {
518             com.google.protobuf.ByteString b =
519                 com.google.protobuf.ByteString.copyFromUtf8(
520                     (java.lang.String) ref);
521             clientPayloadClassName_ = b;
522             return b;
523           } else {
524             return (com.google.protobuf.ByteString) ref;
525           }
526         }
527
528         private void initFields() {
529           clientPayloadClassName_ = "";
530         }
531         private byte memoizedIsInitialized = -1;
532         public final boolean isInitialized() {
533           byte isInitialized = memoizedIsInitialized;
534           if (isInitialized != -1) return isInitialized == 1;
535
536           if (!extensionsAreInitialized()) {
537             memoizedIsInitialized = 0;
538             return false;
539           }
540           memoizedIsInitialized = 1;
541           return true;
542         }
543
544         public void writeTo(com.google.protobuf.CodedOutputStream output)
545                             throws java.io.IOException {
546           getSerializedSize();
547           com.google.protobuf.GeneratedMessage
548             .ExtendableMessage<org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload>.ExtensionWriter extensionWriter =
549               newExtensionWriter();
550           if (((bitField0_ & 0x00000001) == 0x00000001)) {
551             output.writeBytes(1, getClientPayloadClassNameBytes());
552           }
553           extensionWriter.writeUntil(101, output);
554           getUnknownFields().writeTo(output);
555         }
556
557         private int memoizedSerializedSize = -1;
558         public int getSerializedSize() {
559           int size = memoizedSerializedSize;
560           if (size != -1) return size;
561
562           size = 0;
563           if (((bitField0_ & 0x00000001) == 0x00000001)) {
564             size += com.google.protobuf.CodedOutputStream
565               .computeBytesSize(1, getClientPayloadClassNameBytes());
566           }
567           size += extensionsSerializedSize();
568           size += getUnknownFields().getSerializedSize();
569           memoizedSerializedSize = size;
570           return size;
571         }
572
573         private static final long serialVersionUID = 0L;
574         @java.lang.Override
575         protected java.lang.Object writeReplace()
576             throws java.io.ObjectStreamException {
577           return super.writeReplace();
578         }
579
580         public static org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload parseFrom(
581             com.google.protobuf.ByteString data)
582             throws com.google.protobuf.InvalidProtocolBufferException {
583           return PARSER.parseFrom(data);
584         }
585         public static org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload parseFrom(
586             com.google.protobuf.ByteString data,
587             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
588             throws com.google.protobuf.InvalidProtocolBufferException {
589           return PARSER.parseFrom(data, extensionRegistry);
590         }
591         public static org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload parseFrom(byte[] data)
592             throws com.google.protobuf.InvalidProtocolBufferException {
593           return PARSER.parseFrom(data);
594         }
595         public static org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload parseFrom(
596             byte[] data,
597             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
598             throws com.google.protobuf.InvalidProtocolBufferException {
599           return PARSER.parseFrom(data, extensionRegistry);
600         }
601         public static org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload parseFrom(java.io.InputStream input)
602             throws java.io.IOException {
603           return PARSER.parseFrom(input);
604         }
605         public static org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload parseFrom(
606             java.io.InputStream input,
607             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
608             throws java.io.IOException {
609           return PARSER.parseFrom(input, extensionRegistry);
610         }
611         public static org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload parseDelimitedFrom(java.io.InputStream input)
612             throws java.io.IOException {
613           return PARSER.parseDelimitedFrom(input);
614         }
615         public static org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload parseDelimitedFrom(
616             java.io.InputStream input,
617             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
618             throws java.io.IOException {
619           return PARSER.parseDelimitedFrom(input, extensionRegistry);
620         }
621         public static org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload parseFrom(
622             com.google.protobuf.CodedInputStream input)
623             throws java.io.IOException {
624           return PARSER.parseFrom(input);
625         }
626         public static org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload parseFrom(
627             com.google.protobuf.CodedInputStream input,
628             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
629             throws java.io.IOException {
630           return PARSER.parseFrom(input, extensionRegistry);
631         }
632
633         public static Builder newBuilder() { return Builder.create(); }
634         public Builder newBuilderForType() { return newBuilder(); }
635         public static Builder newBuilder(org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload prototype) {
636           return newBuilder().mergeFrom(prototype);
637         }
638         public Builder toBuilder() { return newBuilder(this); }
639
640         @java.lang.Override
641         protected Builder newBuilderForType(
642             com.google.protobuf.GeneratedMessage.BuilderParent parent) {
643           Builder builder = new Builder(parent);
644           return builder;
645         }
646         /**
647          * Protobuf type {@code org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry.Payload}
648          */
649         public static final class Builder extends
650             com.google.protobuf.GeneratedMessage.ExtendableBuilder<
651               org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload, Builder> implements org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.PayloadOrBuilder {
652           public static final com.google.protobuf.Descriptors.Descriptor
653               getDescriptor() {
654             return org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.internal_static_org_opendaylight_controller_cluster_raft_AppendEntries_ReplicatedLogEntry_Payload_descriptor;
655           }
656
657           protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
658               internalGetFieldAccessorTable() {
659             return org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.internal_static_org_opendaylight_controller_cluster_raft_AppendEntries_ReplicatedLogEntry_Payload_fieldAccessorTable
660                 .ensureFieldAccessorsInitialized(
661                     org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload.class, org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload.Builder.class);
662           }
663
664           // Construct using org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload.newBuilder()
665           private Builder() {
666             maybeForceBuilderInitialization();
667           }
668
669           private Builder(
670               com.google.protobuf.GeneratedMessage.BuilderParent parent) {
671             super(parent);
672             maybeForceBuilderInitialization();
673           }
674           private void maybeForceBuilderInitialization() {
675             if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
676             }
677           }
678           private static Builder create() {
679             return new Builder();
680           }
681
682           public Builder clear() {
683             super.clear();
684             clientPayloadClassName_ = "";
685             bitField0_ = (bitField0_ & ~0x00000001);
686             return this;
687           }
688
689           public Builder clone() {
690             return create().mergeFrom(buildPartial());
691           }
692
693           public com.google.protobuf.Descriptors.Descriptor
694               getDescriptorForType() {
695             return org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.internal_static_org_opendaylight_controller_cluster_raft_AppendEntries_ReplicatedLogEntry_Payload_descriptor;
696           }
697
698           public org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload getDefaultInstanceForType() {
699             return org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload.getDefaultInstance();
700           }
701
702           public org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload build() {
703             org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload result = buildPartial();
704             if (!result.isInitialized()) {
705               throw newUninitializedMessageException(result);
706             }
707             return result;
708           }
709
710           public org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload buildPartial() {
711             org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload result = new org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload(this);
712             int from_bitField0_ = bitField0_;
713             int to_bitField0_ = 0;
714             if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
715               to_bitField0_ |= 0x00000001;
716             }
717             result.clientPayloadClassName_ = clientPayloadClassName_;
718             result.bitField0_ = to_bitField0_;
719             onBuilt();
720             return result;
721           }
722
723           public Builder mergeFrom(com.google.protobuf.Message other) {
724             if (other instanceof org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload) {
725               return mergeFrom((org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload)other);
726             } else {
727               super.mergeFrom(other);
728               return this;
729             }
730           }
731
732           public Builder mergeFrom(org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload other) {
733             if (other == org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload.getDefaultInstance()) return this;
734             if (other.hasClientPayloadClassName()) {
735               bitField0_ |= 0x00000001;
736               clientPayloadClassName_ = other.clientPayloadClassName_;
737               onChanged();
738             }
739             this.mergeExtensionFields(other);
740             this.mergeUnknownFields(other.getUnknownFields());
741             return this;
742           }
743
744           public final boolean isInitialized() {
745             if (!extensionsAreInitialized()) {
746
747               return false;
748             }
749             return true;
750           }
751
752           public Builder mergeFrom(
753               com.google.protobuf.CodedInputStream input,
754               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
755               throws java.io.IOException {
756             org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload parsedMessage = null;
757             try {
758               parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
759             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
760               parsedMessage = (org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload) e.getUnfinishedMessage();
761               throw e;
762             } finally {
763               if (parsedMessage != null) {
764                 mergeFrom(parsedMessage);
765               }
766             }
767             return this;
768           }
769           private int bitField0_;
770
771           // optional string clientPayloadClassName = 1;
772           private java.lang.Object clientPayloadClassName_ = "";
773           /**
774            * <code>optional string clientPayloadClassName = 1;</code>
775            */
776           public boolean hasClientPayloadClassName() {
777             return ((bitField0_ & 0x00000001) == 0x00000001);
778           }
779           /**
780            * <code>optional string clientPayloadClassName = 1;</code>
781            */
782           public java.lang.String getClientPayloadClassName() {
783             java.lang.Object ref = clientPayloadClassName_;
784             if (!(ref instanceof java.lang.String)) {
785               java.lang.String s = ((com.google.protobuf.ByteString) ref)
786                   .toStringUtf8();
787               clientPayloadClassName_ = s;
788               return s;
789             } else {
790               return (java.lang.String) ref;
791             }
792           }
793           /**
794            * <code>optional string clientPayloadClassName = 1;</code>
795            */
796           public com.google.protobuf.ByteString
797               getClientPayloadClassNameBytes() {
798             java.lang.Object ref = clientPayloadClassName_;
799             if (ref instanceof String) {
800               com.google.protobuf.ByteString b =
801                   com.google.protobuf.ByteString.copyFromUtf8(
802                       (java.lang.String) ref);
803               clientPayloadClassName_ = b;
804               return b;
805             } else {
806               return (com.google.protobuf.ByteString) ref;
807             }
808           }
809           /**
810            * <code>optional string clientPayloadClassName = 1;</code>
811            */
812           public Builder setClientPayloadClassName(
813               java.lang.String value) {
814             if (value == null) {
815     throw new NullPointerException();
816   }
817   bitField0_ |= 0x00000001;
818             clientPayloadClassName_ = value;
819             onChanged();
820             return this;
821           }
822           /**
823            * <code>optional string clientPayloadClassName = 1;</code>
824            */
825           public Builder clearClientPayloadClassName() {
826             bitField0_ = (bitField0_ & ~0x00000001);
827             clientPayloadClassName_ = getDefaultInstance().getClientPayloadClassName();
828             onChanged();
829             return this;
830           }
831           /**
832            * <code>optional string clientPayloadClassName = 1;</code>
833            */
834           public Builder setClientPayloadClassNameBytes(
835               com.google.protobuf.ByteString value) {
836             if (value == null) {
837     throw new NullPointerException();
838   }
839   bitField0_ |= 0x00000001;
840             clientPayloadClassName_ = value;
841             onChanged();
842             return this;
843           }
844
845           // @@protoc_insertion_point(builder_scope:org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry.Payload)
846         }
847
848         static {
849           defaultInstance = new Payload(true);
850           defaultInstance.initFields();
851         }
852
853         // @@protoc_insertion_point(class_scope:org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry.Payload)
854       }
855
856       private int bitField0_;
857       // optional int64 term = 1;
858       public static final int TERM_FIELD_NUMBER = 1;
859       private long term_;
860       /**
861        * <code>optional int64 term = 1;</code>
862        */
863       public boolean hasTerm() {
864         return ((bitField0_ & 0x00000001) == 0x00000001);
865       }
866       /**
867        * <code>optional int64 term = 1;</code>
868        */
869       public long getTerm() {
870         return term_;
871       }
872
873       // optional int64 index = 2;
874       public static final int INDEX_FIELD_NUMBER = 2;
875       private long index_;
876       /**
877        * <code>optional int64 index = 2;</code>
878        */
879       public boolean hasIndex() {
880         return ((bitField0_ & 0x00000002) == 0x00000002);
881       }
882       /**
883        * <code>optional int64 index = 2;</code>
884        */
885       public long getIndex() {
886         return index_;
887       }
888
889       // optional .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry.Payload data = 3;
890       public static final int DATA_FIELD_NUMBER = 3;
891       private org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload data_;
892       /**
893        * <code>optional .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry.Payload data = 3;</code>
894        */
895       public boolean hasData() {
896         return ((bitField0_ & 0x00000004) == 0x00000004);
897       }
898       /**
899        * <code>optional .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry.Payload data = 3;</code>
900        */
901       public org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload getData() {
902         return data_;
903       }
904       /**
905        * <code>optional .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry.Payload data = 3;</code>
906        */
907       public org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.PayloadOrBuilder getDataOrBuilder() {
908         return data_;
909       }
910
911       private void initFields() {
912         term_ = 0L;
913         index_ = 0L;
914         data_ = org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload.getDefaultInstance();
915       }
916       private byte memoizedIsInitialized = -1;
917       public final boolean isInitialized() {
918         byte isInitialized = memoizedIsInitialized;
919         if (isInitialized != -1) return isInitialized == 1;
920
921         if (hasData()) {
922           if (!getData().isInitialized()) {
923             memoizedIsInitialized = 0;
924             return false;
925           }
926         }
927         memoizedIsInitialized = 1;
928         return true;
929       }
930
931       public void writeTo(com.google.protobuf.CodedOutputStream output)
932                           throws java.io.IOException {
933         getSerializedSize();
934         if (((bitField0_ & 0x00000001) == 0x00000001)) {
935           output.writeInt64(1, term_);
936         }
937         if (((bitField0_ & 0x00000002) == 0x00000002)) {
938           output.writeInt64(2, index_);
939         }
940         if (((bitField0_ & 0x00000004) == 0x00000004)) {
941           output.writeMessage(3, data_);
942         }
943         getUnknownFields().writeTo(output);
944       }
945
946       private int memoizedSerializedSize = -1;
947       public int getSerializedSize() {
948         int size = memoizedSerializedSize;
949         if (size != -1) return size;
950
951         size = 0;
952         if (((bitField0_ & 0x00000001) == 0x00000001)) {
953           size += com.google.protobuf.CodedOutputStream
954             .computeInt64Size(1, term_);
955         }
956         if (((bitField0_ & 0x00000002) == 0x00000002)) {
957           size += com.google.protobuf.CodedOutputStream
958             .computeInt64Size(2, index_);
959         }
960         if (((bitField0_ & 0x00000004) == 0x00000004)) {
961           size += com.google.protobuf.CodedOutputStream
962             .computeMessageSize(3, data_);
963         }
964         size += getUnknownFields().getSerializedSize();
965         memoizedSerializedSize = size;
966         return size;
967       }
968
969       private static final long serialVersionUID = 0L;
970       @java.lang.Override
971       protected java.lang.Object writeReplace()
972           throws java.io.ObjectStreamException {
973         return super.writeReplace();
974       }
975
976       public static org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry parseFrom(
977           com.google.protobuf.ByteString data)
978           throws com.google.protobuf.InvalidProtocolBufferException {
979         return PARSER.parseFrom(data);
980       }
981       public static org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry parseFrom(
982           com.google.protobuf.ByteString data,
983           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
984           throws com.google.protobuf.InvalidProtocolBufferException {
985         return PARSER.parseFrom(data, extensionRegistry);
986       }
987       public static org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry parseFrom(byte[] data)
988           throws com.google.protobuf.InvalidProtocolBufferException {
989         return PARSER.parseFrom(data);
990       }
991       public static org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry parseFrom(
992           byte[] data,
993           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
994           throws com.google.protobuf.InvalidProtocolBufferException {
995         return PARSER.parseFrom(data, extensionRegistry);
996       }
997       public static org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry parseFrom(java.io.InputStream input)
998           throws java.io.IOException {
999         return PARSER.parseFrom(input);
1000       }
1001       public static org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry parseFrom(
1002           java.io.InputStream input,
1003           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1004           throws java.io.IOException {
1005         return PARSER.parseFrom(input, extensionRegistry);
1006       }
1007       public static org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry parseDelimitedFrom(java.io.InputStream input)
1008           throws java.io.IOException {
1009         return PARSER.parseDelimitedFrom(input);
1010       }
1011       public static org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry parseDelimitedFrom(
1012           java.io.InputStream input,
1013           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1014           throws java.io.IOException {
1015         return PARSER.parseDelimitedFrom(input, extensionRegistry);
1016       }
1017       public static org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry parseFrom(
1018           com.google.protobuf.CodedInputStream input)
1019           throws java.io.IOException {
1020         return PARSER.parseFrom(input);
1021       }
1022       public static org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry parseFrom(
1023           com.google.protobuf.CodedInputStream input,
1024           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1025           throws java.io.IOException {
1026         return PARSER.parseFrom(input, extensionRegistry);
1027       }
1028
1029       public static Builder newBuilder() { return Builder.create(); }
1030       public Builder newBuilderForType() { return newBuilder(); }
1031       public static Builder newBuilder(org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry prototype) {
1032         return newBuilder().mergeFrom(prototype);
1033       }
1034       public Builder toBuilder() { return newBuilder(this); }
1035
1036       @java.lang.Override
1037       protected Builder newBuilderForType(
1038           com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1039         Builder builder = new Builder(parent);
1040         return builder;
1041       }
1042       /**
1043        * Protobuf type {@code org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry}
1044        */
1045       public static final class Builder extends
1046           com.google.protobuf.GeneratedMessage.Builder<Builder>
1047          implements org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntryOrBuilder {
1048         public static final com.google.protobuf.Descriptors.Descriptor
1049             getDescriptor() {
1050           return org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.internal_static_org_opendaylight_controller_cluster_raft_AppendEntries_ReplicatedLogEntry_descriptor;
1051         }
1052
1053         protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1054             internalGetFieldAccessorTable() {
1055           return org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.internal_static_org_opendaylight_controller_cluster_raft_AppendEntries_ReplicatedLogEntry_fieldAccessorTable
1056               .ensureFieldAccessorsInitialized(
1057                   org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.class, org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Builder.class);
1058         }
1059
1060         // Construct using org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.newBuilder()
1061         private Builder() {
1062           maybeForceBuilderInitialization();
1063         }
1064
1065         private Builder(
1066             com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1067           super(parent);
1068           maybeForceBuilderInitialization();
1069         }
1070         private void maybeForceBuilderInitialization() {
1071           if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
1072             getDataFieldBuilder();
1073           }
1074         }
1075         private static Builder create() {
1076           return new Builder();
1077         }
1078
1079         public Builder clear() {
1080           super.clear();
1081           term_ = 0L;
1082           bitField0_ = (bitField0_ & ~0x00000001);
1083           index_ = 0L;
1084           bitField0_ = (bitField0_ & ~0x00000002);
1085           if (dataBuilder_ == null) {
1086             data_ = org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload.getDefaultInstance();
1087           } else {
1088             dataBuilder_.clear();
1089           }
1090           bitField0_ = (bitField0_ & ~0x00000004);
1091           return this;
1092         }
1093
1094         public Builder clone() {
1095           return create().mergeFrom(buildPartial());
1096         }
1097
1098         public com.google.protobuf.Descriptors.Descriptor
1099             getDescriptorForType() {
1100           return org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.internal_static_org_opendaylight_controller_cluster_raft_AppendEntries_ReplicatedLogEntry_descriptor;
1101         }
1102
1103         public org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry getDefaultInstanceForType() {
1104           return org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.getDefaultInstance();
1105         }
1106
1107         public org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry build() {
1108           org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry result = buildPartial();
1109           if (!result.isInitialized()) {
1110             throw newUninitializedMessageException(result);
1111           }
1112           return result;
1113         }
1114
1115         public org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry buildPartial() {
1116           org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry result = new org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry(this);
1117           int from_bitField0_ = bitField0_;
1118           int to_bitField0_ = 0;
1119           if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
1120             to_bitField0_ |= 0x00000001;
1121           }
1122           result.term_ = term_;
1123           if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
1124             to_bitField0_ |= 0x00000002;
1125           }
1126           result.index_ = index_;
1127           if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
1128             to_bitField0_ |= 0x00000004;
1129           }
1130           if (dataBuilder_ == null) {
1131             result.data_ = data_;
1132           } else {
1133             result.data_ = dataBuilder_.build();
1134           }
1135           result.bitField0_ = to_bitField0_;
1136           onBuilt();
1137           return result;
1138         }
1139
1140         public Builder mergeFrom(com.google.protobuf.Message other) {
1141           if (other instanceof org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry) {
1142             return mergeFrom((org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry)other);
1143           } else {
1144             super.mergeFrom(other);
1145             return this;
1146           }
1147         }
1148
1149         public Builder mergeFrom(org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry other) {
1150           if (other == org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.getDefaultInstance()) return this;
1151           if (other.hasTerm()) {
1152             setTerm(other.getTerm());
1153           }
1154           if (other.hasIndex()) {
1155             setIndex(other.getIndex());
1156           }
1157           if (other.hasData()) {
1158             mergeData(other.getData());
1159           }
1160           this.mergeUnknownFields(other.getUnknownFields());
1161           return this;
1162         }
1163
1164         public final boolean isInitialized() {
1165           if (hasData()) {
1166             if (!getData().isInitialized()) {
1167
1168               return false;
1169             }
1170           }
1171           return true;
1172         }
1173
1174         public Builder mergeFrom(
1175             com.google.protobuf.CodedInputStream input,
1176             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1177             throws java.io.IOException {
1178           org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry parsedMessage = null;
1179           try {
1180             parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1181           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1182             parsedMessage = (org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry) e.getUnfinishedMessage();
1183             throw e;
1184           } finally {
1185             if (parsedMessage != null) {
1186               mergeFrom(parsedMessage);
1187             }
1188           }
1189           return this;
1190         }
1191         private int bitField0_;
1192
1193         // optional int64 term = 1;
1194         private long term_ ;
1195         /**
1196          * <code>optional int64 term = 1;</code>
1197          */
1198         public boolean hasTerm() {
1199           return ((bitField0_ & 0x00000001) == 0x00000001);
1200         }
1201         /**
1202          * <code>optional int64 term = 1;</code>
1203          */
1204         public long getTerm() {
1205           return term_;
1206         }
1207         /**
1208          * <code>optional int64 term = 1;</code>
1209          */
1210         public Builder setTerm(long value) {
1211           bitField0_ |= 0x00000001;
1212           term_ = value;
1213           onChanged();
1214           return this;
1215         }
1216         /**
1217          * <code>optional int64 term = 1;</code>
1218          */
1219         public Builder clearTerm() {
1220           bitField0_ = (bitField0_ & ~0x00000001);
1221           term_ = 0L;
1222           onChanged();
1223           return this;
1224         }
1225
1226         // optional int64 index = 2;
1227         private long index_ ;
1228         /**
1229          * <code>optional int64 index = 2;</code>
1230          */
1231         public boolean hasIndex() {
1232           return ((bitField0_ & 0x00000002) == 0x00000002);
1233         }
1234         /**
1235          * <code>optional int64 index = 2;</code>
1236          */
1237         public long getIndex() {
1238           return index_;
1239         }
1240         /**
1241          * <code>optional int64 index = 2;</code>
1242          */
1243         public Builder setIndex(long value) {
1244           bitField0_ |= 0x00000002;
1245           index_ = value;
1246           onChanged();
1247           return this;
1248         }
1249         /**
1250          * <code>optional int64 index = 2;</code>
1251          */
1252         public Builder clearIndex() {
1253           bitField0_ = (bitField0_ & ~0x00000002);
1254           index_ = 0L;
1255           onChanged();
1256           return this;
1257         }
1258
1259         // optional .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry.Payload data = 3;
1260         private org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload data_ = org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload.getDefaultInstance();
1261         private com.google.protobuf.SingleFieldBuilder<
1262             org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload, org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload.Builder, org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.PayloadOrBuilder> dataBuilder_;
1263         /**
1264          * <code>optional .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry.Payload data = 3;</code>
1265          */
1266         public boolean hasData() {
1267           return ((bitField0_ & 0x00000004) == 0x00000004);
1268         }
1269         /**
1270          * <code>optional .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry.Payload data = 3;</code>
1271          */
1272         public org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload getData() {
1273           if (dataBuilder_ == null) {
1274             return data_;
1275           } else {
1276             return dataBuilder_.getMessage();
1277           }
1278         }
1279         /**
1280          * <code>optional .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry.Payload data = 3;</code>
1281          */
1282         public Builder setData(org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload value) {
1283           if (dataBuilder_ == null) {
1284             if (value == null) {
1285               throw new NullPointerException();
1286             }
1287             data_ = value;
1288             onChanged();
1289           } else {
1290             dataBuilder_.setMessage(value);
1291           }
1292           bitField0_ |= 0x00000004;
1293           return this;
1294         }
1295         /**
1296          * <code>optional .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry.Payload data = 3;</code>
1297          */
1298         public Builder setData(
1299             org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload.Builder builderForValue) {
1300           if (dataBuilder_ == null) {
1301             data_ = builderForValue.build();
1302             onChanged();
1303           } else {
1304             dataBuilder_.setMessage(builderForValue.build());
1305           }
1306           bitField0_ |= 0x00000004;
1307           return this;
1308         }
1309         /**
1310          * <code>optional .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry.Payload data = 3;</code>
1311          */
1312         public Builder mergeData(org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload value) {
1313           if (dataBuilder_ == null) {
1314             if (((bitField0_ & 0x00000004) == 0x00000004) &&
1315                 data_ != org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload.getDefaultInstance()) {
1316               data_ =
1317                 org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload.newBuilder(data_).mergeFrom(value).buildPartial();
1318             } else {
1319               data_ = value;
1320             }
1321             onChanged();
1322           } else {
1323             dataBuilder_.mergeFrom(value);
1324           }
1325           bitField0_ |= 0x00000004;
1326           return this;
1327         }
1328         /**
1329          * <code>optional .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry.Payload data = 3;</code>
1330          */
1331         public Builder clearData() {
1332           if (dataBuilder_ == null) {
1333             data_ = org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload.getDefaultInstance();
1334             onChanged();
1335           } else {
1336             dataBuilder_.clear();
1337           }
1338           bitField0_ = (bitField0_ & ~0x00000004);
1339           return this;
1340         }
1341         /**
1342          * <code>optional .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry.Payload data = 3;</code>
1343          */
1344         public org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload.Builder getDataBuilder() {
1345           bitField0_ |= 0x00000004;
1346           onChanged();
1347           return getDataFieldBuilder().getBuilder();
1348         }
1349         /**
1350          * <code>optional .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry.Payload data = 3;</code>
1351          */
1352         public org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.PayloadOrBuilder getDataOrBuilder() {
1353           if (dataBuilder_ != null) {
1354             return dataBuilder_.getMessageOrBuilder();
1355           } else {
1356             return data_;
1357           }
1358         }
1359         /**
1360          * <code>optional .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry.Payload data = 3;</code>
1361          */
1362         private com.google.protobuf.SingleFieldBuilder<
1363             org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload, org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload.Builder, org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.PayloadOrBuilder>
1364             getDataFieldBuilder() {
1365           if (dataBuilder_ == null) {
1366             dataBuilder_ = new com.google.protobuf.SingleFieldBuilder<
1367                 org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload, org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload.Builder, org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.PayloadOrBuilder>(
1368                     data_,
1369                     getParentForChildren(),
1370                     isClean());
1371             data_ = null;
1372           }
1373           return dataBuilder_;
1374         }
1375
1376         // @@protoc_insertion_point(builder_scope:org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry)
1377       }
1378
1379       static {
1380         defaultInstance = new ReplicatedLogEntry(true);
1381         defaultInstance.initFields();
1382       }
1383
1384       // @@protoc_insertion_point(class_scope:org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry)
1385     }
1386
1387     private int bitField0_;
1388     // optional int64 term = 1;
1389     public static final int TERM_FIELD_NUMBER = 1;
1390     private long term_;
1391     /**
1392      * <code>optional int64 term = 1;</code>
1393      */
1394     public boolean hasTerm() {
1395       return ((bitField0_ & 0x00000001) == 0x00000001);
1396     }
1397     /**
1398      * <code>optional int64 term = 1;</code>
1399      */
1400     public long getTerm() {
1401       return term_;
1402     }
1403
1404     // optional string leaderId = 2;
1405     public static final int LEADERID_FIELD_NUMBER = 2;
1406     private java.lang.Object leaderId_;
1407     /**
1408      * <code>optional string leaderId = 2;</code>
1409      */
1410     public boolean hasLeaderId() {
1411       return ((bitField0_ & 0x00000002) == 0x00000002);
1412     }
1413     /**
1414      * <code>optional string leaderId = 2;</code>
1415      */
1416     public java.lang.String getLeaderId() {
1417       java.lang.Object ref = leaderId_;
1418       if (ref instanceof java.lang.String) {
1419         return (java.lang.String) ref;
1420       } else {
1421         com.google.protobuf.ByteString bs =
1422             (com.google.protobuf.ByteString) ref;
1423         java.lang.String s = bs.toStringUtf8();
1424         if (bs.isValidUtf8()) {
1425           leaderId_ = s;
1426         }
1427         return s;
1428       }
1429     }
1430     /**
1431      * <code>optional string leaderId = 2;</code>
1432      */
1433     public com.google.protobuf.ByteString
1434         getLeaderIdBytes() {
1435       java.lang.Object ref = leaderId_;
1436       if (ref instanceof java.lang.String) {
1437         com.google.protobuf.ByteString b =
1438             com.google.protobuf.ByteString.copyFromUtf8(
1439                 (java.lang.String) ref);
1440         leaderId_ = b;
1441         return b;
1442       } else {
1443         return (com.google.protobuf.ByteString) ref;
1444       }
1445     }
1446
1447     // optional int64 prevLogIndex = 3;
1448     public static final int PREVLOGINDEX_FIELD_NUMBER = 3;
1449     private long prevLogIndex_;
1450     /**
1451      * <code>optional int64 prevLogIndex = 3;</code>
1452      */
1453     public boolean hasPrevLogIndex() {
1454       return ((bitField0_ & 0x00000004) == 0x00000004);
1455     }
1456     /**
1457      * <code>optional int64 prevLogIndex = 3;</code>
1458      */
1459     public long getPrevLogIndex() {
1460       return prevLogIndex_;
1461     }
1462
1463     // optional int64 prevLogTerm = 4;
1464     public static final int PREVLOGTERM_FIELD_NUMBER = 4;
1465     private long prevLogTerm_;
1466     /**
1467      * <code>optional int64 prevLogTerm = 4;</code>
1468      */
1469     public boolean hasPrevLogTerm() {
1470       return ((bitField0_ & 0x00000008) == 0x00000008);
1471     }
1472     /**
1473      * <code>optional int64 prevLogTerm = 4;</code>
1474      */
1475     public long getPrevLogTerm() {
1476       return prevLogTerm_;
1477     }
1478
1479     // repeated .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry logEntries = 5;
1480     public static final int LOGENTRIES_FIELD_NUMBER = 5;
1481     private java.util.List<org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry> logEntries_;
1482     /**
1483      * <code>repeated .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry logEntries = 5;</code>
1484      */
1485     public java.util.List<org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry> getLogEntriesList() {
1486       return logEntries_;
1487     }
1488     /**
1489      * <code>repeated .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry logEntries = 5;</code>
1490      */
1491     public java.util.List<? extends org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntryOrBuilder>
1492         getLogEntriesOrBuilderList() {
1493       return logEntries_;
1494     }
1495     /**
1496      * <code>repeated .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry logEntries = 5;</code>
1497      */
1498     public int getLogEntriesCount() {
1499       return logEntries_.size();
1500     }
1501     /**
1502      * <code>repeated .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry logEntries = 5;</code>
1503      */
1504     public org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry getLogEntries(int index) {
1505       return logEntries_.get(index);
1506     }
1507     /**
1508      * <code>repeated .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry logEntries = 5;</code>
1509      */
1510     public org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntryOrBuilder getLogEntriesOrBuilder(
1511         int index) {
1512       return logEntries_.get(index);
1513     }
1514
1515     // optional int64 leaderCommit = 6;
1516     public static final int LEADERCOMMIT_FIELD_NUMBER = 6;
1517     private long leaderCommit_;
1518     /**
1519      * <code>optional int64 leaderCommit = 6;</code>
1520      */
1521     public boolean hasLeaderCommit() {
1522       return ((bitField0_ & 0x00000010) == 0x00000010);
1523     }
1524     /**
1525      * <code>optional int64 leaderCommit = 6;</code>
1526      */
1527     public long getLeaderCommit() {
1528       return leaderCommit_;
1529     }
1530
1531     private void initFields() {
1532       term_ = 0L;
1533       leaderId_ = "";
1534       prevLogIndex_ = 0L;
1535       prevLogTerm_ = 0L;
1536       logEntries_ = java.util.Collections.emptyList();
1537       leaderCommit_ = 0L;
1538     }
1539     private byte memoizedIsInitialized = -1;
1540     public final boolean isInitialized() {
1541       byte isInitialized = memoizedIsInitialized;
1542       if (isInitialized != -1) return isInitialized == 1;
1543
1544       for (int i = 0; i < getLogEntriesCount(); i++) {
1545         if (!getLogEntries(i).isInitialized()) {
1546           memoizedIsInitialized = 0;
1547           return false;
1548         }
1549       }
1550       memoizedIsInitialized = 1;
1551       return true;
1552     }
1553
1554     public void writeTo(com.google.protobuf.CodedOutputStream output)
1555                         throws java.io.IOException {
1556       getSerializedSize();
1557       if (((bitField0_ & 0x00000001) == 0x00000001)) {
1558         output.writeInt64(1, term_);
1559       }
1560       if (((bitField0_ & 0x00000002) == 0x00000002)) {
1561         output.writeBytes(2, getLeaderIdBytes());
1562       }
1563       if (((bitField0_ & 0x00000004) == 0x00000004)) {
1564         output.writeInt64(3, prevLogIndex_);
1565       }
1566       if (((bitField0_ & 0x00000008) == 0x00000008)) {
1567         output.writeInt64(4, prevLogTerm_);
1568       }
1569       for (int i = 0; i < logEntries_.size(); i++) {
1570         output.writeMessage(5, logEntries_.get(i));
1571       }
1572       if (((bitField0_ & 0x00000010) == 0x00000010)) {
1573         output.writeInt64(6, leaderCommit_);
1574       }
1575       getUnknownFields().writeTo(output);
1576     }
1577
1578     private int memoizedSerializedSize = -1;
1579     public int getSerializedSize() {
1580       int size = memoizedSerializedSize;
1581       if (size != -1) return size;
1582
1583       size = 0;
1584       if (((bitField0_ & 0x00000001) == 0x00000001)) {
1585         size += com.google.protobuf.CodedOutputStream
1586           .computeInt64Size(1, term_);
1587       }
1588       if (((bitField0_ & 0x00000002) == 0x00000002)) {
1589         size += com.google.protobuf.CodedOutputStream
1590           .computeBytesSize(2, getLeaderIdBytes());
1591       }
1592       if (((bitField0_ & 0x00000004) == 0x00000004)) {
1593         size += com.google.protobuf.CodedOutputStream
1594           .computeInt64Size(3, prevLogIndex_);
1595       }
1596       if (((bitField0_ & 0x00000008) == 0x00000008)) {
1597         size += com.google.protobuf.CodedOutputStream
1598           .computeInt64Size(4, prevLogTerm_);
1599       }
1600       for (int i = 0; i < logEntries_.size(); i++) {
1601         size += com.google.protobuf.CodedOutputStream
1602           .computeMessageSize(5, logEntries_.get(i));
1603       }
1604       if (((bitField0_ & 0x00000010) == 0x00000010)) {
1605         size += com.google.protobuf.CodedOutputStream
1606           .computeInt64Size(6, leaderCommit_);
1607       }
1608       size += getUnknownFields().getSerializedSize();
1609       memoizedSerializedSize = size;
1610       return size;
1611     }
1612
1613     private static final long serialVersionUID = 0L;
1614     @java.lang.Override
1615     protected java.lang.Object writeReplace()
1616         throws java.io.ObjectStreamException {
1617       return super.writeReplace();
1618     }
1619
1620     public static org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries parseFrom(
1621         com.google.protobuf.ByteString data)
1622         throws com.google.protobuf.InvalidProtocolBufferException {
1623       return PARSER.parseFrom(data);
1624     }
1625     public static org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries parseFrom(
1626         com.google.protobuf.ByteString data,
1627         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1628         throws com.google.protobuf.InvalidProtocolBufferException {
1629       return PARSER.parseFrom(data, extensionRegistry);
1630     }
1631     public static org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries parseFrom(byte[] data)
1632         throws com.google.protobuf.InvalidProtocolBufferException {
1633       return PARSER.parseFrom(data);
1634     }
1635     public static org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries parseFrom(
1636         byte[] data,
1637         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1638         throws com.google.protobuf.InvalidProtocolBufferException {
1639       return PARSER.parseFrom(data, extensionRegistry);
1640     }
1641     public static org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries parseFrom(java.io.InputStream input)
1642         throws java.io.IOException {
1643       return PARSER.parseFrom(input);
1644     }
1645     public static org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries parseFrom(
1646         java.io.InputStream input,
1647         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1648         throws java.io.IOException {
1649       return PARSER.parseFrom(input, extensionRegistry);
1650     }
1651     public static org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries parseDelimitedFrom(java.io.InputStream input)
1652         throws java.io.IOException {
1653       return PARSER.parseDelimitedFrom(input);
1654     }
1655     public static org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries parseDelimitedFrom(
1656         java.io.InputStream input,
1657         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1658         throws java.io.IOException {
1659       return PARSER.parseDelimitedFrom(input, extensionRegistry);
1660     }
1661     public static org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries parseFrom(
1662         com.google.protobuf.CodedInputStream input)
1663         throws java.io.IOException {
1664       return PARSER.parseFrom(input);
1665     }
1666     public static org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries parseFrom(
1667         com.google.protobuf.CodedInputStream input,
1668         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1669         throws java.io.IOException {
1670       return PARSER.parseFrom(input, extensionRegistry);
1671     }
1672
1673     public static Builder newBuilder() { return Builder.create(); }
1674     public Builder newBuilderForType() { return newBuilder(); }
1675     public static Builder newBuilder(org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries prototype) {
1676       return newBuilder().mergeFrom(prototype);
1677     }
1678     public Builder toBuilder() { return newBuilder(this); }
1679
1680     @java.lang.Override
1681     protected Builder newBuilderForType(
1682         com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1683       Builder builder = new Builder(parent);
1684       return builder;
1685     }
1686     /**
1687      * Protobuf type {@code org.opendaylight.controller.cluster.raft.AppendEntries}
1688      */
1689     public static final class Builder extends
1690         com.google.protobuf.GeneratedMessage.Builder<Builder>
1691        implements org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntriesOrBuilder {
1692       public static final com.google.protobuf.Descriptors.Descriptor
1693           getDescriptor() {
1694         return org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.internal_static_org_opendaylight_controller_cluster_raft_AppendEntries_descriptor;
1695       }
1696
1697       protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1698           internalGetFieldAccessorTable() {
1699         return org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.internal_static_org_opendaylight_controller_cluster_raft_AppendEntries_fieldAccessorTable
1700             .ensureFieldAccessorsInitialized(
1701                 org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.class, org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.Builder.class);
1702       }
1703
1704       // Construct using org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.newBuilder()
1705       private Builder() {
1706         maybeForceBuilderInitialization();
1707       }
1708
1709       private Builder(
1710           com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1711         super(parent);
1712         maybeForceBuilderInitialization();
1713       }
1714       private void maybeForceBuilderInitialization() {
1715         if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
1716           getLogEntriesFieldBuilder();
1717         }
1718       }
1719       private static Builder create() {
1720         return new Builder();
1721       }
1722
1723       public Builder clear() {
1724         super.clear();
1725         term_ = 0L;
1726         bitField0_ = (bitField0_ & ~0x00000001);
1727         leaderId_ = "";
1728         bitField0_ = (bitField0_ & ~0x00000002);
1729         prevLogIndex_ = 0L;
1730         bitField0_ = (bitField0_ & ~0x00000004);
1731         prevLogTerm_ = 0L;
1732         bitField0_ = (bitField0_ & ~0x00000008);
1733         if (logEntriesBuilder_ == null) {
1734           logEntries_ = java.util.Collections.emptyList();
1735           bitField0_ = (bitField0_ & ~0x00000010);
1736         } else {
1737           logEntriesBuilder_.clear();
1738         }
1739         leaderCommit_ = 0L;
1740         bitField0_ = (bitField0_ & ~0x00000020);
1741         return this;
1742       }
1743
1744       public Builder clone() {
1745         return create().mergeFrom(buildPartial());
1746       }
1747
1748       public com.google.protobuf.Descriptors.Descriptor
1749           getDescriptorForType() {
1750         return org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.internal_static_org_opendaylight_controller_cluster_raft_AppendEntries_descriptor;
1751       }
1752
1753       public org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries getDefaultInstanceForType() {
1754         return org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.getDefaultInstance();
1755       }
1756
1757       public org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries build() {
1758         org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries result = buildPartial();
1759         if (!result.isInitialized()) {
1760           throw newUninitializedMessageException(result);
1761         }
1762         return result;
1763       }
1764
1765       public org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries buildPartial() {
1766         org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries result = new org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries(this);
1767         int from_bitField0_ = bitField0_;
1768         int to_bitField0_ = 0;
1769         if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
1770           to_bitField0_ |= 0x00000001;
1771         }
1772         result.term_ = term_;
1773         if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
1774           to_bitField0_ |= 0x00000002;
1775         }
1776         result.leaderId_ = leaderId_;
1777         if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
1778           to_bitField0_ |= 0x00000004;
1779         }
1780         result.prevLogIndex_ = prevLogIndex_;
1781         if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
1782           to_bitField0_ |= 0x00000008;
1783         }
1784         result.prevLogTerm_ = prevLogTerm_;
1785         if (logEntriesBuilder_ == null) {
1786           if (((bitField0_ & 0x00000010) == 0x00000010)) {
1787             logEntries_ = java.util.Collections.unmodifiableList(logEntries_);
1788             bitField0_ = (bitField0_ & ~0x00000010);
1789           }
1790           result.logEntries_ = logEntries_;
1791         } else {
1792           result.logEntries_ = logEntriesBuilder_.build();
1793         }
1794         if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
1795           to_bitField0_ |= 0x00000010;
1796         }
1797         result.leaderCommit_ = leaderCommit_;
1798         result.bitField0_ = to_bitField0_;
1799         onBuilt();
1800         return result;
1801       }
1802
1803       public Builder mergeFrom(com.google.protobuf.Message other) {
1804         if (other instanceof org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries) {
1805           return mergeFrom((org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries)other);
1806         } else {
1807           super.mergeFrom(other);
1808           return this;
1809         }
1810       }
1811
1812       public Builder mergeFrom(org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries other) {
1813         if (other == org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.getDefaultInstance()) return this;
1814         if (other.hasTerm()) {
1815           setTerm(other.getTerm());
1816         }
1817         if (other.hasLeaderId()) {
1818           bitField0_ |= 0x00000002;
1819           leaderId_ = other.leaderId_;
1820           onChanged();
1821         }
1822         if (other.hasPrevLogIndex()) {
1823           setPrevLogIndex(other.getPrevLogIndex());
1824         }
1825         if (other.hasPrevLogTerm()) {
1826           setPrevLogTerm(other.getPrevLogTerm());
1827         }
1828         if (logEntriesBuilder_ == null) {
1829           if (!other.logEntries_.isEmpty()) {
1830             if (logEntries_.isEmpty()) {
1831               logEntries_ = other.logEntries_;
1832               bitField0_ = (bitField0_ & ~0x00000010);
1833             } else {
1834               ensureLogEntriesIsMutable();
1835               logEntries_.addAll(other.logEntries_);
1836             }
1837             onChanged();
1838           }
1839         } else {
1840           if (!other.logEntries_.isEmpty()) {
1841             if (logEntriesBuilder_.isEmpty()) {
1842               logEntriesBuilder_.dispose();
1843               logEntriesBuilder_ = null;
1844               logEntries_ = other.logEntries_;
1845               bitField0_ = (bitField0_ & ~0x00000010);
1846               logEntriesBuilder_ =
1847                 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
1848                    getLogEntriesFieldBuilder() : null;
1849             } else {
1850               logEntriesBuilder_.addAllMessages(other.logEntries_);
1851             }
1852           }
1853         }
1854         if (other.hasLeaderCommit()) {
1855           setLeaderCommit(other.getLeaderCommit());
1856         }
1857         this.mergeUnknownFields(other.getUnknownFields());
1858         return this;
1859       }
1860
1861       public final boolean isInitialized() {
1862         for (int i = 0; i < getLogEntriesCount(); i++) {
1863           if (!getLogEntries(i).isInitialized()) {
1864
1865             return false;
1866           }
1867         }
1868         return true;
1869       }
1870
1871       public Builder mergeFrom(
1872           com.google.protobuf.CodedInputStream input,
1873           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1874           throws java.io.IOException {
1875         org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries parsedMessage = null;
1876         try {
1877           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1878         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1879           parsedMessage = (org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries) e.getUnfinishedMessage();
1880           throw e;
1881         } finally {
1882           if (parsedMessage != null) {
1883             mergeFrom(parsedMessage);
1884           }
1885         }
1886         return this;
1887       }
1888       private int bitField0_;
1889
1890       // optional int64 term = 1;
1891       private long term_ ;
1892       /**
1893        * <code>optional int64 term = 1;</code>
1894        */
1895       public boolean hasTerm() {
1896         return ((bitField0_ & 0x00000001) == 0x00000001);
1897       }
1898       /**
1899        * <code>optional int64 term = 1;</code>
1900        */
1901       public long getTerm() {
1902         return term_;
1903       }
1904       /**
1905        * <code>optional int64 term = 1;</code>
1906        */
1907       public Builder setTerm(long value) {
1908         bitField0_ |= 0x00000001;
1909         term_ = value;
1910         onChanged();
1911         return this;
1912       }
1913       /**
1914        * <code>optional int64 term = 1;</code>
1915        */
1916       public Builder clearTerm() {
1917         bitField0_ = (bitField0_ & ~0x00000001);
1918         term_ = 0L;
1919         onChanged();
1920         return this;
1921       }
1922
1923       // optional string leaderId = 2;
1924       private java.lang.Object leaderId_ = "";
1925       /**
1926        * <code>optional string leaderId = 2;</code>
1927        */
1928       public boolean hasLeaderId() {
1929         return ((bitField0_ & 0x00000002) == 0x00000002);
1930       }
1931       /**
1932        * <code>optional string leaderId = 2;</code>
1933        */
1934       public java.lang.String getLeaderId() {
1935         java.lang.Object ref = leaderId_;
1936         if (!(ref instanceof java.lang.String)) {
1937           java.lang.String s = ((com.google.protobuf.ByteString) ref)
1938               .toStringUtf8();
1939           leaderId_ = s;
1940           return s;
1941         } else {
1942           return (java.lang.String) ref;
1943         }
1944       }
1945       /**
1946        * <code>optional string leaderId = 2;</code>
1947        */
1948       public com.google.protobuf.ByteString
1949           getLeaderIdBytes() {
1950         java.lang.Object ref = leaderId_;
1951         if (ref instanceof String) {
1952           com.google.protobuf.ByteString b =
1953               com.google.protobuf.ByteString.copyFromUtf8(
1954                   (java.lang.String) ref);
1955           leaderId_ = b;
1956           return b;
1957         } else {
1958           return (com.google.protobuf.ByteString) ref;
1959         }
1960       }
1961       /**
1962        * <code>optional string leaderId = 2;</code>
1963        */
1964       public Builder setLeaderId(
1965           java.lang.String value) {
1966         if (value == null) {
1967     throw new NullPointerException();
1968   }
1969   bitField0_ |= 0x00000002;
1970         leaderId_ = value;
1971         onChanged();
1972         return this;
1973       }
1974       /**
1975        * <code>optional string leaderId = 2;</code>
1976        */
1977       public Builder clearLeaderId() {
1978         bitField0_ = (bitField0_ & ~0x00000002);
1979         leaderId_ = getDefaultInstance().getLeaderId();
1980         onChanged();
1981         return this;
1982       }
1983       /**
1984        * <code>optional string leaderId = 2;</code>
1985        */
1986       public Builder setLeaderIdBytes(
1987           com.google.protobuf.ByteString value) {
1988         if (value == null) {
1989     throw new NullPointerException();
1990   }
1991   bitField0_ |= 0x00000002;
1992         leaderId_ = value;
1993         onChanged();
1994         return this;
1995       }
1996
1997       // optional int64 prevLogIndex = 3;
1998       private long prevLogIndex_ ;
1999       /**
2000        * <code>optional int64 prevLogIndex = 3;</code>
2001        */
2002       public boolean hasPrevLogIndex() {
2003         return ((bitField0_ & 0x00000004) == 0x00000004);
2004       }
2005       /**
2006        * <code>optional int64 prevLogIndex = 3;</code>
2007        */
2008       public long getPrevLogIndex() {
2009         return prevLogIndex_;
2010       }
2011       /**
2012        * <code>optional int64 prevLogIndex = 3;</code>
2013        */
2014       public Builder setPrevLogIndex(long value) {
2015         bitField0_ |= 0x00000004;
2016         prevLogIndex_ = value;
2017         onChanged();
2018         return this;
2019       }
2020       /**
2021        * <code>optional int64 prevLogIndex = 3;</code>
2022        */
2023       public Builder clearPrevLogIndex() {
2024         bitField0_ = (bitField0_ & ~0x00000004);
2025         prevLogIndex_ = 0L;
2026         onChanged();
2027         return this;
2028       }
2029
2030       // optional int64 prevLogTerm = 4;
2031       private long prevLogTerm_ ;
2032       /**
2033        * <code>optional int64 prevLogTerm = 4;</code>
2034        */
2035       public boolean hasPrevLogTerm() {
2036         return ((bitField0_ & 0x00000008) == 0x00000008);
2037       }
2038       /**
2039        * <code>optional int64 prevLogTerm = 4;</code>
2040        */
2041       public long getPrevLogTerm() {
2042         return prevLogTerm_;
2043       }
2044       /**
2045        * <code>optional int64 prevLogTerm = 4;</code>
2046        */
2047       public Builder setPrevLogTerm(long value) {
2048         bitField0_ |= 0x00000008;
2049         prevLogTerm_ = value;
2050         onChanged();
2051         return this;
2052       }
2053       /**
2054        * <code>optional int64 prevLogTerm = 4;</code>
2055        */
2056       public Builder clearPrevLogTerm() {
2057         bitField0_ = (bitField0_ & ~0x00000008);
2058         prevLogTerm_ = 0L;
2059         onChanged();
2060         return this;
2061       }
2062
2063       // repeated .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry logEntries = 5;
2064       private java.util.List<org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry> logEntries_ =
2065         java.util.Collections.emptyList();
2066       private void ensureLogEntriesIsMutable() {
2067         if (!((bitField0_ & 0x00000010) == 0x00000010)) {
2068           logEntries_ = new java.util.ArrayList<org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry>(logEntries_);
2069           bitField0_ |= 0x00000010;
2070          }
2071       }
2072
2073       private com.google.protobuf.RepeatedFieldBuilder<
2074           org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry, org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Builder, org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntryOrBuilder> logEntriesBuilder_;
2075
2076       /**
2077        * <code>repeated .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry logEntries = 5;</code>
2078        */
2079       public java.util.List<org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry> getLogEntriesList() {
2080         if (logEntriesBuilder_ == null) {
2081           return java.util.Collections.unmodifiableList(logEntries_);
2082         } else {
2083           return logEntriesBuilder_.getMessageList();
2084         }
2085       }
2086       /**
2087        * <code>repeated .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry logEntries = 5;</code>
2088        */
2089       public int getLogEntriesCount() {
2090         if (logEntriesBuilder_ == null) {
2091           return logEntries_.size();
2092         } else {
2093           return logEntriesBuilder_.getCount();
2094         }
2095       }
2096       /**
2097        * <code>repeated .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry logEntries = 5;</code>
2098        */
2099       public org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry getLogEntries(int index) {
2100         if (logEntriesBuilder_ == null) {
2101           return logEntries_.get(index);
2102         } else {
2103           return logEntriesBuilder_.getMessage(index);
2104         }
2105       }
2106       /**
2107        * <code>repeated .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry logEntries = 5;</code>
2108        */
2109       public Builder setLogEntries(
2110           int index, org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry value) {
2111         if (logEntriesBuilder_ == null) {
2112           if (value == null) {
2113             throw new NullPointerException();
2114           }
2115           ensureLogEntriesIsMutable();
2116           logEntries_.set(index, value);
2117           onChanged();
2118         } else {
2119           logEntriesBuilder_.setMessage(index, value);
2120         }
2121         return this;
2122       }
2123       /**
2124        * <code>repeated .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry logEntries = 5;</code>
2125        */
2126       public Builder setLogEntries(
2127           int index, org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Builder builderForValue) {
2128         if (logEntriesBuilder_ == null) {
2129           ensureLogEntriesIsMutable();
2130           logEntries_.set(index, builderForValue.build());
2131           onChanged();
2132         } else {
2133           logEntriesBuilder_.setMessage(index, builderForValue.build());
2134         }
2135         return this;
2136       }
2137       /**
2138        * <code>repeated .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry logEntries = 5;</code>
2139        */
2140       public Builder addLogEntries(org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry value) {
2141         if (logEntriesBuilder_ == null) {
2142           if (value == null) {
2143             throw new NullPointerException();
2144           }
2145           ensureLogEntriesIsMutable();
2146           logEntries_.add(value);
2147           onChanged();
2148         } else {
2149           logEntriesBuilder_.addMessage(value);
2150         }
2151         return this;
2152       }
2153       /**
2154        * <code>repeated .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry logEntries = 5;</code>
2155        */
2156       public Builder addLogEntries(
2157           int index, org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry value) {
2158         if (logEntriesBuilder_ == null) {
2159           if (value == null) {
2160             throw new NullPointerException();
2161           }
2162           ensureLogEntriesIsMutable();
2163           logEntries_.add(index, value);
2164           onChanged();
2165         } else {
2166           logEntriesBuilder_.addMessage(index, value);
2167         }
2168         return this;
2169       }
2170       /**
2171        * <code>repeated .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry logEntries = 5;</code>
2172        */
2173       public Builder addLogEntries(
2174           org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Builder builderForValue) {
2175         if (logEntriesBuilder_ == null) {
2176           ensureLogEntriesIsMutable();
2177           logEntries_.add(builderForValue.build());
2178           onChanged();
2179         } else {
2180           logEntriesBuilder_.addMessage(builderForValue.build());
2181         }
2182         return this;
2183       }
2184       /**
2185        * <code>repeated .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry logEntries = 5;</code>
2186        */
2187       public Builder addLogEntries(
2188           int index, org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Builder builderForValue) {
2189         if (logEntriesBuilder_ == null) {
2190           ensureLogEntriesIsMutable();
2191           logEntries_.add(index, builderForValue.build());
2192           onChanged();
2193         } else {
2194           logEntriesBuilder_.addMessage(index, builderForValue.build());
2195         }
2196         return this;
2197       }
2198       /**
2199        * <code>repeated .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry logEntries = 5;</code>
2200        */
2201       public Builder addAllLogEntries(
2202           java.lang.Iterable<? extends org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry> values) {
2203         if (logEntriesBuilder_ == null) {
2204           ensureLogEntriesIsMutable();
2205           super.addAll(values, logEntries_);
2206           onChanged();
2207         } else {
2208           logEntriesBuilder_.addAllMessages(values);
2209         }
2210         return this;
2211       }
2212       /**
2213        * <code>repeated .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry logEntries = 5;</code>
2214        */
2215       public Builder clearLogEntries() {
2216         if (logEntriesBuilder_ == null) {
2217           logEntries_ = java.util.Collections.emptyList();
2218           bitField0_ = (bitField0_ & ~0x00000010);
2219           onChanged();
2220         } else {
2221           logEntriesBuilder_.clear();
2222         }
2223         return this;
2224       }
2225       /**
2226        * <code>repeated .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry logEntries = 5;</code>
2227        */
2228       public Builder removeLogEntries(int index) {
2229         if (logEntriesBuilder_ == null) {
2230           ensureLogEntriesIsMutable();
2231           logEntries_.remove(index);
2232           onChanged();
2233         } else {
2234           logEntriesBuilder_.remove(index);
2235         }
2236         return this;
2237       }
2238       /**
2239        * <code>repeated .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry logEntries = 5;</code>
2240        */
2241       public org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Builder getLogEntriesBuilder(
2242           int index) {
2243         return getLogEntriesFieldBuilder().getBuilder(index);
2244       }
2245       /**
2246        * <code>repeated .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry logEntries = 5;</code>
2247        */
2248       public org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntryOrBuilder getLogEntriesOrBuilder(
2249           int index) {
2250         if (logEntriesBuilder_ == null) {
2251           return logEntries_.get(index);  } else {
2252           return logEntriesBuilder_.getMessageOrBuilder(index);
2253         }
2254       }
2255       /**
2256        * <code>repeated .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry logEntries = 5;</code>
2257        */
2258       public java.util.List<? extends org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntryOrBuilder>
2259            getLogEntriesOrBuilderList() {
2260         if (logEntriesBuilder_ != null) {
2261           return logEntriesBuilder_.getMessageOrBuilderList();
2262         } else {
2263           return java.util.Collections.unmodifiableList(logEntries_);
2264         }
2265       }
2266       /**
2267        * <code>repeated .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry logEntries = 5;</code>
2268        */
2269       public org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Builder addLogEntriesBuilder() {
2270         return getLogEntriesFieldBuilder().addBuilder(
2271             org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.getDefaultInstance());
2272       }
2273       /**
2274        * <code>repeated .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry logEntries = 5;</code>
2275        */
2276       public org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Builder addLogEntriesBuilder(
2277           int index) {
2278         return getLogEntriesFieldBuilder().addBuilder(
2279             index, org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.getDefaultInstance());
2280       }
2281       /**
2282        * <code>repeated .org.opendaylight.controller.cluster.raft.AppendEntries.ReplicatedLogEntry logEntries = 5;</code>
2283        */
2284       public java.util.List<org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Builder>
2285            getLogEntriesBuilderList() {
2286         return getLogEntriesFieldBuilder().getBuilderList();
2287       }
2288       private com.google.protobuf.RepeatedFieldBuilder<
2289           org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry, org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Builder, org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntryOrBuilder>
2290           getLogEntriesFieldBuilder() {
2291         if (logEntriesBuilder_ == null) {
2292           logEntriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
2293               org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry, org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Builder, org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages.AppendEntries.ReplicatedLogEntryOrBuilder>(
2294                   logEntries_,
2295                   ((bitField0_ & 0x00000010) == 0x00000010),
2296                   getParentForChildren(),
2297                   isClean());
2298           logEntries_ = null;
2299         }
2300         return logEntriesBuilder_;
2301       }
2302
2303       // optional int64 leaderCommit = 6;
2304       private long leaderCommit_ ;
2305       /**
2306        * <code>optional int64 leaderCommit = 6;</code>
2307        */
2308       public boolean hasLeaderCommit() {
2309         return ((bitField0_ & 0x00000020) == 0x00000020);
2310       }
2311       /**
2312        * <code>optional int64 leaderCommit = 6;</code>
2313        */
2314       public long getLeaderCommit() {
2315         return leaderCommit_;
2316       }
2317       /**
2318        * <code>optional int64 leaderCommit = 6;</code>
2319        */
2320       public Builder setLeaderCommit(long value) {
2321         bitField0_ |= 0x00000020;
2322         leaderCommit_ = value;
2323         onChanged();
2324         return this;
2325       }
2326       /**
2327        * <code>optional int64 leaderCommit = 6;</code>
2328        */
2329       public Builder clearLeaderCommit() {
2330         bitField0_ = (bitField0_ & ~0x00000020);
2331         leaderCommit_ = 0L;
2332         onChanged();
2333         return this;
2334       }
2335
2336       // @@protoc_insertion_point(builder_scope:org.opendaylight.controller.cluster.raft.AppendEntries)
2337     }
2338
2339     static {
2340       defaultInstance = new AppendEntries(true);
2341       defaultInstance.initFields();
2342     }
2343
2344     // @@protoc_insertion_point(class_scope:org.opendaylight.controller.cluster.raft.AppendEntries)
2345   }
2346
2347   private static com.google.protobuf.Descriptors.Descriptor
2348     internal_static_org_opendaylight_controller_cluster_raft_AppendEntries_descriptor;
2349   private static
2350     com.google.protobuf.GeneratedMessage.FieldAccessorTable
2351       internal_static_org_opendaylight_controller_cluster_raft_AppendEntries_fieldAccessorTable;
2352   private static com.google.protobuf.Descriptors.Descriptor
2353     internal_static_org_opendaylight_controller_cluster_raft_AppendEntries_ReplicatedLogEntry_descriptor;
2354   private static
2355     com.google.protobuf.GeneratedMessage.FieldAccessorTable
2356       internal_static_org_opendaylight_controller_cluster_raft_AppendEntries_ReplicatedLogEntry_fieldAccessorTable;
2357   private static com.google.protobuf.Descriptors.Descriptor
2358     internal_static_org_opendaylight_controller_cluster_raft_AppendEntries_ReplicatedLogEntry_Payload_descriptor;
2359   private static
2360     com.google.protobuf.GeneratedMessage.FieldAccessorTable
2361       internal_static_org_opendaylight_controller_cluster_raft_AppendEntries_ReplicatedLogEntry_Payload_fieldAccessorTable;
2362
2363   public static com.google.protobuf.Descriptors.FileDescriptor
2364       getDescriptor() {
2365     return descriptor;
2366   }
2367   private static com.google.protobuf.Descriptors.FileDescriptor
2368       descriptor;
2369   static {
2370     java.lang.String[] descriptorData = {
2371       "\n\033AppendEntriesMessages.proto\022(org.opend" +
2372       "aylight.controller.cluster.raft\"\227\003\n\rAppe" +
2373       "ndEntries\022\014\n\004term\030\001 \001(\003\022\020\n\010leaderId\030\002 \001(" +
2374       "\t\022\024\n\014prevLogIndex\030\003 \001(\003\022\023\n\013prevLogTerm\030\004" +
2375       " \001(\003\022^\n\nlogEntries\030\005 \003(\0132J.org.opendayli" +
2376       "ght.controller.cluster.raft.AppendEntrie" +
2377       "s.ReplicatedLogEntry\022\024\n\014leaderCommit\030\006 \001" +
2378       "(\003\032\304\001\n\022ReplicatedLogEntry\022\014\n\004term\030\001 \001(\003\022" +
2379       &qu