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;
}
}