com.hedera.hashgraph.sdk.proto.GetBySolidityIDResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-full Show documentation
Show all versions of sdk-full Show documentation
Hedera™ Hashgraph SDK for Java
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: get_by_solidity_id.proto
// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* Response when the client sends the node GetBySolidityIDQuery
*
*
* Protobuf type {@code proto.GetBySolidityIDResponse}
*/
public final class GetBySolidityIDResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.GetBySolidityIDResponse)
GetBySolidityIDResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetBySolidityIDResponse.newBuilder() to construct.
private GetBySolidityIDResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetBySolidityIDResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetBySolidityIDResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.GetBySolidityId.internal_static_proto_GetBySolidityIDResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.GetBySolidityId.internal_static_proto_GetBySolidityIDResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.GetBySolidityIDResponse.class, com.hedera.hashgraph.sdk.proto.GetBySolidityIDResponse.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 ACCOUNTID_FIELD_NUMBER = 2;
private com.hedera.hashgraph.sdk.proto.AccountID accountID_;
/**
*
**
* The Account ID for the cryptocurrency account
*
*
* .proto.AccountID accountID = 2;
* @return Whether the accountID field is set.
*/
@java.lang.Override
public boolean hasAccountID() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* The Account ID for the cryptocurrency account
*
*
* .proto.AccountID accountID = 2;
* @return The accountID.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountID getAccountID() {
return accountID_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountID_;
}
/**
*
**
* The Account ID for the cryptocurrency account
*
*
* .proto.AccountID accountID = 2;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getAccountIDOrBuilder() {
return accountID_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountID_;
}
public static final int FILEID_FIELD_NUMBER = 3;
private com.hedera.hashgraph.sdk.proto.FileID fileID_;
/**
*
**
* The file Id for the file
*
*
* .proto.FileID fileID = 3;
* @return Whether the fileID field is set.
*/
@java.lang.Override
public boolean hasFileID() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
**
* The file Id for the file
*
*
* .proto.FileID fileID = 3;
* @return The fileID.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileID getFileID() {
return fileID_ == null ? com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance() : fileID_;
}
/**
*
**
* The file Id for the file
*
*
* .proto.FileID fileID = 3;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FileIDOrBuilder getFileIDOrBuilder() {
return fileID_ == null ? com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance() : fileID_;
}
public static final int CONTRACTID_FIELD_NUMBER = 4;
private com.hedera.hashgraph.sdk.proto.ContractID contractID_;
/**
*
**
* A smart contract ID for the instance (if this is included, then the associated accountID will
* also be included)
*
*
* .proto.ContractID contractID = 4;
* @return Whether the contractID field is set.
*/
@java.lang.Override
public boolean hasContractID() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
**
* A smart contract ID for the instance (if this is included, then the associated accountID will
* also be included)
*
*
* .proto.ContractID contractID = 4;
* @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_;
}
/**
*
**
* A smart contract ID for the instance (if this is included, then the associated accountID will
* also be included)
*
*
* .proto.ContractID contractID = 4;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ContractIDOrBuilder getContractIDOrBuilder() {
return contractID_ == null ? com.hedera.hashgraph.sdk.proto.ContractID.getDefaultInstance() : contractID_;
}
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, getAccountID());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getFileID());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(4, getContractID());
}
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, getAccountID());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getFileID());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getContractID());
}
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.GetBySolidityIDResponse)) {
return super.equals(obj);
}
com.hedera.hashgraph.sdk.proto.GetBySolidityIDResponse other = (com.hedera.hashgraph.sdk.proto.GetBySolidityIDResponse) obj;
if (hasHeader() != other.hasHeader()) return false;
if (hasHeader()) {
if (!getHeader()
.equals(other.getHeader())) return false;
}
if (hasAccountID() != other.hasAccountID()) return false;
if (hasAccountID()) {
if (!getAccountID()
.equals(other.getAccountID())) return false;
}
if (hasFileID() != other.hasFileID()) return false;
if (hasFileID()) {
if (!getFileID()
.equals(other.getFileID())) return false;
}
if (hasContractID() != other.hasContractID()) return false;
if (hasContractID()) {
if (!getContractID()
.equals(other.getContractID())) 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 (hasAccountID()) {
hash = (37 * hash) + ACCOUNTID_FIELD_NUMBER;
hash = (53 * hash) + getAccountID().hashCode();
}
if (hasFileID()) {
hash = (37 * hash) + FILEID_FIELD_NUMBER;
hash = (53 * hash) + getFileID().hashCode();
}
if (hasContractID()) {
hash = (37 * hash) + CONTRACTID_FIELD_NUMBER;
hash = (53 * hash) + getContractID().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hashgraph.sdk.proto.GetBySolidityIDResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.GetBySolidityIDResponse 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.GetBySolidityIDResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.GetBySolidityIDResponse 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.GetBySolidityIDResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.GetBySolidityIDResponse 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.GetBySolidityIDResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.GetBySolidityIDResponse 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.GetBySolidityIDResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.GetBySolidityIDResponse 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.GetBySolidityIDResponse 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.GetBySolidityIDResponse 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.GetBySolidityIDResponse 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 GetBySolidityIDQuery
*
*
* Protobuf type {@code proto.GetBySolidityIDResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.GetBySolidityIDResponse)
com.hedera.hashgraph.sdk.proto.GetBySolidityIDResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.GetBySolidityId.internal_static_proto_GetBySolidityIDResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.GetBySolidityId.internal_static_proto_GetBySolidityIDResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.GetBySolidityIDResponse.class, com.hedera.hashgraph.sdk.proto.GetBySolidityIDResponse.Builder.class);
}
// Construct using com.hedera.hashgraph.sdk.proto.GetBySolidityIDResponse.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();
getAccountIDFieldBuilder();
getFileIDFieldBuilder();
getContractIDFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
header_ = null;
if (headerBuilder_ != null) {
headerBuilder_.dispose();
headerBuilder_ = null;
}
accountID_ = null;
if (accountIDBuilder_ != null) {
accountIDBuilder_.dispose();
accountIDBuilder_ = null;
}
fileID_ = null;
if (fileIDBuilder_ != null) {
fileIDBuilder_.dispose();
fileIDBuilder_ = null;
}
contractID_ = null;
if (contractIDBuilder_ != null) {
contractIDBuilder_.dispose();
contractIDBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hashgraph.sdk.proto.GetBySolidityId.internal_static_proto_GetBySolidityIDResponse_descriptor;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.GetBySolidityIDResponse getDefaultInstanceForType() {
return com.hedera.hashgraph.sdk.proto.GetBySolidityIDResponse.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.GetBySolidityIDResponse build() {
com.hedera.hashgraph.sdk.proto.GetBySolidityIDResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.GetBySolidityIDResponse buildPartial() {
com.hedera.hashgraph.sdk.proto.GetBySolidityIDResponse result = new com.hedera.hashgraph.sdk.proto.GetBySolidityIDResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.hedera.hashgraph.sdk.proto.GetBySolidityIDResponse 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.accountID_ = accountIDBuilder_ == null
? accountID_
: accountIDBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.fileID_ = fileIDBuilder_ == null
? fileID_
: fileIDBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.contractID_ = contractIDBuilder_ == null
? contractID_
: contractIDBuilder_.build();
to_bitField0_ |= 0x00000008;
}
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.GetBySolidityIDResponse) {
return mergeFrom((com.hedera.hashgraph.sdk.proto.GetBySolidityIDResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.GetBySolidityIDResponse other) {
if (other == com.hedera.hashgraph.sdk.proto.GetBySolidityIDResponse.getDefaultInstance()) return this;
if (other.hasHeader()) {
mergeHeader(other.getHeader());
}
if (other.hasAccountID()) {
mergeAccountID(other.getAccountID());
}
if (other.hasFileID()) {
mergeFileID(other.getFileID());
}
if (other.hasContractID()) {
mergeContractID(other.getContractID());
}
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(
getAccountIDFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getFileIDFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getContractIDFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
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.AccountID accountID_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> accountIDBuilder_;
/**
*
**
* The Account ID for the cryptocurrency account
*
*
* .proto.AccountID accountID = 2;
* @return Whether the accountID field is set.
*/
public boolean hasAccountID() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* The Account ID for the cryptocurrency account
*
*
* .proto.AccountID accountID = 2;
* @return The accountID.
*/
public com.hedera.hashgraph.sdk.proto.AccountID getAccountID() {
if (accountIDBuilder_ == null) {
return accountID_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountID_;
} else {
return accountIDBuilder_.getMessage();
}
}
/**
*
**
* The Account ID for the cryptocurrency account
*
*
* .proto.AccountID accountID = 2;
*/
public Builder setAccountID(com.hedera.hashgraph.sdk.proto.AccountID value) {
if (accountIDBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
accountID_ = value;
} else {
accountIDBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The Account ID for the cryptocurrency account
*
*
* .proto.AccountID accountID = 2;
*/
public Builder setAccountID(
com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) {
if (accountIDBuilder_ == null) {
accountID_ = builderForValue.build();
} else {
accountIDBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The Account ID for the cryptocurrency account
*
*
* .proto.AccountID accountID = 2;
*/
public Builder mergeAccountID(com.hedera.hashgraph.sdk.proto.AccountID value) {
if (accountIDBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
accountID_ != null &&
accountID_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) {
getAccountIDBuilder().mergeFrom(value);
} else {
accountID_ = value;
}
} else {
accountIDBuilder_.mergeFrom(value);
}
if (accountID_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
**
* The Account ID for the cryptocurrency account
*
*
* .proto.AccountID accountID = 2;
*/
public Builder clearAccountID() {
bitField0_ = (bitField0_ & ~0x00000002);
accountID_ = null;
if (accountIDBuilder_ != null) {
accountIDBuilder_.dispose();
accountIDBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The Account ID for the cryptocurrency account
*
*
* .proto.AccountID accountID = 2;
*/
public com.hedera.hashgraph.sdk.proto.AccountID.Builder getAccountIDBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getAccountIDFieldBuilder().getBuilder();
}
/**
*
**
* The Account ID for the cryptocurrency account
*
*
* .proto.AccountID accountID = 2;
*/
public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getAccountIDOrBuilder() {
if (accountIDBuilder_ != null) {
return accountIDBuilder_.getMessageOrBuilder();
} else {
return accountID_ == null ?
com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountID_;
}
}
/**
*
**
* The Account ID for the cryptocurrency account
*
*
* .proto.AccountID accountID = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>
getAccountIDFieldBuilder() {
if (accountIDBuilder_ == null) {
accountIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>(
getAccountID(),
getParentForChildren(),
isClean());
accountID_ = null;
}
return accountIDBuilder_;
}
private com.hedera.hashgraph.sdk.proto.FileID fileID_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FileID, com.hedera.hashgraph.sdk.proto.FileID.Builder, com.hedera.hashgraph.sdk.proto.FileIDOrBuilder> fileIDBuilder_;
/**
*
**
* The file Id for the file
*
*
* .proto.FileID fileID = 3;
* @return Whether the fileID field is set.
*/
public boolean hasFileID() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
**
* The file Id for the file
*
*
* .proto.FileID fileID = 3;
* @return The fileID.
*/
public com.hedera.hashgraph.sdk.proto.FileID getFileID() {
if (fileIDBuilder_ == null) {
return fileID_ == null ? com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance() : fileID_;
} else {
return fileIDBuilder_.getMessage();
}
}
/**
*
**
* The file Id for the file
*
*
* .proto.FileID fileID = 3;
*/
public Builder setFileID(com.hedera.hashgraph.sdk.proto.FileID value) {
if (fileIDBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fileID_ = value;
} else {
fileIDBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* The file Id for the file
*
*
* .proto.FileID fileID = 3;
*/
public Builder setFileID(
com.hedera.hashgraph.sdk.proto.FileID.Builder builderForValue) {
if (fileIDBuilder_ == null) {
fileID_ = builderForValue.build();
} else {
fileIDBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* The file Id for the file
*
*
* .proto.FileID fileID = 3;
*/
public Builder mergeFileID(com.hedera.hashgraph.sdk.proto.FileID value) {
if (fileIDBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
fileID_ != null &&
fileID_ != com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance()) {
getFileIDBuilder().mergeFrom(value);
} else {
fileID_ = value;
}
} else {
fileIDBuilder_.mergeFrom(value);
}
if (fileID_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
**
* The file Id for the file
*
*
* .proto.FileID fileID = 3;
*/
public Builder clearFileID() {
bitField0_ = (bitField0_ & ~0x00000004);
fileID_ = null;
if (fileIDBuilder_ != null) {
fileIDBuilder_.dispose();
fileIDBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The file Id for the file
*
*
* .proto.FileID fileID = 3;
*/
public com.hedera.hashgraph.sdk.proto.FileID.Builder getFileIDBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getFileIDFieldBuilder().getBuilder();
}
/**
*
**
* The file Id for the file
*
*
* .proto.FileID fileID = 3;
*/
public com.hedera.hashgraph.sdk.proto.FileIDOrBuilder getFileIDOrBuilder() {
if (fileIDBuilder_ != null) {
return fileIDBuilder_.getMessageOrBuilder();
} else {
return fileID_ == null ?
com.hedera.hashgraph.sdk.proto.FileID.getDefaultInstance() : fileID_;
}
}
/**
*
**
* The file Id for the file
*
*
* .proto.FileID fileID = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FileID, com.hedera.hashgraph.sdk.proto.FileID.Builder, com.hedera.hashgraph.sdk.proto.FileIDOrBuilder>
getFileIDFieldBuilder() {
if (fileIDBuilder_ == null) {
fileIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FileID, com.hedera.hashgraph.sdk.proto.FileID.Builder, com.hedera.hashgraph.sdk.proto.FileIDOrBuilder>(
getFileID(),
getParentForChildren(),
isClean());
fileID_ = null;
}
return fileIDBuilder_;
}
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_;
/**
*
**
* A smart contract ID for the instance (if this is included, then the associated accountID will
* also be included)
*
*
* .proto.ContractID contractID = 4;
* @return Whether the contractID field is set.
*/
public boolean hasContractID() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
**
* A smart contract ID for the instance (if this is included, then the associated accountID will
* also be included)
*
*
* .proto.ContractID contractID = 4;
* @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();
}
}
/**
*
**
* A smart contract ID for the instance (if this is included, then the associated accountID will
* also be included)
*
*
* .proto.ContractID contractID = 4;
*/
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_ |= 0x00000008;
onChanged();
return this;
}
/**
*
**
* A smart contract ID for the instance (if this is included, then the associated accountID will
* also be included)
*
*
* .proto.ContractID contractID = 4;
*/
public Builder setContractID(
com.hedera.hashgraph.sdk.proto.ContractID.Builder builderForValue) {
if (contractIDBuilder_ == null) {
contractID_ = builderForValue.build();
} else {
contractIDBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
**
* A smart contract ID for the instance (if this is included, then the associated accountID will
* also be included)
*
*
* .proto.ContractID contractID = 4;
*/
public Builder mergeContractID(com.hedera.hashgraph.sdk.proto.ContractID value) {
if (contractIDBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 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_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
**
* A smart contract ID for the instance (if this is included, then the associated accountID will
* also be included)
*
*
* .proto.ContractID contractID = 4;
*/
public Builder clearContractID() {
bitField0_ = (bitField0_ & ~0x00000008);
contractID_ = null;
if (contractIDBuilder_ != null) {
contractIDBuilder_.dispose();
contractIDBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* A smart contract ID for the instance (if this is included, then the associated accountID will
* also be included)
*
*
* .proto.ContractID contractID = 4;
*/
public com.hedera.hashgraph.sdk.proto.ContractID.Builder getContractIDBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getContractIDFieldBuilder().getBuilder();
}
/**
*
**
* A smart contract ID for the instance (if this is included, then the associated accountID will
* also be included)
*
*
* .proto.ContractID contractID = 4;
*/
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_;
}
}
/**
*
**
* A smart contract ID for the instance (if this is included, then the associated accountID will
* also be included)
*
*
* .proto.ContractID contractID = 4;
*/
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_;
}
@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.GetBySolidityIDResponse)
}
// @@protoc_insertion_point(class_scope:proto.GetBySolidityIDResponse)
private static final com.hedera.hashgraph.sdk.proto.GetBySolidityIDResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.GetBySolidityIDResponse();
}
public static com.hedera.hashgraph.sdk.proto.GetBySolidityIDResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetBySolidityIDResponse 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.GetBySolidityIDResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}