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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
ListProofOuterClass.ProofListKey
build()
ListProofOuterClass.ProofListKey
buildPartial()
ListProofOuterClass.ProofListKey.Builder
clear()
ListProofOuterClass.ProofListKey.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ListProofOuterClass.ProofListKey.Builder
clearHeight()
Height of the element.ListProofOuterClass.ProofListKey.Builder
clearIndex()
Zero-based index of the node on the level.ListProofOuterClass.ProofListKey.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ListProofOuterClass.ProofListKey.Builder
clone()
ListProofOuterClass.ProofListKey
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
int
getHeight()
Height of the element.long
getIndex()
Zero-based index of the node on the level.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ListProofOuterClass.ProofListKey.Builder
mergeFrom(ListProofOuterClass.ProofListKey other)
ListProofOuterClass.ProofListKey.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ListProofOuterClass.ProofListKey.Builder
mergeFrom(com.google.protobuf.Message other)
ListProofOuterClass.ProofListKey.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ListProofOuterClass.ProofListKey.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
ListProofOuterClass.ProofListKey.Builder
setHeight(int value)
Height of the element.ListProofOuterClass.ProofListKey.Builder
setIndex(long value)
Zero-based index of the node on the level.ListProofOuterClass.ProofListKey.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
ListProofOuterClass.ProofListKey.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<ListProofOuterClass.ProofListKey.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<ListProofOuterClass.ProofListKey.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<ListProofOuterClass.ProofListKey.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<ListProofOuterClass.ProofListKey.Builder>
-
setField
public ListProofOuterClass.ProofListKey.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<ListProofOuterClass.ProofListKey.Builder>
-
clearField
public ListProofOuterClass.ProofListKey.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<ListProofOuterClass.ProofListKey.Builder>
-
clearOneof
public ListProofOuterClass.ProofListKey.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<ListProofOuterClass.ProofListKey.Builder>
-
setRepeatedField
public ListProofOuterClass.ProofListKey.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<ListProofOuterClass.ProofListKey.Builder>
-
addRepeatedField
public ListProofOuterClass.ProofListKey.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<ListProofOuterClass.ProofListKey.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ListProofOuterClass.ProofListKey.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getIndex
in 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:
getHeight
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListProofOuterClass.ProofListKey.Builder>
-
mergeUnknownFields
public final ListProofOuterClass.ProofListKey.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListProofOuterClass.ProofListKey.Builder>
-