Class TokenGrantKycTransactionBody.Builder

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

public static final class TokenGrantKycTransactionBody.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<TokenGrantKycTransactionBody,TokenGrantKycTransactionBody.Builder> implements TokenGrantKycTransactionBodyOrBuilder
 *
 Grant "Know Your Customer"(KYC) for one account for a single token.

 This transaction MUST be signed by the `kyc_key` for the token.<br/>
 The identified token MUST have a `kyc_key` set to a valid `Key` value.<br/>
 The token `kyc_key` MUST NOT be an empty `KeyList`.<br/>
 The identified token MUST exist and MUST NOT be deleted.<br/>
 The identified account MUST exist and MUST NOT be deleted.<br/>
 The identified account MUST have an association to the identified token.<br/>
 On success the association between the identified account and the identified
 token SHALL be marked as "KYC granted".

 ### Block Stream Effects
 None
 
Protobuf type proto.TokenGrantKycTransactionBody
  • Method Details

    • hasToken

      public boolean hasToken()
       *
       A token identifier.
       <p>
       The identified token SHALL grant "KYC" for the account
       identified by the `account` field.<br/>
       The identified token MUST be associated to the account identified
       by the `account` field.
       
      .proto.TokenID token = 1;
      Specified by:
      hasToken in interface TokenGrantKycTransactionBodyOrBuilder
      Returns:
      Whether the token field is set.
    • getToken

      public TokenID getToken()
       *
       A token identifier.
       <p>
       The identified token SHALL grant "KYC" for the account
       identified by the `account` field.<br/>
       The identified token MUST be associated to the account identified
       by the `account` field.
       
      .proto.TokenID token = 1;
      Specified by:
      getToken in interface TokenGrantKycTransactionBodyOrBuilder
      Returns:
      The token.
    • setToken

       *
       A token identifier.
       <p>
       The identified token SHALL grant "KYC" for the account
       identified by the `account` field.<br/>
       The identified token MUST be associated to the account identified
       by the `account` field.
       
      .proto.TokenID token = 1;
    • setToken

      public TokenGrantKycTransactionBody.Builder setToken(TokenID.Builder builderForValue)
       *
       A token identifier.
       <p>
       The identified token SHALL grant "KYC" for the account
       identified by the `account` field.<br/>
       The identified token MUST be associated to the account identified
       by the `account` field.
       
      .proto.TokenID token = 1;
    • mergeToken

      public TokenGrantKycTransactionBody.Builder mergeToken(TokenID value)
       *
       A token identifier.
       <p>
       The identified token SHALL grant "KYC" for the account
       identified by the `account` field.<br/>
       The identified token MUST be associated to the account identified
       by the `account` field.
       
      .proto.TokenID token = 1;
    • clearToken

       *
       A token identifier.
       <p>
       The identified token SHALL grant "KYC" for the account
       identified by the `account` field.<br/>
       The identified token MUST be associated to the account identified
       by the `account` field.
       
      .proto.TokenID token = 1;
    • hasAccount

      public boolean hasAccount()
       *
       An account identifier.
       <p>
       The token identified by the `token` field SHALL grant "KYC" for the
       identified account.<br/>
       This account MUST be associated to the token identified
       by the `token` field.
       
      .proto.AccountID account = 2;
      Specified by:
      hasAccount in interface TokenGrantKycTransactionBodyOrBuilder
      Returns:
      Whether the account field is set.
    • getAccount

      public AccountID getAccount()
       *
       An account identifier.
       <p>
       The token identified by the `token` field SHALL grant "KYC" for the
       identified account.<br/>
       This account MUST be associated to the token identified
       by the `token` field.
       
      .proto.AccountID account = 2;
      Specified by:
      getAccount in interface TokenGrantKycTransactionBodyOrBuilder
      Returns:
      The account.
    • setAccount

       *
       An account identifier.
       <p>
       The token identified by the `token` field SHALL grant "KYC" for the
       identified account.<br/>
       This account MUST be associated to the token identified
       by the `token` field.
       
      .proto.AccountID account = 2;
    • setAccount

      public TokenGrantKycTransactionBody.Builder setAccount(AccountID.Builder builderForValue)
       *
       An account identifier.
       <p>
       The token identified by the `token` field SHALL grant "KYC" for the
       identified account.<br/>
       This account MUST be associated to the token identified
       by the `token` field.
       
      .proto.AccountID account = 2;
    • mergeAccount

      public TokenGrantKycTransactionBody.Builder mergeAccount(AccountID value)
       *
       An account identifier.
       <p>
       The token identified by the `token` field SHALL grant "KYC" for the
       identified account.<br/>
       This account MUST be associated to the token identified
       by the `token` field.
       
      .proto.AccountID account = 2;
    • clearAccount

      public TokenGrantKycTransactionBody.Builder clearAccount()
       *
       An account identifier.
       <p>
       The token identified by the `token` field SHALL grant "KYC" for the
       identified account.<br/>
       This account MUST be associated to the token identified
       by the `token` field.
       
      .proto.AccountID account = 2;