java.lang.Object
com.google.protobuf.AbstractMessageLite<QueryHeader,QueryHeader.Builder>
com.google.protobuf.GeneratedMessageLite<QueryHeader,QueryHeader.Builder>
com.hedera.hashgraph.sdk.proto.QueryHeader
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,QueryHeaderOrBuilder
@Generated
public final class QueryHeader
extends com.google.protobuf.GeneratedMessageLite<QueryHeader,QueryHeader.Builder>
implements QueryHeaderOrBuilder
* A standard query header.<br/> Each query from the client to the node must contain a QueryHeader, which specifies the desired response type, and includes a payment transaction that will compensate the network for responding to the query. The payment may be blank if the query is free. The payment transaction MUST be a `cryptoTransfer` from the payer account to the account of the node where the query is submitted.<br/> If the payment is sufficient, the network SHALL respond with the response type requested.<br/> If the response type is `COST_ANSWER` the payment MUST be unset. A state proof SHALL be available for some types of information.<br/> A state proof SHALL be available for a Record, but not a receipt, and the response entry for each supported "get info" query.Protobuf type
proto.QueryHeader-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class* A standard query header.<br/> Each query from the client to the node must contain a QueryHeader, which specifies the desired response type, and includes a payment transaction that will compensate the network for responding to the query.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 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) static QueryHeader* A signed `CryptoTransferTransaction` to pay query fees.* A type of query response requested.int* A type of query response requested.boolean* A signed `CryptoTransferTransaction` to pay query fees.static QueryHeader.Builderstatic QueryHeader.BuildernewBuilder(QueryHeader prototype) static QueryHeaderparseDelimitedFrom(InputStream input) static QueryHeaderparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static QueryHeaderparseFrom(byte[] data) static QueryHeaderparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static QueryHeaderparseFrom(com.google.protobuf.ByteString data) static QueryHeaderparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static QueryHeaderparseFrom(com.google.protobuf.CodedInputStream input) static QueryHeaderparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static QueryHeaderparseFrom(InputStream input) static QueryHeaderparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static QueryHeaderparseFrom(ByteBuffer data) static QueryHeaderparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<QueryHeader> 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
-
PAYMENT_FIELD_NUMBER
public static final int PAYMENT_FIELD_NUMBER- See Also:
-
RESPONSETYPE_FIELD_NUMBER
public static final int RESPONSETYPE_FIELD_NUMBER- See Also:
-
-
Method Details
-
hasPayment
public boolean hasPayment()* A signed `CryptoTransferTransaction` to pay query fees. <p> This MUST transfer HBAR from the "payer" to the responding node account sufficient to pay the query fees.
.proto.Transaction payment = 1;- Specified by:
hasPaymentin interfaceQueryHeaderOrBuilder- Returns:
- Whether the payment field is set.
-
getPayment
* A signed `CryptoTransferTransaction` to pay query fees. <p> This MUST transfer HBAR from the "payer" to the responding node account sufficient to pay the query fees.
.proto.Transaction payment = 1;- Specified by:
getPaymentin interfaceQueryHeaderOrBuilder- Returns:
- The payment.
-
getResponseTypeValue
public int getResponseTypeValue()* A type of query response requested.
.proto.ResponseType responseType = 2;- Specified by:
getResponseTypeValuein interfaceQueryHeaderOrBuilder- Returns:
- The enum numeric value on the wire for responseType.
-
getResponseType
* A type of query response requested.
.proto.ResponseType responseType = 2;- Specified by:
getResponseTypein interfaceQueryHeaderOrBuilder- Returns:
- The responseType.
-
parseFrom
public static QueryHeader parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QueryHeader parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QueryHeader parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QueryHeader parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QueryHeader parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QueryHeader parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static QueryHeader parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static QueryHeader parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static QueryHeader 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<QueryHeader,QueryHeader.Builder>
-
getDefaultInstance
-
parser
-