Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.hedera.hashgraph.sdk.proto.NetworkGetExecutionTimeQuery Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: network_get_execution_time.proto
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* Gets the time in nanoseconds spent in <tt>handleTransaction</tt> for one or more
* TransactionIDs (assuming they have reached consensus "recently", since only a limited
* number of execution times are kept in-memory, depending on the value of the node-local
* property <tt>stats.executionTimesToTrack</tt>).
*
*
* Protobuf type {@code proto.NetworkGetExecutionTimeQuery}
*/
public final class NetworkGetExecutionTimeQuery extends
com.google.protobuf.GeneratedMessageLite<
NetworkGetExecutionTimeQuery, NetworkGetExecutionTimeQuery.Builder> implements
// @@protoc_insertion_point(message_implements:proto.NetworkGetExecutionTimeQuery)
NetworkGetExecutionTimeQueryOrBuilder {
private NetworkGetExecutionTimeQuery() {
transactionIds_ = emptyProtobufList();
}
public static final int HEADER_FIELD_NUMBER = 1;
private com.hedera.hashgraph.sdk.proto.QueryHeader header_;
/**
*
**
* standard info sent from client to node including the signed payment, and what kind of response
* is requested (cost, state proof, both, or neither).
*
*
* .proto.QueryHeader header = 1;
*/
@java.lang.Override
public boolean hasHeader() {
return header_ != null;
}
/**
*
**
* standard info sent from client to node including the signed payment, and what kind of response
* is requested (cost, state proof, both, or neither).
*
*
* .proto.QueryHeader header = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.QueryHeader getHeader() {
return header_ == null ? com.hedera.hashgraph.sdk.proto.QueryHeader.getDefaultInstance() : header_;
}
/**
*
**
* standard info sent from client to node including the signed payment, and what kind of response
* is requested (cost, state proof, both, or neither).
*
*
* .proto.QueryHeader header = 1;
*/
private void setHeader(com.hedera.hashgraph.sdk.proto.QueryHeader value) {
value.getClass();
header_ = value;
}
/**
*
**
* standard info sent from client to node including the signed payment, and what kind of response
* is requested (cost, state proof, both, or neither).
*
*
* .proto.QueryHeader header = 1;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeHeader(com.hedera.hashgraph.sdk.proto.QueryHeader value) {
value.getClass();
if (header_ != null &&
header_ != com.hedera.hashgraph.sdk.proto.QueryHeader.getDefaultInstance()) {
header_ =
com.hedera.hashgraph.sdk.proto.QueryHeader.newBuilder(header_).mergeFrom(value).buildPartial();
} else {
header_ = value;
}
}
/**
*
**
* standard info sent from client to node including the signed payment, and what kind of response
* is requested (cost, state proof, both, or neither).
*
*
* .proto.QueryHeader header = 1;
*/
private void clearHeader() { header_ = null;
}
public static final int TRANSACTION_IDS_FIELD_NUMBER = 2;
private com.google.protobuf.Internal.ProtobufList transactionIds_;
/**
*
**
* The id(s) of the transactions to get the execution time(s) of
*
*
* repeated .proto.TransactionID transaction_ids = 2;
*/
@java.lang.Override
public java.util.List getTransactionIdsList() {
return transactionIds_;
}
/**
*
**
* The id(s) of the transactions to get the execution time(s) of
*
*
* repeated .proto.TransactionID transaction_ids = 2;
*/
public java.util.List extends com.hedera.hashgraph.sdk.proto.TransactionIDOrBuilder>
getTransactionIdsOrBuilderList() {
return transactionIds_;
}
/**
*
**
* The id(s) of the transactions to get the execution time(s) of
*
*
* repeated .proto.TransactionID transaction_ids = 2;
*/
@java.lang.Override
public int getTransactionIdsCount() {
return transactionIds_.size();
}
/**
*
**
* The id(s) of the transactions to get the execution time(s) of
*
*
* repeated .proto.TransactionID transaction_ids = 2;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionID getTransactionIds(int index) {
return transactionIds_.get(index);
}
/**
*
**
* The id(s) of the transactions to get the execution time(s) of
*
*
* repeated .proto.TransactionID transaction_ids = 2;
*/
public com.hedera.hashgraph.sdk.proto.TransactionIDOrBuilder getTransactionIdsOrBuilder(
int index) {
return transactionIds_.get(index);
}
private void ensureTransactionIdsIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp = transactionIds_;
if (!tmp.isModifiable()) {
transactionIds_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
*
**
* The id(s) of the transactions to get the execution time(s) of
*
*
* repeated .proto.TransactionID transaction_ids = 2;
*/
private void setTransactionIds(
int index, com.hedera.hashgraph.sdk.proto.TransactionID value) {
value.getClass();
ensureTransactionIdsIsMutable();
transactionIds_.set(index, value);
}
/**
*
**
* The id(s) of the transactions to get the execution time(s) of
*
*
* repeated .proto.TransactionID transaction_ids = 2;
*/
private void addTransactionIds(com.hedera.hashgraph.sdk.proto.TransactionID value) {
value.getClass();
ensureTransactionIdsIsMutable();
transactionIds_.add(value);
}
/**
*
**
* The id(s) of the transactions to get the execution time(s) of
*
*
* repeated .proto.TransactionID transaction_ids = 2;
*/
private void addTransactionIds(
int index, com.hedera.hashgraph.sdk.proto.TransactionID value) {
value.getClass();
ensureTransactionIdsIsMutable();
transactionIds_.add(index, value);
}
/**
*
**
* The id(s) of the transactions to get the execution time(s) of
*
*
* repeated .proto.TransactionID transaction_ids = 2;
*/
private void addAllTransactionIds(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.TransactionID> values) {
ensureTransactionIdsIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, transactionIds_);
}
/**
*
**
* The id(s) of the transactions to get the execution time(s) of
*
*
* repeated .proto.TransactionID transaction_ids = 2;
*/
private void clearTransactionIds() {
transactionIds_ = emptyProtobufList();
}
/**
*
**
* The id(s) of the transactions to get the execution time(s) of
*
*
* repeated .proto.TransactionID transaction_ids = 2;
*/
private void removeTransactionIds(int index) {
ensureTransactionIdsIsMutable();
transactionIds_.remove(index);
}
public static com.hedera.hashgraph.sdk.proto.NetworkGetExecutionTimeQuery 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.NetworkGetExecutionTimeQuery 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.NetworkGetExecutionTimeQuery 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.NetworkGetExecutionTimeQuery 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.NetworkGetExecutionTimeQuery parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.NetworkGetExecutionTimeQuery 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.NetworkGetExecutionTimeQuery 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.NetworkGetExecutionTimeQuery 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.NetworkGetExecutionTimeQuery parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.NetworkGetExecutionTimeQuery 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.NetworkGetExecutionTimeQuery 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.NetworkGetExecutionTimeQuery 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.NetworkGetExecutionTimeQuery prototype) {
return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
**
* Gets the time in nanoseconds spent in <tt>handleTransaction</tt> for one or more
* TransactionIDs (assuming they have reached consensus "recently", since only a limited
* number of execution times are kept in-memory, depending on the value of the node-local
* property <tt>stats.executionTimesToTrack</tt>).
*
*
* Protobuf type {@code proto.NetworkGetExecutionTimeQuery}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.hedera.hashgraph.sdk.proto.NetworkGetExecutionTimeQuery, Builder> implements
// @@protoc_insertion_point(builder_implements:proto.NetworkGetExecutionTimeQuery)
com.hedera.hashgraph.sdk.proto.NetworkGetExecutionTimeQueryOrBuilder {
// Construct using com.hedera.hashgraph.sdk.proto.NetworkGetExecutionTimeQuery.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
**
* standard info sent from client to node including the signed payment, and what kind of response
* is requested (cost, state proof, both, or neither).
*
*
* .proto.QueryHeader header = 1;
*/
@java.lang.Override
public boolean hasHeader() {
return instance.hasHeader();
}
/**
*
**
* standard info sent from client to node including the signed payment, and what kind of response
* is requested (cost, state proof, both, or neither).
*
*
* .proto.QueryHeader header = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.QueryHeader getHeader() {
return instance.getHeader();
}
/**
*
**
* standard info sent from client to node including the signed payment, and what kind of response
* is requested (cost, state proof, both, or neither).
*
*
* .proto.QueryHeader header = 1;
*/
public Builder setHeader(com.hedera.hashgraph.sdk.proto.QueryHeader value) {
copyOnWrite();
instance.setHeader(value);
return this;
}
/**
*
**
* standard info sent from client to node including the signed payment, and what kind of response
* is requested (cost, state proof, both, or neither).
*
*
* .proto.QueryHeader header = 1;
*/
public Builder setHeader(
com.hedera.hashgraph.sdk.proto.QueryHeader.Builder builderForValue) {
copyOnWrite();
instance.setHeader(builderForValue.build());
return this;
}
/**
*
**
* standard info sent from client to node including the signed payment, and what kind of response
* is requested (cost, state proof, both, or neither).
*
*
* .proto.QueryHeader header = 1;
*/
public Builder mergeHeader(com.hedera.hashgraph.sdk.proto.QueryHeader value) {
copyOnWrite();
instance.mergeHeader(value);
return this;
}
/**
*
**
* standard info sent from client to node including the signed payment, and what kind of response
* is requested (cost, state proof, both, or neither).
*
*
* .proto.QueryHeader header = 1;
*/
public Builder clearHeader() { copyOnWrite();
instance.clearHeader();
return this;
}
/**
*
**
* The id(s) of the transactions to get the execution time(s) of
*
*
* repeated .proto.TransactionID transaction_ids = 2;
*/
@java.lang.Override
public java.util.List getTransactionIdsList() {
return java.util.Collections.unmodifiableList(
instance.getTransactionIdsList());
}
/**
*
**
* The id(s) of the transactions to get the execution time(s) of
*
*
* repeated .proto.TransactionID transaction_ids = 2;
*/
@java.lang.Override
public int getTransactionIdsCount() {
return instance.getTransactionIdsCount();
}/**
*
**
* The id(s) of the transactions to get the execution time(s) of
*
*
* repeated .proto.TransactionID transaction_ids = 2;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionID getTransactionIds(int index) {
return instance.getTransactionIds(index);
}
/**
*
**
* The id(s) of the transactions to get the execution time(s) of
*
*
* repeated .proto.TransactionID transaction_ids = 2;
*/
public Builder setTransactionIds(
int index, com.hedera.hashgraph.sdk.proto.TransactionID value) {
copyOnWrite();
instance.setTransactionIds(index, value);
return this;
}
/**
*
**
* The id(s) of the transactions to get the execution time(s) of
*
*
* repeated .proto.TransactionID transaction_ids = 2;
*/
public Builder setTransactionIds(
int index, com.hedera.hashgraph.sdk.proto.TransactionID.Builder builderForValue) {
copyOnWrite();
instance.setTransactionIds(index,
builderForValue.build());
return this;
}
/**
*
**
* The id(s) of the transactions to get the execution time(s) of
*
*
* repeated .proto.TransactionID transaction_ids = 2;
*/
public Builder addTransactionIds(com.hedera.hashgraph.sdk.proto.TransactionID value) {
copyOnWrite();
instance.addTransactionIds(value);
return this;
}
/**
*
**
* The id(s) of the transactions to get the execution time(s) of
*
*
* repeated .proto.TransactionID transaction_ids = 2;
*/
public Builder addTransactionIds(
int index, com.hedera.hashgraph.sdk.proto.TransactionID value) {
copyOnWrite();
instance.addTransactionIds(index, value);
return this;
}
/**
*
**
* The id(s) of the transactions to get the execution time(s) of
*
*
* repeated .proto.TransactionID transaction_ids = 2;
*/
public Builder addTransactionIds(
com.hedera.hashgraph.sdk.proto.TransactionID.Builder builderForValue) {
copyOnWrite();
instance.addTransactionIds(builderForValue.build());
return this;
}
/**
*
**
* The id(s) of the transactions to get the execution time(s) of
*
*
* repeated .proto.TransactionID transaction_ids = 2;
*/
public Builder addTransactionIds(
int index, com.hedera.hashgraph.sdk.proto.TransactionID.Builder builderForValue) {
copyOnWrite();
instance.addTransactionIds(index,
builderForValue.build());
return this;
}
/**
*
**
* The id(s) of the transactions to get the execution time(s) of
*
*
* repeated .proto.TransactionID transaction_ids = 2;
*/
public Builder addAllTransactionIds(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.TransactionID> values) {
copyOnWrite();
instance.addAllTransactionIds(values);
return this;
}
/**
*
**
* The id(s) of the transactions to get the execution time(s) of
*
*
* repeated .proto.TransactionID transaction_ids = 2;
*/
public Builder clearTransactionIds() {
copyOnWrite();
instance.clearTransactionIds();
return this;
}
/**
*
**
* The id(s) of the transactions to get the execution time(s) of
*
*
* repeated .proto.TransactionID transaction_ids = 2;
*/
public Builder removeTransactionIds(int index) {
copyOnWrite();
instance.removeTransactionIds(index);
return this;
}
// @@protoc_insertion_point(builder_scope:proto.NetworkGetExecutionTimeQuery)
}
@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.NetworkGetExecutionTimeQuery();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"header_",
"transactionIds_",
com.hedera.hashgraph.sdk.proto.TransactionID.class,
};
java.lang.String info =
"\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0001\u0000\u0001\t\u0002\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.NetworkGetExecutionTimeQuery.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.NetworkGetExecutionTimeQuery)
private static final com.hedera.hashgraph.sdk.proto.NetworkGetExecutionTimeQuery DEFAULT_INSTANCE;
static {
NetworkGetExecutionTimeQuery defaultInstance = new NetworkGetExecutionTimeQuery();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
NetworkGetExecutionTimeQuery.class, defaultInstance);
}
public static com.hedera.hashgraph.sdk.proto.NetworkGetExecutionTimeQuery getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}