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
 None
 
Protobuf type proto.TokenUpdateNftsTransactionBody
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static 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

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final Object
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
     
     
    com.google.protobuf.BytesValue
    * A new value for the metadata.
    long
    getSerialNumbers(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.
    * A token identifier.<br/> This is the token type (i.e.
    boolean
    * A new value for the metadata.
    boolean
    * A token identifier.<br/> This is the token type (i.e.
     
     
     
    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, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<TokenUpdateNftsTransactionBody>
     

    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, writeTo

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Field Details

  • 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:
      hasToken in interface TokenUpdateNftsTransactionBodyOrBuilder
      Returns:
      Whether the token field is set.
    • getToken

      public TokenID 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:
      getToken in interface TokenUpdateNftsTransactionBodyOrBuilder
      Returns:
      The token.
    • getSerialNumbersList

      public List<Long> 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:
      getSerialNumbersList in interface TokenUpdateNftsTransactionBodyOrBuilder
      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:
      getSerialNumbersCount in interface TokenUpdateNftsTransactionBodyOrBuilder
      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:
      getSerialNumbers in interface TokenUpdateNftsTransactionBodyOrBuilder
      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:
      hasMetadata in interface TokenUpdateNftsTransactionBodyOrBuilder
      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:
      getMetadata in interface TokenUpdateNftsTransactionBodyOrBuilder
      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

      public static TokenUpdateNftsTransactionBody parseFrom(InputStream input) throws IOException
      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

      public static TokenUpdateNftsTransactionBody.Builder newBuilder()
    • newBuilder

    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<TokenUpdateNftsTransactionBody,TokenUpdateNftsTransactionBody.Builder>
    • getDefaultInstance

      public static TokenUpdateNftsTransactionBody getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<TokenUpdateNftsTransactionBody> parser()