java.lang.Object
com.google.protobuf.AbstractMessageLite<ResponseHeader,ResponseHeader.Builder>
com.google.protobuf.GeneratedMessageLite<ResponseHeader,ResponseHeader.Builder>
com.hedera.hashgraph.sdk.proto.ResponseHeader
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,ResponseHeaderOrBuilder
@Generated
public final class ResponseHeader
extends com.google.protobuf.GeneratedMessageLite<ResponseHeader,ResponseHeader.Builder>
implements ResponseHeaderOrBuilder
* A standard header returned with every query response. The fields for `cost` or `stateProof` MAY be unset if the requested `ResponseType` does not request those values.<br/> The `responseType` SHALL match the request response type.<br/> The `nodeTransactionPrecheckCode` field SHALL contain the result code for the query.Protobuf type
proto.ResponseHeader-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class* A standard header returned with every query response.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) longgetCost()* Requested cost estimate.<br/> This is the fee that _would be_ charged if the query was executed.static ResponseHeader* 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.static ResponseHeader.Builderstatic ResponseHeader.BuildernewBuilder(ResponseHeader prototype) static ResponseHeaderparseDelimitedFrom(InputStream input) static ResponseHeaderparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ResponseHeaderparseFrom(byte[] data) static ResponseHeaderparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ResponseHeaderparseFrom(com.google.protobuf.ByteString data) static ResponseHeaderparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ResponseHeaderparseFrom(com.google.protobuf.CodedInputStream input) static ResponseHeaderparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ResponseHeaderparseFrom(InputStream input) static ResponseHeaderparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ResponseHeaderparseFrom(ByteBuffer data) static ResponseHeaderparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ResponseHeader> parser()Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
NODETRANSACTIONPRECHECKCODE_FIELD_NUMBER
public static final int NODETRANSACTIONPRECHECKCODE_FIELD_NUMBER- See Also:
-
RESPONSETYPE_FIELD_NUMBER
public static final int RESPONSETYPE_FIELD_NUMBER- See Also:
-
COST_FIELD_NUMBER
public static final int COST_FIELD_NUMBER- See Also:
-
STATEPROOF_FIELD_NUMBER
public static final int STATEPROOF_FIELD_NUMBER- See Also:
-
-
Method Details
-
getNodeTransactionPrecheckCodeValue
public int getNodeTransactionPrecheckCodeValue()* The result code for this query. <p> This value SHALL indicate either success or the reason for failure.
.proto.ResponseCodeEnum nodeTransactionPrecheckCode = 1;- Specified by:
getNodeTransactionPrecheckCodeValuein interfaceResponseHeaderOrBuilder- Returns:
- The enum numeric value on the wire for nodeTransactionPrecheckCode.
-
getNodeTransactionPrecheckCode
* The result code for this query. <p> This value SHALL indicate either success or the reason for failure.
.proto.ResponseCodeEnum nodeTransactionPrecheckCode = 1;- Specified by:
getNodeTransactionPrecheckCodein interfaceResponseHeaderOrBuilder- Returns:
- The nodeTransactionPrecheckCode.
-
getResponseTypeValue
public 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;- Specified by:
getResponseTypeValuein interfaceResponseHeaderOrBuilder- Returns:
- The enum numeric value on the wire for 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;- Specified by:
getResponseTypein interfaceResponseHeaderOrBuilder- Returns:
- The responseType.
-
getCost
public 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;- Specified by:
getCostin interfaceResponseHeaderOrBuilder- Returns:
- The cost.
-
getStateProof
public 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;- Specified by:
getStateProofin interfaceResponseHeaderOrBuilder- Returns:
- The stateProof.
-
parseFrom
public static ResponseHeader parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ResponseHeader parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ResponseHeader parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ResponseHeader parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ResponseHeader parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ResponseHeader parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ResponseHeader parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ResponseHeader parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ResponseHeader parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ResponseHeader parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<ResponseHeader,ResponseHeader.Builder>
-
getDefaultInstance
-
parser
-