All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hedera.hashgraph.sdk.proto.Nft Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: nft.proto

// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;

/**
 * 
 **
 * Representation of a Hedera Token Service NFT in the network Merkle tree.
 * 
* * Protobuf type {@code proto.Nft} */ public final class Nft extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.Nft) NftOrBuilder { private static final long serialVersionUID = 0L; // Use Nft.newBuilder() to construct. private Nft(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Nft() { metadata_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Nft(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.NftOuterClass.internal_static_proto_Nft_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.NftOuterClass.internal_static_proto_Nft_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.Nft.class, com.hedera.hashgraph.sdk.proto.Nft.Builder.class); } private int bitField0_; public static final int NFT_ID_FIELD_NUMBER = 1; private com.hedera.hashgraph.sdk.proto.NftID nftId_; /** *
   **
   * The id of this NFT.
   * 
* * .proto.NftID nft_id = 1; * @return Whether the nftId field is set. */ @java.lang.Override public boolean hasNftId() { return ((bitField0_ & 0x00000001) != 0); } /** *
   **
   * The id of this NFT.
   * 
* * .proto.NftID nft_id = 1; * @return The nftId. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.NftID getNftId() { return nftId_ == null ? com.hedera.hashgraph.sdk.proto.NftID.getDefaultInstance() : nftId_; } /** *
   **
   * The id of this NFT.
   * 
* * .proto.NftID nft_id = 1; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.NftIDOrBuilder getNftIdOrBuilder() { return nftId_ == null ? com.hedera.hashgraph.sdk.proto.NftID.getDefaultInstance() : nftId_; } public static final int OWNER_ID_FIELD_NUMBER = 2; private com.hedera.hashgraph.sdk.proto.AccountID ownerId_; /** *
   **
   * The account or contract id that owns this NFT.
   *
   * If this number is zero in state, the NFT is owned by its token type's current treasury.
   * 
* * .proto.AccountID owner_id = 2; * @return Whether the ownerId field is set. */ @java.lang.Override public boolean hasOwnerId() { return ((bitField0_ & 0x00000002) != 0); } /** *
   **
   * The account or contract id that owns this NFT.
   *
   * If this number is zero in state, the NFT is owned by its token type's current treasury.
   * 
* * .proto.AccountID owner_id = 2; * @return The ownerId. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountID getOwnerId() { return ownerId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : ownerId_; } /** *
   **
   * The account or contract id that owns this NFT.
   *
   * If this number is zero in state, the NFT is owned by its token type's current treasury.
   * 
* * .proto.AccountID owner_id = 2; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getOwnerIdOrBuilder() { return ownerId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : ownerId_; } public static final int SPENDER_ID_FIELD_NUMBER = 3; private com.hedera.hashgraph.sdk.proto.AccountID spenderId_; /** *
   **
   * The account or contract id approved to spend this NFT.
   *
   * If this number is zero, there is no approved spender.
   * 
* * .proto.AccountID spender_id = 3; * @return Whether the spenderId field is set. */ @java.lang.Override public boolean hasSpenderId() { return ((bitField0_ & 0x00000004) != 0); } /** *
   **
   * The account or contract id approved to spend this NFT.
   *
   * If this number is zero, there is no approved spender.
   * 
* * .proto.AccountID spender_id = 3; * @return The spenderId. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountID getSpenderId() { return spenderId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : spenderId_; } /** *
   **
   * The account or contract id approved to spend this NFT.
   *
   * If this number is zero, there is no approved spender.
   * 
* * .proto.AccountID spender_id = 3; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getSpenderIdOrBuilder() { return spenderId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : spenderId_; } public static final int MINT_TIME_FIELD_NUMBER = 4; private com.hedera.hashgraph.sdk.proto.Timestamp mintTime_; /** *
   **
   * The consensus time of the TokenMint that created this NFT.
   * 
* * .proto.Timestamp mint_time = 4; * @return Whether the mintTime field is set. */ @java.lang.Override public boolean hasMintTime() { return ((bitField0_ & 0x00000008) != 0); } /** *
   **
   * The consensus time of the TokenMint that created this NFT.
   * 
* * .proto.Timestamp mint_time = 4; * @return The mintTime. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.Timestamp getMintTime() { return mintTime_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : mintTime_; } /** *
   **
   * The consensus time of the TokenMint that created this NFT.
   * 
* * .proto.Timestamp mint_time = 4; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.TimestampOrBuilder getMintTimeOrBuilder() { return mintTime_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : mintTime_; } public static final int METADATA_FIELD_NUMBER = 5; private com.google.protobuf.ByteString metadata_ = com.google.protobuf.ByteString.EMPTY; /** *
   **
   * The metadata of this NFT, up to 100 bytes; usually the UTF-8 encoding of a URI.
   * 
* * bytes metadata = 5; * @return The metadata. */ @java.lang.Override public com.google.protobuf.ByteString getMetadata() { return metadata_; } public static final int OWNER_PREVIOUS_NFT_ID_FIELD_NUMBER = 6; private com.hedera.hashgraph.sdk.proto.NftID ownerPreviousNftId_; /** *
   **
   * If the owner of this NFT is not its token treasury, the id of the previous NFT 
   * in the owner's "doubly-linked list" of owned NFTs (if any).
   * 
* * .proto.NftID owner_previous_nft_id = 6; * @return Whether the ownerPreviousNftId field is set. */ @java.lang.Override public boolean hasOwnerPreviousNftId() { return ((bitField0_ & 0x00000010) != 0); } /** *
   **
   * If the owner of this NFT is not its token treasury, the id of the previous NFT 
   * in the owner's "doubly-linked list" of owned NFTs (if any).
   * 
* * .proto.NftID owner_previous_nft_id = 6; * @return The ownerPreviousNftId. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.NftID getOwnerPreviousNftId() { return ownerPreviousNftId_ == null ? com.hedera.hashgraph.sdk.proto.NftID.getDefaultInstance() : ownerPreviousNftId_; } /** *
   **
   * If the owner of this NFT is not its token treasury, the id of the previous NFT 
   * in the owner's "doubly-linked list" of owned NFTs (if any).
   * 
* * .proto.NftID owner_previous_nft_id = 6; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.NftIDOrBuilder getOwnerPreviousNftIdOrBuilder() { return ownerPreviousNftId_ == null ? com.hedera.hashgraph.sdk.proto.NftID.getDefaultInstance() : ownerPreviousNftId_; } public static final int OWNER_NEXT_NFT_ID_FIELD_NUMBER = 7; private com.hedera.hashgraph.sdk.proto.NftID ownerNextNftId_; /** *
   **
   * If the owner of this NFT is not its token treasury, the id of the next NFT in 
   * the owner's "doubly-linked list" of owned NFTs (if any).
   * 
* * .proto.NftID owner_next_nft_id = 7; * @return Whether the ownerNextNftId field is set. */ @java.lang.Override public boolean hasOwnerNextNftId() { return ((bitField0_ & 0x00000020) != 0); } /** *
   **
   * If the owner of this NFT is not its token treasury, the id of the next NFT in 
   * the owner's "doubly-linked list" of owned NFTs (if any).
   * 
* * .proto.NftID owner_next_nft_id = 7; * @return The ownerNextNftId. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.NftID getOwnerNextNftId() { return ownerNextNftId_ == null ? com.hedera.hashgraph.sdk.proto.NftID.getDefaultInstance() : ownerNextNftId_; } /** *
   **
   * If the owner of this NFT is not its token treasury, the id of the next NFT in 
   * the owner's "doubly-linked list" of owned NFTs (if any).
   * 
* * .proto.NftID owner_next_nft_id = 7; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.NftIDOrBuilder getOwnerNextNftIdOrBuilder() { return ownerNextNftId_ == null ? com.hedera.hashgraph.sdk.proto.NftID.getDefaultInstance() : ownerNextNftId_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getNftId()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getOwnerId()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getSpenderId()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(4, getMintTime()); } if (!metadata_.isEmpty()) { output.writeBytes(5, metadata_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(6, getOwnerPreviousNftId()); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(7, getOwnerNextNftId()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getNftId()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getOwnerId()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getSpenderId()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getMintTime()); } if (!metadata_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, metadata_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getOwnerPreviousNftId()); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getOwnerNextNftId()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.hedera.hashgraph.sdk.proto.Nft)) { return super.equals(obj); } com.hedera.hashgraph.sdk.proto.Nft other = (com.hedera.hashgraph.sdk.proto.Nft) obj; if (hasNftId() != other.hasNftId()) return false; if (hasNftId()) { if (!getNftId() .equals(other.getNftId())) return false; } if (hasOwnerId() != other.hasOwnerId()) return false; if (hasOwnerId()) { if (!getOwnerId() .equals(other.getOwnerId())) return false; } if (hasSpenderId() != other.hasSpenderId()) return false; if (hasSpenderId()) { if (!getSpenderId() .equals(other.getSpenderId())) return false; } if (hasMintTime() != other.hasMintTime()) return false; if (hasMintTime()) { if (!getMintTime() .equals(other.getMintTime())) return false; } if (!getMetadata() .equals(other.getMetadata())) return false; if (hasOwnerPreviousNftId() != other.hasOwnerPreviousNftId()) return false; if (hasOwnerPreviousNftId()) { if (!getOwnerPreviousNftId() .equals(other.getOwnerPreviousNftId())) return false; } if (hasOwnerNextNftId() != other.hasOwnerNextNftId()) return false; if (hasOwnerNextNftId()) { if (!getOwnerNextNftId() .equals(other.getOwnerNextNftId())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasNftId()) { hash = (37 * hash) + NFT_ID_FIELD_NUMBER; hash = (53 * hash) + getNftId().hashCode(); } if (hasOwnerId()) { hash = (37 * hash) + OWNER_ID_FIELD_NUMBER; hash = (53 * hash) + getOwnerId().hashCode(); } if (hasSpenderId()) { hash = (37 * hash) + SPENDER_ID_FIELD_NUMBER; hash = (53 * hash) + getSpenderId().hashCode(); } if (hasMintTime()) { hash = (37 * hash) + MINT_TIME_FIELD_NUMBER; hash = (53 * hash) + getMintTime().hashCode(); } hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); if (hasOwnerPreviousNftId()) { hash = (37 * hash) + OWNER_PREVIOUS_NFT_ID_FIELD_NUMBER; hash = (53 * hash) + getOwnerPreviousNftId().hashCode(); } if (hasOwnerNextNftId()) { hash = (37 * hash) + OWNER_NEXT_NFT_ID_FIELD_NUMBER; hash = (53 * hash) + getOwnerNextNftId().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.hashgraph.sdk.proto.Nft parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.Nft parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.Nft parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.Nft parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.Nft parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.Nft parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.Nft parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.Nft parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.Nft parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.Nft parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.Nft parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.Nft parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.Nft prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   **
   * Representation of a Hedera Token Service NFT in the network Merkle tree.
   * 
* * Protobuf type {@code proto.Nft} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.Nft) com.hedera.hashgraph.sdk.proto.NftOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.NftOuterClass.internal_static_proto_Nft_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.NftOuterClass.internal_static_proto_Nft_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.Nft.class, com.hedera.hashgraph.sdk.proto.Nft.Builder.class); } // Construct using com.hedera.hashgraph.sdk.proto.Nft.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getNftIdFieldBuilder(); getOwnerIdFieldBuilder(); getSpenderIdFieldBuilder(); getMintTimeFieldBuilder(); getOwnerPreviousNftIdFieldBuilder(); getOwnerNextNftIdFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; nftId_ = null; if (nftIdBuilder_ != null) { nftIdBuilder_.dispose(); nftIdBuilder_ = null; } ownerId_ = null; if (ownerIdBuilder_ != null) { ownerIdBuilder_.dispose(); ownerIdBuilder_ = null; } spenderId_ = null; if (spenderIdBuilder_ != null) { spenderIdBuilder_.dispose(); spenderIdBuilder_ = null; } mintTime_ = null; if (mintTimeBuilder_ != null) { mintTimeBuilder_.dispose(); mintTimeBuilder_ = null; } metadata_ = com.google.protobuf.ByteString.EMPTY; ownerPreviousNftId_ = null; if (ownerPreviousNftIdBuilder_ != null) { ownerPreviousNftIdBuilder_.dispose(); ownerPreviousNftIdBuilder_ = null; } ownerNextNftId_ = null; if (ownerNextNftIdBuilder_ != null) { ownerNextNftIdBuilder_.dispose(); ownerNextNftIdBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hedera.hashgraph.sdk.proto.NftOuterClass.internal_static_proto_Nft_descriptor; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.Nft getDefaultInstanceForType() { return com.hedera.hashgraph.sdk.proto.Nft.getDefaultInstance(); } @java.lang.Override public com.hedera.hashgraph.sdk.proto.Nft build() { com.hedera.hashgraph.sdk.proto.Nft result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.Nft buildPartial() { com.hedera.hashgraph.sdk.proto.Nft result = new com.hedera.hashgraph.sdk.proto.Nft(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.hedera.hashgraph.sdk.proto.Nft result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.nftId_ = nftIdBuilder_ == null ? nftId_ : nftIdBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.ownerId_ = ownerIdBuilder_ == null ? ownerId_ : ownerIdBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.spenderId_ = spenderIdBuilder_ == null ? spenderId_ : spenderIdBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.mintTime_ = mintTimeBuilder_ == null ? mintTime_ : mintTimeBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.metadata_ = metadata_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.ownerPreviousNftId_ = ownerPreviousNftIdBuilder_ == null ? ownerPreviousNftId_ : ownerPreviousNftIdBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000040) != 0)) { result.ownerNextNftId_ = ownerNextNftIdBuilder_ == null ? ownerNextNftId_ : ownerNextNftIdBuilder_.build(); to_bitField0_ |= 0x00000020; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.hedera.hashgraph.sdk.proto.Nft) { return mergeFrom((com.hedera.hashgraph.sdk.proto.Nft)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.Nft other) { if (other == com.hedera.hashgraph.sdk.proto.Nft.getDefaultInstance()) return this; if (other.hasNftId()) { mergeNftId(other.getNftId()); } if (other.hasOwnerId()) { mergeOwnerId(other.getOwnerId()); } if (other.hasSpenderId()) { mergeSpenderId(other.getSpenderId()); } if (other.hasMintTime()) { mergeMintTime(other.getMintTime()); } if (other.getMetadata() != com.google.protobuf.ByteString.EMPTY) { setMetadata(other.getMetadata()); } if (other.hasOwnerPreviousNftId()) { mergeOwnerPreviousNftId(other.getOwnerPreviousNftId()); } if (other.hasOwnerNextNftId()) { mergeOwnerNextNftId(other.getOwnerNextNftId()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getNftIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getOwnerIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getSpenderIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getMintTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { metadata_ = input.readBytes(); bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage( getOwnerPreviousNftIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 case 58: { input.readMessage( getOwnerNextNftIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.hedera.hashgraph.sdk.proto.NftID nftId_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.NftID, com.hedera.hashgraph.sdk.proto.NftID.Builder, com.hedera.hashgraph.sdk.proto.NftIDOrBuilder> nftIdBuilder_; /** *
     **
     * The id of this NFT.
     * 
* * .proto.NftID nft_id = 1; * @return Whether the nftId field is set. */ public boolean hasNftId() { return ((bitField0_ & 0x00000001) != 0); } /** *
     **
     * The id of this NFT.
     * 
* * .proto.NftID nft_id = 1; * @return The nftId. */ public com.hedera.hashgraph.sdk.proto.NftID getNftId() { if (nftIdBuilder_ == null) { return nftId_ == null ? com.hedera.hashgraph.sdk.proto.NftID.getDefaultInstance() : nftId_; } else { return nftIdBuilder_.getMessage(); } } /** *
     **
     * The id of this NFT.
     * 
* * .proto.NftID nft_id = 1; */ public Builder setNftId(com.hedera.hashgraph.sdk.proto.NftID value) { if (nftIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } nftId_ = value; } else { nftIdBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * The id of this NFT.
     * 
* * .proto.NftID nft_id = 1; */ public Builder setNftId( com.hedera.hashgraph.sdk.proto.NftID.Builder builderForValue) { if (nftIdBuilder_ == null) { nftId_ = builderForValue.build(); } else { nftIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * The id of this NFT.
     * 
* * .proto.NftID nft_id = 1; */ public Builder mergeNftId(com.hedera.hashgraph.sdk.proto.NftID value) { if (nftIdBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && nftId_ != null && nftId_ != com.hedera.hashgraph.sdk.proto.NftID.getDefaultInstance()) { getNftIdBuilder().mergeFrom(value); } else { nftId_ = value; } } else { nftIdBuilder_.mergeFrom(value); } if (nftId_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     **
     * The id of this NFT.
     * 
* * .proto.NftID nft_id = 1; */ public Builder clearNftId() { bitField0_ = (bitField0_ & ~0x00000001); nftId_ = null; if (nftIdBuilder_ != null) { nftIdBuilder_.dispose(); nftIdBuilder_ = null; } onChanged(); return this; } /** *
     **
     * The id of this NFT.
     * 
* * .proto.NftID nft_id = 1; */ public com.hedera.hashgraph.sdk.proto.NftID.Builder getNftIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getNftIdFieldBuilder().getBuilder(); } /** *
     **
     * The id of this NFT.
     * 
* * .proto.NftID nft_id = 1; */ public com.hedera.hashgraph.sdk.proto.NftIDOrBuilder getNftIdOrBuilder() { if (nftIdBuilder_ != null) { return nftIdBuilder_.getMessageOrBuilder(); } else { return nftId_ == null ? com.hedera.hashgraph.sdk.proto.NftID.getDefaultInstance() : nftId_; } } /** *
     **
     * The id of this NFT.
     * 
* * .proto.NftID nft_id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.NftID, com.hedera.hashgraph.sdk.proto.NftID.Builder, com.hedera.hashgraph.sdk.proto.NftIDOrBuilder> getNftIdFieldBuilder() { if (nftIdBuilder_ == null) { nftIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.NftID, com.hedera.hashgraph.sdk.proto.NftID.Builder, com.hedera.hashgraph.sdk.proto.NftIDOrBuilder>( getNftId(), getParentForChildren(), isClean()); nftId_ = null; } return nftIdBuilder_; } private com.hedera.hashgraph.sdk.proto.AccountID ownerId_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> ownerIdBuilder_; /** *
     **
     * The account or contract id that owns this NFT.
     *
     * If this number is zero in state, the NFT is owned by its token type's current treasury.
     * 
* * .proto.AccountID owner_id = 2; * @return Whether the ownerId field is set. */ public boolean hasOwnerId() { return ((bitField0_ & 0x00000002) != 0); } /** *
     **
     * The account or contract id that owns this NFT.
     *
     * If this number is zero in state, the NFT is owned by its token type's current treasury.
     * 
* * .proto.AccountID owner_id = 2; * @return The ownerId. */ public com.hedera.hashgraph.sdk.proto.AccountID getOwnerId() { if (ownerIdBuilder_ == null) { return ownerId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : ownerId_; } else { return ownerIdBuilder_.getMessage(); } } /** *
     **
     * The account or contract id that owns this NFT.
     *
     * If this number is zero in state, the NFT is owned by its token type's current treasury.
     * 
* * .proto.AccountID owner_id = 2; */ public Builder setOwnerId(com.hedera.hashgraph.sdk.proto.AccountID value) { if (ownerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ownerId_ = value; } else { ownerIdBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * The account or contract id that owns this NFT.
     *
     * If this number is zero in state, the NFT is owned by its token type's current treasury.
     * 
* * .proto.AccountID owner_id = 2; */ public Builder setOwnerId( com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) { if (ownerIdBuilder_ == null) { ownerId_ = builderForValue.build(); } else { ownerIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * The account or contract id that owns this NFT.
     *
     * If this number is zero in state, the NFT is owned by its token type's current treasury.
     * 
* * .proto.AccountID owner_id = 2; */ public Builder mergeOwnerId(com.hedera.hashgraph.sdk.proto.AccountID value) { if (ownerIdBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && ownerId_ != null && ownerId_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) { getOwnerIdBuilder().mergeFrom(value); } else { ownerId_ = value; } } else { ownerIdBuilder_.mergeFrom(value); } if (ownerId_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     **
     * The account or contract id that owns this NFT.
     *
     * If this number is zero in state, the NFT is owned by its token type's current treasury.
     * 
* * .proto.AccountID owner_id = 2; */ public Builder clearOwnerId() { bitField0_ = (bitField0_ & ~0x00000002); ownerId_ = null; if (ownerIdBuilder_ != null) { ownerIdBuilder_.dispose(); ownerIdBuilder_ = null; } onChanged(); return this; } /** *
     **
     * The account or contract id that owns this NFT.
     *
     * If this number is zero in state, the NFT is owned by its token type's current treasury.
     * 
* * .proto.AccountID owner_id = 2; */ public com.hedera.hashgraph.sdk.proto.AccountID.Builder getOwnerIdBuilder() { bitField0_ |= 0x00000002; onChanged(); return getOwnerIdFieldBuilder().getBuilder(); } /** *
     **
     * The account or contract id that owns this NFT.
     *
     * If this number is zero in state, the NFT is owned by its token type's current treasury.
     * 
* * .proto.AccountID owner_id = 2; */ public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getOwnerIdOrBuilder() { if (ownerIdBuilder_ != null) { return ownerIdBuilder_.getMessageOrBuilder(); } else { return ownerId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : ownerId_; } } /** *
     **
     * The account or contract id that owns this NFT.
     *
     * If this number is zero in state, the NFT is owned by its token type's current treasury.
     * 
* * .proto.AccountID owner_id = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> getOwnerIdFieldBuilder() { if (ownerIdBuilder_ == null) { ownerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>( getOwnerId(), getParentForChildren(), isClean()); ownerId_ = null; } return ownerIdBuilder_; } private com.hedera.hashgraph.sdk.proto.AccountID spenderId_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> spenderIdBuilder_; /** *
     **
     * The account or contract id approved to spend this NFT.
     *
     * If this number is zero, there is no approved spender.
     * 
* * .proto.AccountID spender_id = 3; * @return Whether the spenderId field is set. */ public boolean hasSpenderId() { return ((bitField0_ & 0x00000004) != 0); } /** *
     **
     * The account or contract id approved to spend this NFT.
     *
     * If this number is zero, there is no approved spender.
     * 
* * .proto.AccountID spender_id = 3; * @return The spenderId. */ public com.hedera.hashgraph.sdk.proto.AccountID getSpenderId() { if (spenderIdBuilder_ == null) { return spenderId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : spenderId_; } else { return spenderIdBuilder_.getMessage(); } } /** *
     **
     * The account or contract id approved to spend this NFT.
     *
     * If this number is zero, there is no approved spender.
     * 
* * .proto.AccountID spender_id = 3; */ public Builder setSpenderId(com.hedera.hashgraph.sdk.proto.AccountID value) { if (spenderIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } spenderId_ = value; } else { spenderIdBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     **
     * The account or contract id approved to spend this NFT.
     *
     * If this number is zero, there is no approved spender.
     * 
* * .proto.AccountID spender_id = 3; */ public Builder setSpenderId( com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) { if (spenderIdBuilder_ == null) { spenderId_ = builderForValue.build(); } else { spenderIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     **
     * The account or contract id approved to spend this NFT.
     *
     * If this number is zero, there is no approved spender.
     * 
* * .proto.AccountID spender_id = 3; */ public Builder mergeSpenderId(com.hedera.hashgraph.sdk.proto.AccountID value) { if (spenderIdBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && spenderId_ != null && spenderId_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) { getSpenderIdBuilder().mergeFrom(value); } else { spenderId_ = value; } } else { spenderIdBuilder_.mergeFrom(value); } if (spenderId_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
     **
     * The account or contract id approved to spend this NFT.
     *
     * If this number is zero, there is no approved spender.
     * 
* * .proto.AccountID spender_id = 3; */ public Builder clearSpenderId() { bitField0_ = (bitField0_ & ~0x00000004); spenderId_ = null; if (spenderIdBuilder_ != null) { spenderIdBuilder_.dispose(); spenderIdBuilder_ = null; } onChanged(); return this; } /** *
     **
     * The account or contract id approved to spend this NFT.
     *
     * If this number is zero, there is no approved spender.
     * 
* * .proto.AccountID spender_id = 3; */ public com.hedera.hashgraph.sdk.proto.AccountID.Builder getSpenderIdBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSpenderIdFieldBuilder().getBuilder(); } /** *
     **
     * The account or contract id approved to spend this NFT.
     *
     * If this number is zero, there is no approved spender.
     * 
* * .proto.AccountID spender_id = 3; */ public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getSpenderIdOrBuilder() { if (spenderIdBuilder_ != null) { return spenderIdBuilder_.getMessageOrBuilder(); } else { return spenderId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : spenderId_; } } /** *
     **
     * The account or contract id approved to spend this NFT.
     *
     * If this number is zero, there is no approved spender.
     * 
* * .proto.AccountID spender_id = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> getSpenderIdFieldBuilder() { if (spenderIdBuilder_ == null) { spenderIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>( getSpenderId(), getParentForChildren(), isClean()); spenderId_ = null; } return spenderIdBuilder_; } private com.hedera.hashgraph.sdk.proto.Timestamp mintTime_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder> mintTimeBuilder_; /** *
     **
     * The consensus time of the TokenMint that created this NFT.
     * 
* * .proto.Timestamp mint_time = 4; * @return Whether the mintTime field is set. */ public boolean hasMintTime() { return ((bitField0_ & 0x00000008) != 0); } /** *
     **
     * The consensus time of the TokenMint that created this NFT.
     * 
* * .proto.Timestamp mint_time = 4; * @return The mintTime. */ public com.hedera.hashgraph.sdk.proto.Timestamp getMintTime() { if (mintTimeBuilder_ == null) { return mintTime_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : mintTime_; } else { return mintTimeBuilder_.getMessage(); } } /** *
     **
     * The consensus time of the TokenMint that created this NFT.
     * 
* * .proto.Timestamp mint_time = 4; */ public Builder setMintTime(com.hedera.hashgraph.sdk.proto.Timestamp value) { if (mintTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } mintTime_ = value; } else { mintTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     **
     * The consensus time of the TokenMint that created this NFT.
     * 
* * .proto.Timestamp mint_time = 4; */ public Builder setMintTime( com.hedera.hashgraph.sdk.proto.Timestamp.Builder builderForValue) { if (mintTimeBuilder_ == null) { mintTime_ = builderForValue.build(); } else { mintTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     **
     * The consensus time of the TokenMint that created this NFT.
     * 
* * .proto.Timestamp mint_time = 4; */ public Builder mergeMintTime(com.hedera.hashgraph.sdk.proto.Timestamp value) { if (mintTimeBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && mintTime_ != null && mintTime_ != com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance()) { getMintTimeBuilder().mergeFrom(value); } else { mintTime_ = value; } } else { mintTimeBuilder_.mergeFrom(value); } if (mintTime_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
     **
     * The consensus time of the TokenMint that created this NFT.
     * 
* * .proto.Timestamp mint_time = 4; */ public Builder clearMintTime() { bitField0_ = (bitField0_ & ~0x00000008); mintTime_ = null; if (mintTimeBuilder_ != null) { mintTimeBuilder_.dispose(); mintTimeBuilder_ = null; } onChanged(); return this; } /** *
     **
     * The consensus time of the TokenMint that created this NFT.
     * 
* * .proto.Timestamp mint_time = 4; */ public com.hedera.hashgraph.sdk.proto.Timestamp.Builder getMintTimeBuilder() { bitField0_ |= 0x00000008; onChanged(); return getMintTimeFieldBuilder().getBuilder(); } /** *
     **
     * The consensus time of the TokenMint that created this NFT.
     * 
* * .proto.Timestamp mint_time = 4; */ public com.hedera.hashgraph.sdk.proto.TimestampOrBuilder getMintTimeOrBuilder() { if (mintTimeBuilder_ != null) { return mintTimeBuilder_.getMessageOrBuilder(); } else { return mintTime_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : mintTime_; } } /** *
     **
     * The consensus time of the TokenMint that created this NFT.
     * 
* * .proto.Timestamp mint_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder> getMintTimeFieldBuilder() { if (mintTimeBuilder_ == null) { mintTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder>( getMintTime(), getParentForChildren(), isClean()); mintTime_ = null; } return mintTimeBuilder_; } private com.google.protobuf.ByteString metadata_ = com.google.protobuf.ByteString.EMPTY; /** *
     **
     * The metadata of this NFT, up to 100 bytes; usually the UTF-8 encoding of a URI.
     * 
* * bytes metadata = 5; * @return The metadata. */ @java.lang.Override public com.google.protobuf.ByteString getMetadata() { return metadata_; } /** *
     **
     * The metadata of this NFT, up to 100 bytes; usually the UTF-8 encoding of a URI.
     * 
* * bytes metadata = 5; * @param value The metadata to set. * @return This builder for chaining. */ public Builder setMetadata(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } metadata_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     **
     * The metadata of this NFT, up to 100 bytes; usually the UTF-8 encoding of a URI.
     * 
* * bytes metadata = 5; * @return This builder for chaining. */ public Builder clearMetadata() { bitField0_ = (bitField0_ & ~0x00000010); metadata_ = getDefaultInstance().getMetadata(); onChanged(); return this; } private com.hedera.hashgraph.sdk.proto.NftID ownerPreviousNftId_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.NftID, com.hedera.hashgraph.sdk.proto.NftID.Builder, com.hedera.hashgraph.sdk.proto.NftIDOrBuilder> ownerPreviousNftIdBuilder_; /** *
     **
     * If the owner of this NFT is not its token treasury, the id of the previous NFT 
     * in the owner's "doubly-linked list" of owned NFTs (if any).
     * 
* * .proto.NftID owner_previous_nft_id = 6; * @return Whether the ownerPreviousNftId field is set. */ public boolean hasOwnerPreviousNftId() { return ((bitField0_ & 0x00000020) != 0); } /** *
     **
     * If the owner of this NFT is not its token treasury, the id of the previous NFT 
     * in the owner's "doubly-linked list" of owned NFTs (if any).
     * 
* * .proto.NftID owner_previous_nft_id = 6; * @return The ownerPreviousNftId. */ public com.hedera.hashgraph.sdk.proto.NftID getOwnerPreviousNftId() { if (ownerPreviousNftIdBuilder_ == null) { return ownerPreviousNftId_ == null ? com.hedera.hashgraph.sdk.proto.NftID.getDefaultInstance() : ownerPreviousNftId_; } else { return ownerPreviousNftIdBuilder_.getMessage(); } } /** *
     **
     * If the owner of this NFT is not its token treasury, the id of the previous NFT 
     * in the owner's "doubly-linked list" of owned NFTs (if any).
     * 
* * .proto.NftID owner_previous_nft_id = 6; */ public Builder setOwnerPreviousNftId(com.hedera.hashgraph.sdk.proto.NftID value) { if (ownerPreviousNftIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ownerPreviousNftId_ = value; } else { ownerPreviousNftIdBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     **
     * If the owner of this NFT is not its token treasury, the id of the previous NFT 
     * in the owner's "doubly-linked list" of owned NFTs (if any).
     * 
* * .proto.NftID owner_previous_nft_id = 6; */ public Builder setOwnerPreviousNftId( com.hedera.hashgraph.sdk.proto.NftID.Builder builderForValue) { if (ownerPreviousNftIdBuilder_ == null) { ownerPreviousNftId_ = builderForValue.build(); } else { ownerPreviousNftIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     **
     * If the owner of this NFT is not its token treasury, the id of the previous NFT 
     * in the owner's "doubly-linked list" of owned NFTs (if any).
     * 
* * .proto.NftID owner_previous_nft_id = 6; */ public Builder mergeOwnerPreviousNftId(com.hedera.hashgraph.sdk.proto.NftID value) { if (ownerPreviousNftIdBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && ownerPreviousNftId_ != null && ownerPreviousNftId_ != com.hedera.hashgraph.sdk.proto.NftID.getDefaultInstance()) { getOwnerPreviousNftIdBuilder().mergeFrom(value); } else { ownerPreviousNftId_ = value; } } else { ownerPreviousNftIdBuilder_.mergeFrom(value); } if (ownerPreviousNftId_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** *
     **
     * If the owner of this NFT is not its token treasury, the id of the previous NFT 
     * in the owner's "doubly-linked list" of owned NFTs (if any).
     * 
* * .proto.NftID owner_previous_nft_id = 6; */ public Builder clearOwnerPreviousNftId() { bitField0_ = (bitField0_ & ~0x00000020); ownerPreviousNftId_ = null; if (ownerPreviousNftIdBuilder_ != null) { ownerPreviousNftIdBuilder_.dispose(); ownerPreviousNftIdBuilder_ = null; } onChanged(); return this; } /** *
     **
     * If the owner of this NFT is not its token treasury, the id of the previous NFT 
     * in the owner's "doubly-linked list" of owned NFTs (if any).
     * 
* * .proto.NftID owner_previous_nft_id = 6; */ public com.hedera.hashgraph.sdk.proto.NftID.Builder getOwnerPreviousNftIdBuilder() { bitField0_ |= 0x00000020; onChanged(); return getOwnerPreviousNftIdFieldBuilder().getBuilder(); } /** *
     **
     * If the owner of this NFT is not its token treasury, the id of the previous NFT 
     * in the owner's "doubly-linked list" of owned NFTs (if any).
     * 
* * .proto.NftID owner_previous_nft_id = 6; */ public com.hedera.hashgraph.sdk.proto.NftIDOrBuilder getOwnerPreviousNftIdOrBuilder() { if (ownerPreviousNftIdBuilder_ != null) { return ownerPreviousNftIdBuilder_.getMessageOrBuilder(); } else { return ownerPreviousNftId_ == null ? com.hedera.hashgraph.sdk.proto.NftID.getDefaultInstance() : ownerPreviousNftId_; } } /** *
     **
     * If the owner of this NFT is not its token treasury, the id of the previous NFT 
     * in the owner's "doubly-linked list" of owned NFTs (if any).
     * 
* * .proto.NftID owner_previous_nft_id = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.NftID, com.hedera.hashgraph.sdk.proto.NftID.Builder, com.hedera.hashgraph.sdk.proto.NftIDOrBuilder> getOwnerPreviousNftIdFieldBuilder() { if (ownerPreviousNftIdBuilder_ == null) { ownerPreviousNftIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.NftID, com.hedera.hashgraph.sdk.proto.NftID.Builder, com.hedera.hashgraph.sdk.proto.NftIDOrBuilder>( getOwnerPreviousNftId(), getParentForChildren(), isClean()); ownerPreviousNftId_ = null; } return ownerPreviousNftIdBuilder_; } private com.hedera.hashgraph.sdk.proto.NftID ownerNextNftId_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.NftID, com.hedera.hashgraph.sdk.proto.NftID.Builder, com.hedera.hashgraph.sdk.proto.NftIDOrBuilder> ownerNextNftIdBuilder_; /** *
     **
     * If the owner of this NFT is not its token treasury, the id of the next NFT in 
     * the owner's "doubly-linked list" of owned NFTs (if any).
     * 
* * .proto.NftID owner_next_nft_id = 7; * @return Whether the ownerNextNftId field is set. */ public boolean hasOwnerNextNftId() { return ((bitField0_ & 0x00000040) != 0); } /** *
     **
     * If the owner of this NFT is not its token treasury, the id of the next NFT in 
     * the owner's "doubly-linked list" of owned NFTs (if any).
     * 
* * .proto.NftID owner_next_nft_id = 7; * @return The ownerNextNftId. */ public com.hedera.hashgraph.sdk.proto.NftID getOwnerNextNftId() { if (ownerNextNftIdBuilder_ == null) { return ownerNextNftId_ == null ? com.hedera.hashgraph.sdk.proto.NftID.getDefaultInstance() : ownerNextNftId_; } else { return ownerNextNftIdBuilder_.getMessage(); } } /** *
     **
     * If the owner of this NFT is not its token treasury, the id of the next NFT in 
     * the owner's "doubly-linked list" of owned NFTs (if any).
     * 
* * .proto.NftID owner_next_nft_id = 7; */ public Builder setOwnerNextNftId(com.hedera.hashgraph.sdk.proto.NftID value) { if (ownerNextNftIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ownerNextNftId_ = value; } else { ownerNextNftIdBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     **
     * If the owner of this NFT is not its token treasury, the id of the next NFT in 
     * the owner's "doubly-linked list" of owned NFTs (if any).
     * 
* * .proto.NftID owner_next_nft_id = 7; */ public Builder setOwnerNextNftId( com.hedera.hashgraph.sdk.proto.NftID.Builder builderForValue) { if (ownerNextNftIdBuilder_ == null) { ownerNextNftId_ = builderForValue.build(); } else { ownerNextNftIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     **
     * If the owner of this NFT is not its token treasury, the id of the next NFT in 
     * the owner's "doubly-linked list" of owned NFTs (if any).
     * 
* * .proto.NftID owner_next_nft_id = 7; */ public Builder mergeOwnerNextNftId(com.hedera.hashgraph.sdk.proto.NftID value) { if (ownerNextNftIdBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && ownerNextNftId_ != null && ownerNextNftId_ != com.hedera.hashgraph.sdk.proto.NftID.getDefaultInstance()) { getOwnerNextNftIdBuilder().mergeFrom(value); } else { ownerNextNftId_ = value; } } else { ownerNextNftIdBuilder_.mergeFrom(value); } if (ownerNextNftId_ != null) { bitField0_ |= 0x00000040; onChanged(); } return this; } /** *
     **
     * If the owner of this NFT is not its token treasury, the id of the next NFT in 
     * the owner's "doubly-linked list" of owned NFTs (if any).
     * 
* * .proto.NftID owner_next_nft_id = 7; */ public Builder clearOwnerNextNftId() { bitField0_ = (bitField0_ & ~0x00000040); ownerNextNftId_ = null; if (ownerNextNftIdBuilder_ != null) { ownerNextNftIdBuilder_.dispose(); ownerNextNftIdBuilder_ = null; } onChanged(); return this; } /** *
     **
     * If the owner of this NFT is not its token treasury, the id of the next NFT in 
     * the owner's "doubly-linked list" of owned NFTs (if any).
     * 
* * .proto.NftID owner_next_nft_id = 7; */ public com.hedera.hashgraph.sdk.proto.NftID.Builder getOwnerNextNftIdBuilder() { bitField0_ |= 0x00000040; onChanged(); return getOwnerNextNftIdFieldBuilder().getBuilder(); } /** *
     **
     * If the owner of this NFT is not its token treasury, the id of the next NFT in 
     * the owner's "doubly-linked list" of owned NFTs (if any).
     * 
* * .proto.NftID owner_next_nft_id = 7; */ public com.hedera.hashgraph.sdk.proto.NftIDOrBuilder getOwnerNextNftIdOrBuilder() { if (ownerNextNftIdBuilder_ != null) { return ownerNextNftIdBuilder_.getMessageOrBuilder(); } else { return ownerNextNftId_ == null ? com.hedera.hashgraph.sdk.proto.NftID.getDefaultInstance() : ownerNextNftId_; } } /** *
     **
     * If the owner of this NFT is not its token treasury, the id of the next NFT in 
     * the owner's "doubly-linked list" of owned NFTs (if any).
     * 
* * .proto.NftID owner_next_nft_id = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.NftID, com.hedera.hashgraph.sdk.proto.NftID.Builder, com.hedera.hashgraph.sdk.proto.NftIDOrBuilder> getOwnerNextNftIdFieldBuilder() { if (ownerNextNftIdBuilder_ == null) { ownerNextNftIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.NftID, com.hedera.hashgraph.sdk.proto.NftID.Builder, com.hedera.hashgraph.sdk.proto.NftIDOrBuilder>( getOwnerNextNftId(), getParentForChildren(), isClean()); ownerNextNftId_ = null; } return ownerNextNftIdBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto.Nft) } // @@protoc_insertion_point(class_scope:proto.Nft) private static final com.hedera.hashgraph.sdk.proto.Nft DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.Nft(); } public static com.hedera.hashgraph.sdk.proto.Nft getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Nft parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.Nft getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy