// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: InstallSnapshot.proto
package org.opendaylight.controller.protobuff.messages.cluster.raft;
public final class InstallSnapshotMessages {
private InstallSnapshotMessages() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface InstallSnapshotOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional int64 term = 1;
/**
* optional int64 term = 1;
*/
boolean hasTerm();
/**
* optional int64 term = 1;
*/
long getTerm();
// optional string leaderId = 2;
/**
* optional string leaderId = 2;
*/
boolean hasLeaderId();
/**
* optional string leaderId = 2;
*/
java.lang.String getLeaderId();
/**
* optional string leaderId = 2;
*/
com.google.protobuf.ByteString
getLeaderIdBytes();
// optional int64 lastIncludedIndex = 3;
/**
* optional int64 lastIncludedIndex = 3;
*/
boolean hasLastIncludedIndex();
/**
* optional int64 lastIncludedIndex = 3;
*/
long getLastIncludedIndex();
// optional int64 lastIncludedTerm = 4;
/**
* optional int64 lastIncludedTerm = 4;
*/
boolean hasLastIncludedTerm();
/**
* optional int64 lastIncludedTerm = 4;
*/
long getLastIncludedTerm();
// optional bytes data = 5;
/**
* optional bytes data = 5;
*/
boolean hasData();
/**
* optional bytes data = 5;
*/
com.google.protobuf.ByteString getData();
// optional int32 chunkIndex = 6;
/**
* optional int32 chunkIndex = 6;
*/
boolean hasChunkIndex();
/**
* optional int32 chunkIndex = 6;
*/
int getChunkIndex();
// optional int32 totalChunks = 7;
/**
* optional int32 totalChunks = 7;
*/
boolean hasTotalChunks();
/**
* optional int32 totalChunks = 7;
*/
int getTotalChunks();
}
/**
* Protobuf type {@code org.opendaylight.controller.cluster.raft.InstallSnapshot}
*/
public static final class InstallSnapshot extends
com.google.protobuf.GeneratedMessage
implements InstallSnapshotOrBuilder {
// Use InstallSnapshot.newBuilder() to construct.
private InstallSnapshot(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private InstallSnapshot(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final InstallSnapshot defaultInstance;
public static InstallSnapshot getDefaultInstance() {
return defaultInstance;
}
public InstallSnapshot getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private InstallSnapshot(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
term_ = input.readInt64();
break;
}
case 18: {
bitField0_ |= 0x00000002;
leaderId_ = input.readBytes();
break;
}
case 24: {
bitField0_ |= 0x00000004;
lastIncludedIndex_ = input.readInt64();
break;
}
case 32: {
bitField0_ |= 0x00000008;
lastIncludedTerm_ = input.readInt64();
break;
}
case 42: {
bitField0_ |= 0x00000010;
data_ = input.readBytes();
break;
}
case 48: {
bitField0_ |= 0x00000020;
chunkIndex_ = input.readInt32();
break;
}
case 56: {
bitField0_ |= 0x00000040;
totalChunks_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.internal_static_org_opendaylight_controller_cluster_raft_InstallSnapshot_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.internal_static_org_opendaylight_controller_cluster_raft_InstallSnapshot_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot.class, org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public InstallSnapshot parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new InstallSnapshot(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional int64 term = 1;
public static final int TERM_FIELD_NUMBER = 1;
private long term_;
/**
* optional int64 term = 1;
*/
public boolean hasTerm() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int64 term = 1;
*/
public long getTerm() {
return term_;
}
// optional string leaderId = 2;
public static final int LEADERID_FIELD_NUMBER = 2;
private java.lang.Object leaderId_;
/**
* optional string leaderId = 2;
*/
public boolean hasLeaderId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string leaderId = 2;
*/
public java.lang.String getLeaderId() {
java.lang.Object ref = leaderId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
leaderId_ = s;
}
return s;
}
}
/**
* optional string leaderId = 2;
*/
public com.google.protobuf.ByteString
getLeaderIdBytes() {
java.lang.Object ref = leaderId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
leaderId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional int64 lastIncludedIndex = 3;
public static final int LASTINCLUDEDINDEX_FIELD_NUMBER = 3;
private long lastIncludedIndex_;
/**
* optional int64 lastIncludedIndex = 3;
*/
public boolean hasLastIncludedIndex() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional int64 lastIncludedIndex = 3;
*/
public long getLastIncludedIndex() {
return lastIncludedIndex_;
}
// optional int64 lastIncludedTerm = 4;
public static final int LASTINCLUDEDTERM_FIELD_NUMBER = 4;
private long lastIncludedTerm_;
/**
* optional int64 lastIncludedTerm = 4;
*/
public boolean hasLastIncludedTerm() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional int64 lastIncludedTerm = 4;
*/
public long getLastIncludedTerm() {
return lastIncludedTerm_;
}
// optional bytes data = 5;
public static final int DATA_FIELD_NUMBER = 5;
private com.google.protobuf.ByteString data_;
/**
* optional bytes data = 5;
*/
public boolean hasData() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional bytes data = 5;
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
// optional int32 chunkIndex = 6;
public static final int CHUNKINDEX_FIELD_NUMBER = 6;
private int chunkIndex_;
/**
* optional int32 chunkIndex = 6;
*/
public boolean hasChunkIndex() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional int32 chunkIndex = 6;
*/
public int getChunkIndex() {
return chunkIndex_;
}
// optional int32 totalChunks = 7;
public static final int TOTALCHUNKS_FIELD_NUMBER = 7;
private int totalChunks_;
/**
* optional int32 totalChunks = 7;
*/
public boolean hasTotalChunks() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional int32 totalChunks = 7;
*/
public int getTotalChunks() {
return totalChunks_;
}
private void initFields() {
term_ = 0L;
leaderId_ = "";
lastIncludedIndex_ = 0L;
lastIncludedTerm_ = 0L;
data_ = com.google.protobuf.ByteString.EMPTY;
chunkIndex_ = 0;
totalChunks_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt64(1, term_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getLeaderIdBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt64(3, lastIncludedIndex_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt64(4, lastIncludedTerm_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeBytes(5, data_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeInt32(6, chunkIndex_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeInt32(7, totalChunks_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, term_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getLeaderIdBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, lastIncludedIndex_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, lastIncludedTerm_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, data_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, chunkIndex_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(7, totalChunks_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code org.opendaylight.controller.cluster.raft.InstallSnapshot}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshotOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.internal_static_org_opendaylight_controller_cluster_raft_InstallSnapshot_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.internal_static_org_opendaylight_controller_cluster_raft_InstallSnapshot_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot.class, org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot.Builder.class);
}
// Construct using org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
term_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
leaderId_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
lastIncludedIndex_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
lastIncludedTerm_ = 0L;
bitField0_ = (bitField0_ & ~0x00000008);
data_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000010);
chunkIndex_ = 0;
bitField0_ = (bitField0_ & ~0x00000020);
totalChunks_ = 0;
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.internal_static_org_opendaylight_controller_cluster_raft_InstallSnapshot_descriptor;
}
public org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot getDefaultInstanceForType() {
return org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot.getDefaultInstance();
}
public org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot build() {
org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot buildPartial() {
org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot result = new org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.term_ = term_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.leaderId_ = leaderId_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.lastIncludedIndex_ = lastIncludedIndex_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.lastIncludedTerm_ = lastIncludedTerm_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.data_ = data_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.chunkIndex_ = chunkIndex_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.totalChunks_ = totalChunks_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot) {
return mergeFrom((org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot other) {
if (other == org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot.getDefaultInstance()) return this;
if (other.hasTerm()) {
setTerm(other.getTerm());
}
if (other.hasLeaderId()) {
bitField0_ |= 0x00000002;
leaderId_ = other.leaderId_;
onChanged();
}
if (other.hasLastIncludedIndex()) {
setLastIncludedIndex(other.getLastIncludedIndex());
}
if (other.hasLastIncludedTerm()) {
setLastIncludedTerm(other.getLastIncludedTerm());
}
if (other.hasData()) {
setData(other.getData());
}
if (other.hasChunkIndex()) {
setChunkIndex(other.getChunkIndex());
}
if (other.hasTotalChunks()) {
setTotalChunks(other.getTotalChunks());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.opendaylight.controller.protobuff.messages.cluster.raft.InstallSnapshotMessages.InstallSnapshot) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional int64 term = 1;
private long term_ ;
/**
* optional int64 term = 1;
*/
public boolean hasTerm() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int64 term = 1;
*/
public long getTerm() {
return term_;
}
/**
* optional int64 term = 1;
*/
public Builder setTerm(long value) {
bitField0_ |= 0x00000001;
term_ = value;
onChanged();
return this;
}
/**
* optional int64 term = 1;
*/
public Builder clearTerm() {
bitField0_ = (bitField0_ & ~0x00000001);
term_ = 0L;
onChanged();
return this;
}
// optional string leaderId = 2;
private java.lang.Object leaderId_ = "";
/**
* optional string leaderId = 2;
*/
public boolean hasLeaderId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string leaderId = 2;
*/
public java.lang.String getLeaderId() {
java.lang.Object ref = leaderId_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
leaderId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string leaderId = 2;
*/
public com.google.protobuf.ByteString
getLeaderIdBytes() {
java.lang.Object ref = leaderId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
leaderId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string leaderId = 2;
*/
public Builder setLeaderId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
leaderId_ = value;
onChanged();
return this;
}
/**
* optional string leaderId = 2;
*/
public Builder clearLeaderId() {
bitField0_ = (bitField0_ & ~0x00000002);
leaderId_ = getDefaultInstance().getLeaderId();
onChanged();
return this;
}
/**
* optional string leaderId = 2;
*/
public Builder setLeaderIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
leaderId_ = value;
onChanged();
return this;
}
// optional int64 lastIncludedIndex = 3;
private long lastIncludedIndex_ ;
/**
* optional int64 lastIncludedIndex = 3;
*/
public boolean hasLastIncludedIndex() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional int64 lastIncludedIndex = 3;
*/
public long getLastIncludedIndex() {
return lastIncludedIndex_;
}
/**
* optional int64 lastIncludedIndex = 3;
*/
public Builder setLastIncludedIndex(long value) {
bitField0_ |= 0x00000004;
lastIncludedIndex_ = value;
onChanged();
return this;
}
/**
* optional int64 lastIncludedIndex = 3;
*/
public Builder clearLastIncludedIndex() {
bitField0_ = (bitField0_ & ~0x00000004);
lastIncludedIndex_ = 0L;
onChanged();
return this;
}
// optional int64 lastIncludedTerm = 4;
private long lastIncludedTerm_ ;
/**
* optional int64 lastIncludedTerm = 4;
*/
public boolean hasLastIncludedTerm() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional int64 lastIncludedTerm = 4;
*/
public long getLastIncludedTerm() {
return lastIncludedTerm_;
}
/**
* optional int64 lastIncludedTerm = 4;
*/
public Builder setLastIncludedTerm(long value) {
bitField0_ |= 0x00000008;
lastIncludedTerm_ = value;
onChanged();
return this;
}
/**
* optional int64 lastIncludedTerm = 4;
*/
public Builder clearLastIncludedTerm() {
bitField0_ = (bitField0_ & ~0x00000008);
lastIncludedTerm_ = 0L;
onChanged();
return this;
}
// optional bytes data = 5;
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes data = 5;
*/
public boolean hasData() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional bytes data = 5;
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
* optional bytes data = 5;
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
data_ = value;
onChanged();
return this;
}
/**
* optional bytes data = 5;
*/
public Builder clearData() {
bitField0_ = (bitField0_ & ~0x00000010);
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
// optional int32 chunkIndex = 6;
private int chunkIndex_ ;
/**
* optional int32 chunkIndex = 6;
*/
public boolean hasChunkIndex() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional int32 chunkIndex = 6;
*/
public int getChunkIndex() {
return chunkIndex_;
}
/**
* optional int32 chunkIndex = 6;
*/
public Builder setChunkIndex(int value) {
bitField0_ |= 0x00000020;
chunkIndex_ = value;
onChanged();
return this;
}
/**
* optional int32 chunkIndex = 6;
*/
public Builder clearChunkIndex() {
bitField0_ = (bitField0_ & ~0x00000020);
chunkIndex_ = 0;
onChanged();
return this;
}
// optional int32 totalChunks = 7;
private int totalChunks_ ;
/**
* optional int32 totalChunks = 7;
*/
public boolean hasTotalChunks() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional int32 totalChunks = 7;
*/
public int getTotalChunks() {
return totalChunks_;
}
/**
* optional int32 totalChunks = 7;
*/
public Builder setTotalChunks(int value) {
bitField0_ |= 0x00000040;
totalChunks_ = value;
onChanged();
return this;
}
/**
* optional int32 totalChunks = 7;
*/
public Builder clearTotalChunks() {
bitField0_ = (bitField0_ & ~0x00000040);
totalChunks_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:org.opendaylight.controller.cluster.raft.InstallSnapshot)
}
static {
defaultInstance = new InstallSnapshot(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:org.opendaylight.controller.cluster.raft.InstallSnapshot)
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_org_opendaylight_controller_cluster_raft_InstallSnapshot_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_org_opendaylight_controller_cluster_raft_InstallSnapshot_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\025InstallSnapshot.proto\022(org.opendayligh" +
"t.controller.cluster.raft\"\235\001\n\017InstallSna" +
"pshot\022\014\n\004term\030\001 \001(\003\022\020\n\010leaderId\030\002 \001(\t\022\031\n" +
"\021lastIncludedIndex\030\003 \001(\003\022\030\n\020lastIncluded" +
"Term\030\004 \001(\003\022\014\n\004data\030\005 \001(\014\022\022\n\nchunkIndex\030\006" +
" \001(\005\022\023\n\013totalChunks\030\007 \001(\005BX\n;org.openday" +
"light.controller.protobuff.messages.clus" +
"ter.raftB\027InstallSnapshotMessagesH\001"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
internal_static_org_opendaylight_controller_cluster_raft_InstallSnapshot_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_org_opendaylight_controller_cluster_raft_InstallSnapshot_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_org_opendaylight_controller_cluster_raft_InstallSnapshot_descriptor,
new java.lang.String[] { "Term", "LeaderId", "LastIncludedIndex", "LastIncludedTerm", "Data", "ChunkIndex", "TotalChunks", });
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
}
// @@protoc_insertion_point(outer_class_scope)
}