- 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-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription* A response with the query answer.* A response with both the query answer and a state proof.* A response with the estimated cost to answer the query.* A response with the estimated cost to answer and a state proof. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int* A response with the query answer.static final int* A response with both the query answer and a state proof.static final int* A response with the estimated cost to answer and a state proof.static final int* A response with the estimated cost to answer the query. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResponseTypeforNumber(int value) final intstatic com.google.protobuf.Internal.EnumLiteMap<ResponseType> static com.google.protobuf.Internal.EnumVerifierstatic ResponseTypevalueOf(int value) Deprecated.static ResponseTypeReturns the enum constant of this class with the specified name.static ResponseType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ANSWER_ONLY
* A response with the query answer.
ANSWER_ONLY = 0; -
ANSWER_STATE_PROOF
* A response with both the query answer and a state proof.
ANSWER_STATE_PROOF = 1; -
COST_ANSWER
* A response with the estimated cost to answer the query.
COST_ANSWER = 2; -
COST_ANSWER_STATE_PROOF
* A response with the estimated cost to answer and a state proof.
COST_ANSWER_STATE_PROOF = 3; -
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
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
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 nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite
-
valueOf
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 nameNullPointerException- if the argument is null
-
forNumber
-
internalGetValueMap
-
internalGetVerifier
public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()
-