Package com.exonum.messages.proof
Class ListProofOuterClass.ProofListKey.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<ListProofOuterClass.ProofListKey.Builder>
com.exonum.messages.proof.ListProofOuterClass.ProofListKey.Builder
- All Implemented Interfaces:
ListProofOuterClass.ProofListKeyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- ListProofOuterClass.ProofListKey
public static final class ListProofOuterClass.ProofListKey.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ListProofOuterClass.ProofListKey.Builder> implements ListProofOuterClass.ProofListKeyOrBuilder
Node position in the Merkle tree.Protobuf type
exonum.proof.ProofListKey-
Method Summary
Modifier and Type Method Description ListProofOuterClass.ProofListKey.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)ListProofOuterClass.ProofListKeybuild()ListProofOuterClass.ProofListKeybuildPartial()ListProofOuterClass.ProofListKey.Builderclear()ListProofOuterClass.ProofListKey.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ListProofOuterClass.ProofListKey.BuilderclearHeight()Height of the element.ListProofOuterClass.ProofListKey.BuilderclearIndex()Zero-based index of the node on the level.ListProofOuterClass.ProofListKey.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ListProofOuterClass.ProofListKey.Builderclone()ListProofOuterClass.ProofListKeygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()intgetHeight()Height of the element.longgetIndex()Zero-based index of the node on the level.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ListProofOuterClass.ProofListKey.BuildermergeFrom(ListProofOuterClass.ProofListKey other)ListProofOuterClass.ProofListKey.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ListProofOuterClass.ProofListKey.BuildermergeFrom(com.google.protobuf.Message other)ListProofOuterClass.ProofListKey.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ListProofOuterClass.ProofListKey.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)ListProofOuterClass.ProofListKey.BuildersetHeight(int value)Height of the element.ListProofOuterClass.ProofListKey.BuildersetIndex(long value)Zero-based index of the node on the level.ListProofOuterClass.ProofListKey.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)ListProofOuterClass.ProofListKey.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<ListProofOuterClass.ProofListKey.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<ListProofOuterClass.ProofListKey.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<ListProofOuterClass.ProofListKey.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<ListProofOuterClass.ProofListKey.Builder>
-
setField
public ListProofOuterClass.ProofListKey.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<ListProofOuterClass.ProofListKey.Builder>
-
clearField
public ListProofOuterClass.ProofListKey.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ListProofOuterClass.ProofListKey.Builder>
-
clearOneof
public ListProofOuterClass.ProofListKey.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ListProofOuterClass.ProofListKey.Builder>
-
setRepeatedField
public ListProofOuterClass.ProofListKey.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<ListProofOuterClass.ProofListKey.Builder>
-
addRepeatedField
public ListProofOuterClass.ProofListKey.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<ListProofOuterClass.ProofListKey.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ListProofOuterClass.ProofListKey.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ListProofOuterClass.ProofListKey.Builder>
-
mergeFrom
public ListProofOuterClass.ProofListKey.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<ListProofOuterClass.ProofListKey.Builder>- Throws:
java.io.IOException
-
getIndex
public long getIndex()Zero-based index of the node on the level.
uint64 index = 1;- Specified by:
getIndexin interfaceListProofOuterClass.ProofListKeyOrBuilder- Returns:
- The index.
-
setIndex
Zero-based index of the node on the level.
uint64 index = 1;- Parameters:
value- The index to set.- Returns:
- This builder for chaining.
-
clearIndex
Zero-based index of the node on the level.
uint64 index = 1;- Returns:
- This builder for chaining.
-
getHeight
public int getHeight()Height of the element. Should always be greater than 0. 1 corresponds to the hashes of single elements, 2 to hashes obtained by hashing together pairs of hashes at height 1, etc.
uint32 height = 2;- Specified by:
getHeightin interfaceListProofOuterClass.ProofListKeyOrBuilder- Returns:
- The height.
-
setHeight
Height of the element. Should always be greater than 0. 1 corresponds to the hashes of single elements, 2 to hashes obtained by hashing together pairs of hashes at height 1, etc.
uint32 height = 2;- Parameters:
value- The height to set.- Returns:
- This builder for chaining.
-
clearHeight
Height of the element. Should always be greater than 0. 1 corresponds to the hashes of single elements, 2 to hashes obtained by hashing together pairs of hashes at height 1, etc.
uint32 height = 2;- Returns:
- This builder for chaining.
-
setUnknownFields
public final ListProofOuterClass.ProofListKey.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ListProofOuterClass.ProofListKey.Builder>
-
mergeUnknownFields
public final ListProofOuterClass.ProofListKey.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ListProofOuterClass.ProofListKey.Builder>
-