com.hedera.hashgraph.sdk.proto.TokenNftInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-full Show documentation
Show all versions of sdk-full Show documentation
Hedera™ Hashgraph SDK for Java
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: token_get_nft_info.proto
// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* 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();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.TokenGetNftInfo.internal_static_proto_TokenNftInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.TokenGetNftInfo.internal_static_proto_TokenNftInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.TokenNftInfo.class, com.hedera.hashgraph.sdk.proto.TokenNftInfo.Builder.class);
}
private int bitField0_;
public static final int NFTID_FIELD_NUMBER = 1;
private com.hedera.hashgraph.sdk.proto.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 ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* The ID of the NFT
*
*
* .proto.NftID nftID = 1;
* @return The nftID.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.NftID getNftID() {
return nftID_ == null ? com.hedera.hashgraph.sdk.proto.NftID.getDefaultInstance() : nftID_;
}
/**
*
**
* The ID of the NFT
*
*
* .proto.NftID nftID = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.NftIDOrBuilder getNftIDOrBuilder() {
return nftID_ == null ? com.hedera.hashgraph.sdk.proto.NftID.getDefaultInstance() : nftID_;
}
public static final int ACCOUNTID_FIELD_NUMBER = 2;
private com.hedera.hashgraph.sdk.proto.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 ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* The current owner of the NFT
*
*
* .proto.AccountID accountID = 2;
* @return The accountID.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountID getAccountID() {
return accountID_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountID_;
}
/**
*
**
* The current owner of the NFT
*
*
* .proto.AccountID accountID = 2;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getAccountIDOrBuilder() {
return accountID_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountID_;
}
public static final int CREATIONTIME_FIELD_NUMBER = 3;
private com.hedera.hashgraph.sdk.proto.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 ((bitField0_ & 0x00000004) != 0);
}
/**
*
**
* The effective consensus timestamp at which the NFT was minted
*
*
* .proto.Timestamp creationTime = 3;
* @return The creationTime.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Timestamp getCreationTime() {
return creationTime_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : creationTime_;
}
/**
*
**
* The effective consensus timestamp at which the NFT was minted
*
*
* .proto.Timestamp creationTime = 3;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TimestampOrBuilder getCreationTimeOrBuilder() {
return creationTime_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : creationTime_;
}
public static final int METADATA_FIELD_NUMBER = 4;
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_;
}
public static final int LEDGER_ID_FIELD_NUMBER = 5;
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_;
}
public static final int SPENDER_ID_FIELD_NUMBER = 6;
private com.hedera.hashgraph.sdk.proto.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 ((bitField0_ & 0x00000008) != 0);
}
/**
*
**
* 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.hedera.hashgraph.sdk.proto.AccountID getSpenderId() {
return spenderId_ == null ? com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getSpenderIdOrBuilder() {
return spenderId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : spenderId_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getNftID());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getAccountID());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getCreationTime());
}
if (!metadata_.isEmpty()) {
output.writeBytes(4, metadata_);
}
if (!ledgerId_.isEmpty()) {
output.writeBytes(5, ledgerId_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(6, getSpenderId());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getNftID());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getAccountID());
}
if (((bitField0_ & 0x00000004) != 0)) {
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 (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getSpenderId());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.hedera.hashgraph.sdk.proto.TokenNftInfo)) {
return super.equals(obj);
}
com.hedera.hashgraph.sdk.proto.TokenNftInfo other = (com.hedera.hashgraph.sdk.proto.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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasNftID()) {
hash = (37 * hash) + 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) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hashgraph.sdk.proto.TokenNftInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.TokenNftInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.TokenNftInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.TokenNftInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.TokenNftInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.TokenNftInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.TokenNftInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.TokenNftInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.TokenNftInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.TokenGetNftInfo.internal_static_proto_TokenNftInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.TokenGetNftInfo.internal_static_proto_TokenNftInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.TokenNftInfo.class, com.hedera.hashgraph.sdk.proto.TokenNftInfo.Builder.class);
}
// Construct using com.hedera.hashgraph.sdk.proto.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) {
getNftIDFieldBuilder();
getAccountIDFieldBuilder();
getCreationTimeFieldBuilder();
getSpenderIdFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
nftID_ = null;
if (nftIDBuilder_ != null) {
nftIDBuilder_.dispose();
nftIDBuilder_ = null;
}
accountID_ = null;
if (accountIDBuilder_ != null) {
accountIDBuilder_.dispose();
accountIDBuilder_ = null;
}
creationTime_ = null;
if (creationTimeBuilder_ != null) {
creationTimeBuilder_.dispose();
creationTimeBuilder_ = null;
}
metadata_ = com.google.protobuf.ByteString.EMPTY;
ledgerId_ = com.google.protobuf.ByteString.EMPTY;
spenderId_ = null;
if (spenderIdBuilder_ != null) {
spenderIdBuilder_.dispose();
spenderIdBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hashgraph.sdk.proto.TokenGetNftInfo.internal_static_proto_TokenNftInfo_descriptor;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenNftInfo getDefaultInstanceForType() {
return com.hedera.hashgraph.sdk.proto.TokenNftInfo.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenNftInfo build() {
com.hedera.hashgraph.sdk.proto.TokenNftInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenNftInfo buildPartial() {
com.hedera.hashgraph.sdk.proto.TokenNftInfo result = new com.hedera.hashgraph.sdk.proto.TokenNftInfo(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.hedera.hashgraph.sdk.proto.TokenNftInfo result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.nftID_ = nftIDBuilder_ == null
? nftID_
: nftIDBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.accountID_ = accountIDBuilder_ == null
? accountID_
: accountIDBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.creationTime_ = creationTimeBuilder_ == null
? creationTime_
: creationTimeBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.metadata_ = metadata_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.ledgerId_ = ledgerId_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.spenderId_ = spenderIdBuilder_ == null
? spenderId_
: spenderIdBuilder_.build();
to_bitField0_ |= 0x00000008;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.hedera.hashgraph.sdk.proto.TokenNftInfo) {
return mergeFrom((com.hedera.hashgraph.sdk.proto.TokenNftInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.TokenNftInfo other) {
if (other == com.hedera.hashgraph.sdk.proto.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.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getNftIDFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getAccountIDFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getCreationTimeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
metadata_ = input.readBytes();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
ledgerId_ = input.readBytes();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
input.readMessage(
getSpenderIdFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.hedera.hashgraph.sdk.proto.NftID nftID_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.NftID, com.hedera.hashgraph.sdk.proto.NftID.Builder, com.hedera.hashgraph.sdk.proto.NftIDOrBuilder> nftIDBuilder_;
/**
*
**
* The ID of the NFT
*
*
* .proto.NftID nftID = 1;
* @return Whether the nftID field is set.
*/
public boolean hasNftID() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* The ID of the NFT
*
*
* .proto.NftID nftID = 1;
* @return The nftID.
*/
public com.hedera.hashgraph.sdk.proto.NftID getNftID() {
if (nftIDBuilder_ == null) {
return nftID_ == null ? com.hedera.hashgraph.sdk.proto.NftID.getDefaultInstance() : nftID_;
} else {
return nftIDBuilder_.getMessage();
}
}
/**
*
**
* The ID of the NFT
*
*
* .proto.NftID nftID = 1;
*/
public Builder setNftID(com.hedera.hashgraph.sdk.proto.NftID value) {
if (nftIDBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
nftID_ = value;
} else {
nftIDBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* The ID of the NFT
*
*
* .proto.NftID nftID = 1;
*/
public Builder setNftID(
com.hedera.hashgraph.sdk.proto.NftID.Builder builderForValue) {
if (nftIDBuilder_ == null) {
nftID_ = builderForValue.build();
} else {
nftIDBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* The ID of the NFT
*
*
* .proto.NftID nftID = 1;
*/
public Builder mergeNftID(com.hedera.hashgraph.sdk.proto.NftID value) {
if (nftIDBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
nftID_ != null &&
nftID_ != com.hedera.hashgraph.sdk.proto.NftID.getDefaultInstance()) {
getNftIDBuilder().mergeFrom(value);
} else {
nftID_ = value;
}
} else {
nftIDBuilder_.mergeFrom(value);
}
if (nftID_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
**
* The ID of the NFT
*
*
* .proto.NftID nftID = 1;
*/
public Builder clearNftID() {
bitField0_ = (bitField0_ & ~0x00000001);
nftID_ = null;
if (nftIDBuilder_ != null) {
nftIDBuilder_.dispose();
nftIDBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The ID of the NFT
*
*
* .proto.NftID nftID = 1;
*/
public com.hedera.hashgraph.sdk.proto.NftID.Builder getNftIDBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getNftIDFieldBuilder().getBuilder();
}
/**
*
**
* The ID of the NFT
*
*
* .proto.NftID nftID = 1;
*/
public com.hedera.hashgraph.sdk.proto.NftIDOrBuilder getNftIDOrBuilder() {
if (nftIDBuilder_ != null) {
return nftIDBuilder_.getMessageOrBuilder();
} else {
return nftID_ == null ?
com.hedera.hashgraph.sdk.proto.NftID.getDefaultInstance() : nftID_;
}
}
/**
*
**
* The ID of the NFT
*
*
* .proto.NftID nftID = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.NftID, com.hedera.hashgraph.sdk.proto.NftID.Builder, com.hedera.hashgraph.sdk.proto.NftIDOrBuilder>
getNftIDFieldBuilder() {
if (nftIDBuilder_ == null) {
nftIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.NftID, com.hedera.hashgraph.sdk.proto.NftID.Builder, com.hedera.hashgraph.sdk.proto.NftIDOrBuilder>(
getNftID(),
getParentForChildren(),
isClean());
nftID_ = null;
}
return nftIDBuilder_;
}
private com.hedera.hashgraph.sdk.proto.AccountID accountID_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> accountIDBuilder_;
/**
*
**
* The current owner of the NFT
*
*
* .proto.AccountID accountID = 2;
* @return Whether the accountID field is set.
*/
public boolean hasAccountID() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* The current owner of the NFT
*
*
* .proto.AccountID accountID = 2;
* @return The accountID.
*/
public com.hedera.hashgraph.sdk.proto.AccountID getAccountID() {
if (accountIDBuilder_ == null) {
return accountID_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountID_;
} else {
return accountIDBuilder_.getMessage();
}
}
/**
*
**
* The current owner of the NFT
*
*
* .proto.AccountID accountID = 2;
*/
public Builder setAccountID(com.hedera.hashgraph.sdk.proto.AccountID value) {
if (accountIDBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
accountID_ = value;
} else {
accountIDBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The current owner of the NFT
*
*
* .proto.AccountID accountID = 2;
*/
public Builder setAccountID(
com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) {
if (accountIDBuilder_ == null) {
accountID_ = builderForValue.build();
} else {
accountIDBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The current owner of the NFT
*
*
* .proto.AccountID accountID = 2;
*/
public Builder mergeAccountID(com.hedera.hashgraph.sdk.proto.AccountID value) {
if (accountIDBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
accountID_ != null &&
accountID_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) {
getAccountIDBuilder().mergeFrom(value);
} else {
accountID_ = value;
}
} else {
accountIDBuilder_.mergeFrom(value);
}
if (accountID_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
**
* The current owner of the NFT
*
*
* .proto.AccountID accountID = 2;
*/
public Builder clearAccountID() {
bitField0_ = (bitField0_ & ~0x00000002);
accountID_ = null;
if (accountIDBuilder_ != null) {
accountIDBuilder_.dispose();
accountIDBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The current owner of the NFT
*
*
* .proto.AccountID accountID = 2;
*/
public com.hedera.hashgraph.sdk.proto.AccountID.Builder getAccountIDBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getAccountIDFieldBuilder().getBuilder();
}
/**
*
**
* The current owner of the NFT
*
*
* .proto.AccountID accountID = 2;
*/
public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getAccountIDOrBuilder() {
if (accountIDBuilder_ != null) {
return accountIDBuilder_.getMessageOrBuilder();
} else {
return accountID_ == null ?
com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountID_;
}
}
/**
*
**
* The current owner of the NFT
*
*
* .proto.AccountID accountID = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>
getAccountIDFieldBuilder() {
if (accountIDBuilder_ == null) {
accountIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>(
getAccountID(),
getParentForChildren(),
isClean());
accountID_ = null;
}
return accountIDBuilder_;
}
private com.hedera.hashgraph.sdk.proto.Timestamp creationTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.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 ((bitField0_ & 0x00000004) != 0);
}
/**
*
**
* The effective consensus timestamp at which the NFT was minted
*
*
* .proto.Timestamp creationTime = 3;
* @return The creationTime.
*/
public com.hedera.hashgraph.sdk.proto.Timestamp getCreationTime() {
if (creationTimeBuilder_ == null) {
return creationTime_ == null ? com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.Timestamp value) {
if (creationTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
creationTime_ = value;
} else {
creationTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* The effective consensus timestamp at which the NFT was minted
*
*
* .proto.Timestamp creationTime = 3;
*/
public Builder setCreationTime(
com.hedera.hashgraph.sdk.proto.Timestamp.Builder builderForValue) {
if (creationTimeBuilder_ == null) {
creationTime_ = builderForValue.build();
} else {
creationTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* The effective consensus timestamp at which the NFT was minted
*
*
* .proto.Timestamp creationTime = 3;
*/
public Builder mergeCreationTime(com.hedera.hashgraph.sdk.proto.Timestamp value) {
if (creationTimeBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
creationTime_ != null &&
creationTime_ != com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance()) {
getCreationTimeBuilder().mergeFrom(value);
} else {
creationTime_ = value;
}
} else {
creationTimeBuilder_.mergeFrom(value);
}
if (creationTime_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
**
* The effective consensus timestamp at which the NFT was minted
*
*
* .proto.Timestamp creationTime = 3;
*/
public Builder clearCreationTime() {
bitField0_ = (bitField0_ & ~0x00000004);
creationTime_ = null;
if (creationTimeBuilder_ != null) {
creationTimeBuilder_.dispose();
creationTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The effective consensus timestamp at which the NFT was minted
*
*
* .proto.Timestamp creationTime = 3;
*/
public com.hedera.hashgraph.sdk.proto.Timestamp.Builder getCreationTimeBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getCreationTimeFieldBuilder().getBuilder();
}
/**
*
**
* The effective consensus timestamp at which the NFT was minted
*
*
* .proto.Timestamp creationTime = 3;
*/
public com.hedera.hashgraph.sdk.proto.TimestampOrBuilder getCreationTimeOrBuilder() {
if (creationTimeBuilder_ != null) {
return creationTimeBuilder_.getMessageOrBuilder();
} else {
return creationTime_ == null ?
com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : creationTime_;
}
}
/**
*
**
* The effective consensus timestamp at which the NFT was minted
*
*
* .proto.Timestamp creationTime = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder>
getCreationTimeFieldBuilder() {
if (creationTimeBuilder_ == null) {
creationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.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;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
**
* Represents the unique metadata of the NFT
*
*
* bytes metadata = 4;
* @return This builder for chaining.
*/
public Builder clearMetadata() {
bitField0_ = (bitField0_ & ~0x00000008);
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;
bitField0_ |= 0x00000010;
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() {
bitField0_ = (bitField0_ & ~0x00000010);
ledgerId_ = getDefaultInstance().getLedgerId();
onChanged();
return this;
}
private com.hedera.hashgraph.sdk.proto.AccountID spenderId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> spenderIdBuilder_;
/**
*
**
* 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 ((bitField0_ & 0x00000020) != 0);
}
/**
*
**
* If an allowance is granted for the NFT, its corresponding spender account
*
*
* .proto.AccountID spender_id = 6;
* @return The spenderId.
*/
public com.hedera.hashgraph.sdk.proto.AccountID getSpenderId() {
if (spenderIdBuilder_ == null) {
return spenderId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : spenderId_;
} else {
return spenderIdBuilder_.getMessage();
}
}
/**
*
**
* If an allowance is granted for the NFT, its corresponding spender account
*
*
* .proto.AccountID spender_id = 6;
*/
public Builder setSpenderId(com.hedera.hashgraph.sdk.proto.AccountID value) {
if (spenderIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
spenderId_ = value;
} else {
spenderIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
**
* If an allowance is granted for the NFT, its corresponding spender account
*
*
* .proto.AccountID spender_id = 6;
*/
public Builder setSpenderId(
com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) {
if (spenderIdBuilder_ == null) {
spenderId_ = builderForValue.build();
} else {
spenderIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
**
* If an allowance is granted for the NFT, its corresponding spender account
*
*
* .proto.AccountID spender_id = 6;
*/
public Builder mergeSpenderId(com.hedera.hashgraph.sdk.proto.AccountID value) {
if (spenderIdBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
spenderId_ != null &&
spenderId_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) {
getSpenderIdBuilder().mergeFrom(value);
} else {
spenderId_ = value;
}
} else {
spenderIdBuilder_.mergeFrom(value);
}
if (spenderId_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
*
**
* If an allowance is granted for the NFT, its corresponding spender account
*
*
* .proto.AccountID spender_id = 6;
*/
public Builder clearSpenderId() {
bitField0_ = (bitField0_ & ~0x00000020);
spenderId_ = null;
if (spenderIdBuilder_ != null) {
spenderIdBuilder_.dispose();
spenderIdBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* If an allowance is granted for the NFT, its corresponding spender account
*
*
* .proto.AccountID spender_id = 6;
*/
public com.hedera.hashgraph.sdk.proto.AccountID.Builder getSpenderIdBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getSpenderIdFieldBuilder().getBuilder();
}
/**
*
**
* If an allowance is granted for the NFT, its corresponding spender account
*
*
* .proto.AccountID spender_id = 6;
*/
public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getSpenderIdOrBuilder() {
if (spenderIdBuilder_ != null) {
return spenderIdBuilder_.getMessageOrBuilder();
} else {
return spenderId_ == null ?
com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : spenderId_;
}
}
/**
*
**
* If an allowance is granted for the NFT, its corresponding spender account
*
*
* .proto.AccountID spender_id = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>
getSpenderIdFieldBuilder() {
if (spenderIdBuilder_ == null) {
spenderIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>(
getSpenderId(),
getParentForChildren(),
isClean());
spenderId_ = null;
}
return spenderIdBuilder_;
}
@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.hedera.hashgraph.sdk.proto.TokenNftInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.TokenNftInfo();
}
public static com.hedera.hashgraph.sdk.proto.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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenNftInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}