Package com.exonum.messages.core
Class Blockchain.Block.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Blockchain.Block.Builder>
com.exonum.messages.core.Blockchain.Block.Builder
- All Implemented Interfaces:
Blockchain.BlockOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
- Enclosing class:
- Blockchain.Block
public static final class Blockchain.Block.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Blockchain.Block.Builder> implements Blockchain.BlockOrBuilder
Protobuf type
exonum.Block
-
Method Summary
Modifier and Type Method Description Blockchain.Block.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Blockchain.Block
build()
Blockchain.Block
buildPartial()
Blockchain.Block.Builder
clear()
Blockchain.Block.Builder
clearAdditionalHeaders()
.exonum.AdditionalHeaders additional_headers = 8;
Blockchain.Block.Builder
clearErrorHash()
.exonum.crypto.Hash error_hash = 7;
Blockchain.Block.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Blockchain.Block.Builder
clearHeight()
uint64 height = 2;
Blockchain.Block.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Blockchain.Block.Builder
clearPrevHash()
.exonum.crypto.Hash prev_hash = 4;
Blockchain.Block.Builder
clearProposerId()
uint32 proposer_id = 1;
Blockchain.Block.Builder
clearStateHash()
.exonum.crypto.Hash state_hash = 6;
Blockchain.Block.Builder
clearTxCount()
uint32 tx_count = 3;
Blockchain.Block.Builder
clearTxHash()
.exonum.crypto.Hash tx_hash = 5;
Blockchain.Block.Builder
clone()
Blockchain.AdditionalHeaders
getAdditionalHeaders()
.exonum.AdditionalHeaders additional_headers = 8;
Blockchain.AdditionalHeaders.Builder
getAdditionalHeadersBuilder()
.exonum.AdditionalHeaders additional_headers = 8;
Blockchain.AdditionalHeadersOrBuilder
getAdditionalHeadersOrBuilder()
.exonum.AdditionalHeaders additional_headers = 8;
Blockchain.Block
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Types.Hash
getErrorHash()
.exonum.crypto.Hash error_hash = 7;
Types.Hash.Builder
getErrorHashBuilder()
.exonum.crypto.Hash error_hash = 7;
Types.HashOrBuilder
getErrorHashOrBuilder()
.exonum.crypto.Hash error_hash = 7;
long
getHeight()
uint64 height = 2;
Types.Hash
getPrevHash()
.exonum.crypto.Hash prev_hash = 4;
Types.Hash.Builder
getPrevHashBuilder()
.exonum.crypto.Hash prev_hash = 4;
Types.HashOrBuilder
getPrevHashOrBuilder()
.exonum.crypto.Hash prev_hash = 4;
int
getProposerId()
uint32 proposer_id = 1;
Types.Hash
getStateHash()
.exonum.crypto.Hash state_hash = 6;
Types.Hash.Builder
getStateHashBuilder()
.exonum.crypto.Hash state_hash = 6;
Types.HashOrBuilder
getStateHashOrBuilder()
.exonum.crypto.Hash state_hash = 6;
int
getTxCount()
uint32 tx_count = 3;
Types.Hash
getTxHash()
.exonum.crypto.Hash tx_hash = 5;
Types.Hash.Builder
getTxHashBuilder()
.exonum.crypto.Hash tx_hash = 5;
Types.HashOrBuilder
getTxHashOrBuilder()
.exonum.crypto.Hash tx_hash = 5;
boolean
hasAdditionalHeaders()
.exonum.AdditionalHeaders additional_headers = 8;
boolean
hasErrorHash()
.exonum.crypto.Hash error_hash = 7;
boolean
hasPrevHash()
.exonum.crypto.Hash prev_hash = 4;
boolean
hasStateHash()
.exonum.crypto.Hash state_hash = 6;
boolean
hasTxHash()
.exonum.crypto.Hash tx_hash = 5;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Blockchain.Block.Builder
mergeAdditionalHeaders(Blockchain.AdditionalHeaders value)
.exonum.AdditionalHeaders additional_headers = 8;
Blockchain.Block.Builder
mergeErrorHash(Types.Hash value)
.exonum.crypto.Hash error_hash = 7;
Blockchain.Block.Builder
mergeFrom(Blockchain.Block other)
Blockchain.Block.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Blockchain.Block.Builder
mergeFrom(com.google.protobuf.Message other)
Blockchain.Block.Builder
mergePrevHash(Types.Hash value)
.exonum.crypto.Hash prev_hash = 4;
Blockchain.Block.Builder
mergeStateHash(Types.Hash value)
.exonum.crypto.Hash state_hash = 6;
Blockchain.Block.Builder
mergeTxHash(Types.Hash value)
.exonum.crypto.Hash tx_hash = 5;
Blockchain.Block.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Blockchain.Block.Builder
setAdditionalHeaders(Blockchain.AdditionalHeaders value)
.exonum.AdditionalHeaders additional_headers = 8;
Blockchain.Block.Builder
setAdditionalHeaders(Blockchain.AdditionalHeaders.Builder builderForValue)
.exonum.AdditionalHeaders additional_headers = 8;
Blockchain.Block.Builder
setErrorHash(Types.Hash value)
.exonum.crypto.Hash error_hash = 7;
Blockchain.Block.Builder
setErrorHash(Types.Hash.Builder builderForValue)
.exonum.crypto.Hash error_hash = 7;
Blockchain.Block.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Blockchain.Block.Builder
setHeight(long value)
uint64 height = 2;
Blockchain.Block.Builder
setPrevHash(Types.Hash value)
.exonum.crypto.Hash prev_hash = 4;
Blockchain.Block.Builder
setPrevHash(Types.Hash.Builder builderForValue)
.exonum.crypto.Hash prev_hash = 4;
Blockchain.Block.Builder
setProposerId(int value)
uint32 proposer_id = 1;
Blockchain.Block.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Blockchain.Block.Builder
setStateHash(Types.Hash value)
.exonum.crypto.Hash state_hash = 6;
Blockchain.Block.Builder
setStateHash(Types.Hash.Builder builderForValue)
.exonum.crypto.Hash state_hash = 6;
Blockchain.Block.Builder
setTxCount(int value)
uint32 tx_count = 3;
Blockchain.Block.Builder
setTxHash(Types.Hash value)
.exonum.crypto.Hash tx_hash = 5;
Blockchain.Block.Builder
setTxHash(Types.Hash.Builder builderForValue)
.exonum.crypto.Hash tx_hash = 5;
Blockchain.Block.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<Blockchain.Block.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.Block.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.Block.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.Block.Builder>
-
setField
public Blockchain.Block.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.Block.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Blockchain.Block.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Blockchain.Block.Builder>
-
setRepeatedField
public Blockchain.Block.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.Block.Builder>
-
addRepeatedField
public Blockchain.Block.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.Block.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Blockchain.Block.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Blockchain.Block.Builder>
-
mergeFrom
public Blockchain.Block.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.Block.Builder>
- Throws:
java.io.IOException
-
getProposerId
public int getProposerId()uint32 proposer_id = 1;
- Specified by:
getProposerId
in interfaceBlockchain.BlockOrBuilder
- Returns:
- The proposerId.
-
setProposerId
uint32 proposer_id = 1;
- Parameters:
value
- The proposerId to set.- Returns:
- This builder for chaining.
-
clearProposerId
uint32 proposer_id = 1;
- Returns:
- This builder for chaining.
-
getHeight
public long getHeight()uint64 height = 2;
- Specified by:
getHeight
in interfaceBlockchain.BlockOrBuilder
- Returns:
- The height.
-
setHeight
uint64 height = 2;
- Parameters:
value
- The height to set.- Returns:
- This builder for chaining.
-
clearHeight
uint64 height = 2;
- Returns:
- This builder for chaining.
-
getTxCount
public int getTxCount()uint32 tx_count = 3;
- Specified by:
getTxCount
in interfaceBlockchain.BlockOrBuilder
- Returns:
- The txCount.
-
setTxCount
uint32 tx_count = 3;
- Parameters:
value
- The txCount to set.- Returns:
- This builder for chaining.
-
clearTxCount
uint32 tx_count = 3;
- Returns:
- This builder for chaining.
-
hasPrevHash
public boolean hasPrevHash().exonum.crypto.Hash prev_hash = 4;
- Specified by:
hasPrevHash
in interfaceBlockchain.BlockOrBuilder
- Returns:
- Whether the prevHash field is set.
-
getPrevHash
.exonum.crypto.Hash prev_hash = 4;
- Specified by:
getPrevHash
in interfaceBlockchain.BlockOrBuilder
- Returns:
- The prevHash.
-
setPrevHash
.exonum.crypto.Hash prev_hash = 4;
-
setPrevHash
.exonum.crypto.Hash prev_hash = 4;
-
mergePrevHash
.exonum.crypto.Hash prev_hash = 4;
-
clearPrevHash
.exonum.crypto.Hash prev_hash = 4;
-
getPrevHashBuilder
.exonum.crypto.Hash prev_hash = 4;
-
getPrevHashOrBuilder
.exonum.crypto.Hash prev_hash = 4;
- Specified by:
getPrevHashOrBuilder
in interfaceBlockchain.BlockOrBuilder
-
hasTxHash
public boolean hasTxHash().exonum.crypto.Hash tx_hash = 5;
- Specified by:
hasTxHash
in interfaceBlockchain.BlockOrBuilder
- Returns:
- Whether the txHash field is set.
-
getTxHash
.exonum.crypto.Hash tx_hash = 5;
- Specified by:
getTxHash
in interfaceBlockchain.BlockOrBuilder
- Returns:
- The txHash.
-
setTxHash
.exonum.crypto.Hash tx_hash = 5;
-
setTxHash
.exonum.crypto.Hash tx_hash = 5;
-
mergeTxHash
.exonum.crypto.Hash tx_hash = 5;
-
clearTxHash
.exonum.crypto.Hash tx_hash = 5;
-
getTxHashBuilder
.exonum.crypto.Hash tx_hash = 5;
-
getTxHashOrBuilder
.exonum.crypto.Hash tx_hash = 5;
- Specified by:
getTxHashOrBuilder
in interfaceBlockchain.BlockOrBuilder
-
hasStateHash
public boolean hasStateHash().exonum.crypto.Hash state_hash = 6;
- Specified by:
hasStateHash
in interfaceBlockchain.BlockOrBuilder
- Returns:
- Whether the stateHash field is set.
-
getStateHash
.exonum.crypto.Hash state_hash = 6;
- Specified by:
getStateHash
in interfaceBlockchain.BlockOrBuilder
- Returns:
- The stateHash.
-
setStateHash
.exonum.crypto.Hash state_hash = 6;
-
setStateHash
.exonum.crypto.Hash state_hash = 6;
-
mergeStateHash
.exonum.crypto.Hash state_hash = 6;
-
clearStateHash
.exonum.crypto.Hash state_hash = 6;
-
getStateHashBuilder
.exonum.crypto.Hash state_hash = 6;
-
getStateHashOrBuilder
.exonum.crypto.Hash state_hash = 6;
- Specified by:
getStateHashOrBuilder
in interfaceBlockchain.BlockOrBuilder
-
hasErrorHash
public boolean hasErrorHash().exonum.crypto.Hash error_hash = 7;
- Specified by:
hasErrorHash
in interfaceBlockchain.BlockOrBuilder
- Returns:
- Whether the errorHash field is set.
-
getErrorHash
.exonum.crypto.Hash error_hash = 7;
- Specified by:
getErrorHash
in interfaceBlockchain.BlockOrBuilder
- Returns:
- The errorHash.
-
setErrorHash
.exonum.crypto.Hash error_hash = 7;
-
setErrorHash
.exonum.crypto.Hash error_hash = 7;
-
mergeErrorHash
.exonum.crypto.Hash error_hash = 7;
-
clearErrorHash
.exonum.crypto.Hash error_hash = 7;
-
getErrorHashBuilder
.exonum.crypto.Hash error_hash = 7;
-
getErrorHashOrBuilder
.exonum.crypto.Hash error_hash = 7;
- Specified by:
getErrorHashOrBuilder
in interfaceBlockchain.BlockOrBuilder
-
hasAdditionalHeaders
public boolean hasAdditionalHeaders().exonum.AdditionalHeaders additional_headers = 8;
- Specified by:
hasAdditionalHeaders
in interfaceBlockchain.BlockOrBuilder
- Returns:
- Whether the additionalHeaders field is set.
-
getAdditionalHeaders
.exonum.AdditionalHeaders additional_headers = 8;
- Specified by:
getAdditionalHeaders
in interfaceBlockchain.BlockOrBuilder
- Returns:
- The additionalHeaders.
-
setAdditionalHeaders
.exonum.AdditionalHeaders additional_headers = 8;
-
setAdditionalHeaders
public Blockchain.Block.Builder setAdditionalHeaders(Blockchain.AdditionalHeaders.Builder builderForValue).exonum.AdditionalHeaders additional_headers = 8;
-
mergeAdditionalHeaders
.exonum.AdditionalHeaders additional_headers = 8;
-
clearAdditionalHeaders
.exonum.AdditionalHeaders additional_headers = 8;
-
getAdditionalHeadersBuilder
.exonum.AdditionalHeaders additional_headers = 8;
-
getAdditionalHeadersOrBuilder
.exonum.AdditionalHeaders additional_headers = 8;
- Specified by:
getAdditionalHeadersOrBuilder
in interfaceBlockchain.BlockOrBuilder
-
setUnknownFields
public final Blockchain.Block.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.Block.Builder>
-
mergeUnknownFields
public final Blockchain.Block.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.Block.Builder>
-