com.hederahashgraph.api.proto.java.TransactionGetRecordResponse Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: transaction_get_record.proto
package com.hederahashgraph.api.proto.java;
/**
*
**
* 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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TransactionGetRecordResponse(
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 26: {
com.hederahashgraph.api.proto.java.TransactionRecord.Builder subBuilder = null;
if (transactionRecord_ != null) {
subBuilder = transactionRecord_.toBuilder();
}
transactionRecord_ = input.readMessage(com.hederahashgraph.api.proto.java.TransactionRecord.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(transactionRecord_);
transactionRecord_ = subBuilder.buildPartial();
}
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
duplicateTransactionRecords_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
duplicateTransactionRecords_.add(
input.readMessage(com.hederahashgraph.api.proto.java.TransactionRecord.parser(), extensionRegistry));
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
childTransactionRecords_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
childTransactionRecords_.add(
input.readMessage(com.hederahashgraph.api.proto.java.TransactionRecord.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)) {
duplicateTransactionRecords_ = java.util.Collections.unmodifiableList(duplicateTransactionRecords_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
childTransactionRecords_ = java.util.Collections.unmodifiableList(childTransactionRecords_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.TransactionGetRecord.internal_static_proto_TransactionGetRecordResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.TransactionGetRecord.internal_static_proto_TransactionGetRecordResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.TransactionGetRecordResponse.class, com.hederahashgraph.api.proto.java.TransactionGetRecordResponse.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 TRANSACTIONRECORD_FIELD_NUMBER = 3;
private com.hederahashgraph.api.proto.java.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 transactionRecord_ != null;
}
/**
*
**
* 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.hederahashgraph.api.proto.java.TransactionRecord getTransactionRecord() {
return transactionRecord_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionRecordOrBuilder getTransactionRecordOrBuilder() {
return getTransactionRecord();
}
public static final int DUPLICATETRANSACTIONRECORDS_FIELD_NUMBER = 4;
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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionRecordOrBuilder getDuplicateTransactionRecordsOrBuilder(
int index) {
return duplicateTransactionRecords_.get(index);
}
public static final int CHILD_TRANSACTION_RECORDS_FIELD_NUMBER = 5;
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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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 (header_ != null) {
output.writeMessage(1, getHeader());
}
if (transactionRecord_ != null) {
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));
}
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 (transactionRecord_ != null) {
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 += 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.TransactionGetRecordResponse)) {
return super.equals(obj);
}
com.hederahashgraph.api.proto.java.TransactionGetRecordResponse other = (com.hederahashgraph.api.proto.java.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 (!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 (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) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hederahashgraph.api.proto.java.TransactionGetRecordResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.TransactionGetRecordResponse 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.TransactionGetRecordResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionGetRecordResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.TransactionGetRecordResponse 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.TransactionGetRecordResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionGetRecordResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionGetRecordResponse 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.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionGetRecordResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.TransactionGetRecord.internal_static_proto_TransactionGetRecordResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.TransactionGetRecord.internal_static_proto_TransactionGetRecordResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.TransactionGetRecordResponse.class, com.hederahashgraph.api.proto.java.TransactionGetRecordResponse.Builder.class);
}
// Construct using com.hederahashgraph.api.proto.java.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) {
getDuplicateTransactionRecordsFieldBuilder();
getChildTransactionRecordsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (headerBuilder_ == null) {
header_ = null;
} else {
header_ = null;
headerBuilder_ = null;
}
if (transactionRecordBuilder_ == null) {
transactionRecord_ = null;
} else {
transactionRecord_ = null;
transactionRecordBuilder_ = null;
}
if (duplicateTransactionRecordsBuilder_ == null) {
duplicateTransactionRecords_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
duplicateTransactionRecordsBuilder_.clear();
}
if (childTransactionRecordsBuilder_ == null) {
childTransactionRecords_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
childTransactionRecordsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hederahashgraph.api.proto.java.TransactionGetRecord.internal_static_proto_TransactionGetRecordResponse_descriptor;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.TransactionGetRecordResponse getDefaultInstanceForType() {
return com.hederahashgraph.api.proto.java.TransactionGetRecordResponse.getDefaultInstance();
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.TransactionGetRecordResponse build() {
com.hederahashgraph.api.proto.java.TransactionGetRecordResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.TransactionGetRecordResponse buildPartial() {
com.hederahashgraph.api.proto.java.TransactionGetRecordResponse result = new com.hederahashgraph.api.proto.java.TransactionGetRecordResponse(this);
int from_bitField0_ = bitField0_;
if (headerBuilder_ == null) {
result.header_ = header_;
} else {
result.header_ = headerBuilder_.build();
}
if (transactionRecordBuilder_ == null) {
result.transactionRecord_ = transactionRecord_;
} else {
result.transactionRecord_ = transactionRecordBuilder_.build();
}
if (duplicateTransactionRecordsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
duplicateTransactionRecords_ = java.util.Collections.unmodifiableList(duplicateTransactionRecords_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.duplicateTransactionRecords_ = duplicateTransactionRecords_;
} else {
result.duplicateTransactionRecords_ = duplicateTransactionRecordsBuilder_.build();
}
if (childTransactionRecordsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
childTransactionRecords_ = java.util.Collections.unmodifiableList(childTransactionRecords_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.childTransactionRecords_ = childTransactionRecords_;
} else {
result.childTransactionRecords_ = childTransactionRecordsBuilder_.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.TransactionGetRecordResponse) {
return mergeFrom((com.hederahashgraph.api.proto.java.TransactionGetRecordResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hederahashgraph.api.proto.java.TransactionGetRecordResponse other) {
if (other == com.hederahashgraph.api.proto.java.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_ & ~0x00000001);
} else {
ensureDuplicateTransactionRecordsIsMutable();
duplicateTransactionRecords_.addAll(other.duplicateTransactionRecords_);
}
onChanged();
}
} else {
if (!other.duplicateTransactionRecords_.isEmpty()) {
if (duplicateTransactionRecordsBuilder_.isEmpty()) {
duplicateTransactionRecordsBuilder_.dispose();
duplicateTransactionRecordsBuilder_ = null;
duplicateTransactionRecords_ = other.duplicateTransactionRecords_;
bitField0_ = (bitField0_ & ~0x00000001);
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_ & ~0x00000002);
} else {
ensureChildTransactionRecordsIsMutable();
childTransactionRecords_.addAll(other.childTransactionRecords_);
}
onChanged();
}
} else {
if (!other.childTransactionRecords_.isEmpty()) {
if (childTransactionRecordsBuilder_.isEmpty()) {
childTransactionRecordsBuilder_.dispose();
childTransactionRecordsBuilder_ = null;
childTransactionRecords_ = other.childTransactionRecords_;
bitField0_ = (bitField0_ & ~0x00000002);
childTransactionRecordsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getChildTransactionRecordsFieldBuilder() : null;
} else {
childTransactionRecordsBuilder_.addAllMessages(other.childTransactionRecords_);
}
}
}
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.TransactionGetRecordResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hederahashgraph.api.proto.java.TransactionGetRecordResponse) 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.TransactionRecord transactionRecord_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TransactionRecord, com.hederahashgraph.api.proto.java.TransactionRecord.Builder, com.hederahashgraph.api.proto.java.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 transactionRecordBuilder_ != null || transactionRecord_ != null;
}
/**
*
**
* 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.hederahashgraph.api.proto.java.TransactionRecord getTransactionRecord() {
if (transactionRecordBuilder_ == null) {
return transactionRecord_ == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionRecord value) {
if (transactionRecordBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
transactionRecord_ = value;
onChanged();
} else {
transactionRecordBuilder_.setMessage(value);
}
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.hederahashgraph.api.proto.java.TransactionRecord.Builder builderForValue) {
if (transactionRecordBuilder_ == null) {
transactionRecord_ = builderForValue.build();
onChanged();
} else {
transactionRecordBuilder_.setMessage(builderForValue.build());
}
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.hederahashgraph.api.proto.java.TransactionRecord value) {
if (transactionRecordBuilder_ == null) {
if (transactionRecord_ != null) {
transactionRecord_ =
com.hederahashgraph.api.proto.java.TransactionRecord.newBuilder(transactionRecord_).mergeFrom(value).buildPartial();
} else {
transactionRecord_ = value;
}
onChanged();
} else {
transactionRecordBuilder_.mergeFrom(value);
}
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() {
if (transactionRecordBuilder_ == null) {
transactionRecord_ = null;
onChanged();
} else {
transactionRecord_ = null;
transactionRecordBuilder_ = null;
}
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.hederahashgraph.api.proto.java.TransactionRecord.Builder getTransactionRecordBuilder() {
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.hederahashgraph.api.proto.java.TransactionRecordOrBuilder getTransactionRecordOrBuilder() {
if (transactionRecordBuilder_ != null) {
return transactionRecordBuilder_.getMessageOrBuilder();
} else {
return transactionRecord_ == null ?
com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionRecord, com.hederahashgraph.api.proto.java.TransactionRecord.Builder, com.hederahashgraph.api.proto.java.TransactionRecordOrBuilder>
getTransactionRecordFieldBuilder() {
if (transactionRecordBuilder_ == null) {
transactionRecordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TransactionRecord, com.hederahashgraph.api.proto.java.TransactionRecord.Builder, com.hederahashgraph.api.proto.java.TransactionRecordOrBuilder>(
getTransactionRecord(),
getParentForChildren(),
isClean());
transactionRecord_ = null;
}
return transactionRecordBuilder_;
}
private java.util.List duplicateTransactionRecords_ =
java.util.Collections.emptyList();
private void ensureDuplicateTransactionRecordsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
duplicateTransactionRecords_ = new java.util.ArrayList(duplicateTransactionRecords_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.TransactionRecord, com.hederahashgraph.api.proto.java.TransactionRecord.Builder, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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_ & ~0x00000001);
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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionRecord.Builder addDuplicateTransactionRecordsBuilder() {
return getDuplicateTransactionRecordsFieldBuilder().addBuilder(
com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionRecord.Builder addDuplicateTransactionRecordsBuilder(
int index) {
return getDuplicateTransactionRecordsFieldBuilder().addBuilder(
index, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionRecord, com.hederahashgraph.api.proto.java.TransactionRecord.Builder, com.hederahashgraph.api.proto.java.TransactionRecordOrBuilder>
getDuplicateTransactionRecordsFieldBuilder() {
if (duplicateTransactionRecordsBuilder_ == null) {
duplicateTransactionRecordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.TransactionRecord, com.hederahashgraph.api.proto.java.TransactionRecord.Builder, com.hederahashgraph.api.proto.java.TransactionRecordOrBuilder>(
duplicateTransactionRecords_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
duplicateTransactionRecords_ = null;
}
return duplicateTransactionRecordsBuilder_;
}
private java.util.List childTransactionRecords_ =
java.util.Collections.emptyList();
private void ensureChildTransactionRecordsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
childTransactionRecords_ = new java.util.ArrayList(childTransactionRecords_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.TransactionRecord, com.hederahashgraph.api.proto.java.TransactionRecord.Builder, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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_ & ~0x00000002);
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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionRecord.Builder addChildTransactionRecordsBuilder() {
return getChildTransactionRecordsFieldBuilder().addBuilder(
com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionRecord.Builder addChildTransactionRecordsBuilder(
int index) {
return getChildTransactionRecordsFieldBuilder().addBuilder(
index, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.TransactionRecord, com.hederahashgraph.api.proto.java.TransactionRecord.Builder, com.hederahashgraph.api.proto.java.TransactionRecordOrBuilder>
getChildTransactionRecordsFieldBuilder() {
if (childTransactionRecordsBuilder_ == null) {
childTransactionRecordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.TransactionRecord, com.hederahashgraph.api.proto.java.TransactionRecord.Builder, com.hederahashgraph.api.proto.java.TransactionRecordOrBuilder>(
childTransactionRecords_,
((bitField0_ & 0x00000002) != 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.hederahashgraph.api.proto.java.TransactionGetRecordResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.TransactionGetRecordResponse();
}
public static com.hederahashgraph.api.proto.java.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 {
return new TransactionGetRecordResponse(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.TransactionGetRecordResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy