Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class TokenFeeScheduleUpdateTransactionBody
java.lang.Object
com.google.protobuf.AbstractMessageLite<TokenFeeScheduleUpdateTransactionBody,TokenFeeScheduleUpdateTransactionBody.Builder>
com.google.protobuf.GeneratedMessageLite<TokenFeeScheduleUpdateTransactionBody,TokenFeeScheduleUpdateTransactionBody.Builder>
com.hedera.hashgraph.sdk.proto.TokenFeeScheduleUpdateTransactionBody
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,TokenFeeScheduleUpdateTransactionBodyOrBuilder
@Generated
public final class TokenFeeScheduleUpdateTransactionBody
extends com.google.protobuf.GeneratedMessageLite<TokenFeeScheduleUpdateTransactionBody,TokenFeeScheduleUpdateTransactionBody.Builder>
implements TokenFeeScheduleUpdateTransactionBodyOrBuilder
* Update the custom fee schedule for a token type. The token MUST have a `fee_schedule_key` set and that key MUST NOT be an empty `KeyList`.<br/> The token `fee_schedule_key` MUST sign this transaction.<br/> The token MUST exist, MUST NOT be deleted, and MUST NOT be expired.<br/> If the custom_fees list is empty, clears the fee schedule or resolves to CUSTOM_SCHEDULE_ALREADY_HAS_NO_FEES if the fee schedule was already empty. ### Block Stream Effects NoneProtobuf type
proto.TokenFeeScheduleUpdateTransactionBody-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class* Update the custom fee schedule for a 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) getCustomFees(int index) * A list of custom fees representing a fee schedule.int* A list of custom fees representing a fee schedule.* A list of custom fees representing a fee schedule.getCustomFeesOrBuilder(int index) * A list of custom fees representing a fee schedule.List<? extends CustomFeeOrBuilder> * A list of custom fees representing a fee schedule.* A token identifier.boolean* A token identifier.newBuilder(TokenFeeScheduleUpdateTransactionBody 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<TokenFeeScheduleUpdateTransactionBody> 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_ID_FIELD_NUMBER
public static final int TOKEN_ID_FIELD_NUMBER- See Also:
-
CUSTOM_FEES_FIELD_NUMBER
public static final int CUSTOM_FEES_FIELD_NUMBER- See Also:
-
-
Method Details
-
hasTokenId
public boolean hasTokenId()* A token identifier. <p> This SHALL identify the token type to modify with an updated custom fee schedule.<br/> The identified token MUST exist, and MUST NOT be deleted.
.proto.TokenID token_id = 1;- Specified by:
hasTokenIdin interfaceTokenFeeScheduleUpdateTransactionBodyOrBuilder- Returns:
- Whether the tokenId field is set.
-
getTokenId
* A token identifier. <p> This SHALL identify the token type to modify with an updated custom fee schedule.<br/> The identified token MUST exist, and MUST NOT be deleted.
.proto.TokenID token_id = 1;- Specified by:
getTokenIdin interfaceTokenFeeScheduleUpdateTransactionBodyOrBuilder- Returns:
- The tokenId.
-
getCustomFeesList
* A list of custom fees representing a fee schedule. <p> This list MAY be empty to remove custom fees from a token.<br/> If the identified token is a non-fungible/unique type, the entries in this list MUST NOT declare a `fractional_fee`.<br/> If the identified token is a fungible/common type, the entries in this list MUST NOT declare a `royalty_fee`.<br/> Any token type MAY include entries that declare a `fixed_fee`.
repeated .proto.CustomFee custom_fees = 2;- Specified by:
getCustomFeesListin interfaceTokenFeeScheduleUpdateTransactionBodyOrBuilder
-
getCustomFeesOrBuilderList
* A list of custom fees representing a fee schedule. <p> This list MAY be empty to remove custom fees from a token.<br/> If the identified token is a non-fungible/unique type, the entries in this list MUST NOT declare a `fractional_fee`.<br/> If the identified token is a fungible/common type, the entries in this list MUST NOT declare a `royalty_fee`.<br/> Any token type MAY include entries that declare a `fixed_fee`.
repeated .proto.CustomFee custom_fees = 2; -
getCustomFeesCount
public int getCustomFeesCount()* A list of custom fees representing a fee schedule. <p> This list MAY be empty to remove custom fees from a token.<br/> If the identified token is a non-fungible/unique type, the entries in this list MUST NOT declare a `fractional_fee`.<br/> If the identified token is a fungible/common type, the entries in this list MUST NOT declare a `royalty_fee`.<br/> Any token type MAY include entries that declare a `fixed_fee`.
repeated .proto.CustomFee custom_fees = 2;- Specified by:
getCustomFeesCountin interfaceTokenFeeScheduleUpdateTransactionBodyOrBuilder
-
getCustomFees
* A list of custom fees representing a fee schedule. <p> This list MAY be empty to remove custom fees from a token.<br/> If the identified token is a non-fungible/unique type, the entries in this list MUST NOT declare a `fractional_fee`.<br/> If the identified token is a fungible/common type, the entries in this list MUST NOT declare a `royalty_fee`.<br/> Any token type MAY include entries that declare a `fixed_fee`.
repeated .proto.CustomFee custom_fees = 2;- Specified by:
getCustomFeesin interfaceTokenFeeScheduleUpdateTransactionBodyOrBuilder
-
getCustomFeesOrBuilder
* A list of custom fees representing a fee schedule. <p> This list MAY be empty to remove custom fees from a token.<br/> If the identified token is a non-fungible/unique type, the entries in this list MUST NOT declare a `fractional_fee`.<br/> If the identified token is a fungible/common type, the entries in this list MUST NOT declare a `royalty_fee`.<br/> Any token type MAY include entries that declare a `fixed_fee`.
repeated .proto.CustomFee custom_fees = 2; -
parseFrom
public static TokenFeeScheduleUpdateTransactionBody parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TokenFeeScheduleUpdateTransactionBody parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TokenFeeScheduleUpdateTransactionBody parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TokenFeeScheduleUpdateTransactionBody parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TokenFeeScheduleUpdateTransactionBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TokenFeeScheduleUpdateTransactionBody parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static TokenFeeScheduleUpdateTransactionBody parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static TokenFeeScheduleUpdateTransactionBody parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static TokenFeeScheduleUpdateTransactionBody parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static TokenFeeScheduleUpdateTransactionBody parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static TokenFeeScheduleUpdateTransactionBody parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
public static TokenFeeScheduleUpdateTransactionBody.Builder newBuilder(TokenFeeScheduleUpdateTransactionBody prototype) -
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<TokenFeeScheduleUpdateTransactionBody,TokenFeeScheduleUpdateTransactionBody.Builder>
-
getDefaultInstance
-
parser
-