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

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

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

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

/**
 * 
 **
 * 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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_TokenTransferList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_TokenTransferList_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.TokenTransferList.class, com.hedera.hashgraph.sdk.proto.TokenTransferList.Builder.class); } private int bitField0_; public static final int TOKEN_FIELD_NUMBER = 1; private com.hedera.hashgraph.sdk.proto.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 ((bitField0_ & 0x00000001) != 0); } /** *
   **
   * The ID of the token
   * 
* * .proto.TokenID token = 1; * @return The token. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.TokenID getToken() { return token_ == null ? com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance() : token_; } /** *
   **
   * The ID of the token
   * 
* * .proto.TokenID token = 1; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder getTokenOrBuilder() { return token_ == null ? com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance() : token_; } public static final int TRANSFERS_FIELD_NUMBER = 2; @SuppressWarnings("serial") 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 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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.AccountAmountOrBuilder getTransfersOrBuilder( int index) { return transfers_.get(index); } public static final int NFTTRANSFERS_FIELD_NUMBER = 3; @SuppressWarnings("serial") 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 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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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 ((bitField0_ & 0x00000002) != 0); } /** *
   **
   * 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 expectedDecimals_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : expectedDecimals_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, 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 (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getExpectedDecimals()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, 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 (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getExpectedDecimals()); } 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.TokenTransferList)) { return super.equals(obj); } com.hedera.hashgraph.sdk.proto.TokenTransferList other = (com.hedera.hashgraph.sdk.proto.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 (!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 (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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.hashgraph.sdk.proto.TokenTransferList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.TokenTransferList 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.TokenTransferList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.TokenTransferList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.TokenTransferList 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.TokenTransferList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.TokenTransferList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.TokenTransferList 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.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.TokenTransferListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_TokenTransferList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_TokenTransferList_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.TokenTransferList.class, com.hedera.hashgraph.sdk.proto.TokenTransferList.Builder.class); } // Construct using com.hedera.hashgraph.sdk.proto.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) { getTokenFieldBuilder(); getTransfersFieldBuilder(); getNftTransfersFieldBuilder(); getExpectedDecimalsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; token_ = null; if (tokenBuilder_ != null) { tokenBuilder_.dispose(); tokenBuilder_ = null; } if (transfersBuilder_ == null) { transfers_ = java.util.Collections.emptyList(); } else { transfers_ = null; transfersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (nftTransfersBuilder_ == null) { nftTransfers_ = java.util.Collections.emptyList(); } else { nftTransfers_ = null; nftTransfersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); expectedDecimals_ = null; if (expectedDecimalsBuilder_ != null) { expectedDecimalsBuilder_.dispose(); expectedDecimalsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_TokenTransferList_descriptor; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.TokenTransferList getDefaultInstanceForType() { return com.hedera.hashgraph.sdk.proto.TokenTransferList.getDefaultInstance(); } @java.lang.Override public com.hedera.hashgraph.sdk.proto.TokenTransferList build() { com.hedera.hashgraph.sdk.proto.TokenTransferList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.TokenTransferList buildPartial() { com.hedera.hashgraph.sdk.proto.TokenTransferList result = new com.hedera.hashgraph.sdk.proto.TokenTransferList(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.hedera.hashgraph.sdk.proto.TokenTransferList result) { if (transfersBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { transfers_ = java.util.Collections.unmodifiableList(transfers_); bitField0_ = (bitField0_ & ~0x00000002); } result.transfers_ = transfers_; } else { result.transfers_ = transfersBuilder_.build(); } if (nftTransfersBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { nftTransfers_ = java.util.Collections.unmodifiableList(nftTransfers_); bitField0_ = (bitField0_ & ~0x00000004); } result.nftTransfers_ = nftTransfers_; } else { result.nftTransfers_ = nftTransfersBuilder_.build(); } } private void buildPartial0(com.hedera.hashgraph.sdk.proto.TokenTransferList result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.token_ = tokenBuilder_ == null ? token_ : tokenBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.expectedDecimals_ = expectedDecimalsBuilder_ == null ? expectedDecimals_ : expectedDecimalsBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.hedera.hashgraph.sdk.proto.TokenTransferList) { return mergeFrom((com.hedera.hashgraph.sdk.proto.TokenTransferList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.TokenTransferList other) { if (other == com.hedera.hashgraph.sdk.proto.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_ & ~0x00000002); } else { ensureTransfersIsMutable(); transfers_.addAll(other.transfers_); } onChanged(); } } else { if (!other.transfers_.isEmpty()) { if (transfersBuilder_.isEmpty()) { transfersBuilder_.dispose(); transfersBuilder_ = null; transfers_ = other.transfers_; bitField0_ = (bitField0_ & ~0x00000002); 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_ & ~0x00000004); } else { ensureNftTransfersIsMutable(); nftTransfers_.addAll(other.nftTransfers_); } onChanged(); } } else { if (!other.nftTransfers_.isEmpty()) { if (nftTransfersBuilder_.isEmpty()) { nftTransfersBuilder_.dispose(); nftTransfersBuilder_ = null; nftTransfers_ = other.nftTransfers_; bitField0_ = (bitField0_ & ~0x00000004); nftTransfersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getNftTransfersFieldBuilder() : null; } else { nftTransfersBuilder_.addAllMessages(other.nftTransfers_); } } } if (other.hasExpectedDecimals()) { mergeExpectedDecimals(other.getExpectedDecimals()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTokenFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.hedera.hashgraph.sdk.proto.AccountAmount m = input.readMessage( com.hedera.hashgraph.sdk.proto.AccountAmount.parser(), extensionRegistry); if (transfersBuilder_ == null) { ensureTransfersIsMutable(); transfers_.add(m); } else { transfersBuilder_.addMessage(m); } break; } // case 18 case 26: { com.hedera.hashgraph.sdk.proto.NftTransfer m = input.readMessage( com.hedera.hashgraph.sdk.proto.NftTransfer.parser(), extensionRegistry); if (nftTransfersBuilder_ == null) { ensureNftTransfersIsMutable(); nftTransfers_.add(m); } else { nftTransfersBuilder_.addMessage(m); } break; } // case 26 case 34: { input.readMessage( getExpectedDecimalsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.hedera.hashgraph.sdk.proto.TokenID token_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.TokenID, com.hedera.hashgraph.sdk.proto.TokenID.Builder, com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder> tokenBuilder_; /** *
     **
     * The ID of the token
     * 
* * .proto.TokenID token = 1; * @return Whether the token field is set. */ public boolean hasToken() { return ((bitField0_ & 0x00000001) != 0); } /** *
     **
     * The ID of the token
     * 
* * .proto.TokenID token = 1; * @return The token. */ public com.hedera.hashgraph.sdk.proto.TokenID getToken() { if (tokenBuilder_ == null) { return token_ == null ? com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance() : token_; } else { return tokenBuilder_.getMessage(); } } /** *
     **
     * The ID of the token
     * 
* * .proto.TokenID token = 1; */ public Builder setToken(com.hedera.hashgraph.sdk.proto.TokenID value) { if (tokenBuilder_ == null) { if (value == null) { throw new NullPointerException(); } token_ = value; } else { tokenBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * The ID of the token
     * 
* * .proto.TokenID token = 1; */ public Builder setToken( com.hedera.hashgraph.sdk.proto.TokenID.Builder builderForValue) { if (tokenBuilder_ == null) { token_ = builderForValue.build(); } else { tokenBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * The ID of the token
     * 
* * .proto.TokenID token = 1; */ public Builder mergeToken(com.hedera.hashgraph.sdk.proto.TokenID value) { if (tokenBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && token_ != null && token_ != com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance()) { getTokenBuilder().mergeFrom(value); } else { token_ = value; } } else { tokenBuilder_.mergeFrom(value); } if (token_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     **
     * The ID of the token
     * 
* * .proto.TokenID token = 1; */ public Builder clearToken() { bitField0_ = (bitField0_ & ~0x00000001); token_ = null; if (tokenBuilder_ != null) { tokenBuilder_.dispose(); tokenBuilder_ = null; } onChanged(); return this; } /** *
     **
     * The ID of the token
     * 
* * .proto.TokenID token = 1; */ public com.hedera.hashgraph.sdk.proto.TokenID.Builder getTokenBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTokenFieldBuilder().getBuilder(); } /** *
     **
     * The ID of the token
     * 
* * .proto.TokenID token = 1; */ public com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder getTokenOrBuilder() { if (tokenBuilder_ != null) { return tokenBuilder_.getMessageOrBuilder(); } else { return token_ == null ? com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance() : token_; } } /** *
     **
     * The ID of the token
     * 
* * .proto.TokenID token = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.TokenID, com.hedera.hashgraph.sdk.proto.TokenID.Builder, com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder> getTokenFieldBuilder() { if (tokenBuilder_ == null) { tokenBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.TokenID, com.hedera.hashgraph.sdk.proto.TokenID.Builder, com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder>( getToken(), getParentForChildren(), isClean()); token_ = null; } return tokenBuilder_; } private java.util.List transfers_ = java.util.Collections.emptyList(); private void ensureTransfersIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { transfers_ = new java.util.ArrayList(transfers_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountAmount, com.hedera.hashgraph.sdk.proto.AccountAmount.Builder, com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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 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_ & ~0x00000002); 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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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 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.hedera.hashgraph.sdk.proto.AccountAmount.Builder addTransfersBuilder() { return getTransfersFieldBuilder().addBuilder( com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.AccountAmount.Builder addTransfersBuilder( int index) { return getTransfersFieldBuilder().addBuilder( index, com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.AccountAmount, com.hedera.hashgraph.sdk.proto.AccountAmount.Builder, com.hedera.hashgraph.sdk.proto.AccountAmountOrBuilder> getTransfersFieldBuilder() { if (transfersBuilder_ == null) { transfersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountAmount, com.hedera.hashgraph.sdk.proto.AccountAmount.Builder, com.hedera.hashgraph.sdk.proto.AccountAmountOrBuilder>( transfers_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); transfers_ = null; } return transfersBuilder_; } private java.util.List nftTransfers_ = java.util.Collections.emptyList(); private void ensureNftTransfersIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { nftTransfers_ = new java.util.ArrayList(nftTransfers_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.hashgraph.sdk.proto.NftTransfer, com.hedera.hashgraph.sdk.proto.NftTransfer.Builder, com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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 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_ & ~0x00000004); 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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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 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.hedera.hashgraph.sdk.proto.NftTransfer.Builder addNftTransfersBuilder() { return getNftTransfersFieldBuilder().addBuilder( com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.NftTransfer.Builder addNftTransfersBuilder( int index) { return getNftTransfersFieldBuilder().addBuilder( index, com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.NftTransfer, com.hedera.hashgraph.sdk.proto.NftTransfer.Builder, com.hedera.hashgraph.sdk.proto.NftTransferOrBuilder> getNftTransfersFieldBuilder() { if (nftTransfersBuilder_ == null) { nftTransfersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.hashgraph.sdk.proto.NftTransfer, com.hedera.hashgraph.sdk.proto.NftTransfer.Builder, com.hedera.hashgraph.sdk.proto.NftTransferOrBuilder>( nftTransfers_, ((bitField0_ & 0x00000004) != 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 ((bitField0_ & 0x00000008) != 0); } /** *
     **
     * 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; } else { expectedDecimalsBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); 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(); } else { expectedDecimalsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); 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 (((bitField0_ & 0x00000008) != 0) && expectedDecimals_ != null && expectedDecimals_ != com.google.protobuf.UInt32Value.getDefaultInstance()) { getExpectedDecimalsBuilder().mergeFrom(value); } else { expectedDecimals_ = value; } } else { expectedDecimalsBuilder_.mergeFrom(value); } if (expectedDecimals_ != null) { bitField0_ |= 0x00000008; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000008); expectedDecimals_ = null; if (expectedDecimalsBuilder_ != null) { expectedDecimalsBuilder_.dispose(); expectedDecimalsBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000008; 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.hedera.hashgraph.sdk.proto.TokenTransferList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.TokenTransferList(); } public static com.hedera.hashgraph.sdk.proto.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 { 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.TokenTransferList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy