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

com.hederahashgraph.api.proto.java.Nft Maven / Gradle / Ivy

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

package com.hederahashgraph.api.proto.java;

/**
 * 
 **
 * 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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Nft( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.hederahashgraph.api.proto.java.NftID.Builder subBuilder = null; if (nftId_ != null) { subBuilder = nftId_.toBuilder(); } nftId_ = input.readMessage(com.hederahashgraph.api.proto.java.NftID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(nftId_); nftId_ = subBuilder.buildPartial(); } break; } case 18: { com.hederahashgraph.api.proto.java.AccountID.Builder subBuilder = null; if (ownerId_ != null) { subBuilder = ownerId_.toBuilder(); } ownerId_ = input.readMessage(com.hederahashgraph.api.proto.java.AccountID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(ownerId_); ownerId_ = subBuilder.buildPartial(); } break; } case 26: { com.hederahashgraph.api.proto.java.AccountID.Builder subBuilder = null; if (spenderId_ != null) { subBuilder = spenderId_.toBuilder(); } spenderId_ = input.readMessage(com.hederahashgraph.api.proto.java.AccountID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(spenderId_); spenderId_ = subBuilder.buildPartial(); } break; } case 34: { com.hederahashgraph.api.proto.java.Timestamp.Builder subBuilder = null; if (mintTime_ != null) { subBuilder = mintTime_.toBuilder(); } mintTime_ = input.readMessage(com.hederahashgraph.api.proto.java.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(mintTime_); mintTime_ = subBuilder.buildPartial(); } break; } case 42: { metadata_ = input.readBytes(); break; } case 50: { com.hederahashgraph.api.proto.java.NftID.Builder subBuilder = null; if (ownerPreviousNftId_ != null) { subBuilder = ownerPreviousNftId_.toBuilder(); } ownerPreviousNftId_ = input.readMessage(com.hederahashgraph.api.proto.java.NftID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(ownerPreviousNftId_); ownerPreviousNftId_ = subBuilder.buildPartial(); } break; } case 58: { com.hederahashgraph.api.proto.java.NftID.Builder subBuilder = null; if (ownerNextNftId_ != null) { subBuilder = ownerNextNftId_.toBuilder(); } ownerNextNftId_ = input.readMessage(com.hederahashgraph.api.proto.java.NftID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(ownerNextNftId_); ownerNextNftId_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hederahashgraph.api.proto.java.NftOuterClass.internal_static_proto_Nft_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.NftOuterClass.internal_static_proto_Nft_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.Nft.class, com.hederahashgraph.api.proto.java.Nft.Builder.class); } public static final int NFT_ID_FIELD_NUMBER = 1; private com.hederahashgraph.api.proto.java.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 nftId_ != null; } /** *
   **
   * The id of this NFT.
   * 
* * .proto.NftID nft_id = 1; * @return The nftId. */ @java.lang.Override public com.hederahashgraph.api.proto.java.NftID getNftId() { return nftId_ == null ? com.hederahashgraph.api.proto.java.NftID.getDefaultInstance() : nftId_; } /** *
   **
   * The id of this NFT.
   * 
* * .proto.NftID nft_id = 1; */ @java.lang.Override public com.hederahashgraph.api.proto.java.NftIDOrBuilder getNftIdOrBuilder() { return getNftId(); } public static final int OWNER_ID_FIELD_NUMBER = 2; private com.hederahashgraph.api.proto.java.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 ownerId_ != null; } /** *
   **
   * 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.hederahashgraph.api.proto.java.AccountID getOwnerId() { return ownerId_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountIDOrBuilder getOwnerIdOrBuilder() { return getOwnerId(); } public static final int SPENDER_ID_FIELD_NUMBER = 3; private com.hederahashgraph.api.proto.java.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 spenderId_ != null; } /** *
   **
   * 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.hederahashgraph.api.proto.java.AccountID getSpenderId() { return spenderId_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountIDOrBuilder getSpenderIdOrBuilder() { return getSpenderId(); } public static final int MINT_TIME_FIELD_NUMBER = 4; private com.hederahashgraph.api.proto.java.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 mintTime_ != null; } /** *
   **
   * The consensus time of the TokenMint that created this NFT.
   * 
* * .proto.Timestamp mint_time = 4; * @return The mintTime. */ @java.lang.Override public com.hederahashgraph.api.proto.java.Timestamp getMintTime() { return mintTime_ == null ? com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : mintTime_; } /** *
   **
   * The consensus time of the TokenMint that created this NFT.
   * 
* * .proto.Timestamp mint_time = 4; */ @java.lang.Override public com.hederahashgraph.api.proto.java.TimestampOrBuilder getMintTimeOrBuilder() { return getMintTime(); } public static final int METADATA_FIELD_NUMBER = 5; private com.google.protobuf.ByteString metadata_; /** *
   **
   * 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.hederahashgraph.api.proto.java.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 ownerPreviousNftId_ != null; } /** *
   **
   * 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.hederahashgraph.api.proto.java.NftID getOwnerPreviousNftId() { return ownerPreviousNftId_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.NftIDOrBuilder getOwnerPreviousNftIdOrBuilder() { return getOwnerPreviousNftId(); } public static final int OWNER_NEXT_NFT_ID_FIELD_NUMBER = 7; private com.hederahashgraph.api.proto.java.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 ownerNextNftId_ != null; } /** *
   **
   * 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.hederahashgraph.api.proto.java.NftID getOwnerNextNftId() { return ownerNextNftId_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.NftIDOrBuilder getOwnerNextNftIdOrBuilder() { return getOwnerNextNftId(); } 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 (nftId_ != null) { output.writeMessage(1, getNftId()); } if (ownerId_ != null) { output.writeMessage(2, getOwnerId()); } if (spenderId_ != null) { output.writeMessage(3, getSpenderId()); } if (mintTime_ != null) { output.writeMessage(4, getMintTime()); } if (!metadata_.isEmpty()) { output.writeBytes(5, metadata_); } if (ownerPreviousNftId_ != null) { output.writeMessage(6, getOwnerPreviousNftId()); } if (ownerNextNftId_ != null) { output.writeMessage(7, getOwnerNextNftId()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (nftId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getNftId()); } if (ownerId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getOwnerId()); } if (spenderId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getSpenderId()); } if (mintTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getMintTime()); } if (!metadata_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, metadata_); } if (ownerPreviousNftId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getOwnerPreviousNftId()); } if (ownerNextNftId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getOwnerNextNftId()); } size += unknownFields.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.hederahashgraph.api.proto.java.Nft)) { return super.equals(obj); } com.hederahashgraph.api.proto.java.Nft other = (com.hederahashgraph.api.proto.java.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.hederahashgraph.api.proto.java.Nft parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.Nft parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hederahashgraph.api.proto.java.Nft parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.Nft parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.Nft parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hederahashgraph.api.proto.java.Nft parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.Nft parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.Nft parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.NftOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hederahashgraph.api.proto.java.NftOuterClass.internal_static_proto_Nft_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.NftOuterClass.internal_static_proto_Nft_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.Nft.class, com.hederahashgraph.api.proto.java.Nft.Builder.class); } // Construct using com.hederahashgraph.api.proto.java.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) { } } @java.lang.Override public Builder clear() { super.clear(); if (nftIdBuilder_ == null) { nftId_ = null; } else { nftId_ = null; nftIdBuilder_ = null; } if (ownerIdBuilder_ == null) { ownerId_ = null; } else { ownerId_ = null; ownerIdBuilder_ = null; } if (spenderIdBuilder_ == null) { spenderId_ = null; } else { spenderId_ = null; spenderIdBuilder_ = null; } if (mintTimeBuilder_ == null) { mintTime_ = null; } else { mintTime_ = null; mintTimeBuilder_ = null; } metadata_ = com.google.protobuf.ByteString.EMPTY; if (ownerPreviousNftIdBuilder_ == null) { ownerPreviousNftId_ = null; } else { ownerPreviousNftId_ = null; ownerPreviousNftIdBuilder_ = null; } if (ownerNextNftIdBuilder_ == null) { ownerNextNftId_ = null; } else { ownerNextNftId_ = null; ownerNextNftIdBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hederahashgraph.api.proto.java.NftOuterClass.internal_static_proto_Nft_descriptor; } @java.lang.Override public com.hederahashgraph.api.proto.java.Nft getDefaultInstanceForType() { return com.hederahashgraph.api.proto.java.Nft.getDefaultInstance(); } @java.lang.Override public com.hederahashgraph.api.proto.java.Nft build() { com.hederahashgraph.api.proto.java.Nft result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hederahashgraph.api.proto.java.Nft buildPartial() { com.hederahashgraph.api.proto.java.Nft result = new com.hederahashgraph.api.proto.java.Nft(this); if (nftIdBuilder_ == null) { result.nftId_ = nftId_; } else { result.nftId_ = nftIdBuilder_.build(); } if (ownerIdBuilder_ == null) { result.ownerId_ = ownerId_; } else { result.ownerId_ = ownerIdBuilder_.build(); } if (spenderIdBuilder_ == null) { result.spenderId_ = spenderId_; } else { result.spenderId_ = spenderIdBuilder_.build(); } if (mintTimeBuilder_ == null) { result.mintTime_ = mintTime_; } else { result.mintTime_ = mintTimeBuilder_.build(); } result.metadata_ = metadata_; if (ownerPreviousNftIdBuilder_ == null) { result.ownerPreviousNftId_ = ownerPreviousNftId_; } else { result.ownerPreviousNftId_ = ownerPreviousNftIdBuilder_.build(); } if (ownerNextNftIdBuilder_ == null) { result.ownerNextNftId_ = ownerNextNftId_; } else { result.ownerNextNftId_ = ownerNextNftIdBuilder_.build(); } onBuilt(); return result; } @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.hederahashgraph.api.proto.java.Nft) { return mergeFrom((com.hederahashgraph.api.proto.java.Nft)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hederahashgraph.api.proto.java.Nft other) { if (other == com.hederahashgraph.api.proto.java.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.unknownFields); 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 { com.hederahashgraph.api.proto.java.Nft parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.hederahashgraph.api.proto.java.Nft) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.hederahashgraph.api.proto.java.NftID nftId_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.NftID, com.hederahashgraph.api.proto.java.NftID.Builder, com.hederahashgraph.api.proto.java.NftIDOrBuilder> nftIdBuilder_; /** *
     **
     * The id of this NFT.
     * 
* * .proto.NftID nft_id = 1; * @return Whether the nftId field is set. */ public boolean hasNftId() { return nftIdBuilder_ != null || nftId_ != null; } /** *
     **
     * The id of this NFT.
     * 
* * .proto.NftID nft_id = 1; * @return The nftId. */ public com.hederahashgraph.api.proto.java.NftID getNftId() { if (nftIdBuilder_ == null) { return nftId_ == null ? com.hederahashgraph.api.proto.java.NftID.getDefaultInstance() : nftId_; } else { return nftIdBuilder_.getMessage(); } } /** *
     **
     * The id of this NFT.
     * 
* * .proto.NftID nft_id = 1; */ public Builder setNftId(com.hederahashgraph.api.proto.java.NftID value) { if (nftIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } nftId_ = value; onChanged(); } else { nftIdBuilder_.setMessage(value); } return this; } /** *
     **
     * The id of this NFT.
     * 
* * .proto.NftID nft_id = 1; */ public Builder setNftId( com.hederahashgraph.api.proto.java.NftID.Builder builderForValue) { if (nftIdBuilder_ == null) { nftId_ = builderForValue.build(); onChanged(); } else { nftIdBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     **
     * The id of this NFT.
     * 
* * .proto.NftID nft_id = 1; */ public Builder mergeNftId(com.hederahashgraph.api.proto.java.NftID value) { if (nftIdBuilder_ == null) { if (nftId_ != null) { nftId_ = com.hederahashgraph.api.proto.java.NftID.newBuilder(nftId_).mergeFrom(value).buildPartial(); } else { nftId_ = value; } onChanged(); } else { nftIdBuilder_.mergeFrom(value); } return this; } /** *
     **
     * The id of this NFT.
     * 
* * .proto.NftID nft_id = 1; */ public Builder clearNftId() { if (nftIdBuilder_ == null) { nftId_ = null; onChanged(); } else { nftId_ = null; nftIdBuilder_ = null; } return this; } /** *
     **
     * The id of this NFT.
     * 
* * .proto.NftID nft_id = 1; */ public com.hederahashgraph.api.proto.java.NftID.Builder getNftIdBuilder() { onChanged(); return getNftIdFieldBuilder().getBuilder(); } /** *
     **
     * The id of this NFT.
     * 
* * .proto.NftID nft_id = 1; */ public com.hederahashgraph.api.proto.java.NftIDOrBuilder getNftIdOrBuilder() { if (nftIdBuilder_ != null) { return nftIdBuilder_.getMessageOrBuilder(); } else { return nftId_ == null ? com.hederahashgraph.api.proto.java.NftID.getDefaultInstance() : nftId_; } } /** *
     **
     * The id of this NFT.
     * 
* * .proto.NftID nft_id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.NftID, com.hederahashgraph.api.proto.java.NftID.Builder, com.hederahashgraph.api.proto.java.NftIDOrBuilder> getNftIdFieldBuilder() { if (nftIdBuilder_ == null) { nftIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.NftID, com.hederahashgraph.api.proto.java.NftID.Builder, com.hederahashgraph.api.proto.java.NftIDOrBuilder>( getNftId(), getParentForChildren(), isClean()); nftId_ = null; } return nftIdBuilder_; } private com.hederahashgraph.api.proto.java.AccountID ownerId_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.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 ownerIdBuilder_ != null || ownerId_ != null; } /** *
     **
     * 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.hederahashgraph.api.proto.java.AccountID getOwnerId() { if (ownerIdBuilder_ == null) { return ownerId_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountID value) { if (ownerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ownerId_ = value; onChanged(); } else { ownerIdBuilder_.setMessage(value); } 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.hederahashgraph.api.proto.java.AccountID.Builder builderForValue) { if (ownerIdBuilder_ == null) { ownerId_ = builderForValue.build(); onChanged(); } else { ownerIdBuilder_.setMessage(builderForValue.build()); } 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.hederahashgraph.api.proto.java.AccountID value) { if (ownerIdBuilder_ == null) { if (ownerId_ != null) { ownerId_ = com.hederahashgraph.api.proto.java.AccountID.newBuilder(ownerId_).mergeFrom(value).buildPartial(); } else { ownerId_ = value; } onChanged(); } else { ownerIdBuilder_.mergeFrom(value); } 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() { if (ownerIdBuilder_ == null) { ownerId_ = null; onChanged(); } else { ownerId_ = null; ownerIdBuilder_ = null; } 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.hederahashgraph.api.proto.java.AccountID.Builder getOwnerIdBuilder() { 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.hederahashgraph.api.proto.java.AccountIDOrBuilder getOwnerIdOrBuilder() { if (ownerIdBuilder_ != null) { return ownerIdBuilder_.getMessageOrBuilder(); } else { return ownerId_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder> getOwnerIdFieldBuilder() { if (ownerIdBuilder_ == null) { ownerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>( getOwnerId(), getParentForChildren(), isClean()); ownerId_ = null; } return ownerIdBuilder_; } private com.hederahashgraph.api.proto.java.AccountID spenderId_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.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 spenderIdBuilder_ != null || spenderId_ != null; } /** *
     **
     * 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.hederahashgraph.api.proto.java.AccountID getSpenderId() { if (spenderIdBuilder_ == null) { return spenderId_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountID value) { if (spenderIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } spenderId_ = value; onChanged(); } else { spenderIdBuilder_.setMessage(value); } 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.hederahashgraph.api.proto.java.AccountID.Builder builderForValue) { if (spenderIdBuilder_ == null) { spenderId_ = builderForValue.build(); onChanged(); } else { spenderIdBuilder_.setMessage(builderForValue.build()); } 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.hederahashgraph.api.proto.java.AccountID value) { if (spenderIdBuilder_ == null) { if (spenderId_ != null) { spenderId_ = com.hederahashgraph.api.proto.java.AccountID.newBuilder(spenderId_).mergeFrom(value).buildPartial(); } else { spenderId_ = value; } onChanged(); } else { spenderIdBuilder_.mergeFrom(value); } 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() { if (spenderIdBuilder_ == null) { spenderId_ = null; onChanged(); } else { spenderId_ = null; spenderIdBuilder_ = null; } 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.hederahashgraph.api.proto.java.AccountID.Builder getSpenderIdBuilder() { 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.hederahashgraph.api.proto.java.AccountIDOrBuilder getSpenderIdOrBuilder() { if (spenderIdBuilder_ != null) { return spenderIdBuilder_.getMessageOrBuilder(); } else { return spenderId_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder> getSpenderIdFieldBuilder() { if (spenderIdBuilder_ == null) { spenderIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>( getSpenderId(), getParentForChildren(), isClean()); spenderId_ = null; } return spenderIdBuilder_; } private com.hederahashgraph.api.proto.java.Timestamp mintTime_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.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 mintTimeBuilder_ != null || mintTime_ != null; } /** *
     **
     * The consensus time of the TokenMint that created this NFT.
     * 
* * .proto.Timestamp mint_time = 4; * @return The mintTime. */ public com.hederahashgraph.api.proto.java.Timestamp getMintTime() { if (mintTimeBuilder_ == null) { return mintTime_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.Timestamp value) { if (mintTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } mintTime_ = value; onChanged(); } else { mintTimeBuilder_.setMessage(value); } return this; } /** *
     **
     * The consensus time of the TokenMint that created this NFT.
     * 
* * .proto.Timestamp mint_time = 4; */ public Builder setMintTime( com.hederahashgraph.api.proto.java.Timestamp.Builder builderForValue) { if (mintTimeBuilder_ == null) { mintTime_ = builderForValue.build(); onChanged(); } else { mintTimeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     **
     * The consensus time of the TokenMint that created this NFT.
     * 
* * .proto.Timestamp mint_time = 4; */ public Builder mergeMintTime(com.hederahashgraph.api.proto.java.Timestamp value) { if (mintTimeBuilder_ == null) { if (mintTime_ != null) { mintTime_ = com.hederahashgraph.api.proto.java.Timestamp.newBuilder(mintTime_).mergeFrom(value).buildPartial(); } else { mintTime_ = value; } onChanged(); } else { mintTimeBuilder_.mergeFrom(value); } return this; } /** *
     **
     * The consensus time of the TokenMint that created this NFT.
     * 
* * .proto.Timestamp mint_time = 4; */ public Builder clearMintTime() { if (mintTimeBuilder_ == null) { mintTime_ = null; onChanged(); } else { mintTime_ = null; mintTimeBuilder_ = null; } return this; } /** *
     **
     * The consensus time of the TokenMint that created this NFT.
     * 
* * .proto.Timestamp mint_time = 4; */ public com.hederahashgraph.api.proto.java.Timestamp.Builder getMintTimeBuilder() { onChanged(); return getMintTimeFieldBuilder().getBuilder(); } /** *
     **
     * The consensus time of the TokenMint that created this NFT.
     * 
* * .proto.Timestamp mint_time = 4; */ public com.hederahashgraph.api.proto.java.TimestampOrBuilder getMintTimeOrBuilder() { if (mintTimeBuilder_ != null) { return mintTimeBuilder_.getMessageOrBuilder(); } else { return mintTime_ == null ? com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : mintTime_; } } /** *
     **
     * The consensus time of the TokenMint that created this NFT.
     * 
* * .proto.Timestamp mint_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder> getMintTimeFieldBuilder() { if (mintTimeBuilder_ == null) { mintTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.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; 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() { metadata_ = getDefaultInstance().getMetadata(); onChanged(); return this; } private com.hederahashgraph.api.proto.java.NftID ownerPreviousNftId_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.NftID, com.hederahashgraph.api.proto.java.NftID.Builder, com.hederahashgraph.api.proto.java.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 ownerPreviousNftIdBuilder_ != null || ownerPreviousNftId_ != null; } /** *
     **
     * 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.hederahashgraph.api.proto.java.NftID getOwnerPreviousNftId() { if (ownerPreviousNftIdBuilder_ == null) { return ownerPreviousNftId_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.NftID value) { if (ownerPreviousNftIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ownerPreviousNftId_ = value; onChanged(); } else { ownerPreviousNftIdBuilder_.setMessage(value); } 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.hederahashgraph.api.proto.java.NftID.Builder builderForValue) { if (ownerPreviousNftIdBuilder_ == null) { ownerPreviousNftId_ = builderForValue.build(); onChanged(); } else { ownerPreviousNftIdBuilder_.setMessage(builderForValue.build()); } 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.hederahashgraph.api.proto.java.NftID value) { if (ownerPreviousNftIdBuilder_ == null) { if (ownerPreviousNftId_ != null) { ownerPreviousNftId_ = com.hederahashgraph.api.proto.java.NftID.newBuilder(ownerPreviousNftId_).mergeFrom(value).buildPartial(); } else { ownerPreviousNftId_ = value; } onChanged(); } else { ownerPreviousNftIdBuilder_.mergeFrom(value); } 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() { if (ownerPreviousNftIdBuilder_ == null) { ownerPreviousNftId_ = null; onChanged(); } else { ownerPreviousNftId_ = null; ownerPreviousNftIdBuilder_ = null; } 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.hederahashgraph.api.proto.java.NftID.Builder getOwnerPreviousNftIdBuilder() { 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.hederahashgraph.api.proto.java.NftIDOrBuilder getOwnerPreviousNftIdOrBuilder() { if (ownerPreviousNftIdBuilder_ != null) { return ownerPreviousNftIdBuilder_.getMessageOrBuilder(); } else { return ownerPreviousNftId_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.NftID, com.hederahashgraph.api.proto.java.NftID.Builder, com.hederahashgraph.api.proto.java.NftIDOrBuilder> getOwnerPreviousNftIdFieldBuilder() { if (ownerPreviousNftIdBuilder_ == null) { ownerPreviousNftIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.NftID, com.hederahashgraph.api.proto.java.NftID.Builder, com.hederahashgraph.api.proto.java.NftIDOrBuilder>( getOwnerPreviousNftId(), getParentForChildren(), isClean()); ownerPreviousNftId_ = null; } return ownerPreviousNftIdBuilder_; } private com.hederahashgraph.api.proto.java.NftID ownerNextNftId_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.NftID, com.hederahashgraph.api.proto.java.NftID.Builder, com.hederahashgraph.api.proto.java.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 ownerNextNftIdBuilder_ != null || ownerNextNftId_ != null; } /** *
     **
     * 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.hederahashgraph.api.proto.java.NftID getOwnerNextNftId() { if (ownerNextNftIdBuilder_ == null) { return ownerNextNftId_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.NftID value) { if (ownerNextNftIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ownerNextNftId_ = value; onChanged(); } else { ownerNextNftIdBuilder_.setMessage(value); } 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.hederahashgraph.api.proto.java.NftID.Builder builderForValue) { if (ownerNextNftIdBuilder_ == null) { ownerNextNftId_ = builderForValue.build(); onChanged(); } else { ownerNextNftIdBuilder_.setMessage(builderForValue.build()); } 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.hederahashgraph.api.proto.java.NftID value) { if (ownerNextNftIdBuilder_ == null) { if (ownerNextNftId_ != null) { ownerNextNftId_ = com.hederahashgraph.api.proto.java.NftID.newBuilder(ownerNextNftId_).mergeFrom(value).buildPartial(); } else { ownerNextNftId_ = value; } onChanged(); } else { ownerNextNftIdBuilder_.mergeFrom(value); } 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() { if (ownerNextNftIdBuilder_ == null) { ownerNextNftId_ = null; onChanged(); } else { ownerNextNftId_ = null; ownerNextNftIdBuilder_ = null; } 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.hederahashgraph.api.proto.java.NftID.Builder getOwnerNextNftIdBuilder() { 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.hederahashgraph.api.proto.java.NftIDOrBuilder getOwnerNextNftIdOrBuilder() { if (ownerNextNftIdBuilder_ != null) { return ownerNextNftIdBuilder_.getMessageOrBuilder(); } else { return ownerNextNftId_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.NftID, com.hederahashgraph.api.proto.java.NftID.Builder, com.hederahashgraph.api.proto.java.NftIDOrBuilder> getOwnerNextNftIdFieldBuilder() { if (ownerNextNftIdBuilder_ == null) { ownerNextNftIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.NftID, com.hederahashgraph.api.proto.java.NftID.Builder, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.Nft DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.Nft(); } public static com.hederahashgraph.api.proto.java.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 { return new Nft(input, extensionRegistry); } }; 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.hederahashgraph.api.proto.java.Nft getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy