Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class TokenFreezeAccountTransactionBody
java.lang.Object
com.google.protobuf.AbstractMessageLite<TokenFreezeAccountTransactionBody,TokenFreezeAccountTransactionBody.Builder>
com.google.protobuf.GeneratedMessageLite<TokenFreezeAccountTransactionBody,TokenFreezeAccountTransactionBody.Builder>
com.hedera.hashgraph.sdk.proto.TokenFreezeAccountTransactionBody
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,TokenFreezeAccountTransactionBodyOrBuilder
@Generated
public final class TokenFreezeAccountTransactionBody
extends com.google.protobuf.GeneratedMessageLite<TokenFreezeAccountTransactionBody,TokenFreezeAccountTransactionBody.Builder>
implements TokenFreezeAccountTransactionBodyOrBuilder
* Block transfers of a token type for an account.<br/> This, effectively, freezes assets of one account with respect to one token type. While frozen, that account cannot send or receive tokens of the identified type. The token MUST have a `freeze_key` set and that key MUST NOT be an empty `KeyList`.<br/> The token `freeze_key` MUST sign this transaction.<br/> The identified token MUST exist, MUST NOT be deleted, MUST NOT be paused, and MUST NOT be expired.<br/> The identified account MUST exist, MUST NOT be deleted, and MUST NOT be expired.<br/> If the identified account is already frozen with respect to the identified token, the transaction SHALL succeed, but no change SHALL be made.<br/> An association between the identified account and the identified token MUST exist. ### Block Stream Effects NoneProtobuf type
proto.TokenFreezeAccountTransactionBody-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class* Block transfers of a token type for an account.<br/> This, effectively, freezes assets of one account with respect to one 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) * An account identifier.getToken()* A token identifier.boolean* An account identifier.booleanhasToken()* A token identifier.newBuilder(TokenFreezeAccountTransactionBody prototype) parseDelimitedFrom(InputStream input) 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) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<TokenFreezeAccountTransactionBody> 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
-
TOKEN_FIELD_NUMBER
public static final int TOKEN_FIELD_NUMBER- See Also:
-
ACCOUNT_FIELD_NUMBER
public static final int ACCOUNT_FIELD_NUMBER- See Also:
-
-
Method Details
-
hasToken
public boolean hasToken()* A token identifier. <p> This SHALL identify the token type to "freeze".<br/> The identified token MUST exist, MUST NOT be deleted, and MUST be associated to the identified account.
.proto.TokenID token = 1;- Specified by:
hasTokenin interfaceTokenFreezeAccountTransactionBodyOrBuilder- Returns:
- Whether the token field is set.
-
getToken
* A token identifier. <p> This SHALL identify the token type to "freeze".<br/> The identified token MUST exist, MUST NOT be deleted, and MUST be associated to the identified account.
.proto.TokenID token = 1;- Specified by:
getTokenin interfaceTokenFreezeAccountTransactionBodyOrBuilder- Returns:
- The token.
-
hasAccount
public boolean hasAccount()* An account identifier. <p> This shall identify the account to "freeze".<br/> The identified account MUST exist, MUST NOT be deleted, MUST NOT be expired, and MUST be associated to the identified token.<br/> The identified account SHOULD NOT be "frozen" with respect to the identified token.
.proto.AccountID account = 2;- Specified by:
hasAccountin interfaceTokenFreezeAccountTransactionBodyOrBuilder- Returns:
- Whether the account field is set.
-
getAccount
* An account identifier. <p> This shall identify the account to "freeze".<br/> The identified account MUST exist, MUST NOT be deleted, MUST NOT be expired, and MUST be associated to the identified token.<br/> The identified account SHOULD NOT be "frozen" with respect to the identified token.
.proto.AccountID account = 2;- Specified by:
getAccountin interfaceTokenFreezeAccountTransactionBodyOrBuilder- Returns:
- The account.
-
parseFrom
public static TokenFreezeAccountTransactionBody parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TokenFreezeAccountTransactionBody parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TokenFreezeAccountTransactionBody parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TokenFreezeAccountTransactionBody parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TokenFreezeAccountTransactionBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TokenFreezeAccountTransactionBody parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static TokenFreezeAccountTransactionBody parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static TokenFreezeAccountTransactionBody parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static TokenFreezeAccountTransactionBody parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static TokenFreezeAccountTransactionBody parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static TokenFreezeAccountTransactionBody parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
public static TokenFreezeAccountTransactionBody.Builder newBuilder(TokenFreezeAccountTransactionBody prototype) -
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<TokenFreezeAccountTransactionBody,TokenFreezeAccountTransactionBody.Builder>
-
getDefaultInstance
-
parser
-