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

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

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

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

/**
 * 
 **
 * A record of a new pending airdrop.
 * 
* * Protobuf type {@code proto.PendingAirdropRecord} */ public final class PendingAirdropRecord extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.PendingAirdropRecord) PendingAirdropRecordOrBuilder { private static final long serialVersionUID = 0L; // Use PendingAirdropRecord.newBuilder() to construct. private PendingAirdropRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PendingAirdropRecord() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PendingAirdropRecord(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.TransactionRecordOuterClass.internal_static_proto_PendingAirdropRecord_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.TransactionRecordOuterClass.internal_static_proto_PendingAirdropRecord_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.PendingAirdropRecord.class, com.hedera.hashgraph.sdk.proto.PendingAirdropRecord.Builder.class); } private int bitField0_; public static final int PENDING_AIRDROP_ID_FIELD_NUMBER = 1; private com.hedera.hashgraph.sdk.proto.PendingAirdropId pendingAirdropId_; /** *
   **
   * A unique, composite, identifier for a pending airdrop.
   * This field is REQUIRED.
   * 
* * .proto.PendingAirdropId pending_airdrop_id = 1; * @return Whether the pendingAirdropId field is set. */ @java.lang.Override public boolean hasPendingAirdropId() { return ((bitField0_ & 0x00000001) != 0); } /** *
   **
   * A unique, composite, identifier for a pending airdrop.
   * This field is REQUIRED.
   * 
* * .proto.PendingAirdropId pending_airdrop_id = 1; * @return The pendingAirdropId. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.PendingAirdropId getPendingAirdropId() { return pendingAirdropId_ == null ? com.hedera.hashgraph.sdk.proto.PendingAirdropId.getDefaultInstance() : pendingAirdropId_; } /** *
   **
   * A unique, composite, identifier for a pending airdrop.
   * This field is REQUIRED.
   * 
* * .proto.PendingAirdropId pending_airdrop_id = 1; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.PendingAirdropIdOrBuilder getPendingAirdropIdOrBuilder() { return pendingAirdropId_ == null ? com.hedera.hashgraph.sdk.proto.PendingAirdropId.getDefaultInstance() : pendingAirdropId_; } public static final int PENDING_AIRDROP_VALUE_FIELD_NUMBER = 2; private com.hedera.hashgraph.sdk.proto.PendingAirdropValue pendingAirdropValue_; /** *
   **
   * A single pending airdrop amount.
   * If the pending airdrop is for a fungible/common token this field is REQUIRED
   * and SHALL be the current amount of tokens offered.
   * If the pending airdrop is for a non-fungible/unique token, this field SHALL NOT
   * be set.
   * 
* * .proto.PendingAirdropValue pending_airdrop_value = 2; * @return Whether the pendingAirdropValue field is set. */ @java.lang.Override public boolean hasPendingAirdropValue() { return ((bitField0_ & 0x00000002) != 0); } /** *
   **
   * A single pending airdrop amount.
   * If the pending airdrop is for a fungible/common token this field is REQUIRED
   * and SHALL be the current amount of tokens offered.
   * If the pending airdrop is for a non-fungible/unique token, this field SHALL NOT
   * be set.
   * 
* * .proto.PendingAirdropValue pending_airdrop_value = 2; * @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_; } /** *
   **
   * A single pending airdrop amount.
   * If the pending airdrop is for a fungible/common token this field is REQUIRED
   * and SHALL be the current amount of tokens offered.
   * If the pending airdrop is for a non-fungible/unique token, this field SHALL NOT
   * be set.
   * 
* * .proto.PendingAirdropValue pending_airdrop_value = 2; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.PendingAirdropValueOrBuilder getPendingAirdropValueOrBuilder() { return pendingAirdropValue_ == null ? com.hedera.hashgraph.sdk.proto.PendingAirdropValue.getDefaultInstance() : pendingAirdropValue_; } 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, getPendingAirdropId()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getPendingAirdropValue()); } 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, getPendingAirdropId()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPendingAirdropValue()); } 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.PendingAirdropRecord)) { return super.equals(obj); } com.hedera.hashgraph.sdk.proto.PendingAirdropRecord other = (com.hedera.hashgraph.sdk.proto.PendingAirdropRecord) obj; if (hasPendingAirdropId() != other.hasPendingAirdropId()) return false; if (hasPendingAirdropId()) { if (!getPendingAirdropId() .equals(other.getPendingAirdropId())) return false; } if (hasPendingAirdropValue() != other.hasPendingAirdropValue()) return false; if (hasPendingAirdropValue()) { if (!getPendingAirdropValue() .equals(other.getPendingAirdropValue())) 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 (hasPendingAirdropId()) { hash = (37 * hash) + PENDING_AIRDROP_ID_FIELD_NUMBER; hash = (53 * hash) + getPendingAirdropId().hashCode(); } if (hasPendingAirdropValue()) { hash = (37 * hash) + PENDING_AIRDROP_VALUE_FIELD_NUMBER; hash = (53 * hash) + getPendingAirdropValue().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.hashgraph.sdk.proto.PendingAirdropRecord parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.PendingAirdropRecord 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.PendingAirdropRecord parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.PendingAirdropRecord 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.PendingAirdropRecord parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.PendingAirdropRecord 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.PendingAirdropRecord parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.PendingAirdropRecord 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.PendingAirdropRecord parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.PendingAirdropRecord 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.PendingAirdropRecord 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.PendingAirdropRecord 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.PendingAirdropRecord 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 record of a new pending airdrop.
   * 
* * Protobuf type {@code proto.PendingAirdropRecord} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.PendingAirdropRecord) com.hedera.hashgraph.sdk.proto.PendingAirdropRecordOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.TransactionRecordOuterClass.internal_static_proto_PendingAirdropRecord_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.TransactionRecordOuterClass.internal_static_proto_PendingAirdropRecord_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.PendingAirdropRecord.class, com.hedera.hashgraph.sdk.proto.PendingAirdropRecord.Builder.class); } // Construct using com.hedera.hashgraph.sdk.proto.PendingAirdropRecord.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPendingAirdropIdFieldBuilder(); getPendingAirdropValueFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; pendingAirdropId_ = null; if (pendingAirdropIdBuilder_ != null) { pendingAirdropIdBuilder_.dispose(); pendingAirdropIdBuilder_ = null; } pendingAirdropValue_ = null; if (pendingAirdropValueBuilder_ != null) { pendingAirdropValueBuilder_.dispose(); pendingAirdropValueBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hedera.hashgraph.sdk.proto.TransactionRecordOuterClass.internal_static_proto_PendingAirdropRecord_descriptor; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.PendingAirdropRecord getDefaultInstanceForType() { return com.hedera.hashgraph.sdk.proto.PendingAirdropRecord.getDefaultInstance(); } @java.lang.Override public com.hedera.hashgraph.sdk.proto.PendingAirdropRecord build() { com.hedera.hashgraph.sdk.proto.PendingAirdropRecord result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.PendingAirdropRecord buildPartial() { com.hedera.hashgraph.sdk.proto.PendingAirdropRecord result = new com.hedera.hashgraph.sdk.proto.PendingAirdropRecord(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.hedera.hashgraph.sdk.proto.PendingAirdropRecord result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.pendingAirdropId_ = pendingAirdropIdBuilder_ == null ? pendingAirdropId_ : pendingAirdropIdBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.pendingAirdropValue_ = pendingAirdropValueBuilder_ == null ? pendingAirdropValue_ : pendingAirdropValueBuilder_.build(); to_bitField0_ |= 0x00000002; } 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.PendingAirdropRecord) { return mergeFrom((com.hedera.hashgraph.sdk.proto.PendingAirdropRecord)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.PendingAirdropRecord other) { if (other == com.hedera.hashgraph.sdk.proto.PendingAirdropRecord.getDefaultInstance()) return this; if (other.hasPendingAirdropId()) { mergePendingAirdropId(other.getPendingAirdropId()); } if (other.hasPendingAirdropValue()) { mergePendingAirdropValue(other.getPendingAirdropValue()); } 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( getPendingAirdropIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getPendingAirdropValueFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 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.PendingAirdropId pendingAirdropId_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.PendingAirdropId, com.hedera.hashgraph.sdk.proto.PendingAirdropId.Builder, com.hedera.hashgraph.sdk.proto.PendingAirdropIdOrBuilder> pendingAirdropIdBuilder_; /** *
     **
     * A unique, composite, identifier for a pending airdrop.
     * This field is REQUIRED.
     * 
* * .proto.PendingAirdropId pending_airdrop_id = 1; * @return Whether the pendingAirdropId field is set. */ public boolean hasPendingAirdropId() { return ((bitField0_ & 0x00000001) != 0); } /** *
     **
     * A unique, composite, identifier for a pending airdrop.
     * This field is REQUIRED.
     * 
* * .proto.PendingAirdropId pending_airdrop_id = 1; * @return The pendingAirdropId. */ public com.hedera.hashgraph.sdk.proto.PendingAirdropId getPendingAirdropId() { if (pendingAirdropIdBuilder_ == null) { return pendingAirdropId_ == null ? com.hedera.hashgraph.sdk.proto.PendingAirdropId.getDefaultInstance() : pendingAirdropId_; } else { return pendingAirdropIdBuilder_.getMessage(); } } /** *
     **
     * A unique, composite, identifier for a pending airdrop.
     * This field is REQUIRED.
     * 
* * .proto.PendingAirdropId pending_airdrop_id = 1; */ public Builder setPendingAirdropId(com.hedera.hashgraph.sdk.proto.PendingAirdropId value) { if (pendingAirdropIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } pendingAirdropId_ = value; } else { pendingAirdropIdBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * A unique, composite, identifier for a pending airdrop.
     * This field is REQUIRED.
     * 
* * .proto.PendingAirdropId pending_airdrop_id = 1; */ public Builder setPendingAirdropId( com.hedera.hashgraph.sdk.proto.PendingAirdropId.Builder builderForValue) { if (pendingAirdropIdBuilder_ == null) { pendingAirdropId_ = builderForValue.build(); } else { pendingAirdropIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * A unique, composite, identifier for a pending airdrop.
     * This field is REQUIRED.
     * 
* * .proto.PendingAirdropId pending_airdrop_id = 1; */ public Builder mergePendingAirdropId(com.hedera.hashgraph.sdk.proto.PendingAirdropId value) { if (pendingAirdropIdBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && pendingAirdropId_ != null && pendingAirdropId_ != com.hedera.hashgraph.sdk.proto.PendingAirdropId.getDefaultInstance()) { getPendingAirdropIdBuilder().mergeFrom(value); } else { pendingAirdropId_ = value; } } else { pendingAirdropIdBuilder_.mergeFrom(value); } if (pendingAirdropId_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     **
     * A unique, composite, identifier for a pending airdrop.
     * This field is REQUIRED.
     * 
* * .proto.PendingAirdropId pending_airdrop_id = 1; */ public Builder clearPendingAirdropId() { bitField0_ = (bitField0_ & ~0x00000001); pendingAirdropId_ = null; if (pendingAirdropIdBuilder_ != null) { pendingAirdropIdBuilder_.dispose(); pendingAirdropIdBuilder_ = null; } onChanged(); return this; } /** *
     **
     * A unique, composite, identifier for a pending airdrop.
     * This field is REQUIRED.
     * 
* * .proto.PendingAirdropId pending_airdrop_id = 1; */ public com.hedera.hashgraph.sdk.proto.PendingAirdropId.Builder getPendingAirdropIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getPendingAirdropIdFieldBuilder().getBuilder(); } /** *
     **
     * A unique, composite, identifier for a pending airdrop.
     * This field is REQUIRED.
     * 
* * .proto.PendingAirdropId pending_airdrop_id = 1; */ public com.hedera.hashgraph.sdk.proto.PendingAirdropIdOrBuilder getPendingAirdropIdOrBuilder() { if (pendingAirdropIdBuilder_ != null) { return pendingAirdropIdBuilder_.getMessageOrBuilder(); } else { return pendingAirdropId_ == null ? com.hedera.hashgraph.sdk.proto.PendingAirdropId.getDefaultInstance() : pendingAirdropId_; } } /** *
     **
     * A unique, composite, identifier for a pending airdrop.
     * This field is REQUIRED.
     * 
* * .proto.PendingAirdropId pending_airdrop_id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.PendingAirdropId, com.hedera.hashgraph.sdk.proto.PendingAirdropId.Builder, com.hedera.hashgraph.sdk.proto.PendingAirdropIdOrBuilder> getPendingAirdropIdFieldBuilder() { if (pendingAirdropIdBuilder_ == null) { pendingAirdropIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.PendingAirdropId, com.hedera.hashgraph.sdk.proto.PendingAirdropId.Builder, com.hedera.hashgraph.sdk.proto.PendingAirdropIdOrBuilder>( getPendingAirdropId(), getParentForChildren(), isClean()); pendingAirdropId_ = null; } return pendingAirdropIdBuilder_; } 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_; /** *
     **
     * A single pending airdrop amount.
     * If the pending airdrop is for a fungible/common token this field is REQUIRED
     * and SHALL be the current amount of tokens offered.
     * If the pending airdrop is for a non-fungible/unique token, this field SHALL NOT
     * be set.
     * 
* * .proto.PendingAirdropValue pending_airdrop_value = 2; * @return Whether the pendingAirdropValue field is set. */ public boolean hasPendingAirdropValue() { return ((bitField0_ & 0x00000002) != 0); } /** *
     **
     * A single pending airdrop amount.
     * If the pending airdrop is for a fungible/common token this field is REQUIRED
     * and SHALL be the current amount of tokens offered.
     * If the pending airdrop is for a non-fungible/unique token, this field SHALL NOT
     * be set.
     * 
* * .proto.PendingAirdropValue pending_airdrop_value = 2; * @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(); } } /** *
     **
     * A single pending airdrop amount.
     * If the pending airdrop is for a fungible/common token this field is REQUIRED
     * and SHALL be the current amount of tokens offered.
     * If the pending airdrop is for a non-fungible/unique token, this field SHALL NOT
     * be set.
     * 
* * .proto.PendingAirdropValue pending_airdrop_value = 2; */ 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_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * A single pending airdrop amount.
     * If the pending airdrop is for a fungible/common token this field is REQUIRED
     * and SHALL be the current amount of tokens offered.
     * If the pending airdrop is for a non-fungible/unique token, this field SHALL NOT
     * be set.
     * 
* * .proto.PendingAirdropValue pending_airdrop_value = 2; */ public Builder setPendingAirdropValue( com.hedera.hashgraph.sdk.proto.PendingAirdropValue.Builder builderForValue) { if (pendingAirdropValueBuilder_ == null) { pendingAirdropValue_ = builderForValue.build(); } else { pendingAirdropValueBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * A single pending airdrop amount.
     * If the pending airdrop is for a fungible/common token this field is REQUIRED
     * and SHALL be the current amount of tokens offered.
     * If the pending airdrop is for a non-fungible/unique token, this field SHALL NOT
     * be set.
     * 
* * .proto.PendingAirdropValue pending_airdrop_value = 2; */ public Builder mergePendingAirdropValue(com.hedera.hashgraph.sdk.proto.PendingAirdropValue value) { if (pendingAirdropValueBuilder_ == null) { if (((bitField0_ & 0x00000002) != 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_ |= 0x00000002; onChanged(); } return this; } /** *
     **
     * A single pending airdrop amount.
     * If the pending airdrop is for a fungible/common token this field is REQUIRED
     * and SHALL be the current amount of tokens offered.
     * If the pending airdrop is for a non-fungible/unique token, this field SHALL NOT
     * be set.
     * 
* * .proto.PendingAirdropValue pending_airdrop_value = 2; */ public Builder clearPendingAirdropValue() { bitField0_ = (bitField0_ & ~0x00000002); pendingAirdropValue_ = null; if (pendingAirdropValueBuilder_ != null) { pendingAirdropValueBuilder_.dispose(); pendingAirdropValueBuilder_ = null; } onChanged(); return this; } /** *
     **
     * A single pending airdrop amount.
     * If the pending airdrop is for a fungible/common token this field is REQUIRED
     * and SHALL be the current amount of tokens offered.
     * If the pending airdrop is for a non-fungible/unique token, this field SHALL NOT
     * be set.
     * 
* * .proto.PendingAirdropValue pending_airdrop_value = 2; */ public com.hedera.hashgraph.sdk.proto.PendingAirdropValue.Builder getPendingAirdropValueBuilder() { bitField0_ |= 0x00000002; onChanged(); return getPendingAirdropValueFieldBuilder().getBuilder(); } /** *
     **
     * A single pending airdrop amount.
     * If the pending airdrop is for a fungible/common token this field is REQUIRED
     * and SHALL be the current amount of tokens offered.
     * If the pending airdrop is for a non-fungible/unique token, this field SHALL NOT
     * be set.
     * 
* * .proto.PendingAirdropValue pending_airdrop_value = 2; */ 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_; } } /** *
     **
     * A single pending airdrop amount.
     * If the pending airdrop is for a fungible/common token this field is REQUIRED
     * and SHALL be the current amount of tokens offered.
     * If the pending airdrop is for a non-fungible/unique token, this field SHALL NOT
     * be set.
     * 
* * .proto.PendingAirdropValue pending_airdrop_value = 2; */ 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_; } @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.PendingAirdropRecord) } // @@protoc_insertion_point(class_scope:proto.PendingAirdropRecord) private static final com.hedera.hashgraph.sdk.proto.PendingAirdropRecord DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.PendingAirdropRecord(); } public static com.hedera.hashgraph.sdk.proto.PendingAirdropRecord getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PendingAirdropRecord 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.PendingAirdropRecord getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy