Package com.exonum.messages.core
Class Proofs.BlockProof.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Proofs.BlockProof.Builder>
com.exonum.messages.core.Proofs.BlockProof.Builder
- All Implemented Interfaces:
Proofs.BlockProofOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- Proofs.BlockProof
public static final class Proofs.BlockProof.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Proofs.BlockProof.Builder> implements Proofs.BlockProofOrBuilder
Block with its `Precommit` messages. This structure contains enough information to prove the correctness of a block. It consists of the block itself and the `Precommit` messages related to this block.Protobuf type
exonum.BlockProof-
Method Summary
Modifier and Type Method Description Proofs.BlockProof.BuilderaddAllPrecommits(java.lang.Iterable<? extends Messages.SignedMessage> values)List of `Precommit` messages for the block.Proofs.BlockProof.BuilderaddPrecommits(int index, Messages.SignedMessage value)List of `Precommit` messages for the block.Proofs.BlockProof.BuilderaddPrecommits(int index, Messages.SignedMessage.Builder builderForValue)List of `Precommit` messages for the block.Proofs.BlockProof.BuilderaddPrecommits(Messages.SignedMessage value)List of `Precommit` messages for the block.Proofs.BlockProof.BuilderaddPrecommits(Messages.SignedMessage.Builder builderForValue)List of `Precommit` messages for the block.Messages.SignedMessage.BuilderaddPrecommitsBuilder()List of `Precommit` messages for the block.Messages.SignedMessage.BuilderaddPrecommitsBuilder(int index)List of `Precommit` messages for the block.Proofs.BlockProof.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Proofs.BlockProofbuild()Proofs.BlockProofbuildPartial()Proofs.BlockProof.Builderclear()Proofs.BlockProof.BuilderclearBlock()Block header containing such information as the ID of the node which proposed the block, the height of the block, the number of transactions in the block, etc.Proofs.BlockProof.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Proofs.BlockProof.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Proofs.BlockProof.BuilderclearPrecommits()List of `Precommit` messages for the block.Proofs.BlockProof.Builderclone()Blockchain.BlockgetBlock()Block header containing such information as the ID of the node which proposed the block, the height of the block, the number of transactions in the block, etc.Blockchain.Block.BuildergetBlockBuilder()Block header containing such information as the ID of the node which proposed the block, the height of the block, the number of transactions in the block, etc.Blockchain.BlockOrBuildergetBlockOrBuilder()Block header containing such information as the ID of the node which proposed the block, the height of the block, the number of transactions in the block, etc.Proofs.BlockProofgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Messages.SignedMessagegetPrecommits(int index)List of `Precommit` messages for the block.Messages.SignedMessage.BuildergetPrecommitsBuilder(int index)List of `Precommit` messages for the block.java.util.List<Messages.SignedMessage.Builder>getPrecommitsBuilderList()List of `Precommit` messages for the block.intgetPrecommitsCount()List of `Precommit` messages for the block.java.util.List<Messages.SignedMessage>getPrecommitsList()List of `Precommit` messages for the block.Messages.SignedMessageOrBuildergetPrecommitsOrBuilder(int index)List of `Precommit` messages for the block.java.util.List<? extends Messages.SignedMessageOrBuilder>getPrecommitsOrBuilderList()List of `Precommit` messages for the block.booleanhasBlock()Block header containing such information as the ID of the node which proposed the block, the height of the block, the number of transactions in the block, etc.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Proofs.BlockProof.BuildermergeBlock(Blockchain.Block value)Block header containing such information as the ID of the node which proposed the block, the height of the block, the number of transactions in the block, etc.Proofs.BlockProof.BuildermergeFrom(Proofs.BlockProof other)Proofs.BlockProof.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Proofs.BlockProof.BuildermergeFrom(com.google.protobuf.Message other)Proofs.BlockProof.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Proofs.BlockProof.BuilderremovePrecommits(int index)List of `Precommit` messages for the block.Proofs.BlockProof.BuildersetBlock(Blockchain.Block value)Block header containing such information as the ID of the node which proposed the block, the height of the block, the number of transactions in the block, etc.Proofs.BlockProof.BuildersetBlock(Blockchain.Block.Builder builderForValue)Block header containing such information as the ID of the node which proposed the block, the height of the block, the number of transactions in the block, etc.Proofs.BlockProof.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Proofs.BlockProof.BuildersetPrecommits(int index, Messages.SignedMessage value)List of `Precommit` messages for the block.Proofs.BlockProof.BuildersetPrecommits(int index, Messages.SignedMessage.Builder builderForValue)List of `Precommit` messages for the block.Proofs.BlockProof.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)Proofs.BlockProof.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Proofs.BlockProof.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Proofs.BlockProof.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Proofs.BlockProof.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Proofs.BlockProof.Builder>
-
setField
public Proofs.BlockProof.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Proofs.BlockProof.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Proofs.BlockProof.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Proofs.BlockProof.Builder>
-
setRepeatedField
public Proofs.BlockProof.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Proofs.BlockProof.Builder>
-
addRepeatedField
public Proofs.BlockProof.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Proofs.BlockProof.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Proofs.BlockProof.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Proofs.BlockProof.Builder>
-
mergeFrom
public Proofs.BlockProof.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Proofs.BlockProof.Builder>- Throws:
java.io.IOException
-
hasBlock
public boolean hasBlock()Block header containing such information as the ID of the node which proposed the block, the height of the block, the number of transactions in the block, etc.
.exonum.Block block = 1;- Specified by:
hasBlockin interfaceProofs.BlockProofOrBuilder- Returns:
- Whether the block field is set.
-
getBlock
Block header containing such information as the ID of the node which proposed the block, the height of the block, the number of transactions in the block, etc.
.exonum.Block block = 1;- Specified by:
getBlockin interfaceProofs.BlockProofOrBuilder- Returns:
- The block.
-
setBlock
Block header containing such information as the ID of the node which proposed the block, the height of the block, the number of transactions in the block, etc.
.exonum.Block block = 1; -
setBlock
Block header containing such information as the ID of the node which proposed the block, the height of the block, the number of transactions in the block, etc.
.exonum.Block block = 1; -
mergeBlock
Block header containing such information as the ID of the node which proposed the block, the height of the block, the number of transactions in the block, etc.
.exonum.Block block = 1; -
clearBlock
Block header containing such information as the ID of the node which proposed the block, the height of the block, the number of transactions in the block, etc.
.exonum.Block block = 1; -
getBlockBuilder
Block header containing such information as the ID of the node which proposed the block, the height of the block, the number of transactions in the block, etc.
.exonum.Block block = 1; -
getBlockOrBuilder
Block header containing such information as the ID of the node which proposed the block, the height of the block, the number of transactions in the block, etc.
.exonum.Block block = 1;- Specified by:
getBlockOrBuilderin interfaceProofs.BlockProofOrBuilder
-
getPrecommitsList
List of `Precommit` messages for the block.
repeated .exonum.SignedMessage precommits = 2;- Specified by:
getPrecommitsListin interfaceProofs.BlockProofOrBuilder
-
getPrecommitsCount
public int getPrecommitsCount()List of `Precommit` messages for the block.
repeated .exonum.SignedMessage precommits = 2;- Specified by:
getPrecommitsCountin interfaceProofs.BlockProofOrBuilder
-
getPrecommits
List of `Precommit` messages for the block.
repeated .exonum.SignedMessage precommits = 2;- Specified by:
getPrecommitsin interfaceProofs.BlockProofOrBuilder
-
setPrecommits
List of `Precommit` messages for the block.
repeated .exonum.SignedMessage precommits = 2; -
setPrecommits
public Proofs.BlockProof.Builder setPrecommits(int index, Messages.SignedMessage.Builder builderForValue)List of `Precommit` messages for the block.
repeated .exonum.SignedMessage precommits = 2; -
addPrecommits
List of `Precommit` messages for the block.
repeated .exonum.SignedMessage precommits = 2; -
addPrecommits
List of `Precommit` messages for the block.
repeated .exonum.SignedMessage precommits = 2; -
addPrecommits
List of `Precommit` messages for the block.
repeated .exonum.SignedMessage precommits = 2; -
addPrecommits
public Proofs.BlockProof.Builder addPrecommits(int index, Messages.SignedMessage.Builder builderForValue)List of `Precommit` messages for the block.
repeated .exonum.SignedMessage precommits = 2; -
addAllPrecommits
public Proofs.BlockProof.Builder addAllPrecommits(java.lang.Iterable<? extends Messages.SignedMessage> values)List of `Precommit` messages for the block.
repeated .exonum.SignedMessage precommits = 2; -
clearPrecommits
List of `Precommit` messages for the block.
repeated .exonum.SignedMessage precommits = 2; -
removePrecommits
List of `Precommit` messages for the block.
repeated .exonum.SignedMessage precommits = 2; -
getPrecommitsBuilder
List of `Precommit` messages for the block.
repeated .exonum.SignedMessage precommits = 2; -
getPrecommitsOrBuilder
List of `Precommit` messages for the block.
repeated .exonum.SignedMessage precommits = 2;- Specified by:
getPrecommitsOrBuilderin interfaceProofs.BlockProofOrBuilder
-
getPrecommitsOrBuilderList
List of `Precommit` messages for the block.
repeated .exonum.SignedMessage precommits = 2;- Specified by:
getPrecommitsOrBuilderListin interfaceProofs.BlockProofOrBuilder
-
addPrecommitsBuilder
List of `Precommit` messages for the block.
repeated .exonum.SignedMessage precommits = 2; -
addPrecommitsBuilder
List of `Precommit` messages for the block.
repeated .exonum.SignedMessage precommits = 2; -
getPrecommitsBuilderList
List of `Precommit` messages for the block.
repeated .exonum.SignedMessage precommits = 2; -
setUnknownFields
public final Proofs.BlockProof.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Proofs.BlockProof.Builder>
-
mergeUnknownFields
public final Proofs.BlockProof.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Proofs.BlockProof.Builder>
-