Class NetworkGetVersionInfoResponse.Builder

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

public static final class NetworkGetVersionInfoResponse.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<NetworkGetVersionInfoResponse,NetworkGetVersionInfoResponse.Builder> implements NetworkGetVersionInfoResponseOrBuilder
 *
 A response to a `NetworkGetVersionInfoQuery`.

 This SHALL return `SemanticVersion` information for both Hedera API (HAPI)
 and Hedera Services.
 
Protobuf type proto.NetworkGetVersionInfoResponse
  • 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 NetworkGetVersionInfoResponseOrBuilder
      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 NetworkGetVersionInfoResponseOrBuilder
      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;
    • hasHapiProtoVersion

      public boolean hasHapiProtoVersion()
       *
       An API version.
       <p>
       This SHALL be the current Hedera API (HAPI) protobuf message version
       accepted by the network.
       
      .proto.SemanticVersion hapiProtoVersion = 2;
      Specified by:
      hasHapiProtoVersion in interface NetworkGetVersionInfoResponseOrBuilder
      Returns:
      Whether the hapiProtoVersion field is set.
    • getHapiProtoVersion

      public SemanticVersion getHapiProtoVersion()
       *
       An API version.
       <p>
       This SHALL be the current Hedera API (HAPI) protobuf message version
       accepted by the network.
       
      .proto.SemanticVersion hapiProtoVersion = 2;
      Specified by:
      getHapiProtoVersion in interface NetworkGetVersionInfoResponseOrBuilder
      Returns:
      The hapiProtoVersion.
    • setHapiProtoVersion

      public NetworkGetVersionInfoResponse.Builder setHapiProtoVersion(SemanticVersion value)
       *
       An API version.
       <p>
       This SHALL be the current Hedera API (HAPI) protobuf message version
       accepted by the network.
       
      .proto.SemanticVersion hapiProtoVersion = 2;
    • setHapiProtoVersion

      public NetworkGetVersionInfoResponse.Builder setHapiProtoVersion(SemanticVersion.Builder builderForValue)
       *
       An API version.
       <p>
       This SHALL be the current Hedera API (HAPI) protobuf message version
       accepted by the network.
       
      .proto.SemanticVersion hapiProtoVersion = 2;
    • mergeHapiProtoVersion

      public NetworkGetVersionInfoResponse.Builder mergeHapiProtoVersion(SemanticVersion value)
       *
       An API version.
       <p>
       This SHALL be the current Hedera API (HAPI) protobuf message version
       accepted by the network.
       
      .proto.SemanticVersion hapiProtoVersion = 2;
    • clearHapiProtoVersion

      public NetworkGetVersionInfoResponse.Builder clearHapiProtoVersion()
       *
       An API version.
       <p>
       This SHALL be the current Hedera API (HAPI) protobuf message version
       accepted by the network.
       
      .proto.SemanticVersion hapiProtoVersion = 2;
    • hasHederaServicesVersion

      public boolean hasHederaServicesVersion()
       *
       A Services version.
       <p>
       This SHALL be the current version of the Hedera Services software
       operating the network.
       
      .proto.SemanticVersion hederaServicesVersion = 3;
      Specified by:
      hasHederaServicesVersion in interface NetworkGetVersionInfoResponseOrBuilder
      Returns:
      Whether the hederaServicesVersion field is set.
    • getHederaServicesVersion

      public SemanticVersion getHederaServicesVersion()
       *
       A Services version.
       <p>
       This SHALL be the current version of the Hedera Services software
       operating the network.
       
      .proto.SemanticVersion hederaServicesVersion = 3;
      Specified by:
      getHederaServicesVersion in interface NetworkGetVersionInfoResponseOrBuilder
      Returns:
      The hederaServicesVersion.
    • setHederaServicesVersion

      public NetworkGetVersionInfoResponse.Builder setHederaServicesVersion(SemanticVersion value)
       *
       A Services version.
       <p>
       This SHALL be the current version of the Hedera Services software
       operating the network.
       
      .proto.SemanticVersion hederaServicesVersion = 3;
    • setHederaServicesVersion

      public NetworkGetVersionInfoResponse.Builder setHederaServicesVersion(SemanticVersion.Builder builderForValue)
       *
       A Services version.
       <p>
       This SHALL be the current version of the Hedera Services software
       operating the network.
       
      .proto.SemanticVersion hederaServicesVersion = 3;
    • mergeHederaServicesVersion

      public NetworkGetVersionInfoResponse.Builder mergeHederaServicesVersion(SemanticVersion value)
       *
       A Services version.
       <p>
       This SHALL be the current version of the Hedera Services software
       operating the network.
       
      .proto.SemanticVersion hederaServicesVersion = 3;
    • clearHederaServicesVersion

      public NetworkGetVersionInfoResponse.Builder clearHederaServicesVersion()
       *
       A Services version.
       <p>
       This SHALL be the current version of the Hedera Services software
       operating the network.
       
      .proto.SemanticVersion hederaServicesVersion = 3;