com.hedera.hashgraph.sdk.proto.QueryHeader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-full Show documentation
Show all versions of sdk-full Show documentation
Hedera™ Hashgraph SDK for Java
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: query_header.proto
// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* Each query from the client to the node will contain the QueryHeader, which gives the requested
* response type, and includes a payment transaction that will compensate the node for responding to
* the query. The payment can be blank if the query is free.
*
*
* Protobuf type {@code proto.QueryHeader}
*/
public final class QueryHeader extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.QueryHeader)
QueryHeaderOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryHeader.newBuilder() to construct.
private QueryHeader(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryHeader() {
responseType_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryHeader();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.QueryHeaderOuterClass.internal_static_proto_QueryHeader_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.QueryHeaderOuterClass.internal_static_proto_QueryHeader_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.QueryHeader.class, com.hedera.hashgraph.sdk.proto.QueryHeader.Builder.class);
}
private int bitField0_;
public static final int PAYMENT_FIELD_NUMBER = 1;
private com.hedera.hashgraph.sdk.proto.Transaction payment_;
/**
*
**
* A signed CryptoTransferTransaction to pay the node a fee for handling this query
*
*
* .proto.Transaction payment = 1;
* @return Whether the payment field is set.
*/
@java.lang.Override
public boolean hasPayment() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* A signed CryptoTransferTransaction to pay the node a fee for handling this query
*
*
* .proto.Transaction payment = 1;
* @return The payment.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Transaction getPayment() {
return payment_ == null ? com.hedera.hashgraph.sdk.proto.Transaction.getDefaultInstance() : payment_;
}
/**
*
**
* A signed CryptoTransferTransaction to pay the node a fee for handling this query
*
*
* .proto.Transaction payment = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionOrBuilder getPaymentOrBuilder() {
return payment_ == null ? com.hedera.hashgraph.sdk.proto.Transaction.getDefaultInstance() : payment_;
}
public static final int RESPONSETYPE_FIELD_NUMBER = 2;
private int responseType_ = 0;
/**
*
**
* The requested response, asking for cost, state proof, both, or neither
*
*
* .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, asking for cost, state proof, both, or neither
*
*
* .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;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getPayment());
}
if (responseType_ != com.hedera.hashgraph.sdk.proto.ResponseType.ANSWER_ONLY.getNumber()) {
output.writeEnum(2, responseType_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getPayment());
}
if (responseType_ != com.hedera.hashgraph.sdk.proto.ResponseType.ANSWER_ONLY.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, responseType_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.hedera.hashgraph.sdk.proto.QueryHeader)) {
return super.equals(obj);
}
com.hedera.hashgraph.sdk.proto.QueryHeader other = (com.hedera.hashgraph.sdk.proto.QueryHeader) obj;
if (hasPayment() != other.hasPayment()) return false;
if (hasPayment()) {
if (!getPayment()
.equals(other.getPayment())) return false;
}
if (responseType_ != other.responseType_) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasPayment()) {
hash = (37 * hash) + PAYMENT_FIELD_NUMBER;
hash = (53 * hash) + getPayment().hashCode();
}
hash = (37 * hash) + RESPONSETYPE_FIELD_NUMBER;
hash = (53 * hash) + responseType_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hashgraph.sdk.proto.QueryHeader parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.QueryHeader parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.QueryHeader parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.QueryHeader parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.QueryHeader parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.QueryHeader parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.QueryHeader parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.QueryHeader parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.QueryHeader parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.QueryHeader parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.QueryHeader parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.QueryHeader parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.QueryHeader prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
**
* Each query from the client to the node will contain the QueryHeader, which gives the requested
* response type, and includes a payment transaction that will compensate the node for responding to
* the query. The payment can be blank if the query is free.
*
*
* Protobuf type {@code proto.QueryHeader}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.QueryHeader)
com.hedera.hashgraph.sdk.proto.QueryHeaderOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.QueryHeaderOuterClass.internal_static_proto_QueryHeader_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.QueryHeaderOuterClass.internal_static_proto_QueryHeader_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.QueryHeader.class, com.hedera.hashgraph.sdk.proto.QueryHeader.Builder.class);
}
// Construct using com.hedera.hashgraph.sdk.proto.QueryHeader.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPaymentFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
payment_ = null;
if (paymentBuilder_ != null) {
paymentBuilder_.dispose();
paymentBuilder_ = null;
}
responseType_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hashgraph.sdk.proto.QueryHeaderOuterClass.internal_static_proto_QueryHeader_descriptor;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.QueryHeader getDefaultInstanceForType() {
return com.hedera.hashgraph.sdk.proto.QueryHeader.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.QueryHeader build() {
com.hedera.hashgraph.sdk.proto.QueryHeader result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.QueryHeader buildPartial() {
com.hedera.hashgraph.sdk.proto.QueryHeader result = new com.hedera.hashgraph.sdk.proto.QueryHeader(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.hedera.hashgraph.sdk.proto.QueryHeader result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.payment_ = paymentBuilder_ == null
? payment_
: paymentBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.responseType_ = responseType_;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.hedera.hashgraph.sdk.proto.QueryHeader) {
return mergeFrom((com.hedera.hashgraph.sdk.proto.QueryHeader)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.QueryHeader other) {
if (other == com.hedera.hashgraph.sdk.proto.QueryHeader.getDefaultInstance()) return this;
if (other.hasPayment()) {
mergePayment(other.getPayment());
}
if (other.responseType_ != 0) {
setResponseTypeValue(other.getResponseTypeValue());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getPaymentFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
responseType_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.hedera.hashgraph.sdk.proto.Transaction payment_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Transaction, com.hedera.hashgraph.sdk.proto.Transaction.Builder, com.hedera.hashgraph.sdk.proto.TransactionOrBuilder> paymentBuilder_;
/**
*
**
* A signed CryptoTransferTransaction to pay the node a fee for handling this query
*
*
* .proto.Transaction payment = 1;
* @return Whether the payment field is set.
*/
public boolean hasPayment() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* A signed CryptoTransferTransaction to pay the node a fee for handling this query
*
*
* .proto.Transaction payment = 1;
* @return The payment.
*/
public com.hedera.hashgraph.sdk.proto.Transaction getPayment() {
if (paymentBuilder_ == null) {
return payment_ == null ? com.hedera.hashgraph.sdk.proto.Transaction.getDefaultInstance() : payment_;
} else {
return paymentBuilder_.getMessage();
}
}
/**
*
**
* A signed CryptoTransferTransaction to pay the node a fee for handling this query
*
*
* .proto.Transaction payment = 1;
*/
public Builder setPayment(com.hedera.hashgraph.sdk.proto.Transaction value) {
if (paymentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
payment_ = value;
} else {
paymentBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* A signed CryptoTransferTransaction to pay the node a fee for handling this query
*
*
* .proto.Transaction payment = 1;
*/
public Builder setPayment(
com.hedera.hashgraph.sdk.proto.Transaction.Builder builderForValue) {
if (paymentBuilder_ == null) {
payment_ = builderForValue.build();
} else {
paymentBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* A signed CryptoTransferTransaction to pay the node a fee for handling this query
*
*
* .proto.Transaction payment = 1;
*/
public Builder mergePayment(com.hedera.hashgraph.sdk.proto.Transaction value) {
if (paymentBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
payment_ != null &&
payment_ != com.hedera.hashgraph.sdk.proto.Transaction.getDefaultInstance()) {
getPaymentBuilder().mergeFrom(value);
} else {
payment_ = value;
}
} else {
paymentBuilder_.mergeFrom(value);
}
if (payment_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
**
* A signed CryptoTransferTransaction to pay the node a fee for handling this query
*
*
* .proto.Transaction payment = 1;
*/
public Builder clearPayment() {
bitField0_ = (bitField0_ & ~0x00000001);
payment_ = null;
if (paymentBuilder_ != null) {
paymentBuilder_.dispose();
paymentBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* A signed CryptoTransferTransaction to pay the node a fee for handling this query
*
*
* .proto.Transaction payment = 1;
*/
public com.hedera.hashgraph.sdk.proto.Transaction.Builder getPaymentBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getPaymentFieldBuilder().getBuilder();
}
/**
*
**
* A signed CryptoTransferTransaction to pay the node a fee for handling this query
*
*
* .proto.Transaction payment = 1;
*/
public com.hedera.hashgraph.sdk.proto.TransactionOrBuilder getPaymentOrBuilder() {
if (paymentBuilder_ != null) {
return paymentBuilder_.getMessageOrBuilder();
} else {
return payment_ == null ?
com.hedera.hashgraph.sdk.proto.Transaction.getDefaultInstance() : payment_;
}
}
/**
*
**
* A signed CryptoTransferTransaction to pay the node a fee for handling this query
*
*
* .proto.Transaction payment = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Transaction, com.hedera.hashgraph.sdk.proto.Transaction.Builder, com.hedera.hashgraph.sdk.proto.TransactionOrBuilder>
getPaymentFieldBuilder() {
if (paymentBuilder_ == null) {
paymentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Transaction, com.hedera.hashgraph.sdk.proto.Transaction.Builder, com.hedera.hashgraph.sdk.proto.TransactionOrBuilder>(
getPayment(),
getParentForChildren(),
isClean());
payment_ = null;
}
return paymentBuilder_;
}
private int responseType_ = 0;
/**
*
**
* The requested response, asking for cost, state proof, both, or neither
*
*
* .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, asking for cost, state proof, both, or neither
*
*
* .proto.ResponseType responseType = 2;
* @param value The enum numeric value on the wire for responseType to set.
* @return This builder for chaining.
*/
public Builder setResponseTypeValue(int value) {
responseType_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The requested response, asking for cost, state proof, both, or neither
*
*
* .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, asking for cost, state proof, both, or neither
*
*
* .proto.ResponseType responseType = 2;
* @param value The responseType to set.
* @return This builder for chaining.
*/
public Builder setResponseType(com.hedera.hashgraph.sdk.proto.ResponseType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
responseType_ = value.getNumber();
onChanged();
return this;
}
/**
*
**
* The requested response, asking for cost, state proof, both, or neither
*
*
* .proto.ResponseType responseType = 2;
* @return This builder for chaining.
*/
public Builder clearResponseType() {
bitField0_ = (bitField0_ & ~0x00000002);
responseType_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:proto.QueryHeader)
}
// @@protoc_insertion_point(class_scope:proto.QueryHeader)
private static final com.hedera.hashgraph.sdk.proto.QueryHeader DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.QueryHeader();
}
public static com.hedera.hashgraph.sdk.proto.QueryHeader getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryHeader parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.QueryHeader getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}