public final class Options extends com.google.protobuf.GeneratedMessageV3 implements OptionsOrBuilder
Options to be specified for all the etcd/raft nodes. These can be modified on a per-channel basis.Protobuf type
etcdraft.Options
Modifier and Type | Class and Description |
---|---|
static class |
Options.Builder
Options to be specified for all the etcd/raft nodes.
|
com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
Modifier and Type | Field and Description |
---|---|
static int |
ELECTION_TICK_FIELD_NUMBER |
static int |
HEARTBEAT_TICK_FIELD_NUMBER |
static int |
MAX_INFLIGHT_BLOCKS_FIELD_NUMBER |
static int |
SNAPSHOT_INTERVAL_SIZE_FIELD_NUMBER |
static int |
TICK_INTERVAL_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static Options |
getDefaultInstance() |
Options |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
int |
getElectionTick()
uint32 election_tick = 2 [json_name = "electionTick"]; |
int |
getHeartbeatTick()
uint32 heartbeat_tick = 3 [json_name = "heartbeatTick"]; |
int |
getMaxInflightBlocks()
uint32 max_inflight_blocks = 4 [json_name = "maxInflightBlocks"]; |
com.google.protobuf.Parser<Options> |
getParserForType() |
int |
getSerializedSize() |
int |
getSnapshotIntervalSize()
Take snapshot when cumulative data exceeds certain size in bytes.
|
String |
getTickInterval()
time duration format, e.g.
|
com.google.protobuf.ByteString |
getTickIntervalBytes()
time duration format, e.g.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
isInitialized() |
static Options.Builder |
newBuilder() |
static Options.Builder |
newBuilder(Options prototype) |
Options.Builder |
newBuilderForType() |
static Options |
parseDelimitedFrom(InputStream input) |
static Options |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Options |
parseFrom(byte[] data) |
static Options |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Options |
parseFrom(ByteBuffer data) |
static Options |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Options |
parseFrom(com.google.protobuf.ByteString data) |
static Options |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Options |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Options |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Options |
parseFrom(InputStream input) |
static Options |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Options> |
parser() |
Options.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
findInitializationErrors, getInitializationErrorString, toString
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int TICK_INTERVAL_FIELD_NUMBER
public static final int ELECTION_TICK_FIELD_NUMBER
public static final int HEARTBEAT_TICK_FIELD_NUMBER
public static final int MAX_INFLIGHT_BLOCKS_FIELD_NUMBER
public static final int SNAPSHOT_INTERVAL_SIZE_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
public String getTickInterval()
time duration format, e.g. 500ms
string tick_interval = 1 [json_name = "tickInterval"];
getTickInterval
in interface OptionsOrBuilder
public com.google.protobuf.ByteString getTickIntervalBytes()
time duration format, e.g. 500ms
string tick_interval = 1 [json_name = "tickInterval"];
getTickIntervalBytes
in interface OptionsOrBuilder
public int getElectionTick()
uint32 election_tick = 2 [json_name = "electionTick"];
getElectionTick
in interface OptionsOrBuilder
public int getHeartbeatTick()
uint32 heartbeat_tick = 3 [json_name = "heartbeatTick"];
getHeartbeatTick
in interface OptionsOrBuilder
public int getMaxInflightBlocks()
uint32 max_inflight_blocks = 4 [json_name = "maxInflightBlocks"];
getMaxInflightBlocks
in interface OptionsOrBuilder
public int getSnapshotIntervalSize()
Take snapshot when cumulative data exceeds certain size in bytes.
uint32 snapshot_interval_size = 5 [json_name = "snapshotIntervalSize"];
getSnapshotIntervalSize
in interface OptionsOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static Options parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Options parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Options parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Options parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Options parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Options parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Options parseFrom(InputStream input) throws IOException
IOException
public static Options parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Options parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Options parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Options parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static Options parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Options.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static Options.Builder newBuilder()
public static Options.Builder newBuilder(Options prototype)
public Options.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
public static Options getDefaultInstance()
public static com.google.protobuf.Parser<Options> parser()
public com.google.protobuf.Parser<Options> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public Options getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2022. All rights reserved.