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.Builder
addAllPrecommits(java.lang.Iterable<? extends Messages.SignedMessage> values)
List of `Precommit` messages for the block.Proofs.BlockProof.Builder
addPrecommits(int index, Messages.SignedMessage value)
List of `Precommit` messages for the block.Proofs.BlockProof.Builder
addPrecommits(int index, Messages.SignedMessage.Builder builderForValue)
List of `Precommit` messages for the block.Proofs.BlockProof.Builder
addPrecommits(Messages.SignedMessage value)
List of `Precommit` messages for the block.Proofs.BlockProof.Builder
addPrecommits(Messages.SignedMessage.Builder builderForValue)
List of `Precommit` messages for the block.Messages.SignedMessage.Builder
addPrecommitsBuilder()
List of `Precommit` messages for the block.Messages.SignedMessage.Builder
addPrecommitsBuilder(int index)
List of `Precommit` messages for the block.Proofs.BlockProof.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Proofs.BlockProof
build()
Proofs.BlockProof
buildPartial()
Proofs.BlockProof.Builder
clear()
Proofs.BlockProof.Builder
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.Proofs.BlockProof.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Proofs.BlockProof.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Proofs.BlockProof.Builder
clearPrecommits()
List of `Precommit` messages for the block.Proofs.BlockProof.Builder
clone()
Blockchain.Block
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.Blockchain.Block.Builder
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.Blockchain.BlockOrBuilder
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.Proofs.BlockProof
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Messages.SignedMessage
getPrecommits(int index)
List of `Precommit` messages for the block.Messages.SignedMessage.Builder
getPrecommitsBuilder(int index)
List of `Precommit` messages for the block.java.util.List<Messages.SignedMessage.Builder>
getPrecommitsBuilderList()
List of `Precommit` messages for the block.int
getPrecommitsCount()
List of `Precommit` messages for the block.java.util.List<Messages.SignedMessage>
getPrecommitsList()
List of `Precommit` messages for the block.Messages.SignedMessageOrBuilder
getPrecommitsOrBuilder(int index)
List of `Precommit` messages for the block.java.util.List<? extends Messages.SignedMessageOrBuilder>
getPrecommitsOrBuilderList()
List of `Precommit` messages for the block.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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Proofs.BlockProof.Builder
mergeBlock(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.Builder
mergeFrom(Proofs.BlockProof other)
Proofs.BlockProof.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Proofs.BlockProof.Builder
mergeFrom(com.google.protobuf.Message other)
Proofs.BlockProof.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Proofs.BlockProof.Builder
removePrecommits(int index)
List of `Precommit` messages for the block.Proofs.BlockProof.Builder
setBlock(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.Builder
setBlock(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.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Proofs.BlockProof.Builder
setPrecommits(int index, Messages.SignedMessage value)
List of `Precommit` messages for the block.Proofs.BlockProof.Builder
setPrecommits(int index, Messages.SignedMessage.Builder builderForValue)
List of `Precommit` messages for the block.Proofs.BlockProof.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Proofs.BlockProof.Builder
setUnknownFields(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, 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<Proofs.BlockProof.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<Proofs.BlockProof.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<Proofs.BlockProof.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<Proofs.BlockProof.Builder>
-
setField
public Proofs.BlockProof.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<Proofs.BlockProof.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Proofs.BlockProof.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in 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:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Proofs.BlockProof.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Proofs.BlockProof.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasBlock
in 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:
getBlock
in 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:
getBlockOrBuilder
in interfaceProofs.BlockProofOrBuilder
-
getPrecommitsList
List of `Precommit` messages for the block.
repeated .exonum.SignedMessage precommits = 2;
- Specified by:
getPrecommitsList
in interfaceProofs.BlockProofOrBuilder
-
getPrecommitsCount
public int getPrecommitsCount()List of `Precommit` messages for the block.
repeated .exonum.SignedMessage precommits = 2;
- Specified by:
getPrecommitsCount
in interfaceProofs.BlockProofOrBuilder
-
getPrecommits
List of `Precommit` messages for the block.
repeated .exonum.SignedMessage precommits = 2;
- Specified by:
getPrecommits
in 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:
getPrecommitsOrBuilder
in interfaceProofs.BlockProofOrBuilder
-
getPrecommitsOrBuilderList
List of `Precommit` messages for the block.
repeated .exonum.SignedMessage precommits = 2;
- Specified by:
getPrecommitsOrBuilderList
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Proofs.BlockProof.Builder>
-
mergeUnknownFields
public final Proofs.BlockProof.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Proofs.BlockProof.Builder>
-