Class LiveHash.Builder

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 Type
    Method
    Description
    * 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.ByteString
    * 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.
    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.
    boolean
    * 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.
    * 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.
    * 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.
    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, mergeFrom

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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:
      hasAccountId in interface LiveHashOrBuilder
      Returns:
      Whether the accountId field is set.
    • getAccountId

      public AccountID getAccountId()
       *
       An account associated via this live hash to the hashed content.
       
      .proto.AccountID accountId = 1;
      Specified by:
      getAccountId in interface LiveHashOrBuilder
      Returns:
      The accountId.
    • setAccountId

      public LiveHash.Builder setAccountId(AccountID value)
       *
       An account associated via this live hash to the hashed content.
       
      .proto.AccountID accountId = 1;
    • setAccountId

      public LiveHash.Builder setAccountId(AccountID.Builder builderForValue)
       *
       An account associated via this live hash to the hashed content.
       
      .proto.AccountID accountId = 1;
    • mergeAccountId

      public LiveHash.Builder mergeAccountId(AccountID value)
       *
       An account associated via this live hash to the hashed content.
       
      .proto.AccountID accountId = 1;
    • clearAccountId

      public LiveHash.Builder 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:
      getHash in interface LiveHashOrBuilder
      Returns:
      The hash.
    • setHash

      public LiveHash.Builder setHash(com.google.protobuf.ByteString value)
       *
       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

      public LiveHash.Builder 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:
      hasKeys in interface LiveHashOrBuilder
      Returns:
      Whether the keys field is set.
    • getKeys

      public KeyList 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:
      getKeys in interface LiveHashOrBuilder
      Returns:
      The keys.
    • setKeys

      public LiveHash.Builder setKeys(KeyList value)
       *
       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

      public LiveHash.Builder 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.
       
      .proto.KeyList keys = 3;
    • mergeKeys

      public LiveHash.Builder mergeKeys(KeyList value)
       *
       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

      public LiveHash.Builder 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:
      hasDuration in interface LiveHashOrBuilder
      Returns:
      Whether the duration field is set.
    • getDuration

      public Duration 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:
      getDuration in interface LiveHashOrBuilder
      Returns:
      The duration.
    • setDuration

      public LiveHash.Builder 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.
       
      .proto.Duration duration = 5;
    • setDuration

      public LiveHash.Builder 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.
       
      .proto.Duration duration = 5;
    • mergeDuration

      public LiveHash.Builder 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.
       
      .proto.Duration duration = 5;
    • clearDuration

      public LiveHash.Builder 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;