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

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

There is a newer version: 0.57.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: BasicTypes.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(); } @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; } 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_); } 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; */ public boolean hasToken() { return token_ != null; } /** *
   * The ID of the token
   * 
* * .proto.TokenID token = 1; */ 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; */ public com.hederahashgraph.api.proto.java.TokenIDOrBuilder getTokenOrBuilder() { return getToken(); } public static final int TRANSFERS_FIELD_NUMBER = 2; private java.util.List transfers_; /** *
   * Multiple list of AccountAmounts, each of which has an account and amount
   * 
* * repeated .proto.AccountAmount transfers = 2; */ public java.util.List getTransfersList() { return transfers_; } /** *
   * Multiple list of AccountAmounts, each of which has an account and amount
   * 
* * repeated .proto.AccountAmount transfers = 2; */ public java.util.List getTransfersOrBuilderList() { return transfers_; } /** *
   * Multiple list of AccountAmounts, each of which has an account and amount
   * 
* * repeated .proto.AccountAmount transfers = 2; */ public int getTransfersCount() { return transfers_.size(); } /** *
   * 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) { return transfers_.get(index); } /** *
   * 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) { return transfers_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (token_ != null) { output.writeMessage(1, getToken()); } for (int i = 0; i < transfers_.size(); i++) { output.writeMessage(2, transfers_.get(i)); } 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)); } 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 (!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(); } 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(); } } @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(); } 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(); } 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_); } } } 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; */ public boolean hasToken() { return tokenBuilder_ != null || token_ != null; } /** *
     * The ID of the token
     * 
* * .proto.TokenID token = 1; */ 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_; /** *
     * 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(); } } /** *
     * 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(); } } /** *
     * 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); } } /** *
     * 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; } /** *
     * 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; } /** *
     * 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; } /** *
     * 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; } /** *
     * 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; } /** *
     * 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; } /** *
     * 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; } /** *
     * 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; } /** *
     * 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; } /** *
     * 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); } /** *
     * 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); } } /** *
     * 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_); } } /** *
     * 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()); } /** *
     * 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()); } /** *
     * 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_; } @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 - 2025 Weber Informatics LLC | Privacy Policy