com.hedera.hashgraph.sdk.proto.PendingAirdropId 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
// 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 unique, composite, identifier for a pending airdrop.
*
* Each pending airdrop SHALL be uniquely identified by a PendingAirdropId.
* A PendingAirdropId SHALL be recorded when created and MUST be provided in any transaction
* that would modify that pending airdrop (such as a `claimAirdrop` or `cancelAirdrop`).
*
*
* Protobuf type {@code proto.PendingAirdropId}
*/
public final class PendingAirdropId extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.PendingAirdropId)
PendingAirdropIdOrBuilder {
private static final long serialVersionUID = 0L;
// Use PendingAirdropId.newBuilder() to construct.
private PendingAirdropId(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PendingAirdropId() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PendingAirdropId();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_PendingAirdropId_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_PendingAirdropId_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.PendingAirdropId.class, com.hedera.hashgraph.sdk.proto.PendingAirdropId.Builder.class);
}
private int bitField0_;
private int tokenReferenceCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object tokenReference_;
public enum TokenReferenceCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
FUNGIBLE_TOKEN_TYPE(3),
NON_FUNGIBLE_TOKEN(4),
TOKENREFERENCE_NOT_SET(0);
private final int value;
private TokenReferenceCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static TokenReferenceCase valueOf(int value) {
return forNumber(value);
}
public static TokenReferenceCase forNumber(int value) {
switch (value) {
case 3: return FUNGIBLE_TOKEN_TYPE;
case 4: return NON_FUNGIBLE_TOKEN;
case 0: return TOKENREFERENCE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public TokenReferenceCase
getTokenReferenceCase() {
return TokenReferenceCase.forNumber(
tokenReferenceCase_);
}
public static final int SENDER_ID_FIELD_NUMBER = 1;
private com.hedera.hashgraph.sdk.proto.AccountID senderId_;
/**
*
**
* A sending account.<br/>
* This is the account that initiated, and SHALL fund, this pending airdrop.<br/>
* This field is REQUIRED.
*
*
* .proto.AccountID sender_id = 1;
* @return Whether the senderId field is set.
*/
@java.lang.Override
public boolean hasSenderId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* A sending account.<br/>
* This is the account that initiated, and SHALL fund, this pending airdrop.<br/>
* This field is REQUIRED.
*
*
* .proto.AccountID sender_id = 1;
* @return The senderId.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountID getSenderId() {
return senderId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : senderId_;
}
/**
*
**
* A sending account.<br/>
* This is the account that initiated, and SHALL fund, this pending airdrop.<br/>
* This field is REQUIRED.
*
*
* .proto.AccountID sender_id = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getSenderIdOrBuilder() {
return senderId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : senderId_;
}
public static final int RECEIVER_ID_FIELD_NUMBER = 2;
private com.hedera.hashgraph.sdk.proto.AccountID receiverId_;
/**
*
**
* A receiving account.<br/>
* This is the ID of the account that SHALL receive the airdrop.<br/>
* This field is REQUIRED.
*
*
* .proto.AccountID receiver_id = 2;
* @return Whether the receiverId field is set.
*/
@java.lang.Override
public boolean hasReceiverId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* A receiving account.<br/>
* This is the ID of the account that SHALL receive the airdrop.<br/>
* This field is REQUIRED.
*
*
* .proto.AccountID receiver_id = 2;
* @return The receiverId.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountID getReceiverId() {
return receiverId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : receiverId_;
}
/**
*
**
* A receiving account.<br/>
* This is the ID of the account that SHALL receive the airdrop.<br/>
* This field is REQUIRED.
*
*
* .proto.AccountID receiver_id = 2;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getReceiverIdOrBuilder() {
return receiverId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : receiverId_;
}
public static final int FUNGIBLE_TOKEN_TYPE_FIELD_NUMBER = 3;
/**
*
**
* A token ID.<br/>
* This is the type of token for a fungible/common token airdrop.<br/>
* This field is REQUIRED for a fungible/common token and MUST NOT be used for a
* non-fungible/unique token.
*
*
* .proto.TokenID fungible_token_type = 3;
* @return Whether the fungibleTokenType field is set.
*/
@java.lang.Override
public boolean hasFungibleTokenType() {
return tokenReferenceCase_ == 3;
}
/**
*
**
* A token ID.<br/>
* This is the type of token for a fungible/common token airdrop.<br/>
* This field is REQUIRED for a fungible/common token and MUST NOT be used for a
* non-fungible/unique token.
*
*
* .proto.TokenID fungible_token_type = 3;
* @return The fungibleTokenType.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenID getFungibleTokenType() {
if (tokenReferenceCase_ == 3) {
return (com.hedera.hashgraph.sdk.proto.TokenID) tokenReference_;
}
return com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance();
}
/**
*
**
* A token ID.<br/>
* This is the type of token for a fungible/common token airdrop.<br/>
* This field is REQUIRED for a fungible/common token and MUST NOT be used for a
* non-fungible/unique token.
*
*
* .proto.TokenID fungible_token_type = 3;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder getFungibleTokenTypeOrBuilder() {
if (tokenReferenceCase_ == 3) {
return (com.hedera.hashgraph.sdk.proto.TokenID) tokenReference_;
}
return com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance();
}
public static final int NON_FUNGIBLE_TOKEN_FIELD_NUMBER = 4;
/**
*
**
* The id of a single NFT, consisting of a Token ID and serial number.<br/>
* This is the type of token for a non-fungible/unique token airdrop.<br/>
* This field is REQUIRED for a non-fungible/unique token and MUST NOT be used for a
* fungible/common token.
*
*
* .proto.NftID non_fungible_token = 4;
* @return Whether the nonFungibleToken field is set.
*/
@java.lang.Override
public boolean hasNonFungibleToken() {
return tokenReferenceCase_ == 4;
}
/**
*
**
* The id of a single NFT, consisting of a Token ID and serial number.<br/>
* This is the type of token for a non-fungible/unique token airdrop.<br/>
* This field is REQUIRED for a non-fungible/unique token and MUST NOT be used for a
* fungible/common token.
*
*
* .proto.NftID non_fungible_token = 4;
* @return The nonFungibleToken.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.NftID getNonFungibleToken() {
if (tokenReferenceCase_ == 4) {
return (com.hedera.hashgraph.sdk.proto.NftID) tokenReference_;
}
return com.hedera.hashgraph.sdk.proto.NftID.getDefaultInstance();
}
/**
*
**
* The id of a single NFT, consisting of a Token ID and serial number.<br/>
* This is the type of token for a non-fungible/unique token airdrop.<br/>
* This field is REQUIRED for a non-fungible/unique token and MUST NOT be used for a
* fungible/common token.
*
*
* .proto.NftID non_fungible_token = 4;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.NftIDOrBuilder getNonFungibleTokenOrBuilder() {
if (tokenReferenceCase_ == 4) {
return (com.hedera.hashgraph.sdk.proto.NftID) tokenReference_;
}
return com.hedera.hashgraph.sdk.proto.NftID.getDefaultInstance();
}
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, getSenderId());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getReceiverId());
}
if (tokenReferenceCase_ == 3) {
output.writeMessage(3, (com.hedera.hashgraph.sdk.proto.TokenID) tokenReference_);
}
if (tokenReferenceCase_ == 4) {
output.writeMessage(4, (com.hedera.hashgraph.sdk.proto.NftID) tokenReference_);
}
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, getSenderId());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getReceiverId());
}
if (tokenReferenceCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (com.hedera.hashgraph.sdk.proto.TokenID) tokenReference_);
}
if (tokenReferenceCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (com.hedera.hashgraph.sdk.proto.NftID) tokenReference_);
}
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.PendingAirdropId)) {
return super.equals(obj);
}
com.hedera.hashgraph.sdk.proto.PendingAirdropId other = (com.hedera.hashgraph.sdk.proto.PendingAirdropId) obj;
if (hasSenderId() != other.hasSenderId()) return false;
if (hasSenderId()) {
if (!getSenderId()
.equals(other.getSenderId())) return false;
}
if (hasReceiverId() != other.hasReceiverId()) return false;
if (hasReceiverId()) {
if (!getReceiverId()
.equals(other.getReceiverId())) return false;
}
if (!getTokenReferenceCase().equals(other.getTokenReferenceCase())) return false;
switch (tokenReferenceCase_) {
case 3:
if (!getFungibleTokenType()
.equals(other.getFungibleTokenType())) return false;
break;
case 4:
if (!getNonFungibleToken()
.equals(other.getNonFungibleToken())) return false;
break;
case 0:
default:
}
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 (hasSenderId()) {
hash = (37 * hash) + SENDER_ID_FIELD_NUMBER;
hash = (53 * hash) + getSenderId().hashCode();
}
if (hasReceiverId()) {
hash = (37 * hash) + RECEIVER_ID_FIELD_NUMBER;
hash = (53 * hash) + getReceiverId().hashCode();
}
switch (tokenReferenceCase_) {
case 3:
hash = (37 * hash) + FUNGIBLE_TOKEN_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getFungibleTokenType().hashCode();
break;
case 4:
hash = (37 * hash) + NON_FUNGIBLE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getNonFungibleToken().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hashgraph.sdk.proto.PendingAirdropId parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.PendingAirdropId 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.PendingAirdropId parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.PendingAirdropId 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.PendingAirdropId parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.PendingAirdropId 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.PendingAirdropId parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.PendingAirdropId 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.PendingAirdropId parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.PendingAirdropId 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.PendingAirdropId 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.PendingAirdropId 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.PendingAirdropId 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 unique, composite, identifier for a pending airdrop.
*
* Each pending airdrop SHALL be uniquely identified by a PendingAirdropId.
* A PendingAirdropId SHALL be recorded when created and MUST be provided in any transaction
* that would modify that pending airdrop (such as a `claimAirdrop` or `cancelAirdrop`).
*
*
* Protobuf type {@code proto.PendingAirdropId}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.PendingAirdropId)
com.hedera.hashgraph.sdk.proto.PendingAirdropIdOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_PendingAirdropId_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_PendingAirdropId_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.PendingAirdropId.class, com.hedera.hashgraph.sdk.proto.PendingAirdropId.Builder.class);
}
// Construct using com.hedera.hashgraph.sdk.proto.PendingAirdropId.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSenderIdFieldBuilder();
getReceiverIdFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
senderId_ = null;
if (senderIdBuilder_ != null) {
senderIdBuilder_.dispose();
senderIdBuilder_ = null;
}
receiverId_ = null;
if (receiverIdBuilder_ != null) {
receiverIdBuilder_.dispose();
receiverIdBuilder_ = null;
}
if (fungibleTokenTypeBuilder_ != null) {
fungibleTokenTypeBuilder_.clear();
}
if (nonFungibleTokenBuilder_ != null) {
nonFungibleTokenBuilder_.clear();
}
tokenReferenceCase_ = 0;
tokenReference_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_PendingAirdropId_descriptor;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.PendingAirdropId getDefaultInstanceForType() {
return com.hedera.hashgraph.sdk.proto.PendingAirdropId.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.PendingAirdropId build() {
com.hedera.hashgraph.sdk.proto.PendingAirdropId result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.PendingAirdropId buildPartial() {
com.hedera.hashgraph.sdk.proto.PendingAirdropId result = new com.hedera.hashgraph.sdk.proto.PendingAirdropId(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.hedera.hashgraph.sdk.proto.PendingAirdropId result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.senderId_ = senderIdBuilder_ == null
? senderId_
: senderIdBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.receiverId_ = receiverIdBuilder_ == null
? receiverId_
: receiverIdBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(com.hedera.hashgraph.sdk.proto.PendingAirdropId result) {
result.tokenReferenceCase_ = tokenReferenceCase_;
result.tokenReference_ = this.tokenReference_;
if (tokenReferenceCase_ == 3 &&
fungibleTokenTypeBuilder_ != null) {
result.tokenReference_ = fungibleTokenTypeBuilder_.build();
}
if (tokenReferenceCase_ == 4 &&
nonFungibleTokenBuilder_ != null) {
result.tokenReference_ = nonFungibleTokenBuilder_.build();
}
}
@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.PendingAirdropId) {
return mergeFrom((com.hedera.hashgraph.sdk.proto.PendingAirdropId)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.PendingAirdropId other) {
if (other == com.hedera.hashgraph.sdk.proto.PendingAirdropId.getDefaultInstance()) return this;
if (other.hasSenderId()) {
mergeSenderId(other.getSenderId());
}
if (other.hasReceiverId()) {
mergeReceiverId(other.getReceiverId());
}
switch (other.getTokenReferenceCase()) {
case FUNGIBLE_TOKEN_TYPE: {
mergeFungibleTokenType(other.getFungibleTokenType());
break;
}
case NON_FUNGIBLE_TOKEN: {
mergeNonFungibleToken(other.getNonFungibleToken());
break;
}
case TOKENREFERENCE_NOT_SET: {
break;
}
}
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(
getSenderIdFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getReceiverIdFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getFungibleTokenTypeFieldBuilder().getBuilder(),
extensionRegistry);
tokenReferenceCase_ = 3;
break;
} // case 26
case 34: {
input.readMessage(
getNonFungibleTokenFieldBuilder().getBuilder(),
extensionRegistry);
tokenReferenceCase_ = 4;
break;
} // case 34
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 tokenReferenceCase_ = 0;
private java.lang.Object tokenReference_;
public TokenReferenceCase
getTokenReferenceCase() {
return TokenReferenceCase.forNumber(
tokenReferenceCase_);
}
public Builder clearTokenReference() {
tokenReferenceCase_ = 0;
tokenReference_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.hedera.hashgraph.sdk.proto.AccountID senderId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> senderIdBuilder_;
/**
*
**
* A sending account.<br/>
* This is the account that initiated, and SHALL fund, this pending airdrop.<br/>
* This field is REQUIRED.
*
*
* .proto.AccountID sender_id = 1;
* @return Whether the senderId field is set.
*/
public boolean hasSenderId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* A sending account.<br/>
* This is the account that initiated, and SHALL fund, this pending airdrop.<br/>
* This field is REQUIRED.
*
*
* .proto.AccountID sender_id = 1;
* @return The senderId.
*/
public com.hedera.hashgraph.sdk.proto.AccountID getSenderId() {
if (senderIdBuilder_ == null) {
return senderId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : senderId_;
} else {
return senderIdBuilder_.getMessage();
}
}
/**
*
**
* A sending account.<br/>
* This is the account that initiated, and SHALL fund, this pending airdrop.<br/>
* This field is REQUIRED.
*
*
* .proto.AccountID sender_id = 1;
*/
public Builder setSenderId(com.hedera.hashgraph.sdk.proto.AccountID value) {
if (senderIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
senderId_ = value;
} else {
senderIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* A sending account.<br/>
* This is the account that initiated, and SHALL fund, this pending airdrop.<br/>
* This field is REQUIRED.
*
*
* .proto.AccountID sender_id = 1;
*/
public Builder setSenderId(
com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) {
if (senderIdBuilder_ == null) {
senderId_ = builderForValue.build();
} else {
senderIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* A sending account.<br/>
* This is the account that initiated, and SHALL fund, this pending airdrop.<br/>
* This field is REQUIRED.
*
*
* .proto.AccountID sender_id = 1;
*/
public Builder mergeSenderId(com.hedera.hashgraph.sdk.proto.AccountID value) {
if (senderIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
senderId_ != null &&
senderId_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) {
getSenderIdBuilder().mergeFrom(value);
} else {
senderId_ = value;
}
} else {
senderIdBuilder_.mergeFrom(value);
}
if (senderId_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
**
* A sending account.<br/>
* This is the account that initiated, and SHALL fund, this pending airdrop.<br/>
* This field is REQUIRED.
*
*
* .proto.AccountID sender_id = 1;
*/
public Builder clearSenderId() {
bitField0_ = (bitField0_ & ~0x00000001);
senderId_ = null;
if (senderIdBuilder_ != null) {
senderIdBuilder_.dispose();
senderIdBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* A sending account.<br/>
* This is the account that initiated, and SHALL fund, this pending airdrop.<br/>
* This field is REQUIRED.
*
*
* .proto.AccountID sender_id = 1;
*/
public com.hedera.hashgraph.sdk.proto.AccountID.Builder getSenderIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getSenderIdFieldBuilder().getBuilder();
}
/**
*
**
* A sending account.<br/>
* This is the account that initiated, and SHALL fund, this pending airdrop.<br/>
* This field is REQUIRED.
*
*
* .proto.AccountID sender_id = 1;
*/
public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getSenderIdOrBuilder() {
if (senderIdBuilder_ != null) {
return senderIdBuilder_.getMessageOrBuilder();
} else {
return senderId_ == null ?
com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : senderId_;
}
}
/**
*
**
* A sending account.<br/>
* This is the account that initiated, and SHALL fund, this pending airdrop.<br/>
* This field is REQUIRED.
*
*
* .proto.AccountID sender_id = 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>
getSenderIdFieldBuilder() {
if (senderIdBuilder_ == null) {
senderIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>(
getSenderId(),
getParentForChildren(),
isClean());
senderId_ = null;
}
return senderIdBuilder_;
}
private com.hedera.hashgraph.sdk.proto.AccountID receiverId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> receiverIdBuilder_;
/**
*
**
* A receiving account.<br/>
* This is the ID of the account that SHALL receive the airdrop.<br/>
* This field is REQUIRED.
*
*
* .proto.AccountID receiver_id = 2;
* @return Whether the receiverId field is set.
*/
public boolean hasReceiverId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* A receiving account.<br/>
* This is the ID of the account that SHALL receive the airdrop.<br/>
* This field is REQUIRED.
*
*
* .proto.AccountID receiver_id = 2;
* @return The receiverId.
*/
public com.hedera.hashgraph.sdk.proto.AccountID getReceiverId() {
if (receiverIdBuilder_ == null) {
return receiverId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : receiverId_;
} else {
return receiverIdBuilder_.getMessage();
}
}
/**
*
**
* A receiving account.<br/>
* This is the ID of the account that SHALL receive the airdrop.<br/>
* This field is REQUIRED.
*
*
* .proto.AccountID receiver_id = 2;
*/
public Builder setReceiverId(com.hedera.hashgraph.sdk.proto.AccountID value) {
if (receiverIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
receiverId_ = value;
} else {
receiverIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* A receiving account.<br/>
* This is the ID of the account that SHALL receive the airdrop.<br/>
* This field is REQUIRED.
*
*
* .proto.AccountID receiver_id = 2;
*/
public Builder setReceiverId(
com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) {
if (receiverIdBuilder_ == null) {
receiverId_ = builderForValue.build();
} else {
receiverIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* A receiving account.<br/>
* This is the ID of the account that SHALL receive the airdrop.<br/>
* This field is REQUIRED.
*
*
* .proto.AccountID receiver_id = 2;
*/
public Builder mergeReceiverId(com.hedera.hashgraph.sdk.proto.AccountID value) {
if (receiverIdBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
receiverId_ != null &&
receiverId_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) {
getReceiverIdBuilder().mergeFrom(value);
} else {
receiverId_ = value;
}
} else {
receiverIdBuilder_.mergeFrom(value);
}
if (receiverId_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
**
* A receiving account.<br/>
* This is the ID of the account that SHALL receive the airdrop.<br/>
* This field is REQUIRED.
*
*
* .proto.AccountID receiver_id = 2;
*/
public Builder clearReceiverId() {
bitField0_ = (bitField0_ & ~0x00000002);
receiverId_ = null;
if (receiverIdBuilder_ != null) {
receiverIdBuilder_.dispose();
receiverIdBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* A receiving account.<br/>
* This is the ID of the account that SHALL receive the airdrop.<br/>
* This field is REQUIRED.
*
*
* .proto.AccountID receiver_id = 2;
*/
public com.hedera.hashgraph.sdk.proto.AccountID.Builder getReceiverIdBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getReceiverIdFieldBuilder().getBuilder();
}
/**
*
**
* A receiving account.<br/>
* This is the ID of the account that SHALL receive the airdrop.<br/>
* This field is REQUIRED.
*
*
* .proto.AccountID receiver_id = 2;
*/
public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getReceiverIdOrBuilder() {
if (receiverIdBuilder_ != null) {
return receiverIdBuilder_.getMessageOrBuilder();
} else {
return receiverId_ == null ?
com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : receiverId_;
}
}
/**
*
**
* A receiving account.<br/>
* This is the ID of the account that SHALL receive the airdrop.<br/>
* This field is REQUIRED.
*
*
* .proto.AccountID receiver_id = 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>
getReceiverIdFieldBuilder() {
if (receiverIdBuilder_ == null) {
receiverIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>(
getReceiverId(),
getParentForChildren(),
isClean());
receiverId_ = null;
}
return receiverIdBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TokenID, com.hedera.hashgraph.sdk.proto.TokenID.Builder, com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder> fungibleTokenTypeBuilder_;
/**
*
**
* A token ID.<br/>
* This is the type of token for a fungible/common token airdrop.<br/>
* This field is REQUIRED for a fungible/common token and MUST NOT be used for a
* non-fungible/unique token.
*
*
* .proto.TokenID fungible_token_type = 3;
* @return Whether the fungibleTokenType field is set.
*/
@java.lang.Override
public boolean hasFungibleTokenType() {
return tokenReferenceCase_ == 3;
}
/**
*
**
* A token ID.<br/>
* This is the type of token for a fungible/common token airdrop.<br/>
* This field is REQUIRED for a fungible/common token and MUST NOT be used for a
* non-fungible/unique token.
*
*
* .proto.TokenID fungible_token_type = 3;
* @return The fungibleTokenType.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenID getFungibleTokenType() {
if (fungibleTokenTypeBuilder_ == null) {
if (tokenReferenceCase_ == 3) {
return (com.hedera.hashgraph.sdk.proto.TokenID) tokenReference_;
}
return com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance();
} else {
if (tokenReferenceCase_ == 3) {
return fungibleTokenTypeBuilder_.getMessage();
}
return com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance();
}
}
/**
*
**
* A token ID.<br/>
* This is the type of token for a fungible/common token airdrop.<br/>
* This field is REQUIRED for a fungible/common token and MUST NOT be used for a
* non-fungible/unique token.
*
*
* .proto.TokenID fungible_token_type = 3;
*/
public Builder setFungibleTokenType(com.hedera.hashgraph.sdk.proto.TokenID value) {
if (fungibleTokenTypeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tokenReference_ = value;
onChanged();
} else {
fungibleTokenTypeBuilder_.setMessage(value);
}
tokenReferenceCase_ = 3;
return this;
}
/**
*
**
* A token ID.<br/>
* This is the type of token for a fungible/common token airdrop.<br/>
* This field is REQUIRED for a fungible/common token and MUST NOT be used for a
* non-fungible/unique token.
*
*
* .proto.TokenID fungible_token_type = 3;
*/
public Builder setFungibleTokenType(
com.hedera.hashgraph.sdk.proto.TokenID.Builder builderForValue) {
if (fungibleTokenTypeBuilder_ == null) {
tokenReference_ = builderForValue.build();
onChanged();
} else {
fungibleTokenTypeBuilder_.setMessage(builderForValue.build());
}
tokenReferenceCase_ = 3;
return this;
}
/**
*
**
* A token ID.<br/>
* This is the type of token for a fungible/common token airdrop.<br/>
* This field is REQUIRED for a fungible/common token and MUST NOT be used for a
* non-fungible/unique token.
*
*
* .proto.TokenID fungible_token_type = 3;
*/
public Builder mergeFungibleTokenType(com.hedera.hashgraph.sdk.proto.TokenID value) {
if (fungibleTokenTypeBuilder_ == null) {
if (tokenReferenceCase_ == 3 &&
tokenReference_ != com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance()) {
tokenReference_ = com.hedera.hashgraph.sdk.proto.TokenID.newBuilder((com.hedera.hashgraph.sdk.proto.TokenID) tokenReference_)
.mergeFrom(value).buildPartial();
} else {
tokenReference_ = value;
}
onChanged();
} else {
if (tokenReferenceCase_ == 3) {
fungibleTokenTypeBuilder_.mergeFrom(value);
} else {
fungibleTokenTypeBuilder_.setMessage(value);
}
}
tokenReferenceCase_ = 3;
return this;
}
/**
*
**
* A token ID.<br/>
* This is the type of token for a fungible/common token airdrop.<br/>
* This field is REQUIRED for a fungible/common token and MUST NOT be used for a
* non-fungible/unique token.
*
*
* .proto.TokenID fungible_token_type = 3;
*/
public Builder clearFungibleTokenType() {
if (fungibleTokenTypeBuilder_ == null) {
if (tokenReferenceCase_ == 3) {
tokenReferenceCase_ = 0;
tokenReference_ = null;
onChanged();
}
} else {
if (tokenReferenceCase_ == 3) {
tokenReferenceCase_ = 0;
tokenReference_ = null;
}
fungibleTokenTypeBuilder_.clear();
}
return this;
}
/**
*
**
* A token ID.<br/>
* This is the type of token for a fungible/common token airdrop.<br/>
* This field is REQUIRED for a fungible/common token and MUST NOT be used for a
* non-fungible/unique token.
*
*
* .proto.TokenID fungible_token_type = 3;
*/
public com.hedera.hashgraph.sdk.proto.TokenID.Builder getFungibleTokenTypeBuilder() {
return getFungibleTokenTypeFieldBuilder().getBuilder();
}
/**
*
**
* A token ID.<br/>
* This is the type of token for a fungible/common token airdrop.<br/>
* This field is REQUIRED for a fungible/common token and MUST NOT be used for a
* non-fungible/unique token.
*
*
* .proto.TokenID fungible_token_type = 3;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder getFungibleTokenTypeOrBuilder() {
if ((tokenReferenceCase_ == 3) && (fungibleTokenTypeBuilder_ != null)) {
return fungibleTokenTypeBuilder_.getMessageOrBuilder();
} else {
if (tokenReferenceCase_ == 3) {
return (com.hedera.hashgraph.sdk.proto.TokenID) tokenReference_;
}
return com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance();
}
}
/**
*
**
* A token ID.<br/>
* This is the type of token for a fungible/common token airdrop.<br/>
* This field is REQUIRED for a fungible/common token and MUST NOT be used for a
* non-fungible/unique token.
*
*
* .proto.TokenID fungible_token_type = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TokenID, com.hedera.hashgraph.sdk.proto.TokenID.Builder, com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder>
getFungibleTokenTypeFieldBuilder() {
if (fungibleTokenTypeBuilder_ == null) {
if (!(tokenReferenceCase_ == 3)) {
tokenReference_ = com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance();
}
fungibleTokenTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TokenID, com.hedera.hashgraph.sdk.proto.TokenID.Builder, com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder>(
(com.hedera.hashgraph.sdk.proto.TokenID) tokenReference_,
getParentForChildren(),
isClean());
tokenReference_ = null;
}
tokenReferenceCase_ = 3;
onChanged();
return fungibleTokenTypeBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.NftID, com.hedera.hashgraph.sdk.proto.NftID.Builder, com.hedera.hashgraph.sdk.proto.NftIDOrBuilder> nonFungibleTokenBuilder_;
/**
*
**
* The id of a single NFT, consisting of a Token ID and serial number.<br/>
* This is the type of token for a non-fungible/unique token airdrop.<br/>
* This field is REQUIRED for a non-fungible/unique token and MUST NOT be used for a
* fungible/common token.
*
*
* .proto.NftID non_fungible_token = 4;
* @return Whether the nonFungibleToken field is set.
*/
@java.lang.Override
public boolean hasNonFungibleToken() {
return tokenReferenceCase_ == 4;
}
/**
*
**
* The id of a single NFT, consisting of a Token ID and serial number.<br/>
* This is the type of token for a non-fungible/unique token airdrop.<br/>
* This field is REQUIRED for a non-fungible/unique token and MUST NOT be used for a
* fungible/common token.
*
*
* .proto.NftID non_fungible_token = 4;
* @return The nonFungibleToken.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.NftID getNonFungibleToken() {
if (nonFungibleTokenBuilder_ == null) {
if (tokenReferenceCase_ == 4) {
return (com.hedera.hashgraph.sdk.proto.NftID) tokenReference_;
}
return com.hedera.hashgraph.sdk.proto.NftID.getDefaultInstance();
} else {
if (tokenReferenceCase_ == 4) {
return nonFungibleTokenBuilder_.getMessage();
}
return com.hedera.hashgraph.sdk.proto.NftID.getDefaultInstance();
}
}
/**
*
**
* The id of a single NFT, consisting of a Token ID and serial number.<br/>
* This is the type of token for a non-fungible/unique token airdrop.<br/>
* This field is REQUIRED for a non-fungible/unique token and MUST NOT be used for a
* fungible/common token.
*
*
* .proto.NftID non_fungible_token = 4;
*/
public Builder setNonFungibleToken(com.hedera.hashgraph.sdk.proto.NftID value) {
if (nonFungibleTokenBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tokenReference_ = value;
onChanged();
} else {
nonFungibleTokenBuilder_.setMessage(value);
}
tokenReferenceCase_ = 4;
return this;
}
/**
*
**
* The id of a single NFT, consisting of a Token ID and serial number.<br/>
* This is the type of token for a non-fungible/unique token airdrop.<br/>
* This field is REQUIRED for a non-fungible/unique token and MUST NOT be used for a
* fungible/common token.
*
*
* .proto.NftID non_fungible_token = 4;
*/
public Builder setNonFungibleToken(
com.hedera.hashgraph.sdk.proto.NftID.Builder builderForValue) {
if (nonFungibleTokenBuilder_ == null) {
tokenReference_ = builderForValue.build();
onChanged();
} else {
nonFungibleTokenBuilder_.setMessage(builderForValue.build());
}
tokenReferenceCase_ = 4;
return this;
}
/**
*
**
* The id of a single NFT, consisting of a Token ID and serial number.<br/>
* This is the type of token for a non-fungible/unique token airdrop.<br/>
* This field is REQUIRED for a non-fungible/unique token and MUST NOT be used for a
* fungible/common token.
*
*
* .proto.NftID non_fungible_token = 4;
*/
public Builder mergeNonFungibleToken(com.hedera.hashgraph.sdk.proto.NftID value) {
if (nonFungibleTokenBuilder_ == null) {
if (tokenReferenceCase_ == 4 &&
tokenReference_ != com.hedera.hashgraph.sdk.proto.NftID.getDefaultInstance()) {
tokenReference_ = com.hedera.hashgraph.sdk.proto.NftID.newBuilder((com.hedera.hashgraph.sdk.proto.NftID) tokenReference_)
.mergeFrom(value).buildPartial();
} else {
tokenReference_ = value;
}
onChanged();
} else {
if (tokenReferenceCase_ == 4) {
nonFungibleTokenBuilder_.mergeFrom(value);
} else {
nonFungibleTokenBuilder_.setMessage(value);
}
}
tokenReferenceCase_ = 4;
return this;
}
/**
*
**
* The id of a single NFT, consisting of a Token ID and serial number.<br/>
* This is the type of token for a non-fungible/unique token airdrop.<br/>
* This field is REQUIRED for a non-fungible/unique token and MUST NOT be used for a
* fungible/common token.
*
*
* .proto.NftID non_fungible_token = 4;
*/
public Builder clearNonFungibleToken() {
if (nonFungibleTokenBuilder_ == null) {
if (tokenReferenceCase_ == 4) {
tokenReferenceCase_ = 0;
tokenReference_ = null;
onChanged();
}
} else {
if (tokenReferenceCase_ == 4) {
tokenReferenceCase_ = 0;
tokenReference_ = null;
}
nonFungibleTokenBuilder_.clear();
}
return this;
}
/**
*
**
* The id of a single NFT, consisting of a Token ID and serial number.<br/>
* This is the type of token for a non-fungible/unique token airdrop.<br/>
* This field is REQUIRED for a non-fungible/unique token and MUST NOT be used for a
* fungible/common token.
*
*
* .proto.NftID non_fungible_token = 4;
*/
public com.hedera.hashgraph.sdk.proto.NftID.Builder getNonFungibleTokenBuilder() {
return getNonFungibleTokenFieldBuilder().getBuilder();
}
/**
*
**
* The id of a single NFT, consisting of a Token ID and serial number.<br/>
* This is the type of token for a non-fungible/unique token airdrop.<br/>
* This field is REQUIRED for a non-fungible/unique token and MUST NOT be used for a
* fungible/common token.
*
*
* .proto.NftID non_fungible_token = 4;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.NftIDOrBuilder getNonFungibleTokenOrBuilder() {
if ((tokenReferenceCase_ == 4) && (nonFungibleTokenBuilder_ != null)) {
return nonFungibleTokenBuilder_.getMessageOrBuilder();
} else {
if (tokenReferenceCase_ == 4) {
return (com.hedera.hashgraph.sdk.proto.NftID) tokenReference_;
}
return com.hedera.hashgraph.sdk.proto.NftID.getDefaultInstance();
}
}
/**
*
**
* The id of a single NFT, consisting of a Token ID and serial number.<br/>
* This is the type of token for a non-fungible/unique token airdrop.<br/>
* This field is REQUIRED for a non-fungible/unique token and MUST NOT be used for a
* fungible/common token.
*
*
* .proto.NftID non_fungible_token = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.NftID, com.hedera.hashgraph.sdk.proto.NftID.Builder, com.hedera.hashgraph.sdk.proto.NftIDOrBuilder>
getNonFungibleTokenFieldBuilder() {
if (nonFungibleTokenBuilder_ == null) {
if (!(tokenReferenceCase_ == 4)) {
tokenReference_ = com.hedera.hashgraph.sdk.proto.NftID.getDefaultInstance();
}
nonFungibleTokenBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.NftID, com.hedera.hashgraph.sdk.proto.NftID.Builder, com.hedera.hashgraph.sdk.proto.NftIDOrBuilder>(
(com.hedera.hashgraph.sdk.proto.NftID) tokenReference_,
getParentForChildren(),
isClean());
tokenReference_ = null;
}
tokenReferenceCase_ = 4;
onChanged();
return nonFungibleTokenBuilder_;
}
@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.PendingAirdropId)
}
// @@protoc_insertion_point(class_scope:proto.PendingAirdropId)
private static final com.hedera.hashgraph.sdk.proto.PendingAirdropId DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.PendingAirdropId();
}
public static com.hedera.hashgraph.sdk.proto.PendingAirdropId getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PendingAirdropId 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.PendingAirdropId getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}