
com.hedera.hashgraph.sdk.proto.TransactionList Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: transaction_list.proto
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* A simple protobuf wrapper to store a list of transactions. This is used by
* `Transaction.[from|to]Bytes()` in the SDKs. The reason the SDK needs a list of transactions is
* because it holds onto a transaction per node. So if a transaction is to be submitted to nodes 3
* and 4 the SDK Transaction type would contain a list of 2 protobuf transactions, one for node 3
* and one for node 4.
*
*
* Protobuf type {@code proto.TransactionList}
*/
public final class TransactionList extends
com.google.protobuf.GeneratedMessageLite<
TransactionList, TransactionList.Builder> implements
// @@protoc_insertion_point(message_implements:proto.TransactionList)
TransactionListOrBuilder {
private TransactionList() {
transactionList_ = emptyProtobufList();
}
public static final int TRANSACTION_LIST_FIELD_NUMBER = 1;
private com.google.protobuf.Internal.ProtobufList transactionList_;
/**
* repeated .proto.Transaction transaction_list = 1;
*/
@java.lang.Override
public java.util.List getTransactionListList() {
return transactionList_;
}
/**
* repeated .proto.Transaction transaction_list = 1;
*/
public java.util.List extends com.hedera.hashgraph.sdk.proto.TransactionOrBuilder>
getTransactionListOrBuilderList() {
return transactionList_;
}
/**
* repeated .proto.Transaction transaction_list = 1;
*/
@java.lang.Override
public int getTransactionListCount() {
return transactionList_.size();
}
/**
* repeated .proto.Transaction transaction_list = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Transaction getTransactionList(int index) {
return transactionList_.get(index);
}
/**
* repeated .proto.Transaction transaction_list = 1;
*/
public com.hedera.hashgraph.sdk.proto.TransactionOrBuilder getTransactionListOrBuilder(
int index) {
return transactionList_.get(index);
}
private void ensureTransactionListIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp = transactionList_;
if (!tmp.isModifiable()) {
transactionList_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
* repeated .proto.Transaction transaction_list = 1;
*/
private void setTransactionList(
int index, com.hedera.hashgraph.sdk.proto.Transaction value) {
value.getClass();
ensureTransactionListIsMutable();
transactionList_.set(index, value);
}
/**
* repeated .proto.Transaction transaction_list = 1;
*/
private void addTransactionList(com.hedera.hashgraph.sdk.proto.Transaction value) {
value.getClass();
ensureTransactionListIsMutable();
transactionList_.add(value);
}
/**
* repeated .proto.Transaction transaction_list = 1;
*/
private void addTransactionList(
int index, com.hedera.hashgraph.sdk.proto.Transaction value) {
value.getClass();
ensureTransactionListIsMutable();
transactionList_.add(index, value);
}
/**
* repeated .proto.Transaction transaction_list = 1;
*/
private void addAllTransactionList(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.Transaction> values) {
ensureTransactionListIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, transactionList_);
}
/**
* repeated .proto.Transaction transaction_list = 1;
*/
private void clearTransactionList() {
transactionList_ = emptyProtobufList();
}
/**
* repeated .proto.Transaction transaction_list = 1;
*/
private void removeTransactionList(int index) {
ensureTransactionListIsMutable();
transactionList_.remove(index);
}
public static com.hedera.hashgraph.sdk.proto.TransactionList 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.TransactionList 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.TransactionList 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.TransactionList 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.TransactionList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.TransactionList 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.TransactionList 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.TransactionList 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.TransactionList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.TransactionList 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.TransactionList 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.TransactionList 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.TransactionList prototype) {
return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
**
* A simple protobuf wrapper to store a list of transactions. This is used by
* `Transaction.[from|to]Bytes()` in the SDKs. The reason the SDK needs a list of transactions is
* because it holds onto a transaction per node. So if a transaction is to be submitted to nodes 3
* and 4 the SDK Transaction type would contain a list of 2 protobuf transactions, one for node 3
* and one for node 4.
*
*
* Protobuf type {@code proto.TransactionList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.hedera.hashgraph.sdk.proto.TransactionList, Builder> implements
// @@protoc_insertion_point(builder_implements:proto.TransactionList)
com.hedera.hashgraph.sdk.proto.TransactionListOrBuilder {
// Construct using com.hedera.hashgraph.sdk.proto.TransactionList.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* repeated .proto.Transaction transaction_list = 1;
*/
@java.lang.Override
public java.util.List getTransactionListList() {
return java.util.Collections.unmodifiableList(
instance.getTransactionListList());
}
/**
* repeated .proto.Transaction transaction_list = 1;
*/
@java.lang.Override
public int getTransactionListCount() {
return instance.getTransactionListCount();
}/**
* repeated .proto.Transaction transaction_list = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Transaction getTransactionList(int index) {
return instance.getTransactionList(index);
}
/**
* repeated .proto.Transaction transaction_list = 1;
*/
public Builder setTransactionList(
int index, com.hedera.hashgraph.sdk.proto.Transaction value) {
copyOnWrite();
instance.setTransactionList(index, value);
return this;
}
/**
* repeated .proto.Transaction transaction_list = 1;
*/
public Builder setTransactionList(
int index, com.hedera.hashgraph.sdk.proto.Transaction.Builder builderForValue) {
copyOnWrite();
instance.setTransactionList(index,
builderForValue.build());
return this;
}
/**
* repeated .proto.Transaction transaction_list = 1;
*/
public Builder addTransactionList(com.hedera.hashgraph.sdk.proto.Transaction value) {
copyOnWrite();
instance.addTransactionList(value);
return this;
}
/**
* repeated .proto.Transaction transaction_list = 1;
*/
public Builder addTransactionList(
int index, com.hedera.hashgraph.sdk.proto.Transaction value) {
copyOnWrite();
instance.addTransactionList(index, value);
return this;
}
/**
* repeated .proto.Transaction transaction_list = 1;
*/
public Builder addTransactionList(
com.hedera.hashgraph.sdk.proto.Transaction.Builder builderForValue) {
copyOnWrite();
instance.addTransactionList(builderForValue.build());
return this;
}
/**
* repeated .proto.Transaction transaction_list = 1;
*/
public Builder addTransactionList(
int index, com.hedera.hashgraph.sdk.proto.Transaction.Builder builderForValue) {
copyOnWrite();
instance.addTransactionList(index,
builderForValue.build());
return this;
}
/**
* repeated .proto.Transaction transaction_list = 1;
*/
public Builder addAllTransactionList(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.Transaction> values) {
copyOnWrite();
instance.addAllTransactionList(values);
return this;
}
/**
* repeated .proto.Transaction transaction_list = 1;
*/
public Builder clearTransactionList() {
copyOnWrite();
instance.clearTransactionList();
return this;
}
/**
* repeated .proto.Transaction transaction_list = 1;
*/
public Builder removeTransactionList(int index) {
copyOnWrite();
instance.removeTransactionList(index);
return this;
}
// @@protoc_insertion_point(builder_scope:proto.TransactionList)
}
@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.TransactionList();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"transactionList_",
com.hedera.hashgraph.sdk.proto.Transaction.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.TransactionList.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.TransactionList)
private static final com.hedera.hashgraph.sdk.proto.TransactionList DEFAULT_INSTANCE;
static {
TransactionList defaultInstance = new TransactionList();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
TransactionList.class, defaultInstance);
}
public static com.hedera.hashgraph.sdk.proto.TransactionList 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