Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.hederahashgraph.api.proto.java.TokenNftInfo Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: token_get_nft_info.proto
package com.hederahashgraph.api.proto.java;
/**
*
**
* UNDOCUMENTED
*
*
* Protobuf type {@code proto.TokenNftInfo}
*/
public final class TokenNftInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.TokenNftInfo)
TokenNftInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use TokenNftInfo.newBuilder() to construct.
private TokenNftInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TokenNftInfo() {
metadata_ = com.google.protobuf.ByteString.EMPTY;
ledgerId_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TokenNftInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TokenNftInfo(
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 (accountID_ != null) {
subBuilder = accountID_.toBuilder();
}
accountID_ = input.readMessage(com.hederahashgraph.api.proto.java.AccountID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(accountID_);
accountID_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.hederahashgraph.api.proto.java.Timestamp.Builder subBuilder = null;
if (creationTime_ != null) {
subBuilder = creationTime_.toBuilder();
}
creationTime_ = input.readMessage(com.hederahashgraph.api.proto.java.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(creationTime_);
creationTime_ = subBuilder.buildPartial();
}
break;
}
case 34: {
metadata_ = input.readBytes();
break;
}
case 42: {
ledgerId_ = input.readBytes();
break;
}
case 50: {
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;
}
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.TokenGetNftInfo.internal_static_proto_TokenNftInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.TokenGetNftInfo.internal_static_proto_TokenNftInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.TokenNftInfo.class, com.hederahashgraph.api.proto.java.TokenNftInfo.Builder.class);
}
public static final int NFTID_FIELD_NUMBER = 1;
private com.hederahashgraph.api.proto.java.NftID nftID_;
/**
*
**
* The ID of the NFT
*
*
* .proto.NftID nftID = 1;
* @return Whether the nftID field is set.
*/
@java.lang.Override
public boolean hasNftID() {
return nftID_ != null;
}
/**
*
**
* The ID of the NFT
*
*
* .proto.NftID nftID = 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 the NFT
*
*
* .proto.NftID nftID = 1;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.NftIDOrBuilder getNftIDOrBuilder() {
return getNftID();
}
public static final int ACCOUNTID_FIELD_NUMBER = 2;
private com.hederahashgraph.api.proto.java.AccountID accountID_;
/**
*
**
* The current owner of the NFT
*
*
* .proto.AccountID accountID = 2;
* @return Whether the accountID field is set.
*/
@java.lang.Override
public boolean hasAccountID() {
return accountID_ != null;
}
/**
*
**
* The current owner of the NFT
*
*
* .proto.AccountID accountID = 2;
* @return The accountID.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.AccountID getAccountID() {
return accountID_ == null ? com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : accountID_;
}
/**
*
**
* The current owner of the NFT
*
*
* .proto.AccountID accountID = 2;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getAccountIDOrBuilder() {
return getAccountID();
}
public static final int CREATIONTIME_FIELD_NUMBER = 3;
private com.hederahashgraph.api.proto.java.Timestamp creationTime_;
/**
*
**
* The effective consensus timestamp at which the NFT was minted
*
*
* .proto.Timestamp creationTime = 3;
* @return Whether the creationTime field is set.
*/
@java.lang.Override
public boolean hasCreationTime() {
return creationTime_ != null;
}
/**
*
**
* The effective consensus timestamp at which the NFT was minted
*
*
* .proto.Timestamp creationTime = 3;
* @return The creationTime.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.Timestamp getCreationTime() {
return creationTime_ == null ? com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : creationTime_;
}
/**
*
**
* The effective consensus timestamp at which the NFT was minted
*
*
* .proto.Timestamp creationTime = 3;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.TimestampOrBuilder getCreationTimeOrBuilder() {
return getCreationTime();
}
public static final int METADATA_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString metadata_;
/**
*
**
* Represents the unique metadata of the NFT
*
*
* bytes metadata = 4;
* @return The metadata.
*/
@java.lang.Override
public com.google.protobuf.ByteString getMetadata() {
return metadata_;
}
public static final int LEDGER_ID_FIELD_NUMBER = 5;
private com.google.protobuf.ByteString ledgerId_;
/**
*
**
* The ledger ID the response was returned from; please see <a href="https://github.com/hashgraph/hedera-improvement-proposal/blob/master/HIP/hip-198.md">HIP-198</a> for the network-specific IDs.
*
*
* bytes ledger_id = 5;
* @return The ledgerId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getLedgerId() {
return ledgerId_;
}
public static final int SPENDER_ID_FIELD_NUMBER = 6;
private com.hederahashgraph.api.proto.java.AccountID spenderId_;
/**
*
**
* If an allowance is granted for the NFT, its corresponding spender account
*
*
* .proto.AccountID spender_id = 6;
* @return Whether the spenderId field is set.
*/
@java.lang.Override
public boolean hasSpenderId() {
return spenderId_ != null;
}
/**
*
**
* If an allowance is granted for the NFT, its corresponding spender account
*
*
* .proto.AccountID spender_id = 6;
* @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_;
}
/**
*
**
* If an allowance is granted for the NFT, its corresponding spender account
*
*
* .proto.AccountID spender_id = 6;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getSpenderIdOrBuilder() {
return getSpenderId();
}
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 (accountID_ != null) {
output.writeMessage(2, getAccountID());
}
if (creationTime_ != null) {
output.writeMessage(3, getCreationTime());
}
if (!metadata_.isEmpty()) {
output.writeBytes(4, metadata_);
}
if (!ledgerId_.isEmpty()) {
output.writeBytes(5, ledgerId_);
}
if (spenderId_ != null) {
output.writeMessage(6, getSpenderId());
}
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 (accountID_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getAccountID());
}
if (creationTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getCreationTime());
}
if (!metadata_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, metadata_);
}
if (!ledgerId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, ledgerId_);
}
if (spenderId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getSpenderId());
}
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.TokenNftInfo)) {
return super.equals(obj);
}
com.hederahashgraph.api.proto.java.TokenNftInfo other = (com.hederahashgraph.api.proto.java.TokenNftInfo) obj;
if (hasNftID() != other.hasNftID()) return false;
if (hasNftID()) {
if (!getNftID()
.equals(other.getNftID())) return false;
}
if (hasAccountID() != other.hasAccountID()) return false;
if (hasAccountID()) {
if (!getAccountID()
.equals(other.getAccountID())) return false;
}
if (hasCreationTime() != other.hasCreationTime()) return false;
if (hasCreationTime()) {
if (!getCreationTime()
.equals(other.getCreationTime())) return false;
}
if (!getMetadata()
.equals(other.getMetadata())) return false;
if (!getLedgerId()
.equals(other.getLedgerId())) return false;
if (hasSpenderId() != other.hasSpenderId()) return false;
if (hasSpenderId()) {
if (!getSpenderId()
.equals(other.getSpenderId())) 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) + NFTID_FIELD_NUMBER;
hash = (53 * hash) + getNftID().hashCode();
}
if (hasAccountID()) {
hash = (37 * hash) + ACCOUNTID_FIELD_NUMBER;
hash = (53 * hash) + getAccountID().hashCode();
}
if (hasCreationTime()) {
hash = (37 * hash) + CREATIONTIME_FIELD_NUMBER;
hash = (53 * hash) + getCreationTime().hashCode();
}
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
hash = (37 * hash) + LEDGER_ID_FIELD_NUMBER;
hash = (53 * hash) + getLedgerId().hashCode();
if (hasSpenderId()) {
hash = (37 * hash) + SPENDER_ID_FIELD_NUMBER;
hash = (53 * hash) + getSpenderId().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hederahashgraph.api.proto.java.TokenNftInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.TokenNftInfo 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.TokenNftInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.TokenNftInfo 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.TokenNftInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.TokenNftInfo 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.TokenNftInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.TokenNftInfo 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.TokenNftInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.TokenNftInfo 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.TokenNftInfo 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.TokenNftInfo 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.TokenNftInfo 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;
}
/**
*
**
* UNDOCUMENTED
*
*
* Protobuf type {@code proto.TokenNftInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.TokenNftInfo)
com.hederahashgraph.api.proto.java.TokenNftInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.TokenGetNftInfo.internal_static_proto_TokenNftInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.TokenGetNftInfo.internal_static_proto_TokenNftInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.TokenNftInfo.class, com.hederahashgraph.api.proto.java.TokenNftInfo.Builder.class);
}
// Construct using com.hederahashgraph.api.proto.java.TokenNftInfo.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 (accountIDBuilder_ == null) {
accountID_ = null;
} else {
accountID_ = null;
accountIDBuilder_ = null;
}
if (creationTimeBuilder_ == null) {
creationTime_ = null;
} else {
creationTime_ = null;
creationTimeBuilder_ = null;
}
metadata_ = com.google.protobuf.ByteString.EMPTY;
ledgerId_ = com.google.protobuf.ByteString.EMPTY;
if (spenderIdBuilder_ == null) {
spenderId_ = null;
} else {
spenderId_ = null;
spenderIdBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hederahashgraph.api.proto.java.TokenGetNftInfo.internal_static_proto_TokenNftInfo_descriptor;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.TokenNftInfo getDefaultInstanceForType() {
return com.hederahashgraph.api.proto.java.TokenNftInfo.getDefaultInstance();
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.TokenNftInfo build() {
com.hederahashgraph.api.proto.java.TokenNftInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.TokenNftInfo buildPartial() {
com.hederahashgraph.api.proto.java.TokenNftInfo result = new com.hederahashgraph.api.proto.java.TokenNftInfo(this);
if (nftIDBuilder_ == null) {
result.nftID_ = nftID_;
} else {
result.nftID_ = nftIDBuilder_.build();
}
if (accountIDBuilder_ == null) {
result.accountID_ = accountID_;
} else {
result.accountID_ = accountIDBuilder_.build();
}
if (creationTimeBuilder_ == null) {
result.creationTime_ = creationTime_;
} else {
result.creationTime_ = creationTimeBuilder_.build();
}
result.metadata_ = metadata_;
result.ledgerId_ = ledgerId_;
if (spenderIdBuilder_ == null) {
result.spenderId_ = spenderId_;
} else {
result.spenderId_ = spenderIdBuilder_.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.TokenNftInfo) {
return mergeFrom((com.hederahashgraph.api.proto.java.TokenNftInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hederahashgraph.api.proto.java.TokenNftInfo other) {
if (other == com.hederahashgraph.api.proto.java.TokenNftInfo.getDefaultInstance()) return this;
if (other.hasNftID()) {
mergeNftID(other.getNftID());
}
if (other.hasAccountID()) {
mergeAccountID(other.getAccountID());
}
if (other.hasCreationTime()) {
mergeCreationTime(other.getCreationTime());
}
if (other.getMetadata() != com.google.protobuf.ByteString.EMPTY) {
setMetadata(other.getMetadata());
}
if (other.getLedgerId() != com.google.protobuf.ByteString.EMPTY) {
setLedgerId(other.getLedgerId());
}
if (other.hasSpenderId()) {
mergeSpenderId(other.getSpenderId());
}
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.TokenNftInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hederahashgraph.api.proto.java.TokenNftInfo) 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 the NFT
*
*
* .proto.NftID nftID = 1;
* @return Whether the nftID field is set.
*/
public boolean hasNftID() {
return nftIDBuilder_ != null || nftID_ != null;
}
/**
*
**
* The ID of the NFT
*
*
* .proto.NftID nftID = 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 the NFT
*
*
* .proto.NftID nftID = 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 the NFT
*
*
* .proto.NftID nftID = 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 the NFT
*
*
* .proto.NftID nftID = 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 the NFT
*
*
* .proto.NftID nftID = 1;
*/
public Builder clearNftID() {
if (nftIDBuilder_ == null) {
nftID_ = null;
onChanged();
} else {
nftID_ = null;
nftIDBuilder_ = null;
}
return this;
}
/**
*
**
* The ID of the NFT
*
*
* .proto.NftID nftID = 1;
*/
public com.hederahashgraph.api.proto.java.NftID.Builder getNftIDBuilder() {
onChanged();
return getNftIDFieldBuilder().getBuilder();
}
/**
*
**
* The ID of the NFT
*
*
* .proto.NftID nftID = 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 the NFT
*
*
* .proto.NftID nftID = 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 accountID_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder> accountIDBuilder_;
/**
*
**
* The current owner of the NFT
*
*
* .proto.AccountID accountID = 2;
* @return Whether the accountID field is set.
*/
public boolean hasAccountID() {
return accountIDBuilder_ != null || accountID_ != null;
}
/**
*
**
* The current owner of the NFT
*
*
* .proto.AccountID accountID = 2;
* @return The accountID.
*/
public com.hederahashgraph.api.proto.java.AccountID getAccountID() {
if (accountIDBuilder_ == null) {
return accountID_ == null ? com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : accountID_;
} else {
return accountIDBuilder_.getMessage();
}
}
/**
*
**
* The current owner of the NFT
*
*
* .proto.AccountID accountID = 2;
*/
public Builder setAccountID(com.hederahashgraph.api.proto.java.AccountID value) {
if (accountIDBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
accountID_ = value;
onChanged();
} else {
accountIDBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* The current owner of the NFT
*
*
* .proto.AccountID accountID = 2;
*/
public Builder setAccountID(
com.hederahashgraph.api.proto.java.AccountID.Builder builderForValue) {
if (accountIDBuilder_ == null) {
accountID_ = builderForValue.build();
onChanged();
} else {
accountIDBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The current owner of the NFT
*
*
* .proto.AccountID accountID = 2;
*/
public Builder mergeAccountID(com.hederahashgraph.api.proto.java.AccountID value) {
if (accountIDBuilder_ == null) {
if (accountID_ != null) {
accountID_ =
com.hederahashgraph.api.proto.java.AccountID.newBuilder(accountID_).mergeFrom(value).buildPartial();
} else {
accountID_ = value;
}
onChanged();
} else {
accountIDBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* The current owner of the NFT
*
*
* .proto.AccountID accountID = 2;
*/
public Builder clearAccountID() {
if (accountIDBuilder_ == null) {
accountID_ = null;
onChanged();
} else {
accountID_ = null;
accountIDBuilder_ = null;
}
return this;
}
/**
*
**
* The current owner of the NFT
*
*
* .proto.AccountID accountID = 2;
*/
public com.hederahashgraph.api.proto.java.AccountID.Builder getAccountIDBuilder() {
onChanged();
return getAccountIDFieldBuilder().getBuilder();
}
/**
*
**
* The current owner of the NFT
*
*
* .proto.AccountID accountID = 2;
*/
public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getAccountIDOrBuilder() {
if (accountIDBuilder_ != null) {
return accountIDBuilder_.getMessageOrBuilder();
} else {
return accountID_ == null ?
com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : accountID_;
}
}
/**
*
**
* The current owner of the NFT
*
*
* .proto.AccountID accountID = 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>
getAccountIDFieldBuilder() {
if (accountIDBuilder_ == null) {
accountIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>(
getAccountID(),
getParentForChildren(),
isClean());
accountID_ = null;
}
return accountIDBuilder_;
}
private com.hederahashgraph.api.proto.java.Timestamp creationTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder> creationTimeBuilder_;
/**
*
**
* The effective consensus timestamp at which the NFT was minted
*
*
* .proto.Timestamp creationTime = 3;
* @return Whether the creationTime field is set.
*/
public boolean hasCreationTime() {
return creationTimeBuilder_ != null || creationTime_ != null;
}
/**
*
**
* The effective consensus timestamp at which the NFT was minted
*
*
* .proto.Timestamp creationTime = 3;
* @return The creationTime.
*/
public com.hederahashgraph.api.proto.java.Timestamp getCreationTime() {
if (creationTimeBuilder_ == null) {
return creationTime_ == null ? com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : creationTime_;
} else {
return creationTimeBuilder_.getMessage();
}
}
/**
*
**
* The effective consensus timestamp at which the NFT was minted
*
*
* .proto.Timestamp creationTime = 3;
*/
public Builder setCreationTime(com.hederahashgraph.api.proto.java.Timestamp value) {
if (creationTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
creationTime_ = value;
onChanged();
} else {
creationTimeBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* The effective consensus timestamp at which the NFT was minted
*
*
* .proto.Timestamp creationTime = 3;
*/
public Builder setCreationTime(
com.hederahashgraph.api.proto.java.Timestamp.Builder builderForValue) {
if (creationTimeBuilder_ == null) {
creationTime_ = builderForValue.build();
onChanged();
} else {
creationTimeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The effective consensus timestamp at which the NFT was minted
*
*
* .proto.Timestamp creationTime = 3;
*/
public Builder mergeCreationTime(com.hederahashgraph.api.proto.java.Timestamp value) {
if (creationTimeBuilder_ == null) {
if (creationTime_ != null) {
creationTime_ =
com.hederahashgraph.api.proto.java.Timestamp.newBuilder(creationTime_).mergeFrom(value).buildPartial();
} else {
creationTime_ = value;
}
onChanged();
} else {
creationTimeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* The effective consensus timestamp at which the NFT was minted
*
*
* .proto.Timestamp creationTime = 3;
*/
public Builder clearCreationTime() {
if (creationTimeBuilder_ == null) {
creationTime_ = null;
onChanged();
} else {
creationTime_ = null;
creationTimeBuilder_ = null;
}
return this;
}
/**
*
**
* The effective consensus timestamp at which the NFT was minted
*
*
* .proto.Timestamp creationTime = 3;
*/
public com.hederahashgraph.api.proto.java.Timestamp.Builder getCreationTimeBuilder() {
onChanged();
return getCreationTimeFieldBuilder().getBuilder();
}
/**
*
**
* The effective consensus timestamp at which the NFT was minted
*
*
* .proto.Timestamp creationTime = 3;
*/
public com.hederahashgraph.api.proto.java.TimestampOrBuilder getCreationTimeOrBuilder() {
if (creationTimeBuilder_ != null) {
return creationTimeBuilder_.getMessageOrBuilder();
} else {
return creationTime_ == null ?
com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : creationTime_;
}
}
/**
*
**
* The effective consensus timestamp at which the NFT was minted
*
*
* .proto.Timestamp creationTime = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder>
getCreationTimeFieldBuilder() {
if (creationTimeBuilder_ == null) {
creationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder>(
getCreationTime(),
getParentForChildren(),
isClean());
creationTime_ = null;
}
return creationTimeBuilder_;
}
private com.google.protobuf.ByteString metadata_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* Represents the unique metadata of the NFT
*
*
* bytes metadata = 4;
* @return The metadata.
*/
@java.lang.Override
public com.google.protobuf.ByteString getMetadata() {
return metadata_;
}
/**
*
**
* Represents the unique metadata of the NFT
*
*
* bytes metadata = 4;
* @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;
}
/**
*
**
* Represents the unique metadata of the NFT
*
*
* bytes metadata = 4;
* @return This builder for chaining.
*/
public Builder clearMetadata() {
metadata_ = getDefaultInstance().getMetadata();
onChanged();
return this;
}
private com.google.protobuf.ByteString ledgerId_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* The ledger ID the response was returned from; please see <a href="https://github.com/hashgraph/hedera-improvement-proposal/blob/master/HIP/hip-198.md">HIP-198</a> for the network-specific IDs.
*
*
* bytes ledger_id = 5;
* @return The ledgerId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getLedgerId() {
return ledgerId_;
}
/**
*
**
* The ledger ID the response was returned from; please see <a href="https://github.com/hashgraph/hedera-improvement-proposal/blob/master/HIP/hip-198.md">HIP-198</a> for the network-specific IDs.
*
*
* bytes ledger_id = 5;
* @param value The ledgerId to set.
* @return This builder for chaining.
*/
public Builder setLedgerId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ledgerId_ = value;
onChanged();
return this;
}
/**
*
**
* The ledger ID the response was returned from; please see <a href="https://github.com/hashgraph/hedera-improvement-proposal/blob/master/HIP/hip-198.md">HIP-198</a> for the network-specific IDs.
*
*
* bytes ledger_id = 5;
* @return This builder for chaining.
*/
public Builder clearLedgerId() {
ledgerId_ = getDefaultInstance().getLedgerId();
onChanged();
return this;
}
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_;
/**
*
**
* If an allowance is granted for the NFT, its corresponding spender account
*
*
* .proto.AccountID spender_id = 6;
* @return Whether the spenderId field is set.
*/
public boolean hasSpenderId() {
return spenderIdBuilder_ != null || spenderId_ != null;
}
/**
*
**
* If an allowance is granted for the NFT, its corresponding spender account
*
*
* .proto.AccountID spender_id = 6;
* @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();
}
}
/**
*
**
* If an allowance is granted for the NFT, its corresponding spender account
*
*
* .proto.AccountID spender_id = 6;
*/
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;
}
/**
*
**
* If an allowance is granted for the NFT, its corresponding spender account
*
*
* .proto.AccountID spender_id = 6;
*/
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;
}
/**
*
**
* If an allowance is granted for the NFT, its corresponding spender account
*
*
* .proto.AccountID spender_id = 6;
*/
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;
}
/**
*
**
* If an allowance is granted for the NFT, its corresponding spender account
*
*
* .proto.AccountID spender_id = 6;
*/
public Builder clearSpenderId() {
if (spenderIdBuilder_ == null) {
spenderId_ = null;
onChanged();
} else {
spenderId_ = null;
spenderIdBuilder_ = null;
}
return this;
}
/**
*
**
* If an allowance is granted for the NFT, its corresponding spender account
*
*
* .proto.AccountID spender_id = 6;
*/
public com.hederahashgraph.api.proto.java.AccountID.Builder getSpenderIdBuilder() {
onChanged();
return getSpenderIdFieldBuilder().getBuilder();
}
/**
*
**
* If an allowance is granted for the NFT, its corresponding spender account
*
*
* .proto.AccountID spender_id = 6;
*/
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_;
}
}
/**
*
**
* If an allowance is granted for the NFT, its corresponding spender account
*
*
* .proto.AccountID spender_id = 6;
*/
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_;
}
@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.TokenNftInfo)
}
// @@protoc_insertion_point(class_scope:proto.TokenNftInfo)
private static final com.hederahashgraph.api.proto.java.TokenNftInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.TokenNftInfo();
}
public static com.hederahashgraph.api.proto.java.TokenNftInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TokenNftInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TokenNftInfo(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.TokenNftInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}