Class TokenRejectTransactionBody

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

@Generated public final class TokenRejectTransactionBody extends com.google.protobuf.GeneratedMessageLite<TokenRejectTransactionBody,TokenRejectTransactionBody.Builder> implements TokenRejectTransactionBodyOrBuilder
 *
 Reject undesired token(s).<br/>
 Transfer one or more token balances held by the requesting account to the
 treasury for each token type.

 Each transfer SHALL be one of the following
 - A single non-fungible/unique token.
 - The full balance held for a fungible/common token.
 A single `tokenReject` transaction SHALL support a maximum
 of 10 transfers.<br/>
 A token that is `pause`d MUST NOT be rejected.<br/>
 If the `owner` account is `frozen` with respect to the identified token(s)
 the token(s) MUST NOT be rejected.<br/>
 The `payer` for this transaction, and `owner` if set, SHALL NOT be charged
 any custom fees or other fees beyond the `tokenReject` transaction fee.

 ### Block Stream Effects
 - Each successful transfer from `payer` to `treasury` SHALL be recorded in
 the `token_transfer_list` for the transaction record.
 
Protobuf type proto.TokenRejectTransactionBody
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    * Reject undesired token(s).<br/> Transfer one or more token balances held by the requesting account to the treasury for each token type.

    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)
     
     
    * An account identifier.<br/> This OPTIONAL field identifies the account holding the tokens to be rejected.
    getRejections(int index)
    * A list of one or more token rejections.
    int
    * A list of one or more token rejections.
    * A list of one or more token rejections.
    * A list of one or more token rejections.
    * A list of one or more token rejections.
    boolean
    * An account identifier.<br/> This OPTIONAL field identifies the account holding the tokens to be rejected.
     
     
     
    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<TokenRejectTransactionBody>
     

    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

    • hasOwner

      public boolean hasOwner()
       *
       An account identifier.<br/>
       This OPTIONAL field identifies the account holding the
       tokens to be rejected.
       <p>
       If set, this account MUST sign this transaction.
       If not set, the `payer` for this transaction SHALL be the effective
       `owner` for this transaction.
       
      .proto.AccountID owner = 1;
      Specified by:
      hasOwner in interface TokenRejectTransactionBodyOrBuilder
      Returns:
      Whether the owner field is set.
    • getOwner

      public AccountID getOwner()
       *
       An account identifier.<br/>
       This OPTIONAL field identifies the account holding the
       tokens to be rejected.
       <p>
       If set, this account MUST sign this transaction.
       If not set, the `payer` for this transaction SHALL be the effective
       `owner` for this transaction.
       
      .proto.AccountID owner = 1;
      Specified by:
      getOwner in interface TokenRejectTransactionBodyOrBuilder
      Returns:
      The owner.
    • getRejectionsList

      public List<TokenReference> getRejectionsList()
       *
       A list of one or more token rejections.
       <p>
       On success each rejected token serial number or balance SHALL be
       transferred from the requesting account to the treasury account for
       that token type.<br/>
       After rejection the requesting account SHALL continue to be associated
       with the token.<br/>
       If dissociation is desired then a separate `TokenDissociate` transaction
       MUST be submitted to remove the association.<br/>
       This list MUST contain at least one (1) entry and MUST NOT contain more
       than ten (10) entries.
       
      repeated .proto.TokenReference rejections = 2;
      Specified by:
      getRejectionsList in interface TokenRejectTransactionBodyOrBuilder
    • getRejectionsOrBuilderList

      public List<? extends TokenReferenceOrBuilder> getRejectionsOrBuilderList()
       *
       A list of one or more token rejections.
       <p>
       On success each rejected token serial number or balance SHALL be
       transferred from the requesting account to the treasury account for
       that token type.<br/>
       After rejection the requesting account SHALL continue to be associated
       with the token.<br/>
       If dissociation is desired then a separate `TokenDissociate` transaction
       MUST be submitted to remove the association.<br/>
       This list MUST contain at least one (1) entry and MUST NOT contain more
       than ten (10) entries.
       
      repeated .proto.TokenReference rejections = 2;
    • getRejectionsCount

      public int getRejectionsCount()
       *
       A list of one or more token rejections.
       <p>
       On success each rejected token serial number or balance SHALL be
       transferred from the requesting account to the treasury account for
       that token type.<br/>
       After rejection the requesting account SHALL continue to be associated
       with the token.<br/>
       If dissociation is desired then a separate `TokenDissociate` transaction
       MUST be submitted to remove the association.<br/>
       This list MUST contain at least one (1) entry and MUST NOT contain more
       than ten (10) entries.
       
      repeated .proto.TokenReference rejections = 2;
      Specified by:
      getRejectionsCount in interface TokenRejectTransactionBodyOrBuilder
    • getRejections

      public TokenReference getRejections(int index)
       *
       A list of one or more token rejections.
       <p>
       On success each rejected token serial number or balance SHALL be
       transferred from the requesting account to the treasury account for
       that token type.<br/>
       After rejection the requesting account SHALL continue to be associated
       with the token.<br/>
       If dissociation is desired then a separate `TokenDissociate` transaction
       MUST be submitted to remove the association.<br/>
       This list MUST contain at least one (1) entry and MUST NOT contain more
       than ten (10) entries.
       
      repeated .proto.TokenReference rejections = 2;
      Specified by:
      getRejections in interface TokenRejectTransactionBodyOrBuilder
    • getRejectionsOrBuilder

      public TokenReferenceOrBuilder getRejectionsOrBuilder(int index)
       *
       A list of one or more token rejections.
       <p>
       On success each rejected token serial number or balance SHALL be
       transferred from the requesting account to the treasury account for
       that token type.<br/>
       After rejection the requesting account SHALL continue to be associated
       with the token.<br/>
       If dissociation is desired then a separate `TokenDissociate` transaction
       MUST be submitted to remove the association.<br/>
       This list MUST contain at least one (1) entry and MUST NOT contain more
       than ten (10) entries.
       
      repeated .proto.TokenReference rejections = 2;
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static TokenRejectTransactionBody.Builder newBuilder()
    • newBuilder

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

      public static TokenRejectTransactionBody getDefaultInstance()
    • parser

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