Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class TokenFeeScheduleUpdateTransactionBody.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<TokenFeeScheduleUpdateTransactionBody,TokenFeeScheduleUpdateTransactionBody.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<TokenFeeScheduleUpdateTransactionBody,TokenFeeScheduleUpdateTransactionBody.Builder>
com.hedera.hashgraph.sdk.proto.TokenFeeScheduleUpdateTransactionBody.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,TokenFeeScheduleUpdateTransactionBodyOrBuilder,Cloneable
- Enclosing class:
TokenFeeScheduleUpdateTransactionBody
public static final class TokenFeeScheduleUpdateTransactionBody.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<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-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionaddAllCustomFees(Iterable<? extends CustomFee> values) * A list of custom fees representing a fee schedule.addCustomFees(int index, CustomFee value) * A list of custom fees representing a fee schedule.addCustomFees(int index, CustomFee.Builder builderForValue) * A list of custom fees representing a fee schedule.addCustomFees(CustomFee value) * A list of custom fees representing a fee schedule.addCustomFees(CustomFee.Builder builderForValue) * A list of custom fees representing a fee schedule.* A list of custom fees representing a fee schedule.* A token identifier.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.* A token identifier.boolean* A token identifier.mergeTokenId(TokenID value) * A token identifier.removeCustomFees(int index) * A list of custom fees representing a fee schedule.setCustomFees(int index, CustomFee value) * A list of custom fees representing a fee schedule.setCustomFees(int index, CustomFee.Builder builderForValue) * A list of custom fees representing a fee schedule.setTokenId(TokenID value) * A token identifier.setTokenId(TokenID.Builder builderForValue) * A token identifier.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. <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.
-
setTokenId
* 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; -
setTokenId
* 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; -
mergeTokenId
* 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; -
clearTokenId
* 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; -
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
-
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
-
setCustomFees
* 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; -
setCustomFees
public TokenFeeScheduleUpdateTransactionBody.Builder setCustomFees(int index, CustomFee.Builder builderForValue) * 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; -
addCustomFees
* 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; -
addCustomFees
* 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; -
addCustomFees
public TokenFeeScheduleUpdateTransactionBody.Builder addCustomFees(CustomFee.Builder builderForValue) * 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; -
addCustomFees
public TokenFeeScheduleUpdateTransactionBody.Builder addCustomFees(int index, CustomFee.Builder builderForValue) * 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; -
addAllCustomFees
public TokenFeeScheduleUpdateTransactionBody.Builder addAllCustomFees(Iterable<? extends CustomFee> values) * 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; -
clearCustomFees
* 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; -
removeCustomFees
* 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;
-