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

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

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

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

/**
 * 
 **
 * A node within a doubly linked list of pending airdrop references.<br/>
 * This internal state message forms the entries in a doubly-linked list
 * of references to pending airdrop entries that are "owed" by a particular
 * account as "sender".
 *
 * Each entry in this list MUST refer to an existing pending airdrop.<br/>
 * The pending airdrop MUST NOT be claimed.<br/>
 * The pending airdrop MUST NOT be canceled.<br/>
 * The pending airdrop `sender` account's `head_pending_airdrop_id` field
 * MUST match the `pending_airdrop_id` field in this message.
 *
 * ### Record Stream Effects
 * This value is not currently published in the record stream.
 * 
* * Protobuf type {@code proto.AccountPendingAirdrop} */ public final class AccountPendingAirdrop extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.AccountPendingAirdrop) AccountPendingAirdropOrBuilder { private static final long serialVersionUID = 0L; // Use AccountPendingAirdrop.newBuilder() to construct. private AccountPendingAirdrop(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AccountPendingAirdrop() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AccountPendingAirdrop(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.AccountPendingAirdropOuterClass.internal_static_proto_AccountPendingAirdrop_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.AccountPendingAirdropOuterClass.internal_static_proto_AccountPendingAirdrop_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.AccountPendingAirdrop.class, com.hedera.hashgraph.sdk.proto.AccountPendingAirdrop.Builder.class); } private int bitField0_; public static final int PENDING_AIRDROP_VALUE_FIELD_NUMBER = 1; private com.hedera.hashgraph.sdk.proto.PendingAirdropValue pendingAirdropValue_; /** *
   **
   * The value of the current airdrop id. SHALL NOT be set for non fungible tokens
   * 
* * .proto.PendingAirdropValue pending_airdrop_value = 1; * @return Whether the pendingAirdropValue field is set. */ @java.lang.Override public boolean hasPendingAirdropValue() { return ((bitField0_ & 0x00000001) != 0); } /** *
   **
   * The value of the current airdrop id. SHALL NOT be set for non fungible tokens
   * 
* * .proto.PendingAirdropValue pending_airdrop_value = 1; * @return The pendingAirdropValue. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.PendingAirdropValue getPendingAirdropValue() { return pendingAirdropValue_ == null ? com.hedera.hashgraph.sdk.proto.PendingAirdropValue.getDefaultInstance() : pendingAirdropValue_; } /** *
   **
   * The value of the current airdrop id. SHALL NOT be set for non fungible tokens
   * 
* * .proto.PendingAirdropValue pending_airdrop_value = 1; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.PendingAirdropValueOrBuilder getPendingAirdropValueOrBuilder() { return pendingAirdropValue_ == null ? com.hedera.hashgraph.sdk.proto.PendingAirdropValue.getDefaultInstance() : pendingAirdropValue_; } public static final int PREVIOUS_AIRDROP_FIELD_NUMBER = 2; private com.hedera.hashgraph.sdk.proto.PendingAirdropId previousAirdrop_; /** *
   **
   * A pending airdrop identifier.<br/>
   * This identifies the specific pending airdrop that precedes this position
   * within the doubly linked list of pending airdrops "owed" by the sending
   * account associated with this account airdrop "list".
   * <p>
   * This SHALL match `pending_airdrop_id` if this is the only entry
   * in the "list".
   * 
* * .proto.PendingAirdropId previous_airdrop = 2; * @return Whether the previousAirdrop field is set. */ @java.lang.Override public boolean hasPreviousAirdrop() { return ((bitField0_ & 0x00000002) != 0); } /** *
   **
   * A pending airdrop identifier.<br/>
   * This identifies the specific pending airdrop that precedes this position
   * within the doubly linked list of pending airdrops "owed" by the sending
   * account associated with this account airdrop "list".
   * <p>
   * This SHALL match `pending_airdrop_id` if this is the only entry
   * in the "list".
   * 
* * .proto.PendingAirdropId previous_airdrop = 2; * @return The previousAirdrop. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.PendingAirdropId getPreviousAirdrop() { return previousAirdrop_ == null ? com.hedera.hashgraph.sdk.proto.PendingAirdropId.getDefaultInstance() : previousAirdrop_; } /** *
   **
   * A pending airdrop identifier.<br/>
   * This identifies the specific pending airdrop that precedes this position
   * within the doubly linked list of pending airdrops "owed" by the sending
   * account associated with this account airdrop "list".
   * <p>
   * This SHALL match `pending_airdrop_id` if this is the only entry
   * in the "list".
   * 
* * .proto.PendingAirdropId previous_airdrop = 2; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.PendingAirdropIdOrBuilder getPreviousAirdropOrBuilder() { return previousAirdrop_ == null ? com.hedera.hashgraph.sdk.proto.PendingAirdropId.getDefaultInstance() : previousAirdrop_; } public static final int NEXT_AIRDROP_FIELD_NUMBER = 3; private com.hedera.hashgraph.sdk.proto.PendingAirdropId nextAirdrop_; /** *
   **
   * A pending airdrop identifier.<br/>
   * This identifies the specific pending airdrop that follows this position
   * within the doubly linked list of pending airdrops "owed" by the sending
   * account associated with this account airdrop "list".
   * <p>
   * This SHALL match `pending_airdrop_id` if this is the only entry
   * in the "list".
   * 
* * .proto.PendingAirdropId next_airdrop = 3; * @return Whether the nextAirdrop field is set. */ @java.lang.Override public boolean hasNextAirdrop() { return ((bitField0_ & 0x00000004) != 0); } /** *
   **
   * A pending airdrop identifier.<br/>
   * This identifies the specific pending airdrop that follows this position
   * within the doubly linked list of pending airdrops "owed" by the sending
   * account associated with this account airdrop "list".
   * <p>
   * This SHALL match `pending_airdrop_id` if this is the only entry
   * in the "list".
   * 
* * .proto.PendingAirdropId next_airdrop = 3; * @return The nextAirdrop. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.PendingAirdropId getNextAirdrop() { return nextAirdrop_ == null ? com.hedera.hashgraph.sdk.proto.PendingAirdropId.getDefaultInstance() : nextAirdrop_; } /** *
   **
   * A pending airdrop identifier.<br/>
   * This identifies the specific pending airdrop that follows this position
   * within the doubly linked list of pending airdrops "owed" by the sending
   * account associated with this account airdrop "list".
   * <p>
   * This SHALL match `pending_airdrop_id` if this is the only entry
   * in the "list".
   * 
* * .proto.PendingAirdropId next_airdrop = 3; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.PendingAirdropIdOrBuilder getNextAirdropOrBuilder() { return nextAirdrop_ == null ? com.hedera.hashgraph.sdk.proto.PendingAirdropId.getDefaultInstance() : nextAirdrop_; } 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, getPendingAirdropValue()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getPreviousAirdrop()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getNextAirdrop()); } 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, getPendingAirdropValue()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPreviousAirdrop()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getNextAirdrop()); } 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.AccountPendingAirdrop)) { return super.equals(obj); } com.hedera.hashgraph.sdk.proto.AccountPendingAirdrop other = (com.hedera.hashgraph.sdk.proto.AccountPendingAirdrop) obj; if (hasPendingAirdropValue() != other.hasPendingAirdropValue()) return false; if (hasPendingAirdropValue()) { if (!getPendingAirdropValue() .equals(other.getPendingAirdropValue())) return false; } if (hasPreviousAirdrop() != other.hasPreviousAirdrop()) return false; if (hasPreviousAirdrop()) { if (!getPreviousAirdrop() .equals(other.getPreviousAirdrop())) return false; } if (hasNextAirdrop() != other.hasNextAirdrop()) return false; if (hasNextAirdrop()) { if (!getNextAirdrop() .equals(other.getNextAirdrop())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasPendingAirdropValue()) { hash = (37 * hash) + PENDING_AIRDROP_VALUE_FIELD_NUMBER; hash = (53 * hash) + getPendingAirdropValue().hashCode(); } if (hasPreviousAirdrop()) { hash = (37 * hash) + PREVIOUS_AIRDROP_FIELD_NUMBER; hash = (53 * hash) + getPreviousAirdrop().hashCode(); } if (hasNextAirdrop()) { hash = (37 * hash) + NEXT_AIRDROP_FIELD_NUMBER; hash = (53 * hash) + getNextAirdrop().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.hashgraph.sdk.proto.AccountPendingAirdrop parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.AccountPendingAirdrop 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.AccountPendingAirdrop parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.AccountPendingAirdrop 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.AccountPendingAirdrop parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.AccountPendingAirdrop 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.AccountPendingAirdrop parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.AccountPendingAirdrop 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.AccountPendingAirdrop parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.AccountPendingAirdrop 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.AccountPendingAirdrop 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.AccountPendingAirdrop 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.AccountPendingAirdrop 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 node within a doubly linked list of pending airdrop references.<br/>
   * This internal state message forms the entries in a doubly-linked list
   * of references to pending airdrop entries that are "owed" by a particular
   * account as "sender".
   *
   * Each entry in this list MUST refer to an existing pending airdrop.<br/>
   * The pending airdrop MUST NOT be claimed.<br/>
   * The pending airdrop MUST NOT be canceled.<br/>
   * The pending airdrop `sender` account's `head_pending_airdrop_id` field
   * MUST match the `pending_airdrop_id` field in this message.
   *
   * ### Record Stream Effects
   * This value is not currently published in the record stream.
   * 
* * Protobuf type {@code proto.AccountPendingAirdrop} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.AccountPendingAirdrop) com.hedera.hashgraph.sdk.proto.AccountPendingAirdropOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.AccountPendingAirdropOuterClass.internal_static_proto_AccountPendingAirdrop_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.AccountPendingAirdropOuterClass.internal_static_proto_AccountPendingAirdrop_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.AccountPendingAirdrop.class, com.hedera.hashgraph.sdk.proto.AccountPendingAirdrop.Builder.class); } // Construct using com.hedera.hashgraph.sdk.proto.AccountPendingAirdrop.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPendingAirdropValueFieldBuilder(); getPreviousAirdropFieldBuilder(); getNextAirdropFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; pendingAirdropValue_ = null; if (pendingAirdropValueBuilder_ != null) { pendingAirdropValueBuilder_.dispose(); pendingAirdropValueBuilder_ = null; } previousAirdrop_ = null; if (previousAirdropBuilder_ != null) { previousAirdropBuilder_.dispose(); previousAirdropBuilder_ = null; } nextAirdrop_ = null; if (nextAirdropBuilder_ != null) { nextAirdropBuilder_.dispose(); nextAirdropBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hedera.hashgraph.sdk.proto.AccountPendingAirdropOuterClass.internal_static_proto_AccountPendingAirdrop_descriptor; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountPendingAirdrop getDefaultInstanceForType() { return com.hedera.hashgraph.sdk.proto.AccountPendingAirdrop.getDefaultInstance(); } @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountPendingAirdrop build() { com.hedera.hashgraph.sdk.proto.AccountPendingAirdrop result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountPendingAirdrop buildPartial() { com.hedera.hashgraph.sdk.proto.AccountPendingAirdrop result = new com.hedera.hashgraph.sdk.proto.AccountPendingAirdrop(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.hedera.hashgraph.sdk.proto.AccountPendingAirdrop result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.pendingAirdropValue_ = pendingAirdropValueBuilder_ == null ? pendingAirdropValue_ : pendingAirdropValueBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.previousAirdrop_ = previousAirdropBuilder_ == null ? previousAirdrop_ : previousAirdropBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.nextAirdrop_ = nextAirdropBuilder_ == null ? nextAirdrop_ : nextAirdropBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.hedera.hashgraph.sdk.proto.AccountPendingAirdrop) { return mergeFrom((com.hedera.hashgraph.sdk.proto.AccountPendingAirdrop)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.AccountPendingAirdrop other) { if (other == com.hedera.hashgraph.sdk.proto.AccountPendingAirdrop.getDefaultInstance()) return this; if (other.hasPendingAirdropValue()) { mergePendingAirdropValue(other.getPendingAirdropValue()); } if (other.hasPreviousAirdrop()) { mergePreviousAirdrop(other.getPreviousAirdrop()); } if (other.hasNextAirdrop()) { mergeNextAirdrop(other.getNextAirdrop()); } 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( getPendingAirdropValueFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getPreviousAirdropFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getNextAirdropFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.hedera.hashgraph.sdk.proto.PendingAirdropValue pendingAirdropValue_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.PendingAirdropValue, com.hedera.hashgraph.sdk.proto.PendingAirdropValue.Builder, com.hedera.hashgraph.sdk.proto.PendingAirdropValueOrBuilder> pendingAirdropValueBuilder_; /** *
     **
     * The value of the current airdrop id. SHALL NOT be set for non fungible tokens
     * 
* * .proto.PendingAirdropValue pending_airdrop_value = 1; * @return Whether the pendingAirdropValue field is set. */ public boolean hasPendingAirdropValue() { return ((bitField0_ & 0x00000001) != 0); } /** *
     **
     * The value of the current airdrop id. SHALL NOT be set for non fungible tokens
     * 
* * .proto.PendingAirdropValue pending_airdrop_value = 1; * @return The pendingAirdropValue. */ public com.hedera.hashgraph.sdk.proto.PendingAirdropValue getPendingAirdropValue() { if (pendingAirdropValueBuilder_ == null) { return pendingAirdropValue_ == null ? com.hedera.hashgraph.sdk.proto.PendingAirdropValue.getDefaultInstance() : pendingAirdropValue_; } else { return pendingAirdropValueBuilder_.getMessage(); } } /** *
     **
     * The value of the current airdrop id. SHALL NOT be set for non fungible tokens
     * 
* * .proto.PendingAirdropValue pending_airdrop_value = 1; */ public Builder setPendingAirdropValue(com.hedera.hashgraph.sdk.proto.PendingAirdropValue value) { if (pendingAirdropValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } pendingAirdropValue_ = value; } else { pendingAirdropValueBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * The value of the current airdrop id. SHALL NOT be set for non fungible tokens
     * 
* * .proto.PendingAirdropValue pending_airdrop_value = 1; */ public Builder setPendingAirdropValue( com.hedera.hashgraph.sdk.proto.PendingAirdropValue.Builder builderForValue) { if (pendingAirdropValueBuilder_ == null) { pendingAirdropValue_ = builderForValue.build(); } else { pendingAirdropValueBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * The value of the current airdrop id. SHALL NOT be set for non fungible tokens
     * 
* * .proto.PendingAirdropValue pending_airdrop_value = 1; */ public Builder mergePendingAirdropValue(com.hedera.hashgraph.sdk.proto.PendingAirdropValue value) { if (pendingAirdropValueBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && pendingAirdropValue_ != null && pendingAirdropValue_ != com.hedera.hashgraph.sdk.proto.PendingAirdropValue.getDefaultInstance()) { getPendingAirdropValueBuilder().mergeFrom(value); } else { pendingAirdropValue_ = value; } } else { pendingAirdropValueBuilder_.mergeFrom(value); } if (pendingAirdropValue_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     **
     * The value of the current airdrop id. SHALL NOT be set for non fungible tokens
     * 
* * .proto.PendingAirdropValue pending_airdrop_value = 1; */ public Builder clearPendingAirdropValue() { bitField0_ = (bitField0_ & ~0x00000001); pendingAirdropValue_ = null; if (pendingAirdropValueBuilder_ != null) { pendingAirdropValueBuilder_.dispose(); pendingAirdropValueBuilder_ = null; } onChanged(); return this; } /** *
     **
     * The value of the current airdrop id. SHALL NOT be set for non fungible tokens
     * 
* * .proto.PendingAirdropValue pending_airdrop_value = 1; */ public com.hedera.hashgraph.sdk.proto.PendingAirdropValue.Builder getPendingAirdropValueBuilder() { bitField0_ |= 0x00000001; onChanged(); return getPendingAirdropValueFieldBuilder().getBuilder(); } /** *
     **
     * The value of the current airdrop id. SHALL NOT be set for non fungible tokens
     * 
* * .proto.PendingAirdropValue pending_airdrop_value = 1; */ public com.hedera.hashgraph.sdk.proto.PendingAirdropValueOrBuilder getPendingAirdropValueOrBuilder() { if (pendingAirdropValueBuilder_ != null) { return pendingAirdropValueBuilder_.getMessageOrBuilder(); } else { return pendingAirdropValue_ == null ? com.hedera.hashgraph.sdk.proto.PendingAirdropValue.getDefaultInstance() : pendingAirdropValue_; } } /** *
     **
     * The value of the current airdrop id. SHALL NOT be set for non fungible tokens
     * 
* * .proto.PendingAirdropValue pending_airdrop_value = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.PendingAirdropValue, com.hedera.hashgraph.sdk.proto.PendingAirdropValue.Builder, com.hedera.hashgraph.sdk.proto.PendingAirdropValueOrBuilder> getPendingAirdropValueFieldBuilder() { if (pendingAirdropValueBuilder_ == null) { pendingAirdropValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.PendingAirdropValue, com.hedera.hashgraph.sdk.proto.PendingAirdropValue.Builder, com.hedera.hashgraph.sdk.proto.PendingAirdropValueOrBuilder>( getPendingAirdropValue(), getParentForChildren(), isClean()); pendingAirdropValue_ = null; } return pendingAirdropValueBuilder_; } private com.hedera.hashgraph.sdk.proto.PendingAirdropId previousAirdrop_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.PendingAirdropId, com.hedera.hashgraph.sdk.proto.PendingAirdropId.Builder, com.hedera.hashgraph.sdk.proto.PendingAirdropIdOrBuilder> previousAirdropBuilder_; /** *
     **
     * A pending airdrop identifier.<br/>
     * This identifies the specific pending airdrop that precedes this position
     * within the doubly linked list of pending airdrops "owed" by the sending
     * account associated with this account airdrop "list".
     * <p>
     * This SHALL match `pending_airdrop_id` if this is the only entry
     * in the "list".
     * 
* * .proto.PendingAirdropId previous_airdrop = 2; * @return Whether the previousAirdrop field is set. */ public boolean hasPreviousAirdrop() { return ((bitField0_ & 0x00000002) != 0); } /** *
     **
     * A pending airdrop identifier.<br/>
     * This identifies the specific pending airdrop that precedes this position
     * within the doubly linked list of pending airdrops "owed" by the sending
     * account associated with this account airdrop "list".
     * <p>
     * This SHALL match `pending_airdrop_id` if this is the only entry
     * in the "list".
     * 
* * .proto.PendingAirdropId previous_airdrop = 2; * @return The previousAirdrop. */ public com.hedera.hashgraph.sdk.proto.PendingAirdropId getPreviousAirdrop() { if (previousAirdropBuilder_ == null) { return previousAirdrop_ == null ? com.hedera.hashgraph.sdk.proto.PendingAirdropId.getDefaultInstance() : previousAirdrop_; } else { return previousAirdropBuilder_.getMessage(); } } /** *
     **
     * A pending airdrop identifier.<br/>
     * This identifies the specific pending airdrop that precedes this position
     * within the doubly linked list of pending airdrops "owed" by the sending
     * account associated with this account airdrop "list".
     * <p>
     * This SHALL match `pending_airdrop_id` if this is the only entry
     * in the "list".
     * 
* * .proto.PendingAirdropId previous_airdrop = 2; */ public Builder setPreviousAirdrop(com.hedera.hashgraph.sdk.proto.PendingAirdropId value) { if (previousAirdropBuilder_ == null) { if (value == null) { throw new NullPointerException(); } previousAirdrop_ = value; } else { previousAirdropBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * A pending airdrop identifier.<br/>
     * This identifies the specific pending airdrop that precedes this position
     * within the doubly linked list of pending airdrops "owed" by the sending
     * account associated with this account airdrop "list".
     * <p>
     * This SHALL match `pending_airdrop_id` if this is the only entry
     * in the "list".
     * 
* * .proto.PendingAirdropId previous_airdrop = 2; */ public Builder setPreviousAirdrop( com.hedera.hashgraph.sdk.proto.PendingAirdropId.Builder builderForValue) { if (previousAirdropBuilder_ == null) { previousAirdrop_ = builderForValue.build(); } else { previousAirdropBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * A pending airdrop identifier.<br/>
     * This identifies the specific pending airdrop that precedes this position
     * within the doubly linked list of pending airdrops "owed" by the sending
     * account associated with this account airdrop "list".
     * <p>
     * This SHALL match `pending_airdrop_id` if this is the only entry
     * in the "list".
     * 
* * .proto.PendingAirdropId previous_airdrop = 2; */ public Builder mergePreviousAirdrop(com.hedera.hashgraph.sdk.proto.PendingAirdropId value) { if (previousAirdropBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && previousAirdrop_ != null && previousAirdrop_ != com.hedera.hashgraph.sdk.proto.PendingAirdropId.getDefaultInstance()) { getPreviousAirdropBuilder().mergeFrom(value); } else { previousAirdrop_ = value; } } else { previousAirdropBuilder_.mergeFrom(value); } if (previousAirdrop_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     **
     * A pending airdrop identifier.<br/>
     * This identifies the specific pending airdrop that precedes this position
     * within the doubly linked list of pending airdrops "owed" by the sending
     * account associated with this account airdrop "list".
     * <p>
     * This SHALL match `pending_airdrop_id` if this is the only entry
     * in the "list".
     * 
* * .proto.PendingAirdropId previous_airdrop = 2; */ public Builder clearPreviousAirdrop() { bitField0_ = (bitField0_ & ~0x00000002); previousAirdrop_ = null; if (previousAirdropBuilder_ != null) { previousAirdropBuilder_.dispose(); previousAirdropBuilder_ = null; } onChanged(); return this; } /** *
     **
     * A pending airdrop identifier.<br/>
     * This identifies the specific pending airdrop that precedes this position
     * within the doubly linked list of pending airdrops "owed" by the sending
     * account associated with this account airdrop "list".
     * <p>
     * This SHALL match `pending_airdrop_id` if this is the only entry
     * in the "list".
     * 
* * .proto.PendingAirdropId previous_airdrop = 2; */ public com.hedera.hashgraph.sdk.proto.PendingAirdropId.Builder getPreviousAirdropBuilder() { bitField0_ |= 0x00000002; onChanged(); return getPreviousAirdropFieldBuilder().getBuilder(); } /** *
     **
     * A pending airdrop identifier.<br/>
     * This identifies the specific pending airdrop that precedes this position
     * within the doubly linked list of pending airdrops "owed" by the sending
     * account associated with this account airdrop "list".
     * <p>
     * This SHALL match `pending_airdrop_id` if this is the only entry
     * in the "list".
     * 
* * .proto.PendingAirdropId previous_airdrop = 2; */ public com.hedera.hashgraph.sdk.proto.PendingAirdropIdOrBuilder getPreviousAirdropOrBuilder() { if (previousAirdropBuilder_ != null) { return previousAirdropBuilder_.getMessageOrBuilder(); } else { return previousAirdrop_ == null ? com.hedera.hashgraph.sdk.proto.PendingAirdropId.getDefaultInstance() : previousAirdrop_; } } /** *
     **
     * A pending airdrop identifier.<br/>
     * This identifies the specific pending airdrop that precedes this position
     * within the doubly linked list of pending airdrops "owed" by the sending
     * account associated with this account airdrop "list".
     * <p>
     * This SHALL match `pending_airdrop_id` if this is the only entry
     * in the "list".
     * 
* * .proto.PendingAirdropId previous_airdrop = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.PendingAirdropId, com.hedera.hashgraph.sdk.proto.PendingAirdropId.Builder, com.hedera.hashgraph.sdk.proto.PendingAirdropIdOrBuilder> getPreviousAirdropFieldBuilder() { if (previousAirdropBuilder_ == null) { previousAirdropBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.PendingAirdropId, com.hedera.hashgraph.sdk.proto.PendingAirdropId.Builder, com.hedera.hashgraph.sdk.proto.PendingAirdropIdOrBuilder>( getPreviousAirdrop(), getParentForChildren(), isClean()); previousAirdrop_ = null; } return previousAirdropBuilder_; } private com.hedera.hashgraph.sdk.proto.PendingAirdropId nextAirdrop_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.PendingAirdropId, com.hedera.hashgraph.sdk.proto.PendingAirdropId.Builder, com.hedera.hashgraph.sdk.proto.PendingAirdropIdOrBuilder> nextAirdropBuilder_; /** *
     **
     * A pending airdrop identifier.<br/>
     * This identifies the specific pending airdrop that follows this position
     * within the doubly linked list of pending airdrops "owed" by the sending
     * account associated with this account airdrop "list".
     * <p>
     * This SHALL match `pending_airdrop_id` if this is the only entry
     * in the "list".
     * 
* * .proto.PendingAirdropId next_airdrop = 3; * @return Whether the nextAirdrop field is set. */ public boolean hasNextAirdrop() { return ((bitField0_ & 0x00000004) != 0); } /** *
     **
     * A pending airdrop identifier.<br/>
     * This identifies the specific pending airdrop that follows this position
     * within the doubly linked list of pending airdrops "owed" by the sending
     * account associated with this account airdrop "list".
     * <p>
     * This SHALL match `pending_airdrop_id` if this is the only entry
     * in the "list".
     * 
* * .proto.PendingAirdropId next_airdrop = 3; * @return The nextAirdrop. */ public com.hedera.hashgraph.sdk.proto.PendingAirdropId getNextAirdrop() { if (nextAirdropBuilder_ == null) { return nextAirdrop_ == null ? com.hedera.hashgraph.sdk.proto.PendingAirdropId.getDefaultInstance() : nextAirdrop_; } else { return nextAirdropBuilder_.getMessage(); } } /** *
     **
     * A pending airdrop identifier.<br/>
     * This identifies the specific pending airdrop that follows this position
     * within the doubly linked list of pending airdrops "owed" by the sending
     * account associated with this account airdrop "list".
     * <p>
     * This SHALL match `pending_airdrop_id` if this is the only entry
     * in the "list".
     * 
* * .proto.PendingAirdropId next_airdrop = 3; */ public Builder setNextAirdrop(com.hedera.hashgraph.sdk.proto.PendingAirdropId value) { if (nextAirdropBuilder_ == null) { if (value == null) { throw new NullPointerException(); } nextAirdrop_ = value; } else { nextAirdropBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     **
     * A pending airdrop identifier.<br/>
     * This identifies the specific pending airdrop that follows this position
     * within the doubly linked list of pending airdrops "owed" by the sending
     * account associated with this account airdrop "list".
     * <p>
     * This SHALL match `pending_airdrop_id` if this is the only entry
     * in the "list".
     * 
* * .proto.PendingAirdropId next_airdrop = 3; */ public Builder setNextAirdrop( com.hedera.hashgraph.sdk.proto.PendingAirdropId.Builder builderForValue) { if (nextAirdropBuilder_ == null) { nextAirdrop_ = builderForValue.build(); } else { nextAirdropBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     **
     * A pending airdrop identifier.<br/>
     * This identifies the specific pending airdrop that follows this position
     * within the doubly linked list of pending airdrops "owed" by the sending
     * account associated with this account airdrop "list".
     * <p>
     * This SHALL match `pending_airdrop_id` if this is the only entry
     * in the "list".
     * 
* * .proto.PendingAirdropId next_airdrop = 3; */ public Builder mergeNextAirdrop(com.hedera.hashgraph.sdk.proto.PendingAirdropId value) { if (nextAirdropBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && nextAirdrop_ != null && nextAirdrop_ != com.hedera.hashgraph.sdk.proto.PendingAirdropId.getDefaultInstance()) { getNextAirdropBuilder().mergeFrom(value); } else { nextAirdrop_ = value; } } else { nextAirdropBuilder_.mergeFrom(value); } if (nextAirdrop_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
     **
     * A pending airdrop identifier.<br/>
     * This identifies the specific pending airdrop that follows this position
     * within the doubly linked list of pending airdrops "owed" by the sending
     * account associated with this account airdrop "list".
     * <p>
     * This SHALL match `pending_airdrop_id` if this is the only entry
     * in the "list".
     * 
* * .proto.PendingAirdropId next_airdrop = 3; */ public Builder clearNextAirdrop() { bitField0_ = (bitField0_ & ~0x00000004); nextAirdrop_ = null; if (nextAirdropBuilder_ != null) { nextAirdropBuilder_.dispose(); nextAirdropBuilder_ = null; } onChanged(); return this; } /** *
     **
     * A pending airdrop identifier.<br/>
     * This identifies the specific pending airdrop that follows this position
     * within the doubly linked list of pending airdrops "owed" by the sending
     * account associated with this account airdrop "list".
     * <p>
     * This SHALL match `pending_airdrop_id` if this is the only entry
     * in the "list".
     * 
* * .proto.PendingAirdropId next_airdrop = 3; */ public com.hedera.hashgraph.sdk.proto.PendingAirdropId.Builder getNextAirdropBuilder() { bitField0_ |= 0x00000004; onChanged(); return getNextAirdropFieldBuilder().getBuilder(); } /** *
     **
     * A pending airdrop identifier.<br/>
     * This identifies the specific pending airdrop that follows this position
     * within the doubly linked list of pending airdrops "owed" by the sending
     * account associated with this account airdrop "list".
     * <p>
     * This SHALL match `pending_airdrop_id` if this is the only entry
     * in the "list".
     * 
* * .proto.PendingAirdropId next_airdrop = 3; */ public com.hedera.hashgraph.sdk.proto.PendingAirdropIdOrBuilder getNextAirdropOrBuilder() { if (nextAirdropBuilder_ != null) { return nextAirdropBuilder_.getMessageOrBuilder(); } else { return nextAirdrop_ == null ? com.hedera.hashgraph.sdk.proto.PendingAirdropId.getDefaultInstance() : nextAirdrop_; } } /** *
     **
     * A pending airdrop identifier.<br/>
     * This identifies the specific pending airdrop that follows this position
     * within the doubly linked list of pending airdrops "owed" by the sending
     * account associated with this account airdrop "list".
     * <p>
     * This SHALL match `pending_airdrop_id` if this is the only entry
     * in the "list".
     * 
* * .proto.PendingAirdropId next_airdrop = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.PendingAirdropId, com.hedera.hashgraph.sdk.proto.PendingAirdropId.Builder, com.hedera.hashgraph.sdk.proto.PendingAirdropIdOrBuilder> getNextAirdropFieldBuilder() { if (nextAirdropBuilder_ == null) { nextAirdropBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.PendingAirdropId, com.hedera.hashgraph.sdk.proto.PendingAirdropId.Builder, com.hedera.hashgraph.sdk.proto.PendingAirdropIdOrBuilder>( getNextAirdrop(), getParentForChildren(), isClean()); nextAirdrop_ = null; } return nextAirdropBuilder_; } @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.AccountPendingAirdrop) } // @@protoc_insertion_point(class_scope:proto.AccountPendingAirdrop) private static final com.hedera.hashgraph.sdk.proto.AccountPendingAirdrop DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.AccountPendingAirdrop(); } public static com.hedera.hashgraph.sdk.proto.AccountPendingAirdrop getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AccountPendingAirdrop 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.AccountPendingAirdrop getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy