Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class PendingAirdropValue.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<PendingAirdropValue,PendingAirdropValue.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<PendingAirdropValue,PendingAirdropValue.Builder>
com.hedera.hashgraph.sdk.proto.PendingAirdropValue.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,PendingAirdropValueOrBuilder,Cloneable
- Enclosing class:
PendingAirdropValue
public static final class PendingAirdropValue.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<PendingAirdropValue,PendingAirdropValue.Builder>
implements PendingAirdropValueOrBuilder
* A single pending airdrop value. This message SHALL record the airdrop amount for a fungible/common token.<br/> This message SHOULD be null for a non-fungible/unique token.<br/> If a non-null `PendingAirdropValue` is set for a non-fungible/unique token, the amount field MUST be `0`. It is RECOMMENDED that implementations store pending airdrop information as a key-value map from `PendingAirdropId` to `PendingAirdropValue`, with a `null` value used for non-fungible pending airdrops.Protobuf type
proto.PendingAirdropValue-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* An amount to transfer for fungible/common tokens.<br/> This is expressed in the smallest available units for that token (i.e.long* An amount to transfer for fungible/common tokens.<br/> This is expressed in the smallest available units for that token (i.e.setAmount(long value) * An amount to transfer for fungible/common tokens.<br/> This is expressed in the smallest available units for that token (i.e.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getAmount
public long getAmount()* An amount to transfer for fungible/common tokens.<br/> This is expressed in the smallest available units for that token (i.e. 10<sup>-`decimals`</sup> whole tokens). <p> This amount SHALL be transferred from the sender to the receiver, if claimed.<br/> If the token is a fungible/common token, this value MUST be strictly greater than `0`.<br/> If the token is a non-fungible/unique token, this message SHOULD NOT be set, and if set, this field MUST be `0`.
uint64 amount = 1;- Specified by:
getAmountin interfacePendingAirdropValueOrBuilder- Returns:
- The amount.
-
setAmount
* An amount to transfer for fungible/common tokens.<br/> This is expressed in the smallest available units for that token (i.e. 10<sup>-`decimals`</sup> whole tokens). <p> This amount SHALL be transferred from the sender to the receiver, if claimed.<br/> If the token is a fungible/common token, this value MUST be strictly greater than `0`.<br/> If the token is a non-fungible/unique token, this message SHOULD NOT be set, and if set, this field MUST be `0`.
uint64 amount = 1;- Parameters:
value- The amount to set.- Returns:
- This builder for chaining.
-
clearAmount
* An amount to transfer for fungible/common tokens.<br/> This is expressed in the smallest available units for that token (i.e. 10<sup>-`decimals`</sup> whole tokens). <p> This amount SHALL be transferred from the sender to the receiver, if claimed.<br/> If the token is a fungible/common token, this value MUST be strictly greater than `0`.<br/> If the token is a non-fungible/unique token, this message SHOULD NOT be set, and if set, this field MUST be `0`.
uint64 amount = 1;- Returns:
- This builder for chaining.
-