Package com.exonum.messages.proof
Class MapProofOuterClass.MapProofEntry.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<MapProofOuterClass.MapProofEntry.Builder>
com.exonum.messages.proof.MapProofOuterClass.MapProofEntry.Builder
- All Implemented Interfaces:
MapProofOuterClass.MapProofEntryOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
- Enclosing class:
- MapProofOuterClass.MapProofEntry
public static final class MapProofOuterClass.MapProofEntry.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MapProofOuterClass.MapProofEntry.Builder> implements MapProofOuterClass.MapProofEntryOrBuilder
Path to an intermediate Merkle Patricia tree node and a corresponding hash value.Protobuf type
exonum.proof.MapProofEntry
-
Method Summary
Modifier and Type Method Description MapProofOuterClass.MapProofEntry.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
MapProofOuterClass.MapProofEntry
build()
MapProofOuterClass.MapProofEntry
buildPartial()
MapProofOuterClass.MapProofEntry.Builder
clear()
MapProofOuterClass.MapProofEntry.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
MapProofOuterClass.MapProofEntry.Builder
clearHash()
Hash associated with the node.MapProofOuterClass.MapProofEntry.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
MapProofOuterClass.MapProofEntry.Builder
clearPath()
Path to the node, expressed with the minimum necessary number of bytes.MapProofOuterClass.MapProofEntry.Builder
clearPathPadding()
Number of zero bit padding at the end of the path.MapProofOuterClass.MapProofEntry.Builder
clone()
MapProofOuterClass.MapProofEntry
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Types.Hash
getHash()
Hash associated with the node.Types.Hash.Builder
getHashBuilder()
Hash associated with the node.Types.HashOrBuilder
getHashOrBuilder()
Hash associated with the node.com.google.protobuf.ByteString
getPath()
Path to the node, expressed with the minimum necessary number of bytes.int
getPathPadding()
Number of zero bit padding at the end of the path.boolean
hasHash()
Hash associated with the node.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
MapProofOuterClass.MapProofEntry.Builder
mergeFrom(MapProofOuterClass.MapProofEntry other)
MapProofOuterClass.MapProofEntry.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
MapProofOuterClass.MapProofEntry.Builder
mergeFrom(com.google.protobuf.Message other)
MapProofOuterClass.MapProofEntry.Builder
mergeHash(Types.Hash value)
Hash associated with the node.MapProofOuterClass.MapProofEntry.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
MapProofOuterClass.MapProofEntry.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
MapProofOuterClass.MapProofEntry.Builder
setHash(Types.Hash value)
Hash associated with the node.MapProofOuterClass.MapProofEntry.Builder
setHash(Types.Hash.Builder builderForValue)
Hash associated with the node.MapProofOuterClass.MapProofEntry.Builder
setPath(com.google.protobuf.ByteString value)
Path to the node, expressed with the minimum necessary number of bytes.MapProofOuterClass.MapProofEntry.Builder
setPathPadding(int value)
Number of zero bit padding at the end of the path.MapProofOuterClass.MapProofEntry.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
MapProofOuterClass.MapProofEntry.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<MapProofOuterClass.MapProofEntry.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<MapProofOuterClass.MapProofEntry.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<MapProofOuterClass.MapProofEntry.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<MapProofOuterClass.MapProofEntry.Builder>
-
setField
public MapProofOuterClass.MapProofEntry.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<MapProofOuterClass.MapProofEntry.Builder>
-
clearField
public MapProofOuterClass.MapProofEntry.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MapProofOuterClass.MapProofEntry.Builder>
-
clearOneof
public MapProofOuterClass.MapProofEntry.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<MapProofOuterClass.MapProofEntry.Builder>
-
setRepeatedField
public MapProofOuterClass.MapProofEntry.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<MapProofOuterClass.MapProofEntry.Builder>
-
addRepeatedField
public MapProofOuterClass.MapProofEntry.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<MapProofOuterClass.MapProofEntry.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MapProofOuterClass.MapProofEntry.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<MapProofOuterClass.MapProofEntry.Builder>
-
mergeFrom
public MapProofOuterClass.MapProofEntry.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<MapProofOuterClass.MapProofEntry.Builder>
- Throws:
java.io.IOException
-
getPath
public com.google.protobuf.ByteString getPath()Path to the node, expressed with the minimum necessary number of bytes. Bits within each byte are indexed from the least significant to the most significant. The last byte may be padded with zeros if necessary.
bytes path = 1;
- Specified by:
getPath
in interfaceMapProofOuterClass.MapProofEntryOrBuilder
- Returns:
- The path.
-
setPath
Path to the node, expressed with the minimum necessary number of bytes. Bits within each byte are indexed from the least significant to the most significant. The last byte may be padded with zeros if necessary.
bytes path = 1;
- Parameters:
value
- The path to set.- Returns:
- This builder for chaining.
-
clearPath
Path to the node, expressed with the minimum necessary number of bytes. Bits within each byte are indexed from the least significant to the most significant. The last byte may be padded with zeros if necessary.
bytes path = 1;
- Returns:
- This builder for chaining.
-
hasHash
public boolean hasHash()Hash associated with the node.
.exonum.crypto.Hash hash = 2;
- Specified by:
hasHash
in interfaceMapProofOuterClass.MapProofEntryOrBuilder
- Returns:
- Whether the hash field is set.
-
getHash
Hash associated with the node.
.exonum.crypto.Hash hash = 2;
- Specified by:
getHash
in interfaceMapProofOuterClass.MapProofEntryOrBuilder
- Returns:
- The hash.
-
setHash
Hash associated with the node.
.exonum.crypto.Hash hash = 2;
-
setHash
Hash associated with the node.
.exonum.crypto.Hash hash = 2;
-
mergeHash
Hash associated with the node.
.exonum.crypto.Hash hash = 2;
-
clearHash
Hash associated with the node.
.exonum.crypto.Hash hash = 2;
-
getHashBuilder
Hash associated with the node.
.exonum.crypto.Hash hash = 2;
-
getHashOrBuilder
Hash associated with the node.
.exonum.crypto.Hash hash = 2;
- Specified by:
getHashOrBuilder
in interfaceMapProofOuterClass.MapProofEntryOrBuilder
-
getPathPadding
public int getPathPadding()Number of zero bit padding at the end of the path. Must be in the `0..8` interval.
uint32 path_padding = 3;
- Specified by:
getPathPadding
in interfaceMapProofOuterClass.MapProofEntryOrBuilder
- Returns:
- The pathPadding.
-
setPathPadding
Number of zero bit padding at the end of the path. Must be in the `0..8` interval.
uint32 path_padding = 3;
- Parameters:
value
- The pathPadding to set.- Returns:
- This builder for chaining.
-
clearPathPadding
Number of zero bit padding at the end of the path. Must be in the `0..8` interval.
uint32 path_padding = 3;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final MapProofOuterClass.MapProofEntry.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MapProofOuterClass.MapProofEntry.Builder>
-
mergeUnknownFields
public final MapProofOuterClass.MapProofEntry.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MapProofOuterClass.MapProofEntry.Builder>
-