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;
}
}