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

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

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

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

/**
 * 
 **
 * A sender account, a receiver account, and the serial number of an NFT of a Token with
 * NON_FUNGIBLE_UNIQUE type. When minting NFTs the sender will be the default AccountID instance
 * (0.0.0) and when burning NFTs, the receiver will be the default AccountID instance.
 * 
* * Protobuf type {@code proto.NftTransfer} */ public final class NftTransfer extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.NftTransfer) NftTransferOrBuilder { private static final long serialVersionUID = 0L; // Use NftTransfer.newBuilder() to construct. private NftTransfer(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NftTransfer() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new NftTransfer(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_NftTransfer_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_NftTransfer_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.NftTransfer.class, com.hedera.hashgraph.sdk.proto.NftTransfer.Builder.class); } private int bitField0_; public static final int SENDERACCOUNTID_FIELD_NUMBER = 1; private com.hedera.hashgraph.sdk.proto.AccountID senderAccountID_; /** *
   **
   * The accountID of the sender
   * 
* * .proto.AccountID senderAccountID = 1; * @return Whether the senderAccountID field is set. */ @java.lang.Override public boolean hasSenderAccountID() { return ((bitField0_ & 0x00000001) != 0); } /** *
   **
   * The accountID of the sender
   * 
* * .proto.AccountID senderAccountID = 1; * @return The senderAccountID. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountID getSenderAccountID() { return senderAccountID_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : senderAccountID_; } /** *
   **
   * The accountID of the sender
   * 
* * .proto.AccountID senderAccountID = 1; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getSenderAccountIDOrBuilder() { return senderAccountID_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : senderAccountID_; } public static final int RECEIVERACCOUNTID_FIELD_NUMBER = 2; private com.hedera.hashgraph.sdk.proto.AccountID receiverAccountID_; /** *
   **
   * The accountID of the receiver
   * 
* * .proto.AccountID receiverAccountID = 2; * @return Whether the receiverAccountID field is set. */ @java.lang.Override public boolean hasReceiverAccountID() { return ((bitField0_ & 0x00000002) != 0); } /** *
   **
   * The accountID of the receiver
   * 
* * .proto.AccountID receiverAccountID = 2; * @return The receiverAccountID. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountID getReceiverAccountID() { return receiverAccountID_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : receiverAccountID_; } /** *
   **
   * The accountID of the receiver
   * 
* * .proto.AccountID receiverAccountID = 2; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getReceiverAccountIDOrBuilder() { return receiverAccountID_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : receiverAccountID_; } public static final int SERIALNUMBER_FIELD_NUMBER = 3; private long serialNumber_ = 0L; /** *
   **
   * The serial number of the NFT
   * 
* * int64 serialNumber = 3; * @return The serialNumber. */ @java.lang.Override public long getSerialNumber() { return serialNumber_; } public static final int IS_APPROVAL_FIELD_NUMBER = 4; private boolean isApproval_ = false; /** *
   **
   * If true then the transfer is expected to be an approved allowance and the
   * senderAccountID is expected to be the owner. The default is false (omitted).
   * 
* * bool is_approval = 4; * @return The isApproval. */ @java.lang.Override public boolean getIsApproval() { return isApproval_; } 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, getSenderAccountID()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getReceiverAccountID()); } if (serialNumber_ != 0L) { output.writeInt64(3, serialNumber_); } if (isApproval_ != false) { output.writeBool(4, isApproval_); } 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, getSenderAccountID()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getReceiverAccountID()); } if (serialNumber_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, serialNumber_); } if (isApproval_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, isApproval_); } 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.NftTransfer)) { return super.equals(obj); } com.hedera.hashgraph.sdk.proto.NftTransfer other = (com.hedera.hashgraph.sdk.proto.NftTransfer) obj; if (hasSenderAccountID() != other.hasSenderAccountID()) return false; if (hasSenderAccountID()) { if (!getSenderAccountID() .equals(other.getSenderAccountID())) return false; } if (hasReceiverAccountID() != other.hasReceiverAccountID()) return false; if (hasReceiverAccountID()) { if (!getReceiverAccountID() .equals(other.getReceiverAccountID())) return false; } if (getSerialNumber() != other.getSerialNumber()) return false; if (getIsApproval() != other.getIsApproval()) 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 (hasSenderAccountID()) { hash = (37 * hash) + SENDERACCOUNTID_FIELD_NUMBER; hash = (53 * hash) + getSenderAccountID().hashCode(); } if (hasReceiverAccountID()) { hash = (37 * hash) + RECEIVERACCOUNTID_FIELD_NUMBER; hash = (53 * hash) + getReceiverAccountID().hashCode(); } hash = (37 * hash) + SERIALNUMBER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSerialNumber()); hash = (37 * hash) + IS_APPROVAL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsApproval()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.hashgraph.sdk.proto.NftTransfer parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.NftTransfer 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.NftTransfer parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.NftTransfer 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.NftTransfer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.NftTransfer 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.NftTransfer parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.NftTransfer 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.NftTransfer parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.NftTransfer 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.NftTransfer 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.NftTransfer 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.NftTransfer 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; } /** *
   **
   * A sender account, a receiver account, and the serial number of an NFT of a Token with
   * NON_FUNGIBLE_UNIQUE type. When minting NFTs the sender will be the default AccountID instance
   * (0.0.0) and when burning NFTs, the receiver will be the default AccountID instance.
   * 
* * Protobuf type {@code proto.NftTransfer} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.NftTransfer) com.hedera.hashgraph.sdk.proto.NftTransferOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_NftTransfer_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_NftTransfer_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.NftTransfer.class, com.hedera.hashgraph.sdk.proto.NftTransfer.Builder.class); } // Construct using com.hedera.hashgraph.sdk.proto.NftTransfer.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSenderAccountIDFieldBuilder(); getReceiverAccountIDFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; senderAccountID_ = null; if (senderAccountIDBuilder_ != null) { senderAccountIDBuilder_.dispose(); senderAccountIDBuilder_ = null; } receiverAccountID_ = null; if (receiverAccountIDBuilder_ != null) { receiverAccountIDBuilder_.dispose(); receiverAccountIDBuilder_ = null; } serialNumber_ = 0L; isApproval_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_NftTransfer_descriptor; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.NftTransfer getDefaultInstanceForType() { return com.hedera.hashgraph.sdk.proto.NftTransfer.getDefaultInstance(); } @java.lang.Override public com.hedera.hashgraph.sdk.proto.NftTransfer build() { com.hedera.hashgraph.sdk.proto.NftTransfer result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.NftTransfer buildPartial() { com.hedera.hashgraph.sdk.proto.NftTransfer result = new com.hedera.hashgraph.sdk.proto.NftTransfer(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.hedera.hashgraph.sdk.proto.NftTransfer result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.senderAccountID_ = senderAccountIDBuilder_ == null ? senderAccountID_ : senderAccountIDBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.receiverAccountID_ = receiverAccountIDBuilder_ == null ? receiverAccountID_ : receiverAccountIDBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.serialNumber_ = serialNumber_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.isApproval_ = isApproval_; } 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.NftTransfer) { return mergeFrom((com.hedera.hashgraph.sdk.proto.NftTransfer)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.NftTransfer other) { if (other == com.hedera.hashgraph.sdk.proto.NftTransfer.getDefaultInstance()) return this; if (other.hasSenderAccountID()) { mergeSenderAccountID(other.getSenderAccountID()); } if (other.hasReceiverAccountID()) { mergeReceiverAccountID(other.getReceiverAccountID()); } if (other.getSerialNumber() != 0L) { setSerialNumber(other.getSerialNumber()); } if (other.getIsApproval() != false) { setIsApproval(other.getIsApproval()); } 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( getSenderAccountIDFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getReceiverAccountIDFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 24: { serialNumber_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { isApproval_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 32 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.AccountID senderAccountID_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> senderAccountIDBuilder_; /** *
     **
     * The accountID of the sender
     * 
* * .proto.AccountID senderAccountID = 1; * @return Whether the senderAccountID field is set. */ public boolean hasSenderAccountID() { return ((bitField0_ & 0x00000001) != 0); } /** *
     **
     * The accountID of the sender
     * 
* * .proto.AccountID senderAccountID = 1; * @return The senderAccountID. */ public com.hedera.hashgraph.sdk.proto.AccountID getSenderAccountID() { if (senderAccountIDBuilder_ == null) { return senderAccountID_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : senderAccountID_; } else { return senderAccountIDBuilder_.getMessage(); } } /** *
     **
     * The accountID of the sender
     * 
* * .proto.AccountID senderAccountID = 1; */ public Builder setSenderAccountID(com.hedera.hashgraph.sdk.proto.AccountID value) { if (senderAccountIDBuilder_ == null) { if (value == null) { throw new NullPointerException(); } senderAccountID_ = value; } else { senderAccountIDBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * The accountID of the sender
     * 
* * .proto.AccountID senderAccountID = 1; */ public Builder setSenderAccountID( com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) { if (senderAccountIDBuilder_ == null) { senderAccountID_ = builderForValue.build(); } else { senderAccountIDBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * The accountID of the sender
     * 
* * .proto.AccountID senderAccountID = 1; */ public Builder mergeSenderAccountID(com.hedera.hashgraph.sdk.proto.AccountID value) { if (senderAccountIDBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && senderAccountID_ != null && senderAccountID_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) { getSenderAccountIDBuilder().mergeFrom(value); } else { senderAccountID_ = value; } } else { senderAccountIDBuilder_.mergeFrom(value); } if (senderAccountID_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     **
     * The accountID of the sender
     * 
* * .proto.AccountID senderAccountID = 1; */ public Builder clearSenderAccountID() { bitField0_ = (bitField0_ & ~0x00000001); senderAccountID_ = null; if (senderAccountIDBuilder_ != null) { senderAccountIDBuilder_.dispose(); senderAccountIDBuilder_ = null; } onChanged(); return this; } /** *
     **
     * The accountID of the sender
     * 
* * .proto.AccountID senderAccountID = 1; */ public com.hedera.hashgraph.sdk.proto.AccountID.Builder getSenderAccountIDBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSenderAccountIDFieldBuilder().getBuilder(); } /** *
     **
     * The accountID of the sender
     * 
* * .proto.AccountID senderAccountID = 1; */ public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getSenderAccountIDOrBuilder() { if (senderAccountIDBuilder_ != null) { return senderAccountIDBuilder_.getMessageOrBuilder(); } else { return senderAccountID_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : senderAccountID_; } } /** *
     **
     * The accountID of the sender
     * 
* * .proto.AccountID senderAccountID = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> getSenderAccountIDFieldBuilder() { if (senderAccountIDBuilder_ == null) { senderAccountIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>( getSenderAccountID(), getParentForChildren(), isClean()); senderAccountID_ = null; } return senderAccountIDBuilder_; } private com.hedera.hashgraph.sdk.proto.AccountID receiverAccountID_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> receiverAccountIDBuilder_; /** *
     **
     * The accountID of the receiver
     * 
* * .proto.AccountID receiverAccountID = 2; * @return Whether the receiverAccountID field is set. */ public boolean hasReceiverAccountID() { return ((bitField0_ & 0x00000002) != 0); } /** *
     **
     * The accountID of the receiver
     * 
* * .proto.AccountID receiverAccountID = 2; * @return The receiverAccountID. */ public com.hedera.hashgraph.sdk.proto.AccountID getReceiverAccountID() { if (receiverAccountIDBuilder_ == null) { return receiverAccountID_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : receiverAccountID_; } else { return receiverAccountIDBuilder_.getMessage(); } } /** *
     **
     * The accountID of the receiver
     * 
* * .proto.AccountID receiverAccountID = 2; */ public Builder setReceiverAccountID(com.hedera.hashgraph.sdk.proto.AccountID value) { if (receiverAccountIDBuilder_ == null) { if (value == null) { throw new NullPointerException(); } receiverAccountID_ = value; } else { receiverAccountIDBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * The accountID of the receiver
     * 
* * .proto.AccountID receiverAccountID = 2; */ public Builder setReceiverAccountID( com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) { if (receiverAccountIDBuilder_ == null) { receiverAccountID_ = builderForValue.build(); } else { receiverAccountIDBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * The accountID of the receiver
     * 
* * .proto.AccountID receiverAccountID = 2; */ public Builder mergeReceiverAccountID(com.hedera.hashgraph.sdk.proto.AccountID value) { if (receiverAccountIDBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && receiverAccountID_ != null && receiverAccountID_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) { getReceiverAccountIDBuilder().mergeFrom(value); } else { receiverAccountID_ = value; } } else { receiverAccountIDBuilder_.mergeFrom(value); } if (receiverAccountID_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     **
     * The accountID of the receiver
     * 
* * .proto.AccountID receiverAccountID = 2; */ public Builder clearReceiverAccountID() { bitField0_ = (bitField0_ & ~0x00000002); receiverAccountID_ = null; if (receiverAccountIDBuilder_ != null) { receiverAccountIDBuilder_.dispose(); receiverAccountIDBuilder_ = null; } onChanged(); return this; } /** *
     **
     * The accountID of the receiver
     * 
* * .proto.AccountID receiverAccountID = 2; */ public com.hedera.hashgraph.sdk.proto.AccountID.Builder getReceiverAccountIDBuilder() { bitField0_ |= 0x00000002; onChanged(); return getReceiverAccountIDFieldBuilder().getBuilder(); } /** *
     **
     * The accountID of the receiver
     * 
* * .proto.AccountID receiverAccountID = 2; */ public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getReceiverAccountIDOrBuilder() { if (receiverAccountIDBuilder_ != null) { return receiverAccountIDBuilder_.getMessageOrBuilder(); } else { return receiverAccountID_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : receiverAccountID_; } } /** *
     **
     * The accountID of the receiver
     * 
* * .proto.AccountID receiverAccountID = 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> getReceiverAccountIDFieldBuilder() { if (receiverAccountIDBuilder_ == null) { receiverAccountIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>( getReceiverAccountID(), getParentForChildren(), isClean()); receiverAccountID_ = null; } return receiverAccountIDBuilder_; } private long serialNumber_ ; /** *
     **
     * The serial number of the NFT
     * 
* * int64 serialNumber = 3; * @return The serialNumber. */ @java.lang.Override public long getSerialNumber() { return serialNumber_; } /** *
     **
     * The serial number of the NFT
     * 
* * int64 serialNumber = 3; * @param value The serialNumber to set. * @return This builder for chaining. */ public Builder setSerialNumber(long value) { serialNumber_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     **
     * The serial number of the NFT
     * 
* * int64 serialNumber = 3; * @return This builder for chaining. */ public Builder clearSerialNumber() { bitField0_ = (bitField0_ & ~0x00000004); serialNumber_ = 0L; onChanged(); return this; } private boolean isApproval_ ; /** *
     **
     * If true then the transfer is expected to be an approved allowance and the
     * senderAccountID is expected to be the owner. The default is false (omitted).
     * 
* * bool is_approval = 4; * @return The isApproval. */ @java.lang.Override public boolean getIsApproval() { return isApproval_; } /** *
     **
     * If true then the transfer is expected to be an approved allowance and the
     * senderAccountID is expected to be the owner. The default is false (omitted).
     * 
* * bool is_approval = 4; * @param value The isApproval to set. * @return This builder for chaining. */ public Builder setIsApproval(boolean value) { isApproval_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     **
     * If true then the transfer is expected to be an approved allowance and the
     * senderAccountID is expected to be the owner. The default is false (omitted).
     * 
* * bool is_approval = 4; * @return This builder for chaining. */ public Builder clearIsApproval() { bitField0_ = (bitField0_ & ~0x00000008); isApproval_ = false; onChanged(); return this; } @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.NftTransfer) } // @@protoc_insertion_point(class_scope:proto.NftTransfer) private static final com.hedera.hashgraph.sdk.proto.NftTransfer DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.NftTransfer(); } public static com.hedera.hashgraph.sdk.proto.NftTransfer getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NftTransfer 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.NftTransfer getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy