Package com.hedera.hashgraph.sdk.proto
Class TokenFreezeAccountTransactionBody.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<TokenFreezeAccountTransactionBody,TokenFreezeAccountTransactionBody.Builder>
com.hedera.hashgraph.sdk.proto.TokenFreezeAccountTransactionBody.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,TokenFreezeAccountTransactionBodyOrBuilder
,Cloneable
- Enclosing class:
- TokenFreezeAccountTransactionBody
public static final class TokenFreezeAccountTransactionBody.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<TokenFreezeAccountTransactionBody,TokenFreezeAccountTransactionBody.Builder>
implements TokenFreezeAccountTransactionBodyOrBuilder
Freezes transfers of the specified token for the account. Must be signed by the Token's freezeKey. If the provided account is not found, the transaction will resolve to INVALID_ACCOUNT_ID. If the provided account has been deleted, the transaction will resolve to ACCOUNT_DELETED. If the provided token is not found, the transaction will resolve to INVALID_TOKEN_ID. If the provided token has been deleted, the transaction will resolve to TOKEN_WAS_DELETED. If an Association between the provided token and account is not found, the transaction will resolve to TOKEN_NOT_ASSOCIATED_TO_ACCOUNT. If no Freeze Key is defined, the transaction will resolve to TOKEN_HAS_NO_FREEZE_KEY. Once executed the Account is marked as Frozen and will not be able to receive or send tokens unless unfrozen. The operation is idempotent.Protobuf type
proto.TokenFreezeAccountTransactionBody
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionThe account to be frozenThe token for which this account will be frozen.The account to be frozengetToken()
The token for which this account will be frozen.boolean
The account to be frozenboolean
hasToken()
The token for which this account will be frozen.mergeAccount
(AccountID value) The account to be frozenmergeToken
(TokenID value) The token for which this account will be frozen.setAccount
(AccountID value) The account to be frozensetAccount
(AccountID.Builder builderForValue) The account to be frozenThe token for which this account will be frozen.setToken
(TokenID.Builder builderForValue) The token for which this account will be frozen.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasToken
public boolean hasToken()The token for which this account will be frozen. If token does not exist, transaction results in INVALID_TOKEN_ID
.proto.TokenID token = 1;
- Specified by:
hasToken
in interfaceTokenFreezeAccountTransactionBodyOrBuilder
- Returns:
- Whether the token field is set.
-
getToken
The token for which this account will be frozen. If token does not exist, transaction results in INVALID_TOKEN_ID
.proto.TokenID token = 1;
- Specified by:
getToken
in interfaceTokenFreezeAccountTransactionBodyOrBuilder
- Returns:
- The token.
-
setToken
The token for which this account will be frozen. If token does not exist, transaction results in INVALID_TOKEN_ID
.proto.TokenID token = 1;
-
setToken
The token for which this account will be frozen. If token does not exist, transaction results in INVALID_TOKEN_ID
.proto.TokenID token = 1;
-
mergeToken
The token for which this account will be frozen. If token does not exist, transaction results in INVALID_TOKEN_ID
.proto.TokenID token = 1;
-
clearToken
The token for which this account will be frozen. If token does not exist, transaction results in INVALID_TOKEN_ID
.proto.TokenID token = 1;
-
hasAccount
public boolean hasAccount()The account to be frozen
.proto.AccountID account = 2;
- Specified by:
hasAccount
in interfaceTokenFreezeAccountTransactionBodyOrBuilder
- Returns:
- Whether the account field is set.
-
getAccount
The account to be frozen
.proto.AccountID account = 2;
- Specified by:
getAccount
in interfaceTokenFreezeAccountTransactionBodyOrBuilder
- Returns:
- The account.
-
setAccount
The account to be frozen
.proto.AccountID account = 2;
-
setAccount
The account to be frozen
.proto.AccountID account = 2;
-
mergeAccount
The account to be frozen
.proto.AccountID account = 2;
-
clearAccount
The account to be frozen
.proto.AccountID account = 2;
-