Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class TokenAssociation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<TokenAssociation,TokenAssociation.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<TokenAssociation,TokenAssociation.Builder>
com.hedera.hashgraph.sdk.proto.TokenAssociation.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,TokenAssociationOrBuilder,Cloneable
- Enclosing class:
TokenAssociation
public static final class TokenAssociation.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<TokenAssociation,TokenAssociation.Builder>
implements TokenAssociationOrBuilder
* An association between a token and an account. An account must be associated with a token before that account can transact in (send or receive) that token.Protobuf type
proto.TokenAssociation-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* An account identifier for the associated account.* A token identifier for the associated token.* An account identifier for the associated account.* A token identifier for the associated token.boolean* An account identifier for the associated account.boolean* A token identifier for the associated token.mergeAccountId(AccountID value) * An account identifier for the associated account.mergeTokenId(TokenID value) * A token identifier for the associated token.setAccountId(AccountID value) * An account identifier for the associated account.setAccountId(AccountID.Builder builderForValue) * An account identifier for the associated account.setTokenId(TokenID value) * A token identifier for the associated token.setTokenId(TokenID.Builder builderForValue) * A token identifier for the associated token.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasTokenId
public boolean hasTokenId()* A token identifier for the associated token.
.proto.TokenID token_id = 1;- Specified by:
hasTokenIdin interfaceTokenAssociationOrBuilder- Returns:
- Whether the tokenId field is set.
-
getTokenId
* A token identifier for the associated token.
.proto.TokenID token_id = 1;- Specified by:
getTokenIdin interfaceTokenAssociationOrBuilder- Returns:
- The tokenId.
-
setTokenId
* A token identifier for the associated token.
.proto.TokenID token_id = 1; -
setTokenId
* A token identifier for the associated token.
.proto.TokenID token_id = 1; -
mergeTokenId
* A token identifier for the associated token.
.proto.TokenID token_id = 1; -
clearTokenId
* A token identifier for the associated token.
.proto.TokenID token_id = 1; -
hasAccountId
public boolean hasAccountId()* An account identifier for the associated account.
.proto.AccountID account_id = 2;- Specified by:
hasAccountIdin interfaceTokenAssociationOrBuilder- Returns:
- Whether the accountId field is set.
-
getAccountId
* An account identifier for the associated account.
.proto.AccountID account_id = 2;- Specified by:
getAccountIdin interfaceTokenAssociationOrBuilder- Returns:
- The accountId.
-
setAccountId
* An account identifier for the associated account.
.proto.AccountID account_id = 2; -
setAccountId
* An account identifier for the associated account.
.proto.AccountID account_id = 2; -
mergeAccountId
* An account identifier for the associated account.
.proto.AccountID account_id = 2; -
clearAccountId
* An account identifier for the associated account.
.proto.AccountID account_id = 2;
-