public static final class Proof.SparseMerkleProof.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Proof.SparseMerkleProof.Builder> implements Proof.SparseMerkleProofOrBuilder
types.SparseMerkleProof| Modifier and Type | Method and Description |
|---|---|
Proof.SparseMerkleProof.Builder |
addAllNonDefaultSiblings(Iterable<? extends com.google.protobuf.ByteString> values)
The non-default siblings.
|
Proof.SparseMerkleProof.Builder |
addNonDefaultSiblings(com.google.protobuf.ByteString value)
The non-default siblings.
|
Proof.SparseMerkleProof.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Proof.SparseMerkleProof |
build() |
Proof.SparseMerkleProof |
buildPartial() |
Proof.SparseMerkleProof.Builder |
clear() |
Proof.SparseMerkleProof.Builder |
clearBitmap()
The bitmap indicating which siblings are default.
|
Proof.SparseMerkleProof.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Proof.SparseMerkleProof.Builder |
clearLeaf()
This proof can be used to authenticate whether a given leaf exists in the
tree or not.
|
Proof.SparseMerkleProof.Builder |
clearNonDefaultSiblings()
The non-default siblings.
|
Proof.SparseMerkleProof.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Proof.SparseMerkleProof.Builder |
clone() |
com.google.protobuf.ByteString |
getBitmap()
The bitmap indicating which siblings are default.
|
Proof.SparseMerkleProof |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.ByteString |
getLeaf()
This proof can be used to authenticate whether a given leaf exists in the
tree or not.
|
com.google.protobuf.ByteString |
getNonDefaultSiblings(int index)
The non-default siblings.
|
int |
getNonDefaultSiblingsCount()
The non-default siblings.
|
List<com.google.protobuf.ByteString> |
getNonDefaultSiblingsList()
The non-default siblings.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Proof.SparseMerkleProof.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Proof.SparseMerkleProof.Builder |
mergeFrom(com.google.protobuf.Message other) |
Proof.SparseMerkleProof.Builder |
mergeFrom(Proof.SparseMerkleProof other) |
Proof.SparseMerkleProof.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Proof.SparseMerkleProof.Builder |
setBitmap(com.google.protobuf.ByteString value)
The bitmap indicating which siblings are default.
|
Proof.SparseMerkleProof.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Proof.SparseMerkleProof.Builder |
setLeaf(com.google.protobuf.ByteString value)
This proof can be used to authenticate whether a given leaf exists in the
tree or not.
|
Proof.SparseMerkleProof.Builder |
setNonDefaultSiblings(int index,
com.google.protobuf.ByteString value)
The non-default siblings.
|
Proof.SparseMerkleProof.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Proof.SparseMerkleProof.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Proof.SparseMerkleProof.Builder>public Proof.SparseMerkleProof.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Proof.SparseMerkleProof.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Proof.SparseMerkleProof.Builder>public Proof.SparseMerkleProof getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Proof.SparseMerkleProof build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Proof.SparseMerkleProof buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Proof.SparseMerkleProof.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Proof.SparseMerkleProof.Builder>public Proof.SparseMerkleProof.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Proof.SparseMerkleProof.Builder>public Proof.SparseMerkleProof.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Proof.SparseMerkleProof.Builder>public Proof.SparseMerkleProof.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Proof.SparseMerkleProof.Builder>public Proof.SparseMerkleProof.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Proof.SparseMerkleProof.Builder>public Proof.SparseMerkleProof.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Proof.SparseMerkleProof.Builder>public Proof.SparseMerkleProof.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Proof.SparseMerkleProof.Builder>public Proof.SparseMerkleProof.Builder mergeFrom(Proof.SparseMerkleProof other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Proof.SparseMerkleProof.Builder>public Proof.SparseMerkleProof.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Proof.SparseMerkleProof.Builder>IOExceptionpublic com.google.protobuf.ByteString getLeaf()
This proof can be used to authenticate whether a given leaf exists in the
tree or not. In Rust:
- If this is `Some(HashValue, HashValue)`
- If the first `HashValue` equals requested key, this is an inclusion
proof and the second `HashValue` equals the hash of the
corresponding account blob.
- Otherwise this is a non-inclusion proof. The first `HashValue` is
the only key that exists in the subtree and the second `HashValue`
equals the hash of the corresponding account blob.
- If this is `None`, this is also a non-inclusion proof which indicates
the subtree is empty.
In protobuf, this leaf field should either be
- empty, which corresponds to None in the Rust structure.
- exactly 64 bytes, which corresponds to Some<(HashValue, HashValue)>
in the Rust structure.
bytes leaf = 1;getLeaf in interface Proof.SparseMerkleProofOrBuilderpublic Proof.SparseMerkleProof.Builder setLeaf(com.google.protobuf.ByteString value)
This proof can be used to authenticate whether a given leaf exists in the
tree or not. In Rust:
- If this is `Some(HashValue, HashValue)`
- If the first `HashValue` equals requested key, this is an inclusion
proof and the second `HashValue` equals the hash of the
corresponding account blob.
- Otherwise this is a non-inclusion proof. The first `HashValue` is
the only key that exists in the subtree and the second `HashValue`
equals the hash of the corresponding account blob.
- If this is `None`, this is also a non-inclusion proof which indicates
the subtree is empty.
In protobuf, this leaf field should either be
- empty, which corresponds to None in the Rust structure.
- exactly 64 bytes, which corresponds to Some<(HashValue, HashValue)>
in the Rust structure.
bytes leaf = 1;public Proof.SparseMerkleProof.Builder clearLeaf()
This proof can be used to authenticate whether a given leaf exists in the
tree or not. In Rust:
- If this is `Some(HashValue, HashValue)`
- If the first `HashValue` equals requested key, this is an inclusion
proof and the second `HashValue` equals the hash of the
corresponding account blob.
- Otherwise this is a non-inclusion proof. The first `HashValue` is
the only key that exists in the subtree and the second `HashValue`
equals the hash of the corresponding account blob.
- If this is `None`, this is also a non-inclusion proof which indicates
the subtree is empty.
In protobuf, this leaf field should either be
- empty, which corresponds to None in the Rust structure.
- exactly 64 bytes, which corresponds to Some<(HashValue, HashValue)>
in the Rust structure.
bytes leaf = 1;public com.google.protobuf.ByteString getBitmap()
The bitmap indicating which siblings are default. 1 means non-default and 0 means default. The MSB of the first byte corresponds to the sibling at the top of the Sparse Merkle Tree. The rightmost 1-bit of the last byte corresponds to the sibling at the bottom, since this one is always non-default.
bytes bitmap = 2;getBitmap in interface Proof.SparseMerkleProofOrBuilderpublic Proof.SparseMerkleProof.Builder setBitmap(com.google.protobuf.ByteString value)
The bitmap indicating which siblings are default. 1 means non-default and 0 means default. The MSB of the first byte corresponds to the sibling at the top of the Sparse Merkle Tree. The rightmost 1-bit of the last byte corresponds to the sibling at the bottom, since this one is always non-default.
bytes bitmap = 2;public Proof.SparseMerkleProof.Builder clearBitmap()
The bitmap indicating which siblings are default. 1 means non-default and 0 means default. The MSB of the first byte corresponds to the sibling at the top of the Sparse Merkle Tree. The rightmost 1-bit of the last byte corresponds to the sibling at the bottom, since this one is always non-default.
bytes bitmap = 2;public List<com.google.protobuf.ByteString> getNonDefaultSiblingsList()
The non-default siblings. The ones near the root are at the beginning of the list.
repeated bytes non_default_siblings = 3;getNonDefaultSiblingsList in interface Proof.SparseMerkleProofOrBuilderpublic int getNonDefaultSiblingsCount()
The non-default siblings. The ones near the root are at the beginning of the list.
repeated bytes non_default_siblings = 3;getNonDefaultSiblingsCount in interface Proof.SparseMerkleProofOrBuilderpublic com.google.protobuf.ByteString getNonDefaultSiblings(int index)
The non-default siblings. The ones near the root are at the beginning of the list.
repeated bytes non_default_siblings = 3;getNonDefaultSiblings in interface Proof.SparseMerkleProofOrBuilderpublic Proof.SparseMerkleProof.Builder setNonDefaultSiblings(int index, com.google.protobuf.ByteString value)
The non-default siblings. The ones near the root are at the beginning of the list.
repeated bytes non_default_siblings = 3;public Proof.SparseMerkleProof.Builder addNonDefaultSiblings(com.google.protobuf.ByteString value)
The non-default siblings. The ones near the root are at the beginning of the list.
repeated bytes non_default_siblings = 3;public Proof.SparseMerkleProof.Builder addAllNonDefaultSiblings(Iterable<? extends com.google.protobuf.ByteString> values)
The non-default siblings. The ones near the root are at the beginning of the list.
repeated bytes non_default_siblings = 3;public Proof.SparseMerkleProof.Builder clearNonDefaultSiblings()
The non-default siblings. The ones near the root are at the beginning of the list.
repeated bytes non_default_siblings = 3;public final Proof.SparseMerkleProof.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Proof.SparseMerkleProof.Builder>public final Proof.SparseMerkleProof.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Proof.SparseMerkleProof.Builder>Copyright © 2019. All rights reserved.