Class NetworkGetExecutionTimeResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<NetworkGetExecutionTimeResponse,NetworkGetExecutionTimeResponse.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<NetworkGetExecutionTimeResponse,NetworkGetExecutionTimeResponse.Builder>
com.hedera.hashgraph.sdk.proto.NetworkGetExecutionTimeResponse.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, NetworkGetExecutionTimeResponseOrBuilder, Cloneable
Enclosing class:
NetworkGetExecutionTimeResponse

public static final class NetworkGetExecutionTimeResponse.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<NetworkGetExecutionTimeResponse,NetworkGetExecutionTimeResponse.Builder> implements NetworkGetExecutionTimeResponseOrBuilder
 *
 A response to a `networkGetExecutionTime` query.
 
Protobuf type proto.NetworkGetExecutionTimeResponse
  • Method Details

    • hasHeader

      public boolean hasHeader()
       *
       The standard response information for queries.<br/>
       This includes the values requested in the `QueryHeader`
       (cost, state proof, both, or neither).
       
      .proto.ResponseHeader header = 1;
      Specified by:
      hasHeader in interface NetworkGetExecutionTimeResponseOrBuilder
      Returns:
      Whether the header field is set.
    • getHeader

      public ResponseHeader getHeader()
       *
       The standard response information for queries.<br/>
       This includes the values requested in the `QueryHeader`
       (cost, state proof, both, or neither).
       
      .proto.ResponseHeader header = 1;
      Specified by:
      getHeader in interface NetworkGetExecutionTimeResponseOrBuilder
      Returns:
      The header.
    • setHeader

       *
       The standard response information for queries.<br/>
       This includes the values requested in the `QueryHeader`
       (cost, state proof, both, or neither).
       
      .proto.ResponseHeader header = 1;
    • setHeader

       *
       The standard response information for queries.<br/>
       This includes the values requested in the `QueryHeader`
       (cost, state proof, both, or neither).
       
      .proto.ResponseHeader header = 1;
    • mergeHeader

       *
       The standard response information for queries.<br/>
       This includes the values requested in the `QueryHeader`
       (cost, state proof, both, or neither).
       
      .proto.ResponseHeader header = 1;
    • clearHeader

       *
       The standard response information for queries.<br/>
       This includes the values requested in the `QueryHeader`
       (cost, state proof, both, or neither).
       
      .proto.ResponseHeader header = 1;
    • getExecutionTimesList

      public List<Long> getExecutionTimesList()
       *
       A list of execution times, in nanoseconds.
       <p>
       This list SHALL be in the same order as the transaction
       identifiers were presented in the query.
       
      repeated uint64 execution_times = 2;
      Specified by:
      getExecutionTimesList in interface NetworkGetExecutionTimeResponseOrBuilder
      Returns:
      A list containing the executionTimes.
    • getExecutionTimesCount

      public int getExecutionTimesCount()
       *
       A list of execution times, in nanoseconds.
       <p>
       This list SHALL be in the same order as the transaction
       identifiers were presented in the query.
       
      repeated uint64 execution_times = 2;
      Specified by:
      getExecutionTimesCount in interface NetworkGetExecutionTimeResponseOrBuilder
      Returns:
      The count of executionTimes.
    • getExecutionTimes

      public long getExecutionTimes(int index)
       *
       A list of execution times, in nanoseconds.
       <p>
       This list SHALL be in the same order as the transaction
       identifiers were presented in the query.
       
      repeated uint64 execution_times = 2;
      Specified by:
      getExecutionTimes in interface NetworkGetExecutionTimeResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The executionTimes at the given index.
    • setExecutionTimes

      public NetworkGetExecutionTimeResponse.Builder setExecutionTimes(int index, long value)
       *
       A list of execution times, in nanoseconds.
       <p>
       This list SHALL be in the same order as the transaction
       identifiers were presented in the query.
       
      repeated uint64 execution_times = 2;
      Parameters:
      value - The executionTimes to set.
      Returns:
      This builder for chaining.
    • addExecutionTimes

      public NetworkGetExecutionTimeResponse.Builder addExecutionTimes(long value)
       *
       A list of execution times, in nanoseconds.
       <p>
       This list SHALL be in the same order as the transaction
       identifiers were presented in the query.
       
      repeated uint64 execution_times = 2;
      Parameters:
      value - The executionTimes to add.
      Returns:
      This builder for chaining.
    • addAllExecutionTimes

      public NetworkGetExecutionTimeResponse.Builder addAllExecutionTimes(Iterable<? extends Long> values)
       *
       A list of execution times, in nanoseconds.
       <p>
       This list SHALL be in the same order as the transaction
       identifiers were presented in the query.
       
      repeated uint64 execution_times = 2;
      Parameters:
      values - The executionTimes to add.
      Returns:
      This builder for chaining.
    • clearExecutionTimes

      public NetworkGetExecutionTimeResponse.Builder clearExecutionTimes()
       *
       A list of execution times, in nanoseconds.
       <p>
       This list SHALL be in the same order as the transaction
       identifiers were presented in the query.
       
      repeated uint64 execution_times = 2;
      Returns:
      This builder for chaining.