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

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

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

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

/**
 * 
 **
 * Token cancel airdrop<br/>
 * Remove one or more pending airdrops from state on behalf of the sender(s)
 * for each airdrop.
 *
 * Each pending airdrop canceled SHALL be removed from state and SHALL NOT be available to claim.<br/>
 * Each cancellation SHALL be represented in the transaction body and SHALL NOT be restated
 * in the record file.<br/>
 * All cancellations MUST succeed for this transaction to succeed.
 * 
* * Protobuf type {@code proto.TokenCancelAirdropTransactionBody} */ public final class TokenCancelAirdropTransactionBody extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.TokenCancelAirdropTransactionBody) TokenCancelAirdropTransactionBodyOrBuilder { private static final long serialVersionUID = 0L; // Use TokenCancelAirdropTransactionBody.newBuilder() to construct. private TokenCancelAirdropTransactionBody(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TokenCancelAirdropTransactionBody() { pendingAirdrops_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TokenCancelAirdropTransactionBody(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.TokenCancelAirdrop.internal_static_proto_TokenCancelAirdropTransactionBody_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.TokenCancelAirdrop.internal_static_proto_TokenCancelAirdropTransactionBody_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.TokenCancelAirdropTransactionBody.class, com.hedera.hashgraph.sdk.proto.TokenCancelAirdropTransactionBody.Builder.class); } public static final int PENDING_AIRDROPS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List pendingAirdrops_; /** *
   **
   * A list of one or more pending airdrop identifiers.<br/>
   * This list declares the set of pending airdrop entries that the client
   * wishes to cancel; on success all listed pending airdrop entries
   * will be removed.
   * <p>
   * This transaction MUST be signed by the account referenced by a `sender_id` for
   * each entry in this list.<br/>
   * This list MUST NOT have any duplicate entries.<br/>
   * This list MUST contain between 1 and 10 entries, inclusive.
   * 
* * repeated .proto.PendingAirdropId pending_airdrops = 1; */ @java.lang.Override public java.util.List getPendingAirdropsList() { return pendingAirdrops_; } /** *
   **
   * A list of one or more pending airdrop identifiers.<br/>
   * This list declares the set of pending airdrop entries that the client
   * wishes to cancel; on success all listed pending airdrop entries
   * will be removed.
   * <p>
   * This transaction MUST be signed by the account referenced by a `sender_id` for
   * each entry in this list.<br/>
   * This list MUST NOT have any duplicate entries.<br/>
   * This list MUST contain between 1 and 10 entries, inclusive.
   * 
* * repeated .proto.PendingAirdropId pending_airdrops = 1; */ @java.lang.Override public java.util.List getPendingAirdropsOrBuilderList() { return pendingAirdrops_; } /** *
   **
   * A list of one or more pending airdrop identifiers.<br/>
   * This list declares the set of pending airdrop entries that the client
   * wishes to cancel; on success all listed pending airdrop entries
   * will be removed.
   * <p>
   * This transaction MUST be signed by the account referenced by a `sender_id` for
   * each entry in this list.<br/>
   * This list MUST NOT have any duplicate entries.<br/>
   * This list MUST contain between 1 and 10 entries, inclusive.
   * 
* * repeated .proto.PendingAirdropId pending_airdrops = 1; */ @java.lang.Override public int getPendingAirdropsCount() { return pendingAirdrops_.size(); } /** *
   **
   * A list of one or more pending airdrop identifiers.<br/>
   * This list declares the set of pending airdrop entries that the client
   * wishes to cancel; on success all listed pending airdrop entries
   * will be removed.
   * <p>
   * This transaction MUST be signed by the account referenced by a `sender_id` for
   * each entry in this list.<br/>
   * This list MUST NOT have any duplicate entries.<br/>
   * This list MUST contain between 1 and 10 entries, inclusive.
   * 
* * repeated .proto.PendingAirdropId pending_airdrops = 1; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.PendingAirdropId getPendingAirdrops(int index) { return pendingAirdrops_.get(index); } /** *
   **
   * A list of one or more pending airdrop identifiers.<br/>
   * This list declares the set of pending airdrop entries that the client
   * wishes to cancel; on success all listed pending airdrop entries
   * will be removed.
   * <p>
   * This transaction MUST be signed by the account referenced by a `sender_id` for
   * each entry in this list.<br/>
   * This list MUST NOT have any duplicate entries.<br/>
   * This list MUST contain between 1 and 10 entries, inclusive.
   * 
* * repeated .proto.PendingAirdropId pending_airdrops = 1; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.PendingAirdropIdOrBuilder getPendingAirdropsOrBuilder( int index) { return pendingAirdrops_.get(index); } 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 { for (int i = 0; i < pendingAirdrops_.size(); i++) { output.writeMessage(1, pendingAirdrops_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < pendingAirdrops_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, pendingAirdrops_.get(i)); } 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.TokenCancelAirdropTransactionBody)) { return super.equals(obj); } com.hedera.hashgraph.sdk.proto.TokenCancelAirdropTransactionBody other = (com.hedera.hashgraph.sdk.proto.TokenCancelAirdropTransactionBody) obj; if (!getPendingAirdropsList() .equals(other.getPendingAirdropsList())) 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 (getPendingAirdropsCount() > 0) { hash = (37 * hash) + PENDING_AIRDROPS_FIELD_NUMBER; hash = (53 * hash) + getPendingAirdropsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.hashgraph.sdk.proto.TokenCancelAirdropTransactionBody parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.TokenCancelAirdropTransactionBody 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.TokenCancelAirdropTransactionBody parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.TokenCancelAirdropTransactionBody 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.TokenCancelAirdropTransactionBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.TokenCancelAirdropTransactionBody 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.TokenCancelAirdropTransactionBody parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.TokenCancelAirdropTransactionBody 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.TokenCancelAirdropTransactionBody parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.TokenCancelAirdropTransactionBody 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.TokenCancelAirdropTransactionBody 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.TokenCancelAirdropTransactionBody 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.TokenCancelAirdropTransactionBody 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; } /** *
   **
   * Token cancel airdrop<br/>
   * Remove one or more pending airdrops from state on behalf of the sender(s)
   * for each airdrop.
   *
   * Each pending airdrop canceled SHALL be removed from state and SHALL NOT be available to claim.<br/>
   * Each cancellation SHALL be represented in the transaction body and SHALL NOT be restated
   * in the record file.<br/>
   * All cancellations MUST succeed for this transaction to succeed.
   * 
* * Protobuf type {@code proto.TokenCancelAirdropTransactionBody} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.TokenCancelAirdropTransactionBody) com.hedera.hashgraph.sdk.proto.TokenCancelAirdropTransactionBodyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.TokenCancelAirdrop.internal_static_proto_TokenCancelAirdropTransactionBody_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.TokenCancelAirdrop.internal_static_proto_TokenCancelAirdropTransactionBody_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.TokenCancelAirdropTransactionBody.class, com.hedera.hashgraph.sdk.proto.TokenCancelAirdropTransactionBody.Builder.class); } // Construct using com.hedera.hashgraph.sdk.proto.TokenCancelAirdropTransactionBody.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (pendingAirdropsBuilder_ == null) { pendingAirdrops_ = java.util.Collections.emptyList(); } else { pendingAirdrops_ = null; pendingAirdropsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hedera.hashgraph.sdk.proto.TokenCancelAirdrop.internal_static_proto_TokenCancelAirdropTransactionBody_descriptor; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.TokenCancelAirdropTransactionBody getDefaultInstanceForType() { return com.hedera.hashgraph.sdk.proto.TokenCancelAirdropTransactionBody.getDefaultInstance(); } @java.lang.Override public com.hedera.hashgraph.sdk.proto.TokenCancelAirdropTransactionBody build() { com.hedera.hashgraph.sdk.proto.TokenCancelAirdropTransactionBody result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.TokenCancelAirdropTransactionBody buildPartial() { com.hedera.hashgraph.sdk.proto.TokenCancelAirdropTransactionBody result = new com.hedera.hashgraph.sdk.proto.TokenCancelAirdropTransactionBody(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.hedera.hashgraph.sdk.proto.TokenCancelAirdropTransactionBody result) { if (pendingAirdropsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { pendingAirdrops_ = java.util.Collections.unmodifiableList(pendingAirdrops_); bitField0_ = (bitField0_ & ~0x00000001); } result.pendingAirdrops_ = pendingAirdrops_; } else { result.pendingAirdrops_ = pendingAirdropsBuilder_.build(); } } private void buildPartial0(com.hedera.hashgraph.sdk.proto.TokenCancelAirdropTransactionBody result) { int from_bitField0_ = 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.TokenCancelAirdropTransactionBody) { return mergeFrom((com.hedera.hashgraph.sdk.proto.TokenCancelAirdropTransactionBody)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.TokenCancelAirdropTransactionBody other) { if (other == com.hedera.hashgraph.sdk.proto.TokenCancelAirdropTransactionBody.getDefaultInstance()) return this; if (pendingAirdropsBuilder_ == null) { if (!other.pendingAirdrops_.isEmpty()) { if (pendingAirdrops_.isEmpty()) { pendingAirdrops_ = other.pendingAirdrops_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePendingAirdropsIsMutable(); pendingAirdrops_.addAll(other.pendingAirdrops_); } onChanged(); } } else { if (!other.pendingAirdrops_.isEmpty()) { if (pendingAirdropsBuilder_.isEmpty()) { pendingAirdropsBuilder_.dispose(); pendingAirdropsBuilder_ = null; pendingAirdrops_ = other.pendingAirdrops_; bitField0_ = (bitField0_ & ~0x00000001); pendingAirdropsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPendingAirdropsFieldBuilder() : null; } else { pendingAirdropsBuilder_.addAllMessages(other.pendingAirdrops_); } } } 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: { com.hedera.hashgraph.sdk.proto.PendingAirdropId m = input.readMessage( com.hedera.hashgraph.sdk.proto.PendingAirdropId.parser(), extensionRegistry); if (pendingAirdropsBuilder_ == null) { ensurePendingAirdropsIsMutable(); pendingAirdrops_.add(m); } else { pendingAirdropsBuilder_.addMessage(m); } break; } // case 10 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 java.util.List pendingAirdrops_ = java.util.Collections.emptyList(); private void ensurePendingAirdropsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { pendingAirdrops_ = new java.util.ArrayList(pendingAirdrops_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.hashgraph.sdk.proto.PendingAirdropId, com.hedera.hashgraph.sdk.proto.PendingAirdropId.Builder, com.hedera.hashgraph.sdk.proto.PendingAirdropIdOrBuilder> pendingAirdropsBuilder_; /** *
     **
     * A list of one or more pending airdrop identifiers.<br/>
     * This list declares the set of pending airdrop entries that the client
     * wishes to cancel; on success all listed pending airdrop entries
     * will be removed.
     * <p>
     * This transaction MUST be signed by the account referenced by a `sender_id` for
     * each entry in this list.<br/>
     * This list MUST NOT have any duplicate entries.<br/>
     * This list MUST contain between 1 and 10 entries, inclusive.
     * 
* * repeated .proto.PendingAirdropId pending_airdrops = 1; */ public java.util.List getPendingAirdropsList() { if (pendingAirdropsBuilder_ == null) { return java.util.Collections.unmodifiableList(pendingAirdrops_); } else { return pendingAirdropsBuilder_.getMessageList(); } } /** *
     **
     * A list of one or more pending airdrop identifiers.<br/>
     * This list declares the set of pending airdrop entries that the client
     * wishes to cancel; on success all listed pending airdrop entries
     * will be removed.
     * <p>
     * This transaction MUST be signed by the account referenced by a `sender_id` for
     * each entry in this list.<br/>
     * This list MUST NOT have any duplicate entries.<br/>
     * This list MUST contain between 1 and 10 entries, inclusive.
     * 
* * repeated .proto.PendingAirdropId pending_airdrops = 1; */ public int getPendingAirdropsCount() { if (pendingAirdropsBuilder_ == null) { return pendingAirdrops_.size(); } else { return pendingAirdropsBuilder_.getCount(); } } /** *
     **
     * A list of one or more pending airdrop identifiers.<br/>
     * This list declares the set of pending airdrop entries that the client
     * wishes to cancel; on success all listed pending airdrop entries
     * will be removed.
     * <p>
     * This transaction MUST be signed by the account referenced by a `sender_id` for
     * each entry in this list.<br/>
     * This list MUST NOT have any duplicate entries.<br/>
     * This list MUST contain between 1 and 10 entries, inclusive.
     * 
* * repeated .proto.PendingAirdropId pending_airdrops = 1; */ public com.hedera.hashgraph.sdk.proto.PendingAirdropId getPendingAirdrops(int index) { if (pendingAirdropsBuilder_ == null) { return pendingAirdrops_.get(index); } else { return pendingAirdropsBuilder_.getMessage(index); } } /** *
     **
     * A list of one or more pending airdrop identifiers.<br/>
     * This list declares the set of pending airdrop entries that the client
     * wishes to cancel; on success all listed pending airdrop entries
     * will be removed.
     * <p>
     * This transaction MUST be signed by the account referenced by a `sender_id` for
     * each entry in this list.<br/>
     * This list MUST NOT have any duplicate entries.<br/>
     * This list MUST contain between 1 and 10 entries, inclusive.
     * 
* * repeated .proto.PendingAirdropId pending_airdrops = 1; */ public Builder setPendingAirdrops( int index, com.hedera.hashgraph.sdk.proto.PendingAirdropId value) { if (pendingAirdropsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePendingAirdropsIsMutable(); pendingAirdrops_.set(index, value); onChanged(); } else { pendingAirdropsBuilder_.setMessage(index, value); } return this; } /** *
     **
     * A list of one or more pending airdrop identifiers.<br/>
     * This list declares the set of pending airdrop entries that the client
     * wishes to cancel; on success all listed pending airdrop entries
     * will be removed.
     * <p>
     * This transaction MUST be signed by the account referenced by a `sender_id` for
     * each entry in this list.<br/>
     * This list MUST NOT have any duplicate entries.<br/>
     * This list MUST contain between 1 and 10 entries, inclusive.
     * 
* * repeated .proto.PendingAirdropId pending_airdrops = 1; */ public Builder setPendingAirdrops( int index, com.hedera.hashgraph.sdk.proto.PendingAirdropId.Builder builderForValue) { if (pendingAirdropsBuilder_ == null) { ensurePendingAirdropsIsMutable(); pendingAirdrops_.set(index, builderForValue.build()); onChanged(); } else { pendingAirdropsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     **
     * A list of one or more pending airdrop identifiers.<br/>
     * This list declares the set of pending airdrop entries that the client
     * wishes to cancel; on success all listed pending airdrop entries
     * will be removed.
     * <p>
     * This transaction MUST be signed by the account referenced by a `sender_id` for
     * each entry in this list.<br/>
     * This list MUST NOT have any duplicate entries.<br/>
     * This list MUST contain between 1 and 10 entries, inclusive.
     * 
* * repeated .proto.PendingAirdropId pending_airdrops = 1; */ public Builder addPendingAirdrops(com.hedera.hashgraph.sdk.proto.PendingAirdropId value) { if (pendingAirdropsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePendingAirdropsIsMutable(); pendingAirdrops_.add(value); onChanged(); } else { pendingAirdropsBuilder_.addMessage(value); } return this; } /** *
     **
     * A list of one or more pending airdrop identifiers.<br/>
     * This list declares the set of pending airdrop entries that the client
     * wishes to cancel; on success all listed pending airdrop entries
     * will be removed.
     * <p>
     * This transaction MUST be signed by the account referenced by a `sender_id` for
     * each entry in this list.<br/>
     * This list MUST NOT have any duplicate entries.<br/>
     * This list MUST contain between 1 and 10 entries, inclusive.
     * 
* * repeated .proto.PendingAirdropId pending_airdrops = 1; */ public Builder addPendingAirdrops( int index, com.hedera.hashgraph.sdk.proto.PendingAirdropId value) { if (pendingAirdropsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePendingAirdropsIsMutable(); pendingAirdrops_.add(index, value); onChanged(); } else { pendingAirdropsBuilder_.addMessage(index, value); } return this; } /** *
     **
     * A list of one or more pending airdrop identifiers.<br/>
     * This list declares the set of pending airdrop entries that the client
     * wishes to cancel; on success all listed pending airdrop entries
     * will be removed.
     * <p>
     * This transaction MUST be signed by the account referenced by a `sender_id` for
     * each entry in this list.<br/>
     * This list MUST NOT have any duplicate entries.<br/>
     * This list MUST contain between 1 and 10 entries, inclusive.
     * 
* * repeated .proto.PendingAirdropId pending_airdrops = 1; */ public Builder addPendingAirdrops( com.hedera.hashgraph.sdk.proto.PendingAirdropId.Builder builderForValue) { if (pendingAirdropsBuilder_ == null) { ensurePendingAirdropsIsMutable(); pendingAirdrops_.add(builderForValue.build()); onChanged(); } else { pendingAirdropsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     **
     * A list of one or more pending airdrop identifiers.<br/>
     * This list declares the set of pending airdrop entries that the client
     * wishes to cancel; on success all listed pending airdrop entries
     * will be removed.
     * <p>
     * This transaction MUST be signed by the account referenced by a `sender_id` for
     * each entry in this list.<br/>
     * This list MUST NOT have any duplicate entries.<br/>
     * This list MUST contain between 1 and 10 entries, inclusive.
     * 
* * repeated .proto.PendingAirdropId pending_airdrops = 1; */ public Builder addPendingAirdrops( int index, com.hedera.hashgraph.sdk.proto.PendingAirdropId.Builder builderForValue) { if (pendingAirdropsBuilder_ == null) { ensurePendingAirdropsIsMutable(); pendingAirdrops_.add(index, builderForValue.build()); onChanged(); } else { pendingAirdropsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     **
     * A list of one or more pending airdrop identifiers.<br/>
     * This list declares the set of pending airdrop entries that the client
     * wishes to cancel; on success all listed pending airdrop entries
     * will be removed.
     * <p>
     * This transaction MUST be signed by the account referenced by a `sender_id` for
     * each entry in this list.<br/>
     * This list MUST NOT have any duplicate entries.<br/>
     * This list MUST contain between 1 and 10 entries, inclusive.
     * 
* * repeated .proto.PendingAirdropId pending_airdrops = 1; */ public Builder addAllPendingAirdrops( java.lang.Iterable values) { if (pendingAirdropsBuilder_ == null) { ensurePendingAirdropsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, pendingAirdrops_); onChanged(); } else { pendingAirdropsBuilder_.addAllMessages(values); } return this; } /** *
     **
     * A list of one or more pending airdrop identifiers.<br/>
     * This list declares the set of pending airdrop entries that the client
     * wishes to cancel; on success all listed pending airdrop entries
     * will be removed.
     * <p>
     * This transaction MUST be signed by the account referenced by a `sender_id` for
     * each entry in this list.<br/>
     * This list MUST NOT have any duplicate entries.<br/>
     * This list MUST contain between 1 and 10 entries, inclusive.
     * 
* * repeated .proto.PendingAirdropId pending_airdrops = 1; */ public Builder clearPendingAirdrops() { if (pendingAirdropsBuilder_ == null) { pendingAirdrops_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { pendingAirdropsBuilder_.clear(); } return this; } /** *
     **
     * A list of one or more pending airdrop identifiers.<br/>
     * This list declares the set of pending airdrop entries that the client
     * wishes to cancel; on success all listed pending airdrop entries
     * will be removed.
     * <p>
     * This transaction MUST be signed by the account referenced by a `sender_id` for
     * each entry in this list.<br/>
     * This list MUST NOT have any duplicate entries.<br/>
     * This list MUST contain between 1 and 10 entries, inclusive.
     * 
* * repeated .proto.PendingAirdropId pending_airdrops = 1; */ public Builder removePendingAirdrops(int index) { if (pendingAirdropsBuilder_ == null) { ensurePendingAirdropsIsMutable(); pendingAirdrops_.remove(index); onChanged(); } else { pendingAirdropsBuilder_.remove(index); } return this; } /** *
     **
     * A list of one or more pending airdrop identifiers.<br/>
     * This list declares the set of pending airdrop entries that the client
     * wishes to cancel; on success all listed pending airdrop entries
     * will be removed.
     * <p>
     * This transaction MUST be signed by the account referenced by a `sender_id` for
     * each entry in this list.<br/>
     * This list MUST NOT have any duplicate entries.<br/>
     * This list MUST contain between 1 and 10 entries, inclusive.
     * 
* * repeated .proto.PendingAirdropId pending_airdrops = 1; */ public com.hedera.hashgraph.sdk.proto.PendingAirdropId.Builder getPendingAirdropsBuilder( int index) { return getPendingAirdropsFieldBuilder().getBuilder(index); } /** *
     **
     * A list of one or more pending airdrop identifiers.<br/>
     * This list declares the set of pending airdrop entries that the client
     * wishes to cancel; on success all listed pending airdrop entries
     * will be removed.
     * <p>
     * This transaction MUST be signed by the account referenced by a `sender_id` for
     * each entry in this list.<br/>
     * This list MUST NOT have any duplicate entries.<br/>
     * This list MUST contain between 1 and 10 entries, inclusive.
     * 
* * repeated .proto.PendingAirdropId pending_airdrops = 1; */ public com.hedera.hashgraph.sdk.proto.PendingAirdropIdOrBuilder getPendingAirdropsOrBuilder( int index) { if (pendingAirdropsBuilder_ == null) { return pendingAirdrops_.get(index); } else { return pendingAirdropsBuilder_.getMessageOrBuilder(index); } } /** *
     **
     * A list of one or more pending airdrop identifiers.<br/>
     * This list declares the set of pending airdrop entries that the client
     * wishes to cancel; on success all listed pending airdrop entries
     * will be removed.
     * <p>
     * This transaction MUST be signed by the account referenced by a `sender_id` for
     * each entry in this list.<br/>
     * This list MUST NOT have any duplicate entries.<br/>
     * This list MUST contain between 1 and 10 entries, inclusive.
     * 
* * repeated .proto.PendingAirdropId pending_airdrops = 1; */ public java.util.List getPendingAirdropsOrBuilderList() { if (pendingAirdropsBuilder_ != null) { return pendingAirdropsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(pendingAirdrops_); } } /** *
     **
     * A list of one or more pending airdrop identifiers.<br/>
     * This list declares the set of pending airdrop entries that the client
     * wishes to cancel; on success all listed pending airdrop entries
     * will be removed.
     * <p>
     * This transaction MUST be signed by the account referenced by a `sender_id` for
     * each entry in this list.<br/>
     * This list MUST NOT have any duplicate entries.<br/>
     * This list MUST contain between 1 and 10 entries, inclusive.
     * 
* * repeated .proto.PendingAirdropId pending_airdrops = 1; */ public com.hedera.hashgraph.sdk.proto.PendingAirdropId.Builder addPendingAirdropsBuilder() { return getPendingAirdropsFieldBuilder().addBuilder( com.hedera.hashgraph.sdk.proto.PendingAirdropId.getDefaultInstance()); } /** *
     **
     * A list of one or more pending airdrop identifiers.<br/>
     * This list declares the set of pending airdrop entries that the client
     * wishes to cancel; on success all listed pending airdrop entries
     * will be removed.
     * <p>
     * This transaction MUST be signed by the account referenced by a `sender_id` for
     * each entry in this list.<br/>
     * This list MUST NOT have any duplicate entries.<br/>
     * This list MUST contain between 1 and 10 entries, inclusive.
     * 
* * repeated .proto.PendingAirdropId pending_airdrops = 1; */ public com.hedera.hashgraph.sdk.proto.PendingAirdropId.Builder addPendingAirdropsBuilder( int index) { return getPendingAirdropsFieldBuilder().addBuilder( index, com.hedera.hashgraph.sdk.proto.PendingAirdropId.getDefaultInstance()); } /** *
     **
     * A list of one or more pending airdrop identifiers.<br/>
     * This list declares the set of pending airdrop entries that the client
     * wishes to cancel; on success all listed pending airdrop entries
     * will be removed.
     * <p>
     * This transaction MUST be signed by the account referenced by a `sender_id` for
     * each entry in this list.<br/>
     * This list MUST NOT have any duplicate entries.<br/>
     * This list MUST contain between 1 and 10 entries, inclusive.
     * 
* * repeated .proto.PendingAirdropId pending_airdrops = 1; */ public java.util.List getPendingAirdropsBuilderList() { return getPendingAirdropsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.hashgraph.sdk.proto.PendingAirdropId, com.hedera.hashgraph.sdk.proto.PendingAirdropId.Builder, com.hedera.hashgraph.sdk.proto.PendingAirdropIdOrBuilder> getPendingAirdropsFieldBuilder() { if (pendingAirdropsBuilder_ == null) { pendingAirdropsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.hashgraph.sdk.proto.PendingAirdropId, com.hedera.hashgraph.sdk.proto.PendingAirdropId.Builder, com.hedera.hashgraph.sdk.proto.PendingAirdropIdOrBuilder>( pendingAirdrops_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); pendingAirdrops_ = null; } return pendingAirdropsBuilder_; } @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.TokenCancelAirdropTransactionBody) } // @@protoc_insertion_point(class_scope:proto.TokenCancelAirdropTransactionBody) private static final com.hedera.hashgraph.sdk.proto.TokenCancelAirdropTransactionBody DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.TokenCancelAirdropTransactionBody(); } public static com.hedera.hashgraph.sdk.proto.TokenCancelAirdropTransactionBody getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TokenCancelAirdropTransactionBody 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.TokenCancelAirdropTransactionBody getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy