Class GrantedNftAllowance

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

@Generated public final class GrantedNftAllowance extends com.google.protobuf.GeneratedMessageLite<GrantedNftAllowance,GrantedNftAllowance.Builder> implements GrantedNftAllowanceOrBuilder
 *
 Permission granted by one account (the "funding" account) to another
 account (the "spender" account) that allows the spender to transfer
 all serial numbers of a specific non-fungible/unique token (NFT)
 collection owned by the funding account.<br/>
 This is a broad permission, as it does not matter how many NFTs of the
 specified collection the funding account owns, the spender MAY dispose
 of any or all of them with this allowance.<br/>
 Each token type (typically a collection of NFTs) SHALL require
 a separate allowance.<br/>
 Allowances for a specific serial number MUST be directly associated
 with that specific non-fungible/unique token, rather than
 the holding account.

 An allowance SHALL NOT transfer any tokens directly, it only permits
 transactions signed only by the spender account to transfer any
 non-fungible/unique tokens of the specified type owned by
 the funding account.
 
Protobuf type proto.GrantedNftAllowance
  • 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 transfer all serial numbers of a specific non-fungible/unique token (NFT) collection owned by the funding account.<br/> This is a broad permission, as it does not matter how many NFTs of the specified collection the funding account owns, the spender MAY dispose of any or all of them with this allowance.<br/> Each token type (typically a collection of NFTs) SHALL require a separate allowance.<br/> Allowances for a specific serial number MUST be directly associated with that specific non-fungible/unique token, rather than the holding 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)
     
     
    * The identifier for the spending account associated with this allowance.
    * The identifier for the token associated with this allowance.
    boolean
    * The identifier for the spending account associated with this allowance.
    boolean
    * The identifier for the token 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<GrantedNftAllowance>
     

    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

    • hasTokenId

      public boolean hasTokenId()
       *
       The identifier for the token associated with this allowance.
       <p>
       This token MUST be a non-fungible/unique token.
       
      .proto.TokenID token_id = 1;
      Specified by:
      hasTokenId in interface GrantedNftAllowanceOrBuilder
      Returns:
      Whether the tokenId field is set.
    • getTokenId

      public TokenID getTokenId()
       *
       The identifier for the token associated with this allowance.
       <p>
       This token MUST be a non-fungible/unique token.
       
      .proto.TokenID token_id = 1;
      Specified by:
      getTokenId in interface GrantedNftAllowanceOrBuilder
      Returns:
      The tokenId.
    • hasSpender

      public boolean hasSpender()
       *
       The identifier for the spending account associated with this allowance.
       <p>
       This account SHALL be permitted to sign transactions to spend
       tokens of the associated token type from the funding/allowing account.
       
      .proto.AccountID spender = 2;
      Specified by:
      hasSpender in interface GrantedNftAllowanceOrBuilder
      Returns:
      Whether the spender field is set.
    • getSpender

      public AccountID getSpender()
       *
       The identifier for the spending account associated with this allowance.
       <p>
       This account SHALL be permitted to sign transactions to spend
       tokens of the associated token type from the funding/allowing account.
       
      .proto.AccountID spender = 2;
      Specified by:
      getSpender in interface GrantedNftAllowanceOrBuilder
      Returns:
      The spender.
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static GrantedNftAllowance.Builder newBuilder()
    • newBuilder

      public static GrantedNftAllowance.Builder newBuilder(GrantedNftAllowance 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<GrantedNftAllowance,GrantedNftAllowance.Builder>
    • getDefaultInstance

      public static GrantedNftAllowance getDefaultInstance()
    • parser

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