com.hedera.hashgraph.sdk.proto.ContractGetRecordsResponse 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: contract_get_records.proto
// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* Before v0.9.0, returned records of all transactions against the given contract in the last 25 hours.
*
*
* Protobuf type {@code proto.ContractGetRecordsResponse}
*/
@java.lang.Deprecated public final class ContractGetRecordsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.ContractGetRecordsResponse)
ContractGetRecordsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ContractGetRecordsResponse.newBuilder() to construct.
private ContractGetRecordsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ContractGetRecordsResponse() {
records_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ContractGetRecordsResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.ContractGetRecords.internal_static_proto_ContractGetRecordsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.ContractGetRecords.internal_static_proto_ContractGetRecordsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.ContractGetRecordsResponse.class, com.hedera.hashgraph.sdk.proto.ContractGetRecordsResponse.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 CONTRACTID_FIELD_NUMBER = 2;
private com.hedera.hashgraph.sdk.proto.ContractID contractID_;
/**
*
**
* The smart contract instance that this record is for
*
*
* .proto.ContractID contractID = 2;
* @return Whether the contractID field is set.
*/
@java.lang.Override
public boolean hasContractID() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* The smart contract instance that this record is for
*
*
* .proto.ContractID contractID = 2;
* @return The contractID.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ContractID getContractID() {
return contractID_ == null ? com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance() : contractID_;
}
/**
*
**
* The smart contract instance that this record is for
*
*
* .proto.ContractID contractID = 2;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder getContractIDOrBuilder() {
return contractID_ == null ? com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance() : contractID_;
}
public static final int RECORDS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List records_;
/**
*
**
* List of records, each with contractCreateResult or contractCallResult as its body
*
*
* repeated .proto.TransactionRecord records = 3;
*/
@java.lang.Override
public java.util.List getRecordsList() {
return records_;
}
/**
*
**
* List of records, each with contractCreateResult or contractCallResult as its body
*
*
* repeated .proto.TransactionRecord records = 3;
*/
@java.lang.Override
public java.util.List extends com.hedera.hashgraph.sdk.proto.TransactionRecordOrBuilder>
getRecordsOrBuilderList() {
return records_;
}
/**
*
**
* List of records, each with contractCreateResult or contractCallResult as its body
*
*
* repeated .proto.TransactionRecord records = 3;
*/
@java.lang.Override
public int getRecordsCount() {
return records_.size();
}
/**
*
**
* List of records, each with contractCreateResult or contractCallResult as its body
*
*
* repeated .proto.TransactionRecord records = 3;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionRecord getRecords(int index) {
return records_.get(index);
}
/**
*
**
* List of records, each with contractCreateResult or contractCallResult as its body
*
*
* repeated .proto.TransactionRecord records = 3;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionRecordOrBuilder getRecordsOrBuilder(
int index) {
return records_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getHeader());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getContractID());
}
for (int i = 0; i < records_.size(); i++) {
output.writeMessage(3, records_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getHeader());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getContractID());
}
for (int i = 0; i < records_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, records_.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.ContractGetRecordsResponse)) {
return super.equals(obj);
}
com.hedera.hashgraph.sdk.proto.ContractGetRecordsResponse other = (com.hedera.hashgraph.sdk.proto.ContractGetRecordsResponse) obj;
if (hasHeader() != other.hasHeader()) return false;
if (hasHeader()) {
if (!getHeader()
.equals(other.getHeader())) return false;
}
if (hasContractID() != other.hasContractID()) return false;
if (hasContractID()) {
if (!getContractID()
.equals(other.getContractID())) return false;
}
if (!getRecordsList()
.equals(other.getRecordsList())) 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 (hasContractID()) {
hash = (37 * hash) + CONTRACTID_FIELD_NUMBER;
hash = (53 * hash) + getContractID().hashCode();
}
if (getRecordsCount() > 0) {
hash = (37 * hash) + RECORDS_FIELD_NUMBER;
hash = (53 * hash) + getRecordsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hashgraph.sdk.proto.ContractGetRecordsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.ContractGetRecordsResponse 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.ContractGetRecordsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.ContractGetRecordsResponse 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.ContractGetRecordsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.ContractGetRecordsResponse 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.ContractGetRecordsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.ContractGetRecordsResponse 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.ContractGetRecordsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.ContractGetRecordsResponse 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.ContractGetRecordsResponse 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.ContractGetRecordsResponse 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.ContractGetRecordsResponse 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;
}
/**
*
**
* Before v0.9.0, returned records of all transactions against the given contract in the last 25 hours.
*
*
* Protobuf type {@code proto.ContractGetRecordsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.ContractGetRecordsResponse)
com.hedera.hashgraph.sdk.proto.ContractGetRecordsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.ContractGetRecords.internal_static_proto_ContractGetRecordsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.ContractGetRecords.internal_static_proto_ContractGetRecordsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.ContractGetRecordsResponse.class, com.hedera.hashgraph.sdk.proto.ContractGetRecordsResponse.Builder.class);
}
// Construct using com.hedera.hashgraph.sdk.proto.ContractGetRecordsResponse.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();
getContractIDFieldBuilder();
getRecordsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
header_ = null;
if (headerBuilder_ != null) {
headerBuilder_.dispose();
headerBuilder_ = null;
}
contractID_ = null;
if (contractIDBuilder_ != null) {
contractIDBuilder_.dispose();
contractIDBuilder_ = null;
}
if (recordsBuilder_ == null) {
records_ = java.util.Collections.emptyList();
} else {
records_ = null;
recordsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hashgraph.sdk.proto.ContractGetRecords.internal_static_proto_ContractGetRecordsResponse_descriptor;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ContractGetRecordsResponse getDefaultInstanceForType() {
return com.hedera.hashgraph.sdk.proto.ContractGetRecordsResponse.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ContractGetRecordsResponse build() {
com.hedera.hashgraph.sdk.proto.ContractGetRecordsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ContractGetRecordsResponse buildPartial() {
com.hedera.hashgraph.sdk.proto.ContractGetRecordsResponse result = new com.hedera.hashgraph.sdk.proto.ContractGetRecordsResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.hedera.hashgraph.sdk.proto.ContractGetRecordsResponse result) {
if (recordsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
records_ = java.util.Collections.unmodifiableList(records_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.records_ = records_;
} else {
result.records_ = recordsBuilder_.build();
}
}
private void buildPartial0(com.hedera.hashgraph.sdk.proto.ContractGetRecordsResponse 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.contractID_ = contractIDBuilder_ == null
? contractID_
: contractIDBuilder_.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.ContractGetRecordsResponse) {
return mergeFrom((com.hedera.hashgraph.sdk.proto.ContractGetRecordsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.ContractGetRecordsResponse other) {
if (other == com.hedera.hashgraph.sdk.proto.ContractGetRecordsResponse.getDefaultInstance()) return this;
if (other.hasHeader()) {
mergeHeader(other.getHeader());
}
if (other.hasContractID()) {
mergeContractID(other.getContractID());
}
if (recordsBuilder_ == null) {
if (!other.records_.isEmpty()) {
if (records_.isEmpty()) {
records_ = other.records_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureRecordsIsMutable();
records_.addAll(other.records_);
}
onChanged();
}
} else {
if (!other.records_.isEmpty()) {
if (recordsBuilder_.isEmpty()) {
recordsBuilder_.dispose();
recordsBuilder_ = null;
records_ = other.records_;
bitField0_ = (bitField0_ & ~0x00000004);
recordsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRecordsFieldBuilder() : null;
} else {
recordsBuilder_.addAllMessages(other.records_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getHeaderFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getContractIDFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
com.hedera.hashgraph.sdk.proto.TransactionRecord m =
input.readMessage(
com.hedera.hashgraph.sdk.proto.TransactionRecord.parser(),
extensionRegistry);
if (recordsBuilder_ == null) {
ensureRecordsIsMutable();
records_.add(m);
} else {
recordsBuilder_.addMessage(m);
}
break;
} // case 26
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.ContractID contractID_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ContractID, com.hedera.hashgraph.sdk.proto.ContractID.Builder, com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder> contractIDBuilder_;
/**
*
**
* The smart contract instance that this record is for
*
*
* .proto.ContractID contractID = 2;
* @return Whether the contractID field is set.
*/
public boolean hasContractID() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* The smart contract instance that this record is for
*
*
* .proto.ContractID contractID = 2;
* @return The contractID.
*/
public com.hedera.hashgraph.sdk.proto.ContractID getContractID() {
if (contractIDBuilder_ == null) {
return contractID_ == null ? com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance() : contractID_;
} else {
return contractIDBuilder_.getMessage();
}
}
/**
*
**
* The smart contract instance that this record is for
*
*
* .proto.ContractID contractID = 2;
*/
public Builder setContractID(com.hedera.hashgraph.sdk.proto.ContractID value) {
if (contractIDBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
contractID_ = value;
} else {
contractIDBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The smart contract instance that this record is for
*
*
* .proto.ContractID contractID = 2;
*/
public Builder setContractID(
com.hedera.hashgraph.sdk.proto.ContractID.Builder builderForValue) {
if (contractIDBuilder_ == null) {
contractID_ = builderForValue.build();
} else {
contractIDBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The smart contract instance that this record is for
*
*
* .proto.ContractID contractID = 2;
*/
public Builder mergeContractID(com.hedera.hashgraph.sdk.proto.ContractID value) {
if (contractIDBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
contractID_ != null &&
contractID_ != com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance()) {
getContractIDBuilder().mergeFrom(value);
} else {
contractID_ = value;
}
} else {
contractIDBuilder_.mergeFrom(value);
}
if (contractID_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
**
* The smart contract instance that this record is for
*
*
* .proto.ContractID contractID = 2;
*/
public Builder clearContractID() {
bitField0_ = (bitField0_ & ~0x00000002);
contractID_ = null;
if (contractIDBuilder_ != null) {
contractIDBuilder_.dispose();
contractIDBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The smart contract instance that this record is for
*
*
* .proto.ContractID contractID = 2;
*/
public com.hedera.hashgraph.sdk.proto.ContractID.Builder getContractIDBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getContractIDFieldBuilder().getBuilder();
}
/**
*
**
* The smart contract instance that this record is for
*
*
* .proto.ContractID contractID = 2;
*/
public com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder getContractIDOrBuilder() {
if (contractIDBuilder_ != null) {
return contractIDBuilder_.getMessageOrBuilder();
} else {
return contractID_ == null ?
com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance() : contractID_;
}
}
/**
*
**
* The smart contract instance that this record is for
*
*
* .proto.ContractID contractID = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ContractID, com.hedera.hashgraph.sdk.proto.ContractID.Builder, com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder>
getContractIDFieldBuilder() {
if (contractIDBuilder_ == null) {
contractIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ContractID, com.hedera.hashgraph.sdk.proto.ContractID.Builder, com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder>(
getContractID(),
getParentForChildren(),
isClean());
contractID_ = null;
}
return contractIDBuilder_;
}
private java.util.List records_ =
java.util.Collections.emptyList();
private void ensureRecordsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
records_ = new java.util.ArrayList(records_);
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> recordsBuilder_;
/**
*
**
* List of records, each with contractCreateResult or contractCallResult as its body
*
*
* repeated .proto.TransactionRecord records = 3;
*/
public java.util.List getRecordsList() {
if (recordsBuilder_ == null) {
return java.util.Collections.unmodifiableList(records_);
} else {
return recordsBuilder_.getMessageList();
}
}
/**
*
**
* List of records, each with contractCreateResult or contractCallResult as its body
*
*
* repeated .proto.TransactionRecord records = 3;
*/
public int getRecordsCount() {
if (recordsBuilder_ == null) {
return records_.size();
} else {
return recordsBuilder_.getCount();
}
}
/**
*
**
* List of records, each with contractCreateResult or contractCallResult as its body
*
*
* repeated .proto.TransactionRecord records = 3;
*/
public com.hedera.hashgraph.sdk.proto.TransactionRecord getRecords(int index) {
if (recordsBuilder_ == null) {
return records_.get(index);
} else {
return recordsBuilder_.getMessage(index);
}
}
/**
*
**
* List of records, each with contractCreateResult or contractCallResult as its body
*
*
* repeated .proto.TransactionRecord records = 3;
*/
public Builder setRecords(
int index, com.hedera.hashgraph.sdk.proto.TransactionRecord value) {
if (recordsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecordsIsMutable();
records_.set(index, value);
onChanged();
} else {
recordsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* List of records, each with contractCreateResult or contractCallResult as its body
*
*
* repeated .proto.TransactionRecord records = 3;
*/
public Builder setRecords(
int index, com.hedera.hashgraph.sdk.proto.TransactionRecord.Builder builderForValue) {
if (recordsBuilder_ == null) {
ensureRecordsIsMutable();
records_.set(index, builderForValue.build());
onChanged();
} else {
recordsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* List of records, each with contractCreateResult or contractCallResult as its body
*
*
* repeated .proto.TransactionRecord records = 3;
*/
public Builder addRecords(com.hedera.hashgraph.sdk.proto.TransactionRecord value) {
if (recordsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecordsIsMutable();
records_.add(value);
onChanged();
} else {
recordsBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* List of records, each with contractCreateResult or contractCallResult as its body
*
*
* repeated .proto.TransactionRecord records = 3;
*/
public Builder addRecords(
int index, com.hedera.hashgraph.sdk.proto.TransactionRecord value) {
if (recordsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecordsIsMutable();
records_.add(index, value);
onChanged();
} else {
recordsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* List of records, each with contractCreateResult or contractCallResult as its body
*
*
* repeated .proto.TransactionRecord records = 3;
*/
public Builder addRecords(
com.hedera.hashgraph.sdk.proto.TransactionRecord.Builder builderForValue) {
if (recordsBuilder_ == null) {
ensureRecordsIsMutable();
records_.add(builderForValue.build());
onChanged();
} else {
recordsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* List of records, each with contractCreateResult or contractCallResult as its body
*
*
* repeated .proto.TransactionRecord records = 3;
*/
public Builder addRecords(
int index, com.hedera.hashgraph.sdk.proto.TransactionRecord.Builder builderForValue) {
if (recordsBuilder_ == null) {
ensureRecordsIsMutable();
records_.add(index, builderForValue.build());
onChanged();
} else {
recordsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* List of records, each with contractCreateResult or contractCallResult as its body
*
*
* repeated .proto.TransactionRecord records = 3;
*/
public Builder addAllRecords(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.TransactionRecord> values) {
if (recordsBuilder_ == null) {
ensureRecordsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, records_);
onChanged();
} else {
recordsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* List of records, each with contractCreateResult or contractCallResult as its body
*
*
* repeated .proto.TransactionRecord records = 3;
*/
public Builder clearRecords() {
if (recordsBuilder_ == null) {
records_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
recordsBuilder_.clear();
}
return this;
}
/**
*
**
* List of records, each with contractCreateResult or contractCallResult as its body
*
*
* repeated .proto.TransactionRecord records = 3;
*/
public Builder removeRecords(int index) {
if (recordsBuilder_ == null) {
ensureRecordsIsMutable();
records_.remove(index);
onChanged();
} else {
recordsBuilder_.remove(index);
}
return this;
}
/**
*
**
* List of records, each with contractCreateResult or contractCallResult as its body
*
*
* repeated .proto.TransactionRecord records = 3;
*/
public com.hedera.hashgraph.sdk.proto.TransactionRecord.Builder getRecordsBuilder(
int index) {
return getRecordsFieldBuilder().getBuilder(index);
}
/**
*
**
* List of records, each with contractCreateResult or contractCallResult as its body
*
*
* repeated .proto.TransactionRecord records = 3;
*/
public com.hedera.hashgraph.sdk.proto.TransactionRecordOrBuilder getRecordsOrBuilder(
int index) {
if (recordsBuilder_ == null) {
return records_.get(index); } else {
return recordsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* List of records, each with contractCreateResult or contractCallResult as its body
*
*
* repeated .proto.TransactionRecord records = 3;
*/
public java.util.List extends com.hedera.hashgraph.sdk.proto.TransactionRecordOrBuilder>
getRecordsOrBuilderList() {
if (recordsBuilder_ != null) {
return recordsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(records_);
}
}
/**
*
**
* List of records, each with contractCreateResult or contractCallResult as its body
*
*
* repeated .proto.TransactionRecord records = 3;
*/
public com.hedera.hashgraph.sdk.proto.TransactionRecord.Builder addRecordsBuilder() {
return getRecordsFieldBuilder().addBuilder(
com.hedera.hashgraph.sdk.proto.TransactionRecord.getDefaultInstance());
}
/**
*
**
* List of records, each with contractCreateResult or contractCallResult as its body
*
*
* repeated .proto.TransactionRecord records = 3;
*/
public com.hedera.hashgraph.sdk.proto.TransactionRecord.Builder addRecordsBuilder(
int index) {
return getRecordsFieldBuilder().addBuilder(
index, com.hedera.hashgraph.sdk.proto.TransactionRecord.getDefaultInstance());
}
/**
*
**
* List of records, each with contractCreateResult or contractCallResult as its body
*
*
* repeated .proto.TransactionRecord records = 3;
*/
public java.util.List
getRecordsBuilderList() {
return getRecordsFieldBuilder().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>
getRecordsFieldBuilder() {
if (recordsBuilder_ == null) {
recordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TransactionRecord, com.hedera.hashgraph.sdk.proto.TransactionRecord.Builder, com.hedera.hashgraph.sdk.proto.TransactionRecordOrBuilder>(
records_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
records_ = null;
}
return recordsBuilder_;
}
@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.ContractGetRecordsResponse)
}
// @@protoc_insertion_point(class_scope:proto.ContractGetRecordsResponse)
private static final com.hedera.hashgraph.sdk.proto.ContractGetRecordsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.ContractGetRecordsResponse();
}
public static com.hedera.hashgraph.sdk.proto.ContractGetRecordsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ContractGetRecordsResponse 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.ContractGetRecordsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}