Package dev.sigstore.proto.rekor.v1
Class InclusionProof.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<InclusionProof.Builder>
-
- dev.sigstore.proto.rekor.v1.InclusionProof.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,InclusionProofOrBuilder,java.lang.Cloneable
- Enclosing class:
- InclusionProof
public static final class InclusionProof.Builder extends com.google.protobuf.GeneratedMessage.Builder<InclusionProof.Builder> implements InclusionProofOrBuilder
InclusionProof is the proof returned from the transparency log. Can be used for offline or online verification against the log.
Protobuf typedev.sigstore.rekor.v1.InclusionProof
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InclusionProof.BuilderaddAllHashes(java.lang.Iterable<? extends com.google.protobuf.ByteString> values)A list of hashes required to compute the inclusion proof, sorted in order from leaf to root.InclusionProof.BuilderaddHashes(com.google.protobuf.ByteString value)A list of hashes required to compute the inclusion proof, sorted in order from leaf to root.InclusionProofbuild()InclusionProofbuildPartial()InclusionProof.Builderclear()InclusionProof.BuilderclearCheckpoint()Signature of the tree head, as of the time of this proof was generated.InclusionProof.BuilderclearHashes()A list of hashes required to compute the inclusion proof, sorted in order from leaf to root.InclusionProof.BuilderclearLogIndex()The index of the entry in the tree it was written to.InclusionProof.BuilderclearRootHash()The hash digest stored at the root of the merkle tree at the time the proof was generated.InclusionProof.BuilderclearTreeSize()The size of the merkle tree at the time the proof was generated.CheckpointgetCheckpoint()Signature of the tree head, as of the time of this proof was generated.Checkpoint.BuildergetCheckpointBuilder()Signature of the tree head, as of the time of this proof was generated.CheckpointOrBuildergetCheckpointOrBuilder()Signature of the tree head, as of the time of this proof was generated.InclusionProofgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.ByteStringgetHashes(int index)A list of hashes required to compute the inclusion proof, sorted in order from leaf to root.intgetHashesCount()A list of hashes required to compute the inclusion proof, sorted in order from leaf to root.java.util.List<com.google.protobuf.ByteString>getHashesList()A list of hashes required to compute the inclusion proof, sorted in order from leaf to root.longgetLogIndex()The index of the entry in the tree it was written to.com.google.protobuf.ByteStringgetRootHash()The hash digest stored at the root of the merkle tree at the time the proof was generated.longgetTreeSize()The size of the merkle tree at the time the proof was generated.booleanhasCheckpoint()Signature of the tree head, as of the time of this proof was generated.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()InclusionProof.BuildermergeCheckpoint(Checkpoint value)Signature of the tree head, as of the time of this proof was generated.InclusionProof.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)InclusionProof.BuildermergeFrom(com.google.protobuf.Message other)InclusionProof.BuildermergeFrom(InclusionProof other)InclusionProof.BuildersetCheckpoint(Checkpoint value)Signature of the tree head, as of the time of this proof was generated.InclusionProof.BuildersetCheckpoint(Checkpoint.Builder builderForValue)Signature of the tree head, as of the time of this proof was generated.InclusionProof.BuildersetHashes(int index, com.google.protobuf.ByteString value)A list of hashes required to compute the inclusion proof, sorted in order from leaf to root.InclusionProof.BuildersetLogIndex(long value)The index of the entry in the tree it was written to.InclusionProof.BuildersetRootHash(com.google.protobuf.ByteString value)The hash digest stored at the root of the merkle tree at the time the proof was generated.InclusionProof.BuildersetTreeSize(long value)The size of the merkle tree at the time the proof was generated.-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<InclusionProof.Builder>
-
clear
public InclusionProof.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<InclusionProof.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.GeneratedMessage.Builder<InclusionProof.Builder>
-
getDefaultInstanceForType
public InclusionProof getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public InclusionProof build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public InclusionProof buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public InclusionProof.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InclusionProof.Builder>
-
mergeFrom
public InclusionProof.Builder mergeFrom(InclusionProof other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<InclusionProof.Builder>
-
mergeFrom
public InclusionProof.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<InclusionProof.Builder>- Throws:
java.io.IOException
-
getLogIndex
public long getLogIndex()
The index of the entry in the tree it was written to.
int64 log_index = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getLogIndexin interfaceInclusionProofOrBuilder- Returns:
- The logIndex.
-
setLogIndex
public InclusionProof.Builder setLogIndex(long value)
The index of the entry in the tree it was written to.
int64 log_index = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The logIndex to set.- Returns:
- This builder for chaining.
-
clearLogIndex
public InclusionProof.Builder clearLogIndex()
The index of the entry in the tree it was written to.
int64 log_index = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
getRootHash
public com.google.protobuf.ByteString getRootHash()
The hash digest stored at the root of the merkle tree at the time the proof was generated.
bytes root_hash = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getRootHashin interfaceInclusionProofOrBuilder- Returns:
- The rootHash.
-
setRootHash
public InclusionProof.Builder setRootHash(com.google.protobuf.ByteString value)
The hash digest stored at the root of the merkle tree at the time the proof was generated.
bytes root_hash = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The rootHash to set.- Returns:
- This builder for chaining.
-
clearRootHash
public InclusionProof.Builder clearRootHash()
The hash digest stored at the root of the merkle tree at the time the proof was generated.
bytes root_hash = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
getTreeSize
public long getTreeSize()
The size of the merkle tree at the time the proof was generated.
int64 tree_size = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTreeSizein interfaceInclusionProofOrBuilder- Returns:
- The treeSize.
-
setTreeSize
public InclusionProof.Builder setTreeSize(long value)
The size of the merkle tree at the time the proof was generated.
int64 tree_size = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The treeSize to set.- Returns:
- This builder for chaining.
-
clearTreeSize
public InclusionProof.Builder clearTreeSize()
The size of the merkle tree at the time the proof was generated.
int64 tree_size = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
getHashesList
public java.util.List<com.google.protobuf.ByteString> getHashesList()
A list of hashes required to compute the inclusion proof, sorted in order from leaf to root. Note that leaf and root hashes are not included. The root hash is available separately in this message, and the leaf hash should be calculated by the client.
repeated bytes hashes = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getHashesListin interfaceInclusionProofOrBuilder- Returns:
- A list containing the hashes.
-
getHashesCount
public int getHashesCount()
A list of hashes required to compute the inclusion proof, sorted in order from leaf to root. Note that leaf and root hashes are not included. The root hash is available separately in this message, and the leaf hash should be calculated by the client.
repeated bytes hashes = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getHashesCountin interfaceInclusionProofOrBuilder- Returns:
- The count of hashes.
-
getHashes
public com.google.protobuf.ByteString getHashes(int index)
A list of hashes required to compute the inclusion proof, sorted in order from leaf to root. Note that leaf and root hashes are not included. The root hash is available separately in this message, and the leaf hash should be calculated by the client.
repeated bytes hashes = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getHashesin interfaceInclusionProofOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The hashes at the given index.
-
setHashes
public InclusionProof.Builder setHashes(int index, com.google.protobuf.ByteString value)
A list of hashes required to compute the inclusion proof, sorted in order from leaf to root. Note that leaf and root hashes are not included. The root hash is available separately in this message, and the leaf hash should be calculated by the client.
repeated bytes hashes = 4 [(.google.api.field_behavior) = REQUIRED];- Parameters:
index- The index to set the value at.value- The hashes to set.- Returns:
- This builder for chaining.
-
addHashes
public InclusionProof.Builder addHashes(com.google.protobuf.ByteString value)
A list of hashes required to compute the inclusion proof, sorted in order from leaf to root. Note that leaf and root hashes are not included. The root hash is available separately in this message, and the leaf hash should be calculated by the client.
repeated bytes hashes = 4 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The hashes to add.- Returns:
- This builder for chaining.
-
addAllHashes
public InclusionProof.Builder addAllHashes(java.lang.Iterable<? extends com.google.protobuf.ByteString> values)
A list of hashes required to compute the inclusion proof, sorted in order from leaf to root. Note that leaf and root hashes are not included. The root hash is available separately in this message, and the leaf hash should be calculated by the client.
repeated bytes hashes = 4 [(.google.api.field_behavior) = REQUIRED];- Parameters:
values- The hashes to add.- Returns:
- This builder for chaining.
-
clearHashes
public InclusionProof.Builder clearHashes()
A list of hashes required to compute the inclusion proof, sorted in order from leaf to root. Note that leaf and root hashes are not included. The root hash is available separately in this message, and the leaf hash should be calculated by the client.
repeated bytes hashes = 4 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
hasCheckpoint
public boolean hasCheckpoint()
Signature of the tree head, as of the time of this proof was generated. See above info on 'Checkpoint' for more details.
.dev.sigstore.rekor.v1.Checkpoint checkpoint = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasCheckpointin interfaceInclusionProofOrBuilder- Returns:
- Whether the checkpoint field is set.
-
getCheckpoint
public Checkpoint getCheckpoint()
Signature of the tree head, as of the time of this proof was generated. See above info on 'Checkpoint' for more details.
.dev.sigstore.rekor.v1.Checkpoint checkpoint = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getCheckpointin interfaceInclusionProofOrBuilder- Returns:
- The checkpoint.
-
setCheckpoint
public InclusionProof.Builder setCheckpoint(Checkpoint value)
Signature of the tree head, as of the time of this proof was generated. See above info on 'Checkpoint' for more details.
.dev.sigstore.rekor.v1.Checkpoint checkpoint = 5 [(.google.api.field_behavior) = REQUIRED];
-
setCheckpoint
public InclusionProof.Builder setCheckpoint(Checkpoint.Builder builderForValue)
Signature of the tree head, as of the time of this proof was generated. See above info on 'Checkpoint' for more details.
.dev.sigstore.rekor.v1.Checkpoint checkpoint = 5 [(.google.api.field_behavior) = REQUIRED];
-
mergeCheckpoint
public InclusionProof.Builder mergeCheckpoint(Checkpoint value)
Signature of the tree head, as of the time of this proof was generated. See above info on 'Checkpoint' for more details.
.dev.sigstore.rekor.v1.Checkpoint checkpoint = 5 [(.google.api.field_behavior) = REQUIRED];
-
clearCheckpoint
public InclusionProof.Builder clearCheckpoint()
Signature of the tree head, as of the time of this proof was generated. See above info on 'Checkpoint' for more details.
.dev.sigstore.rekor.v1.Checkpoint checkpoint = 5 [(.google.api.field_behavior) = REQUIRED];
-
getCheckpointBuilder
public Checkpoint.Builder getCheckpointBuilder()
Signature of the tree head, as of the time of this proof was generated. See above info on 'Checkpoint' for more details.
.dev.sigstore.rekor.v1.Checkpoint checkpoint = 5 [(.google.api.field_behavior) = REQUIRED];
-
getCheckpointOrBuilder
public CheckpointOrBuilder getCheckpointOrBuilder()
Signature of the tree head, as of the time of this proof was generated. See above info on 'Checkpoint' for more details.
.dev.sigstore.rekor.v1.Checkpoint checkpoint = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getCheckpointOrBuilderin interfaceInclusionProofOrBuilder
-
-