Class KeyList.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<KeyList,KeyList.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<KeyList,KeyList.Builder>
com.hedera.hashgraph.sdk.proto.KeyList.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, KeyListOrBuilder, Cloneable
Enclosing class:
KeyList

public static final class KeyList.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<KeyList,KeyList.Builder> implements KeyListOrBuilder
 *
 A list of keys.<br/>
 A `KeyList` requires all keys (N-of-N) to sign, unless otherwise
 specified in official documentation. A KeyList may contain repeated keys,
 but all such repeated keys are considered a single key when determining
 signature authorization.

 ### Additional Notes
 1. An empty key list is the "standard" mechanism to represent an
 unassigned key. For example, if the `admin_key` of a token is set
 to the empty key list, then that token has no admin key, and
 functionality that requires an admin key to sign the
 transaction is disabled.
 
Protobuf type proto.KeyList
  • Method Details

    • getKeysList

      public List<Key> getKeysList()
       *
       A list of keys. All values in this list SHALL be non-null.
       <p>
       
      repeated .proto.Key keys = 1;
      Specified by:
      getKeysList in interface KeyListOrBuilder
    • getKeysCount

      public int getKeysCount()
       *
       A list of keys. All values in this list SHALL be non-null.
       <p>
       
      repeated .proto.Key keys = 1;
      Specified by:
      getKeysCount in interface KeyListOrBuilder
    • getKeys

      public Key getKeys(int index)
       *
       A list of keys. All values in this list SHALL be non-null.
       <p>
       
      repeated .proto.Key keys = 1;
      Specified by:
      getKeys in interface KeyListOrBuilder
    • setKeys

      public KeyList.Builder setKeys(int index, Key value)
       *
       A list of keys. All values in this list SHALL be non-null.
       <p>
       
      repeated .proto.Key keys = 1;
    • setKeys

      public KeyList.Builder setKeys(int index, Key.Builder builderForValue)
       *
       A list of keys. All values in this list SHALL be non-null.
       <p>
       
      repeated .proto.Key keys = 1;
    • addKeys

      public KeyList.Builder addKeys(Key value)
       *
       A list of keys. All values in this list SHALL be non-null.
       <p>
       
      repeated .proto.Key keys = 1;
    • addKeys

      public KeyList.Builder addKeys(int index, Key value)
       *
       A list of keys. All values in this list SHALL be non-null.
       <p>
       
      repeated .proto.Key keys = 1;
    • addKeys

      public KeyList.Builder addKeys(Key.Builder builderForValue)
       *
       A list of keys. All values in this list SHALL be non-null.
       <p>
       
      repeated .proto.Key keys = 1;
    • addKeys

      public KeyList.Builder addKeys(int index, Key.Builder builderForValue)
       *
       A list of keys. All values in this list SHALL be non-null.
       <p>
       
      repeated .proto.Key keys = 1;
    • addAllKeys

      public KeyList.Builder addAllKeys(Iterable<? extends Key> values)
       *
       A list of keys. All values in this list SHALL be non-null.
       <p>
       
      repeated .proto.Key keys = 1;
    • clearKeys

      public KeyList.Builder clearKeys()
       *
       A list of keys. All values in this list SHALL be non-null.
       <p>
       
      repeated .proto.Key keys = 1;
    • removeKeys

      public KeyList.Builder removeKeys(int index)
       *
       A list of keys. All values in this list SHALL be non-null.
       <p>
       
      repeated .proto.Key keys = 1;