com.hederahashgraph.api.proto.java.PendingAirdropId Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: basic_types.proto
package com.hederahashgraph.api.proto.java;
/**
*
**
* 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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PendingAirdropId(
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 (senderId_ != null) {
subBuilder = senderId_.toBuilder();
}
senderId_ = input.readMessage(com.hederahashgraph.api.proto.java.AccountID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(senderId_);
senderId_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.hederahashgraph.api.proto.java.AccountID.Builder subBuilder = null;
if (receiverId_ != null) {
subBuilder = receiverId_.toBuilder();
}
receiverId_ = input.readMessage(com.hederahashgraph.api.proto.java.AccountID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(receiverId_);
receiverId_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.hederahashgraph.api.proto.java.TokenID.Builder subBuilder = null;
if (tokenReferenceCase_ == 3) {
subBuilder = ((com.hederahashgraph.api.proto.java.TokenID) tokenReference_).toBuilder();
}
tokenReference_ =
input.readMessage(com.hederahashgraph.api.proto.java.TokenID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.hederahashgraph.api.proto.java.TokenID) tokenReference_);
tokenReference_ = subBuilder.buildPartial();
}
tokenReferenceCase_ = 3;
break;
}
case 34: {
com.hederahashgraph.api.proto.java.NftID.Builder subBuilder = null;
if (tokenReferenceCase_ == 4) {
subBuilder = ((com.hederahashgraph.api.proto.java.NftID) tokenReference_).toBuilder();
}
tokenReference_ =
input.readMessage(com.hederahashgraph.api.proto.java.NftID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.hederahashgraph.api.proto.java.NftID) tokenReference_);
tokenReference_ = subBuilder.buildPartial();
}
tokenReferenceCase_ = 4;
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_PendingAirdropId_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_PendingAirdropId_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.PendingAirdropId.class, com.hederahashgraph.api.proto.java.PendingAirdropId.Builder.class);
}
private int tokenReferenceCase_ = 0;
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.hederahashgraph.api.proto.java.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 senderId_ != null;
}
/**
*
**
* 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.hederahashgraph.api.proto.java.AccountID getSenderId() {
return senderId_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountIDOrBuilder getSenderIdOrBuilder() {
return getSenderId();
}
public static final int RECEIVER_ID_FIELD_NUMBER = 2;
private com.hederahashgraph.api.proto.java.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 receiverId_ != null;
}
/**
*
**
* 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.hederahashgraph.api.proto.java.AccountID getReceiverId() {
return receiverId_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountIDOrBuilder getReceiverIdOrBuilder() {
return getReceiverId();
}
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.hederahashgraph.api.proto.java.TokenID getFungibleTokenType() {
if (tokenReferenceCase_ == 3) {
return (com.hederahashgraph.api.proto.java.TokenID) tokenReference_;
}
return com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TokenIDOrBuilder getFungibleTokenTypeOrBuilder() {
if (tokenReferenceCase_ == 3) {
return (com.hederahashgraph.api.proto.java.TokenID) tokenReference_;
}
return com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.NftID getNonFungibleToken() {
if (tokenReferenceCase_ == 4) {
return (com.hederahashgraph.api.proto.java.NftID) tokenReference_;
}
return com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.NftIDOrBuilder getNonFungibleTokenOrBuilder() {
if (tokenReferenceCase_ == 4) {
return (com.hederahashgraph.api.proto.java.NftID) tokenReference_;
}
return com.hederahashgraph.api.proto.java.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 (senderId_ != null) {
output.writeMessage(1, getSenderId());
}
if (receiverId_ != null) {
output.writeMessage(2, getReceiverId());
}
if (tokenReferenceCase_ == 3) {
output.writeMessage(3, (com.hederahashgraph.api.proto.java.TokenID) tokenReference_);
}
if (tokenReferenceCase_ == 4) {
output.writeMessage(4, (com.hederahashgraph.api.proto.java.NftID) tokenReference_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (senderId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getSenderId());
}
if (receiverId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getReceiverId());
}
if (tokenReferenceCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (com.hederahashgraph.api.proto.java.TokenID) tokenReference_);
}
if (tokenReferenceCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (com.hederahashgraph.api.proto.java.NftID) tokenReference_);
}
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.PendingAirdropId)) {
return super.equals(obj);
}
com.hederahashgraph.api.proto.java.PendingAirdropId other = (com.hederahashgraph.api.proto.java.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 (!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 (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) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hederahashgraph.api.proto.java.PendingAirdropId parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.PendingAirdropId 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.PendingAirdropId parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.PendingAirdropId parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.PendingAirdropId 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.PendingAirdropId parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.PendingAirdropId parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.PendingAirdropId 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.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.PendingAirdropIdOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_PendingAirdropId_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_PendingAirdropId_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.PendingAirdropId.class, com.hederahashgraph.api.proto.java.PendingAirdropId.Builder.class);
}
// Construct using com.hederahashgraph.api.proto.java.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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (senderIdBuilder_ == null) {
senderId_ = null;
} else {
senderId_ = null;
senderIdBuilder_ = null;
}
if (receiverIdBuilder_ == null) {
receiverId_ = null;
} else {
receiverId_ = null;
receiverIdBuilder_ = null;
}
tokenReferenceCase_ = 0;
tokenReference_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_PendingAirdropId_descriptor;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.PendingAirdropId getDefaultInstanceForType() {
return com.hederahashgraph.api.proto.java.PendingAirdropId.getDefaultInstance();
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.PendingAirdropId build() {
com.hederahashgraph.api.proto.java.PendingAirdropId result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.PendingAirdropId buildPartial() {
com.hederahashgraph.api.proto.java.PendingAirdropId result = new com.hederahashgraph.api.proto.java.PendingAirdropId(this);
if (senderIdBuilder_ == null) {
result.senderId_ = senderId_;
} else {
result.senderId_ = senderIdBuilder_.build();
}
if (receiverIdBuilder_ == null) {
result.receiverId_ = receiverId_;
} else {
result.receiverId_ = receiverIdBuilder_.build();
}
if (tokenReferenceCase_ == 3) {
if (fungibleTokenTypeBuilder_ == null) {
result.tokenReference_ = tokenReference_;
} else {
result.tokenReference_ = fungibleTokenTypeBuilder_.build();
}
}
if (tokenReferenceCase_ == 4) {
if (nonFungibleTokenBuilder_ == null) {
result.tokenReference_ = tokenReference_;
} else {
result.tokenReference_ = nonFungibleTokenBuilder_.build();
}
}
result.tokenReferenceCase_ = tokenReferenceCase_;
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.PendingAirdropId) {
return mergeFrom((com.hederahashgraph.api.proto.java.PendingAirdropId)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hederahashgraph.api.proto.java.PendingAirdropId other) {
if (other == com.hederahashgraph.api.proto.java.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.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.PendingAirdropId parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hederahashgraph.api.proto.java.PendingAirdropId) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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 com.hederahashgraph.api.proto.java.AccountID senderId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.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 senderIdBuilder_ != null || senderId_ != null;
}
/**
*
**
* 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.hederahashgraph.api.proto.java.AccountID getSenderId() {
if (senderIdBuilder_ == null) {
return senderId_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountID value) {
if (senderIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
senderId_ = value;
onChanged();
} else {
senderIdBuilder_.setMessage(value);
}
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.hederahashgraph.api.proto.java.AccountID.Builder builderForValue) {
if (senderIdBuilder_ == null) {
senderId_ = builderForValue.build();
onChanged();
} else {
senderIdBuilder_.setMessage(builderForValue.build());
}
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.hederahashgraph.api.proto.java.AccountID value) {
if (senderIdBuilder_ == null) {
if (senderId_ != null) {
senderId_ =
com.hederahashgraph.api.proto.java.AccountID.newBuilder(senderId_).mergeFrom(value).buildPartial();
} else {
senderId_ = value;
}
onChanged();
} else {
senderIdBuilder_.mergeFrom(value);
}
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() {
if (senderIdBuilder_ == null) {
senderId_ = null;
onChanged();
} else {
senderId_ = null;
senderIdBuilder_ = null;
}
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.hederahashgraph.api.proto.java.AccountID.Builder getSenderIdBuilder() {
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.hederahashgraph.api.proto.java.AccountIDOrBuilder getSenderIdOrBuilder() {
if (senderIdBuilder_ != null) {
return senderIdBuilder_.getMessageOrBuilder();
} else {
return senderId_ == null ?
com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>
getSenderIdFieldBuilder() {
if (senderIdBuilder_ == null) {
senderIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>(
getSenderId(),
getParentForChildren(),
isClean());
senderId_ = null;
}
return senderIdBuilder_;
}
private com.hederahashgraph.api.proto.java.AccountID receiverId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.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 receiverIdBuilder_ != null || receiverId_ != null;
}
/**
*
**
* 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.hederahashgraph.api.proto.java.AccountID getReceiverId() {
if (receiverIdBuilder_ == null) {
return receiverId_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountID value) {
if (receiverIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
receiverId_ = value;
onChanged();
} else {
receiverIdBuilder_.setMessage(value);
}
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.hederahashgraph.api.proto.java.AccountID.Builder builderForValue) {
if (receiverIdBuilder_ == null) {
receiverId_ = builderForValue.build();
onChanged();
} else {
receiverIdBuilder_.setMessage(builderForValue.build());
}
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.hederahashgraph.api.proto.java.AccountID value) {
if (receiverIdBuilder_ == null) {
if (receiverId_ != null) {
receiverId_ =
com.hederahashgraph.api.proto.java.AccountID.newBuilder(receiverId_).mergeFrom(value).buildPartial();
} else {
receiverId_ = value;
}
onChanged();
} else {
receiverIdBuilder_.mergeFrom(value);
}
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() {
if (receiverIdBuilder_ == null) {
receiverId_ = null;
onChanged();
} else {
receiverId_ = null;
receiverIdBuilder_ = null;
}
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.hederahashgraph.api.proto.java.AccountID.Builder getReceiverIdBuilder() {
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.hederahashgraph.api.proto.java.AccountIDOrBuilder getReceiverIdOrBuilder() {
if (receiverIdBuilder_ != null) {
return receiverIdBuilder_.getMessageOrBuilder();
} else {
return receiverId_ == null ?
com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>
getReceiverIdFieldBuilder() {
if (receiverIdBuilder_ == null) {
receiverIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>(
getReceiverId(),
getParentForChildren(),
isClean());
receiverId_ = null;
}
return receiverIdBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TokenID, com.hederahashgraph.api.proto.java.TokenID.Builder, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TokenID getFungibleTokenType() {
if (fungibleTokenTypeBuilder_ == null) {
if (tokenReferenceCase_ == 3) {
return (com.hederahashgraph.api.proto.java.TokenID) tokenReference_;
}
return com.hederahashgraph.api.proto.java.TokenID.getDefaultInstance();
} else {
if (tokenReferenceCase_ == 3) {
return fungibleTokenTypeBuilder_.getMessage();
}
return com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TokenID value) {
if (fungibleTokenTypeBuilder_ == null) {
if (tokenReferenceCase_ == 3 &&
tokenReference_ != com.hederahashgraph.api.proto.java.TokenID.getDefaultInstance()) {
tokenReference_ = com.hederahashgraph.api.proto.java.TokenID.newBuilder((com.hederahashgraph.api.proto.java.TokenID) tokenReference_)
.mergeFrom(value).buildPartial();
} else {
tokenReference_ = value;
}
onChanged();
} else {
if (tokenReferenceCase_ == 3) {
fungibleTokenTypeBuilder_.mergeFrom(value);
}
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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TokenIDOrBuilder getFungibleTokenTypeOrBuilder() {
if ((tokenReferenceCase_ == 3) && (fungibleTokenTypeBuilder_ != null)) {
return fungibleTokenTypeBuilder_.getMessageOrBuilder();
} else {
if (tokenReferenceCase_ == 3) {
return (com.hederahashgraph.api.proto.java.TokenID) tokenReference_;
}
return com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TokenID, com.hederahashgraph.api.proto.java.TokenID.Builder, com.hederahashgraph.api.proto.java.TokenIDOrBuilder>
getFungibleTokenTypeFieldBuilder() {
if (fungibleTokenTypeBuilder_ == null) {
if (!(tokenReferenceCase_ == 3)) {
tokenReference_ = com.hederahashgraph.api.proto.java.TokenID.getDefaultInstance();
}
fungibleTokenTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TokenID, com.hederahashgraph.api.proto.java.TokenID.Builder, com.hederahashgraph.api.proto.java.TokenIDOrBuilder>(
(com.hederahashgraph.api.proto.java.TokenID) tokenReference_,
getParentForChildren(),
isClean());
tokenReference_ = null;
}
tokenReferenceCase_ = 3;
onChanged();;
return fungibleTokenTypeBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.NftID, com.hederahashgraph.api.proto.java.NftID.Builder, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.NftID getNonFungibleToken() {
if (nonFungibleTokenBuilder_ == null) {
if (tokenReferenceCase_ == 4) {
return (com.hederahashgraph.api.proto.java.NftID) tokenReference_;
}
return com.hederahashgraph.api.proto.java.NftID.getDefaultInstance();
} else {
if (tokenReferenceCase_ == 4) {
return nonFungibleTokenBuilder_.getMessage();
}
return com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.NftID value) {
if (nonFungibleTokenBuilder_ == null) {
if (tokenReferenceCase_ == 4 &&
tokenReference_ != com.hederahashgraph.api.proto.java.NftID.getDefaultInstance()) {
tokenReference_ = com.hederahashgraph.api.proto.java.NftID.newBuilder((com.hederahashgraph.api.proto.java.NftID) tokenReference_)
.mergeFrom(value).buildPartial();
} else {
tokenReference_ = value;
}
onChanged();
} else {
if (tokenReferenceCase_ == 4) {
nonFungibleTokenBuilder_.mergeFrom(value);
}
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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.NftIDOrBuilder getNonFungibleTokenOrBuilder() {
if ((tokenReferenceCase_ == 4) && (nonFungibleTokenBuilder_ != null)) {
return nonFungibleTokenBuilder_.getMessageOrBuilder();
} else {
if (tokenReferenceCase_ == 4) {
return (com.hederahashgraph.api.proto.java.NftID) tokenReference_;
}
return com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.NftID, com.hederahashgraph.api.proto.java.NftID.Builder, com.hederahashgraph.api.proto.java.NftIDOrBuilder>
getNonFungibleTokenFieldBuilder() {
if (nonFungibleTokenBuilder_ == null) {
if (!(tokenReferenceCase_ == 4)) {
tokenReference_ = com.hederahashgraph.api.proto.java.NftID.getDefaultInstance();
}
nonFungibleTokenBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.NftID, com.hederahashgraph.api.proto.java.NftID.Builder, com.hederahashgraph.api.proto.java.NftIDOrBuilder>(
(com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.PendingAirdropId DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.PendingAirdropId();
}
public static com.hederahashgraph.api.proto.java.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 {
return new PendingAirdropId(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.PendingAirdropId getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}