java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<LiveHash,LiveHash.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<LiveHash,LiveHash.Builder>
com.hedera.hashgraph.sdk.proto.LiveHash.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,LiveHashOrBuilder,Cloneable
- Enclosing class:
LiveHash
public static final class LiveHash.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<LiveHash,LiveHash.Builder>
implements LiveHashOrBuilder
* A Live Hash value associating some item of content to an account. This message represents a desired entry in the ledger for a SHA-384 hash of some content, an associated specific account, a list of authorized keys, and a duration the live hash is "valid".Protobuf type
proto.LiveHash-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* An account associated via this live hash to the hashed content.* A duration describing how long this Live Hash SHALL remain valid.<br/> A Live Hash SHOULD NOT be relied upon after this duration has elapsed.* A SHA-384 hash of some content that is associated to the account or account holder.* A list of keys, all of which MUST sign the transaction to add the live hash.<br/> Any one of these keys may, however, remove the live hash to revoke the association.* An account associated via this live hash to the hashed content.* A duration describing how long this Live Hash SHALL remain valid.<br/> A Live Hash SHOULD NOT be relied upon after this duration has elapsed.com.google.protobuf.ByteStringgetHash()* A SHA-384 hash of some content that is associated to the account or account holder.getKeys()* A list of keys, all of which MUST sign the transaction to add the live hash.<br/> Any one of these keys may, however, remove the live hash to revoke the association.boolean* An account associated via this live hash to the hashed content.boolean* A duration describing how long this Live Hash SHALL remain valid.<br/> A Live Hash SHOULD NOT be relied upon after this duration has elapsed.booleanhasKeys()* A list of keys, all of which MUST sign the transaction to add the live hash.<br/> Any one of these keys may, however, remove the live hash to revoke the association.mergeAccountId(AccountID value) * An account associated via this live hash to the hashed content.mergeDuration(Duration value) * A duration describing how long this Live Hash SHALL remain valid.<br/> A Live Hash SHOULD NOT be relied upon after this duration has elapsed.* A list of keys, all of which MUST sign the transaction to add the live hash.<br/> Any one of these keys may, however, remove the live hash to revoke the association.setAccountId(AccountID value) * An account associated via this live hash to the hashed content.setAccountId(AccountID.Builder builderForValue) * An account associated via this live hash to the hashed content.setDuration(Duration value) * A duration describing how long this Live Hash SHALL remain valid.<br/> A Live Hash SHOULD NOT be relied upon after this duration has elapsed.setDuration(Duration.Builder builderForValue) * A duration describing how long this Live Hash SHALL remain valid.<br/> A Live Hash SHOULD NOT be relied upon after this duration has elapsed.setHash(com.google.protobuf.ByteString value) * A SHA-384 hash of some content that is associated to the account or account holder.* A list of keys, all of which MUST sign the transaction to add the live hash.<br/> Any one of these keys may, however, remove the live hash to revoke the association.setKeys(KeyList.Builder builderForValue) * A list of keys, all of which MUST sign the transaction to add the live hash.<br/> Any one of these keys may, however, remove the live hash to revoke the association.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
-
hasAccountId
public boolean hasAccountId()* An account associated via this live hash to the hashed content.
.proto.AccountID accountId = 1;- Specified by:
hasAccountIdin interfaceLiveHashOrBuilder- Returns:
- Whether the accountId field is set.
-
getAccountId
* An account associated via this live hash to the hashed content.
.proto.AccountID accountId = 1;- Specified by:
getAccountIdin interfaceLiveHashOrBuilder- Returns:
- The accountId.
-
setAccountId
* An account associated via this live hash to the hashed content.
.proto.AccountID accountId = 1; -
setAccountId
* An account associated via this live hash to the hashed content.
.proto.AccountID accountId = 1; -
mergeAccountId
* An account associated via this live hash to the hashed content.
.proto.AccountID accountId = 1; -
clearAccountId
* An account associated via this live hash to the hashed content.
.proto.AccountID accountId = 1; -
getHash
public com.google.protobuf.ByteString getHash()* A SHA-384 hash of some content that is associated to the account or account holder.
bytes hash = 2;- Specified by:
getHashin interfaceLiveHashOrBuilder- Returns:
- The hash.
-
setHash
* A SHA-384 hash of some content that is associated to the account or account holder.
bytes hash = 2;- Parameters:
value- The hash to set.- Returns:
- This builder for chaining.
-
clearHash
* A SHA-384 hash of some content that is associated to the account or account holder.
bytes hash = 2;- Returns:
- This builder for chaining.
-
hasKeys
public boolean hasKeys()* A list of keys, all of which MUST sign the transaction to add the live hash.<br/> Any one of these keys may, however, remove the live hash to revoke the association.
.proto.KeyList keys = 3;- Specified by:
hasKeysin interfaceLiveHashOrBuilder- Returns:
- Whether the keys field is set.
-
getKeys
* A list of keys, all of which MUST sign the transaction to add the live hash.<br/> Any one of these keys may, however, remove the live hash to revoke the association.
.proto.KeyList keys = 3;- Specified by:
getKeysin interfaceLiveHashOrBuilder- Returns:
- The keys.
-
setKeys
* A list of keys, all of which MUST sign the transaction to add the live hash.<br/> Any one of these keys may, however, remove the live hash to revoke the association.
.proto.KeyList keys = 3; -
setKeys
* A list of keys, all of which MUST sign the transaction to add the live hash.<br/> Any one of these keys may, however, remove the live hash to revoke the association.
.proto.KeyList keys = 3; -
mergeKeys
* A list of keys, all of which MUST sign the transaction to add the live hash.<br/> Any one of these keys may, however, remove the live hash to revoke the association.
.proto.KeyList keys = 3; -
clearKeys
* A list of keys, all of which MUST sign the transaction to add the live hash.<br/> Any one of these keys may, however, remove the live hash to revoke the association.
.proto.KeyList keys = 3; -
hasDuration
public boolean hasDuration()* A duration describing how long this Live Hash SHALL remain valid.<br/> A Live Hash SHOULD NOT be relied upon after this duration has elapsed.
.proto.Duration duration = 5;- Specified by:
hasDurationin interfaceLiveHashOrBuilder- Returns:
- Whether the duration field is set.
-
getDuration
* A duration describing how long this Live Hash SHALL remain valid.<br/> A Live Hash SHOULD NOT be relied upon after this duration has elapsed.
.proto.Duration duration = 5;- Specified by:
getDurationin interfaceLiveHashOrBuilder- Returns:
- The duration.
-
setDuration
* A duration describing how long this Live Hash SHALL remain valid.<br/> A Live Hash SHOULD NOT be relied upon after this duration has elapsed.
.proto.Duration duration = 5; -
setDuration
* A duration describing how long this Live Hash SHALL remain valid.<br/> A Live Hash SHOULD NOT be relied upon after this duration has elapsed.
.proto.Duration duration = 5; -
mergeDuration
* A duration describing how long this Live Hash SHALL remain valid.<br/> A Live Hash SHOULD NOT be relied upon after this duration has elapsed.
.proto.Duration duration = 5; -
clearDuration
* A duration describing how long this Live Hash SHALL remain valid.<br/> A Live Hash SHOULD NOT be relied upon after this duration has elapsed.
.proto.Duration duration = 5;
-