Class AccountCryptoAllowance

java.lang.Object
com.google.protobuf.AbstractMessageLite<AccountCryptoAllowance,AccountCryptoAllowance.Builder>
com.google.protobuf.GeneratedMessageLite<AccountCryptoAllowance,AccountCryptoAllowance.Builder>
com.hedera.hashgraph.sdk.proto.AccountCryptoAllowance
All Implemented Interfaces:
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, AccountCryptoAllowanceOrBuilder

@Generated public final class AccountCryptoAllowance extends com.google.protobuf.GeneratedMessageLite<AccountCryptoAllowance,AccountCryptoAllowance.Builder> implements AccountCryptoAllowanceOrBuilder
 *
 Permission granted by one account (the "funding" account) to another account
 (the "spender" account) that allows the spender to spend a specified amount
 of HBAR owned by the funding account.

 An allowance SHALL NOT transfer any HBAR directly, it only permits
 transactions signed only by the spender account to transfer HBAR, up to the
 amount specified, from the funding account.

 Once the specified amount is spent, the allowance SHALL be consumed and a
 new allowance SHALL be required before that spending account may spend
 additional HBAR from the funding account.
 
Protobuf type proto.AccountCryptoAllowance
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    * Permission granted by one account (the "funding" account) to another account (the "spender" account) that allows the spender to spend a specified amount of HBAR owned by the funding account.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final Object
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
     
    long
    The maximum amount that the spender account may transfer within the scope of this allowance.
     
    * The identifier for the spending account associated with this allowance.
    boolean
    * The identifier for the spending account associated with this allowance.
     
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<AccountCryptoAllowance>
     

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    createBuilder, createBuilder, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Field Details

  • Method Details

    • hasSpenderId

      public boolean hasSpenderId()
       *
       The identifier for the spending account associated with this allowance.
       <p>
       This account SHALL be permitted to sign transactions to spend HBAR from
       the funding/allowing account.<br/>
       This permission SHALL be limited to no more than the specified `amount`.
       
      .proto.AccountID spender_id = 1;
      Specified by:
      hasSpenderId in interface AccountCryptoAllowanceOrBuilder
      Returns:
      Whether the spenderId field is set.
    • getSpenderId

      public AccountID getSpenderId()
       *
       The identifier for the spending account associated with this allowance.
       <p>
       This account SHALL be permitted to sign transactions to spend HBAR from
       the funding/allowing account.<br/>
       This permission SHALL be limited to no more than the specified `amount`.
       
      .proto.AccountID spender_id = 1;
      Specified by:
      getSpenderId in interface AccountCryptoAllowanceOrBuilder
      Returns:
      The spenderId.
    • getAmount

      public long getAmount()
      
       The maximum amount that the spender account may transfer within the
       scope of this allowance.
       <p>
       This allowance SHALL be consumed if any combination of transfers
       authorized via this allowance meet this value in total.<br/>
       This value MUST be specified in tinybar (i.e. 10<sup>-8</sup> HBAR).
       
      int64 amount = 2;
      Specified by:
      getAmount in interface AccountCryptoAllowanceOrBuilder
      Returns:
      The amount.
    • parseFrom

      public static AccountCryptoAllowance parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AccountCryptoAllowance parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AccountCryptoAllowance parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AccountCryptoAllowance parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AccountCryptoAllowance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AccountCryptoAllowance parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AccountCryptoAllowance parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AccountCryptoAllowance parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AccountCryptoAllowance parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AccountCryptoAllowance parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AccountCryptoAllowance parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AccountCryptoAllowance parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilder

      public static AccountCryptoAllowance.Builder newBuilder()
    • newBuilder

      public static AccountCryptoAllowance.Builder newBuilder(AccountCryptoAllowance prototype)
    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<AccountCryptoAllowance,AccountCryptoAllowance.Builder>
    • getDefaultInstance

      public static AccountCryptoAllowance getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<AccountCryptoAllowance> parser()