Class TokenRevokeKycTransactionBody.Builder

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

public static final class TokenRevokeKycTransactionBody.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<TokenRevokeKycTransactionBody,TokenRevokeKycTransactionBody.Builder> implements TokenRevokeKycTransactionBodyOrBuilder
 *
 Revoke "Know Your Customer"(KYC) from 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 NOT be marked as "KYC granted".

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

    • hasToken

      public boolean hasToken()
       *
       A token identifier.
       <p>
       The identified token SHALL revoke "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 TokenRevokeKycTransactionBodyOrBuilder
      Returns:
      Whether the token field is set.
    • getToken

      public TokenID getToken()
       *
       A token identifier.
       <p>
       The identified token SHALL revoke "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 TokenRevokeKycTransactionBodyOrBuilder
      Returns:
      The token.
    • setToken

       *
       A token identifier.
       <p>
       The identified token SHALL revoke "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 TokenRevokeKycTransactionBody.Builder setToken(TokenID.Builder builderForValue)
       *
       A token identifier.
       <p>
       The identified token SHALL revoke "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

       *
       A token identifier.
       <p>
       The identified token SHALL revoke "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 revoke "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 revoke "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 TokenRevokeKycTransactionBodyOrBuilder
      Returns:
      Whether the account field is set.
    • getAccount

      public AccountID getAccount()
       *
       An account identifier.
       <p>
       The token identified by the `token` field SHALL revoke "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 TokenRevokeKycTransactionBodyOrBuilder
      Returns:
      The account.
    • setAccount

       *
       An account identifier.
       <p>
       The token identified by the `token` field SHALL revoke "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 TokenRevokeKycTransactionBody.Builder setAccount(AccountID.Builder builderForValue)
       *
       An account identifier.
       <p>
       The token identified by the `token` field SHALL revoke "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 TokenRevokeKycTransactionBody.Builder mergeAccount(AccountID value)
       *
       An account identifier.
       <p>
       The token identified by the `token` field SHALL revoke "KYC" for the
       identified account.<br/>
       This account MUST be associated to the token identified
       by the `token` field.
       
      .proto.AccountID account = 2;
    • clearAccount

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