Package com.exonum.core.messages
Class Blockchain.Config
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.exonum.core.messages.Blockchain.Config
- All Implemented Interfaces:
Blockchain.ConfigOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- Blockchain
public static final class Blockchain.Config extends com.google.protobuf.GeneratedMessageV3 implements Blockchain.ConfigOrBuilder
Consensus algorithm parameters.Protobuf type
exonum.Config- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBlockchain.Config.BuilderConsensus algorithm parameters.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, 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, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter -
Field Summary
Fields Modifier and Type Field Description static intFIRST_ROUND_TIMEOUT_FIELD_NUMBERstatic intMAX_MESSAGE_LEN_FIELD_NUMBERstatic intMAX_PROPOSE_TIMEOUT_FIELD_NUMBERstatic intMIN_PROPOSE_TIMEOUT_FIELD_NUMBERstatic intPEERS_TIMEOUT_FIELD_NUMBERstatic intPROPOSE_TIMEOUT_THRESHOLD_FIELD_NUMBERstatic intSTATUS_TIMEOUT_FIELD_NUMBERstatic intTXS_BLOCK_LIMIT_FIELD_NUMBERstatic intVALIDATOR_KEYS_FIELD_NUMBER -
Method Summary
Modifier and Type Method Description booleanequals(Object obj)static Blockchain.ConfiggetDefaultInstance()Blockchain.ConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()longgetFirstRoundTimeout()Interval between first two rounds.intgetMaxMessageLen()Maximum message length (in bytes).longgetMaxProposeTimeout()Maximal propose timeout.longgetMinProposeTimeout()Minimal propose timeout.com.google.protobuf.Parser<Blockchain.Config>getParserForType()longgetPeersTimeout()Peer exchange timeout.intgetProposeTimeoutThreshold()Amount of transactions in pool to start use `min_propose_timeout`.intgetSerializedSize()longgetStatusTimeout()Period of sending a Status message.intgetTxsBlockLimit()Maximum number of transactions per block.com.google.protobuf.UnknownFieldSetgetUnknownFields()Blockchain.ValidatorKeysgetValidatorKeys(int index)List of validators public keys.intgetValidatorKeysCount()List of validators public keys.List<Blockchain.ValidatorKeys>getValidatorKeysList()List of validators public keys.Blockchain.ValidatorKeysOrBuildergetValidatorKeysOrBuilder(int index)List of validators public keys.List<? extends Blockchain.ValidatorKeysOrBuilder>getValidatorKeysOrBuilderList()List of validators public keys.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Blockchain.Config.BuildernewBuilder()static Blockchain.Config.BuildernewBuilder(Blockchain.Config prototype)Blockchain.Config.BuildernewBuilderForType()protected Blockchain.Config.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Blockchain.ConfigparseDelimitedFrom(InputStream input)static Blockchain.ConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Blockchain.ConfigparseFrom(byte[] data)static Blockchain.ConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Blockchain.ConfigparseFrom(com.google.protobuf.ByteString data)static Blockchain.ConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Blockchain.ConfigparseFrom(com.google.protobuf.CodedInputStream input)static Blockchain.ConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Blockchain.ConfigparseFrom(InputStream input)static Blockchain.ConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Blockchain.ConfigparseFrom(ByteBuffer data)static Blockchain.ConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Blockchain.Config>parser()Blockchain.Config.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
VALIDATOR_KEYS_FIELD_NUMBER
public static final int VALIDATOR_KEYS_FIELD_NUMBER- See Also:
- Constant Field Values
-
FIRST_ROUND_TIMEOUT_FIELD_NUMBER
public static final int FIRST_ROUND_TIMEOUT_FIELD_NUMBER- See Also:
- Constant Field Values
-
STATUS_TIMEOUT_FIELD_NUMBER
public static final int STATUS_TIMEOUT_FIELD_NUMBER- See Also:
- Constant Field Values
-
PEERS_TIMEOUT_FIELD_NUMBER
public static final int PEERS_TIMEOUT_FIELD_NUMBER- See Also:
- Constant Field Values
-
TXS_BLOCK_LIMIT_FIELD_NUMBER
public static final int TXS_BLOCK_LIMIT_FIELD_NUMBER- See Also:
- Constant Field Values
-
MAX_MESSAGE_LEN_FIELD_NUMBER
public static final int MAX_MESSAGE_LEN_FIELD_NUMBER- See Also:
- Constant Field Values
-
MIN_PROPOSE_TIMEOUT_FIELD_NUMBER
public static final int MIN_PROPOSE_TIMEOUT_FIELD_NUMBER- See Also:
- Constant Field Values
-
MAX_PROPOSE_TIMEOUT_FIELD_NUMBER
public static final int MAX_PROPOSE_TIMEOUT_FIELD_NUMBER- See Also:
- Constant Field Values
-
PROPOSE_TIMEOUT_THRESHOLD_FIELD_NUMBER
public static final int PROPOSE_TIMEOUT_THRESHOLD_FIELD_NUMBER- See Also:
- Constant Field Values
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getValidatorKeysList
List of validators public keys.
repeated .exonum.ValidatorKeys validator_keys = 1;- Specified by:
getValidatorKeysListin interfaceBlockchain.ConfigOrBuilder
-
getValidatorKeysOrBuilderList
List of validators public keys.
repeated .exonum.ValidatorKeys validator_keys = 1;- Specified by:
getValidatorKeysOrBuilderListin interfaceBlockchain.ConfigOrBuilder
-
getValidatorKeysCount
public int getValidatorKeysCount()List of validators public keys.
repeated .exonum.ValidatorKeys validator_keys = 1;- Specified by:
getValidatorKeysCountin interfaceBlockchain.ConfigOrBuilder
-
getValidatorKeys
List of validators public keys.
repeated .exonum.ValidatorKeys validator_keys = 1;- Specified by:
getValidatorKeysin interfaceBlockchain.ConfigOrBuilder
-
getValidatorKeysOrBuilder
List of validators public keys.
repeated .exonum.ValidatorKeys validator_keys = 1;- Specified by:
getValidatorKeysOrBuilderin interfaceBlockchain.ConfigOrBuilder
-
getFirstRoundTimeout
public long getFirstRoundTimeout()Interval between first two rounds.
uint64 first_round_timeout = 2;- Specified by:
getFirstRoundTimeoutin interfaceBlockchain.ConfigOrBuilder- Returns:
- The firstRoundTimeout.
-
getStatusTimeout
public long getStatusTimeout()Period of sending a Status message.
uint64 status_timeout = 3;- Specified by:
getStatusTimeoutin interfaceBlockchain.ConfigOrBuilder- Returns:
- The statusTimeout.
-
getPeersTimeout
public long getPeersTimeout()Peer exchange timeout.
uint64 peers_timeout = 4;- Specified by:
getPeersTimeoutin interfaceBlockchain.ConfigOrBuilder- Returns:
- The peersTimeout.
-
getTxsBlockLimit
public int getTxsBlockLimit()Maximum number of transactions per block.
uint32 txs_block_limit = 5;- Specified by:
getTxsBlockLimitin interfaceBlockchain.ConfigOrBuilder- Returns:
- The txsBlockLimit.
-
getMaxMessageLen
public int getMaxMessageLen()Maximum message length (in bytes).
uint32 max_message_len = 6;- Specified by:
getMaxMessageLenin interfaceBlockchain.ConfigOrBuilder- Returns:
- The maxMessageLen.
-
getMinProposeTimeout
public long getMinProposeTimeout()Minimal propose timeout.
uint64 min_propose_timeout = 7;- Specified by:
getMinProposeTimeoutin interfaceBlockchain.ConfigOrBuilder- Returns:
- The minProposeTimeout.
-
getMaxProposeTimeout
public long getMaxProposeTimeout()Maximal propose timeout.
uint64 max_propose_timeout = 8;- Specified by:
getMaxProposeTimeoutin interfaceBlockchain.ConfigOrBuilder- Returns:
- The maxProposeTimeout.
-
getProposeTimeoutThreshold
public int getProposeTimeoutThreshold()Amount of transactions in pool to start use `min_propose_timeout`.
uint32 propose_timeout_threshold = 9;- Specified by:
getProposeTimeoutThresholdin interfaceBlockchain.ConfigOrBuilder- Returns:
- The proposeTimeoutThreshold.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Blockchain.Config parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Blockchain.Config parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Blockchain.Config parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Blockchain.Config parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Blockchain.Config parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Blockchain.Config parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Blockchain.Config parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException- Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Blockchain.Config parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException- Throws:
IOException
-
parseFrom
public static Blockchain.Config parseFrom(com.google.protobuf.CodedInputStream input) throws IOException- Throws:
IOException
-
parseFrom
public static Blockchain.Config parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException- Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Blockchain.Config.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-