Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
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 ClassesModifier and TypeClassDescriptionstatic 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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) static TokenRejectTransactionBodygetOwner()* 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.getRejectionsOrBuilder(int index) * A list of one or more token rejections.List<? extends TokenReferenceOrBuilder> * A list of one or more token rejections.booleanhasOwner()* An account identifier.<br/> This OPTIONAL field identifies the account holding the tokens to be rejected.newBuilder(TokenRejectTransactionBody prototype) static TokenRejectTransactionBodyparseDelimitedFrom(InputStream input) static TokenRejectTransactionBodyparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TokenRejectTransactionBodyparseFrom(byte[] data) static TokenRejectTransactionBodyparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TokenRejectTransactionBodyparseFrom(com.google.protobuf.ByteString data) static TokenRejectTransactionBodyparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TokenRejectTransactionBodyparseFrom(com.google.protobuf.CodedInputStream input) static TokenRejectTransactionBodyparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TokenRejectTransactionBodyparseFrom(InputStream input) static TokenRejectTransactionBodyparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TokenRejectTransactionBodyparseFrom(ByteBuffer data) static TokenRejectTransactionBodyparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<TokenRejectTransactionBody> parser()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, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
OWNER_FIELD_NUMBER
public static final int OWNER_FIELD_NUMBER- See Also:
-
REJECTIONS_FIELD_NUMBER
public static final int REJECTIONS_FIELD_NUMBER- See Also:
-
-
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:
hasOwnerin interfaceTokenRejectTransactionBodyOrBuilder- Returns:
- Whether the owner field is set.
-
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:
getOwnerin interfaceTokenRejectTransactionBodyOrBuilder- Returns:
- The owner.
-
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:
getRejectionsListin interfaceTokenRejectTransactionBodyOrBuilder
-
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:
getRejectionsCountin interfaceTokenRejectTransactionBodyOrBuilder
-
getRejections
* 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:
getRejectionsin interfaceTokenRejectTransactionBodyOrBuilder
-
getRejectionsOrBuilder
* 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
- Throws:
IOException
-
parseFrom
public static TokenRejectTransactionBody parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<TokenRejectTransactionBody,TokenRejectTransactionBody.Builder>
-
getDefaultInstance
-
parser
-