1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: InstallSnapshot.proto
4 package org.opendaylight.controller.cluster.raft.protobuff.messages;
6 public final class InstallSnapshotMessages {
7 private InstallSnapshotMessages() {}
8 public static void registerAllExtensions(
9 com.google.protobuf.ExtensionRegistry registry) {
11 public interface InstallSnapshotOrBuilder
12 extends com.google.protobuf.MessageOrBuilder {
14 // optional int64 term = 1;
16 * <code>optional int64 term = 1;</code>
20 * <code>optional int64 term = 1;</code>
24 // optional string leaderId = 2;
26 * <code>optional string leaderId = 2;</code>
28 boolean hasLeaderId();
30 * <code>optional string leaderId = 2;</code>
32 java.lang.String getLeaderId();
34 * <code>optional string leaderId = 2;</code>
36 com.google.protobuf.ByteString
39 // optional int64 lastIncludedIndex = 3;
41 * <code>optional int64 lastIncludedIndex = 3;</code>
43 boolean hasLastIncludedIndex();
45 * <code>optional int64 lastIncludedIndex = 3;</code>
47 long getLastIncludedIndex();
49 // optional int64 lastIncludedTerm = 4;
51 * <code>optional int64 lastIncludedTerm = 4;</code>
53 boolean hasLastIncludedTerm();
55 * <code>optional int64 lastIncludedTerm = 4;</code>
57 long getLastIncludedTerm();
59 // optional bytes data = 5;
61 * <code>optional bytes data = 5;</code>
65 * <code>optional bytes data = 5;</code>
67 com.google.protobuf.ByteString getData();
69 // optional int32 chunkIndex = 6;
71 * <code>optional int32 chunkIndex = 6;</code>
73 boolean hasChunkIndex();
75 * <code>optional int32 chunkIndex = 6;</code>
79 // optional int32 totalChunks = 7;
81 * <code>optional int32 totalChunks = 7;</code>
83 boolean hasTotalChunks();
85 * <code>optional int32 totalChunks = 7;</code>
90 * Protobuf type {@code org.opendaylight.controller.cluster.raft.InstallSnapshot}
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) {
98 this.unknownFields = builder.getUnknownFields();
100 private InstallSnapshot(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
102 private static final InstallSnapshot defaultInstance;
103 public static InstallSnapshot getDefaultInstance() {
104 return defaultInstance;
107 public InstallSnapshot getDefaultInstanceForType() {
108 return defaultInstance;
111 private final com.google.protobuf.UnknownFieldSet unknownFields;
113 public final com.google.protobuf.UnknownFieldSet
115 return this.unknownFields;
117 private InstallSnapshot(
118 com.google.protobuf.CodedInputStream input,
119 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
120 throws com.google.protobuf.InvalidProtocolBufferException {
122 int mutable_bitField0_ = 0;
123 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
124 com.google.protobuf.UnknownFieldSet.newBuilder();
126 boolean done = false;
128 int tag = input.readTag();
134 if (!parseUnknownField(input, unknownFields,
135 extensionRegistry, tag)) {
141 bitField0_ |= 0x00000001;
142 term_ = input.readInt64();
146 bitField0_ |= 0x00000002;
147 leaderId_ = input.readBytes();
151 bitField0_ |= 0x00000004;
152 lastIncludedIndex_ = input.readInt64();
156 bitField0_ |= 0x00000008;
157 lastIncludedTerm_ = input.readInt64();
161 bitField0_ |= 0x00000010;
162 data_ = input.readBytes();
166 bitField0_ |= 0x00000020;
167 chunkIndex_ = input.readInt32();
171 bitField0_ |= 0x00000040;
172 totalChunks_ = input.readInt32();
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);
183 this.unknownFields = unknownFields.build();
184 makeExtensionsImmutable();
187 public static final com.google.protobuf.Descriptors.Descriptor
189 return org.opendaylight.controller.cluster.raft.protobuff.messages.InstallSnapshotMessages.internal_static_org_opendaylight_controller_cluster_raft_InstallSnapshot_descriptor;
192 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
193 internalGetFieldAccessorTable() {
194 return org.opendaylight.controller.cluster.raft.protobuff.messages.InstallSnapshotMessages.internal_static_org_opendaylight_controller_cluster_raft_InstallSnapshot_fieldAccessorTable
195 .ensureFieldAccessorsInitialized(
196 org.opendaylight.controller.cluster.raft.protobuff.messages.InstallSnapshotMessages.InstallSnapshot.class, org.opendaylight.controller.cluster.raft.protobuff.messages.InstallSnapshotMessages.InstallSnapshot.Builder.class);
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);
210 public com.google.protobuf.Parser<InstallSnapshot> getParserForType() {
214 private int bitField0_;
215 // optional int64 term = 1;
216 public static final int TERM_FIELD_NUMBER = 1;
219 * <code>optional int64 term = 1;</code>
221 public boolean hasTerm() {
222 return ((bitField0_ & 0x00000001) == 0x00000001);
225 * <code>optional int64 term = 1;</code>
227 public long getTerm() {
231 // optional string leaderId = 2;
232 public static final int LEADERID_FIELD_NUMBER = 2;
233 private java.lang.Object leaderId_;
235 * <code>optional string leaderId = 2;</code>
237 public boolean hasLeaderId() {
238 return ((bitField0_ & 0x00000002) == 0x00000002);
241 * <code>optional string leaderId = 2;</code>
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;
248 com.google.protobuf.ByteString bs =
249 (com.google.protobuf.ByteString) ref;
250 java.lang.String s = bs.toStringUtf8();
251 if (bs.isValidUtf8()) {
258 * <code>optional string leaderId = 2;</code>
260 public com.google.protobuf.ByteString
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);
270 return (com.google.protobuf.ByteString) ref;
274 // optional int64 lastIncludedIndex = 3;
275 public static final int LASTINCLUDEDINDEX_FIELD_NUMBER = 3;
276 private long lastIncludedIndex_;
278 * <code>optional int64 lastIncludedIndex = 3;</code>
280 public boolean hasLastIncludedIndex() {
281 return ((bitField0_ & 0x00000004) == 0x00000004);
284 * <code>optional int64 lastIncludedIndex = 3;</code>
286 public long getLastIncludedIndex() {
287 return lastIncludedIndex_;
290 // optional int64 lastIncludedTerm = 4;
291 public static final int LASTINCLUDEDTERM_FIELD_NUMBER = 4;
292 private long lastIncludedTerm_;
294 * <code>optional int64 lastIncludedTerm = 4;</code>
296 public boolean hasLastIncludedTerm() {
297 return ((bitField0_ & 0x00000008) == 0x00000008);
300 * <code>optional int64 lastIncludedTerm = 4;</code>
302 public long getLastIncludedTerm() {
303 return lastIncludedTerm_;
306 // optional bytes data = 5;
307 public static final int DATA_FIELD_NUMBER = 5;
308 private com.google.protobuf.ByteString data_;
310 * <code>optional bytes data = 5;</code>
312 public boolean hasData() {
313 return ((bitField0_ & 0x00000010) == 0x00000010);
316 * <code>optional bytes data = 5;</code>
318 public com.google.protobuf.ByteString getData() {
322 // optional int32 chunkIndex = 6;
323 public static final int CHUNKINDEX_FIELD_NUMBER = 6;
324 private int chunkIndex_;
326 * <code>optional int32 chunkIndex = 6;</code>
328 public boolean hasChunkIndex() {
329 return ((bitField0_ & 0x00000020) == 0x00000020);
332 * <code>optional int32 chunkIndex = 6;</code>
334 public int getChunkIndex() {
338 // optional int32 totalChunks = 7;
339 public static final int TOTALCHUNKS_FIELD_NUMBER = 7;
340 private int totalChunks_;
342 * <code>optional int32 totalChunks = 7;</code>
344 public boolean hasTotalChunks() {
345 return ((bitField0_ & 0x00000040) == 0x00000040);
348 * <code>optional int32 totalChunks = 7;</code>
350 public int getTotalChunks() {
354 private void initFields() {
357 lastIncludedIndex_ = 0L;
358 lastIncludedTerm_ = 0L;
359 data_ = com.google.protobuf.ByteString.EMPTY;
363 private byte memoizedIsInitialized = -1;
364 public final boolean isInitialized() {
365 byte isInitialized = memoizedIsInitialized;
366 if (isInitialized != -1) return isInitialized == 1;
368 memoizedIsInitialized = 1;
372 public void writeTo(com.google.protobuf.CodedOutputStream output)
373 throws java.io.IOException {
375 if (((bitField0_ & 0x00000001) == 0x00000001)) {
376 output.writeInt64(1, term_);
378 if (((bitField0_ & 0x00000002) == 0x00000002)) {
379 output.writeBytes(2, getLeaderIdBytes());
381 if (((bitField0_ & 0x00000004) == 0x00000004)) {
382 output.writeInt64(3, lastIncludedIndex_);
384 if (((bitField0_ & 0x00000008) == 0x00000008)) {
385 output.writeInt64(4, lastIncludedTerm_);
387 if (((bitField0_ & 0x00000010) == 0x00000010)) {
388 output.writeBytes(5, data_);
390 if (((bitField0_ & 0x00000020) == 0x00000020)) {
391 output.writeInt32(6, chunkIndex_);
393 if (((bitField0_ & 0x00000040) == 0x00000040)) {
394 output.writeInt32(7, totalChunks_);
396 getUnknownFields().writeTo(output);
399 private int memoizedSerializedSize = -1;
400 public int getSerializedSize() {
401 int size = memoizedSerializedSize;
402 if (size != -1) return size;
405 if (((bitField0_ & 0x00000001) == 0x00000001)) {
406 size += com.google.protobuf.CodedOutputStream
407 .computeInt64Size(1, term_);
409 if (((bitField0_ & 0x00000002) == 0x00000002)) {
410 size += com.google.protobuf.CodedOutputStream
411 .computeBytesSize(2, getLeaderIdBytes());
413 if (((bitField0_ & 0x00000004) == 0x00000004)) {
414 size += com.google.protobuf.CodedOutputStream
415 .computeInt64Size(3, lastIncludedIndex_);
417 if (((bitField0_ & 0x00000008) == 0x00000008)) {
418 size += com.google.protobuf.CodedOutputStream
419 .computeInt64Size(4, lastIncludedTerm_);
421 if (((bitField0_ & 0x00000010) == 0x00000010)) {
422 size += com.google.protobuf.CodedOutputStream
423 .computeBytesSize(5, data_);
425 if (((bitField0_ & 0x00000020) == 0x00000020)) {
426 size += com.google.protobuf.CodedOutputStream
427 .computeInt32Size(6, chunkIndex_);
429 if (((bitField0_ & 0x00000040) == 0x00000040)) {
430 size += com.google.protobuf.CodedOutputStream
431 .computeInt32Size(7, totalChunks_);
433 size += getUnknownFields().getSerializedSize();
434 memoizedSerializedSize = size;
438 private static final long serialVersionUID = 0L;
440 protected java.lang.Object writeReplace()
441 throws java.io.ObjectStreamException {
442 return super.writeReplace();
445 public static org.opendaylight.controller.cluster.raft.protobuff.messages.InstallSnapshotMessages.InstallSnapshot parseFrom(
446 com.google.protobuf.ByteString data)
447 throws com.google.protobuf.InvalidProtocolBufferException {
448 return PARSER.parseFrom(data);
450 public static org.opendaylight.controller.cluster.raft.protobuff.messages.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);
456 public static org.opendaylight.controller.cluster.raft.protobuff.messages.InstallSnapshotMessages.InstallSnapshot parseFrom(byte[] data)
457 throws com.google.protobuf.InvalidProtocolBufferException {
458 return PARSER.parseFrom(data);
460 public static org.opendaylight.controller.cluster.raft.protobuff.messages.InstallSnapshotMessages.InstallSnapshot parseFrom(
462 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
463 throws com.google.protobuf.InvalidProtocolBufferException {
464 return PARSER.parseFrom(data, extensionRegistry);
466 public static org.opendaylight.controller.cluster.raft.protobuff.messages.InstallSnapshotMessages.InstallSnapshot parseFrom(java.io.InputStream input)
467 throws java.io.IOException {
468 return PARSER.parseFrom(input);
470 public static org.opendaylight.controller.cluster.raft.protobuff.messages.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);
476 public static org.opendaylight.controller.cluster.raft.protobuff.messages.InstallSnapshotMessages.InstallSnapshot parseDelimitedFrom(java.io.InputStream input)
477 throws java.io.IOException {
478 return PARSER.parseDelimitedFrom(input);
480 public static org.opendaylight.controller.cluster.raft.protobuff.messages.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);
486 public static org.opendaylight.controller.cluster.raft.protobuff.messages.InstallSnapshotMessages.InstallSnapshot parseFrom(
487 com.google.protobuf.CodedInputStream input)
488 throws java.io.IOException {
489 return PARSER.parseFrom(input);
491 public static org.opendaylight.controller.cluster.raft.protobuff.messages.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);
498 public static Builder newBuilder() { return Builder.create(); }
499 public Builder newBuilderForType() { return newBuilder(); }
500 public static Builder newBuilder(org.opendaylight.controller.cluster.raft.protobuff.messages.InstallSnapshotMessages.InstallSnapshot prototype) {
501 return newBuilder().mergeFrom(prototype);
503 public Builder toBuilder() { return newBuilder(this); }
506 protected Builder newBuilderForType(
507 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
508 Builder builder = new Builder(parent);
512 * Protobuf type {@code org.opendaylight.controller.cluster.raft.InstallSnapshot}
514 public static final class Builder extends
515 com.google.protobuf.GeneratedMessage.Builder<Builder>
516 implements org.opendaylight.controller.cluster.raft.protobuff.messages.InstallSnapshotMessages.InstallSnapshotOrBuilder {
517 public static final com.google.protobuf.Descriptors.Descriptor
519 return org.opendaylight.controller.cluster.raft.protobuff.messages.InstallSnapshotMessages.internal_static_org_opendaylight_controller_cluster_raft_InstallSnapshot_descriptor;
522 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
523 internalGetFieldAccessorTable() {
524 return org.opendaylight.controller.cluster.raft.protobuff.messages.InstallSnapshotMessages.internal_static_org_opendaylight_controller_cluster_raft_InstallSnapshot_fieldAccessorTable
525 .ensureFieldAccessorsInitialized(
526 org.opendaylight.controller.cluster.raft.protobuff.messages.InstallSnapshotMessages.InstallSnapshot.class, org.opendaylight.controller.cluster.raft.protobuff.messages.InstallSnapshotMessages.InstallSnapshot.Builder.class);
529 // Construct using org.opendaylight.controller.cluster.raft.protobuff.messages.InstallSnapshotMessages.InstallSnapshot.newBuilder()
531 maybeForceBuilderInitialization();
535 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
537 maybeForceBuilderInitialization();
539 private void maybeForceBuilderInitialization() {
540 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
543 private static Builder create() {
544 return new Builder();
547 public Builder clear() {
550 bitField0_ = (bitField0_ & ~0x00000001);
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);
560 bitField0_ = (bitField0_ & ~0x00000020);
562 bitField0_ = (bitField0_ & ~0x00000040);
566 public Builder clone() {
567 return create().mergeFrom(buildPartial());
570 public com.google.protobuf.Descriptors.Descriptor
571 getDescriptorForType() {
572 return org.opendaylight.controller.cluster.raft.protobuff.messages.InstallSnapshotMessages.internal_static_org_opendaylight_controller_cluster_raft_InstallSnapshot_descriptor;
575 public org.opendaylight.controller.cluster.raft.protobuff.messages.InstallSnapshotMessages.InstallSnapshot getDefaultInstanceForType() {
576 return org.opendaylight.controller.cluster.raft.protobuff.messages.InstallSnapshotMessages.InstallSnapshot.getDefaultInstance();
579 public org.opendaylight.controller.cluster.raft.protobuff.messages.InstallSnapshotMessages.InstallSnapshot build() {
580 org.opendaylight.controller.cluster.raft.protobuff.messages.InstallSnapshotMessages.InstallSnapshot result = buildPartial();
581 if (!result.isInitialized()) {
582 throw newUninitializedMessageException(result);
587 public org.opendaylight.controller.cluster.raft.protobuff.messages.InstallSnapshotMessages.InstallSnapshot buildPartial() {
588 org.opendaylight.controller.cluster.raft.protobuff.messages.InstallSnapshotMessages.InstallSnapshot result = new org.opendaylight.controller.cluster.raft.protobuff.messages.InstallSnapshotMessages.InstallSnapshot(this);
589 int from_bitField0_ = bitField0_;
590 int to_bitField0_ = 0;
591 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
592 to_bitField0_ |= 0x00000001;
594 result.term_ = term_;
595 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
596 to_bitField0_ |= 0x00000002;
598 result.leaderId_ = leaderId_;
599 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
600 to_bitField0_ |= 0x00000004;
602 result.lastIncludedIndex_ = lastIncludedIndex_;
603 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
604 to_bitField0_ |= 0x00000008;
606 result.lastIncludedTerm_ = lastIncludedTerm_;
607 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
608 to_bitField0_ |= 0x00000010;
610 result.data_ = data_;
611 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
612 to_bitField0_ |= 0x00000020;
614 result.chunkIndex_ = chunkIndex_;
615 if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
616 to_bitField0_ |= 0x00000040;
618 result.totalChunks_ = totalChunks_;
619 result.bitField0_ = to_bitField0_;
624 public Builder mergeFrom(com.google.protobuf.Message other) {
625 if (other instanceof org.opendaylight.controller.cluster.raft.protobuff.messages.InstallSnapshotMessages.InstallSnapshot) {
626 return mergeFrom((org.opendaylight.controller.cluster.raft.protobuff.messages.InstallSnapshotMessages.InstallSnapshot)other);
628 super.mergeFrom(other);
633 public Builder mergeFrom(org.opendaylight.controller.cluster.raft.protobuff.messages.InstallSnapshotMessages.InstallSnapshot other) {
634 if (other == org.opendaylight.controller.cluster.raft.protobuff.messages.InstallSnapshotMessages.InstallSnapshot.getDefaultInstance()) return this;
635 if (other.hasTerm()) {
636 setTerm(other.getTerm());
638 if (other.hasLeaderId()) {
639 bitField0_ |= 0x00000002;
640 leaderId_ = other.leaderId_;
643 if (other.hasLastIncludedIndex()) {
644 setLastIncludedIndex(other.getLastIncludedIndex());
646 if (other.hasLastIncludedTerm()) {
647 setLastIncludedTerm(other.getLastIncludedTerm());
649 if (other.hasData()) {
650 setData(other.getData());
652 if (other.hasChunkIndex()) {
653 setChunkIndex(other.getChunkIndex());
655 if (other.hasTotalChunks()) {
656 setTotalChunks(other.getTotalChunks());
658 this.mergeUnknownFields(other.getUnknownFields());
662 public final boolean isInitialized() {
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.cluster.raft.protobuff.messages.InstallSnapshotMessages.InstallSnapshot parsedMessage = null;
672 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
673 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
674 parsedMessage = (org.opendaylight.controller.cluster.raft.protobuff.messages.InstallSnapshotMessages.InstallSnapshot) e.getUnfinishedMessage();
677 if (parsedMessage != null) {
678 mergeFrom(parsedMessage);
683 private int bitField0_;
685 // optional int64 term = 1;
688 * <code>optional int64 term = 1;</code>
690 public boolean hasTerm() {
691 return ((bitField0_ & 0x00000001) == 0x00000001);
694 * <code>optional int64 term = 1;</code>
696 public long getTerm() {
700 * <code>optional int64 term = 1;</code>
702 public Builder setTerm(long value) {
703 bitField0_ |= 0x00000001;
709 * <code>optional int64 term = 1;</code>
711 public Builder clearTerm() {
712 bitField0_ = (bitField0_ & ~0x00000001);
718 // optional string leaderId = 2;
719 private java.lang.Object leaderId_ = "";
721 * <code>optional string leaderId = 2;</code>
723 public boolean hasLeaderId() {
724 return ((bitField0_ & 0x00000002) == 0x00000002);
727 * <code>optional string leaderId = 2;</code>
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)
737 return (java.lang.String) ref;
741 * <code>optional string leaderId = 2;</code>
743 public com.google.protobuf.ByteString
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);
753 return (com.google.protobuf.ByteString) ref;
757 * <code>optional string leaderId = 2;</code>
759 public Builder setLeaderId(
760 java.lang.String value) {
762 throw new NullPointerException();
764 bitField0_ |= 0x00000002;
770 * <code>optional string leaderId = 2;</code>
772 public Builder clearLeaderId() {
773 bitField0_ = (bitField0_ & ~0x00000002);
774 leaderId_ = getDefaultInstance().getLeaderId();
779 * <code>optional string leaderId = 2;</code>
781 public Builder setLeaderIdBytes(
782 com.google.protobuf.ByteString value) {
784 throw new NullPointerException();
786 bitField0_ |= 0x00000002;
792 // optional int64 lastIncludedIndex = 3;
793 private long lastIncludedIndex_ ;
795 * <code>optional int64 lastIncludedIndex = 3;</code>
797 public boolean hasLastIncludedIndex() {
798 return ((bitField0_ & 0x00000004) == 0x00000004);
801 * <code>optional int64 lastIncludedIndex = 3;</code>
803 public long getLastIncludedIndex() {
804 return lastIncludedIndex_;
807 * <code>optional int64 lastIncludedIndex = 3;</code>
809 public Builder setLastIncludedIndex(long value) {
810 bitField0_ |= 0x00000004;
811 lastIncludedIndex_ = value;
816 * <code>optional int64 lastIncludedIndex = 3;</code>
818 public Builder clearLastIncludedIndex() {
819 bitField0_ = (bitField0_ & ~0x00000004);
820 lastIncludedIndex_ = 0L;
825 // optional int64 lastIncludedTerm = 4;
826 private long lastIncludedTerm_ ;
828 * <code>optional int64 lastIncludedTerm = 4;</code>
830 public boolean hasLastIncludedTerm() {
831 return ((bitField0_ & 0x00000008) == 0x00000008);
834 * <code>optional int64 lastIncludedTerm = 4;</code>
836 public long getLastIncludedTerm() {
837 return lastIncludedTerm_;
840 * <code>optional int64 lastIncludedTerm = 4;</code>
842 public Builder setLastIncludedTerm(long value) {
843 bitField0_ |= 0x00000008;
844 lastIncludedTerm_ = value;
849 * <code>optional int64 lastIncludedTerm = 4;</code>
851 public Builder clearLastIncludedTerm() {
852 bitField0_ = (bitField0_ & ~0x00000008);
853 lastIncludedTerm_ = 0L;
858 // optional bytes data = 5;
859 private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
861 * <code>optional bytes data = 5;</code>
863 public boolean hasData() {
864 return ((bitField0_ & 0x00000010) == 0x00000010);
867 * <code>optional bytes data = 5;</code>
869 public com.google.protobuf.ByteString getData() {
873 * <code>optional bytes data = 5;</code>
875 public Builder setData(com.google.protobuf.ByteString value) {
877 throw new NullPointerException();
879 bitField0_ |= 0x00000010;
885 * <code>optional bytes data = 5;</code>
887 public Builder clearData() {
888 bitField0_ = (bitField0_ & ~0x00000010);
889 data_ = getDefaultInstance().getData();
894 // optional int32 chunkIndex = 6;
895 private int chunkIndex_ ;
897 * <code>optional int32 chunkIndex = 6;</code>
899 public boolean hasChunkIndex() {
900 return ((bitField0_ & 0x00000020) == 0x00000020);
903 * <code>optional int32 chunkIndex = 6;</code>
905 public int getChunkIndex() {
909 * <code>optional int32 chunkIndex = 6;</code>
911 public Builder setChunkIndex(int value) {
912 bitField0_ |= 0x00000020;
918 * <code>optional int32 chunkIndex = 6;</code>
920 public Builder clearChunkIndex() {
921 bitField0_ = (bitField0_ & ~0x00000020);
927 // optional int32 totalChunks = 7;
928 private int totalChunks_ ;
930 * <code>optional int32 totalChunks = 7;</code>
932 public boolean hasTotalChunks() {
933 return ((bitField0_ & 0x00000040) == 0x00000040);
936 * <code>optional int32 totalChunks = 7;</code>
938 public int getTotalChunks() {
942 * <code>optional int32 totalChunks = 7;</code>
944 public Builder setTotalChunks(int value) {
945 bitField0_ |= 0x00000040;
946 totalChunks_ = value;
951 * <code>optional int32 totalChunks = 7;</code>
953 public Builder clearTotalChunks() {
954 bitField0_ = (bitField0_ & ~0x00000040);
960 // @@protoc_insertion_point(builder_scope:org.opendaylight.controller.cluster.raft.InstallSnapshot)
964 defaultInstance = new InstallSnapshot(true);
965 defaultInstance.initFields();
968 // @@protoc_insertion_point(class_scope:org.opendaylight.controller.cluster.raft.InstallSnapshot)
971 private static com.google.protobuf.Descriptors.Descriptor
972 internal_static_org_opendaylight_controller_cluster_raft_InstallSnapshot_descriptor;
974 com.google.protobuf.GeneratedMessage.FieldAccessorTable
975 internal_static_org_opendaylight_controller_cluster_raft_InstallSnapshot_fieldAccessorTable;
977 public static com.google.protobuf.Descriptors.FileDescriptor
981 private static com.google.protobuf.Descriptors.FileDescriptor
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.cluster.raft.protobuff." +
992 "messagesB\027InstallSnapshotMessagesH\001"
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) {
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", });
1008 com.google.protobuf.Descriptors.FileDescriptor
1009 .internalBuildGeneratedFileFrom(descriptorData,
1010 new com.google.protobuf.Descriptors.FileDescriptor[] {
1014 // @@protoc_insertion_point(outer_class_scope)