Class QueryHeader

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 Classes
    Modifier and Type
    Class
    Description
    static 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

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final Object
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
     
     
    * 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.
     
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<QueryHeader>
     

    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, writeTo

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods 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:
      hasPayment in interface QueryHeaderOrBuilder
      Returns:
      Whether the payment field is set.
    • getPayment

      public Transaction 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:
      getPayment in interface QueryHeaderOrBuilder
      Returns:
      The payment.
    • getResponseTypeValue

      public int getResponseTypeValue()
       *
       A type of query response requested.
       
      .proto.ResponseType responseType = 2;
      Specified by:
      getResponseTypeValue in interface QueryHeaderOrBuilder
      Returns:
      The enum numeric value on the wire for responseType.
    • getResponseType

      public ResponseType getResponseType()
       *
       A type of query response requested.
       
      .proto.ResponseType responseType = 2;
      Specified by:
      getResponseType in interface QueryHeaderOrBuilder
      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

      public static QueryHeader parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static QueryHeader parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static QueryHeader parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static QueryHeader parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static QueryHeader parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static QueryHeader parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilder

      public static QueryHeader.Builder newBuilder()
    • newBuilder

      public static QueryHeader.Builder newBuilder(QueryHeader prototype)
    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<QueryHeader,QueryHeader.Builder>
    • getDefaultInstance

      public static QueryHeader getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<QueryHeader> parser()