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