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