Merge "Fix checkstyle warnings in netty-event-executor-config."
[controller.git] / opendaylight / md-sal / sal-clustering-commons / src / main / java / org / opendaylight / controller / protobuff / messages / cluster / raft / InstallSnapshotMessages.java
1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: InstallSnapshot.proto
3
4 package org.opendaylight.controller.protobuff.messages.cluster.raft;
5
6 public final class InstallSnapshotMessages {
7   private InstallSnapshotMessages() {}
8   public static void registerAllExtensions(
9       com.google.protobuf.ExtensionRegistry registry) {
10   }
11   public interface InstallSnapshotOrBuilder
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 lastIncludedIndex = 3;
40     /**
41      * <code>optional int64 lastIncludedIndex = 3;</code>
42      */
43     boolean hasLastIncludedIndex();
44     /**
45      * <code>optional int64 lastIncludedIndex = 3;</code>
46      */
47     long getLastIncludedIndex();
48
49     // optional int64 lastIncludedTerm = 4;
50     /**
51      * <code>optional int64 lastIncludedTerm = 4;</code>
52      */
53     boolean hasLastIncludedTerm();
54     /**
55      * <code>optional int64 lastIncludedTerm = 4;</code>
56      */
57     long getLastIncludedTerm();
58
59     // optional bytes data = 5;
60     /**
61      * <code>optional bytes data = 5;</code>
62      */
63     boolean hasData();
64     /**
65      * <code>optional bytes data = 5;</code>
66      */
67     com.google.protobuf.ByteString getData();
68
69     // optional int32 chunkIndex = 6;
70     /**
71      * <code>optional int32 chunkIndex = 6;</code>
72      */
73     boolean hasChunkIndex();
74     /**
75      * <code>optional int32 chunkIndex = 6;</code>
76      */
77     int getChunkIndex();
78
79     // optional int32 totalChunks = 7;
80     /**
81      * <code>optional int32 totalChunks = 7;</code>
82      */
83     boolean hasTotalChunks();
84     /**
85      * <code>optional int32 totalChunks = 7;</code>
86      */
87     int getTotalChunks();
88
89     // optional int32 lastChunkHashCode = 8;
90     /**
91      * <code>optional int32 lastChunkHashCode = 8;</code>
92      */
93     boolean hasLastChunkHashCode();
94     /**
95      * <code>optional int32 lastChunkHashCode = 8;</code>
96      */
97     int getLastChunkHashCode();
98   }
99   /**
100    * Protobuf type {@code org.opendaylight.controller.cluster.raft.InstallSnapshot}
101    */
102   public static final class InstallSnapshot extends
103       com.google.protobuf.GeneratedMessage
104       implements InstallSnapshotOrBuilder {
105     // Use InstallSnapshot.newBuilder() to construct.
106     private InstallSnapshot(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
107       super(builder);
108       this.unknownFields = builder.getUnknownFields();
109     }
110     private InstallSnapshot(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
111
112     private static final InstallSnapshot defaultInstance;
113     public static InstallSnapshot getDefaultInstance() {
114       return defaultInstance;
115     }
116
117     public InstallSnapshot getDefaultInstanceForType() {
118       return defaultInstance;
119     }
120
121     private final com.google.protobuf.UnknownFieldSet unknownFields;
122     @java.lang.Override
123     public final com.google.protobuf.UnknownFieldSet
124         getUnknownFields() {
125       return this.unknownFields;
126     }
127     private InstallSnapshot(
128         com.google.protobuf.CodedInputStream input,
129         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
130         throws com.google.protobuf.InvalidProtocolBufferException {
131       initFields();
132       int mutable_bitField0_ = 0;
133       com.google.protobuf.UnknownFieldSet.Builder unknownFields =
134           com.google.protobuf.UnknownFieldSet.newBuilder();
135       try {
136         boolean done = false;
137         while (!done) {
138           int tag = input.readTag();
139           switch (tag) {
140             case 0:
141               done = true;
142               break;
143             default: {
144               if (!parseUnknownField(input, unknownFields,
145                                      extensionRegistry, tag)) {
146                 done = true;
147               }
148               break;
149             }
150             case 8: {
151               bitField0_ |= 0x00000001;
152               term_ = input.readInt64();
153               break;
154             }
155             case 18: {
156               bitField0_ |= 0x00000002;
157               leaderId_ = input.readBytes();
158               break;
159             }
160             case 24: {
161               bitField0_ |= 0x00000004;
162               lastIncludedIndex_ = input.readInt64();
163               break;
164             }
165             case 32: {
166               bitField0_ |= 0x00000008;
167               lastIncludedTerm_ = input.readInt64();
168               break;
169             }
170             case 42: {
171               bitField0_ |= 0x00000010;
172               data_ = input.readBytes();
173               break;
174             }
175             case 48: {
176               bitField0_ |= 0x00000020;
177               chunkIndex_ = input.readInt32();
178               break;
179             }
180             case 56: {
181               bitField0_ |= 0x00000040;
182               totalChunks_ = input.readInt32();
183               break;
184             }
185             case 64: {
186               bitField0_ |= 0x00000080;
187               lastChunkHashCode_ = input.readInt32();
188               break;
189             }
190           }
191         }
192       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
193         throw e.setUnfinishedMessage(this);
194       } catch (java.io.IOException e) {
195         throw new com.google.protobuf.InvalidProtocolBufferException(
196             e.getMessage()).setUnfinishedMessage(this);
197       } finally {
198         this.unknownFields = unknownFields.build();
199         makeExtensionsImmutable();
200       }
201     }
202     public static final com.google.protobuf.Descriptors.Descriptor
203         getDescriptor() {
204       return org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.internal_static_org_opendaylight_controller_cluster_raft_InstallSnapshot_descriptor;
205     }
206
207     protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
208         internalGetFieldAccessorTable() {
209       return org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.internal_static_org_opendaylight_controller_cluster_raft_InstallSnapshot_fieldAccessorTable
210           .ensureFieldAccessorsInitialized(
211               org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot.class, org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot.Builder.class);
212     }
213
214     public static com.google.protobuf.Parser<InstallSnapshot> PARSER =
215         new com.google.protobuf.AbstractParser<InstallSnapshot>() {
216       public InstallSnapshot parsePartialFrom(
217           com.google.protobuf.CodedInputStream input,
218           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
219           throws com.google.protobuf.InvalidProtocolBufferException {
220         return new InstallSnapshot(input, extensionRegistry);
221       }
222     };
223
224     @java.lang.Override
225     public com.google.protobuf.Parser<InstallSnapshot> getParserForType() {
226       return PARSER;
227     }
228
229     private int bitField0_;
230     // optional int64 term = 1;
231     public static final int TERM_FIELD_NUMBER = 1;
232     private long term_;
233     /**
234      * <code>optional int64 term = 1;</code>
235      */
236     public boolean hasTerm() {
237       return ((bitField0_ & 0x00000001) == 0x00000001);
238     }
239     /**
240      * <code>optional int64 term = 1;</code>
241      */
242     public long getTerm() {
243       return term_;
244     }
245
246     // optional string leaderId = 2;
247     public static final int LEADERID_FIELD_NUMBER = 2;
248     private java.lang.Object leaderId_;
249     /**
250      * <code>optional string leaderId = 2;</code>
251      */
252     public boolean hasLeaderId() {
253       return ((bitField0_ & 0x00000002) == 0x00000002);
254     }
255     /**
256      * <code>optional string leaderId = 2;</code>
257      */
258     public java.lang.String getLeaderId() {
259       java.lang.Object ref = leaderId_;
260       if (ref instanceof java.lang.String) {
261         return (java.lang.String) ref;
262       } else {
263         com.google.protobuf.ByteString bs =
264             (com.google.protobuf.ByteString) ref;
265         java.lang.String s = bs.toStringUtf8();
266         if (bs.isValidUtf8()) {
267           leaderId_ = s;
268         }
269         return s;
270       }
271     }
272     /**
273      * <code>optional string leaderId = 2;</code>
274      */
275     public com.google.protobuf.ByteString
276         getLeaderIdBytes() {
277       java.lang.Object ref = leaderId_;
278       if (ref instanceof java.lang.String) {
279         com.google.protobuf.ByteString b =
280             com.google.protobuf.ByteString.copyFromUtf8(
281                 (java.lang.String) ref);
282         leaderId_ = b;
283         return b;
284       } else {
285         return (com.google.protobuf.ByteString) ref;
286       }
287     }
288
289     // optional int64 lastIncludedIndex = 3;
290     public static final int LASTINCLUDEDINDEX_FIELD_NUMBER = 3;
291     private long lastIncludedIndex_;
292     /**
293      * <code>optional int64 lastIncludedIndex = 3;</code>
294      */
295     public boolean hasLastIncludedIndex() {
296       return ((bitField0_ & 0x00000004) == 0x00000004);
297     }
298     /**
299      * <code>optional int64 lastIncludedIndex = 3;</code>
300      */
301     public long getLastIncludedIndex() {
302       return lastIncludedIndex_;
303     }
304
305     // optional int64 lastIncludedTerm = 4;
306     public static final int LASTINCLUDEDTERM_FIELD_NUMBER = 4;
307     private long lastIncludedTerm_;
308     /**
309      * <code>optional int64 lastIncludedTerm = 4;</code>
310      */
311     public boolean hasLastIncludedTerm() {
312       return ((bitField0_ & 0x00000008) == 0x00000008);
313     }
314     /**
315      * <code>optional int64 lastIncludedTerm = 4;</code>
316      */
317     public long getLastIncludedTerm() {
318       return lastIncludedTerm_;
319     }
320
321     // optional bytes data = 5;
322     public static final int DATA_FIELD_NUMBER = 5;
323     private com.google.protobuf.ByteString data_;
324     /**
325      * <code>optional bytes data = 5;</code>
326      */
327     public boolean hasData() {
328       return ((bitField0_ & 0x00000010) == 0x00000010);
329     }
330     /**
331      * <code>optional bytes data = 5;</code>
332      */
333     public com.google.protobuf.ByteString getData() {
334       return data_;
335     }
336
337     // optional int32 chunkIndex = 6;
338     public static final int CHUNKINDEX_FIELD_NUMBER = 6;
339     private int chunkIndex_;
340     /**
341      * <code>optional int32 chunkIndex = 6;</code>
342      */
343     public boolean hasChunkIndex() {
344       return ((bitField0_ & 0x00000020) == 0x00000020);
345     }
346     /**
347      * <code>optional int32 chunkIndex = 6;</code>
348      */
349     public int getChunkIndex() {
350       return chunkIndex_;
351     }
352
353     // optional int32 totalChunks = 7;
354     public static final int TOTALCHUNKS_FIELD_NUMBER = 7;
355     private int totalChunks_;
356     /**
357      * <code>optional int32 totalChunks = 7;</code>
358      */
359     public boolean hasTotalChunks() {
360       return ((bitField0_ & 0x00000040) == 0x00000040);
361     }
362     /**
363      * <code>optional int32 totalChunks = 7;</code>
364      */
365     public int getTotalChunks() {
366       return totalChunks_;
367     }
368
369     // optional int32 lastChunkHashCode = 8;
370     public static final int LASTCHUNKHASHCODE_FIELD_NUMBER = 8;
371     private int lastChunkHashCode_;
372     /**
373      * <code>optional int32 lastChunkHashCode = 8;</code>
374      */
375     public boolean hasLastChunkHashCode() {
376       return ((bitField0_ & 0x00000080) == 0x00000080);
377     }
378     /**
379      * <code>optional int32 lastChunkHashCode = 8;</code>
380      */
381     public int getLastChunkHashCode() {
382       return lastChunkHashCode_;
383     }
384
385     private void initFields() {
386       term_ = 0L;
387       leaderId_ = "";
388       lastIncludedIndex_ = 0L;
389       lastIncludedTerm_ = 0L;
390       data_ = com.google.protobuf.ByteString.EMPTY;
391       chunkIndex_ = 0;
392       totalChunks_ = 0;
393       lastChunkHashCode_ = 0;
394     }
395     private byte memoizedIsInitialized = -1;
396     public final boolean isInitialized() {
397       byte isInitialized = memoizedIsInitialized;
398       if (isInitialized != -1) return isInitialized == 1;
399
400       memoizedIsInitialized = 1;
401       return true;
402     }
403
404     public void writeTo(com.google.protobuf.CodedOutputStream output)
405                         throws java.io.IOException {
406       getSerializedSize();
407       if (((bitField0_ & 0x00000001) == 0x00000001)) {
408         output.writeInt64(1, term_);
409       }
410       if (((bitField0_ & 0x00000002) == 0x00000002)) {
411         output.writeBytes(2, getLeaderIdBytes());
412       }
413       if (((bitField0_ & 0x00000004) == 0x00000004)) {
414         output.writeInt64(3, lastIncludedIndex_);
415       }
416       if (((bitField0_ & 0x00000008) == 0x00000008)) {
417         output.writeInt64(4, lastIncludedTerm_);
418       }
419       if (((bitField0_ & 0x00000010) == 0x00000010)) {
420         output.writeBytes(5, data_);
421       }
422       if (((bitField0_ & 0x00000020) == 0x00000020)) {
423         output.writeInt32(6, chunkIndex_);
424       }
425       if (((bitField0_ & 0x00000040) == 0x00000040)) {
426         output.writeInt32(7, totalChunks_);
427       }
428       if (((bitField0_ & 0x00000080) == 0x00000080)) {
429         output.writeInt32(8, lastChunkHashCode_);
430       }
431       getUnknownFields().writeTo(output);
432     }
433
434     private int memoizedSerializedSize = -1;
435     public int getSerializedSize() {
436       int size = memoizedSerializedSize;
437       if (size != -1) return size;
438
439       size = 0;
440       if (((bitField0_ & 0x00000001) == 0x00000001)) {
441         size += com.google.protobuf.CodedOutputStream
442           .computeInt64Size(1, term_);
443       }
444       if (((bitField0_ & 0x00000002) == 0x00000002)) {
445         size += com.google.protobuf.CodedOutputStream
446           .computeBytesSize(2, getLeaderIdBytes());
447       }
448       if (((bitField0_ & 0x00000004) == 0x00000004)) {
449         size += com.google.protobuf.CodedOutputStream
450           .computeInt64Size(3, lastIncludedIndex_);
451       }
452       if (((bitField0_ & 0x00000008) == 0x00000008)) {
453         size += com.google.protobuf.CodedOutputStream
454           .computeInt64Size(4, lastIncludedTerm_);
455       }
456       if (((bitField0_ & 0x00000010) == 0x00000010)) {
457         size += com.google.protobuf.CodedOutputStream
458           .computeBytesSize(5, data_);
459       }
460       if (((bitField0_ & 0x00000020) == 0x00000020)) {
461         size += com.google.protobuf.CodedOutputStream
462           .computeInt32Size(6, chunkIndex_);
463       }
464       if (((bitField0_ & 0x00000040) == 0x00000040)) {
465         size += com.google.protobuf.CodedOutputStream
466           .computeInt32Size(7, totalChunks_);
467       }
468       if (((bitField0_ & 0x00000080) == 0x00000080)) {
469         size += com.google.protobuf.CodedOutputStream
470           .computeInt32Size(8, lastChunkHashCode_);
471       }
472       size += getUnknownFields().getSerializedSize();
473       memoizedSerializedSize = size;
474       return size;
475     }
476
477     private static final long serialVersionUID = 0L;
478     @java.lang.Override
479     protected java.lang.Object writeReplace()
480         throws java.io.ObjectStreamException {
481       return super.writeReplace();
482     }
483
484     public static org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot parseFrom(
485         com.google.protobuf.ByteString data)
486         throws com.google.protobuf.InvalidProtocolBufferException {
487       return PARSER.parseFrom(data);
488     }
489     public static org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot parseFrom(
490         com.google.protobuf.ByteString data,
491         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
492         throws com.google.protobuf.InvalidProtocolBufferException {
493       return PARSER.parseFrom(data, extensionRegistry);
494     }
495     public static org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot parseFrom(byte[] data)
496         throws com.google.protobuf.InvalidProtocolBufferException {
497       return PARSER.parseFrom(data);
498     }
499     public static org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot parseFrom(
500         byte[] data,
501         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
502         throws com.google.protobuf.InvalidProtocolBufferException {
503       return PARSER.parseFrom(data, extensionRegistry);
504     }
505     public static org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot parseFrom(java.io.InputStream input)
506         throws java.io.IOException {
507       return PARSER.parseFrom(input);
508     }
509     public static org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot parseFrom(
510         java.io.InputStream input,
511         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
512         throws java.io.IOException {
513       return PARSER.parseFrom(input, extensionRegistry);
514     }
515     public static org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot parseDelimitedFrom(java.io.InputStream input)
516         throws java.io.IOException {
517       return PARSER.parseDelimitedFrom(input);
518     }
519     public static org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot parseDelimitedFrom(
520         java.io.InputStream input,
521         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
522         throws java.io.IOException {
523       return PARSER.parseDelimitedFrom(input, extensionRegistry);
524     }
525     public static org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot parseFrom(
526         com.google.protobuf.CodedInputStream input)
527         throws java.io.IOException {
528       return PARSER.parseFrom(input);
529     }
530     public static org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot parseFrom(
531         com.google.protobuf.CodedInputStream input,
532         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
533         throws java.io.IOException {
534       return PARSER.parseFrom(input, extensionRegistry);
535     }
536
537     public static Builder newBuilder() { return Builder.create(); }
538     public Builder newBuilderForType() { return newBuilder(); }
539     public static Builder newBuilder(org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot prototype) {
540       return newBuilder().mergeFrom(prototype);
541     }
542     public Builder toBuilder() { return newBuilder(this); }
543
544     @java.lang.Override
545     protected Builder newBuilderForType(
546         com.google.protobuf.GeneratedMessage.BuilderParent parent) {
547       Builder builder = new Builder(parent);
548       return builder;
549     }
550     /**
551      * Protobuf type {@code org.opendaylight.controller.cluster.raft.InstallSnapshot}
552      */
553     public static final class Builder extends
554         com.google.protobuf.GeneratedMessage.Builder<Builder>
555        implements org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshotOrBuilder {
556       public static final com.google.protobuf.Descriptors.Descriptor
557           getDescriptor() {
558         return org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.internal_static_org_opendaylight_controller_cluster_raft_InstallSnapshot_descriptor;
559       }
560
561       protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
562           internalGetFieldAccessorTable() {
563         return org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.internal_static_org_opendaylight_controller_cluster_raft_InstallSnapshot_fieldAccessorTable
564             .ensureFieldAccessorsInitialized(
565                 org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot.class, org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot.Builder.class);
566       }
567
568       // Construct using org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot.newBuilder()
569       private Builder() {
570         maybeForceBuilderInitialization();
571       }
572
573       private Builder(
574           com.google.protobuf.GeneratedMessage.BuilderParent parent) {
575         super(parent);
576         maybeForceBuilderInitialization();
577       }
578       private void maybeForceBuilderInitialization() {
579         if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
580         }
581       }
582       private static Builder create() {
583         return new Builder();
584       }
585
586       public Builder clear() {
587         super.clear();
588         term_ = 0L;
589         bitField0_ = (bitField0_ & ~0x00000001);
590         leaderId_ = "";
591         bitField0_ = (bitField0_ & ~0x00000002);
592         lastIncludedIndex_ = 0L;
593         bitField0_ = (bitField0_ & ~0x00000004);
594         lastIncludedTerm_ = 0L;
595         bitField0_ = (bitField0_ & ~0x00000008);
596         data_ = com.google.protobuf.ByteString.EMPTY;
597         bitField0_ = (bitField0_ & ~0x00000010);
598         chunkIndex_ = 0;
599         bitField0_ = (bitField0_ & ~0x00000020);
600         totalChunks_ = 0;
601         bitField0_ = (bitField0_ & ~0x00000040);
602         lastChunkHashCode_ = 0;
603         bitField0_ = (bitField0_ & ~0x00000080);
604         return this;
605       }
606
607       public Builder clone() {
608         return create().mergeFrom(buildPartial());
609       }
610
611       public com.google.protobuf.Descriptors.Descriptor
612           getDescriptorForType() {
613         return org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.internal_static_org_opendaylight_controller_cluster_raft_InstallSnapshot_descriptor;
614       }
615
616       public org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot getDefaultInstanceForType() {
617         return org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot.getDefaultInstance();
618       }
619
620       public org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot build() {
621         org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot result = buildPartial();
622         if (!result.isInitialized()) {
623           throw newUninitializedMessageException(result);
624         }
625         return result;
626       }
627
628       public org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot buildPartial() {
629         org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot result = new org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot(this);
630         int from_bitField0_ = bitField0_;
631         int to_bitField0_ = 0;
632         if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
633           to_bitField0_ |= 0x00000001;
634         }
635         result.term_ = term_;
636         if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
637           to_bitField0_ |= 0x00000002;
638         }
639         result.leaderId_ = leaderId_;
640         if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
641           to_bitField0_ |= 0x00000004;
642         }
643         result.lastIncludedIndex_ = lastIncludedIndex_;
644         if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
645           to_bitField0_ |= 0x00000008;
646         }
647         result.lastIncludedTerm_ = lastIncludedTerm_;
648         if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
649           to_bitField0_ |= 0x00000010;
650         }
651         result.data_ = data_;
652         if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
653           to_bitField0_ |= 0x00000020;
654         }
655         result.chunkIndex_ = chunkIndex_;
656         if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
657           to_bitField0_ |= 0x00000040;
658         }
659         result.totalChunks_ = totalChunks_;
660         if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
661           to_bitField0_ |= 0x00000080;
662         }
663         result.lastChunkHashCode_ = lastChunkHashCode_;
664         result.bitField0_ = to_bitField0_;
665         onBuilt();
666         return result;
667       }
668
669       public Builder mergeFrom(com.google.protobuf.Message other) {
670         if (other instanceof org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot) {
671           return mergeFrom((org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot)other);
672         } else {
673           super.mergeFrom(other);
674           return this;
675         }
676       }
677
678       public Builder mergeFrom(org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot other) {
679         if (other == org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot.getDefaultInstance()) return this;
680         if (other.hasTerm()) {
681           setTerm(other.getTerm());
682         }
683         if (other.hasLeaderId()) {
684           bitField0_ |= 0x00000002;
685           leaderId_ = other.leaderId_;
686           onChanged();
687         }
688         if (other.hasLastIncludedIndex()) {
689           setLastIncludedIndex(other.getLastIncludedIndex());
690         }
691         if (other.hasLastIncludedTerm()) {
692           setLastIncludedTerm(other.getLastIncludedTerm());
693         }
694         if (other.hasData()) {
695           setData(other.getData());
696         }
697         if (other.hasChunkIndex()) {
698           setChunkIndex(other.getChunkIndex());
699         }
700         if (other.hasTotalChunks()) {
701           setTotalChunks(other.getTotalChunks());
702         }
703         if (other.hasLastChunkHashCode()) {
704           setLastChunkHashCode(other.getLastChunkHashCode());
705         }
706         this.mergeUnknownFields(other.getUnknownFields());
707         return this;
708       }
709
710       public final boolean isInitialized() {
711         return true;
712       }
713
714       public Builder mergeFrom(
715           com.google.protobuf.CodedInputStream input,
716           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
717           throws java.io.IOException {
718         org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot parsedMessage = null;
719         try {
720           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
721         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
722           parsedMessage = (org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot) e.getUnfinishedMessage();
723           throw e;
724         } finally {
725           if (parsedMessage != null) {
726             mergeFrom(parsedMessage);
727           }
728         }
729         return this;
730       }
731       private int bitField0_;
732
733       // optional int64 term = 1;
734       private long term_ ;
735       /**
736        * <code>optional int64 term = 1;</code>
737        */
738       public boolean hasTerm() {
739         return ((bitField0_ & 0x00000001) == 0x00000001);
740       }
741       /**
742        * <code>optional int64 term = 1;</code>
743        */
744       public long getTerm() {
745         return term_;
746       }
747       /**
748        * <code>optional int64 term = 1;</code>
749        */
750       public Builder setTerm(long value) {
751         bitField0_ |= 0x00000001;
752         term_ = value;
753         onChanged();
754         return this;
755       }
756       /**
757        * <code>optional int64 term = 1;</code>
758        */
759       public Builder clearTerm() {
760         bitField0_ = (bitField0_ & ~0x00000001);
761         term_ = 0L;
762         onChanged();
763         return this;
764       }
765
766       // optional string leaderId = 2;
767       private java.lang.Object leaderId_ = "";
768       /**
769        * <code>optional string leaderId = 2;</code>
770        */
771       public boolean hasLeaderId() {
772         return ((bitField0_ & 0x00000002) == 0x00000002);
773       }
774       /**
775        * <code>optional string leaderId = 2;</code>
776        */
777       public java.lang.String getLeaderId() {
778         java.lang.Object ref = leaderId_;
779         if (!(ref instanceof java.lang.String)) {
780           java.lang.String s = ((com.google.protobuf.ByteString) ref)
781               .toStringUtf8();
782           leaderId_ = s;
783           return s;
784         } else {
785           return (java.lang.String) ref;
786         }
787       }
788       /**
789        * <code>optional string leaderId = 2;</code>
790        */
791       public com.google.protobuf.ByteString
792           getLeaderIdBytes() {
793         java.lang.Object ref = leaderId_;
794         if (ref instanceof String) {
795           com.google.protobuf.ByteString b =
796               com.google.protobuf.ByteString.copyFromUtf8(
797                   (java.lang.String) ref);
798           leaderId_ = b;
799           return b;
800         } else {
801           return (com.google.protobuf.ByteString) ref;
802         }
803       }
804       /**
805        * <code>optional string leaderId = 2;</code>
806        */
807       public Builder setLeaderId(
808           java.lang.String value) {
809         if (value == null) {
810     throw new NullPointerException();
811   }
812   bitField0_ |= 0x00000002;
813         leaderId_ = value;
814         onChanged();
815         return this;
816       }
817       /**
818        * <code>optional string leaderId = 2;</code>
819        */
820       public Builder clearLeaderId() {
821         bitField0_ = (bitField0_ & ~0x00000002);
822         leaderId_ = getDefaultInstance().getLeaderId();
823         onChanged();
824         return this;
825       }
826       /**
827        * <code>optional string leaderId = 2;</code>
828        */
829       public Builder setLeaderIdBytes(
830           com.google.protobuf.ByteString value) {
831         if (value == null) {
832     throw new NullPointerException();
833   }
834   bitField0_ |= 0x00000002;
835         leaderId_ = value;
836         onChanged();
837         return this;
838       }
839
840       // optional int64 lastIncludedIndex = 3;
841       private long lastIncludedIndex_ ;
842       /**
843        * <code>optional int64 lastIncludedIndex = 3;</code>
844        */
845       public boolean hasLastIncludedIndex() {
846         return ((bitField0_ & 0x00000004) == 0x00000004);
847       }
848       /**
849        * <code>optional int64 lastIncludedIndex = 3;</code>
850        */
851       public long getLastIncludedIndex() {
852         return lastIncludedIndex_;
853       }
854       /**
855        * <code>optional int64 lastIncludedIndex = 3;</code>
856        */
857       public Builder setLastIncludedIndex(long value) {
858         bitField0_ |= 0x00000004;
859         lastIncludedIndex_ = value;
860         onChanged();
861         return this;
862       }
863       /**
864        * <code>optional int64 lastIncludedIndex = 3;</code>
865        */
866       public Builder clearLastIncludedIndex() {
867         bitField0_ = (bitField0_ & ~0x00000004);
868         lastIncludedIndex_ = 0L;
869         onChanged();
870         return this;
871       }
872
873       // optional int64 lastIncludedTerm = 4;
874       private long lastIncludedTerm_ ;
875       /**
876        * <code>optional int64 lastIncludedTerm = 4;</code>
877        */
878       public boolean hasLastIncludedTerm() {
879         return ((bitField0_ & 0x00000008) == 0x00000008);
880       }
881       /**
882        * <code>optional int64 lastIncludedTerm = 4;</code>
883        */
884       public long getLastIncludedTerm() {
885         return lastIncludedTerm_;
886       }
887       /**
888        * <code>optional int64 lastIncludedTerm = 4;</code>
889        */
890       public Builder setLastIncludedTerm(long value) {
891         bitField0_ |= 0x00000008;
892         lastIncludedTerm_ = value;
893         onChanged();
894         return this;
895       }
896       /**
897        * <code>optional int64 lastIncludedTerm = 4;</code>
898        */
899       public Builder clearLastIncludedTerm() {
900         bitField0_ = (bitField0_ & ~0x00000008);
901         lastIncludedTerm_ = 0L;
902         onChanged();
903         return this;
904       }
905
906       // optional bytes data = 5;
907       private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
908       /**
909        * <code>optional bytes data = 5;</code>
910        */
911       public boolean hasData() {
912         return ((bitField0_ & 0x00000010) == 0x00000010);
913       }
914       /**
915        * <code>optional bytes data = 5;</code>
916        */
917       public com.google.protobuf.ByteString getData() {
918         return data_;
919       }
920       /**
921        * <code>optional bytes data = 5;</code>
922        */
923       public Builder setData(com.google.protobuf.ByteString value) {
924         if (value == null) {
925     throw new NullPointerException();
926   }
927   bitField0_ |= 0x00000010;
928         data_ = value;
929         onChanged();
930         return this;
931       }
932       /**
933        * <code>optional bytes data = 5;</code>
934        */
935       public Builder clearData() {
936         bitField0_ = (bitField0_ & ~0x00000010);
937         data_ = getDefaultInstance().getData();
938         onChanged();
939         return this;
940       }
941
942       // optional int32 chunkIndex = 6;
943       private int chunkIndex_ ;
944       /**
945        * <code>optional int32 chunkIndex = 6;</code>
946        */
947       public boolean hasChunkIndex() {
948         return ((bitField0_ & 0x00000020) == 0x00000020);
949       }
950       /**
951        * <code>optional int32 chunkIndex = 6;</code>
952        */
953       public int getChunkIndex() {
954         return chunkIndex_;
955       }
956       /**
957        * <code>optional int32 chunkIndex = 6;</code>
958        */
959       public Builder setChunkIndex(int value) {
960         bitField0_ |= 0x00000020;
961         chunkIndex_ = value;
962         onChanged();
963         return this;
964       }
965       /**
966        * <code>optional int32 chunkIndex = 6;</code>
967        */
968       public Builder clearChunkIndex() {
969         bitField0_ = (bitField0_ & ~0x00000020);
970         chunkIndex_ = 0;
971         onChanged();
972         return this;
973       }
974
975       // optional int32 totalChunks = 7;
976       private int totalChunks_ ;
977       /**
978        * <code>optional int32 totalChunks = 7;</code>
979        */
980       public boolean hasTotalChunks() {
981         return ((bitField0_ & 0x00000040) == 0x00000040);
982       }
983       /**
984        * <code>optional int32 totalChunks = 7;</code>
985        */
986       public int getTotalChunks() {
987         return totalChunks_;
988       }
989       /**
990        * <code>optional int32 totalChunks = 7;</code>
991        */
992       public Builder setTotalChunks(int value) {
993         bitField0_ |= 0x00000040;
994         totalChunks_ = value;
995         onChanged();
996         return this;
997       }
998       /**
999        * <code>optional int32 totalChunks = 7;</code>
1000        */
1001       public Builder clearTotalChunks() {
1002         bitField0_ = (bitField0_ & ~0x00000040);
1003         totalChunks_ = 0;
1004         onChanged();
1005         return this;
1006       }
1007
1008       // optional int32 lastChunkHashCode = 8;
1009       private int lastChunkHashCode_ ;
1010       /**
1011        * <code>optional int32 lastChunkHashCode = 8;</code>
1012        */
1013       public boolean hasLastChunkHashCode() {
1014         return ((bitField0_ & 0x00000080) == 0x00000080);
1015       }
1016       /**
1017        * <code>optional int32 lastChunkHashCode = 8;</code>
1018        */
1019       public int getLastChunkHashCode() {
1020         return lastChunkHashCode_;
1021       }
1022       /**
1023        * <code>optional int32 lastChunkHashCode = 8;</code>
1024        */
1025       public Builder setLastChunkHashCode(int value) {
1026         bitField0_ |= 0x00000080;
1027         lastChunkHashCode_ = value;
1028         onChanged();
1029         return this;
1030       }
1031       /**
1032        * <code>optional int32 lastChunkHashCode = 8;</code>
1033        */
1034       public Builder clearLastChunkHashCode() {
1035         bitField0_ = (bitField0_ & ~0x00000080);
1036         lastChunkHashCode_ = 0;
1037         onChanged();
1038         return this;
1039       }
1040
1041       // @@protoc_insertion_point(builder_scope:org.opendaylight.controller.cluster.raft.InstallSnapshot)
1042     }
1043
1044     static {
1045       defaultInstance = new InstallSnapshot(true);
1046       defaultInstance.initFields();
1047     }
1048
1049     // @@protoc_insertion_point(class_scope:org.opendaylight.controller.cluster.raft.InstallSnapshot)
1050   }
1051
1052   private static com.google.protobuf.Descriptors.Descriptor
1053     internal_static_org_opendaylight_controller_cluster_raft_InstallSnapshot_descriptor;
1054   private static
1055     com.google.protobuf.GeneratedMessage.FieldAccessorTable
1056       internal_static_org_opendaylight_controller_cluster_raft_InstallSnapshot_fieldAccessorTable;
1057
1058   public static com.google.protobuf.Descriptors.FileDescriptor
1059       getDescriptor() {
1060     return descriptor;
1061   }
1062   private static com.google.protobuf.Descriptors.FileDescriptor
1063       descriptor;
1064   static {
1065     java.lang.String[] descriptorData = {
1066       "\n\025InstallSnapshot.proto\022(org.opendayligh" +
1067       "t.controller.cluster.raft\"\270\001\n\017InstallSna" +
1068       "pshot\022\014\n\004term\030\001 \001(\003\022\020\n\010leaderId\030\002 \001(\t\022\031\n" +
1069       "\021lastIncludedIndex\030\003 \001(\003\022\030\n\020lastIncluded" +
1070       "Term\030\004 \001(\003\022\014\n\004data\030\005 \001(\014\022\022\n\nchunkIndex\030\006" +
1071       " \001(\005\022\023\n\013totalChunks\030\007 \001(\005\022\031\n\021lastChunkHa" +
1072       "shCode\030\010 \001(\005BX\n;org.opendaylight.control" +
1073       "ler.protobuff.messages.cluster.raftB\027Ins" +
1074       "tallSnapshotMessagesH\001"
1075     };
1076     com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
1077       new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
1078         public com.google.protobuf.ExtensionRegistry assignDescriptors(
1079             com.google.protobuf.Descriptors.FileDescriptor root) {
1080           descriptor = root;
1081           internal_static_org_opendaylight_controller_cluster_raft_InstallSnapshot_descriptor =
1082             getDescriptor().getMessageTypes().get(0);
1083           internal_static_org_opendaylight_controller_cluster_raft_InstallSnapshot_fieldAccessorTable = new
1084             com.google.protobuf.GeneratedMessage.FieldAccessorTable(
1085               internal_static_org_opendaylight_controller_cluster_raft_InstallSnapshot_descriptor,
1086               new java.lang.String[] { "Term", "LeaderId", "LastIncludedIndex", "LastIncludedTerm", "Data", "ChunkIndex", "TotalChunks", "LastChunkHashCode", });
1087           return null;
1088         }
1089       };
1090     com.google.protobuf.Descriptors.FileDescriptor
1091       .internalBuildGeneratedFileFrom(descriptorData,
1092         new com.google.protobuf.Descriptors.FileDescriptor[] {
1093         }, assigner);
1094   }
1095
1096   // @@protoc_insertion_point(outer_class_scope)
1097 }