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

com.hederahashgraph.api.proto.java.PendingAirdropRecord Maven / Gradle / Ivy

There is a newer version: 0.57.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: transaction_record.proto

package com.hederahashgraph.api.proto.java;

/**
 * 
 **
 * 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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PendingAirdropRecord( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.hederahashgraph.api.proto.java.PendingAirdropId.Builder subBuilder = null; if (pendingAirdropId_ != null) { subBuilder = pendingAirdropId_.toBuilder(); } pendingAirdropId_ = input.readMessage(com.hederahashgraph.api.proto.java.PendingAirdropId.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(pendingAirdropId_); pendingAirdropId_ = subBuilder.buildPartial(); } break; } case 18: { com.hederahashgraph.api.proto.java.PendingAirdropValue.Builder subBuilder = null; if (pendingAirdropValue_ != null) { subBuilder = pendingAirdropValue_.toBuilder(); } pendingAirdropValue_ = input.readMessage(com.hederahashgraph.api.proto.java.PendingAirdropValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(pendingAirdropValue_); pendingAirdropValue_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hederahashgraph.api.proto.java.TransactionRecordOuterClass.internal_static_proto_PendingAirdropRecord_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.TransactionRecordOuterClass.internal_static_proto_PendingAirdropRecord_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.PendingAirdropRecord.class, com.hederahashgraph.api.proto.java.PendingAirdropRecord.Builder.class); } public static final int PENDING_AIRDROP_ID_FIELD_NUMBER = 1; private com.hederahashgraph.api.proto.java.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 pendingAirdropId_ != null; } /** *
   **
   * 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.hederahashgraph.api.proto.java.PendingAirdropId getPendingAirdropId() { return pendingAirdropId_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.PendingAirdropIdOrBuilder getPendingAirdropIdOrBuilder() { return getPendingAirdropId(); } public static final int PENDING_AIRDROP_VALUE_FIELD_NUMBER = 2; private com.hederahashgraph.api.proto.java.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 pendingAirdropValue_ != null; } /** *
   **
   * 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.hederahashgraph.api.proto.java.PendingAirdropValue getPendingAirdropValue() { return pendingAirdropValue_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.PendingAirdropValueOrBuilder getPendingAirdropValueOrBuilder() { return getPendingAirdropValue(); } 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 (pendingAirdropId_ != null) { output.writeMessage(1, getPendingAirdropId()); } if (pendingAirdropValue_ != null) { output.writeMessage(2, getPendingAirdropValue()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (pendingAirdropId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getPendingAirdropId()); } if (pendingAirdropValue_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPendingAirdropValue()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.hederahashgraph.api.proto.java.PendingAirdropRecord)) { return super.equals(obj); } com.hederahashgraph.api.proto.java.PendingAirdropRecord other = (com.hederahashgraph.api.proto.java.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.hederahashgraph.api.proto.java.PendingAirdropRecord parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.PendingAirdropRecord parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hederahashgraph.api.proto.java.PendingAirdropRecord parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.PendingAirdropRecord parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.PendingAirdropRecord parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hederahashgraph.api.proto.java.PendingAirdropRecord parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.PendingAirdropRecord parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.PendingAirdropRecord parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.PendingAirdropRecordOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hederahashgraph.api.proto.java.TransactionRecordOuterClass.internal_static_proto_PendingAirdropRecord_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.TransactionRecordOuterClass.internal_static_proto_PendingAirdropRecord_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.PendingAirdropRecord.class, com.hederahashgraph.api.proto.java.PendingAirdropRecord.Builder.class); } // Construct using com.hederahashgraph.api.proto.java.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) { } } @java.lang.Override public Builder clear() { super.clear(); if (pendingAirdropIdBuilder_ == null) { pendingAirdropId_ = null; } else { pendingAirdropId_ = null; pendingAirdropIdBuilder_ = null; } if (pendingAirdropValueBuilder_ == null) { pendingAirdropValue_ = null; } else { pendingAirdropValue_ = null; pendingAirdropValueBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hederahashgraph.api.proto.java.TransactionRecordOuterClass.internal_static_proto_PendingAirdropRecord_descriptor; } @java.lang.Override public com.hederahashgraph.api.proto.java.PendingAirdropRecord getDefaultInstanceForType() { return com.hederahashgraph.api.proto.java.PendingAirdropRecord.getDefaultInstance(); } @java.lang.Override public com.hederahashgraph.api.proto.java.PendingAirdropRecord build() { com.hederahashgraph.api.proto.java.PendingAirdropRecord result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hederahashgraph.api.proto.java.PendingAirdropRecord buildPartial() { com.hederahashgraph.api.proto.java.PendingAirdropRecord result = new com.hederahashgraph.api.proto.java.PendingAirdropRecord(this); if (pendingAirdropIdBuilder_ == null) { result.pendingAirdropId_ = pendingAirdropId_; } else { result.pendingAirdropId_ = pendingAirdropIdBuilder_.build(); } if (pendingAirdropValueBuilder_ == null) { result.pendingAirdropValue_ = pendingAirdropValue_; } else { result.pendingAirdropValue_ = pendingAirdropValueBuilder_.build(); } 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.PendingAirdropRecord) { return mergeFrom((com.hederahashgraph.api.proto.java.PendingAirdropRecord)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hederahashgraph.api.proto.java.PendingAirdropRecord other) { if (other == com.hederahashgraph.api.proto.java.PendingAirdropRecord.getDefaultInstance()) return this; if (other.hasPendingAirdropId()) { mergePendingAirdropId(other.getPendingAirdropId()); } if (other.hasPendingAirdropValue()) { mergePendingAirdropValue(other.getPendingAirdropValue()); } 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.PendingAirdropRecord parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.hederahashgraph.api.proto.java.PendingAirdropRecord) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.hederahashgraph.api.proto.java.PendingAirdropId pendingAirdropId_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.PendingAirdropId, com.hederahashgraph.api.proto.java.PendingAirdropId.Builder, com.hederahashgraph.api.proto.java.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 pendingAirdropIdBuilder_ != null || pendingAirdropId_ != null; } /** *
     **
     * A unique, composite, identifier for a pending airdrop.
     * This field is REQUIRED.
     * 
* * .proto.PendingAirdropId pending_airdrop_id = 1; * @return The pendingAirdropId. */ public com.hederahashgraph.api.proto.java.PendingAirdropId getPendingAirdropId() { if (pendingAirdropIdBuilder_ == null) { return pendingAirdropId_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.PendingAirdropId value) { if (pendingAirdropIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } pendingAirdropId_ = value; onChanged(); } else { pendingAirdropIdBuilder_.setMessage(value); } return this; } /** *
     **
     * A unique, composite, identifier for a pending airdrop.
     * This field is REQUIRED.
     * 
* * .proto.PendingAirdropId pending_airdrop_id = 1; */ public Builder setPendingAirdropId( com.hederahashgraph.api.proto.java.PendingAirdropId.Builder builderForValue) { if (pendingAirdropIdBuilder_ == null) { pendingAirdropId_ = builderForValue.build(); onChanged(); } else { pendingAirdropIdBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     **
     * A unique, composite, identifier for a pending airdrop.
     * This field is REQUIRED.
     * 
* * .proto.PendingAirdropId pending_airdrop_id = 1; */ public Builder mergePendingAirdropId(com.hederahashgraph.api.proto.java.PendingAirdropId value) { if (pendingAirdropIdBuilder_ == null) { if (pendingAirdropId_ != null) { pendingAirdropId_ = com.hederahashgraph.api.proto.java.PendingAirdropId.newBuilder(pendingAirdropId_).mergeFrom(value).buildPartial(); } else { pendingAirdropId_ = value; } onChanged(); } else { pendingAirdropIdBuilder_.mergeFrom(value); } return this; } /** *
     **
     * A unique, composite, identifier for a pending airdrop.
     * This field is REQUIRED.
     * 
* * .proto.PendingAirdropId pending_airdrop_id = 1; */ public Builder clearPendingAirdropId() { if (pendingAirdropIdBuilder_ == null) { pendingAirdropId_ = null; onChanged(); } else { pendingAirdropId_ = null; pendingAirdropIdBuilder_ = null; } return this; } /** *
     **
     * A unique, composite, identifier for a pending airdrop.
     * This field is REQUIRED.
     * 
* * .proto.PendingAirdropId pending_airdrop_id = 1; */ public com.hederahashgraph.api.proto.java.PendingAirdropId.Builder getPendingAirdropIdBuilder() { onChanged(); return getPendingAirdropIdFieldBuilder().getBuilder(); } /** *
     **
     * A unique, composite, identifier for a pending airdrop.
     * This field is REQUIRED.
     * 
* * .proto.PendingAirdropId pending_airdrop_id = 1; */ public com.hederahashgraph.api.proto.java.PendingAirdropIdOrBuilder getPendingAirdropIdOrBuilder() { if (pendingAirdropIdBuilder_ != null) { return pendingAirdropIdBuilder_.getMessageOrBuilder(); } else { return pendingAirdropId_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.PendingAirdropId, com.hederahashgraph.api.proto.java.PendingAirdropId.Builder, com.hederahashgraph.api.proto.java.PendingAirdropIdOrBuilder> getPendingAirdropIdFieldBuilder() { if (pendingAirdropIdBuilder_ == null) { pendingAirdropIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.PendingAirdropId, com.hederahashgraph.api.proto.java.PendingAirdropId.Builder, com.hederahashgraph.api.proto.java.PendingAirdropIdOrBuilder>( getPendingAirdropId(), getParentForChildren(), isClean()); pendingAirdropId_ = null; } return pendingAirdropIdBuilder_; } private com.hederahashgraph.api.proto.java.PendingAirdropValue pendingAirdropValue_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.PendingAirdropValue, com.hederahashgraph.api.proto.java.PendingAirdropValue.Builder, com.hederahashgraph.api.proto.java.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 pendingAirdropValueBuilder_ != null || pendingAirdropValue_ != null; } /** *
     **
     * 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.hederahashgraph.api.proto.java.PendingAirdropValue getPendingAirdropValue() { if (pendingAirdropValueBuilder_ == null) { return pendingAirdropValue_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.PendingAirdropValue value) { if (pendingAirdropValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } pendingAirdropValue_ = value; onChanged(); } else { pendingAirdropValueBuilder_.setMessage(value); } 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.hederahashgraph.api.proto.java.PendingAirdropValue.Builder builderForValue) { if (pendingAirdropValueBuilder_ == null) { pendingAirdropValue_ = builderForValue.build(); onChanged(); } else { pendingAirdropValueBuilder_.setMessage(builderForValue.build()); } 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.hederahashgraph.api.proto.java.PendingAirdropValue value) { if (pendingAirdropValueBuilder_ == null) { if (pendingAirdropValue_ != null) { pendingAirdropValue_ = com.hederahashgraph.api.proto.java.PendingAirdropValue.newBuilder(pendingAirdropValue_).mergeFrom(value).buildPartial(); } else { pendingAirdropValue_ = value; } onChanged(); } else { pendingAirdropValueBuilder_.mergeFrom(value); } 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() { if (pendingAirdropValueBuilder_ == null) { pendingAirdropValue_ = null; onChanged(); } else { pendingAirdropValue_ = null; pendingAirdropValueBuilder_ = null; } 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.hederahashgraph.api.proto.java.PendingAirdropValue.Builder getPendingAirdropValueBuilder() { 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.hederahashgraph.api.proto.java.PendingAirdropValueOrBuilder getPendingAirdropValueOrBuilder() { if (pendingAirdropValueBuilder_ != null) { return pendingAirdropValueBuilder_.getMessageOrBuilder(); } else { return pendingAirdropValue_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.PendingAirdropValue, com.hederahashgraph.api.proto.java.PendingAirdropValue.Builder, com.hederahashgraph.api.proto.java.PendingAirdropValueOrBuilder> getPendingAirdropValueFieldBuilder() { if (pendingAirdropValueBuilder_ == null) { pendingAirdropValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.PendingAirdropValue, com.hederahashgraph.api.proto.java.PendingAirdropValue.Builder, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.PendingAirdropRecord DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.PendingAirdropRecord(); } public static com.hederahashgraph.api.proto.java.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 { return new PendingAirdropRecord(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.PendingAirdropRecord getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy