1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: InstallSnapshot.proto
4 package org.opendaylight.controller.protobuff.messages.cluster.raft;
7 public final class InstallSnapshotMessages {
8 private InstallSnapshotMessages() {}
9 public static void registerAllExtensions(
10 com.google.protobuf.ExtensionRegistry registry) {
12 public interface InstallSnapshotOrBuilder
13 extends com.google.protobuf.MessageOrBuilder {
15 // optional int64 term = 1;
17 * <code>optional int64 term = 1;</code>
21 * <code>optional int64 term = 1;</code>
25 // optional string leaderId = 2;
27 * <code>optional string leaderId = 2;</code>
29 boolean hasLeaderId();
31 * <code>optional string leaderId = 2;</code>
33 java.lang.String getLeaderId();
35 * <code>optional string leaderId = 2;</code>
37 com.google.protobuf.ByteString
40 // optional int64 lastIncludedIndex = 3;
42 * <code>optional int64 lastIncludedIndex = 3;</code>
44 boolean hasLastIncludedIndex();
46 * <code>optional int64 lastIncludedIndex = 3;</code>
48 long getLastIncludedIndex();
50 // optional int64 lastIncludedTerm = 4;
52 * <code>optional int64 lastIncludedTerm = 4;</code>
54 boolean hasLastIncludedTerm();
56 * <code>optional int64 lastIncludedTerm = 4;</code>
58 long getLastIncludedTerm();
60 // optional bytes data = 5;
62 * <code>optional bytes data = 5;</code>
66 * <code>optional bytes data = 5;</code>
68 com.google.protobuf.ByteString getData();
70 // optional int32 chunkIndex = 6;
72 * <code>optional int32 chunkIndex = 6;</code>
74 boolean hasChunkIndex();
76 * <code>optional int32 chunkIndex = 6;</code>
80 // optional int32 totalChunks = 7;
82 * <code>optional int32 totalChunks = 7;</code>
84 boolean hasTotalChunks();
86 * <code>optional int32 totalChunks = 7;</code>
90 // optional int32 lastChunkHashCode = 8;
92 * <code>optional int32 lastChunkHashCode = 8;</code>
94 boolean hasLastChunkHashCode();
96 * <code>optional int32 lastChunkHashCode = 8;</code>
98 int getLastChunkHashCode();
101 * Protobuf type {@code org.opendaylight.controller.cluster.raft.InstallSnapshot}
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) {
109 this.unknownFields = builder.getUnknownFields();
111 private InstallSnapshot(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
113 private static final InstallSnapshot defaultInstance;
114 public static InstallSnapshot getDefaultInstance() {
115 return defaultInstance;
119 public InstallSnapshot getDefaultInstanceForType() {
120 return defaultInstance;
123 private final com.google.protobuf.UnknownFieldSet unknownFields;
125 public final com.google.protobuf.UnknownFieldSet
127 return this.unknownFields;
129 private InstallSnapshot(
130 com.google.protobuf.CodedInputStream input,
131 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
132 throws com.google.protobuf.InvalidProtocolBufferException {
134 int mutable_bitField0_ = 0;
135 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
136 com.google.protobuf.UnknownFieldSet.newBuilder();
138 boolean done = false;
140 int tag = input.readTag();
146 if (!parseUnknownField(input, unknownFields,
147 extensionRegistry, tag)) {
153 bitField0_ |= 0x00000001;
154 term_ = input.readInt64();
158 bitField0_ |= 0x00000002;
159 leaderId_ = input.readBytes();
163 bitField0_ |= 0x00000004;
164 lastIncludedIndex_ = input.readInt64();
168 bitField0_ |= 0x00000008;
169 lastIncludedTerm_ = input.readInt64();
173 bitField0_ |= 0x00000010;
174 data_ = input.readBytes();
178 bitField0_ |= 0x00000020;
179 chunkIndex_ = input.readInt32();
183 bitField0_ |= 0x00000040;
184 totalChunks_ = input.readInt32();
188 bitField0_ |= 0x00000080;
189 lastChunkHashCode_ = input.readInt32();
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);
200 this.unknownFields = unknownFields.build();
201 makeExtensionsImmutable();
204 public static final com.google.protobuf.Descriptors.Descriptor
206 return org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.internal_static_org_opendaylight_controller_cluster_raft_InstallSnapshot_descriptor;
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);
217 public static com.google.protobuf.Parser<InstallSnapshot> PARSER =
218 new com.google.protobuf.AbstractParser<InstallSnapshot>() {
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);
229 public com.google.protobuf.Parser<InstallSnapshot> getParserForType() {
233 private int bitField0_;
234 // optional int64 term = 1;
235 public static final int TERM_FIELD_NUMBER = 1;
238 * <code>optional int64 term = 1;</code>
241 public boolean hasTerm() {
242 return ((bitField0_ & 0x00000001) == 0x00000001);
245 * <code>optional int64 term = 1;</code>
248 public long getTerm() {
252 // optional string leaderId = 2;
253 public static final int LEADERID_FIELD_NUMBER = 2;
254 private java.lang.Object leaderId_;
256 * <code>optional string leaderId = 2;</code>
259 public boolean hasLeaderId() {
260 return ((bitField0_ & 0x00000002) == 0x00000002);
263 * <code>optional string leaderId = 2;</code>
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;
271 com.google.protobuf.ByteString bs =
272 (com.google.protobuf.ByteString) ref;
273 java.lang.String s = bs.toStringUtf8();
274 if (bs.isValidUtf8()) {
281 * <code>optional string leaderId = 2;</code>
284 public com.google.protobuf.ByteString
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);
294 return (com.google.protobuf.ByteString) ref;
298 // optional int64 lastIncludedIndex = 3;
299 public static final int LASTINCLUDEDINDEX_FIELD_NUMBER = 3;
300 private long lastIncludedIndex_;
302 * <code>optional int64 lastIncludedIndex = 3;</code>
305 public boolean hasLastIncludedIndex() {
306 return ((bitField0_ & 0x00000004) == 0x00000004);
309 * <code>optional int64 lastIncludedIndex = 3;</code>
312 public long getLastIncludedIndex() {
313 return lastIncludedIndex_;
316 // optional int64 lastIncludedTerm = 4;
317 public static final int LASTINCLUDEDTERM_FIELD_NUMBER = 4;
318 private long lastIncludedTerm_;
320 * <code>optional int64 lastIncludedTerm = 4;</code>
323 public boolean hasLastIncludedTerm() {
324 return ((bitField0_ & 0x00000008) == 0x00000008);
327 * <code>optional int64 lastIncludedTerm = 4;</code>
330 public long getLastIncludedTerm() {
331 return lastIncludedTerm_;
334 // optional bytes data = 5;
335 public static final int DATA_FIELD_NUMBER = 5;
336 private com.google.protobuf.ByteString data_;
338 * <code>optional bytes data = 5;</code>
341 public boolean hasData() {
342 return ((bitField0_ & 0x00000010) == 0x00000010);
345 * <code>optional bytes data = 5;</code>
348 public com.google.protobuf.ByteString getData() {
352 // optional int32 chunkIndex = 6;
353 public static final int CHUNKINDEX_FIELD_NUMBER = 6;
354 private int chunkIndex_;
356 * <code>optional int32 chunkIndex = 6;</code>
359 public boolean hasChunkIndex() {
360 return ((bitField0_ & 0x00000020) == 0x00000020);
363 * <code>optional int32 chunkIndex = 6;</code>
366 public int getChunkIndex() {
370 // optional int32 totalChunks = 7;
371 public static final int TOTALCHUNKS_FIELD_NUMBER = 7;
372 private int totalChunks_;
374 * <code>optional int32 totalChunks = 7;</code>
377 public boolean hasTotalChunks() {
378 return ((bitField0_ & 0x00000040) == 0x00000040);
381 * <code>optional int32 totalChunks = 7;</code>
384 public int getTotalChunks() {
388 // optional int32 lastChunkHashCode = 8;
389 public static final int LASTCHUNKHASHCODE_FIELD_NUMBER = 8;
390 private int lastChunkHashCode_;
392 * <code>optional int32 lastChunkHashCode = 8;</code>
395 public boolean hasLastChunkHashCode() {
396 return ((bitField0_ & 0x00000080) == 0x00000080);
399 * <code>optional int32 lastChunkHashCode = 8;</code>
402 public int getLastChunkHashCode() {
403 return lastChunkHashCode_;
406 private void initFields() {
409 lastIncludedIndex_ = 0L;
410 lastIncludedTerm_ = 0L;
411 data_ = com.google.protobuf.ByteString.EMPTY;
414 lastChunkHashCode_ = 0;
416 private byte memoizedIsInitialized = -1;
418 public final boolean isInitialized() {
419 byte isInitialized = memoizedIsInitialized;
420 if (isInitialized != -1) {
421 return isInitialized == 1;
424 memoizedIsInitialized = 1;
429 public void writeTo(com.google.protobuf.CodedOutputStream output)
430 throws java.io.IOException {
432 if (((bitField0_ & 0x00000001) == 0x00000001)) {
433 output.writeInt64(1, term_);
435 if (((bitField0_ & 0x00000002) == 0x00000002)) {
436 output.writeBytes(2, getLeaderIdBytes());
438 if (((bitField0_ & 0x00000004) == 0x00000004)) {
439 output.writeInt64(3, lastIncludedIndex_);
441 if (((bitField0_ & 0x00000008) == 0x00000008)) {
442 output.writeInt64(4, lastIncludedTerm_);
444 if (((bitField0_ & 0x00000010) == 0x00000010)) {
445 output.writeBytes(5, data_);
447 if (((bitField0_ & 0x00000020) == 0x00000020)) {
448 output.writeInt32(6, chunkIndex_);
450 if (((bitField0_ & 0x00000040) == 0x00000040)) {
451 output.writeInt32(7, totalChunks_);
453 if (((bitField0_ & 0x00000080) == 0x00000080)) {
454 output.writeInt32(8, lastChunkHashCode_);
456 getUnknownFields().writeTo(output);
459 private int memoizedSerializedSize = -1;
461 public int getSerializedSize() {
462 int size = memoizedSerializedSize;
468 if (((bitField0_ & 0x00000001) == 0x00000001)) {
469 size += com.google.protobuf.CodedOutputStream
470 .computeInt64Size(1, term_);
472 if (((bitField0_ & 0x00000002) == 0x00000002)) {
473 size += com.google.protobuf.CodedOutputStream
474 .computeBytesSize(2, getLeaderIdBytes());
476 if (((bitField0_ & 0x00000004) == 0x00000004)) {
477 size += com.google.protobuf.CodedOutputStream
478 .computeInt64Size(3, lastIncludedIndex_);
480 if (((bitField0_ & 0x00000008) == 0x00000008)) {
481 size += com.google.protobuf.CodedOutputStream
482 .computeInt64Size(4, lastIncludedTerm_);
484 if (((bitField0_ & 0x00000010) == 0x00000010)) {
485 size += com.google.protobuf.CodedOutputStream
486 .computeBytesSize(5, data_);
488 if (((bitField0_ & 0x00000020) == 0x00000020)) {
489 size += com.google.protobuf.CodedOutputStream
490 .computeInt32Size(6, chunkIndex_);
492 if (((bitField0_ & 0x00000040) == 0x00000040)) {
493 size += com.google.protobuf.CodedOutputStream
494 .computeInt32Size(7, totalChunks_);
496 if (((bitField0_ & 0x00000080) == 0x00000080)) {
497 size += com.google.protobuf.CodedOutputStream
498 .computeInt32Size(8, lastChunkHashCode_);
500 size += getUnknownFields().getSerializedSize();
501 memoizedSerializedSize = size;
505 private static final long serialVersionUID = 0L;
507 protected java.lang.Object writeReplace()
508 throws java.io.ObjectStreamException {
509 return super.writeReplace();
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);
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);
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);
527 public static org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot parseFrom(
529 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
530 throws com.google.protobuf.InvalidProtocolBufferException {
531 return PARSER.parseFrom(data, extensionRegistry);
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);
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);
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);
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);
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);
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);
565 public static Builder newBuilder() { return Builder.create(); }
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);
572 public Builder toBuilder() { return newBuilder(this); }
575 protected Builder newBuilderForType(
576 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
577 Builder builder = new Builder(parent);
581 * Protobuf type {@code org.opendaylight.controller.cluster.raft.InstallSnapshot}
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
588 return org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.internal_static_org_opendaylight_controller_cluster_raft_InstallSnapshot_descriptor;
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);
599 // Construct using org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot.newBuilder()
601 maybeForceBuilderInitialization();
605 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
607 maybeForceBuilderInitialization();
609 private void maybeForceBuilderInitialization() {
610 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
613 private static Builder create() {
614 return new Builder();
618 public Builder clear() {
621 bitField0_ = (bitField0_ & ~0x00000001);
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);
631 bitField0_ = (bitField0_ & ~0x00000020);
633 bitField0_ = (bitField0_ & ~0x00000040);
634 lastChunkHashCode_ = 0;
635 bitField0_ = (bitField0_ & ~0x00000080);
640 public Builder clone() {
641 return create().mergeFrom(buildPartial());
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;
651 public org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot getDefaultInstanceForType() {
652 return org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot.getDefaultInstance();
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);
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;
672 result.term_ = term_;
673 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
674 to_bitField0_ |= 0x00000002;
676 result.leaderId_ = leaderId_;
677 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
678 to_bitField0_ |= 0x00000004;
680 result.lastIncludedIndex_ = lastIncludedIndex_;
681 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
682 to_bitField0_ |= 0x00000008;
684 result.lastIncludedTerm_ = lastIncludedTerm_;
685 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
686 to_bitField0_ |= 0x00000010;
688 result.data_ = data_;
689 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
690 to_bitField0_ |= 0x00000020;
692 result.chunkIndex_ = chunkIndex_;
693 if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
694 to_bitField0_ |= 0x00000040;
696 result.totalChunks_ = totalChunks_;
697 if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
698 to_bitField0_ |= 0x00000080;
700 result.lastChunkHashCode_ = lastChunkHashCode_;
701 result.bitField0_ = to_bitField0_;
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);
711 super.mergeFrom(other);
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()) {
720 if (other.hasTerm()) {
721 setTerm(other.getTerm());
723 if (other.hasLeaderId()) {
724 bitField0_ |= 0x00000002;
725 leaderId_ = other.leaderId_;
728 if (other.hasLastIncludedIndex()) {
729 setLastIncludedIndex(other.getLastIncludedIndex());
731 if (other.hasLastIncludedTerm()) {
732 setLastIncludedTerm(other.getLastIncludedTerm());
734 if (other.hasData()) {
735 setData(other.getData());
737 if (other.hasChunkIndex()) {
738 setChunkIndex(other.getChunkIndex());
740 if (other.hasTotalChunks()) {
741 setTotalChunks(other.getTotalChunks());
743 if (other.hasLastChunkHashCode()) {
744 setLastChunkHashCode(other.getLastChunkHashCode());
746 this.mergeUnknownFields(other.getUnknownFields());
751 public final boolean isInitialized() {
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;
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();
767 if (parsedMessage != null) {
768 mergeFrom(parsedMessage);
773 private int bitField0_;
775 // optional int64 term = 1;
778 * <code>optional int64 term = 1;</code>
781 public boolean hasTerm() {
782 return ((bitField0_ & 0x00000001) == 0x00000001);
785 * <code>optional int64 term = 1;</code>
788 public long getTerm() {
792 * <code>optional int64 term = 1;</code>
794 public Builder setTerm(long value) {
795 bitField0_ |= 0x00000001;
801 * <code>optional int64 term = 1;</code>
803 public Builder clearTerm() {
804 bitField0_ = (bitField0_ & ~0x00000001);
810 // optional string leaderId = 2;
811 private java.lang.Object leaderId_ = "";
813 * <code>optional string leaderId = 2;</code>
816 public boolean hasLeaderId() {
817 return ((bitField0_ & 0x00000002) == 0x00000002);
820 * <code>optional string leaderId = 2;</code>
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)
831 return (java.lang.String) ref;
835 * <code>optional string leaderId = 2;</code>
838 public com.google.protobuf.ByteString
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);
848 return (com.google.protobuf.ByteString) ref;
852 * <code>optional string leaderId = 2;</code>
854 public Builder setLeaderId(
855 java.lang.String value) {
857 throw new NullPointerException();
859 bitField0_ |= 0x00000002;
865 * <code>optional string leaderId = 2;</code>
867 public Builder clearLeaderId() {
868 bitField0_ = (bitField0_ & ~0x00000002);
869 leaderId_ = getDefaultInstance().getLeaderId();
874 * <code>optional string leaderId = 2;</code>
876 public Builder setLeaderIdBytes(
877 com.google.protobuf.ByteString value) {
879 throw new NullPointerException();
881 bitField0_ |= 0x00000002;
887 // optional int64 lastIncludedIndex = 3;
888 private long lastIncludedIndex_ ;
890 * <code>optional int64 lastIncludedIndex = 3;</code>
893 public boolean hasLastIncludedIndex() {
894 return ((bitField0_ & 0x00000004) == 0x00000004);
897 * <code>optional int64 lastIncludedIndex = 3;</code>
900 public long getLastIncludedIndex() {
901 return lastIncludedIndex_;
904 * <code>optional int64 lastIncludedIndex = 3;</code>
906 public Builder setLastIncludedIndex(long value) {
907 bitField0_ |= 0x00000004;
908 lastIncludedIndex_ = value;
913 * <code>optional int64 lastIncludedIndex = 3;</code>
915 public Builder clearLastIncludedIndex() {
916 bitField0_ = (bitField0_ & ~0x00000004);
917 lastIncludedIndex_ = 0L;
922 // optional int64 lastIncludedTerm = 4;
923 private long lastIncludedTerm_ ;
925 * <code>optional int64 lastIncludedTerm = 4;</code>
928 public boolean hasLastIncludedTerm() {
929 return ((bitField0_ & 0x00000008) == 0x00000008);
932 * <code>optional int64 lastIncludedTerm = 4;</code>
935 public long getLastIncludedTerm() {
936 return lastIncludedTerm_;
939 * <code>optional int64 lastIncludedTerm = 4;</code>
941 public Builder setLastIncludedTerm(long value) {
942 bitField0_ |= 0x00000008;
943 lastIncludedTerm_ = value;
948 * <code>optional int64 lastIncludedTerm = 4;</code>
950 public Builder clearLastIncludedTerm() {
951 bitField0_ = (bitField0_ & ~0x00000008);
952 lastIncludedTerm_ = 0L;
957 // optional bytes data = 5;
958 private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
960 * <code>optional bytes data = 5;</code>
963 public boolean hasData() {
964 return ((bitField0_ & 0x00000010) == 0x00000010);
967 * <code>optional bytes data = 5;</code>
970 public com.google.protobuf.ByteString getData() {
974 * <code>optional bytes data = 5;</code>
976 public Builder setData(com.google.protobuf.ByteString value) {
978 throw new NullPointerException();
980 bitField0_ |= 0x00000010;
986 * <code>optional bytes data = 5;</code>
988 public Builder clearData() {
989 bitField0_ = (bitField0_ & ~0x00000010);
990 data_ = getDefaultInstance().getData();
995 // optional int32 chunkIndex = 6;
996 private int chunkIndex_ ;
998 * <code>optional int32 chunkIndex = 6;</code>
1001 public boolean hasChunkIndex() {
1002 return ((bitField0_ & 0x00000020) == 0x00000020);
1005 * <code>optional int32 chunkIndex = 6;</code>
1008 public int getChunkIndex() {
1012 * <code>optional int32 chunkIndex = 6;</code>
1014 public Builder setChunkIndex(int value) {
1015 bitField0_ |= 0x00000020;
1016 chunkIndex_ = value;
1021 * <code>optional int32 chunkIndex = 6;</code>
1023 public Builder clearChunkIndex() {
1024 bitField0_ = (bitField0_ & ~0x00000020);
1030 // optional int32 totalChunks = 7;
1031 private int totalChunks_ ;
1033 * <code>optional int32 totalChunks = 7;</code>
1036 public boolean hasTotalChunks() {
1037 return ((bitField0_ & 0x00000040) == 0x00000040);
1040 * <code>optional int32 totalChunks = 7;</code>
1043 public int getTotalChunks() {
1044 return totalChunks_;
1047 * <code>optional int32 totalChunks = 7;</code>
1049 public Builder setTotalChunks(int value) {
1050 bitField0_ |= 0x00000040;
1051 totalChunks_ = value;
1056 * <code>optional int32 totalChunks = 7;</code>
1058 public Builder clearTotalChunks() {
1059 bitField0_ = (bitField0_ & ~0x00000040);
1065 // optional int32 lastChunkHashCode = 8;
1066 private int lastChunkHashCode_ ;
1068 * <code>optional int32 lastChunkHashCode = 8;</code>
1071 public boolean hasLastChunkHashCode() {
1072 return ((bitField0_ & 0x00000080) == 0x00000080);
1075 * <code>optional int32 lastChunkHashCode = 8;</code>
1078 public int getLastChunkHashCode() {
1079 return lastChunkHashCode_;
1082 * <code>optional int32 lastChunkHashCode = 8;</code>
1084 public Builder setLastChunkHashCode(int value) {
1085 bitField0_ |= 0x00000080;
1086 lastChunkHashCode_ = value;
1091 * <code>optional int32 lastChunkHashCode = 8;</code>
1093 public Builder clearLastChunkHashCode() {
1094 bitField0_ = (bitField0_ & ~0x00000080);
1095 lastChunkHashCode_ = 0;
1100 // @@protoc_insertion_point(builder_scope:org.opendaylight.controller.cluster.raft.InstallSnapshot)
1104 defaultInstance = new InstallSnapshot(true);
1105 defaultInstance.initFields();
1108 // @@protoc_insertion_point(class_scope:org.opendaylight.controller.cluster.raft.InstallSnapshot)
1111 private static com.google.protobuf.Descriptors.Descriptor
1112 internal_static_org_opendaylight_controller_cluster_raft_InstallSnapshot_descriptor;
1114 com.google.protobuf.GeneratedMessage.FieldAccessorTable
1115 internal_static_org_opendaylight_controller_cluster_raft_InstallSnapshot_fieldAccessorTable;
1117 public static com.google.protobuf.Descriptors.FileDescriptor
1121 private static com.google.protobuf.Descriptors.FileDescriptor
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"
1135 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
1136 new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
1138 public com.google.protobuf.ExtensionRegistry assignDescriptors(
1139 com.google.protobuf.Descriptors.FileDescriptor 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", });
1150 com.google.protobuf.Descriptors.FileDescriptor
1151 .internalBuildGeneratedFileFrom(descriptorData,
1152 new com.google.protobuf.Descriptors.FileDescriptor[] {
1156 // @@protoc_insertion_point(outer_class_scope)