Class ResponseHeader

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

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    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)
     
    long
    * 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.
     
     
     
    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<ResponseHeader>
     

    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

    • 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:
      getNodeTransactionPrecheckCodeValue in interface ResponseHeaderOrBuilder
      Returns:
      The enum numeric value on the wire for nodeTransactionPrecheckCode.
    • getNodeTransactionPrecheckCode

      public ResponseCodeEnum 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:
      getNodeTransactionPrecheckCode in interface ResponseHeaderOrBuilder
      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:
      getResponseTypeValue in interface ResponseHeaderOrBuilder
      Returns:
      The enum numeric value on the wire for responseType.
    • getResponseType

      public 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:
      getResponseType in interface ResponseHeaderOrBuilder
      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:
      getCost in interface ResponseHeaderOrBuilder
      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:
      getStateProof in interface ResponseHeaderOrBuilder
      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

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

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

      public static ResponseHeader parseDelimitedFrom(InputStream input) throws IOException
      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

      public static ResponseHeader.Builder newBuilder()
    • newBuilder

      public static ResponseHeader.Builder newBuilder(ResponseHeader 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<ResponseHeader,ResponseHeader.Builder>
    • getDefaultInstance

      public static ResponseHeader getDefaultInstance()
    • parser

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