Interface CryptoAllowanceOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
All Known Implementing Classes:
CryptoAllowance, CryptoAllowance.Builder

@Generated public interface CryptoAllowanceOrBuilder extends com.google.protobuf.MessageLiteOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    * An amount of tinybar (10<sup>-8</sup> HBAR).<br/> This is the amount of HBAR held by the `owner` that the `spender` is permitted to transfer.
    * An owner account identifier.<br/> This is the account identifier of the account granting an allowance for the `spender` to transfer tokens held by this account.
    * A spender account identifier.<br/> This is the account identifier of the account permitted to transfer tokens held by the `owner`.
    boolean
    * An owner account identifier.<br/> This is the account identifier of the account granting an allowance for the `spender` to transfer tokens held by this account.
    boolean
    * A spender account identifier.<br/> This is the account identifier of the account permitted to transfer tokens held by the `owner`.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Method Details

    • hasOwner

      boolean hasOwner()
       *
       An owner account identifier.<br/>
       This is the account identifier of the account granting an allowance
       for the `spender` to transfer tokens held by this account.
       
      .proto.AccountID owner = 1;
      Returns:
      Whether the owner field is set.
    • getOwner

      AccountID getOwner()
       *
       An owner account identifier.<br/>
       This is the account identifier of the account granting an allowance
       for the `spender` to transfer tokens held by this account.
       
      .proto.AccountID owner = 1;
      Returns:
      The owner.
    • hasSpender

      boolean hasSpender()
       *
       A spender account identifier.<br/>
       This is the account identifier of the account permitted to transfer
       tokens held by the `owner`.
       
      .proto.AccountID spender = 2;
      Returns:
      Whether the spender field is set.
    • getSpender

      AccountID getSpender()
       *
       A spender account identifier.<br/>
       This is the account identifier of the account permitted to transfer
       tokens held by the `owner`.
       
      .proto.AccountID spender = 2;
      Returns:
      The spender.
    • getAmount

      long getAmount()
       *
       An amount of tinybar (10<sup>-8</sup> HBAR).<br/>
       This is the amount of HBAR held by the `owner` that the
       `spender` is permitted to transfer.
       <p>
       This value MUST be a whole number.<br/>
       This value MUST be greater than 0 to create a new allowance.<br/>
       This value MAY be exactly `0` to _remove_ an existing allowance.<br/>
       
      int64 amount = 3;
      Returns:
      The amount.