All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.hyperledger.fabric.protos.orderer.etcdraft.Options Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: orderer/etcdraft/configuration.proto
package org.hyperledger.fabric.protos.orderer.etcdraft;
/**
*
* Options to be specified for all the etcd/raft nodes. These can be modified on a
* per-channel basis.
*
*
* Protobuf type {@code etcdraft.Options}
*/
public final class Options extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:etcdraft.Options)
OptionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use Options.newBuilder() to construct.
private Options(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Options() {
tickInterval_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Options();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Options(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
tickInterval_ = s;
break;
}
case 16: {
electionTick_ = input.readUInt32();
break;
}
case 24: {
heartbeatTick_ = input.readUInt32();
break;
}
case 32: {
maxInflightBlocks_ = input.readUInt32();
break;
}
case 40: {
snapshotIntervalSize_ = input.readUInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.orderer.etcdraft.ConfigurationProto.internal_static_etcdraft_Options_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.orderer.etcdraft.ConfigurationProto.internal_static_etcdraft_Options_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.orderer.etcdraft.Options.class, org.hyperledger.fabric.protos.orderer.etcdraft.Options.Builder.class);
}
public static final int TICK_INTERVAL_FIELD_NUMBER = 1;
private volatile java.lang.Object tickInterval_;
/**
*
* time duration format, e.g. 500ms
*
*
* string tick_interval = 1 [json_name = "tickInterval"];
* @return The tickInterval.
*/
@java.lang.Override
public java.lang.String getTickInterval() {
java.lang.Object ref = tickInterval_;
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();
tickInterval_ = s;
return s;
}
}
/**
*
* time duration format, e.g. 500ms
*
*
* string tick_interval = 1 [json_name = "tickInterval"];
* @return The bytes for tickInterval.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTickIntervalBytes() {
java.lang.Object ref = tickInterval_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tickInterval_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ELECTION_TICK_FIELD_NUMBER = 2;
private int electionTick_;
/**
* uint32 election_tick = 2 [json_name = "electionTick"];
* @return The electionTick.
*/
@java.lang.Override
public int getElectionTick() {
return electionTick_;
}
public static final int HEARTBEAT_TICK_FIELD_NUMBER = 3;
private int heartbeatTick_;
/**
* uint32 heartbeat_tick = 3 [json_name = "heartbeatTick"];
* @return The heartbeatTick.
*/
@java.lang.Override
public int getHeartbeatTick() {
return heartbeatTick_;
}
public static final int MAX_INFLIGHT_BLOCKS_FIELD_NUMBER = 4;
private int maxInflightBlocks_;
/**
* uint32 max_inflight_blocks = 4 [json_name = "maxInflightBlocks"];
* @return The maxInflightBlocks.
*/
@java.lang.Override
public int getMaxInflightBlocks() {
return maxInflightBlocks_;
}
public static final int SNAPSHOT_INTERVAL_SIZE_FIELD_NUMBER = 5;
private int snapshotIntervalSize_;
/**
*
* Take snapshot when cumulative data exceeds certain size in bytes.
*
*
* uint32 snapshot_interval_size = 5 [json_name = "snapshotIntervalSize"];
* @return The snapshotIntervalSize.
*/
@java.lang.Override
public int getSnapshotIntervalSize() {
return snapshotIntervalSize_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tickInterval_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tickInterval_);
}
if (electionTick_ != 0) {
output.writeUInt32(2, electionTick_);
}
if (heartbeatTick_ != 0) {
output.writeUInt32(3, heartbeatTick_);
}
if (maxInflightBlocks_ != 0) {
output.writeUInt32(4, maxInflightBlocks_);
}
if (snapshotIntervalSize_ != 0) {
output.writeUInt32(5, snapshotIntervalSize_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tickInterval_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tickInterval_);
}
if (electionTick_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, electionTick_);
}
if (heartbeatTick_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, heartbeatTick_);
}
if (maxInflightBlocks_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, maxInflightBlocks_);
}
if (snapshotIntervalSize_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, snapshotIntervalSize_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.orderer.etcdraft.Options)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.orderer.etcdraft.Options other = (org.hyperledger.fabric.protos.orderer.etcdraft.Options) obj;
if (!getTickInterval()
.equals(other.getTickInterval())) return false;
if (getElectionTick()
!= other.getElectionTick()) return false;
if (getHeartbeatTick()
!= other.getHeartbeatTick()) return false;
if (getMaxInflightBlocks()
!= other.getMaxInflightBlocks()) return false;
if (getSnapshotIntervalSize()
!= other.getSnapshotIntervalSize()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TICK_INTERVAL_FIELD_NUMBER;
hash = (53 * hash) + getTickInterval().hashCode();
hash = (37 * hash) + ELECTION_TICK_FIELD_NUMBER;
hash = (53 * hash) + getElectionTick();
hash = (37 * hash) + HEARTBEAT_TICK_FIELD_NUMBER;
hash = (53 * hash) + getHeartbeatTick();
hash = (37 * hash) + MAX_INFLIGHT_BLOCKS_FIELD_NUMBER;
hash = (53 * hash) + getMaxInflightBlocks();
hash = (37 * hash) + SNAPSHOT_INTERVAL_SIZE_FIELD_NUMBER;
hash = (53 * hash) + getSnapshotIntervalSize();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.orderer.etcdraft.Options parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.etcdraft.Options parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.orderer.etcdraft.Options parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.etcdraft.Options parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.orderer.etcdraft.Options parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.orderer.etcdraft.Options parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.orderer.etcdraft.Options parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.etcdraft.Options parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.orderer.etcdraft.Options parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.etcdraft.Options parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.orderer.etcdraft.Options parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.orderer.etcdraft.Options parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.fabric.protos.orderer.etcdraft.Options prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Options to be specified for all the etcd/raft nodes. These can be modified on a
* per-channel basis.
*
*
* Protobuf type {@code etcdraft.Options}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:etcdraft.Options)
org.hyperledger.fabric.protos.orderer.etcdraft.OptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.orderer.etcdraft.ConfigurationProto.internal_static_etcdraft_Options_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.orderer.etcdraft.ConfigurationProto.internal_static_etcdraft_Options_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.orderer.etcdraft.Options.class, org.hyperledger.fabric.protos.orderer.etcdraft.Options.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.orderer.etcdraft.Options.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
tickInterval_ = "";
electionTick_ = 0;
heartbeatTick_ = 0;
maxInflightBlocks_ = 0;
snapshotIntervalSize_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.orderer.etcdraft.ConfigurationProto.internal_static_etcdraft_Options_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.etcdraft.Options getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.orderer.etcdraft.Options.getDefaultInstance();
}
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.etcdraft.Options build() {
org.hyperledger.fabric.protos.orderer.etcdraft.Options result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.etcdraft.Options buildPartial() {
org.hyperledger.fabric.protos.orderer.etcdraft.Options result = new org.hyperledger.fabric.protos.orderer.etcdraft.Options(this);
result.tickInterval_ = tickInterval_;
result.electionTick_ = electionTick_;
result.heartbeatTick_ = heartbeatTick_;
result.maxInflightBlocks_ = maxInflightBlocks_;
result.snapshotIntervalSize_ = snapshotIntervalSize_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.orderer.etcdraft.Options) {
return mergeFrom((org.hyperledger.fabric.protos.orderer.etcdraft.Options)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.orderer.etcdraft.Options other) {
if (other == org.hyperledger.fabric.protos.orderer.etcdraft.Options.getDefaultInstance()) return this;
if (!other.getTickInterval().isEmpty()) {
tickInterval_ = other.tickInterval_;
onChanged();
}
if (other.getElectionTick() != 0) {
setElectionTick(other.getElectionTick());
}
if (other.getHeartbeatTick() != 0) {
setHeartbeatTick(other.getHeartbeatTick());
}
if (other.getMaxInflightBlocks() != 0) {
setMaxInflightBlocks(other.getMaxInflightBlocks());
}
if (other.getSnapshotIntervalSize() != 0) {
setSnapshotIntervalSize(other.getSnapshotIntervalSize());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.hyperledger.fabric.protos.orderer.etcdraft.Options parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.hyperledger.fabric.protos.orderer.etcdraft.Options) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object tickInterval_ = "";
/**
*
* time duration format, e.g. 500ms
*
*
* string tick_interval = 1 [json_name = "tickInterval"];
* @return The tickInterval.
*/
public java.lang.String getTickInterval() {
java.lang.Object ref = tickInterval_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
tickInterval_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* time duration format, e.g. 500ms
*
*
* string tick_interval = 1 [json_name = "tickInterval"];
* @return The bytes for tickInterval.
*/
public com.google.protobuf.ByteString
getTickIntervalBytes() {
java.lang.Object ref = tickInterval_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tickInterval_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* time duration format, e.g. 500ms
*
*
* string tick_interval = 1 [json_name = "tickInterval"];
* @param value The tickInterval to set.
* @return This builder for chaining.
*/
public Builder setTickInterval(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
tickInterval_ = value;
onChanged();
return this;
}
/**
*
* time duration format, e.g. 500ms
*
*
* string tick_interval = 1 [json_name = "tickInterval"];
* @return This builder for chaining.
*/
public Builder clearTickInterval() {
tickInterval_ = getDefaultInstance().getTickInterval();
onChanged();
return this;
}
/**
*
* time duration format, e.g. 500ms
*
*
* string tick_interval = 1 [json_name = "tickInterval"];
* @param value The bytes for tickInterval to set.
* @return This builder for chaining.
*/
public Builder setTickIntervalBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
tickInterval_ = value;
onChanged();
return this;
}
private int electionTick_ ;
/**
* uint32 election_tick = 2 [json_name = "electionTick"];
* @return The electionTick.
*/
@java.lang.Override
public int getElectionTick() {
return electionTick_;
}
/**
* uint32 election_tick = 2 [json_name = "electionTick"];
* @param value The electionTick to set.
* @return This builder for chaining.
*/
public Builder setElectionTick(int value) {
electionTick_ = value;
onChanged();
return this;
}
/**
* uint32 election_tick = 2 [json_name = "electionTick"];
* @return This builder for chaining.
*/
public Builder clearElectionTick() {
electionTick_ = 0;
onChanged();
return this;
}
private int heartbeatTick_ ;
/**
* uint32 heartbeat_tick = 3 [json_name = "heartbeatTick"];
* @return The heartbeatTick.
*/
@java.lang.Override
public int getHeartbeatTick() {
return heartbeatTick_;
}
/**
* uint32 heartbeat_tick = 3 [json_name = "heartbeatTick"];
* @param value The heartbeatTick to set.
* @return This builder for chaining.
*/
public Builder setHeartbeatTick(int value) {
heartbeatTick_ = value;
onChanged();
return this;
}
/**
* uint32 heartbeat_tick = 3 [json_name = "heartbeatTick"];
* @return This builder for chaining.
*/
public Builder clearHeartbeatTick() {
heartbeatTick_ = 0;
onChanged();
return this;
}
private int maxInflightBlocks_ ;
/**
* uint32 max_inflight_blocks = 4 [json_name = "maxInflightBlocks"];
* @return The maxInflightBlocks.
*/
@java.lang.Override
public int getMaxInflightBlocks() {
return maxInflightBlocks_;
}
/**
* uint32 max_inflight_blocks = 4 [json_name = "maxInflightBlocks"];
* @param value The maxInflightBlocks to set.
* @return This builder for chaining.
*/
public Builder setMaxInflightBlocks(int value) {
maxInflightBlocks_ = value;
onChanged();
return this;
}
/**
* uint32 max_inflight_blocks = 4 [json_name = "maxInflightBlocks"];
* @return This builder for chaining.
*/
public Builder clearMaxInflightBlocks() {
maxInflightBlocks_ = 0;
onChanged();
return this;
}
private int snapshotIntervalSize_ ;
/**
*
* Take snapshot when cumulative data exceeds certain size in bytes.
*
*
* uint32 snapshot_interval_size = 5 [json_name = "snapshotIntervalSize"];
* @return The snapshotIntervalSize.
*/
@java.lang.Override
public int getSnapshotIntervalSize() {
return snapshotIntervalSize_;
}
/**
*
* Take snapshot when cumulative data exceeds certain size in bytes.
*
*
* uint32 snapshot_interval_size = 5 [json_name = "snapshotIntervalSize"];
* @param value The snapshotIntervalSize to set.
* @return This builder for chaining.
*/
public Builder setSnapshotIntervalSize(int value) {
snapshotIntervalSize_ = value;
onChanged();
return this;
}
/**
*
* Take snapshot when cumulative data exceeds certain size in bytes.
*
*
* uint32 snapshot_interval_size = 5 [json_name = "snapshotIntervalSize"];
* @return This builder for chaining.
*/
public Builder clearSnapshotIntervalSize() {
snapshotIntervalSize_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:etcdraft.Options)
}
// @@protoc_insertion_point(class_scope:etcdraft.Options)
private static final org.hyperledger.fabric.protos.orderer.etcdraft.Options DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.orderer.etcdraft.Options();
}
public static org.hyperledger.fabric.protos.orderer.etcdraft.Options getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Options parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Options(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.hyperledger.fabric.protos.orderer.etcdraft.Options getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}