Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class TokenGrantKycTransactionBody
java.lang.Object
com.google.protobuf.AbstractMessageLite<TokenGrantKycTransactionBody,TokenGrantKycTransactionBody.Builder>
com.google.protobuf.GeneratedMessageLite<TokenGrantKycTransactionBody,TokenGrantKycTransactionBody.Builder>
com.hedera.hashgraph.sdk.proto.TokenGrantKycTransactionBody
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,TokenGrantKycTransactionBodyOrBuilder
@Generated
public final class TokenGrantKycTransactionBody
extends com.google.protobuf.GeneratedMessageLite<TokenGrantKycTransactionBody,TokenGrantKycTransactionBody.Builder>
implements TokenGrantKycTransactionBodyOrBuilder
* Grant "Know Your Customer"(KYC) for one account for a single token. This transaction MUST be signed by the `kyc_key` for the token.<br/> The identified token MUST have a `kyc_key` set to a valid `Key` value.<br/> The token `kyc_key` MUST NOT be an empty `KeyList`.<br/> The identified token MUST exist and MUST NOT be deleted.<br/> The identified account MUST exist and MUST NOT be deleted.<br/> The identified account MUST have an association to the identified token.<br/> On success the association between the identified account and the identified token SHALL be marked as "KYC granted". ### Block Stream Effects NoneProtobuf type
proto.TokenGrantKycTransactionBody-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class* Grant "Know Your Customer"(KYC) for one account for a single token.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.static TokenGrantKycTransactionBodygetToken()* A token identifier.boolean* An account identifier.booleanhasToken()* A token identifier.newBuilder(TokenGrantKycTransactionBody prototype) static TokenGrantKycTransactionBodyparseDelimitedFrom(InputStream input) static TokenGrantKycTransactionBodyparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TokenGrantKycTransactionBodyparseFrom(byte[] data) static TokenGrantKycTransactionBodyparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TokenGrantKycTransactionBodyparseFrom(com.google.protobuf.ByteString data) static TokenGrantKycTransactionBodyparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TokenGrantKycTransactionBodyparseFrom(com.google.protobuf.CodedInputStream input) static TokenGrantKycTransactionBodyparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TokenGrantKycTransactionBodyparseFrom(InputStream input) static TokenGrantKycTransactionBodyparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TokenGrantKycTransactionBodyparseFrom(ByteBuffer data) static TokenGrantKycTransactionBodyparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<TokenGrantKycTransactionBody> 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> The identified token SHALL grant "KYC" for the account identified by the `account` field.<br/> The identified token MUST be associated to the account identified by the `account` field.
.proto.TokenID token = 1;- Specified by:
hasTokenin interfaceTokenGrantKycTransactionBodyOrBuilder- Returns:
- Whether the token field is set.
-
getToken
* A token identifier. <p> The identified token SHALL grant "KYC" for the account identified by the `account` field.<br/> The identified token MUST be associated to the account identified by the `account` field.
.proto.TokenID token = 1;- Specified by:
getTokenin interfaceTokenGrantKycTransactionBodyOrBuilder- Returns:
- The token.
-
hasAccount
public boolean hasAccount()* An account identifier. <p> The token identified by the `token` field SHALL grant "KYC" for the identified account.<br/> This account MUST be associated to the token identified by the `token` field.
.proto.AccountID account = 2;- Specified by:
hasAccountin interfaceTokenGrantKycTransactionBodyOrBuilder- Returns:
- Whether the account field is set.
-
getAccount
* An account identifier. <p> The token identified by the `token` field SHALL grant "KYC" for the identified account.<br/> This account MUST be associated to the token identified by the `token` field.
.proto.AccountID account = 2;- Specified by:
getAccountin interfaceTokenGrantKycTransactionBodyOrBuilder- Returns:
- The account.
-
parseFrom
public static TokenGrantKycTransactionBody parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TokenGrantKycTransactionBody parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TokenGrantKycTransactionBody parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TokenGrantKycTransactionBody parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TokenGrantKycTransactionBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TokenGrantKycTransactionBody parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static TokenGrantKycTransactionBody parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static TokenGrantKycTransactionBody parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static TokenGrantKycTransactionBody parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static TokenGrantKycTransactionBody parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
public static TokenGrantKycTransactionBody.Builder newBuilder(TokenGrantKycTransactionBody prototype) -
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<TokenGrantKycTransactionBody,TokenGrantKycTransactionBody.Builder>
-
getDefaultInstance
-
parser
-