com.hederahashgraph.api.proto.java.TokenTransferList Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: basic_types.proto
package com.hederahashgraph.api.proto.java;
/**
*
**
* A list of token IDs and amounts representing the transferred out (negative) or into (positive)
* amounts, represented in the lowest denomination of the token
*
*
* Protobuf type {@code proto.TokenTransferList}
*/
public final class TokenTransferList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.TokenTransferList)
TokenTransferListOrBuilder {
private static final long serialVersionUID = 0L;
// Use TokenTransferList.newBuilder() to construct.
private TokenTransferList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TokenTransferList() {
transfers_ = java.util.Collections.emptyList();
nftTransfers_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TokenTransferList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TokenTransferList(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
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.TokenID.Builder subBuilder = null;
if (token_ != null) {
subBuilder = token_.toBuilder();
}
token_ = input.readMessage(com.hederahashgraph.api.proto.java.TokenID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(token_);
token_ = subBuilder.buildPartial();
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
transfers_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
transfers_.add(
input.readMessage(com.hederahashgraph.api.proto.java.AccountAmount.parser(), extensionRegistry));
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
nftTransfers_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
nftTransfers_.add(
input.readMessage(com.hederahashgraph.api.proto.java.NftTransfer.parser(), extensionRegistry));
break;
}
case 34: {
com.google.protobuf.UInt32Value.Builder subBuilder = null;
if (expectedDecimals_ != null) {
subBuilder = expectedDecimals_.toBuilder();
}
expectedDecimals_ = input.readMessage(com.google.protobuf.UInt32Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(expectedDecimals_);
expectedDecimals_ = 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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
transfers_ = java.util.Collections.unmodifiableList(transfers_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
nftTransfers_ = java.util.Collections.unmodifiableList(nftTransfers_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_TokenTransferList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_TokenTransferList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.TokenTransferList.class, com.hederahashgraph.api.proto.java.TokenTransferList.Builder.class);
}
public static final int TOKEN_FIELD_NUMBER = 1;
private com.hederahashgraph.api.proto.java.TokenID token_;
/**
*
**
* The ID of the token
*
*
* .proto.TokenID token = 1;
* @return Whether the token field is set.
*/
@java.lang.Override
public boolean hasToken() {
return token_ != null;
}
/**
*
**
* The ID of the token
*
*
* .proto.TokenID token = 1;
* @return The token.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.TokenID getToken() {
return token_ == null ? com.hederahashgraph.api.proto.java.TokenID.getDefaultInstance() : token_;
}
/**
*
**
* The ID of the token
*
*
* .proto.TokenID token = 1;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.TokenIDOrBuilder getTokenOrBuilder() {
return getToken();
}
public static final int TRANSFERS_FIELD_NUMBER = 2;
private java.util.List transfers_;
/**
*
**
* Applicable to tokens of type FUNGIBLE_COMMON. Multiple list of AccountAmounts, each of which
* has an account and amount
*
*
* repeated .proto.AccountAmount transfers = 2;
*/
@java.lang.Override
public java.util.List getTransfersList() {
return transfers_;
}
/**
*
**
* Applicable to tokens of type FUNGIBLE_COMMON. Multiple list of AccountAmounts, each of which
* has an account and amount
*
*
* repeated .proto.AccountAmount transfers = 2;
*/
@java.lang.Override
public java.util.List extends com.hederahashgraph.api.proto.java.AccountAmountOrBuilder>
getTransfersOrBuilderList() {
return transfers_;
}
/**
*
**
* Applicable to tokens of type FUNGIBLE_COMMON. Multiple list of AccountAmounts, each of which
* has an account and amount
*
*
* repeated .proto.AccountAmount transfers = 2;
*/
@java.lang.Override
public int getTransfersCount() {
return transfers_.size();
}
/**
*
**
* Applicable to tokens of type FUNGIBLE_COMMON. Multiple list of AccountAmounts, each of which
* has an account and amount
*
*
* repeated .proto.AccountAmount transfers = 2;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.AccountAmount getTransfers(int index) {
return transfers_.get(index);
}
/**
*
**
* Applicable to tokens of type FUNGIBLE_COMMON. Multiple list of AccountAmounts, each of which
* has an account and amount
*
*
* repeated .proto.AccountAmount transfers = 2;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.AccountAmountOrBuilder getTransfersOrBuilder(
int index) {
return transfers_.get(index);
}
public static final int NFTTRANSFERS_FIELD_NUMBER = 3;
private java.util.List nftTransfers_;
/**
*
**
* Applicable to tokens of type NON_FUNGIBLE_UNIQUE. Multiple list of NftTransfers, each of
* which has a sender and receiver account, including the serial number of the NFT
*
*
* repeated .proto.NftTransfer nftTransfers = 3;
*/
@java.lang.Override
public java.util.List getNftTransfersList() {
return nftTransfers_;
}
/**
*
**
* Applicable to tokens of type NON_FUNGIBLE_UNIQUE. Multiple list of NftTransfers, each of
* which has a sender and receiver account, including the serial number of the NFT
*
*
* repeated .proto.NftTransfer nftTransfers = 3;
*/
@java.lang.Override
public java.util.List extends com.hederahashgraph.api.proto.java.NftTransferOrBuilder>
getNftTransfersOrBuilderList() {
return nftTransfers_;
}
/**
*
**
* Applicable to tokens of type NON_FUNGIBLE_UNIQUE. Multiple list of NftTransfers, each of
* which has a sender and receiver account, including the serial number of the NFT
*
*
* repeated .proto.NftTransfer nftTransfers = 3;
*/
@java.lang.Override
public int getNftTransfersCount() {
return nftTransfers_.size();
}
/**
*
**
* Applicable to tokens of type NON_FUNGIBLE_UNIQUE. Multiple list of NftTransfers, each of
* which has a sender and receiver account, including the serial number of the NFT
*
*
* repeated .proto.NftTransfer nftTransfers = 3;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.NftTransfer getNftTransfers(int index) {
return nftTransfers_.get(index);
}
/**
*
**
* Applicable to tokens of type NON_FUNGIBLE_UNIQUE. Multiple list of NftTransfers, each of
* which has a sender and receiver account, including the serial number of the NFT
*
*
* repeated .proto.NftTransfer nftTransfers = 3;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.NftTransferOrBuilder getNftTransfersOrBuilder(
int index) {
return nftTransfers_.get(index);
}
public static final int EXPECTED_DECIMALS_FIELD_NUMBER = 4;
private com.google.protobuf.UInt32Value expectedDecimals_;
/**
*
**
* If present, the number of decimals this fungible token type is expected to have. The transfer
* will fail with UNEXPECTED_TOKEN_DECIMALS if the actual decimals differ.
*
*
* .google.protobuf.UInt32Value expected_decimals = 4;
* @return Whether the expectedDecimals field is set.
*/
@java.lang.Override
public boolean hasExpectedDecimals() {
return expectedDecimals_ != null;
}
/**
*
**
* If present, the number of decimals this fungible token type is expected to have. The transfer
* will fail with UNEXPECTED_TOKEN_DECIMALS if the actual decimals differ.
*
*
* .google.protobuf.UInt32Value expected_decimals = 4;
* @return The expectedDecimals.
*/
@java.lang.Override
public com.google.protobuf.UInt32Value getExpectedDecimals() {
return expectedDecimals_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : expectedDecimals_;
}
/**
*
**
* If present, the number of decimals this fungible token type is expected to have. The transfer
* will fail with UNEXPECTED_TOKEN_DECIMALS if the actual decimals differ.
*
*
* .google.protobuf.UInt32Value expected_decimals = 4;
*/
@java.lang.Override
public com.google.protobuf.UInt32ValueOrBuilder getExpectedDecimalsOrBuilder() {
return getExpectedDecimals();
}
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 (token_ != null) {
output.writeMessage(1, getToken());
}
for (int i = 0; i < transfers_.size(); i++) {
output.writeMessage(2, transfers_.get(i));
}
for (int i = 0; i < nftTransfers_.size(); i++) {
output.writeMessage(3, nftTransfers_.get(i));
}
if (expectedDecimals_ != null) {
output.writeMessage(4, getExpectedDecimals());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (token_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getToken());
}
for (int i = 0; i < transfers_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, transfers_.get(i));
}
for (int i = 0; i < nftTransfers_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, nftTransfers_.get(i));
}
if (expectedDecimals_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getExpectedDecimals());
}
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.TokenTransferList)) {
return super.equals(obj);
}
com.hederahashgraph.api.proto.java.TokenTransferList other = (com.hederahashgraph.api.proto.java.TokenTransferList) obj;
if (hasToken() != other.hasToken()) return false;
if (hasToken()) {
if (!getToken()
.equals(other.getToken())) return false;
}
if (!getTransfersList()
.equals(other.getTransfersList())) return false;
if (!getNftTransfersList()
.equals(other.getNftTransfersList())) return false;
if (hasExpectedDecimals() != other.hasExpectedDecimals()) return false;
if (hasExpectedDecimals()) {
if (!getExpectedDecimals()
.equals(other.getExpectedDecimals())) 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 (hasToken()) {
hash = (37 * hash) + TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getToken().hashCode();
}
if (getTransfersCount() > 0) {
hash = (37 * hash) + TRANSFERS_FIELD_NUMBER;
hash = (53 * hash) + getTransfersList().hashCode();
}
if (getNftTransfersCount() > 0) {
hash = (37 * hash) + NFTTRANSFERS_FIELD_NUMBER;
hash = (53 * hash) + getNftTransfersList().hashCode();
}
if (hasExpectedDecimals()) {
hash = (37 * hash) + EXPECTED_DECIMALS_FIELD_NUMBER;
hash = (53 * hash) + getExpectedDecimals().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hederahashgraph.api.proto.java.TokenTransferList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.TokenTransferList 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.TokenTransferList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.TokenTransferList 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.TokenTransferList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.TokenTransferList 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.TokenTransferList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.TokenTransferList 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.TokenTransferList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.TokenTransferList 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.TokenTransferList 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.TokenTransferList 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.TokenTransferList 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 list of token IDs and amounts representing the transferred out (negative) or into (positive)
* amounts, represented in the lowest denomination of the token
*
*
* Protobuf type {@code proto.TokenTransferList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.TokenTransferList)
com.hederahashgraph.api.proto.java.TokenTransferListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_TokenTransferList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_TokenTransferList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.TokenTransferList.class, com.hederahashgraph.api.proto.java.TokenTransferList.Builder.class);
}
// Construct using com.hederahashgraph.api.proto.java.TokenTransferList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTransfersFieldBuilder();
getNftTransfersFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (tokenBuilder_ == null) {
token_ = null;
} else {
token_ = null;
tokenBuilder_ = null;
}
if (transfersBuilder_ == null) {
transfers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
transfersBuilder_.clear();
}
if (nftTransfersBuilder_ == null) {
nftTransfers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
nftTransfersBuilder_.clear();
}
if (expectedDecimalsBuilder_ == null) {
expectedDecimals_ = null;
} else {
expectedDecimals_ = null;
expectedDecimalsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hederahashgraph.api.proto.java.BasicTypes.internal_static_proto_TokenTransferList_descriptor;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.TokenTransferList getDefaultInstanceForType() {
return com.hederahashgraph.api.proto.java.TokenTransferList.getDefaultInstance();
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.TokenTransferList build() {
com.hederahashgraph.api.proto.java.TokenTransferList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.TokenTransferList buildPartial() {
com.hederahashgraph.api.proto.java.TokenTransferList result = new com.hederahashgraph.api.proto.java.TokenTransferList(this);
int from_bitField0_ = bitField0_;
if (tokenBuilder_ == null) {
result.token_ = token_;
} else {
result.token_ = tokenBuilder_.build();
}
if (transfersBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
transfers_ = java.util.Collections.unmodifiableList(transfers_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.transfers_ = transfers_;
} else {
result.transfers_ = transfersBuilder_.build();
}
if (nftTransfersBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
nftTransfers_ = java.util.Collections.unmodifiableList(nftTransfers_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.nftTransfers_ = nftTransfers_;
} else {
result.nftTransfers_ = nftTransfersBuilder_.build();
}
if (expectedDecimalsBuilder_ == null) {
result.expectedDecimals_ = expectedDecimals_;
} else {
result.expectedDecimals_ = expectedDecimalsBuilder_.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.TokenTransferList) {
return mergeFrom((com.hederahashgraph.api.proto.java.TokenTransferList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hederahashgraph.api.proto.java.TokenTransferList other) {
if (other == com.hederahashgraph.api.proto.java.TokenTransferList.getDefaultInstance()) return this;
if (other.hasToken()) {
mergeToken(other.getToken());
}
if (transfersBuilder_ == null) {
if (!other.transfers_.isEmpty()) {
if (transfers_.isEmpty()) {
transfers_ = other.transfers_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTransfersIsMutable();
transfers_.addAll(other.transfers_);
}
onChanged();
}
} else {
if (!other.transfers_.isEmpty()) {
if (transfersBuilder_.isEmpty()) {
transfersBuilder_.dispose();
transfersBuilder_ = null;
transfers_ = other.transfers_;
bitField0_ = (bitField0_ & ~0x00000001);
transfersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTransfersFieldBuilder() : null;
} else {
transfersBuilder_.addAllMessages(other.transfers_);
}
}
}
if (nftTransfersBuilder_ == null) {
if (!other.nftTransfers_.isEmpty()) {
if (nftTransfers_.isEmpty()) {
nftTransfers_ = other.nftTransfers_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureNftTransfersIsMutable();
nftTransfers_.addAll(other.nftTransfers_);
}
onChanged();
}
} else {
if (!other.nftTransfers_.isEmpty()) {
if (nftTransfersBuilder_.isEmpty()) {
nftTransfersBuilder_.dispose();
nftTransfersBuilder_ = null;
nftTransfers_ = other.nftTransfers_;
bitField0_ = (bitField0_ & ~0x00000002);
nftTransfersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getNftTransfersFieldBuilder() : null;
} else {
nftTransfersBuilder_.addAllMessages(other.nftTransfers_);
}
}
}
if (other.hasExpectedDecimals()) {
mergeExpectedDecimals(other.getExpectedDecimals());
}
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.TokenTransferList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hederahashgraph.api.proto.java.TokenTransferList) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.hederahashgraph.api.proto.java.TokenID token_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TokenID, com.hederahashgraph.api.proto.java.TokenID.Builder, com.hederahashgraph.api.proto.java.TokenIDOrBuilder> tokenBuilder_;
/**
*
**
* The ID of the token
*
*
* .proto.TokenID token = 1;
* @return Whether the token field is set.
*/
public boolean hasToken() {
return tokenBuilder_ != null || token_ != null;
}
/**
*
**
* The ID of the token
*
*
* .proto.TokenID token = 1;
* @return The token.
*/
public com.hederahashgraph.api.proto.java.TokenID getToken() {
if (tokenBuilder_ == null) {
return token_ == null ? com.hederahashgraph.api.proto.java.TokenID.getDefaultInstance() : token_;
} else {
return tokenBuilder_.getMessage();
}
}
/**
*
**
* The ID of the token
*
*
* .proto.TokenID token = 1;
*/
public Builder setToken(com.hederahashgraph.api.proto.java.TokenID value) {
if (tokenBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
token_ = value;
onChanged();
} else {
tokenBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* The ID of the token
*
*
* .proto.TokenID token = 1;
*/
public Builder setToken(
com.hederahashgraph.api.proto.java.TokenID.Builder builderForValue) {
if (tokenBuilder_ == null) {
token_ = builderForValue.build();
onChanged();
} else {
tokenBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The ID of the token
*
*
* .proto.TokenID token = 1;
*/
public Builder mergeToken(com.hederahashgraph.api.proto.java.TokenID value) {
if (tokenBuilder_ == null) {
if (token_ != null) {
token_ =
com.hederahashgraph.api.proto.java.TokenID.newBuilder(token_).mergeFrom(value).buildPartial();
} else {
token_ = value;
}
onChanged();
} else {
tokenBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* The ID of the token
*
*
* .proto.TokenID token = 1;
*/
public Builder clearToken() {
if (tokenBuilder_ == null) {
token_ = null;
onChanged();
} else {
token_ = null;
tokenBuilder_ = null;
}
return this;
}
/**
*
**
* The ID of the token
*
*
* .proto.TokenID token = 1;
*/
public com.hederahashgraph.api.proto.java.TokenID.Builder getTokenBuilder() {
onChanged();
return getTokenFieldBuilder().getBuilder();
}
/**
*
**
* The ID of the token
*
*
* .proto.TokenID token = 1;
*/
public com.hederahashgraph.api.proto.java.TokenIDOrBuilder getTokenOrBuilder() {
if (tokenBuilder_ != null) {
return tokenBuilder_.getMessageOrBuilder();
} else {
return token_ == null ?
com.hederahashgraph.api.proto.java.TokenID.getDefaultInstance() : token_;
}
}
/**
*
**
* The ID of the token
*
*
* .proto.TokenID token = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TokenID, com.hederahashgraph.api.proto.java.TokenID.Builder, com.hederahashgraph.api.proto.java.TokenIDOrBuilder>
getTokenFieldBuilder() {
if (tokenBuilder_ == null) {
tokenBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TokenID, com.hederahashgraph.api.proto.java.TokenID.Builder, com.hederahashgraph.api.proto.java.TokenIDOrBuilder>(
getToken(),
getParentForChildren(),
isClean());
token_ = null;
}
return tokenBuilder_;
}
private java.util.List transfers_ =
java.util.Collections.emptyList();
private void ensureTransfersIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
transfers_ = new java.util.ArrayList(transfers_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountAmount, com.hederahashgraph.api.proto.java.AccountAmount.Builder, com.hederahashgraph.api.proto.java.AccountAmountOrBuilder> transfersBuilder_;
/**
*
**
* Applicable to tokens of type FUNGIBLE_COMMON. Multiple list of AccountAmounts, each of which
* has an account and amount
*
*
* repeated .proto.AccountAmount transfers = 2;
*/
public java.util.List getTransfersList() {
if (transfersBuilder_ == null) {
return java.util.Collections.unmodifiableList(transfers_);
} else {
return transfersBuilder_.getMessageList();
}
}
/**
*
**
* Applicable to tokens of type FUNGIBLE_COMMON. Multiple list of AccountAmounts, each of which
* has an account and amount
*
*
* repeated .proto.AccountAmount transfers = 2;
*/
public int getTransfersCount() {
if (transfersBuilder_ == null) {
return transfers_.size();
} else {
return transfersBuilder_.getCount();
}
}
/**
*
**
* Applicable to tokens of type FUNGIBLE_COMMON. Multiple list of AccountAmounts, each of which
* has an account and amount
*
*
* repeated .proto.AccountAmount transfers = 2;
*/
public com.hederahashgraph.api.proto.java.AccountAmount getTransfers(int index) {
if (transfersBuilder_ == null) {
return transfers_.get(index);
} else {
return transfersBuilder_.getMessage(index);
}
}
/**
*
**
* Applicable to tokens of type FUNGIBLE_COMMON. Multiple list of AccountAmounts, each of which
* has an account and amount
*
*
* repeated .proto.AccountAmount transfers = 2;
*/
public Builder setTransfers(
int index, com.hederahashgraph.api.proto.java.AccountAmount value) {
if (transfersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTransfersIsMutable();
transfers_.set(index, value);
onChanged();
} else {
transfersBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* Applicable to tokens of type FUNGIBLE_COMMON. Multiple list of AccountAmounts, each of which
* has an account and amount
*
*
* repeated .proto.AccountAmount transfers = 2;
*/
public Builder setTransfers(
int index, com.hederahashgraph.api.proto.java.AccountAmount.Builder builderForValue) {
if (transfersBuilder_ == null) {
ensureTransfersIsMutable();
transfers_.set(index, builderForValue.build());
onChanged();
} else {
transfersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* Applicable to tokens of type FUNGIBLE_COMMON. Multiple list of AccountAmounts, each of which
* has an account and amount
*
*
* repeated .proto.AccountAmount transfers = 2;
*/
public Builder addTransfers(com.hederahashgraph.api.proto.java.AccountAmount value) {
if (transfersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTransfersIsMutable();
transfers_.add(value);
onChanged();
} else {
transfersBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* Applicable to tokens of type FUNGIBLE_COMMON. Multiple list of AccountAmounts, each of which
* has an account and amount
*
*
* repeated .proto.AccountAmount transfers = 2;
*/
public Builder addTransfers(
int index, com.hederahashgraph.api.proto.java.AccountAmount value) {
if (transfersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTransfersIsMutable();
transfers_.add(index, value);
onChanged();
} else {
transfersBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* Applicable to tokens of type FUNGIBLE_COMMON. Multiple list of AccountAmounts, each of which
* has an account and amount
*
*
* repeated .proto.AccountAmount transfers = 2;
*/
public Builder addTransfers(
com.hederahashgraph.api.proto.java.AccountAmount.Builder builderForValue) {
if (transfersBuilder_ == null) {
ensureTransfersIsMutable();
transfers_.add(builderForValue.build());
onChanged();
} else {
transfersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* Applicable to tokens of type FUNGIBLE_COMMON. Multiple list of AccountAmounts, each of which
* has an account and amount
*
*
* repeated .proto.AccountAmount transfers = 2;
*/
public Builder addTransfers(
int index, com.hederahashgraph.api.proto.java.AccountAmount.Builder builderForValue) {
if (transfersBuilder_ == null) {
ensureTransfersIsMutable();
transfers_.add(index, builderForValue.build());
onChanged();
} else {
transfersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* Applicable to tokens of type FUNGIBLE_COMMON. Multiple list of AccountAmounts, each of which
* has an account and amount
*
*
* repeated .proto.AccountAmount transfers = 2;
*/
public Builder addAllTransfers(
java.lang.Iterable extends com.hederahashgraph.api.proto.java.AccountAmount> values) {
if (transfersBuilder_ == null) {
ensureTransfersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, transfers_);
onChanged();
} else {
transfersBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* Applicable to tokens of type FUNGIBLE_COMMON. Multiple list of AccountAmounts, each of which
* has an account and amount
*
*
* repeated .proto.AccountAmount transfers = 2;
*/
public Builder clearTransfers() {
if (transfersBuilder_ == null) {
transfers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
transfersBuilder_.clear();
}
return this;
}
/**
*
**
* Applicable to tokens of type FUNGIBLE_COMMON. Multiple list of AccountAmounts, each of which
* has an account and amount
*
*
* repeated .proto.AccountAmount transfers = 2;
*/
public Builder removeTransfers(int index) {
if (transfersBuilder_ == null) {
ensureTransfersIsMutable();
transfers_.remove(index);
onChanged();
} else {
transfersBuilder_.remove(index);
}
return this;
}
/**
*
**
* Applicable to tokens of type FUNGIBLE_COMMON. Multiple list of AccountAmounts, each of which
* has an account and amount
*
*
* repeated .proto.AccountAmount transfers = 2;
*/
public com.hederahashgraph.api.proto.java.AccountAmount.Builder getTransfersBuilder(
int index) {
return getTransfersFieldBuilder().getBuilder(index);
}
/**
*
**
* Applicable to tokens of type FUNGIBLE_COMMON. Multiple list of AccountAmounts, each of which
* has an account and amount
*
*
* repeated .proto.AccountAmount transfers = 2;
*/
public com.hederahashgraph.api.proto.java.AccountAmountOrBuilder getTransfersOrBuilder(
int index) {
if (transfersBuilder_ == null) {
return transfers_.get(index); } else {
return transfersBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* Applicable to tokens of type FUNGIBLE_COMMON. Multiple list of AccountAmounts, each of which
* has an account and amount
*
*
* repeated .proto.AccountAmount transfers = 2;
*/
public java.util.List extends com.hederahashgraph.api.proto.java.AccountAmountOrBuilder>
getTransfersOrBuilderList() {
if (transfersBuilder_ != null) {
return transfersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(transfers_);
}
}
/**
*
**
* Applicable to tokens of type FUNGIBLE_COMMON. Multiple list of AccountAmounts, each of which
* has an account and amount
*
*
* repeated .proto.AccountAmount transfers = 2;
*/
public com.hederahashgraph.api.proto.java.AccountAmount.Builder addTransfersBuilder() {
return getTransfersFieldBuilder().addBuilder(
com.hederahashgraph.api.proto.java.AccountAmount.getDefaultInstance());
}
/**
*
**
* Applicable to tokens of type FUNGIBLE_COMMON. Multiple list of AccountAmounts, each of which
* has an account and amount
*
*
* repeated .proto.AccountAmount transfers = 2;
*/
public com.hederahashgraph.api.proto.java.AccountAmount.Builder addTransfersBuilder(
int index) {
return getTransfersFieldBuilder().addBuilder(
index, com.hederahashgraph.api.proto.java.AccountAmount.getDefaultInstance());
}
/**
*
**
* Applicable to tokens of type FUNGIBLE_COMMON. Multiple list of AccountAmounts, each of which
* has an account and amount
*
*
* repeated .proto.AccountAmount transfers = 2;
*/
public java.util.List
getTransfersBuilderList() {
return getTransfersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountAmount, com.hederahashgraph.api.proto.java.AccountAmount.Builder, com.hederahashgraph.api.proto.java.AccountAmountOrBuilder>
getTransfersFieldBuilder() {
if (transfersBuilder_ == null) {
transfersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountAmount, com.hederahashgraph.api.proto.java.AccountAmount.Builder, com.hederahashgraph.api.proto.java.AccountAmountOrBuilder>(
transfers_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
transfers_ = null;
}
return transfersBuilder_;
}
private java.util.List nftTransfers_ =
java.util.Collections.emptyList();
private void ensureNftTransfersIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
nftTransfers_ = new java.util.ArrayList(nftTransfers_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.NftTransfer, com.hederahashgraph.api.proto.java.NftTransfer.Builder, com.hederahashgraph.api.proto.java.NftTransferOrBuilder> nftTransfersBuilder_;
/**
*
**
* Applicable to tokens of type NON_FUNGIBLE_UNIQUE. Multiple list of NftTransfers, each of
* which has a sender and receiver account, including the serial number of the NFT
*
*
* repeated .proto.NftTransfer nftTransfers = 3;
*/
public java.util.List getNftTransfersList() {
if (nftTransfersBuilder_ == null) {
return java.util.Collections.unmodifiableList(nftTransfers_);
} else {
return nftTransfersBuilder_.getMessageList();
}
}
/**
*
**
* Applicable to tokens of type NON_FUNGIBLE_UNIQUE. Multiple list of NftTransfers, each of
* which has a sender and receiver account, including the serial number of the NFT
*
*
* repeated .proto.NftTransfer nftTransfers = 3;
*/
public int getNftTransfersCount() {
if (nftTransfersBuilder_ == null) {
return nftTransfers_.size();
} else {
return nftTransfersBuilder_.getCount();
}
}
/**
*
**
* Applicable to tokens of type NON_FUNGIBLE_UNIQUE. Multiple list of NftTransfers, each of
* which has a sender and receiver account, including the serial number of the NFT
*
*
* repeated .proto.NftTransfer nftTransfers = 3;
*/
public com.hederahashgraph.api.proto.java.NftTransfer getNftTransfers(int index) {
if (nftTransfersBuilder_ == null) {
return nftTransfers_.get(index);
} else {
return nftTransfersBuilder_.getMessage(index);
}
}
/**
*
**
* Applicable to tokens of type NON_FUNGIBLE_UNIQUE. Multiple list of NftTransfers, each of
* which has a sender and receiver account, including the serial number of the NFT
*
*
* repeated .proto.NftTransfer nftTransfers = 3;
*/
public Builder setNftTransfers(
int index, com.hederahashgraph.api.proto.java.NftTransfer value) {
if (nftTransfersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNftTransfersIsMutable();
nftTransfers_.set(index, value);
onChanged();
} else {
nftTransfersBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* Applicable to tokens of type NON_FUNGIBLE_UNIQUE. Multiple list of NftTransfers, each of
* which has a sender and receiver account, including the serial number of the NFT
*
*
* repeated .proto.NftTransfer nftTransfers = 3;
*/
public Builder setNftTransfers(
int index, com.hederahashgraph.api.proto.java.NftTransfer.Builder builderForValue) {
if (nftTransfersBuilder_ == null) {
ensureNftTransfersIsMutable();
nftTransfers_.set(index, builderForValue.build());
onChanged();
} else {
nftTransfersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* Applicable to tokens of type NON_FUNGIBLE_UNIQUE. Multiple list of NftTransfers, each of
* which has a sender and receiver account, including the serial number of the NFT
*
*
* repeated .proto.NftTransfer nftTransfers = 3;
*/
public Builder addNftTransfers(com.hederahashgraph.api.proto.java.NftTransfer value) {
if (nftTransfersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNftTransfersIsMutable();
nftTransfers_.add(value);
onChanged();
} else {
nftTransfersBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* Applicable to tokens of type NON_FUNGIBLE_UNIQUE. Multiple list of NftTransfers, each of
* which has a sender and receiver account, including the serial number of the NFT
*
*
* repeated .proto.NftTransfer nftTransfers = 3;
*/
public Builder addNftTransfers(
int index, com.hederahashgraph.api.proto.java.NftTransfer value) {
if (nftTransfersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNftTransfersIsMutable();
nftTransfers_.add(index, value);
onChanged();
} else {
nftTransfersBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* Applicable to tokens of type NON_FUNGIBLE_UNIQUE. Multiple list of NftTransfers, each of
* which has a sender and receiver account, including the serial number of the NFT
*
*
* repeated .proto.NftTransfer nftTransfers = 3;
*/
public Builder addNftTransfers(
com.hederahashgraph.api.proto.java.NftTransfer.Builder builderForValue) {
if (nftTransfersBuilder_ == null) {
ensureNftTransfersIsMutable();
nftTransfers_.add(builderForValue.build());
onChanged();
} else {
nftTransfersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* Applicable to tokens of type NON_FUNGIBLE_UNIQUE. Multiple list of NftTransfers, each of
* which has a sender and receiver account, including the serial number of the NFT
*
*
* repeated .proto.NftTransfer nftTransfers = 3;
*/
public Builder addNftTransfers(
int index, com.hederahashgraph.api.proto.java.NftTransfer.Builder builderForValue) {
if (nftTransfersBuilder_ == null) {
ensureNftTransfersIsMutable();
nftTransfers_.add(index, builderForValue.build());
onChanged();
} else {
nftTransfersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* Applicable to tokens of type NON_FUNGIBLE_UNIQUE. Multiple list of NftTransfers, each of
* which has a sender and receiver account, including the serial number of the NFT
*
*
* repeated .proto.NftTransfer nftTransfers = 3;
*/
public Builder addAllNftTransfers(
java.lang.Iterable extends com.hederahashgraph.api.proto.java.NftTransfer> values) {
if (nftTransfersBuilder_ == null) {
ensureNftTransfersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, nftTransfers_);
onChanged();
} else {
nftTransfersBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* Applicable to tokens of type NON_FUNGIBLE_UNIQUE. Multiple list of NftTransfers, each of
* which has a sender and receiver account, including the serial number of the NFT
*
*
* repeated .proto.NftTransfer nftTransfers = 3;
*/
public Builder clearNftTransfers() {
if (nftTransfersBuilder_ == null) {
nftTransfers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
nftTransfersBuilder_.clear();
}
return this;
}
/**
*
**
* Applicable to tokens of type NON_FUNGIBLE_UNIQUE. Multiple list of NftTransfers, each of
* which has a sender and receiver account, including the serial number of the NFT
*
*
* repeated .proto.NftTransfer nftTransfers = 3;
*/
public Builder removeNftTransfers(int index) {
if (nftTransfersBuilder_ == null) {
ensureNftTransfersIsMutable();
nftTransfers_.remove(index);
onChanged();
} else {
nftTransfersBuilder_.remove(index);
}
return this;
}
/**
*
**
* Applicable to tokens of type NON_FUNGIBLE_UNIQUE. Multiple list of NftTransfers, each of
* which has a sender and receiver account, including the serial number of the NFT
*
*
* repeated .proto.NftTransfer nftTransfers = 3;
*/
public com.hederahashgraph.api.proto.java.NftTransfer.Builder getNftTransfersBuilder(
int index) {
return getNftTransfersFieldBuilder().getBuilder(index);
}
/**
*
**
* Applicable to tokens of type NON_FUNGIBLE_UNIQUE. Multiple list of NftTransfers, each of
* which has a sender and receiver account, including the serial number of the NFT
*
*
* repeated .proto.NftTransfer nftTransfers = 3;
*/
public com.hederahashgraph.api.proto.java.NftTransferOrBuilder getNftTransfersOrBuilder(
int index) {
if (nftTransfersBuilder_ == null) {
return nftTransfers_.get(index); } else {
return nftTransfersBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* Applicable to tokens of type NON_FUNGIBLE_UNIQUE. Multiple list of NftTransfers, each of
* which has a sender and receiver account, including the serial number of the NFT
*
*
* repeated .proto.NftTransfer nftTransfers = 3;
*/
public java.util.List extends com.hederahashgraph.api.proto.java.NftTransferOrBuilder>
getNftTransfersOrBuilderList() {
if (nftTransfersBuilder_ != null) {
return nftTransfersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(nftTransfers_);
}
}
/**
*
**
* Applicable to tokens of type NON_FUNGIBLE_UNIQUE. Multiple list of NftTransfers, each of
* which has a sender and receiver account, including the serial number of the NFT
*
*
* repeated .proto.NftTransfer nftTransfers = 3;
*/
public com.hederahashgraph.api.proto.java.NftTransfer.Builder addNftTransfersBuilder() {
return getNftTransfersFieldBuilder().addBuilder(
com.hederahashgraph.api.proto.java.NftTransfer.getDefaultInstance());
}
/**
*
**
* Applicable to tokens of type NON_FUNGIBLE_UNIQUE. Multiple list of NftTransfers, each of
* which has a sender and receiver account, including the serial number of the NFT
*
*
* repeated .proto.NftTransfer nftTransfers = 3;
*/
public com.hederahashgraph.api.proto.java.NftTransfer.Builder addNftTransfersBuilder(
int index) {
return getNftTransfersFieldBuilder().addBuilder(
index, com.hederahashgraph.api.proto.java.NftTransfer.getDefaultInstance());
}
/**
*
**
* Applicable to tokens of type NON_FUNGIBLE_UNIQUE. Multiple list of NftTransfers, each of
* which has a sender and receiver account, including the serial number of the NFT
*
*
* repeated .proto.NftTransfer nftTransfers = 3;
*/
public java.util.List
getNftTransfersBuilderList() {
return getNftTransfersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.NftTransfer, com.hederahashgraph.api.proto.java.NftTransfer.Builder, com.hederahashgraph.api.proto.java.NftTransferOrBuilder>
getNftTransfersFieldBuilder() {
if (nftTransfersBuilder_ == null) {
nftTransfersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.NftTransfer, com.hederahashgraph.api.proto.java.NftTransfer.Builder, com.hederahashgraph.api.proto.java.NftTransferOrBuilder>(
nftTransfers_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
nftTransfers_ = null;
}
return nftTransfersBuilder_;
}
private com.google.protobuf.UInt32Value expectedDecimals_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> expectedDecimalsBuilder_;
/**
*
**
* If present, the number of decimals this fungible token type is expected to have. The transfer
* will fail with UNEXPECTED_TOKEN_DECIMALS if the actual decimals differ.
*
*
* .google.protobuf.UInt32Value expected_decimals = 4;
* @return Whether the expectedDecimals field is set.
*/
public boolean hasExpectedDecimals() {
return expectedDecimalsBuilder_ != null || expectedDecimals_ != null;
}
/**
*
**
* If present, the number of decimals this fungible token type is expected to have. The transfer
* will fail with UNEXPECTED_TOKEN_DECIMALS if the actual decimals differ.
*
*
* .google.protobuf.UInt32Value expected_decimals = 4;
* @return The expectedDecimals.
*/
public com.google.protobuf.UInt32Value getExpectedDecimals() {
if (expectedDecimalsBuilder_ == null) {
return expectedDecimals_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : expectedDecimals_;
} else {
return expectedDecimalsBuilder_.getMessage();
}
}
/**
*
**
* If present, the number of decimals this fungible token type is expected to have. The transfer
* will fail with UNEXPECTED_TOKEN_DECIMALS if the actual decimals differ.
*
*
* .google.protobuf.UInt32Value expected_decimals = 4;
*/
public Builder setExpectedDecimals(com.google.protobuf.UInt32Value value) {
if (expectedDecimalsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
expectedDecimals_ = value;
onChanged();
} else {
expectedDecimalsBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* If present, the number of decimals this fungible token type is expected to have. The transfer
* will fail with UNEXPECTED_TOKEN_DECIMALS if the actual decimals differ.
*
*
* .google.protobuf.UInt32Value expected_decimals = 4;
*/
public Builder setExpectedDecimals(
com.google.protobuf.UInt32Value.Builder builderForValue) {
if (expectedDecimalsBuilder_ == null) {
expectedDecimals_ = builderForValue.build();
onChanged();
} else {
expectedDecimalsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* If present, the number of decimals this fungible token type is expected to have. The transfer
* will fail with UNEXPECTED_TOKEN_DECIMALS if the actual decimals differ.
*
*
* .google.protobuf.UInt32Value expected_decimals = 4;
*/
public Builder mergeExpectedDecimals(com.google.protobuf.UInt32Value value) {
if (expectedDecimalsBuilder_ == null) {
if (expectedDecimals_ != null) {
expectedDecimals_ =
com.google.protobuf.UInt32Value.newBuilder(expectedDecimals_).mergeFrom(value).buildPartial();
} else {
expectedDecimals_ = value;
}
onChanged();
} else {
expectedDecimalsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* If present, the number of decimals this fungible token type is expected to have. The transfer
* will fail with UNEXPECTED_TOKEN_DECIMALS if the actual decimals differ.
*
*
* .google.protobuf.UInt32Value expected_decimals = 4;
*/
public Builder clearExpectedDecimals() {
if (expectedDecimalsBuilder_ == null) {
expectedDecimals_ = null;
onChanged();
} else {
expectedDecimals_ = null;
expectedDecimalsBuilder_ = null;
}
return this;
}
/**
*
**
* If present, the number of decimals this fungible token type is expected to have. The transfer
* will fail with UNEXPECTED_TOKEN_DECIMALS if the actual decimals differ.
*
*
* .google.protobuf.UInt32Value expected_decimals = 4;
*/
public com.google.protobuf.UInt32Value.Builder getExpectedDecimalsBuilder() {
onChanged();
return getExpectedDecimalsFieldBuilder().getBuilder();
}
/**
*
**
* If present, the number of decimals this fungible token type is expected to have. The transfer
* will fail with UNEXPECTED_TOKEN_DECIMALS if the actual decimals differ.
*
*
* .google.protobuf.UInt32Value expected_decimals = 4;
*/
public com.google.protobuf.UInt32ValueOrBuilder getExpectedDecimalsOrBuilder() {
if (expectedDecimalsBuilder_ != null) {
return expectedDecimalsBuilder_.getMessageOrBuilder();
} else {
return expectedDecimals_ == null ?
com.google.protobuf.UInt32Value.getDefaultInstance() : expectedDecimals_;
}
}
/**
*
**
* If present, the number of decimals this fungible token type is expected to have. The transfer
* will fail with UNEXPECTED_TOKEN_DECIMALS if the actual decimals differ.
*
*
* .google.protobuf.UInt32Value expected_decimals = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>
getExpectedDecimalsFieldBuilder() {
if (expectedDecimalsBuilder_ == null) {
expectedDecimalsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>(
getExpectedDecimals(),
getParentForChildren(),
isClean());
expectedDecimals_ = null;
}
return expectedDecimalsBuilder_;
}
@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.TokenTransferList)
}
// @@protoc_insertion_point(class_scope:proto.TokenTransferList)
private static final com.hederahashgraph.api.proto.java.TokenTransferList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.TokenTransferList();
}
public static com.hederahashgraph.api.proto.java.TokenTransferList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TokenTransferList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TokenTransferList(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.TokenTransferList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy