com.hedera.hashgraph.sdk.proto.TransactionGetRecordResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-full Show documentation
Show all versions of sdk-full Show documentation
Hedera™ Hashgraph SDK for Java
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: transaction_get_record.proto
// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* Response when the client sends the node TransactionGetRecordQuery
*
*
* Protobuf type {@code proto.TransactionGetRecordResponse}
*/
public final class TransactionGetRecordResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.TransactionGetRecordResponse)
TransactionGetRecordResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransactionGetRecordResponse.newBuilder() to construct.
private TransactionGetRecordResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransactionGetRecordResponse() {
duplicateTransactionRecords_ = java.util.Collections.emptyList();
childTransactionRecords_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TransactionGetRecordResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.TransactionGetRecord.internal_static_proto_TransactionGetRecordResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.TransactionGetRecord.internal_static_proto_TransactionGetRecordResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.TransactionGetRecordResponse.class, com.hedera.hashgraph.sdk.proto.TransactionGetRecordResponse.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 TRANSACTIONRECORD_FIELD_NUMBER = 3;
private com.hedera.hashgraph.sdk.proto.TransactionRecord transactionRecord_;
/**
*
**
* Either the record 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 record exists, the record of processing the first transaction to reach
* consensus with the given transaction id.
*
*
* .proto.TransactionRecord transactionRecord = 3;
* @return Whether the transactionRecord field is set.
*/
@java.lang.Override
public boolean hasTransactionRecord() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* Either the record 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 record exists, the record of processing the first transaction to reach
* consensus with the given transaction id.
*
*
* .proto.TransactionRecord transactionRecord = 3;
* @return The transactionRecord.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionRecord getTransactionRecord() {
return transactionRecord_ == null ? com.hedera.hashgraph.sdk.proto.TransactionRecord.getDefaultInstance() : transactionRecord_;
}
/**
*
**
* Either the record 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 record exists, the record of processing the first transaction to reach
* consensus with the given transaction id.
*
*
* .proto.TransactionRecord transactionRecord = 3;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionRecordOrBuilder getTransactionRecordOrBuilder() {
return transactionRecord_ == null ? com.hedera.hashgraph.sdk.proto.TransactionRecord.getDefaultInstance() : transactionRecord_;
}
public static final int DUPLICATETRANSACTIONRECORDS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List duplicateTransactionRecords_;
/**
*
**
* The records of processing all consensus transaction with the same id as the distinguished
* record above, in chronological order.
*
*
* repeated .proto.TransactionRecord duplicateTransactionRecords = 4;
*/
@java.lang.Override
public java.util.List getDuplicateTransactionRecordsList() {
return duplicateTransactionRecords_;
}
/**
*
**
* The records of processing all consensus transaction with the same id as the distinguished
* record above, in chronological order.
*
*
* repeated .proto.TransactionRecord duplicateTransactionRecords = 4;
*/
@java.lang.Override
public java.util.List extends com.hedera.hashgraph.sdk.proto.TransactionRecordOrBuilder>
getDuplicateTransactionRecordsOrBuilderList() {
return duplicateTransactionRecords_;
}
/**
*
**
* The records of processing all consensus transaction with the same id as the distinguished
* record above, in chronological order.
*
*
* repeated .proto.TransactionRecord duplicateTransactionRecords = 4;
*/
@java.lang.Override
public int getDuplicateTransactionRecordsCount() {
return duplicateTransactionRecords_.size();
}
/**
*
**
* The records of processing all consensus transaction with the same id as the distinguished
* record above, in chronological order.
*
*
* repeated .proto.TransactionRecord duplicateTransactionRecords = 4;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionRecord getDuplicateTransactionRecords(int index) {
return duplicateTransactionRecords_.get(index);
}
/**
*
**
* The records of processing all consensus transaction with the same id as the distinguished
* record above, in chronological order.
*
*
* repeated .proto.TransactionRecord duplicateTransactionRecords = 4;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionRecordOrBuilder getDuplicateTransactionRecordsOrBuilder(
int index) {
return duplicateTransactionRecords_.get(index);
}
public static final int CHILD_TRANSACTION_RECORDS_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private java.util.List childTransactionRecords_;
/**
*
**
* The records of processing all child transaction spawned by the transaction with the given
* top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionRecord child_transaction_records = 5;
*/
@java.lang.Override
public java.util.List getChildTransactionRecordsList() {
return childTransactionRecords_;
}
/**
*
**
* The records of processing all child transaction spawned by the transaction with the given
* top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionRecord child_transaction_records = 5;
*/
@java.lang.Override
public java.util.List extends com.hedera.hashgraph.sdk.proto.TransactionRecordOrBuilder>
getChildTransactionRecordsOrBuilderList() {
return childTransactionRecords_;
}
/**
*
**
* The records of processing all child transaction spawned by the transaction with the given
* top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionRecord child_transaction_records = 5;
*/
@java.lang.Override
public int getChildTransactionRecordsCount() {
return childTransactionRecords_.size();
}
/**
*
**
* The records of processing all child transaction spawned by the transaction with the given
* top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionRecord child_transaction_records = 5;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionRecord getChildTransactionRecords(int index) {
return childTransactionRecords_.get(index);
}
/**
*
**
* The records of processing all child transaction spawned by the transaction with the given
* top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionRecord child_transaction_records = 5;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionRecordOrBuilder getChildTransactionRecordsOrBuilder(
int index) {
return childTransactionRecords_.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(3, getTransactionRecord());
}
for (int i = 0; i < duplicateTransactionRecords_.size(); i++) {
output.writeMessage(4, duplicateTransactionRecords_.get(i));
}
for (int i = 0; i < childTransactionRecords_.size(); i++) {
output.writeMessage(5, childTransactionRecords_.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(3, getTransactionRecord());
}
for (int i = 0; i < duplicateTransactionRecords_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, duplicateTransactionRecords_.get(i));
}
for (int i = 0; i < childTransactionRecords_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, childTransactionRecords_.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.TransactionGetRecordResponse)) {
return super.equals(obj);
}
com.hedera.hashgraph.sdk.proto.TransactionGetRecordResponse other = (com.hedera.hashgraph.sdk.proto.TransactionGetRecordResponse) obj;
if (hasHeader() != other.hasHeader()) return false;
if (hasHeader()) {
if (!getHeader()
.equals(other.getHeader())) return false;
}
if (hasTransactionRecord() != other.hasTransactionRecord()) return false;
if (hasTransactionRecord()) {
if (!getTransactionRecord()
.equals(other.getTransactionRecord())) return false;
}
if (!getDuplicateTransactionRecordsList()
.equals(other.getDuplicateTransactionRecordsList())) return false;
if (!getChildTransactionRecordsList()
.equals(other.getChildTransactionRecordsList())) 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 (hasTransactionRecord()) {
hash = (37 * hash) + TRANSACTIONRECORD_FIELD_NUMBER;
hash = (53 * hash) + getTransactionRecord().hashCode();
}
if (getDuplicateTransactionRecordsCount() > 0) {
hash = (37 * hash) + DUPLICATETRANSACTIONRECORDS_FIELD_NUMBER;
hash = (53 * hash) + getDuplicateTransactionRecordsList().hashCode();
}
if (getChildTransactionRecordsCount() > 0) {
hash = (37 * hash) + CHILD_TRANSACTION_RECORDS_FIELD_NUMBER;
hash = (53 * hash) + getChildTransactionRecordsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hashgraph.sdk.proto.TransactionGetRecordResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.TransactionGetRecordResponse 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.TransactionGetRecordResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.TransactionGetRecordResponse 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.TransactionGetRecordResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.TransactionGetRecordResponse 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.TransactionGetRecordResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.TransactionGetRecordResponse 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.TransactionGetRecordResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.TransactionGetRecordResponse 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.TransactionGetRecordResponse 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.TransactionGetRecordResponse 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.TransactionGetRecordResponse 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 TransactionGetRecordQuery
*
*
* Protobuf type {@code proto.TransactionGetRecordResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.TransactionGetRecordResponse)
com.hedera.hashgraph.sdk.proto.TransactionGetRecordResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.TransactionGetRecord.internal_static_proto_TransactionGetRecordResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.TransactionGetRecord.internal_static_proto_TransactionGetRecordResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.TransactionGetRecordResponse.class, com.hedera.hashgraph.sdk.proto.TransactionGetRecordResponse.Builder.class);
}
// Construct using com.hedera.hashgraph.sdk.proto.TransactionGetRecordResponse.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();
getTransactionRecordFieldBuilder();
getDuplicateTransactionRecordsFieldBuilder();
getChildTransactionRecordsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
header_ = null;
if (headerBuilder_ != null) {
headerBuilder_.dispose();
headerBuilder_ = null;
}
transactionRecord_ = null;
if (transactionRecordBuilder_ != null) {
transactionRecordBuilder_.dispose();
transactionRecordBuilder_ = null;
}
if (duplicateTransactionRecordsBuilder_ == null) {
duplicateTransactionRecords_ = java.util.Collections.emptyList();
} else {
duplicateTransactionRecords_ = null;
duplicateTransactionRecordsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (childTransactionRecordsBuilder_ == null) {
childTransactionRecords_ = java.util.Collections.emptyList();
} else {
childTransactionRecords_ = null;
childTransactionRecordsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hashgraph.sdk.proto.TransactionGetRecord.internal_static_proto_TransactionGetRecordResponse_descriptor;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionGetRecordResponse getDefaultInstanceForType() {
return com.hedera.hashgraph.sdk.proto.TransactionGetRecordResponse.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionGetRecordResponse build() {
com.hedera.hashgraph.sdk.proto.TransactionGetRecordResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionGetRecordResponse buildPartial() {
com.hedera.hashgraph.sdk.proto.TransactionGetRecordResponse result = new com.hedera.hashgraph.sdk.proto.TransactionGetRecordResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.hedera.hashgraph.sdk.proto.TransactionGetRecordResponse result) {
if (duplicateTransactionRecordsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
duplicateTransactionRecords_ = java.util.Collections.unmodifiableList(duplicateTransactionRecords_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.duplicateTransactionRecords_ = duplicateTransactionRecords_;
} else {
result.duplicateTransactionRecords_ = duplicateTransactionRecordsBuilder_.build();
}
if (childTransactionRecordsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
childTransactionRecords_ = java.util.Collections.unmodifiableList(childTransactionRecords_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.childTransactionRecords_ = childTransactionRecords_;
} else {
result.childTransactionRecords_ = childTransactionRecordsBuilder_.build();
}
}
private void buildPartial0(com.hedera.hashgraph.sdk.proto.TransactionGetRecordResponse 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.transactionRecord_ = transactionRecordBuilder_ == null
? transactionRecord_
: transactionRecordBuilder_.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.TransactionGetRecordResponse) {
return mergeFrom((com.hedera.hashgraph.sdk.proto.TransactionGetRecordResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.TransactionGetRecordResponse other) {
if (other == com.hedera.hashgraph.sdk.proto.TransactionGetRecordResponse.getDefaultInstance()) return this;
if (other.hasHeader()) {
mergeHeader(other.getHeader());
}
if (other.hasTransactionRecord()) {
mergeTransactionRecord(other.getTransactionRecord());
}
if (duplicateTransactionRecordsBuilder_ == null) {
if (!other.duplicateTransactionRecords_.isEmpty()) {
if (duplicateTransactionRecords_.isEmpty()) {
duplicateTransactionRecords_ = other.duplicateTransactionRecords_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureDuplicateTransactionRecordsIsMutable();
duplicateTransactionRecords_.addAll(other.duplicateTransactionRecords_);
}
onChanged();
}
} else {
if (!other.duplicateTransactionRecords_.isEmpty()) {
if (duplicateTransactionRecordsBuilder_.isEmpty()) {
duplicateTransactionRecordsBuilder_.dispose();
duplicateTransactionRecordsBuilder_ = null;
duplicateTransactionRecords_ = other.duplicateTransactionRecords_;
bitField0_ = (bitField0_ & ~0x00000004);
duplicateTransactionRecordsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDuplicateTransactionRecordsFieldBuilder() : null;
} else {
duplicateTransactionRecordsBuilder_.addAllMessages(other.duplicateTransactionRecords_);
}
}
}
if (childTransactionRecordsBuilder_ == null) {
if (!other.childTransactionRecords_.isEmpty()) {
if (childTransactionRecords_.isEmpty()) {
childTransactionRecords_ = other.childTransactionRecords_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureChildTransactionRecordsIsMutable();
childTransactionRecords_.addAll(other.childTransactionRecords_);
}
onChanged();
}
} else {
if (!other.childTransactionRecords_.isEmpty()) {
if (childTransactionRecordsBuilder_.isEmpty()) {
childTransactionRecordsBuilder_.dispose();
childTransactionRecordsBuilder_ = null;
childTransactionRecords_ = other.childTransactionRecords_;
bitField0_ = (bitField0_ & ~0x00000008);
childTransactionRecordsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getChildTransactionRecordsFieldBuilder() : null;
} else {
childTransactionRecordsBuilder_.addAllMessages(other.childTransactionRecords_);
}
}
}
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 26: {
input.readMessage(
getTransactionRecordFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 26
case 34: {
com.hedera.hashgraph.sdk.proto.TransactionRecord m =
input.readMessage(
com.hedera.hashgraph.sdk.proto.TransactionRecord.parser(),
extensionRegistry);
if (duplicateTransactionRecordsBuilder_ == null) {
ensureDuplicateTransactionRecordsIsMutable();
duplicateTransactionRecords_.add(m);
} else {
duplicateTransactionRecordsBuilder_.addMessage(m);
}
break;
} // case 34
case 42: {
com.hedera.hashgraph.sdk.proto.TransactionRecord m =
input.readMessage(
com.hedera.hashgraph.sdk.proto.TransactionRecord.parser(),
extensionRegistry);
if (childTransactionRecordsBuilder_ == null) {
ensureChildTransactionRecordsIsMutable();
childTransactionRecords_.add(m);
} else {
childTransactionRecordsBuilder_.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.TransactionRecord transactionRecord_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TransactionRecord, com.hedera.hashgraph.sdk.proto.TransactionRecord.Builder, com.hedera.hashgraph.sdk.proto.TransactionRecordOrBuilder> transactionRecordBuilder_;
/**
*
**
* Either the record 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 record exists, the record of processing the first transaction to reach
* consensus with the given transaction id.
*
*
* .proto.TransactionRecord transactionRecord = 3;
* @return Whether the transactionRecord field is set.
*/
public boolean hasTransactionRecord() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* Either the record 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 record exists, the record of processing the first transaction to reach
* consensus with the given transaction id.
*
*
* .proto.TransactionRecord transactionRecord = 3;
* @return The transactionRecord.
*/
public com.hedera.hashgraph.sdk.proto.TransactionRecord getTransactionRecord() {
if (transactionRecordBuilder_ == null) {
return transactionRecord_ == null ? com.hedera.hashgraph.sdk.proto.TransactionRecord.getDefaultInstance() : transactionRecord_;
} else {
return transactionRecordBuilder_.getMessage();
}
}
/**
*
**
* Either the record 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 record exists, the record of processing the first transaction to reach
* consensus with the given transaction id.
*
*
* .proto.TransactionRecord transactionRecord = 3;
*/
public Builder setTransactionRecord(com.hedera.hashgraph.sdk.proto.TransactionRecord value) {
if (transactionRecordBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
transactionRecord_ = value;
} else {
transactionRecordBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* Either the record 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 record exists, the record of processing the first transaction to reach
* consensus with the given transaction id.
*
*
* .proto.TransactionRecord transactionRecord = 3;
*/
public Builder setTransactionRecord(
com.hedera.hashgraph.sdk.proto.TransactionRecord.Builder builderForValue) {
if (transactionRecordBuilder_ == null) {
transactionRecord_ = builderForValue.build();
} else {
transactionRecordBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* Either the record 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 record exists, the record of processing the first transaction to reach
* consensus with the given transaction id.
*
*
* .proto.TransactionRecord transactionRecord = 3;
*/
public Builder mergeTransactionRecord(com.hedera.hashgraph.sdk.proto.TransactionRecord value) {
if (transactionRecordBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
transactionRecord_ != null &&
transactionRecord_ != com.hedera.hashgraph.sdk.proto.TransactionRecord.getDefaultInstance()) {
getTransactionRecordBuilder().mergeFrom(value);
} else {
transactionRecord_ = value;
}
} else {
transactionRecordBuilder_.mergeFrom(value);
}
if (transactionRecord_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
**
* Either the record 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 record exists, the record of processing the first transaction to reach
* consensus with the given transaction id.
*
*
* .proto.TransactionRecord transactionRecord = 3;
*/
public Builder clearTransactionRecord() {
bitField0_ = (bitField0_ & ~0x00000002);
transactionRecord_ = null;
if (transactionRecordBuilder_ != null) {
transactionRecordBuilder_.dispose();
transactionRecordBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* Either the record 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 record exists, the record of processing the first transaction to reach
* consensus with the given transaction id.
*
*
* .proto.TransactionRecord transactionRecord = 3;
*/
public com.hedera.hashgraph.sdk.proto.TransactionRecord.Builder getTransactionRecordBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getTransactionRecordFieldBuilder().getBuilder();
}
/**
*
**
* Either the record 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 record exists, the record of processing the first transaction to reach
* consensus with the given transaction id.
*
*
* .proto.TransactionRecord transactionRecord = 3;
*/
public com.hedera.hashgraph.sdk.proto.TransactionRecordOrBuilder getTransactionRecordOrBuilder() {
if (transactionRecordBuilder_ != null) {
return transactionRecordBuilder_.getMessageOrBuilder();
} else {
return transactionRecord_ == null ?
com.hedera.hashgraph.sdk.proto.TransactionRecord.getDefaultInstance() : transactionRecord_;
}
}
/**
*
**
* Either the record 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 record exists, the record of processing the first transaction to reach
* consensus with the given transaction id.
*
*
* .proto.TransactionRecord transactionRecord = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TransactionRecord, com.hedera.hashgraph.sdk.proto.TransactionRecord.Builder, com.hedera.hashgraph.sdk.proto.TransactionRecordOrBuilder>
getTransactionRecordFieldBuilder() {
if (transactionRecordBuilder_ == null) {
transactionRecordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TransactionRecord, com.hedera.hashgraph.sdk.proto.TransactionRecord.Builder, com.hedera.hashgraph.sdk.proto.TransactionRecordOrBuilder>(
getTransactionRecord(),
getParentForChildren(),
isClean());
transactionRecord_ = null;
}
return transactionRecordBuilder_;
}
private java.util.List duplicateTransactionRecords_ =
java.util.Collections.emptyList();
private void ensureDuplicateTransactionRecordsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
duplicateTransactionRecords_ = new java.util.ArrayList(duplicateTransactionRecords_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TransactionRecord, com.hedera.hashgraph.sdk.proto.TransactionRecord.Builder, com.hedera.hashgraph.sdk.proto.TransactionRecordOrBuilder> duplicateTransactionRecordsBuilder_;
/**
*
**
* The records of processing all consensus transaction with the same id as the distinguished
* record above, in chronological order.
*
*
* repeated .proto.TransactionRecord duplicateTransactionRecords = 4;
*/
public java.util.List getDuplicateTransactionRecordsList() {
if (duplicateTransactionRecordsBuilder_ == null) {
return java.util.Collections.unmodifiableList(duplicateTransactionRecords_);
} else {
return duplicateTransactionRecordsBuilder_.getMessageList();
}
}
/**
*
**
* The records of processing all consensus transaction with the same id as the distinguished
* record above, in chronological order.
*
*
* repeated .proto.TransactionRecord duplicateTransactionRecords = 4;
*/
public int getDuplicateTransactionRecordsCount() {
if (duplicateTransactionRecordsBuilder_ == null) {
return duplicateTransactionRecords_.size();
} else {
return duplicateTransactionRecordsBuilder_.getCount();
}
}
/**
*
**
* The records of processing all consensus transaction with the same id as the distinguished
* record above, in chronological order.
*
*
* repeated .proto.TransactionRecord duplicateTransactionRecords = 4;
*/
public com.hedera.hashgraph.sdk.proto.TransactionRecord getDuplicateTransactionRecords(int index) {
if (duplicateTransactionRecordsBuilder_ == null) {
return duplicateTransactionRecords_.get(index);
} else {
return duplicateTransactionRecordsBuilder_.getMessage(index);
}
}
/**
*
**
* The records of processing all consensus transaction with the same id as the distinguished
* record above, in chronological order.
*
*
* repeated .proto.TransactionRecord duplicateTransactionRecords = 4;
*/
public Builder setDuplicateTransactionRecords(
int index, com.hedera.hashgraph.sdk.proto.TransactionRecord value) {
if (duplicateTransactionRecordsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDuplicateTransactionRecordsIsMutable();
duplicateTransactionRecords_.set(index, value);
onChanged();
} else {
duplicateTransactionRecordsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* The records of processing all consensus transaction with the same id as the distinguished
* record above, in chronological order.
*
*
* repeated .proto.TransactionRecord duplicateTransactionRecords = 4;
*/
public Builder setDuplicateTransactionRecords(
int index, com.hedera.hashgraph.sdk.proto.TransactionRecord.Builder builderForValue) {
if (duplicateTransactionRecordsBuilder_ == null) {
ensureDuplicateTransactionRecordsIsMutable();
duplicateTransactionRecords_.set(index, builderForValue.build());
onChanged();
} else {
duplicateTransactionRecordsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* The records of processing all consensus transaction with the same id as the distinguished
* record above, in chronological order.
*
*
* repeated .proto.TransactionRecord duplicateTransactionRecords = 4;
*/
public Builder addDuplicateTransactionRecords(com.hedera.hashgraph.sdk.proto.TransactionRecord value) {
if (duplicateTransactionRecordsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDuplicateTransactionRecordsIsMutable();
duplicateTransactionRecords_.add(value);
onChanged();
} else {
duplicateTransactionRecordsBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* The records of processing all consensus transaction with the same id as the distinguished
* record above, in chronological order.
*
*
* repeated .proto.TransactionRecord duplicateTransactionRecords = 4;
*/
public Builder addDuplicateTransactionRecords(
int index, com.hedera.hashgraph.sdk.proto.TransactionRecord value) {
if (duplicateTransactionRecordsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDuplicateTransactionRecordsIsMutable();
duplicateTransactionRecords_.add(index, value);
onChanged();
} else {
duplicateTransactionRecordsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* The records of processing all consensus transaction with the same id as the distinguished
* record above, in chronological order.
*
*
* repeated .proto.TransactionRecord duplicateTransactionRecords = 4;
*/
public Builder addDuplicateTransactionRecords(
com.hedera.hashgraph.sdk.proto.TransactionRecord.Builder builderForValue) {
if (duplicateTransactionRecordsBuilder_ == null) {
ensureDuplicateTransactionRecordsIsMutable();
duplicateTransactionRecords_.add(builderForValue.build());
onChanged();
} else {
duplicateTransactionRecordsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The records of processing all consensus transaction with the same id as the distinguished
* record above, in chronological order.
*
*
* repeated .proto.TransactionRecord duplicateTransactionRecords = 4;
*/
public Builder addDuplicateTransactionRecords(
int index, com.hedera.hashgraph.sdk.proto.TransactionRecord.Builder builderForValue) {
if (duplicateTransactionRecordsBuilder_ == null) {
ensureDuplicateTransactionRecordsIsMutable();
duplicateTransactionRecords_.add(index, builderForValue.build());
onChanged();
} else {
duplicateTransactionRecordsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* The records of processing all consensus transaction with the same id as the distinguished
* record above, in chronological order.
*
*
* repeated .proto.TransactionRecord duplicateTransactionRecords = 4;
*/
public Builder addAllDuplicateTransactionRecords(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.TransactionRecord> values) {
if (duplicateTransactionRecordsBuilder_ == null) {
ensureDuplicateTransactionRecordsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, duplicateTransactionRecords_);
onChanged();
} else {
duplicateTransactionRecordsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* The records of processing all consensus transaction with the same id as the distinguished
* record above, in chronological order.
*
*
* repeated .proto.TransactionRecord duplicateTransactionRecords = 4;
*/
public Builder clearDuplicateTransactionRecords() {
if (duplicateTransactionRecordsBuilder_ == null) {
duplicateTransactionRecords_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
duplicateTransactionRecordsBuilder_.clear();
}
return this;
}
/**
*
**
* The records of processing all consensus transaction with the same id as the distinguished
* record above, in chronological order.
*
*
* repeated .proto.TransactionRecord duplicateTransactionRecords = 4;
*/
public Builder removeDuplicateTransactionRecords(int index) {
if (duplicateTransactionRecordsBuilder_ == null) {
ensureDuplicateTransactionRecordsIsMutable();
duplicateTransactionRecords_.remove(index);
onChanged();
} else {
duplicateTransactionRecordsBuilder_.remove(index);
}
return this;
}
/**
*
**
* The records of processing all consensus transaction with the same id as the distinguished
* record above, in chronological order.
*
*
* repeated .proto.TransactionRecord duplicateTransactionRecords = 4;
*/
public com.hedera.hashgraph.sdk.proto.TransactionRecord.Builder getDuplicateTransactionRecordsBuilder(
int index) {
return getDuplicateTransactionRecordsFieldBuilder().getBuilder(index);
}
/**
*
**
* The records of processing all consensus transaction with the same id as the distinguished
* record above, in chronological order.
*
*
* repeated .proto.TransactionRecord duplicateTransactionRecords = 4;
*/
public com.hedera.hashgraph.sdk.proto.TransactionRecordOrBuilder getDuplicateTransactionRecordsOrBuilder(
int index) {
if (duplicateTransactionRecordsBuilder_ == null) {
return duplicateTransactionRecords_.get(index); } else {
return duplicateTransactionRecordsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* The records of processing all consensus transaction with the same id as the distinguished
* record above, in chronological order.
*
*
* repeated .proto.TransactionRecord duplicateTransactionRecords = 4;
*/
public java.util.List extends com.hedera.hashgraph.sdk.proto.TransactionRecordOrBuilder>
getDuplicateTransactionRecordsOrBuilderList() {
if (duplicateTransactionRecordsBuilder_ != null) {
return duplicateTransactionRecordsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(duplicateTransactionRecords_);
}
}
/**
*
**
* The records of processing all consensus transaction with the same id as the distinguished
* record above, in chronological order.
*
*
* repeated .proto.TransactionRecord duplicateTransactionRecords = 4;
*/
public com.hedera.hashgraph.sdk.proto.TransactionRecord.Builder addDuplicateTransactionRecordsBuilder() {
return getDuplicateTransactionRecordsFieldBuilder().addBuilder(
com.hedera.hashgraph.sdk.proto.TransactionRecord.getDefaultInstance());
}
/**
*
**
* The records of processing all consensus transaction with the same id as the distinguished
* record above, in chronological order.
*
*
* repeated .proto.TransactionRecord duplicateTransactionRecords = 4;
*/
public com.hedera.hashgraph.sdk.proto.TransactionRecord.Builder addDuplicateTransactionRecordsBuilder(
int index) {
return getDuplicateTransactionRecordsFieldBuilder().addBuilder(
index, com.hedera.hashgraph.sdk.proto.TransactionRecord.getDefaultInstance());
}
/**
*
**
* The records of processing all consensus transaction with the same id as the distinguished
* record above, in chronological order.
*
*
* repeated .proto.TransactionRecord duplicateTransactionRecords = 4;
*/
public java.util.List
getDuplicateTransactionRecordsBuilderList() {
return getDuplicateTransactionRecordsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TransactionRecord, com.hedera.hashgraph.sdk.proto.TransactionRecord.Builder, com.hedera.hashgraph.sdk.proto.TransactionRecordOrBuilder>
getDuplicateTransactionRecordsFieldBuilder() {
if (duplicateTransactionRecordsBuilder_ == null) {
duplicateTransactionRecordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TransactionRecord, com.hedera.hashgraph.sdk.proto.TransactionRecord.Builder, com.hedera.hashgraph.sdk.proto.TransactionRecordOrBuilder>(
duplicateTransactionRecords_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
duplicateTransactionRecords_ = null;
}
return duplicateTransactionRecordsBuilder_;
}
private java.util.List childTransactionRecords_ =
java.util.Collections.emptyList();
private void ensureChildTransactionRecordsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
childTransactionRecords_ = new java.util.ArrayList(childTransactionRecords_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TransactionRecord, com.hedera.hashgraph.sdk.proto.TransactionRecord.Builder, com.hedera.hashgraph.sdk.proto.TransactionRecordOrBuilder> childTransactionRecordsBuilder_;
/**
*
**
* The records of processing all child transaction spawned by the transaction with the given
* top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionRecord child_transaction_records = 5;
*/
public java.util.List getChildTransactionRecordsList() {
if (childTransactionRecordsBuilder_ == null) {
return java.util.Collections.unmodifiableList(childTransactionRecords_);
} else {
return childTransactionRecordsBuilder_.getMessageList();
}
}
/**
*
**
* The records of processing all child transaction spawned by the transaction with the given
* top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionRecord child_transaction_records = 5;
*/
public int getChildTransactionRecordsCount() {
if (childTransactionRecordsBuilder_ == null) {
return childTransactionRecords_.size();
} else {
return childTransactionRecordsBuilder_.getCount();
}
}
/**
*
**
* The records of processing all child transaction spawned by the transaction with the given
* top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionRecord child_transaction_records = 5;
*/
public com.hedera.hashgraph.sdk.proto.TransactionRecord getChildTransactionRecords(int index) {
if (childTransactionRecordsBuilder_ == null) {
return childTransactionRecords_.get(index);
} else {
return childTransactionRecordsBuilder_.getMessage(index);
}
}
/**
*
**
* The records of processing all child transaction spawned by the transaction with the given
* top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionRecord child_transaction_records = 5;
*/
public Builder setChildTransactionRecords(
int index, com.hedera.hashgraph.sdk.proto.TransactionRecord value) {
if (childTransactionRecordsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChildTransactionRecordsIsMutable();
childTransactionRecords_.set(index, value);
onChanged();
} else {
childTransactionRecordsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* The records of processing all child transaction spawned by the transaction with the given
* top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionRecord child_transaction_records = 5;
*/
public Builder setChildTransactionRecords(
int index, com.hedera.hashgraph.sdk.proto.TransactionRecord.Builder builderForValue) {
if (childTransactionRecordsBuilder_ == null) {
ensureChildTransactionRecordsIsMutable();
childTransactionRecords_.set(index, builderForValue.build());
onChanged();
} else {
childTransactionRecordsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* The records of processing all child transaction spawned by the transaction with the given
* top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionRecord child_transaction_records = 5;
*/
public Builder addChildTransactionRecords(com.hedera.hashgraph.sdk.proto.TransactionRecord value) {
if (childTransactionRecordsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChildTransactionRecordsIsMutable();
childTransactionRecords_.add(value);
onChanged();
} else {
childTransactionRecordsBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* The records of processing all child transaction spawned by the transaction with the given
* top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionRecord child_transaction_records = 5;
*/
public Builder addChildTransactionRecords(
int index, com.hedera.hashgraph.sdk.proto.TransactionRecord value) {
if (childTransactionRecordsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChildTransactionRecordsIsMutable();
childTransactionRecords_.add(index, value);
onChanged();
} else {
childTransactionRecordsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* The records of processing all child transaction spawned by the transaction with the given
* top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionRecord child_transaction_records = 5;
*/
public Builder addChildTransactionRecords(
com.hedera.hashgraph.sdk.proto.TransactionRecord.Builder builderForValue) {
if (childTransactionRecordsBuilder_ == null) {
ensureChildTransactionRecordsIsMutable();
childTransactionRecords_.add(builderForValue.build());
onChanged();
} else {
childTransactionRecordsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The records of processing all child transaction spawned by the transaction with the given
* top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionRecord child_transaction_records = 5;
*/
public Builder addChildTransactionRecords(
int index, com.hedera.hashgraph.sdk.proto.TransactionRecord.Builder builderForValue) {
if (childTransactionRecordsBuilder_ == null) {
ensureChildTransactionRecordsIsMutable();
childTransactionRecords_.add(index, builderForValue.build());
onChanged();
} else {
childTransactionRecordsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* The records of processing all child transaction spawned by the transaction with the given
* top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionRecord child_transaction_records = 5;
*/
public Builder addAllChildTransactionRecords(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.TransactionRecord> values) {
if (childTransactionRecordsBuilder_ == null) {
ensureChildTransactionRecordsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, childTransactionRecords_);
onChanged();
} else {
childTransactionRecordsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* The records of processing all child transaction spawned by the transaction with the given
* top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionRecord child_transaction_records = 5;
*/
public Builder clearChildTransactionRecords() {
if (childTransactionRecordsBuilder_ == null) {
childTransactionRecords_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
childTransactionRecordsBuilder_.clear();
}
return this;
}
/**
*
**
* The records of processing all child transaction spawned by the transaction with the given
* top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionRecord child_transaction_records = 5;
*/
public Builder removeChildTransactionRecords(int index) {
if (childTransactionRecordsBuilder_ == null) {
ensureChildTransactionRecordsIsMutable();
childTransactionRecords_.remove(index);
onChanged();
} else {
childTransactionRecordsBuilder_.remove(index);
}
return this;
}
/**
*
**
* The records of processing all child transaction spawned by the transaction with the given
* top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionRecord child_transaction_records = 5;
*/
public com.hedera.hashgraph.sdk.proto.TransactionRecord.Builder getChildTransactionRecordsBuilder(
int index) {
return getChildTransactionRecordsFieldBuilder().getBuilder(index);
}
/**
*
**
* The records of processing all child transaction spawned by the transaction with the given
* top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionRecord child_transaction_records = 5;
*/
public com.hedera.hashgraph.sdk.proto.TransactionRecordOrBuilder getChildTransactionRecordsOrBuilder(
int index) {
if (childTransactionRecordsBuilder_ == null) {
return childTransactionRecords_.get(index); } else {
return childTransactionRecordsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* The records of processing all child transaction spawned by the transaction with the given
* top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionRecord child_transaction_records = 5;
*/
public java.util.List extends com.hedera.hashgraph.sdk.proto.TransactionRecordOrBuilder>
getChildTransactionRecordsOrBuilderList() {
if (childTransactionRecordsBuilder_ != null) {
return childTransactionRecordsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(childTransactionRecords_);
}
}
/**
*
**
* The records of processing all child transaction spawned by the transaction with the given
* top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionRecord child_transaction_records = 5;
*/
public com.hedera.hashgraph.sdk.proto.TransactionRecord.Builder addChildTransactionRecordsBuilder() {
return getChildTransactionRecordsFieldBuilder().addBuilder(
com.hedera.hashgraph.sdk.proto.TransactionRecord.getDefaultInstance());
}
/**
*
**
* The records of processing all child transaction spawned by the transaction with the given
* top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionRecord child_transaction_records = 5;
*/
public com.hedera.hashgraph.sdk.proto.TransactionRecord.Builder addChildTransactionRecordsBuilder(
int index) {
return getChildTransactionRecordsFieldBuilder().addBuilder(
index, com.hedera.hashgraph.sdk.proto.TransactionRecord.getDefaultInstance());
}
/**
*
**
* The records of processing all child transaction spawned by the transaction with the given
* top-level id, in consensus order. Always empty if the top-level status is UNKNOWN.
*
*
* repeated .proto.TransactionRecord child_transaction_records = 5;
*/
public java.util.List
getChildTransactionRecordsBuilderList() {
return getChildTransactionRecordsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TransactionRecord, com.hedera.hashgraph.sdk.proto.TransactionRecord.Builder, com.hedera.hashgraph.sdk.proto.TransactionRecordOrBuilder>
getChildTransactionRecordsFieldBuilder() {
if (childTransactionRecordsBuilder_ == null) {
childTransactionRecordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TransactionRecord, com.hedera.hashgraph.sdk.proto.TransactionRecord.Builder, com.hedera.hashgraph.sdk.proto.TransactionRecordOrBuilder>(
childTransactionRecords_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
childTransactionRecords_ = null;
}
return childTransactionRecordsBuilder_;
}
@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.TransactionGetRecordResponse)
}
// @@protoc_insertion_point(class_scope:proto.TransactionGetRecordResponse)
private static final com.hedera.hashgraph.sdk.proto.TransactionGetRecordResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.TransactionGetRecordResponse();
}
public static com.hedera.hashgraph.sdk.proto.TransactionGetRecordResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransactionGetRecordResponse 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.TransactionGetRecordResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}