Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class TokenUpdateNftsTransactionBody
java.lang.Object
com.google.protobuf.AbstractMessageLite<TokenUpdateNftsTransactionBody,TokenUpdateNftsTransactionBody.Builder>
com.google.protobuf.GeneratedMessageLite<TokenUpdateNftsTransactionBody,TokenUpdateNftsTransactionBody.Builder>
com.hedera.hashgraph.sdk.proto.TokenUpdateNftsTransactionBody
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,TokenUpdateNftsTransactionBodyOrBuilder
@Generated
public final class TokenUpdateNftsTransactionBody
extends com.google.protobuf.GeneratedMessageLite<TokenUpdateNftsTransactionBody,TokenUpdateNftsTransactionBody.Builder>
implements TokenUpdateNftsTransactionBodyOrBuilder
* Modify the metadata field for an individual non-fungible/unique token (NFT). Updating the metadata of an NFT SHALL NOT affect ownership or the ability to transfer that NFT.<br/> This transaction SHALL affect only the specific serial numbered tokens identified. This transaction SHALL modify individual token metadata.<br/> This transaction MUST be signed by the token `metadata_key`.<br/> The token `metadata_key` MUST be a valid `Key`.<br/> The token `metadata_key` MUST NOT be an empty `KeyList`. ### Block Stream Effects NoneProtobuf type
proto.TokenUpdateNftsTransactionBody-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class* Modify the metadata field for an individual non-fungible/unique token (NFT).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 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) com.google.protobuf.BytesValue* A new value for the metadata.longgetSerialNumbers(int index) * A list of serial numbers to be updated.int* A list of serial numbers to be updated.* A list of serial numbers to be updated.getToken()* A token identifier.<br/> This is the token type (i.e.boolean* A new value for the metadata.booleanhasToken()* A token identifier.<br/> This is the token type (i.e.newBuilder(TokenUpdateNftsTransactionBody 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<TokenUpdateNftsTransactionBody> 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:
-
SERIAL_NUMBERS_FIELD_NUMBER
public static final int SERIAL_NUMBERS_FIELD_NUMBER- See Also:
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER- See Also:
-
-
Method Details
-
hasToken
public boolean hasToken()* A token identifier.<br/> This is the token type (i.e. collection) for which to update NFTs. <p> This field is REQUIRED.<br/> The identified token MUST exist, MUST NOT be paused, MUST have the type non-fungible/unique, and MUST have a valid `metadata_key`.
.proto.TokenID token = 1;- Specified by:
hasTokenin interfaceTokenUpdateNftsTransactionBodyOrBuilder- Returns:
- Whether the token field is set.
-
getToken
* A token identifier.<br/> This is the token type (i.e. collection) for which to update NFTs. <p> This field is REQUIRED.<br/> The identified token MUST exist, MUST NOT be paused, MUST have the type non-fungible/unique, and MUST have a valid `metadata_key`.
.proto.TokenID token = 1;- Specified by:
getTokenin interfaceTokenUpdateNftsTransactionBodyOrBuilder- Returns:
- The token.
-
getSerialNumbersList
* A list of serial numbers to be updated. <p> This field is REQUIRED.<br/> This list MUST have at least one(1) entry.<br/> This list MUST NOT have more than ten(10) entries.
repeated int64 serial_numbers = 2;- Specified by:
getSerialNumbersListin interfaceTokenUpdateNftsTransactionBodyOrBuilder- Returns:
- A list containing the serialNumbers.
-
getSerialNumbersCount
public int getSerialNumbersCount()* A list of serial numbers to be updated. <p> This field is REQUIRED.<br/> This list MUST have at least one(1) entry.<br/> This list MUST NOT have more than ten(10) entries.
repeated int64 serial_numbers = 2;- Specified by:
getSerialNumbersCountin interfaceTokenUpdateNftsTransactionBodyOrBuilder- Returns:
- The count of serialNumbers.
-
getSerialNumbers
public long getSerialNumbers(int index) * A list of serial numbers to be updated. <p> This field is REQUIRED.<br/> This list MUST have at least one(1) entry.<br/> This list MUST NOT have more than ten(10) entries.
repeated int64 serial_numbers = 2;- Specified by:
getSerialNumbersin interfaceTokenUpdateNftsTransactionBodyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The serialNumbers at the given index.
-
hasMetadata
public boolean hasMetadata()* A new value for the metadata. <p> If this field is not set, the metadata SHALL NOT change.<br/> This value, if set, MUST NOT exceed 100 bytes.
.google.protobuf.BytesValue metadata = 3;- Specified by:
hasMetadatain interfaceTokenUpdateNftsTransactionBodyOrBuilder- Returns:
- Whether the metadata field is set.
-
getMetadata
public com.google.protobuf.BytesValue getMetadata()* A new value for the metadata. <p> If this field is not set, the metadata SHALL NOT change.<br/> This value, if set, MUST NOT exceed 100 bytes.
.google.protobuf.BytesValue metadata = 3;- Specified by:
getMetadatain interfaceTokenUpdateNftsTransactionBodyOrBuilder- Returns:
- The metadata.
-
parseFrom
public static TokenUpdateNftsTransactionBody parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TokenUpdateNftsTransactionBody parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TokenUpdateNftsTransactionBody parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TokenUpdateNftsTransactionBody parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TokenUpdateNftsTransactionBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TokenUpdateNftsTransactionBody parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static TokenUpdateNftsTransactionBody parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static TokenUpdateNftsTransactionBody parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static TokenUpdateNftsTransactionBody parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static TokenUpdateNftsTransactionBody parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static TokenUpdateNftsTransactionBody parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
public static TokenUpdateNftsTransactionBody.Builder newBuilder(TokenUpdateNftsTransactionBody prototype) -
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<TokenUpdateNftsTransactionBody,TokenUpdateNftsTransactionBody.Builder>
-
getDefaultInstance
-
parser
-