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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)MapProofOuterClass.MapProofEntrybuild()MapProofOuterClass.MapProofEntrybuildPartial()MapProofOuterClass.MapProofEntry.Builderclear()MapProofOuterClass.MapProofEntry.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)MapProofOuterClass.MapProofEntry.BuilderclearHash()Hash associated with the node.MapProofOuterClass.MapProofEntry.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)MapProofOuterClass.MapProofEntry.BuilderclearPath()Path to the node, expressed with the minimum necessary number of bytes.MapProofOuterClass.MapProofEntry.BuilderclearPathPadding()Number of zero bit padding at the end of the path.MapProofOuterClass.MapProofEntry.Builderclone()MapProofOuterClass.MapProofEntrygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Types.HashgetHash()Hash associated with the node.Types.Hash.BuildergetHashBuilder()Hash associated with the node.Types.HashOrBuildergetHashOrBuilder()Hash associated with the node.com.google.protobuf.ByteStringgetPath()Path to the node, expressed with the minimum necessary number of bytes.intgetPathPadding()Number of zero bit padding at the end of the path.booleanhasHash()Hash associated with the node.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()MapProofOuterClass.MapProofEntry.BuildermergeFrom(MapProofOuterClass.MapProofEntry other)MapProofOuterClass.MapProofEntry.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)MapProofOuterClass.MapProofEntry.BuildermergeFrom(com.google.protobuf.Message other)MapProofOuterClass.MapProofEntry.BuildermergeHash(Types.Hash value)Hash associated with the node.MapProofOuterClass.MapProofEntry.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)MapProofOuterClass.MapProofEntry.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)MapProofOuterClass.MapProofEntry.BuildersetHash(Types.Hash value)Hash associated with the node.MapProofOuterClass.MapProofEntry.BuildersetHash(Types.Hash.Builder builderForValue)Hash associated with the node.MapProofOuterClass.MapProofEntry.BuildersetPath(com.google.protobuf.ByteString value)Path to the node, expressed with the minimum necessary number of bytes.MapProofOuterClass.MapProofEntry.BuildersetPathPadding(int value)Number of zero bit padding at the end of the path.MapProofOuterClass.MapProofEntry.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)MapProofOuterClass.MapProofEntry.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<MapProofOuterClass.MapProofEntry.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<MapProofOuterClass.MapProofEntry.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<MapProofOuterClass.MapProofEntry.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<MapProofOuterClass.MapProofEntry.Builder>
-
setField
public MapProofOuterClass.MapProofEntry.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<MapProofOuterClass.MapProofEntry.Builder>
-
clearField
public MapProofOuterClass.MapProofEntry.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MapProofOuterClass.MapProofEntry.Builder>
-
clearOneof
public MapProofOuterClass.MapProofEntry.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin 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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin 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:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MapProofOuterClass.MapProofEntry.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MapProofOuterClass.MapProofEntry.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
getPathin 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:
hasHashin interfaceMapProofOuterClass.MapProofEntryOrBuilder- Returns:
- Whether the hash field is set.
-
getHash
Hash associated with the node.
.exonum.crypto.Hash hash = 2;- Specified by:
getHashin 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:
getHashOrBuilderin 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:
getPathPaddingin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MapProofOuterClass.MapProofEntry.Builder>
-
mergeUnknownFields
public final MapProofOuterClass.MapProofEntry.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MapProofOuterClass.MapProofEntry.Builder>
-