com.hedera.hashgraph.sdk.proto.TransactionGetReceiptResponse 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
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: transaction_get_receipt.proto
// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* Response when the client sends the node TransactionGetReceiptQuery. If it created a new entity
* (account, file, or smart contract instance) then one of the three ID fields will be filled in
* with the ID of the new entity. Sometimes a single transaction will create more than one new
* entity, such as when a new contract instance is created, and this also creates the new account
* that it owned by that instance. No State proof is available for this response
*
*
* Protobuf type {@code proto.TransactionGetReceiptResponse}
*/
public final class TransactionGetReceiptResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.TransactionGetReceiptResponse)
TransactionGetReceiptResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransactionGetReceiptResponse.newBuilder() to construct.
private TransactionGetReceiptResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransactionGetReceiptResponse() {
duplicateTransactionReceipts_ = java.util.Collections.emptyList();
childTransactionReceipts_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TransactionGetReceiptResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.TransactionGetReceipt.internal_static_proto_TransactionGetReceiptResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.TransactionGetReceipt.internal_static_proto_TransactionGetReceiptResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.TransactionGetReceiptResponse.class, com.hedera.hashgraph.sdk.proto.TransactionGetReceiptResponse.Builder.class);
}
private int bitField0_;
public static final int HEADER_FIELD_NUMBER = 1;
private com.hedera.hashgraph.sdk.proto.ResponseHeader header_;
/**
*
**
* Standard response from node to client, including the requested fields: cost, or state proof,
* or both, or neither
*
*
* .proto.ResponseHeader header = 1;
* @return Whether the header field is set.
*/
@java.lang.Override
public boolean hasHeader() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* Standard response from node to client, including the requested fields: cost, or state proof,
* or both, or neither
*
*
* .proto.ResponseHeader header = 1;
* @return The header.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ResponseHeader getHeader() {
return header_ == null ? com.hedera.hashgraph.sdk.proto.ResponseHeader.getDefaultInstance() : header_;
}
/**
*
**
* Standard response from node to client, including the requested fields: cost, or state proof,
* or both, or neither
*
*
* .proto.ResponseHeader header = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ResponseHeaderOrBuilder getHeaderOrBuilder() {
return header_ == null ? com.hedera.hashgraph.sdk.proto.ResponseHeader.getDefaultInstance() : header_;
}
public static final int RECEIPT_FIELD_NUMBER = 2;
private com.hedera.hashgraph.sdk.proto.TransactionReceipt receipt_;
/**
*
**
* Either the receipt of processing the first consensus transaction with the given id whose
* status was neither <tt>INVALID_NODE_ACCOUNT</tt> nor <tt>INVALID_PAYER_SIGNATURE</tt>;
* <b>or</b>, if no such receipt exists, the receipt of processing the first transaction to
* reach consensus with the given transaction id.
*
*
* .proto.TransactionReceipt receipt = 2;
* @return Whether the receipt field is set.
*/
@java.lang.Override
public boolean hasReceipt() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* Either the receipt of processing the first consensus transaction with the given id whose
* status was neither <tt>INVALID_NODE_ACCOUNT</tt> nor <tt>INVALID_PAYER_SIGNATURE</tt>;
* <b>or</b>, if no such receipt exists, the receipt of processing the first transaction to
* reach consensus with the given transaction id.
*
*
* .proto.TransactionReceipt receipt = 2;
* @return The receipt.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionReceipt getReceipt() {
return receipt_ == null ? com.hedera.hashgraph.sdk.proto.TransactionReceipt.getDefaultInstance() : receipt_;
}
/**
*
**
* Either the receipt of processing the first consensus transaction with the given id whose
* status was neither <tt>INVALID_NODE_ACCOUNT</tt> nor <tt>INVALID_PAYER_SIGNATURE</tt>;
* <b>or</b>, if no such receipt exists, the receipt of processing the first transaction to
* reach consensus with the given transaction id.
*
*
* .proto.TransactionReceipt receipt = 2;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionReceiptOrBuilder getReceiptOrBuilder() {
return receipt_ == null ? com.hedera.hashgraph.sdk.proto.TransactionReceipt.getDefaultInstance() : receipt_;
}
public static final int DUPLICATETRANSACTIONRECEIPTS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List duplicateTransactionReceipts_;
/**
*
**
* The receipts of processing all transactions with the given id, in consensus time order.
*
*
* repeated .proto.TransactionReceipt duplicateTransactionReceipts = 4;
*/
@java.lang.Override
public java.util.List getDuplicateTransactionReceiptsList() {
return duplicateTransactionReceipts_;
}
/**
*
**
* The receipts of processing all transactions with the given id, in consensus time order.
*
*
* repeated .proto.TransactionReceipt duplicateTransactionReceipts = 4;
*/
@java.lang.Override
public java.util.List extends com.hedera.hashgraph.sdk.proto.TransactionReceiptOrBuilder>
getDuplicateTransactionReceiptsOrBuilderList() {
return duplicateTransactionReceipts_;
}
/**
*
**
* The receipts of processing all transactions with the given id, in consensus time order.
*
*
* repeated .proto.TransactionReceipt duplicateTransactionReceipts = 4;
*/
@java.lang.Override
public int getDuplicateTransactionReceiptsCount() {
return duplicateTransactionReceipts_.size();
}
/**
*
**
* The receipts of processing all transactions with the given id, in consensus time order.
*
*
* repeated .proto.TransactionReceipt duplicateTransactionReceipts = 4;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionReceipt getDuplicateTransactionReceipts(int index) {
return duplicateTransactionReceipts_.get(index);
}
/**
*
**
* The receipts of processing all transactions with the given id, in consensus time order.
*
*
* repeated .proto.TransactionReceipt duplicateTransactionReceipts = 4;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionReceiptOrBuilder getDuplicateTransactionReceiptsOrBuilder(
int index) {
return duplicateTransactionReceipts_.get(index);
}
public static final int CHILD_TRANSACTION_RECEIPTS_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private java.util.List childTransactionReceipts_;
/**
*
**
* The receipts (if any) of all child transactions spawned by the transaction with the
* given top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionReceipt child_transaction_receipts = 5;
*/
@java.lang.Override
public java.util.List getChildTransactionReceiptsList() {
return childTransactionReceipts_;
}
/**
*
**
* The receipts (if any) of all child transactions spawned by the transaction with the
* given top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionReceipt child_transaction_receipts = 5;
*/
@java.lang.Override
public java.util.List extends com.hedera.hashgraph.sdk.proto.TransactionReceiptOrBuilder>
getChildTransactionReceiptsOrBuilderList() {
return childTransactionReceipts_;
}
/**
*
**
* The receipts (if any) of all child transactions spawned by the transaction with the
* given top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionReceipt child_transaction_receipts = 5;
*/
@java.lang.Override
public int getChildTransactionReceiptsCount() {
return childTransactionReceipts_.size();
}
/**
*
**
* The receipts (if any) of all child transactions spawned by the transaction with the
* given top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionReceipt child_transaction_receipts = 5;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionReceipt getChildTransactionReceipts(int index) {
return childTransactionReceipts_.get(index);
}
/**
*
**
* The receipts (if any) of all child transactions spawned by the transaction with the
* given top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionReceipt child_transaction_receipts = 5;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionReceiptOrBuilder getChildTransactionReceiptsOrBuilder(
int index) {
return childTransactionReceipts_.get(index);
}
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, getHeader());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getReceipt());
}
for (int i = 0; i < duplicateTransactionReceipts_.size(); i++) {
output.writeMessage(4, duplicateTransactionReceipts_.get(i));
}
for (int i = 0; i < childTransactionReceipts_.size(); i++) {
output.writeMessage(5, childTransactionReceipts_.get(i));
}
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, getHeader());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getReceipt());
}
for (int i = 0; i < duplicateTransactionReceipts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, duplicateTransactionReceipts_.get(i));
}
for (int i = 0; i < childTransactionReceipts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, childTransactionReceipts_.get(i));
}
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.TransactionGetReceiptResponse)) {
return super.equals(obj);
}
com.hedera.hashgraph.sdk.proto.TransactionGetReceiptResponse other = (com.hedera.hashgraph.sdk.proto.TransactionGetReceiptResponse) obj;
if (hasHeader() != other.hasHeader()) return false;
if (hasHeader()) {
if (!getHeader()
.equals(other.getHeader())) return false;
}
if (hasReceipt() != other.hasReceipt()) return false;
if (hasReceipt()) {
if (!getReceipt()
.equals(other.getReceipt())) return false;
}
if (!getDuplicateTransactionReceiptsList()
.equals(other.getDuplicateTransactionReceiptsList())) return false;
if (!getChildTransactionReceiptsList()
.equals(other.getChildTransactionReceiptsList())) 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 (hasHeader()) {
hash = (37 * hash) + HEADER_FIELD_NUMBER;
hash = (53 * hash) + getHeader().hashCode();
}
if (hasReceipt()) {
hash = (37 * hash) + RECEIPT_FIELD_NUMBER;
hash = (53 * hash) + getReceipt().hashCode();
}
if (getDuplicateTransactionReceiptsCount() > 0) {
hash = (37 * hash) + DUPLICATETRANSACTIONRECEIPTS_FIELD_NUMBER;
hash = (53 * hash) + getDuplicateTransactionReceiptsList().hashCode();
}
if (getChildTransactionReceiptsCount() > 0) {
hash = (37 * hash) + CHILD_TRANSACTION_RECEIPTS_FIELD_NUMBER;
hash = (53 * hash) + getChildTransactionReceiptsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hashgraph.sdk.proto.TransactionGetReceiptResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.TransactionGetReceiptResponse 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.TransactionGetReceiptResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.TransactionGetReceiptResponse 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.TransactionGetReceiptResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.TransactionGetReceiptResponse 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.TransactionGetReceiptResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.TransactionGetReceiptResponse 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.TransactionGetReceiptResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.TransactionGetReceiptResponse 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.TransactionGetReceiptResponse 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.TransactionGetReceiptResponse 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.TransactionGetReceiptResponse 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;
}
/**
*
**
* Response when the client sends the node TransactionGetReceiptQuery. If it created a new entity
* (account, file, or smart contract instance) then one of the three ID fields will be filled in
* with the ID of the new entity. Sometimes a single transaction will create more than one new
* entity, such as when a new contract instance is created, and this also creates the new account
* that it owned by that instance. No State proof is available for this response
*
*
* Protobuf type {@code proto.TransactionGetReceiptResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.TransactionGetReceiptResponse)
com.hedera.hashgraph.sdk.proto.TransactionGetReceiptResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.TransactionGetReceipt.internal_static_proto_TransactionGetReceiptResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.TransactionGetReceipt.internal_static_proto_TransactionGetReceiptResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.TransactionGetReceiptResponse.class, com.hedera.hashgraph.sdk.proto.TransactionGetReceiptResponse.Builder.class);
}
// Construct using com.hedera.hashgraph.sdk.proto.TransactionGetReceiptResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getHeaderFieldBuilder();
getReceiptFieldBuilder();
getDuplicateTransactionReceiptsFieldBuilder();
getChildTransactionReceiptsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
header_ = null;
if (headerBuilder_ != null) {
headerBuilder_.dispose();
headerBuilder_ = null;
}
receipt_ = null;
if (receiptBuilder_ != null) {
receiptBuilder_.dispose();
receiptBuilder_ = null;
}
if (duplicateTransactionReceiptsBuilder_ == null) {
duplicateTransactionReceipts_ = java.util.Collections.emptyList();
} else {
duplicateTransactionReceipts_ = null;
duplicateTransactionReceiptsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (childTransactionReceiptsBuilder_ == null) {
childTransactionReceipts_ = java.util.Collections.emptyList();
} else {
childTransactionReceipts_ = null;
childTransactionReceiptsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hashgraph.sdk.proto.TransactionGetReceipt.internal_static_proto_TransactionGetReceiptResponse_descriptor;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionGetReceiptResponse getDefaultInstanceForType() {
return com.hedera.hashgraph.sdk.proto.TransactionGetReceiptResponse.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionGetReceiptResponse build() {
com.hedera.hashgraph.sdk.proto.TransactionGetReceiptResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionGetReceiptResponse buildPartial() {
com.hedera.hashgraph.sdk.proto.TransactionGetReceiptResponse result = new com.hedera.hashgraph.sdk.proto.TransactionGetReceiptResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.hedera.hashgraph.sdk.proto.TransactionGetReceiptResponse result) {
if (duplicateTransactionReceiptsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
duplicateTransactionReceipts_ = java.util.Collections.unmodifiableList(duplicateTransactionReceipts_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.duplicateTransactionReceipts_ = duplicateTransactionReceipts_;
} else {
result.duplicateTransactionReceipts_ = duplicateTransactionReceiptsBuilder_.build();
}
if (childTransactionReceiptsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
childTransactionReceipts_ = java.util.Collections.unmodifiableList(childTransactionReceipts_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.childTransactionReceipts_ = childTransactionReceipts_;
} else {
result.childTransactionReceipts_ = childTransactionReceiptsBuilder_.build();
}
}
private void buildPartial0(com.hedera.hashgraph.sdk.proto.TransactionGetReceiptResponse result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.header_ = headerBuilder_ == null
? header_
: headerBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.receipt_ = receiptBuilder_ == null
? receipt_
: receiptBuilder_.build();
to_bitField0_ |= 0x00000002;
}
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.TransactionGetReceiptResponse) {
return mergeFrom((com.hedera.hashgraph.sdk.proto.TransactionGetReceiptResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.TransactionGetReceiptResponse other) {
if (other == com.hedera.hashgraph.sdk.proto.TransactionGetReceiptResponse.getDefaultInstance()) return this;
if (other.hasHeader()) {
mergeHeader(other.getHeader());
}
if (other.hasReceipt()) {
mergeReceipt(other.getReceipt());
}
if (duplicateTransactionReceiptsBuilder_ == null) {
if (!other.duplicateTransactionReceipts_.isEmpty()) {
if (duplicateTransactionReceipts_.isEmpty()) {
duplicateTransactionReceipts_ = other.duplicateTransactionReceipts_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureDuplicateTransactionReceiptsIsMutable();
duplicateTransactionReceipts_.addAll(other.duplicateTransactionReceipts_);
}
onChanged();
}
} else {
if (!other.duplicateTransactionReceipts_.isEmpty()) {
if (duplicateTransactionReceiptsBuilder_.isEmpty()) {
duplicateTransactionReceiptsBuilder_.dispose();
duplicateTransactionReceiptsBuilder_ = null;
duplicateTransactionReceipts_ = other.duplicateTransactionReceipts_;
bitField0_ = (bitField0_ & ~0x00000004);
duplicateTransactionReceiptsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDuplicateTransactionReceiptsFieldBuilder() : null;
} else {
duplicateTransactionReceiptsBuilder_.addAllMessages(other.duplicateTransactionReceipts_);
}
}
}
if (childTransactionReceiptsBuilder_ == null) {
if (!other.childTransactionReceipts_.isEmpty()) {
if (childTransactionReceipts_.isEmpty()) {
childTransactionReceipts_ = other.childTransactionReceipts_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureChildTransactionReceiptsIsMutable();
childTransactionReceipts_.addAll(other.childTransactionReceipts_);
}
onChanged();
}
} else {
if (!other.childTransactionReceipts_.isEmpty()) {
if (childTransactionReceiptsBuilder_.isEmpty()) {
childTransactionReceiptsBuilder_.dispose();
childTransactionReceiptsBuilder_ = null;
childTransactionReceipts_ = other.childTransactionReceipts_;
bitField0_ = (bitField0_ & ~0x00000008);
childTransactionReceiptsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getChildTransactionReceiptsFieldBuilder() : null;
} else {
childTransactionReceiptsBuilder_.addAllMessages(other.childTransactionReceipts_);
}
}
}
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(
getHeaderFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getReceiptFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 34: {
com.hedera.hashgraph.sdk.proto.TransactionReceipt m =
input.readMessage(
com.hedera.hashgraph.sdk.proto.TransactionReceipt.parser(),
extensionRegistry);
if (duplicateTransactionReceiptsBuilder_ == null) {
ensureDuplicateTransactionReceiptsIsMutable();
duplicateTransactionReceipts_.add(m);
} else {
duplicateTransactionReceiptsBuilder_.addMessage(m);
}
break;
} // case 34
case 42: {
com.hedera.hashgraph.sdk.proto.TransactionReceipt m =
input.readMessage(
com.hedera.hashgraph.sdk.proto.TransactionReceipt.parser(),
extensionRegistry);
if (childTransactionReceiptsBuilder_ == null) {
ensureChildTransactionReceiptsIsMutable();
childTransactionReceipts_.add(m);
} else {
childTransactionReceiptsBuilder_.addMessage(m);
}
break;
} // case 42
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.ResponseHeader header_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ResponseHeader, com.hedera.hashgraph.sdk.proto.ResponseHeader.Builder, com.hedera.hashgraph.sdk.proto.ResponseHeaderOrBuilder> headerBuilder_;
/**
*
**
* Standard response from node to client, including the requested fields: cost, or state proof,
* or both, or neither
*
*
* .proto.ResponseHeader header = 1;
* @return Whether the header field is set.
*/
public boolean hasHeader() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* Standard response from node to client, including the requested fields: cost, or state proof,
* or both, or neither
*
*
* .proto.ResponseHeader header = 1;
* @return The header.
*/
public com.hedera.hashgraph.sdk.proto.ResponseHeader getHeader() {
if (headerBuilder_ == null) {
return header_ == null ? com.hedera.hashgraph.sdk.proto.ResponseHeader.getDefaultInstance() : header_;
} else {
return headerBuilder_.getMessage();
}
}
/**
*
**
* Standard response from node to client, including the requested fields: cost, or state proof,
* or both, or neither
*
*
* .proto.ResponseHeader header = 1;
*/
public Builder setHeader(com.hedera.hashgraph.sdk.proto.ResponseHeader value) {
if (headerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
header_ = value;
} else {
headerBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* Standard response from node to client, including the requested fields: cost, or state proof,
* or both, or neither
*
*
* .proto.ResponseHeader header = 1;
*/
public Builder setHeader(
com.hedera.hashgraph.sdk.proto.ResponseHeader.Builder builderForValue) {
if (headerBuilder_ == null) {
header_ = builderForValue.build();
} else {
headerBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* Standard response from node to client, including the requested fields: cost, or state proof,
* or both, or neither
*
*
* .proto.ResponseHeader header = 1;
*/
public Builder mergeHeader(com.hedera.hashgraph.sdk.proto.ResponseHeader value) {
if (headerBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
header_ != null &&
header_ != com.hedera.hashgraph.sdk.proto.ResponseHeader.getDefaultInstance()) {
getHeaderBuilder().mergeFrom(value);
} else {
header_ = value;
}
} else {
headerBuilder_.mergeFrom(value);
}
if (header_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
**
* Standard response from node to client, including the requested fields: cost, or state proof,
* or both, or neither
*
*
* .proto.ResponseHeader header = 1;
*/
public Builder clearHeader() {
bitField0_ = (bitField0_ & ~0x00000001);
header_ = null;
if (headerBuilder_ != null) {
headerBuilder_.dispose();
headerBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* Standard response from node to client, including the requested fields: cost, or state proof,
* or both, or neither
*
*
* .proto.ResponseHeader header = 1;
*/
public com.hedera.hashgraph.sdk.proto.ResponseHeader.Builder getHeaderBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getHeaderFieldBuilder().getBuilder();
}
/**
*
**
* Standard response from node to client, including the requested fields: cost, or state proof,
* or both, or neither
*
*
* .proto.ResponseHeader header = 1;
*/
public com.hedera.hashgraph.sdk.proto.ResponseHeaderOrBuilder getHeaderOrBuilder() {
if (headerBuilder_ != null) {
return headerBuilder_.getMessageOrBuilder();
} else {
return header_ == null ?
com.hedera.hashgraph.sdk.proto.ResponseHeader.getDefaultInstance() : header_;
}
}
/**
*
**
* Standard response from node to client, including the requested fields: cost, or state proof,
* or both, or neither
*
*
* .proto.ResponseHeader header = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ResponseHeader, com.hedera.hashgraph.sdk.proto.ResponseHeader.Builder, com.hedera.hashgraph.sdk.proto.ResponseHeaderOrBuilder>
getHeaderFieldBuilder() {
if (headerBuilder_ == null) {
headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ResponseHeader, com.hedera.hashgraph.sdk.proto.ResponseHeader.Builder, com.hedera.hashgraph.sdk.proto.ResponseHeaderOrBuilder>(
getHeader(),
getParentForChildren(),
isClean());
header_ = null;
}
return headerBuilder_;
}
private com.hedera.hashgraph.sdk.proto.TransactionReceipt receipt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TransactionReceipt, com.hedera.hashgraph.sdk.proto.TransactionReceipt.Builder, com.hedera.hashgraph.sdk.proto.TransactionReceiptOrBuilder> receiptBuilder_;
/**
*
**
* Either the receipt of processing the first consensus transaction with the given id whose
* status was neither <tt>INVALID_NODE_ACCOUNT</tt> nor <tt>INVALID_PAYER_SIGNATURE</tt>;
* <b>or</b>, if no such receipt exists, the receipt of processing the first transaction to
* reach consensus with the given transaction id.
*
*
* .proto.TransactionReceipt receipt = 2;
* @return Whether the receipt field is set.
*/
public boolean hasReceipt() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* Either the receipt of processing the first consensus transaction with the given id whose
* status was neither <tt>INVALID_NODE_ACCOUNT</tt> nor <tt>INVALID_PAYER_SIGNATURE</tt>;
* <b>or</b>, if no such receipt exists, the receipt of processing the first transaction to
* reach consensus with the given transaction id.
*
*
* .proto.TransactionReceipt receipt = 2;
* @return The receipt.
*/
public com.hedera.hashgraph.sdk.proto.TransactionReceipt getReceipt() {
if (receiptBuilder_ == null) {
return receipt_ == null ? com.hedera.hashgraph.sdk.proto.TransactionReceipt.getDefaultInstance() : receipt_;
} else {
return receiptBuilder_.getMessage();
}
}
/**
*
**
* Either the receipt of processing the first consensus transaction with the given id whose
* status was neither <tt>INVALID_NODE_ACCOUNT</tt> nor <tt>INVALID_PAYER_SIGNATURE</tt>;
* <b>or</b>, if no such receipt exists, the receipt of processing the first transaction to
* reach consensus with the given transaction id.
*
*
* .proto.TransactionReceipt receipt = 2;
*/
public Builder setReceipt(com.hedera.hashgraph.sdk.proto.TransactionReceipt value) {
if (receiptBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
receipt_ = value;
} else {
receiptBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* Either the receipt of processing the first consensus transaction with the given id whose
* status was neither <tt>INVALID_NODE_ACCOUNT</tt> nor <tt>INVALID_PAYER_SIGNATURE</tt>;
* <b>or</b>, if no such receipt exists, the receipt of processing the first transaction to
* reach consensus with the given transaction id.
*
*
* .proto.TransactionReceipt receipt = 2;
*/
public Builder setReceipt(
com.hedera.hashgraph.sdk.proto.TransactionReceipt.Builder builderForValue) {
if (receiptBuilder_ == null) {
receipt_ = builderForValue.build();
} else {
receiptBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* Either the receipt of processing the first consensus transaction with the given id whose
* status was neither <tt>INVALID_NODE_ACCOUNT</tt> nor <tt>INVALID_PAYER_SIGNATURE</tt>;
* <b>or</b>, if no such receipt exists, the receipt of processing the first transaction to
* reach consensus with the given transaction id.
*
*
* .proto.TransactionReceipt receipt = 2;
*/
public Builder mergeReceipt(com.hedera.hashgraph.sdk.proto.TransactionReceipt value) {
if (receiptBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
receipt_ != null &&
receipt_ != com.hedera.hashgraph.sdk.proto.TransactionReceipt.getDefaultInstance()) {
getReceiptBuilder().mergeFrom(value);
} else {
receipt_ = value;
}
} else {
receiptBuilder_.mergeFrom(value);
}
if (receipt_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
**
* Either the receipt of processing the first consensus transaction with the given id whose
* status was neither <tt>INVALID_NODE_ACCOUNT</tt> nor <tt>INVALID_PAYER_SIGNATURE</tt>;
* <b>or</b>, if no such receipt exists, the receipt of processing the first transaction to
* reach consensus with the given transaction id.
*
*
* .proto.TransactionReceipt receipt = 2;
*/
public Builder clearReceipt() {
bitField0_ = (bitField0_ & ~0x00000002);
receipt_ = null;
if (receiptBuilder_ != null) {
receiptBuilder_.dispose();
receiptBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* Either the receipt of processing the first consensus transaction with the given id whose
* status was neither <tt>INVALID_NODE_ACCOUNT</tt> nor <tt>INVALID_PAYER_SIGNATURE</tt>;
* <b>or</b>, if no such receipt exists, the receipt of processing the first transaction to
* reach consensus with the given transaction id.
*
*
* .proto.TransactionReceipt receipt = 2;
*/
public com.hedera.hashgraph.sdk.proto.TransactionReceipt.Builder getReceiptBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getReceiptFieldBuilder().getBuilder();
}
/**
*
**
* Either the receipt of processing the first consensus transaction with the given id whose
* status was neither <tt>INVALID_NODE_ACCOUNT</tt> nor <tt>INVALID_PAYER_SIGNATURE</tt>;
* <b>or</b>, if no such receipt exists, the receipt of processing the first transaction to
* reach consensus with the given transaction id.
*
*
* .proto.TransactionReceipt receipt = 2;
*/
public com.hedera.hashgraph.sdk.proto.TransactionReceiptOrBuilder getReceiptOrBuilder() {
if (receiptBuilder_ != null) {
return receiptBuilder_.getMessageOrBuilder();
} else {
return receipt_ == null ?
com.hedera.hashgraph.sdk.proto.TransactionReceipt.getDefaultInstance() : receipt_;
}
}
/**
*
**
* Either the receipt of processing the first consensus transaction with the given id whose
* status was neither <tt>INVALID_NODE_ACCOUNT</tt> nor <tt>INVALID_PAYER_SIGNATURE</tt>;
* <b>or</b>, if no such receipt exists, the receipt of processing the first transaction to
* reach consensus with the given transaction id.
*
*
* .proto.TransactionReceipt receipt = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TransactionReceipt, com.hedera.hashgraph.sdk.proto.TransactionReceipt.Builder, com.hedera.hashgraph.sdk.proto.TransactionReceiptOrBuilder>
getReceiptFieldBuilder() {
if (receiptBuilder_ == null) {
receiptBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TransactionReceipt, com.hedera.hashgraph.sdk.proto.TransactionReceipt.Builder, com.hedera.hashgraph.sdk.proto.TransactionReceiptOrBuilder>(
getReceipt(),
getParentForChildren(),
isClean());
receipt_ = null;
}
return receiptBuilder_;
}
private java.util.List duplicateTransactionReceipts_ =
java.util.Collections.emptyList();
private void ensureDuplicateTransactionReceiptsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
duplicateTransactionReceipts_ = new java.util.ArrayList(duplicateTransactionReceipts_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TransactionReceipt, com.hedera.hashgraph.sdk.proto.TransactionReceipt.Builder, com.hedera.hashgraph.sdk.proto.TransactionReceiptOrBuilder> duplicateTransactionReceiptsBuilder_;
/**
*
**
* The receipts of processing all transactions with the given id, in consensus time order.
*
*
* repeated .proto.TransactionReceipt duplicateTransactionReceipts = 4;
*/
public java.util.List getDuplicateTransactionReceiptsList() {
if (duplicateTransactionReceiptsBuilder_ == null) {
return java.util.Collections.unmodifiableList(duplicateTransactionReceipts_);
} else {
return duplicateTransactionReceiptsBuilder_.getMessageList();
}
}
/**
*
**
* The receipts of processing all transactions with the given id, in consensus time order.
*
*
* repeated .proto.TransactionReceipt duplicateTransactionReceipts = 4;
*/
public int getDuplicateTransactionReceiptsCount() {
if (duplicateTransactionReceiptsBuilder_ == null) {
return duplicateTransactionReceipts_.size();
} else {
return duplicateTransactionReceiptsBuilder_.getCount();
}
}
/**
*
**
* The receipts of processing all transactions with the given id, in consensus time order.
*
*
* repeated .proto.TransactionReceipt duplicateTransactionReceipts = 4;
*/
public com.hedera.hashgraph.sdk.proto.TransactionReceipt getDuplicateTransactionReceipts(int index) {
if (duplicateTransactionReceiptsBuilder_ == null) {
return duplicateTransactionReceipts_.get(index);
} else {
return duplicateTransactionReceiptsBuilder_.getMessage(index);
}
}
/**
*
**
* The receipts of processing all transactions with the given id, in consensus time order.
*
*
* repeated .proto.TransactionReceipt duplicateTransactionReceipts = 4;
*/
public Builder setDuplicateTransactionReceipts(
int index, com.hedera.hashgraph.sdk.proto.TransactionReceipt value) {
if (duplicateTransactionReceiptsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDuplicateTransactionReceiptsIsMutable();
duplicateTransactionReceipts_.set(index, value);
onChanged();
} else {
duplicateTransactionReceiptsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* The receipts of processing all transactions with the given id, in consensus time order.
*
*
* repeated .proto.TransactionReceipt duplicateTransactionReceipts = 4;
*/
public Builder setDuplicateTransactionReceipts(
int index, com.hedera.hashgraph.sdk.proto.TransactionReceipt.Builder builderForValue) {
if (duplicateTransactionReceiptsBuilder_ == null) {
ensureDuplicateTransactionReceiptsIsMutable();
duplicateTransactionReceipts_.set(index, builderForValue.build());
onChanged();
} else {
duplicateTransactionReceiptsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* The receipts of processing all transactions with the given id, in consensus time order.
*
*
* repeated .proto.TransactionReceipt duplicateTransactionReceipts = 4;
*/
public Builder addDuplicateTransactionReceipts(com.hedera.hashgraph.sdk.proto.TransactionReceipt value) {
if (duplicateTransactionReceiptsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDuplicateTransactionReceiptsIsMutable();
duplicateTransactionReceipts_.add(value);
onChanged();
} else {
duplicateTransactionReceiptsBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* The receipts of processing all transactions with the given id, in consensus time order.
*
*
* repeated .proto.TransactionReceipt duplicateTransactionReceipts = 4;
*/
public Builder addDuplicateTransactionReceipts(
int index, com.hedera.hashgraph.sdk.proto.TransactionReceipt value) {
if (duplicateTransactionReceiptsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDuplicateTransactionReceiptsIsMutable();
duplicateTransactionReceipts_.add(index, value);
onChanged();
} else {
duplicateTransactionReceiptsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* The receipts of processing all transactions with the given id, in consensus time order.
*
*
* repeated .proto.TransactionReceipt duplicateTransactionReceipts = 4;
*/
public Builder addDuplicateTransactionReceipts(
com.hedera.hashgraph.sdk.proto.TransactionReceipt.Builder builderForValue) {
if (duplicateTransactionReceiptsBuilder_ == null) {
ensureDuplicateTransactionReceiptsIsMutable();
duplicateTransactionReceipts_.add(builderForValue.build());
onChanged();
} else {
duplicateTransactionReceiptsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The receipts of processing all transactions with the given id, in consensus time order.
*
*
* repeated .proto.TransactionReceipt duplicateTransactionReceipts = 4;
*/
public Builder addDuplicateTransactionReceipts(
int index, com.hedera.hashgraph.sdk.proto.TransactionReceipt.Builder builderForValue) {
if (duplicateTransactionReceiptsBuilder_ == null) {
ensureDuplicateTransactionReceiptsIsMutable();
duplicateTransactionReceipts_.add(index, builderForValue.build());
onChanged();
} else {
duplicateTransactionReceiptsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* The receipts of processing all transactions with the given id, in consensus time order.
*
*
* repeated .proto.TransactionReceipt duplicateTransactionReceipts = 4;
*/
public Builder addAllDuplicateTransactionReceipts(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.TransactionReceipt> values) {
if (duplicateTransactionReceiptsBuilder_ == null) {
ensureDuplicateTransactionReceiptsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, duplicateTransactionReceipts_);
onChanged();
} else {
duplicateTransactionReceiptsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* The receipts of processing all transactions with the given id, in consensus time order.
*
*
* repeated .proto.TransactionReceipt duplicateTransactionReceipts = 4;
*/
public Builder clearDuplicateTransactionReceipts() {
if (duplicateTransactionReceiptsBuilder_ == null) {
duplicateTransactionReceipts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
duplicateTransactionReceiptsBuilder_.clear();
}
return this;
}
/**
*
**
* The receipts of processing all transactions with the given id, in consensus time order.
*
*
* repeated .proto.TransactionReceipt duplicateTransactionReceipts = 4;
*/
public Builder removeDuplicateTransactionReceipts(int index) {
if (duplicateTransactionReceiptsBuilder_ == null) {
ensureDuplicateTransactionReceiptsIsMutable();
duplicateTransactionReceipts_.remove(index);
onChanged();
} else {
duplicateTransactionReceiptsBuilder_.remove(index);
}
return this;
}
/**
*
**
* The receipts of processing all transactions with the given id, in consensus time order.
*
*
* repeated .proto.TransactionReceipt duplicateTransactionReceipts = 4;
*/
public com.hedera.hashgraph.sdk.proto.TransactionReceipt.Builder getDuplicateTransactionReceiptsBuilder(
int index) {
return getDuplicateTransactionReceiptsFieldBuilder().getBuilder(index);
}
/**
*
**
* The receipts of processing all transactions with the given id, in consensus time order.
*
*
* repeated .proto.TransactionReceipt duplicateTransactionReceipts = 4;
*/
public com.hedera.hashgraph.sdk.proto.TransactionReceiptOrBuilder getDuplicateTransactionReceiptsOrBuilder(
int index) {
if (duplicateTransactionReceiptsBuilder_ == null) {
return duplicateTransactionReceipts_.get(index); } else {
return duplicateTransactionReceiptsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* The receipts of processing all transactions with the given id, in consensus time order.
*
*
* repeated .proto.TransactionReceipt duplicateTransactionReceipts = 4;
*/
public java.util.List extends com.hedera.hashgraph.sdk.proto.TransactionReceiptOrBuilder>
getDuplicateTransactionReceiptsOrBuilderList() {
if (duplicateTransactionReceiptsBuilder_ != null) {
return duplicateTransactionReceiptsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(duplicateTransactionReceipts_);
}
}
/**
*
**
* The receipts of processing all transactions with the given id, in consensus time order.
*
*
* repeated .proto.TransactionReceipt duplicateTransactionReceipts = 4;
*/
public com.hedera.hashgraph.sdk.proto.TransactionReceipt.Builder addDuplicateTransactionReceiptsBuilder() {
return getDuplicateTransactionReceiptsFieldBuilder().addBuilder(
com.hedera.hashgraph.sdk.proto.TransactionReceipt.getDefaultInstance());
}
/**
*
**
* The receipts of processing all transactions with the given id, in consensus time order.
*
*
* repeated .proto.TransactionReceipt duplicateTransactionReceipts = 4;
*/
public com.hedera.hashgraph.sdk.proto.TransactionReceipt.Builder addDuplicateTransactionReceiptsBuilder(
int index) {
return getDuplicateTransactionReceiptsFieldBuilder().addBuilder(
index, com.hedera.hashgraph.sdk.proto.TransactionReceipt.getDefaultInstance());
}
/**
*
**
* The receipts of processing all transactions with the given id, in consensus time order.
*
*
* repeated .proto.TransactionReceipt duplicateTransactionReceipts = 4;
*/
public java.util.List
getDuplicateTransactionReceiptsBuilderList() {
return getDuplicateTransactionReceiptsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TransactionReceipt, com.hedera.hashgraph.sdk.proto.TransactionReceipt.Builder, com.hedera.hashgraph.sdk.proto.TransactionReceiptOrBuilder>
getDuplicateTransactionReceiptsFieldBuilder() {
if (duplicateTransactionReceiptsBuilder_ == null) {
duplicateTransactionReceiptsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TransactionReceipt, com.hedera.hashgraph.sdk.proto.TransactionReceipt.Builder, com.hedera.hashgraph.sdk.proto.TransactionReceiptOrBuilder>(
duplicateTransactionReceipts_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
duplicateTransactionReceipts_ = null;
}
return duplicateTransactionReceiptsBuilder_;
}
private java.util.List childTransactionReceipts_ =
java.util.Collections.emptyList();
private void ensureChildTransactionReceiptsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
childTransactionReceipts_ = new java.util.ArrayList(childTransactionReceipts_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TransactionReceipt, com.hedera.hashgraph.sdk.proto.TransactionReceipt.Builder, com.hedera.hashgraph.sdk.proto.TransactionReceiptOrBuilder> childTransactionReceiptsBuilder_;
/**
*
**
* The receipts (if any) of all child transactions spawned by the transaction with the
* given top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionReceipt child_transaction_receipts = 5;
*/
public java.util.List getChildTransactionReceiptsList() {
if (childTransactionReceiptsBuilder_ == null) {
return java.util.Collections.unmodifiableList(childTransactionReceipts_);
} else {
return childTransactionReceiptsBuilder_.getMessageList();
}
}
/**
*
**
* The receipts (if any) of all child transactions spawned by the transaction with the
* given top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionReceipt child_transaction_receipts = 5;
*/
public int getChildTransactionReceiptsCount() {
if (childTransactionReceiptsBuilder_ == null) {
return childTransactionReceipts_.size();
} else {
return childTransactionReceiptsBuilder_.getCount();
}
}
/**
*
**
* The receipts (if any) of all child transactions spawned by the transaction with the
* given top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionReceipt child_transaction_receipts = 5;
*/
public com.hedera.hashgraph.sdk.proto.TransactionReceipt getChildTransactionReceipts(int index) {
if (childTransactionReceiptsBuilder_ == null) {
return childTransactionReceipts_.get(index);
} else {
return childTransactionReceiptsBuilder_.getMessage(index);
}
}
/**
*
**
* The receipts (if any) of all child transactions spawned by the transaction with the
* given top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionReceipt child_transaction_receipts = 5;
*/
public Builder setChildTransactionReceipts(
int index, com.hedera.hashgraph.sdk.proto.TransactionReceipt value) {
if (childTransactionReceiptsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChildTransactionReceiptsIsMutable();
childTransactionReceipts_.set(index, value);
onChanged();
} else {
childTransactionReceiptsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* The receipts (if any) of all child transactions spawned by the transaction with the
* given top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionReceipt child_transaction_receipts = 5;
*/
public Builder setChildTransactionReceipts(
int index, com.hedera.hashgraph.sdk.proto.TransactionReceipt.Builder builderForValue) {
if (childTransactionReceiptsBuilder_ == null) {
ensureChildTransactionReceiptsIsMutable();
childTransactionReceipts_.set(index, builderForValue.build());
onChanged();
} else {
childTransactionReceiptsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* The receipts (if any) of all child transactions spawned by the transaction with the
* given top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionReceipt child_transaction_receipts = 5;
*/
public Builder addChildTransactionReceipts(com.hedera.hashgraph.sdk.proto.TransactionReceipt value) {
if (childTransactionReceiptsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChildTransactionReceiptsIsMutable();
childTransactionReceipts_.add(value);
onChanged();
} else {
childTransactionReceiptsBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* The receipts (if any) of all child transactions spawned by the transaction with the
* given top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionReceipt child_transaction_receipts = 5;
*/
public Builder addChildTransactionReceipts(
int index, com.hedera.hashgraph.sdk.proto.TransactionReceipt value) {
if (childTransactionReceiptsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChildTransactionReceiptsIsMutable();
childTransactionReceipts_.add(index, value);
onChanged();
} else {
childTransactionReceiptsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* The receipts (if any) of all child transactions spawned by the transaction with the
* given top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionReceipt child_transaction_receipts = 5;
*/
public Builder addChildTransactionReceipts(
com.hedera.hashgraph.sdk.proto.TransactionReceipt.Builder builderForValue) {
if (childTransactionReceiptsBuilder_ == null) {
ensureChildTransactionReceiptsIsMutable();
childTransactionReceipts_.add(builderForValue.build());
onChanged();
} else {
childTransactionReceiptsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The receipts (if any) of all child transactions spawned by the transaction with the
* given top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionReceipt child_transaction_receipts = 5;
*/
public Builder addChildTransactionReceipts(
int index, com.hedera.hashgraph.sdk.proto.TransactionReceipt.Builder builderForValue) {
if (childTransactionReceiptsBuilder_ == null) {
ensureChildTransactionReceiptsIsMutable();
childTransactionReceipts_.add(index, builderForValue.build());
onChanged();
} else {
childTransactionReceiptsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* The receipts (if any) of all child transactions spawned by the transaction with the
* given top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionReceipt child_transaction_receipts = 5;
*/
public Builder addAllChildTransactionReceipts(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.TransactionReceipt> values) {
if (childTransactionReceiptsBuilder_ == null) {
ensureChildTransactionReceiptsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, childTransactionReceipts_);
onChanged();
} else {
childTransactionReceiptsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* The receipts (if any) of all child transactions spawned by the transaction with the
* given top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionReceipt child_transaction_receipts = 5;
*/
public Builder clearChildTransactionReceipts() {
if (childTransactionReceiptsBuilder_ == null) {
childTransactionReceipts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
childTransactionReceiptsBuilder_.clear();
}
return this;
}
/**
*
**
* The receipts (if any) of all child transactions spawned by the transaction with the
* given top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionReceipt child_transaction_receipts = 5;
*/
public Builder removeChildTransactionReceipts(int index) {
if (childTransactionReceiptsBuilder_ == null) {
ensureChildTransactionReceiptsIsMutable();
childTransactionReceipts_.remove(index);
onChanged();
} else {
childTransactionReceiptsBuilder_.remove(index);
}
return this;
}
/**
*
**
* The receipts (if any) of all child transactions spawned by the transaction with the
* given top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionReceipt child_transaction_receipts = 5;
*/
public com.hedera.hashgraph.sdk.proto.TransactionReceipt.Builder getChildTransactionReceiptsBuilder(
int index) {
return getChildTransactionReceiptsFieldBuilder().getBuilder(index);
}
/**
*
**
* The receipts (if any) of all child transactions spawned by the transaction with the
* given top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionReceipt child_transaction_receipts = 5;
*/
public com.hedera.hashgraph.sdk.proto.TransactionReceiptOrBuilder getChildTransactionReceiptsOrBuilder(
int index) {
if (childTransactionReceiptsBuilder_ == null) {
return childTransactionReceipts_.get(index); } else {
return childTransactionReceiptsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* The receipts (if any) of all child transactions spawned by the transaction with the
* given top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionReceipt child_transaction_receipts = 5;
*/
public java.util.List extends com.hedera.hashgraph.sdk.proto.TransactionReceiptOrBuilder>
getChildTransactionReceiptsOrBuilderList() {
if (childTransactionReceiptsBuilder_ != null) {
return childTransactionReceiptsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(childTransactionReceipts_);
}
}
/**
*
**
* The receipts (if any) of all child transactions spawned by the transaction with the
* given top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionReceipt child_transaction_receipts = 5;
*/
public com.hedera.hashgraph.sdk.proto.TransactionReceipt.Builder addChildTransactionReceiptsBuilder() {
return getChildTransactionReceiptsFieldBuilder().addBuilder(
com.hedera.hashgraph.sdk.proto.TransactionReceipt.getDefaultInstance());
}
/**
*
**
* The receipts (if any) of all child transactions spawned by the transaction with the
* given top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionReceipt child_transaction_receipts = 5;
*/
public com.hedera.hashgraph.sdk.proto.TransactionReceipt.Builder addChildTransactionReceiptsBuilder(
int index) {
return getChildTransactionReceiptsFieldBuilder().addBuilder(
index, com.hedera.hashgraph.sdk.proto.TransactionReceipt.getDefaultInstance());
}
/**
*
**
* The receipts (if any) of all child transactions spawned by the transaction with the
* given top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionReceipt child_transaction_receipts = 5;
*/
public java.util.List
getChildTransactionReceiptsBuilderList() {
return getChildTransactionReceiptsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TransactionReceipt, com.hedera.hashgraph.sdk.proto.TransactionReceipt.Builder, com.hedera.hashgraph.sdk.proto.TransactionReceiptOrBuilder>
getChildTransactionReceiptsFieldBuilder() {
if (childTransactionReceiptsBuilder_ == null) {
childTransactionReceiptsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TransactionReceipt, com.hedera.hashgraph.sdk.proto.TransactionReceipt.Builder, com.hedera.hashgraph.sdk.proto.TransactionReceiptOrBuilder>(
childTransactionReceipts_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
childTransactionReceipts_ = null;
}
return childTransactionReceiptsBuilder_;
}
@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.TransactionGetReceiptResponse)
}
// @@protoc_insertion_point(class_scope:proto.TransactionGetReceiptResponse)
private static final com.hedera.hashgraph.sdk.proto.TransactionGetReceiptResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.TransactionGetReceiptResponse();
}
public static com.hedera.hashgraph.sdk.proto.TransactionGetReceiptResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransactionGetReceiptResponse 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.TransactionGetReceiptResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}