Enum Class ResponseType

java.lang.Object
java.lang.Enum<ResponseType>
com.hedera.hashgraph.sdk.proto.ResponseType
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, Serializable, Comparable<ResponseType>, Constable

@Generated public enum ResponseType extends Enum<ResponseType> implements com.google.protobuf.Internal.EnumLite
 *
 The type of query response.<br/>

 This SHALL be answer-only as a default.<br/>
 This value SHALL support an "estimated cost" type.<br/>
 This value SHOULD support a "state proof" type, when available.
 
Protobuf enum proto.ResponseType
  • Enum Constant Details

    • ANSWER_ONLY

      public static final ResponseType ANSWER_ONLY
       *
       A response with the query answer.
       
      ANSWER_ONLY = 0;
    • ANSWER_STATE_PROOF

      public static final ResponseType ANSWER_STATE_PROOF
       *
       A response with both the query answer and a state proof.
       
      ANSWER_STATE_PROOF = 1;
    • COST_ANSWER

      public static final ResponseType COST_ANSWER
       *
       A response with the estimated cost to answer the query.
       
      COST_ANSWER = 2;
    • COST_ANSWER_STATE_PROOF

      public static final ResponseType COST_ANSWER_STATE_PROOF
       *
       A response with the estimated cost to answer and a state proof.
       
      COST_ANSWER_STATE_PROOF = 3;
    • UNRECOGNIZED

      public static final ResponseType UNRECOGNIZED
  • Field Details

    • ANSWER_ONLY_VALUE

      public static final int ANSWER_ONLY_VALUE
       *
       A response with the query answer.
       
      ANSWER_ONLY = 0;
      See Also:
    • ANSWER_STATE_PROOF_VALUE

      public static final int ANSWER_STATE_PROOF_VALUE
       *
       A response with both the query answer and a state proof.
       
      ANSWER_STATE_PROOF = 1;
      See Also:
    • COST_ANSWER_VALUE

      public static final int COST_ANSWER_VALUE
       *
       A response with the estimated cost to answer the query.
       
      COST_ANSWER = 2;
      See Also:
    • COST_ANSWER_STATE_PROOF_VALUE

      public static final int COST_ANSWER_STATE_PROOF_VALUE
       *
       A response with the estimated cost to answer and a state proof.
       
      COST_ANSWER_STATE_PROOF = 3;
      See Also:
  • Method Details

    • values

      public static ResponseType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ResponseType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
    • valueOf

      @Deprecated public static ResponseType valueOf(int value)
      Deprecated.
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      value - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • forNumber

      public static ResponseType forNumber(int value)
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<ResponseType> internalGetValueMap()
    • internalGetVerifier

      public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()