Module com.hedera.hashgraph.sdk
Class HistoryProofKeyPublicationTransactionBody.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<HistoryProofKeyPublicationTransactionBody,HistoryProofKeyPublicationTransactionBody.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<HistoryProofKeyPublicationTransactionBody,HistoryProofKeyPublicationTransactionBody.Builder>
com.hedera.hapi.services.auxiliary.history.legacy.HistoryProofKeyPublicationTransactionBody.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,HistoryProofKeyPublicationTransactionBodyOrBuilder,Cloneable
- Enclosing class:
HistoryProofKeyPublicationTransactionBody
public static final class HistoryProofKeyPublicationTransactionBody.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<HistoryProofKeyPublicationTransactionBody,HistoryProofKeyPublicationTransactionBody.Builder>
implements HistoryProofKeyPublicationTransactionBodyOrBuilder
* A transaction body to publish a node's history proof key and WRAPS messages.Protobuf type
com.hedera.hapi.services.auxiliary.history.HistoryProofKeyPublicationTransactionBody-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* The id of the proof construction this publication is for.* The phase of the proof construction this key is being published for.* The proof key the submitting node intends to use when contributing WRAPS messages for use in proving history belongs to the chain of trust for the ledger id.* A WRAPS message from the submitting node.long* The id of the proof construction this publication is for.getPhase()* The phase of the proof construction this key is being published for.int* The phase of the proof construction this key is being published for.com.google.protobuf.ByteString* The proof key the submitting node intends to use when contributing WRAPS messages for use in proving history belongs to the chain of trust for the ledger id.com.google.protobuf.ByteString* A WRAPS message from the submitting node.boolean* The proof key the submitting node intends to use when contributing WRAPS messages for use in proving history belongs to the chain of trust for the ledger id.boolean* A WRAPS message from the submitting node.setConstructionId(long value) * The id of the proof construction this publication is for.setPhase(WrapsPhase value) * The phase of the proof construction this key is being published for.setPhaseValue(int value) * The phase of the proof construction this key is being published for.setProofKey(com.google.protobuf.ByteString value) * The proof key the submitting node intends to use when contributing WRAPS messages for use in proving history belongs to the chain of trust for the ledger id.setWrapsMessage(com.google.protobuf.ByteString value) * A WRAPS message from the submitting node.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getDataCase
- Specified by:
getDataCasein interfaceHistoryProofKeyPublicationTransactionBodyOrBuilder
-
clearData
-
hasProofKey
public boolean hasProofKey()* The proof key the submitting node intends to use when contributing WRAPS messages for use in proving history belongs to the chain of trust for the ledger id.
bytes proof_key = 1;- Specified by:
hasProofKeyin interfaceHistoryProofKeyPublicationTransactionBodyOrBuilder- Returns:
- Whether the proofKey field is set.
-
getProofKey
public com.google.protobuf.ByteString getProofKey()* The proof key the submitting node intends to use when contributing WRAPS messages for use in proving history belongs to the chain of trust for the ledger id.
bytes proof_key = 1;- Specified by:
getProofKeyin interfaceHistoryProofKeyPublicationTransactionBodyOrBuilder- Returns:
- The proofKey.
-
setProofKey
public HistoryProofKeyPublicationTransactionBody.Builder setProofKey(com.google.protobuf.ByteString value) * The proof key the submitting node intends to use when contributing WRAPS messages for use in proving history belongs to the chain of trust for the ledger id.
bytes proof_key = 1;- Parameters:
value- The proofKey to set.- Returns:
- This builder for chaining.
-
clearProofKey
* The proof key the submitting node intends to use when contributing WRAPS messages for use in proving history belongs to the chain of trust for the ledger id.
bytes proof_key = 1;- Returns:
- This builder for chaining.
-
hasWrapsMessage
public boolean hasWrapsMessage()* A WRAPS message from the submitting node.
bytes wraps_message = 2;- Specified by:
hasWrapsMessagein interfaceHistoryProofKeyPublicationTransactionBodyOrBuilder- Returns:
- Whether the wrapsMessage field is set.
-
getWrapsMessage
public com.google.protobuf.ByteString getWrapsMessage()* A WRAPS message from the submitting node.
bytes wraps_message = 2;- Specified by:
getWrapsMessagein interfaceHistoryProofKeyPublicationTransactionBodyOrBuilder- Returns:
- The wrapsMessage.
-
setWrapsMessage
public HistoryProofKeyPublicationTransactionBody.Builder setWrapsMessage(com.google.protobuf.ByteString value) * A WRAPS message from the submitting node.
bytes wraps_message = 2;- Parameters:
value- The wrapsMessage to set.- Returns:
- This builder for chaining.
-
clearWrapsMessage
* A WRAPS message from the submitting node.
bytes wraps_message = 2;- Returns:
- This builder for chaining.
-
getConstructionId
public long getConstructionId()* The id of the proof construction this publication is for.
uint64 construction_id = 3;- Specified by:
getConstructionIdin interfaceHistoryProofKeyPublicationTransactionBodyOrBuilder- Returns:
- The constructionId.
-
setConstructionId
* The id of the proof construction this publication is for.
uint64 construction_id = 3;- Parameters:
value- The constructionId to set.- Returns:
- This builder for chaining.
-
clearConstructionId
* The id of the proof construction this publication is for.
uint64 construction_id = 3;- Returns:
- This builder for chaining.
-
getPhaseValue
public int getPhaseValue()* The phase of the proof construction this key is being published for.
.com.hedera.hapi.node.state.history.WrapsPhase phase = 4;- Specified by:
getPhaseValuein interfaceHistoryProofKeyPublicationTransactionBodyOrBuilder- Returns:
- The enum numeric value on the wire for phase.
-
setPhaseValue
* The phase of the proof construction this key is being published for.
.com.hedera.hapi.node.state.history.WrapsPhase phase = 4;- Parameters:
value- The phase to set.- Returns:
- This builder for chaining.
- Throws:
IllegalArgumentException- if UNRECOGNIZED is provided.
-
getPhase
* The phase of the proof construction this key is being published for.
.com.hedera.hapi.node.state.history.WrapsPhase phase = 4;- Specified by:
getPhasein interfaceHistoryProofKeyPublicationTransactionBodyOrBuilder- Returns:
- The phase.
-
setPhase
* The phase of the proof construction this key is being published for.
.com.hedera.hapi.node.state.history.WrapsPhase phase = 4;- Parameters:
value- The enum numeric value on the wire for phase to set.- Returns:
- This builder for chaining.
-
clearPhase
* The phase of the proof construction this key is being published for.
.com.hedera.hapi.node.state.history.WrapsPhase phase = 4;- Returns:
- This builder for chaining.
-