Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Interface ResponseHeaderOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
ResponseHeader,ResponseHeader.Builder
@Generated
public interface ResponseHeaderOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionlonggetCost()* Requested cost estimate.<br/> This is the fee that _would be_ charged if the query was executed.* The result code for this query.int* The result code for this query.* The response type requested for this query.int* The response type requested for this query.com.google.protobuf.ByteString* A state proof for the information requested.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getNodeTransactionPrecheckCodeValue
int getNodeTransactionPrecheckCodeValue()* The result code for this query. <p> This value SHALL indicate either success or the reason for failure.
.proto.ResponseCodeEnum nodeTransactionPrecheckCode = 1;- Returns:
- The enum numeric value on the wire for nodeTransactionPrecheckCode.
-
getNodeTransactionPrecheckCode
ResponseCodeEnum getNodeTransactionPrecheckCode()* The result code for this query. <p> This value SHALL indicate either success or the reason for failure.
.proto.ResponseCodeEnum nodeTransactionPrecheckCode = 1;- Returns:
- The nodeTransactionPrecheckCode.
-
getResponseTypeValue
int getResponseTypeValue()* The response type requested for this query. <p> This SHALL be the response type requested in the query header.
.proto.ResponseType responseType = 2;- Returns:
- The enum numeric value on the wire for responseType.
-
getResponseType
ResponseType getResponseType()* The response type requested for this query. <p> This SHALL be the response type requested in the query header.
.proto.ResponseType responseType = 2;- Returns:
- The responseType.
-
getCost
long getCost()* Requested cost estimate.<br/> This is the fee that _would be_ charged if the query was executed. <p> This value SHALL be set if the response type requested requires cost information, and SHALL NOT be set otherwise.<br/> This value SHALL include the query fee, but SHALL NOT include the transfer fee required to execute the fee payment transaction.
uint64 cost = 3;- Returns:
- The cost.
-
getStateProof
com.google.protobuf.ByteString getStateProof()* A state proof for the information requested. This field SHALL NOT be set if the response type does not require a state proof.<br/> This field SHALL NOT be set if a state proof is not available for the query type.<br/> This field SHALL be set if the response type requested a state proof and a state proof is available.
bytes stateProof = 4;- Returns:
- The stateProof.
-