
com.hedera.hashgraph.sdk.proto.TransferList Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: basic_types.proto
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* A list of accounts and amounts to transfer out of each account (negative) or into it (positive).
*
*
* Protobuf type {@code proto.TransferList}
*/
public final class TransferList extends
com.google.protobuf.GeneratedMessageLite<
TransferList, TransferList.Builder> implements
// @@protoc_insertion_point(message_implements:proto.TransferList)
TransferListOrBuilder {
private TransferList() {
accountAmounts_ = emptyProtobufList();
}
public static final int ACCOUNTAMOUNTS_FIELD_NUMBER = 1;
private com.google.protobuf.Internal.ProtobufList accountAmounts_;
/**
*
**
* Multiple list of AccountAmount pairs, each of which has an account and
* an amount to transfer into it (positive) or out of it (negative)
*
*
* repeated .proto.AccountAmount accountAmounts = 1;
*/
@java.lang.Override
public java.util.List getAccountAmountsList() {
return accountAmounts_;
}
/**
*
**
* Multiple list of AccountAmount pairs, each of which has an account and
* an amount to transfer into it (positive) or out of it (negative)
*
*
* repeated .proto.AccountAmount accountAmounts = 1;
*/
public java.util.List extends com.hedera.hashgraph.sdk.proto.AccountAmountOrBuilder>
getAccountAmountsOrBuilderList() {
return accountAmounts_;
}
/**
*
**
* Multiple list of AccountAmount pairs, each of which has an account and
* an amount to transfer into it (positive) or out of it (negative)
*
*
* repeated .proto.AccountAmount accountAmounts = 1;
*/
@java.lang.Override
public int getAccountAmountsCount() {
return accountAmounts_.size();
}
/**
*
**
* Multiple list of AccountAmount pairs, each of which has an account and
* an amount to transfer into it (positive) or out of it (negative)
*
*
* repeated .proto.AccountAmount accountAmounts = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountAmount getAccountAmounts(int index) {
return accountAmounts_.get(index);
}
/**
*
**
* Multiple list of AccountAmount pairs, each of which has an account and
* an amount to transfer into it (positive) or out of it (negative)
*
*
* repeated .proto.AccountAmount accountAmounts = 1;
*/
public com.hedera.hashgraph.sdk.proto.AccountAmountOrBuilder getAccountAmountsOrBuilder(
int index) {
return accountAmounts_.get(index);
}
private void ensureAccountAmountsIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp = accountAmounts_;
if (!tmp.isModifiable()) {
accountAmounts_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
*
**
* Multiple list of AccountAmount pairs, each of which has an account and
* an amount to transfer into it (positive) or out of it (negative)
*
*
* repeated .proto.AccountAmount accountAmounts = 1;
*/
private void setAccountAmounts(
int index, com.hedera.hashgraph.sdk.proto.AccountAmount value) {
value.getClass();
ensureAccountAmountsIsMutable();
accountAmounts_.set(index, value);
}
/**
*
**
* Multiple list of AccountAmount pairs, each of which has an account and
* an amount to transfer into it (positive) or out of it (negative)
*
*
* repeated .proto.AccountAmount accountAmounts = 1;
*/
private void addAccountAmounts(com.hedera.hashgraph.sdk.proto.AccountAmount value) {
value.getClass();
ensureAccountAmountsIsMutable();
accountAmounts_.add(value);
}
/**
*
**
* Multiple list of AccountAmount pairs, each of which has an account and
* an amount to transfer into it (positive) or out of it (negative)
*
*
* repeated .proto.AccountAmount accountAmounts = 1;
*/
private void addAccountAmounts(
int index, com.hedera.hashgraph.sdk.proto.AccountAmount value) {
value.getClass();
ensureAccountAmountsIsMutable();
accountAmounts_.add(index, value);
}
/**
*
**
* Multiple list of AccountAmount pairs, each of which has an account and
* an amount to transfer into it (positive) or out of it (negative)
*
*
* repeated .proto.AccountAmount accountAmounts = 1;
*/
private void addAllAccountAmounts(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.AccountAmount> values) {
ensureAccountAmountsIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, accountAmounts_);
}
/**
*
**
* Multiple list of AccountAmount pairs, each of which has an account and
* an amount to transfer into it (positive) or out of it (negative)
*
*
* repeated .proto.AccountAmount accountAmounts = 1;
*/
private void clearAccountAmounts() {
accountAmounts_ = emptyProtobufList();
}
/**
*
**
* Multiple list of AccountAmount pairs, each of which has an account and
* an amount to transfer into it (positive) or out of it (negative)
*
*
* repeated .proto.AccountAmount accountAmounts = 1;
*/
private void removeAccountAmounts(int index) {
ensureAccountAmountsIsMutable();
accountAmounts_.remove(index);
}
public static com.hedera.hashgraph.sdk.proto.TransferList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.TransferList parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.TransferList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.TransferList parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.TransferList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.TransferList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.TransferList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.TransferList parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.TransferList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.TransferList parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.TransferList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.TransferList parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.TransferList prototype) {
return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
**
* A list of accounts and amounts to transfer out of each account (negative) or into it (positive).
*
*
* Protobuf type {@code proto.TransferList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.hedera.hashgraph.sdk.proto.TransferList, Builder> implements
// @@protoc_insertion_point(builder_implements:proto.TransferList)
com.hedera.hashgraph.sdk.proto.TransferListOrBuilder {
// Construct using com.hedera.hashgraph.sdk.proto.TransferList.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
**
* Multiple list of AccountAmount pairs, each of which has an account and
* an amount to transfer into it (positive) or out of it (negative)
*
*
* repeated .proto.AccountAmount accountAmounts = 1;
*/
@java.lang.Override
public java.util.List getAccountAmountsList() {
return java.util.Collections.unmodifiableList(
instance.getAccountAmountsList());
}
/**
*
**
* Multiple list of AccountAmount pairs, each of which has an account and
* an amount to transfer into it (positive) or out of it (negative)
*
*
* repeated .proto.AccountAmount accountAmounts = 1;
*/
@java.lang.Override
public int getAccountAmountsCount() {
return instance.getAccountAmountsCount();
}/**
*
**
* Multiple list of AccountAmount pairs, each of which has an account and
* an amount to transfer into it (positive) or out of it (negative)
*
*
* repeated .proto.AccountAmount accountAmounts = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountAmount getAccountAmounts(int index) {
return instance.getAccountAmounts(index);
}
/**
*
**
* Multiple list of AccountAmount pairs, each of which has an account and
* an amount to transfer into it (positive) or out of it (negative)
*
*
* repeated .proto.AccountAmount accountAmounts = 1;
*/
public Builder setAccountAmounts(
int index, com.hedera.hashgraph.sdk.proto.AccountAmount value) {
copyOnWrite();
instance.setAccountAmounts(index, value);
return this;
}
/**
*
**
* Multiple list of AccountAmount pairs, each of which has an account and
* an amount to transfer into it (positive) or out of it (negative)
*
*
* repeated .proto.AccountAmount accountAmounts = 1;
*/
public Builder setAccountAmounts(
int index, com.hedera.hashgraph.sdk.proto.AccountAmount.Builder builderForValue) {
copyOnWrite();
instance.setAccountAmounts(index,
builderForValue.build());
return this;
}
/**
*
**
* Multiple list of AccountAmount pairs, each of which has an account and
* an amount to transfer into it (positive) or out of it (negative)
*
*
* repeated .proto.AccountAmount accountAmounts = 1;
*/
public Builder addAccountAmounts(com.hedera.hashgraph.sdk.proto.AccountAmount value) {
copyOnWrite();
instance.addAccountAmounts(value);
return this;
}
/**
*
**
* Multiple list of AccountAmount pairs, each of which has an account and
* an amount to transfer into it (positive) or out of it (negative)
*
*
* repeated .proto.AccountAmount accountAmounts = 1;
*/
public Builder addAccountAmounts(
int index, com.hedera.hashgraph.sdk.proto.AccountAmount value) {
copyOnWrite();
instance.addAccountAmounts(index, value);
return this;
}
/**
*
**
* Multiple list of AccountAmount pairs, each of which has an account and
* an amount to transfer into it (positive) or out of it (negative)
*
*
* repeated .proto.AccountAmount accountAmounts = 1;
*/
public Builder addAccountAmounts(
com.hedera.hashgraph.sdk.proto.AccountAmount.Builder builderForValue) {
copyOnWrite();
instance.addAccountAmounts(builderForValue.build());
return this;
}
/**
*
**
* Multiple list of AccountAmount pairs, each of which has an account and
* an amount to transfer into it (positive) or out of it (negative)
*
*
* repeated .proto.AccountAmount accountAmounts = 1;
*/
public Builder addAccountAmounts(
int index, com.hedera.hashgraph.sdk.proto.AccountAmount.Builder builderForValue) {
copyOnWrite();
instance.addAccountAmounts(index,
builderForValue.build());
return this;
}
/**
*
**
* Multiple list of AccountAmount pairs, each of which has an account and
* an amount to transfer into it (positive) or out of it (negative)
*
*
* repeated .proto.AccountAmount accountAmounts = 1;
*/
public Builder addAllAccountAmounts(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.AccountAmount> values) {
copyOnWrite();
instance.addAllAccountAmounts(values);
return this;
}
/**
*
**
* Multiple list of AccountAmount pairs, each of which has an account and
* an amount to transfer into it (positive) or out of it (negative)
*
*
* repeated .proto.AccountAmount accountAmounts = 1;
*/
public Builder clearAccountAmounts() {
copyOnWrite();
instance.clearAccountAmounts();
return this;
}
/**
*
**
* Multiple list of AccountAmount pairs, each of which has an account and
* an amount to transfer into it (positive) or out of it (negative)
*
*
* repeated .proto.AccountAmount accountAmounts = 1;
*/
public Builder removeAccountAmounts(int index) {
copyOnWrite();
instance.removeAccountAmounts(index);
return this;
}
// @@protoc_insertion_point(builder_scope:proto.TransferList)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.hedera.hashgraph.sdk.proto.TransferList();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"accountAmounts_",
com.hedera.hashgraph.sdk.proto.AccountAmount.class,
};
java.lang.String info =
"\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0001\u0000\u0001\u001b";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (com.hedera.hashgraph.sdk.proto.TransferList.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:proto.TransferList)
private static final com.hedera.hashgraph.sdk.proto.TransferList DEFAULT_INSTANCE;
static {
TransferList defaultInstance = new TransferList();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
TransferList.class, defaultInstance);
}
public static com.hedera.hashgraph.sdk.proto.TransferList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy