All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hedera.hashgraph.sdk.proto.ResponseHeader Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: response_header.proto

// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;

/**
 * 
 **
 * Every query receives a response containing the QueryResponseHeader. Either or both of the cost
 * and stateProof fields may be blank, if the responseType didn't ask for the cost or stateProof.
 * 
* * Protobuf type {@code proto.ResponseHeader} */ public final class ResponseHeader extends com.google.protobuf.GeneratedMessageLite< ResponseHeader, ResponseHeader.Builder> implements // @@protoc_insertion_point(message_implements:proto.ResponseHeader) ResponseHeaderOrBuilder { private ResponseHeader() { stateProof_ = com.google.protobuf.ByteString.EMPTY; } public static final int NODETRANSACTIONPRECHECKCODE_FIELD_NUMBER = 1; private int nodeTransactionPrecheckCode_; /** *
   **
   * Result of fee transaction precheck, saying it passed, or why it failed
   * 
* * .proto.ResponseCodeEnum nodeTransactionPrecheckCode = 1; * @return The enum numeric value on the wire for nodeTransactionPrecheckCode. */ @java.lang.Override public int getNodeTransactionPrecheckCodeValue() { return nodeTransactionPrecheckCode_; } /** *
   **
   * Result of fee transaction precheck, saying it passed, or why it failed
   * 
* * .proto.ResponseCodeEnum nodeTransactionPrecheckCode = 1; * @return The nodeTransactionPrecheckCode. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ResponseCodeEnum getNodeTransactionPrecheckCode() { com.hedera.hashgraph.sdk.proto.ResponseCodeEnum result = com.hedera.hashgraph.sdk.proto.ResponseCodeEnum.forNumber(nodeTransactionPrecheckCode_); return result == null ? com.hedera.hashgraph.sdk.proto.ResponseCodeEnum.UNRECOGNIZED : result; } /** *
   **
   * Result of fee transaction precheck, saying it passed, or why it failed
   * 
* * .proto.ResponseCodeEnum nodeTransactionPrecheckCode = 1; * @param value The enum numeric value on the wire for nodeTransactionPrecheckCode to set. */ private void setNodeTransactionPrecheckCodeValue(int value) { nodeTransactionPrecheckCode_ = value; } /** *
   **
   * Result of fee transaction precheck, saying it passed, or why it failed
   * 
* * .proto.ResponseCodeEnum nodeTransactionPrecheckCode = 1; * @param value The nodeTransactionPrecheckCode to set. */ private void setNodeTransactionPrecheckCode(com.hedera.hashgraph.sdk.proto.ResponseCodeEnum value) { nodeTransactionPrecheckCode_ = value.getNumber(); } /** *
   **
   * Result of fee transaction precheck, saying it passed, or why it failed
   * 
* * .proto.ResponseCodeEnum nodeTransactionPrecheckCode = 1; */ private void clearNodeTransactionPrecheckCode() { nodeTransactionPrecheckCode_ = 0; } public static final int RESPONSETYPE_FIELD_NUMBER = 2; private int responseType_; /** *
   **
   * The requested response is repeated back here, for convenience
   * 
* * .proto.ResponseType responseType = 2; * @return The enum numeric value on the wire for responseType. */ @java.lang.Override public int getResponseTypeValue() { return responseType_; } /** *
   **
   * The requested response is repeated back here, for convenience
   * 
* * .proto.ResponseType responseType = 2; * @return The responseType. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ResponseType getResponseType() { com.hedera.hashgraph.sdk.proto.ResponseType result = com.hedera.hashgraph.sdk.proto.ResponseType.forNumber(responseType_); return result == null ? com.hedera.hashgraph.sdk.proto.ResponseType.UNRECOGNIZED : result; } /** *
   **
   * The requested response is repeated back here, for convenience
   * 
* * .proto.ResponseType responseType = 2; * @param value The enum numeric value on the wire for responseType to set. */ private void setResponseTypeValue(int value) { responseType_ = value; } /** *
   **
   * The requested response is repeated back here, for convenience
   * 
* * .proto.ResponseType responseType = 2; * @param value The responseType to set. */ private void setResponseType(com.hedera.hashgraph.sdk.proto.ResponseType value) { responseType_ = value.getNumber(); } /** *
   **
   * The requested response is repeated back here, for convenience
   * 
* * .proto.ResponseType responseType = 2; */ private void clearResponseType() { responseType_ = 0; } public static final int COST_FIELD_NUMBER = 3; private long cost_; /** *
   **
   * The fee that would be charged to get the requested information (if a cost was requested).
   * Note: This cost only includes the query fee and does not include the transfer fee(which is
   * required to execute the transfer transaction to debit the payer account and credit the node
   * account with query fee)
   * 
* * uint64 cost = 3; * @return The cost. */ @java.lang.Override public long getCost() { return cost_; } /** *
   **
   * The fee that would be charged to get the requested information (if a cost was requested).
   * Note: This cost only includes the query fee and does not include the transfer fee(which is
   * required to execute the transfer transaction to debit the payer account and credit the node
   * account with query fee)
   * 
* * uint64 cost = 3; * @param value The cost to set. */ private void setCost(long value) { cost_ = value; } /** *
   **
   * The fee that would be charged to get the requested information (if a cost was requested).
   * Note: This cost only includes the query fee and does not include the transfer fee(which is
   * required to execute the transfer transaction to debit the payer account and credit the node
   * account with query fee)
   * 
* * uint64 cost = 3; */ private void clearCost() { cost_ = 0L; } public static final int STATEPROOF_FIELD_NUMBER = 4; private com.google.protobuf.ByteString stateProof_; /** *
   **
   * The state proof for this information (if a state proof was requested, and is available)
   * 
* * bytes stateProof = 4; * @return The stateProof. */ @java.lang.Override public com.google.protobuf.ByteString getStateProof() { return stateProof_; } /** *
   **
   * The state proof for this information (if a state proof was requested, and is available)
   * 
* * bytes stateProof = 4; * @param value The stateProof to set. */ private void setStateProof(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); stateProof_ = value; } /** *
   **
   * The state proof for this information (if a state proof was requested, and is available)
   * 
* * bytes stateProof = 4; */ private void clearStateProof() { stateProof_ = getDefaultInstance().getStateProof(); } public static com.hedera.hashgraph.sdk.proto.ResponseHeader parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.ResponseHeader parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.ResponseHeader parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.ResponseHeader parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.ResponseHeader parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.ResponseHeader parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.ResponseHeader parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.ResponseHeader parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.ResponseHeader parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.ResponseHeader parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.ResponseHeader parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.ResponseHeader parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static Builder newBuilder() { return (Builder) DEFAULT_INSTANCE.createBuilder(); } public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.ResponseHeader prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
   **
   * Every query receives a response containing the QueryResponseHeader. Either or both of the cost
   * and stateProof fields may be blank, if the responseType didn't ask for the cost or stateProof.
   * 
* * Protobuf type {@code proto.ResponseHeader} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.hedera.hashgraph.sdk.proto.ResponseHeader, Builder> implements // @@protoc_insertion_point(builder_implements:proto.ResponseHeader) com.hedera.hashgraph.sdk.proto.ResponseHeaderOrBuilder { // Construct using com.hedera.hashgraph.sdk.proto.ResponseHeader.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
     **
     * Result of fee transaction precheck, saying it passed, or why it failed
     * 
* * .proto.ResponseCodeEnum nodeTransactionPrecheckCode = 1; * @return The enum numeric value on the wire for nodeTransactionPrecheckCode. */ @java.lang.Override public int getNodeTransactionPrecheckCodeValue() { return instance.getNodeTransactionPrecheckCodeValue(); } /** *
     **
     * Result of fee transaction precheck, saying it passed, or why it failed
     * 
* * .proto.ResponseCodeEnum nodeTransactionPrecheckCode = 1; * @param value The nodeTransactionPrecheckCode to set. * @return This builder for chaining. */ public Builder setNodeTransactionPrecheckCodeValue(int value) { copyOnWrite(); instance.setNodeTransactionPrecheckCodeValue(value); return this; } /** *
     **
     * Result of fee transaction precheck, saying it passed, or why it failed
     * 
* * .proto.ResponseCodeEnum nodeTransactionPrecheckCode = 1; * @return The nodeTransactionPrecheckCode. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ResponseCodeEnum getNodeTransactionPrecheckCode() { return instance.getNodeTransactionPrecheckCode(); } /** *
     **
     * Result of fee transaction precheck, saying it passed, or why it failed
     * 
* * .proto.ResponseCodeEnum nodeTransactionPrecheckCode = 1; * @param value The enum numeric value on the wire for nodeTransactionPrecheckCode to set. * @return This builder for chaining. */ public Builder setNodeTransactionPrecheckCode(com.hedera.hashgraph.sdk.proto.ResponseCodeEnum value) { copyOnWrite(); instance.setNodeTransactionPrecheckCode(value); return this; } /** *
     **
     * Result of fee transaction precheck, saying it passed, or why it failed
     * 
* * .proto.ResponseCodeEnum nodeTransactionPrecheckCode = 1; * @return This builder for chaining. */ public Builder clearNodeTransactionPrecheckCode() { copyOnWrite(); instance.clearNodeTransactionPrecheckCode(); return this; } /** *
     **
     * The requested response is repeated back here, for convenience
     * 
* * .proto.ResponseType responseType = 2; * @return The enum numeric value on the wire for responseType. */ @java.lang.Override public int getResponseTypeValue() { return instance.getResponseTypeValue(); } /** *
     **
     * The requested response is repeated back here, for convenience
     * 
* * .proto.ResponseType responseType = 2; * @param value The responseType to set. * @return This builder for chaining. */ public Builder setResponseTypeValue(int value) { copyOnWrite(); instance.setResponseTypeValue(value); return this; } /** *
     **
     * The requested response is repeated back here, for convenience
     * 
* * .proto.ResponseType responseType = 2; * @return The responseType. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ResponseType getResponseType() { return instance.getResponseType(); } /** *
     **
     * The requested response is repeated back here, for convenience
     * 
* * .proto.ResponseType responseType = 2; * @param value The enum numeric value on the wire for responseType to set. * @return This builder for chaining. */ public Builder setResponseType(com.hedera.hashgraph.sdk.proto.ResponseType value) { copyOnWrite(); instance.setResponseType(value); return this; } /** *
     **
     * The requested response is repeated back here, for convenience
     * 
* * .proto.ResponseType responseType = 2; * @return This builder for chaining. */ public Builder clearResponseType() { copyOnWrite(); instance.clearResponseType(); return this; } /** *
     **
     * The fee that would be charged to get the requested information (if a cost was requested).
     * Note: This cost only includes the query fee and does not include the transfer fee(which is
     * required to execute the transfer transaction to debit the payer account and credit the node
     * account with query fee)
     * 
* * uint64 cost = 3; * @return The cost. */ @java.lang.Override public long getCost() { return instance.getCost(); } /** *
     **
     * The fee that would be charged to get the requested information (if a cost was requested).
     * Note: This cost only includes the query fee and does not include the transfer fee(which is
     * required to execute the transfer transaction to debit the payer account and credit the node
     * account with query fee)
     * 
* * uint64 cost = 3; * @param value The cost to set. * @return This builder for chaining. */ public Builder setCost(long value) { copyOnWrite(); instance.setCost(value); return this; } /** *
     **
     * The fee that would be charged to get the requested information (if a cost was requested).
     * Note: This cost only includes the query fee and does not include the transfer fee(which is
     * required to execute the transfer transaction to debit the payer account and credit the node
     * account with query fee)
     * 
* * uint64 cost = 3; * @return This builder for chaining. */ public Builder clearCost() { copyOnWrite(); instance.clearCost(); return this; } /** *
     **
     * The state proof for this information (if a state proof was requested, and is available)
     * 
* * bytes stateProof = 4; * @return The stateProof. */ @java.lang.Override public com.google.protobuf.ByteString getStateProof() { return instance.getStateProof(); } /** *
     **
     * The state proof for this information (if a state proof was requested, and is available)
     * 
* * bytes stateProof = 4; * @param value The stateProof to set. * @return This builder for chaining. */ public Builder setStateProof(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setStateProof(value); return this; } /** *
     **
     * The state proof for this information (if a state proof was requested, and is available)
     * 
* * bytes stateProof = 4; * @return This builder for chaining. */ public Builder clearStateProof() { copyOnWrite(); instance.clearStateProof(); return this; } // @@protoc_insertion_point(builder_scope:proto.ResponseHeader) } @java.lang.Override @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) protected final java.lang.Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new com.hedera.hashgraph.sdk.proto.ResponseHeader(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "nodeTransactionPrecheckCode_", "responseType_", "cost_", "stateProof_", }; java.lang.String info = "\u0000\u0004\u0000\u0000\u0001\u0004\u0004\u0000\u0000\u0000\u0001\f\u0002\f\u0003" + "\u0003\u0004\n"; return newMessageInfo(DEFAULT_INSTANCE, info, objects); } // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } case GET_PARSER: { com.google.protobuf.Parser parser = PARSER; if (parser == null) { synchronized (com.hedera.hashgraph.sdk.proto.ResponseHeader.class) { parser = PARSER; if (parser == null) { parser = new DefaultInstanceBasedParser( DEFAULT_INSTANCE); PARSER = parser; } } } return parser; } case GET_MEMOIZED_IS_INITIALIZED: { return (byte) 1; } case SET_MEMOIZED_IS_INITIALIZED: { return null; } } throw new UnsupportedOperationException(); } // @@protoc_insertion_point(class_scope:proto.ResponseHeader) private static final com.hedera.hashgraph.sdk.proto.ResponseHeader DEFAULT_INSTANCE; static { ResponseHeader defaultInstance = new ResponseHeader(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( ResponseHeader.class, defaultInstance); } public static com.hedera.hashgraph.sdk.proto.ResponseHeader getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy