com.hederahashgraph.api.proto.java.TransactionGetReceiptResponse Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: transaction_get_receipt.proto
package com.hederahashgraph.api.proto.java;
/**
*
**
* 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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TransactionGetReceiptResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.hederahashgraph.api.proto.java.ResponseHeader.Builder subBuilder = null;
if (header_ != null) {
subBuilder = header_.toBuilder();
}
header_ = input.readMessage(com.hederahashgraph.api.proto.java.ResponseHeader.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(header_);
header_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.hederahashgraph.api.proto.java.TransactionReceipt.Builder subBuilder = null;
if (receipt_ != null) {
subBuilder = receipt_.toBuilder();
}
receipt_ = input.readMessage(com.hederahashgraph.api.proto.java.TransactionReceipt.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(receipt_);
receipt_ = subBuilder.buildPartial();
}
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
duplicateTransactionReceipts_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
duplicateTransactionReceipts_.add(
input.readMessage(com.hederahashgraph.api.proto.java.TransactionReceipt.parser(), extensionRegistry));
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
childTransactionReceipts_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
childTransactionReceipts_.add(
input.readMessage(com.hederahashgraph.api.proto.java.TransactionReceipt.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
duplicateTransactionReceipts_ = java.util.Collections.unmodifiableList(duplicateTransactionReceipts_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
childTransactionReceipts_ = java.util.Collections.unmodifiableList(childTransactionReceipts_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.TransactionGetReceipt.internal_static_proto_TransactionGetReceiptResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.TransactionGetReceipt.internal_static_proto_TransactionGetReceiptResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.TransactionGetReceiptResponse.class, com.hederahashgraph.api.proto.java.TransactionGetReceiptResponse.Builder.class);
}
public static final int HEADER_FIELD_NUMBER = 1;
private com.hederahashgraph.api.proto.java.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 header_ != null;
}
/**
*
**
* 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.hederahashgraph.api.proto.java.ResponseHeader getHeader() {
return header_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ResponseHeaderOrBuilder getHeaderOrBuilder() {
return getHeader();
}
public static final int RECEIPT_FIELD_NUMBER = 2;
private com.hederahashgraph.api.proto.java.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 receipt_ != null;
}
/**
*
**
* 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.hederahashgraph.api.proto.java.TransactionReceipt getReceipt() {
return receipt_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionReceiptOrBuilder getReceiptOrBuilder() {
return getReceipt();
}
public static final int DUPLICATETRANSACTIONRECEIPTS_FIELD_NUMBER = 4;
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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionReceiptOrBuilder getDuplicateTransactionReceiptsOrBuilder(
int index) {
return duplicateTransactionReceipts_.get(index);
}
public static final int CHILD_TRANSACTION_RECEIPTS_FIELD_NUMBER = 5;
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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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 (header_ != null) {
output.writeMessage(1, getHeader());
}
if (receipt_ != null) {
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));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (header_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getHeader());
}
if (receipt_ != null) {
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 += unknownFields.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.hederahashgraph.api.proto.java.TransactionGetReceiptResponse)) {
return super.equals(obj);
}
com.hederahashgraph.api.proto.java.TransactionGetReceiptResponse other = (com.hederahashgraph.api.proto.java.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hederahashgraph.api.proto.java.TransactionGetReceiptResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.TransactionGetReceiptResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.TransactionGetReceiptResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionGetReceiptResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.TransactionGetReceiptResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.TransactionGetReceiptResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionGetReceiptResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionGetReceiptResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionGetReceiptResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.TransactionGetReceipt.internal_static_proto_TransactionGetReceiptResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.TransactionGetReceipt.internal_static_proto_TransactionGetReceiptResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.TransactionGetReceiptResponse.class, com.hederahashgraph.api.proto.java.TransactionGetReceiptResponse.Builder.class);
}
// Construct using com.hederahashgraph.api.proto.java.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) {
getDuplicateTransactionReceiptsFieldBuilder();
getChildTransactionReceiptsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (headerBuilder_ == null) {
header_ = null;
} else {
header_ = null;
headerBuilder_ = null;
}
if (receiptBuilder_ == null) {
receipt_ = null;
} else {
receipt_ = null;
receiptBuilder_ = null;
}
if (duplicateTransactionReceiptsBuilder_ == null) {
duplicateTransactionReceipts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
duplicateTransactionReceiptsBuilder_.clear();
}
if (childTransactionReceiptsBuilder_ == null) {
childTransactionReceipts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
childTransactionReceiptsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hederahashgraph.api.proto.java.TransactionGetReceipt.internal_static_proto_TransactionGetReceiptResponse_descriptor;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.TransactionGetReceiptResponse getDefaultInstanceForType() {
return com.hederahashgraph.api.proto.java.TransactionGetReceiptResponse.getDefaultInstance();
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.TransactionGetReceiptResponse build() {
com.hederahashgraph.api.proto.java.TransactionGetReceiptResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.TransactionGetReceiptResponse buildPartial() {
com.hederahashgraph.api.proto.java.TransactionGetReceiptResponse result = new com.hederahashgraph.api.proto.java.TransactionGetReceiptResponse(this);
int from_bitField0_ = bitField0_;
if (headerBuilder_ == null) {
result.header_ = header_;
} else {
result.header_ = headerBuilder_.build();
}
if (receiptBuilder_ == null) {
result.receipt_ = receipt_;
} else {
result.receipt_ = receiptBuilder_.build();
}
if (duplicateTransactionReceiptsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
duplicateTransactionReceipts_ = java.util.Collections.unmodifiableList(duplicateTransactionReceipts_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.duplicateTransactionReceipts_ = duplicateTransactionReceipts_;
} else {
result.duplicateTransactionReceipts_ = duplicateTransactionReceiptsBuilder_.build();
}
if (childTransactionReceiptsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
childTransactionReceipts_ = java.util.Collections.unmodifiableList(childTransactionReceipts_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.childTransactionReceipts_ = childTransactionReceipts_;
} else {
result.childTransactionReceipts_ = childTransactionReceiptsBuilder_.build();
}
onBuilt();
return result;
}
@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.hederahashgraph.api.proto.java.TransactionGetReceiptResponse) {
return mergeFrom((com.hederahashgraph.api.proto.java.TransactionGetReceiptResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hederahashgraph.api.proto.java.TransactionGetReceiptResponse other) {
if (other == com.hederahashgraph.api.proto.java.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_ & ~0x00000001);
} else {
ensureDuplicateTransactionReceiptsIsMutable();
duplicateTransactionReceipts_.addAll(other.duplicateTransactionReceipts_);
}
onChanged();
}
} else {
if (!other.duplicateTransactionReceipts_.isEmpty()) {
if (duplicateTransactionReceiptsBuilder_.isEmpty()) {
duplicateTransactionReceiptsBuilder_.dispose();
duplicateTransactionReceiptsBuilder_ = null;
duplicateTransactionReceipts_ = other.duplicateTransactionReceipts_;
bitField0_ = (bitField0_ & ~0x00000001);
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_ & ~0x00000002);
} else {
ensureChildTransactionReceiptsIsMutable();
childTransactionReceipts_.addAll(other.childTransactionReceipts_);
}
onChanged();
}
} else {
if (!other.childTransactionReceipts_.isEmpty()) {
if (childTransactionReceiptsBuilder_.isEmpty()) {
childTransactionReceiptsBuilder_.dispose();
childTransactionReceiptsBuilder_ = null;
childTransactionReceipts_ = other.childTransactionReceipts_;
bitField0_ = (bitField0_ & ~0x00000002);
childTransactionReceiptsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getChildTransactionReceiptsFieldBuilder() : null;
} else {
childTransactionReceiptsBuilder_.addAllMessages(other.childTransactionReceipts_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
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 {
com.hederahashgraph.api.proto.java.TransactionGetReceiptResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hederahashgraph.api.proto.java.TransactionGetReceiptResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.hederahashgraph.api.proto.java.ResponseHeader header_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ResponseHeader, com.hederahashgraph.api.proto.java.ResponseHeader.Builder, com.hederahashgraph.api.proto.java.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 headerBuilder_ != null || header_ != null;
}
/**
*
**
* 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.hederahashgraph.api.proto.java.ResponseHeader getHeader() {
if (headerBuilder_ == null) {
return header_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ResponseHeader value) {
if (headerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
header_ = value;
onChanged();
} else {
headerBuilder_.setMessage(value);
}
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.hederahashgraph.api.proto.java.ResponseHeader.Builder builderForValue) {
if (headerBuilder_ == null) {
header_ = builderForValue.build();
onChanged();
} else {
headerBuilder_.setMessage(builderForValue.build());
}
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.hederahashgraph.api.proto.java.ResponseHeader value) {
if (headerBuilder_ == null) {
if (header_ != null) {
header_ =
com.hederahashgraph.api.proto.java.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial();
} else {
header_ = value;
}
onChanged();
} else {
headerBuilder_.mergeFrom(value);
}
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() {
if (headerBuilder_ == null) {
header_ = null;
onChanged();
} else {
header_ = null;
headerBuilder_ = null;
}
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.hederahashgraph.api.proto.java.ResponseHeader.Builder getHeaderBuilder() {
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.hederahashgraph.api.proto.java.ResponseHeaderOrBuilder getHeaderOrBuilder() {
if (headerBuilder_ != null) {
return headerBuilder_.getMessageOrBuilder();
} else {
return header_ == null ?
com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ResponseHeader, com.hederahashgraph.api.proto.java.ResponseHeader.Builder, com.hederahashgraph.api.proto.java.ResponseHeaderOrBuilder>
getHeaderFieldBuilder() {
if (headerBuilder_ == null) {
headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ResponseHeader, com.hederahashgraph.api.proto.java.ResponseHeader.Builder, com.hederahashgraph.api.proto.java.ResponseHeaderOrBuilder>(
getHeader(),
getParentForChildren(),
isClean());
header_ = null;
}
return headerBuilder_;
}
private com.hederahashgraph.api.proto.java.TransactionReceipt receipt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TransactionReceipt, com.hederahashgraph.api.proto.java.TransactionReceipt.Builder, com.hederahashgraph.api.proto.java.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 receiptBuilder_ != null || receipt_ != null;
}
/**
*
**
* 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.hederahashgraph.api.proto.java.TransactionReceipt getReceipt() {
if (receiptBuilder_ == null) {
return receipt_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionReceipt value) {
if (receiptBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
receipt_ = value;
onChanged();
} else {
receiptBuilder_.setMessage(value);
}
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.hederahashgraph.api.proto.java.TransactionReceipt.Builder builderForValue) {
if (receiptBuilder_ == null) {
receipt_ = builderForValue.build();
onChanged();
} else {
receiptBuilder_.setMessage(builderForValue.build());
}
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.hederahashgraph.api.proto.java.TransactionReceipt value) {
if (receiptBuilder_ == null) {
if (receipt_ != null) {
receipt_ =
com.hederahashgraph.api.proto.java.TransactionReceipt.newBuilder(receipt_).mergeFrom(value).buildPartial();
} else {
receipt_ = value;
}
onChanged();
} else {
receiptBuilder_.mergeFrom(value);
}
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() {
if (receiptBuilder_ == null) {
receipt_ = null;
onChanged();
} else {
receipt_ = null;
receiptBuilder_ = null;
}
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.hederahashgraph.api.proto.java.TransactionReceipt.Builder getReceiptBuilder() {
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.hederahashgraph.api.proto.java.TransactionReceiptOrBuilder getReceiptOrBuilder() {
if (receiptBuilder_ != null) {
return receiptBuilder_.getMessageOrBuilder();
} else {
return receipt_ == null ?
com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionReceipt, com.hederahashgraph.api.proto.java.TransactionReceipt.Builder, com.hederahashgraph.api.proto.java.TransactionReceiptOrBuilder>
getReceiptFieldBuilder() {
if (receiptBuilder_ == null) {
receiptBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TransactionReceipt, com.hederahashgraph.api.proto.java.TransactionReceipt.Builder, com.hederahashgraph.api.proto.java.TransactionReceiptOrBuilder>(
getReceipt(),
getParentForChildren(),
isClean());
receipt_ = null;
}
return receiptBuilder_;
}
private java.util.List duplicateTransactionReceipts_ =
java.util.Collections.emptyList();
private void ensureDuplicateTransactionReceiptsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
duplicateTransactionReceipts_ = new java.util.ArrayList(duplicateTransactionReceipts_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.TransactionReceipt, com.hederahashgraph.api.proto.java.TransactionReceipt.Builder, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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_ & ~0x00000001);
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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionReceipt.Builder addDuplicateTransactionReceiptsBuilder() {
return getDuplicateTransactionReceiptsFieldBuilder().addBuilder(
com.hederahashgraph.api.proto.java.TransactionReceipt.getDefaultInstance());
}
/**
*
**
* The receipts of processing all transactions with the given id, in consensus time order.
*
*
* repeated .proto.TransactionReceipt duplicateTransactionReceipts = 4;
*/
public com.hederahashgraph.api.proto.java.TransactionReceipt.Builder addDuplicateTransactionReceiptsBuilder(
int index) {
return getDuplicateTransactionReceiptsFieldBuilder().addBuilder(
index, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionReceipt, com.hederahashgraph.api.proto.java.TransactionReceipt.Builder, com.hederahashgraph.api.proto.java.TransactionReceiptOrBuilder>
getDuplicateTransactionReceiptsFieldBuilder() {
if (duplicateTransactionReceiptsBuilder_ == null) {
duplicateTransactionReceiptsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.TransactionReceipt, com.hederahashgraph.api.proto.java.TransactionReceipt.Builder, com.hederahashgraph.api.proto.java.TransactionReceiptOrBuilder>(
duplicateTransactionReceipts_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
duplicateTransactionReceipts_ = null;
}
return duplicateTransactionReceiptsBuilder_;
}
private java.util.List childTransactionReceipts_ =
java.util.Collections.emptyList();
private void ensureChildTransactionReceiptsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
childTransactionReceipts_ = new java.util.ArrayList(childTransactionReceipts_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.TransactionReceipt, com.hederahashgraph.api.proto.java.TransactionReceipt.Builder, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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_ & ~0x00000002);
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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionReceipt.Builder addChildTransactionReceiptsBuilder() {
return getChildTransactionReceiptsFieldBuilder().addBuilder(
com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionReceipt.Builder addChildTransactionReceiptsBuilder(
int index) {
return getChildTransactionReceiptsFieldBuilder().addBuilder(
index, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionReceipt, com.hederahashgraph.api.proto.java.TransactionReceipt.Builder, com.hederahashgraph.api.proto.java.TransactionReceiptOrBuilder>
getChildTransactionReceiptsFieldBuilder() {
if (childTransactionReceiptsBuilder_ == null) {
childTransactionReceiptsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.TransactionReceipt, com.hederahashgraph.api.proto.java.TransactionReceipt.Builder, com.hederahashgraph.api.proto.java.TransactionReceiptOrBuilder>(
childTransactionReceipts_,
((bitField0_ & 0x00000002) != 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.hederahashgraph.api.proto.java.TransactionGetReceiptResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.TransactionGetReceiptResponse();
}
public static com.hederahashgraph.api.proto.java.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 {
return new TransactionGetReceiptResponse(input, extensionRegistry);
}
};
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.hederahashgraph.api.proto.java.TransactionGetReceiptResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy