Package com.exonum.messages.core
Class Blockchain.Config.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Blockchain.Config.Builder>
com.exonum.messages.core.Blockchain.Config.Builder
- All Implemented Interfaces:
Blockchain.ConfigOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
- Enclosing class:
- Blockchain.Config
public static final class Blockchain.Config.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Blockchain.Config.Builder> implements Blockchain.ConfigOrBuilder
Consensus algorithm parameters.Protobuf type
exonum.Config
-
Method Summary
Modifier and Type Method Description Blockchain.Config.Builder
addAllValidatorKeys(java.lang.Iterable<? extends Blockchain.ValidatorKeys> values)
List of validators public keys.Blockchain.Config.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Blockchain.Config.Builder
addValidatorKeys(int index, Blockchain.ValidatorKeys value)
List of validators public keys.Blockchain.Config.Builder
addValidatorKeys(int index, Blockchain.ValidatorKeys.Builder builderForValue)
List of validators public keys.Blockchain.Config.Builder
addValidatorKeys(Blockchain.ValidatorKeys value)
List of validators public keys.Blockchain.Config.Builder
addValidatorKeys(Blockchain.ValidatorKeys.Builder builderForValue)
List of validators public keys.Blockchain.ValidatorKeys.Builder
addValidatorKeysBuilder()
List of validators public keys.Blockchain.ValidatorKeys.Builder
addValidatorKeysBuilder(int index)
List of validators public keys.Blockchain.Config
build()
Blockchain.Config
buildPartial()
Blockchain.Config.Builder
clear()
Blockchain.Config.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Blockchain.Config.Builder
clearFirstRoundTimeout()
Interval between first two rounds.Blockchain.Config.Builder
clearMaxMessageLen()
Maximum message length (in bytes).Blockchain.Config.Builder
clearMaxProposeTimeout()
Maximal propose timeout.Blockchain.Config.Builder
clearMinProposeTimeout()
Minimal propose timeout.Blockchain.Config.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Blockchain.Config.Builder
clearPeersTimeout()
Peer exchange timeout.Blockchain.Config.Builder
clearProposeTimeoutThreshold()
Amount of transactions in pool to start use `min_propose_timeout`.Blockchain.Config.Builder
clearStatusTimeout()
Period of sending a Status message.Blockchain.Config.Builder
clearTxsBlockLimit()
Maximum number of transactions per block.Blockchain.Config.Builder
clearValidatorKeys()
List of validators public keys.Blockchain.Config.Builder
clone()
Blockchain.Config
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
long
getFirstRoundTimeout()
Interval between first two rounds.int
getMaxMessageLen()
Maximum message length (in bytes).long
getMaxProposeTimeout()
Maximal propose timeout.long
getMinProposeTimeout()
Minimal propose timeout.long
getPeersTimeout()
Peer exchange timeout.int
getProposeTimeoutThreshold()
Amount of transactions in pool to start use `min_propose_timeout`.long
getStatusTimeout()
Period of sending a Status message.int
getTxsBlockLimit()
Maximum number of transactions per block.Blockchain.ValidatorKeys
getValidatorKeys(int index)
List of validators public keys.Blockchain.ValidatorKeys.Builder
getValidatorKeysBuilder(int index)
List of validators public keys.java.util.List<Blockchain.ValidatorKeys.Builder>
getValidatorKeysBuilderList()
List of validators public keys.int
getValidatorKeysCount()
List of validators public keys.java.util.List<Blockchain.ValidatorKeys>
getValidatorKeysList()
List of validators public keys.Blockchain.ValidatorKeysOrBuilder
getValidatorKeysOrBuilder(int index)
List of validators public keys.java.util.List<? extends Blockchain.ValidatorKeysOrBuilder>
getValidatorKeysOrBuilderList()
List of validators public keys.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Blockchain.Config.Builder
mergeFrom(Blockchain.Config other)
Blockchain.Config.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Blockchain.Config.Builder
mergeFrom(com.google.protobuf.Message other)
Blockchain.Config.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Blockchain.Config.Builder
removeValidatorKeys(int index)
List of validators public keys.Blockchain.Config.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Blockchain.Config.Builder
setFirstRoundTimeout(long value)
Interval between first two rounds.Blockchain.Config.Builder
setMaxMessageLen(int value)
Maximum message length (in bytes).Blockchain.Config.Builder
setMaxProposeTimeout(long value)
Maximal propose timeout.Blockchain.Config.Builder
setMinProposeTimeout(long value)
Minimal propose timeout.Blockchain.Config.Builder
setPeersTimeout(long value)
Peer exchange timeout.Blockchain.Config.Builder
setProposeTimeoutThreshold(int value)
Amount of transactions in pool to start use `min_propose_timeout`.Blockchain.Config.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Blockchain.Config.Builder
setStatusTimeout(long value)
Period of sending a Status message.Blockchain.Config.Builder
setTxsBlockLimit(int value)
Maximum number of transactions per block.Blockchain.Config.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Blockchain.Config.Builder
setValidatorKeys(int index, Blockchain.ValidatorKeys value)
List of validators public keys.Blockchain.Config.Builder
setValidatorKeys(int index, Blockchain.ValidatorKeys.Builder builderForValue)
List of validators public keys.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Blockchain.Config.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Blockchain.Config.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Blockchain.Config.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Blockchain.Config.Builder>
-
setField
public Blockchain.Config.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Blockchain.Config.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Blockchain.Config.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Blockchain.Config.Builder>
-
setRepeatedField
public Blockchain.Config.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Blockchain.Config.Builder>
-
addRepeatedField
public Blockchain.Config.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Blockchain.Config.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Blockchain.Config.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Blockchain.Config.Builder>
-
mergeFrom
public Blockchain.Config.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Blockchain.Config.Builder>
- Throws:
java.io.IOException
-
getValidatorKeysList
List of validators public keys.
repeated .exonum.ValidatorKeys validator_keys = 1;
- Specified by:
getValidatorKeysList
in interfaceBlockchain.ConfigOrBuilder
-
getValidatorKeysCount
public int getValidatorKeysCount()List of validators public keys.
repeated .exonum.ValidatorKeys validator_keys = 1;
- Specified by:
getValidatorKeysCount
in interfaceBlockchain.ConfigOrBuilder
-
getValidatorKeys
List of validators public keys.
repeated .exonum.ValidatorKeys validator_keys = 1;
- Specified by:
getValidatorKeys
in interfaceBlockchain.ConfigOrBuilder
-
setValidatorKeys
List of validators public keys.
repeated .exonum.ValidatorKeys validator_keys = 1;
-
setValidatorKeys
public Blockchain.Config.Builder setValidatorKeys(int index, Blockchain.ValidatorKeys.Builder builderForValue)List of validators public keys.
repeated .exonum.ValidatorKeys validator_keys = 1;
-
addValidatorKeys
List of validators public keys.
repeated .exonum.ValidatorKeys validator_keys = 1;
-
addValidatorKeys
List of validators public keys.
repeated .exonum.ValidatorKeys validator_keys = 1;
-
addValidatorKeys
public Blockchain.Config.Builder addValidatorKeys(Blockchain.ValidatorKeys.Builder builderForValue)List of validators public keys.
repeated .exonum.ValidatorKeys validator_keys = 1;
-
addValidatorKeys
public Blockchain.Config.Builder addValidatorKeys(int index, Blockchain.ValidatorKeys.Builder builderForValue)List of validators public keys.
repeated .exonum.ValidatorKeys validator_keys = 1;
-
addAllValidatorKeys
public Blockchain.Config.Builder addAllValidatorKeys(java.lang.Iterable<? extends Blockchain.ValidatorKeys> values)List of validators public keys.
repeated .exonum.ValidatorKeys validator_keys = 1;
-
clearValidatorKeys
List of validators public keys.
repeated .exonum.ValidatorKeys validator_keys = 1;
-
removeValidatorKeys
List of validators public keys.
repeated .exonum.ValidatorKeys validator_keys = 1;
-
getValidatorKeysBuilder
List of validators public keys.
repeated .exonum.ValidatorKeys validator_keys = 1;
-
getValidatorKeysOrBuilder
List of validators public keys.
repeated .exonum.ValidatorKeys validator_keys = 1;
- Specified by:
getValidatorKeysOrBuilder
in interfaceBlockchain.ConfigOrBuilder
-
getValidatorKeysOrBuilderList
List of validators public keys.
repeated .exonum.ValidatorKeys validator_keys = 1;
- Specified by:
getValidatorKeysOrBuilderList
in interfaceBlockchain.ConfigOrBuilder
-
addValidatorKeysBuilder
List of validators public keys.
repeated .exonum.ValidatorKeys validator_keys = 1;
-
addValidatorKeysBuilder
List of validators public keys.
repeated .exonum.ValidatorKeys validator_keys = 1;
-
getValidatorKeysBuilderList
List of validators public keys.
repeated .exonum.ValidatorKeys validator_keys = 1;
-
getFirstRoundTimeout
public long getFirstRoundTimeout()Interval between first two rounds.
uint64 first_round_timeout = 2;
- Specified by:
getFirstRoundTimeout
in interfaceBlockchain.ConfigOrBuilder
- Returns:
- The firstRoundTimeout.
-
setFirstRoundTimeout
Interval between first two rounds.
uint64 first_round_timeout = 2;
- Parameters:
value
- The firstRoundTimeout to set.- Returns:
- This builder for chaining.
-
clearFirstRoundTimeout
Interval between first two rounds.
uint64 first_round_timeout = 2;
- Returns:
- This builder for chaining.
-
getStatusTimeout
public long getStatusTimeout()Period of sending a Status message.
uint64 status_timeout = 3;
- Specified by:
getStatusTimeout
in interfaceBlockchain.ConfigOrBuilder
- Returns:
- The statusTimeout.
-
setStatusTimeout
Period of sending a Status message.
uint64 status_timeout = 3;
- Parameters:
value
- The statusTimeout to set.- Returns:
- This builder for chaining.
-
clearStatusTimeout
Period of sending a Status message.
uint64 status_timeout = 3;
- Returns:
- This builder for chaining.
-
getPeersTimeout
public long getPeersTimeout()Peer exchange timeout.
uint64 peers_timeout = 4;
- Specified by:
getPeersTimeout
in interfaceBlockchain.ConfigOrBuilder
- Returns:
- The peersTimeout.
-
setPeersTimeout
Peer exchange timeout.
uint64 peers_timeout = 4;
- Parameters:
value
- The peersTimeout to set.- Returns:
- This builder for chaining.
-
clearPeersTimeout
Peer exchange timeout.
uint64 peers_timeout = 4;
- Returns:
- This builder for chaining.
-
getTxsBlockLimit
public int getTxsBlockLimit()Maximum number of transactions per block.
uint32 txs_block_limit = 5;
- Specified by:
getTxsBlockLimit
in interfaceBlockchain.ConfigOrBuilder
- Returns:
- The txsBlockLimit.
-
setTxsBlockLimit
Maximum number of transactions per block.
uint32 txs_block_limit = 5;
- Parameters:
value
- The txsBlockLimit to set.- Returns:
- This builder for chaining.
-
clearTxsBlockLimit
Maximum number of transactions per block.
uint32 txs_block_limit = 5;
- Returns:
- This builder for chaining.
-
getMaxMessageLen
public int getMaxMessageLen()Maximum message length (in bytes).
uint32 max_message_len = 6;
- Specified by:
getMaxMessageLen
in interfaceBlockchain.ConfigOrBuilder
- Returns:
- The maxMessageLen.
-
setMaxMessageLen
Maximum message length (in bytes).
uint32 max_message_len = 6;
- Parameters:
value
- The maxMessageLen to set.- Returns:
- This builder for chaining.
-
clearMaxMessageLen
Maximum message length (in bytes).
uint32 max_message_len = 6;
- Returns:
- This builder for chaining.
-
getMinProposeTimeout
public long getMinProposeTimeout()Minimal propose timeout.
uint64 min_propose_timeout = 7;
- Specified by:
getMinProposeTimeout
in interfaceBlockchain.ConfigOrBuilder
- Returns:
- The minProposeTimeout.
-
setMinProposeTimeout
Minimal propose timeout.
uint64 min_propose_timeout = 7;
- Parameters:
value
- The minProposeTimeout to set.- Returns:
- This builder for chaining.
-
clearMinProposeTimeout
Minimal propose timeout.
uint64 min_propose_timeout = 7;
- Returns:
- This builder for chaining.
-
getMaxProposeTimeout
public long getMaxProposeTimeout()Maximal propose timeout.
uint64 max_propose_timeout = 8;
- Specified by:
getMaxProposeTimeout
in interfaceBlockchain.ConfigOrBuilder
- Returns:
- The maxProposeTimeout.
-
setMaxProposeTimeout
Maximal propose timeout.
uint64 max_propose_timeout = 8;
- Parameters:
value
- The maxProposeTimeout to set.- Returns:
- This builder for chaining.
-
clearMaxProposeTimeout
Maximal propose timeout.
uint64 max_propose_timeout = 8;
- Returns:
- This builder for chaining.
-
getProposeTimeoutThreshold
public int getProposeTimeoutThreshold()Amount of transactions in pool to start use `min_propose_timeout`.
uint32 propose_timeout_threshold = 9;
- Specified by:
getProposeTimeoutThreshold
in interfaceBlockchain.ConfigOrBuilder
- Returns:
- The proposeTimeoutThreshold.
-
setProposeTimeoutThreshold
Amount of transactions in pool to start use `min_propose_timeout`.
uint32 propose_timeout_threshold = 9;
- Parameters:
value
- The proposeTimeoutThreshold to set.- Returns:
- This builder for chaining.
-
clearProposeTimeoutThreshold
Amount of transactions in pool to start use `min_propose_timeout`.
uint32 propose_timeout_threshold = 9;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final Blockchain.Config.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Blockchain.Config.Builder>
-
mergeUnknownFields
public final Blockchain.Config.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Blockchain.Config.Builder>
-