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

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

There is a newer version: 0.54.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: basic_types.proto

package com.hederahashgraph.api.proto.java;

/**
 * 
 **
 * 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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NftTransfer( 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.AccountID.Builder subBuilder = null; if (senderAccountID_ != null) { subBuilder = senderAccountID_.toBuilder(); } senderAccountID_ = input.readMessage(com.hederahashgraph.api.proto.java.AccountID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(senderAccountID_); senderAccountID_ = subBuilder.buildPartial(); } break; } case 18: { com.hederahashgraph.api.proto.java.AccountID.Builder subBuilder = null; if (receiverAccountID_ != null) { subBuilder = receiverAccountID_.toBuilder(); } receiverAccountID_ = input.readMessage(com.hederahashgraph.api.proto.java.AccountID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(receiverAccountID_); receiverAccountID_ = subBuilder.buildPartial(); } break; } case 24: { serialNumber_ = input.readInt64(); break; } case 32: { isApproval_ = input.readBool(); 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.BasicTypes.internal_static_proto_NftTransfer_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_NftTransfer_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.NftTransfer.class, com.hederahashgraph.api.proto.java.NftTransfer.Builder.class); } public static final int SENDERACCOUNTID_FIELD_NUMBER = 1; private com.hederahashgraph.api.proto.java.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 senderAccountID_ != null; } /** *
   **
   * The accountID of the sender
   * 
* * .proto.AccountID senderAccountID = 1; * @return The senderAccountID. */ @java.lang.Override public com.hederahashgraph.api.proto.java.AccountID getSenderAccountID() { return senderAccountID_ == null ? com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : senderAccountID_; } /** *
   **
   * The accountID of the sender
   * 
* * .proto.AccountID senderAccountID = 1; */ @java.lang.Override public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getSenderAccountIDOrBuilder() { return getSenderAccountID(); } public static final int RECEIVERACCOUNTID_FIELD_NUMBER = 2; private com.hederahashgraph.api.proto.java.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 receiverAccountID_ != null; } /** *
   **
   * The accountID of the receiver
   * 
* * .proto.AccountID receiverAccountID = 2; * @return The receiverAccountID. */ @java.lang.Override public com.hederahashgraph.api.proto.java.AccountID getReceiverAccountID() { return receiverAccountID_ == null ? com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : receiverAccountID_; } /** *
   **
   * The accountID of the receiver
   * 
* * .proto.AccountID receiverAccountID = 2; */ @java.lang.Override public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getReceiverAccountIDOrBuilder() { return getReceiverAccountID(); } public static final int SERIALNUMBER_FIELD_NUMBER = 3; private long serialNumber_; /** *
   **
   * 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_; /** *
   **
   * 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 (senderAccountID_ != null) { output.writeMessage(1, getSenderAccountID()); } if (receiverAccountID_ != null) { output.writeMessage(2, getReceiverAccountID()); } if (serialNumber_ != 0L) { output.writeInt64(3, serialNumber_); } if (isApproval_ != false) { output.writeBool(4, isApproval_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (senderAccountID_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getSenderAccountID()); } if (receiverAccountID_ != null) { 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 += 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.NftTransfer)) { return super.equals(obj); } com.hederahashgraph.api.proto.java.NftTransfer other = (com.hederahashgraph.api.proto.java.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 (!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 (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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.hederahashgraph.api.proto.java.NftTransfer parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.NftTransfer 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.NftTransfer parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.NftTransfer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.NftTransfer 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.NftTransfer parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.NftTransfer parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.NftTransfer 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.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.NftTransferOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_NftTransfer_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_NftTransfer_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.NftTransfer.class, com.hederahashgraph.api.proto.java.NftTransfer.Builder.class); } // Construct using com.hederahashgraph.api.proto.java.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) { } } @java.lang.Override public Builder clear() { super.clear(); if (senderAccountIDBuilder_ == null) { senderAccountID_ = null; } else { senderAccountID_ = null; senderAccountIDBuilder_ = null; } if (receiverAccountIDBuilder_ == null) { receiverAccountID_ = null; } else { receiverAccountID_ = null; receiverAccountIDBuilder_ = null; } serialNumber_ = 0L; isApproval_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_NftTransfer_descriptor; } @java.lang.Override public com.hederahashgraph.api.proto.java.NftTransfer getDefaultInstanceForType() { return com.hederahashgraph.api.proto.java.NftTransfer.getDefaultInstance(); } @java.lang.Override public com.hederahashgraph.api.proto.java.NftTransfer build() { com.hederahashgraph.api.proto.java.NftTransfer result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hederahashgraph.api.proto.java.NftTransfer buildPartial() { com.hederahashgraph.api.proto.java.NftTransfer result = new com.hederahashgraph.api.proto.java.NftTransfer(this); if (senderAccountIDBuilder_ == null) { result.senderAccountID_ = senderAccountID_; } else { result.senderAccountID_ = senderAccountIDBuilder_.build(); } if (receiverAccountIDBuilder_ == null) { result.receiverAccountID_ = receiverAccountID_; } else { result.receiverAccountID_ = receiverAccountIDBuilder_.build(); } result.serialNumber_ = serialNumber_; result.isApproval_ = isApproval_; 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.NftTransfer) { return mergeFrom((com.hederahashgraph.api.proto.java.NftTransfer)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hederahashgraph.api.proto.java.NftTransfer other) { if (other == com.hederahashgraph.api.proto.java.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.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.NftTransfer parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.hederahashgraph.api.proto.java.NftTransfer) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.hederahashgraph.api.proto.java.AccountID senderAccountID_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder> senderAccountIDBuilder_; /** *
     **
     * The accountID of the sender
     * 
* * .proto.AccountID senderAccountID = 1; * @return Whether the senderAccountID field is set. */ public boolean hasSenderAccountID() { return senderAccountIDBuilder_ != null || senderAccountID_ != null; } /** *
     **
     * The accountID of the sender
     * 
* * .proto.AccountID senderAccountID = 1; * @return The senderAccountID. */ public com.hederahashgraph.api.proto.java.AccountID getSenderAccountID() { if (senderAccountIDBuilder_ == null) { return senderAccountID_ == null ? com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : senderAccountID_; } else { return senderAccountIDBuilder_.getMessage(); } } /** *
     **
     * The accountID of the sender
     * 
* * .proto.AccountID senderAccountID = 1; */ public Builder setSenderAccountID(com.hederahashgraph.api.proto.java.AccountID value) { if (senderAccountIDBuilder_ == null) { if (value == null) { throw new NullPointerException(); } senderAccountID_ = value; onChanged(); } else { senderAccountIDBuilder_.setMessage(value); } return this; } /** *
     **
     * The accountID of the sender
     * 
* * .proto.AccountID senderAccountID = 1; */ public Builder setSenderAccountID( com.hederahashgraph.api.proto.java.AccountID.Builder builderForValue) { if (senderAccountIDBuilder_ == null) { senderAccountID_ = builderForValue.build(); onChanged(); } else { senderAccountIDBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     **
     * The accountID of the sender
     * 
* * .proto.AccountID senderAccountID = 1; */ public Builder mergeSenderAccountID(com.hederahashgraph.api.proto.java.AccountID value) { if (senderAccountIDBuilder_ == null) { if (senderAccountID_ != null) { senderAccountID_ = com.hederahashgraph.api.proto.java.AccountID.newBuilder(senderAccountID_).mergeFrom(value).buildPartial(); } else { senderAccountID_ = value; } onChanged(); } else { senderAccountIDBuilder_.mergeFrom(value); } return this; } /** *
     **
     * The accountID of the sender
     * 
* * .proto.AccountID senderAccountID = 1; */ public Builder clearSenderAccountID() { if (senderAccountIDBuilder_ == null) { senderAccountID_ = null; onChanged(); } else { senderAccountID_ = null; senderAccountIDBuilder_ = null; } return this; } /** *
     **
     * The accountID of the sender
     * 
* * .proto.AccountID senderAccountID = 1; */ public com.hederahashgraph.api.proto.java.AccountID.Builder getSenderAccountIDBuilder() { onChanged(); return getSenderAccountIDFieldBuilder().getBuilder(); } /** *
     **
     * The accountID of the sender
     * 
* * .proto.AccountID senderAccountID = 1; */ public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getSenderAccountIDOrBuilder() { if (senderAccountIDBuilder_ != null) { return senderAccountIDBuilder_.getMessageOrBuilder(); } else { return senderAccountID_ == null ? com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : senderAccountID_; } } /** *
     **
     * The accountID of the sender
     * 
* * .proto.AccountID senderAccountID = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder> getSenderAccountIDFieldBuilder() { if (senderAccountIDBuilder_ == null) { senderAccountIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>( getSenderAccountID(), getParentForChildren(), isClean()); senderAccountID_ = null; } return senderAccountIDBuilder_; } private com.hederahashgraph.api.proto.java.AccountID receiverAccountID_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder> receiverAccountIDBuilder_; /** *
     **
     * The accountID of the receiver
     * 
* * .proto.AccountID receiverAccountID = 2; * @return Whether the receiverAccountID field is set. */ public boolean hasReceiverAccountID() { return receiverAccountIDBuilder_ != null || receiverAccountID_ != null; } /** *
     **
     * The accountID of the receiver
     * 
* * .proto.AccountID receiverAccountID = 2; * @return The receiverAccountID. */ public com.hederahashgraph.api.proto.java.AccountID getReceiverAccountID() { if (receiverAccountIDBuilder_ == null) { return receiverAccountID_ == null ? com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : receiverAccountID_; } else { return receiverAccountIDBuilder_.getMessage(); } } /** *
     **
     * The accountID of the receiver
     * 
* * .proto.AccountID receiverAccountID = 2; */ public Builder setReceiverAccountID(com.hederahashgraph.api.proto.java.AccountID value) { if (receiverAccountIDBuilder_ == null) { if (value == null) { throw new NullPointerException(); } receiverAccountID_ = value; onChanged(); } else { receiverAccountIDBuilder_.setMessage(value); } return this; } /** *
     **
     * The accountID of the receiver
     * 
* * .proto.AccountID receiverAccountID = 2; */ public Builder setReceiverAccountID( com.hederahashgraph.api.proto.java.AccountID.Builder builderForValue) { if (receiverAccountIDBuilder_ == null) { receiverAccountID_ = builderForValue.build(); onChanged(); } else { receiverAccountIDBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     **
     * The accountID of the receiver
     * 
* * .proto.AccountID receiverAccountID = 2; */ public Builder mergeReceiverAccountID(com.hederahashgraph.api.proto.java.AccountID value) { if (receiverAccountIDBuilder_ == null) { if (receiverAccountID_ != null) { receiverAccountID_ = com.hederahashgraph.api.proto.java.AccountID.newBuilder(receiverAccountID_).mergeFrom(value).buildPartial(); } else { receiverAccountID_ = value; } onChanged(); } else { receiverAccountIDBuilder_.mergeFrom(value); } return this; } /** *
     **
     * The accountID of the receiver
     * 
* * .proto.AccountID receiverAccountID = 2; */ public Builder clearReceiverAccountID() { if (receiverAccountIDBuilder_ == null) { receiverAccountID_ = null; onChanged(); } else { receiverAccountID_ = null; receiverAccountIDBuilder_ = null; } return this; } /** *
     **
     * The accountID of the receiver
     * 
* * .proto.AccountID receiverAccountID = 2; */ public com.hederahashgraph.api.proto.java.AccountID.Builder getReceiverAccountIDBuilder() { onChanged(); return getReceiverAccountIDFieldBuilder().getBuilder(); } /** *
     **
     * The accountID of the receiver
     * 
* * .proto.AccountID receiverAccountID = 2; */ public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getReceiverAccountIDOrBuilder() { if (receiverAccountIDBuilder_ != null) { return receiverAccountIDBuilder_.getMessageOrBuilder(); } else { return receiverAccountID_ == null ? com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : receiverAccountID_; } } /** *
     **
     * The accountID of the receiver
     * 
* * .proto.AccountID receiverAccountID = 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> getReceiverAccountIDFieldBuilder() { if (receiverAccountIDBuilder_ == null) { receiverAccountIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.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; onChanged(); return this; } /** *
     **
     * The serial number of the NFT
     * 
* * int64 serialNumber = 3; * @return This builder for chaining. */ public Builder clearSerialNumber() { 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; 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() { 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.hederahashgraph.api.proto.java.NftTransfer DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.NftTransfer(); } public static com.hederahashgraph.api.proto.java.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 { return new NftTransfer(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.NftTransfer getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy