proto.tibc.core.client.v1.QueryOuterClass Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of irita-sdk Show documentation
Show all versions of irita-sdk Show documentation
Irita open alliance chain SDK (java)
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tibc/core/client/v1/query.proto
package proto.tibc.core.client.v1;
public final class QueryOuterClass {
private QueryOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface QueryClientStateRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:tibc.core.client.v1.QueryClientStateRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* client state unique identifier
*
*
* string chain_name = 1;
* @return The chainName.
*/
java.lang.String getChainName();
/**
*
* client state unique identifier
*
*
* string chain_name = 1;
* @return The bytes for chainName.
*/
com.google.protobuf.ByteString
getChainNameBytes();
}
/**
*
* QueryClientStateRequest is the request type for the Query/ClientState RPC
* method
*
*
* Protobuf type {@code tibc.core.client.v1.QueryClientStateRequest}
*/
public static final class QueryClientStateRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tibc.core.client.v1.QueryClientStateRequest)
QueryClientStateRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryClientStateRequest.newBuilder() to construct.
private QueryClientStateRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryClientStateRequest() {
chainName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryClientStateRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryClientStateRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
java.lang.String s = input.readStringRequireUtf8();
chainName_ = s;
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryClientStateRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryClientStateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest.class, proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest.Builder.class);
}
public static final int CHAIN_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object chainName_;
/**
*
* client state unique identifier
*
*
* string chain_name = 1;
* @return The chainName.
*/
@java.lang.Override
public java.lang.String getChainName() {
java.lang.Object ref = chainName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
chainName_ = s;
return s;
}
}
/**
*
* client state unique identifier
*
*
* string chain_name = 1;
* @return The bytes for chainName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getChainNameBytes() {
java.lang.Object ref = chainName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
chainName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (!getChainNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, chainName_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getChainNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, chainName_);
}
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 proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest)) {
return super.equals(obj);
}
proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest other = (proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest) obj;
if (!getChainName()
.equals(other.getChainName())) 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();
hash = (37 * hash) + CHAIN_NAME_FIELD_NUMBER;
hash = (53 * hash) + getChainName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest 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 proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest 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 proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest 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(proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest 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;
}
/**
*
* QueryClientStateRequest is the request type for the Query/ClientState RPC
* method
*
*
* Protobuf type {@code tibc.core.client.v1.QueryClientStateRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tibc.core.client.v1.QueryClientStateRequest)
proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryClientStateRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryClientStateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest.class, proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest.Builder.class);
}
// Construct using proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
chainName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryClientStateRequest_descriptor;
}
@java.lang.Override
public proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest getDefaultInstanceForType() {
return proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest.getDefaultInstance();
}
@java.lang.Override
public proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest build() {
proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest buildPartial() {
proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest result = new proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest(this);
result.chainName_ = chainName_;
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 proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest) {
return mergeFrom((proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest other) {
if (other == proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest.getDefaultInstance()) return this;
if (!other.getChainName().isEmpty()) {
chainName_ = other.chainName_;
onChanged();
}
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 {
proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object chainName_ = "";
/**
*
* client state unique identifier
*
*
* string chain_name = 1;
* @return The chainName.
*/
public java.lang.String getChainName() {
java.lang.Object ref = chainName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
chainName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* client state unique identifier
*
*
* string chain_name = 1;
* @return The bytes for chainName.
*/
public com.google.protobuf.ByteString
getChainNameBytes() {
java.lang.Object ref = chainName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
chainName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* client state unique identifier
*
*
* string chain_name = 1;
* @param value The chainName to set.
* @return This builder for chaining.
*/
public Builder setChainName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
chainName_ = value;
onChanged();
return this;
}
/**
*
* client state unique identifier
*
*
* string chain_name = 1;
* @return This builder for chaining.
*/
public Builder clearChainName() {
chainName_ = getDefaultInstance().getChainName();
onChanged();
return this;
}
/**
*
* client state unique identifier
*
*
* string chain_name = 1;
* @param value The bytes for chainName to set.
* @return This builder for chaining.
*/
public Builder setChainNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
chainName_ = value;
onChanged();
return this;
}
@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:tibc.core.client.v1.QueryClientStateRequest)
}
// @@protoc_insertion_point(class_scope:tibc.core.client.v1.QueryClientStateRequest)
private static final proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest();
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryClientStateRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryClientStateRequest(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 proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryClientStateResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:tibc.core.client.v1.QueryClientStateResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* client state associated with the request identifier
*
*
* .google.protobuf.Any client_state = 1;
* @return Whether the clientState field is set.
*/
boolean hasClientState();
/**
*
* client state associated with the request identifier
*
*
* .google.protobuf.Any client_state = 1;
* @return The clientState.
*/
com.google.protobuf.Any getClientState();
/**
*
* client state associated with the request identifier
*
*
* .google.protobuf.Any client_state = 1;
*/
com.google.protobuf.AnyOrBuilder getClientStateOrBuilder();
/**
*
* merkle proof of existence
*
*
* bytes proof = 2;
* @return The proof.
*/
com.google.protobuf.ByteString getProof();
/**
*
* height at which the proof was retrieved
*
*
* .tibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false];
* @return Whether the proofHeight field is set.
*/
boolean hasProofHeight();
/**
*
* height at which the proof was retrieved
*
*
* .tibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false];
* @return The proofHeight.
*/
proto.tibc.core.client.v1.Client.Height getProofHeight();
/**
*
* height at which the proof was retrieved
*
*
* .tibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false];
*/
proto.tibc.core.client.v1.Client.HeightOrBuilder getProofHeightOrBuilder();
}
/**
*
* QueryClientStateResponse is the response type for the Query/ClientState RPC
* method. Besides the client state, it includes a proof and the height from
* which the proof was retrieved.
*
*
* Protobuf type {@code tibc.core.client.v1.QueryClientStateResponse}
*/
public static final class QueryClientStateResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tibc.core.client.v1.QueryClientStateResponse)
QueryClientStateResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryClientStateResponse.newBuilder() to construct.
private QueryClientStateResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryClientStateResponse() {
proof_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryClientStateResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryClientStateResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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.google.protobuf.Any.Builder subBuilder = null;
if (clientState_ != null) {
subBuilder = clientState_.toBuilder();
}
clientState_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(clientState_);
clientState_ = subBuilder.buildPartial();
}
break;
}
case 18: {
proof_ = input.readBytes();
break;
}
case 26: {
proto.tibc.core.client.v1.Client.Height.Builder subBuilder = null;
if (proofHeight_ != null) {
subBuilder = proofHeight_.toBuilder();
}
proofHeight_ = input.readMessage(proto.tibc.core.client.v1.Client.Height.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(proofHeight_);
proofHeight_ = subBuilder.buildPartial();
}
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryClientStateResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryClientStateResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse.class, proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse.Builder.class);
}
public static final int CLIENT_STATE_FIELD_NUMBER = 1;
private com.google.protobuf.Any clientState_;
/**
*
* client state associated with the request identifier
*
*
* .google.protobuf.Any client_state = 1;
* @return Whether the clientState field is set.
*/
@java.lang.Override
public boolean hasClientState() {
return clientState_ != null;
}
/**
*
* client state associated with the request identifier
*
*
* .google.protobuf.Any client_state = 1;
* @return The clientState.
*/
@java.lang.Override
public com.google.protobuf.Any getClientState() {
return clientState_ == null ? com.google.protobuf.Any.getDefaultInstance() : clientState_;
}
/**
*
* client state associated with the request identifier
*
*
* .google.protobuf.Any client_state = 1;
*/
@java.lang.Override
public com.google.protobuf.AnyOrBuilder getClientStateOrBuilder() {
return getClientState();
}
public static final int PROOF_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString proof_;
/**
*
* merkle proof of existence
*
*
* bytes proof = 2;
* @return The proof.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProof() {
return proof_;
}
public static final int PROOF_HEIGHT_FIELD_NUMBER = 3;
private proto.tibc.core.client.v1.Client.Height proofHeight_;
/**
*
* height at which the proof was retrieved
*
*
* .tibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false];
* @return Whether the proofHeight field is set.
*/
@java.lang.Override
public boolean hasProofHeight() {
return proofHeight_ != null;
}
/**
*
* height at which the proof was retrieved
*
*
* .tibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false];
* @return The proofHeight.
*/
@java.lang.Override
public proto.tibc.core.client.v1.Client.Height getProofHeight() {
return proofHeight_ == null ? proto.tibc.core.client.v1.Client.Height.getDefaultInstance() : proofHeight_;
}
/**
*
* height at which the proof was retrieved
*
*
* .tibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public proto.tibc.core.client.v1.Client.HeightOrBuilder getProofHeightOrBuilder() {
return getProofHeight();
}
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 (clientState_ != null) {
output.writeMessage(1, getClientState());
}
if (!proof_.isEmpty()) {
output.writeBytes(2, proof_);
}
if (proofHeight_ != null) {
output.writeMessage(3, getProofHeight());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (clientState_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getClientState());
}
if (!proof_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, proof_);
}
if (proofHeight_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getProofHeight());
}
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 proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse)) {
return super.equals(obj);
}
proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse other = (proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse) obj;
if (hasClientState() != other.hasClientState()) return false;
if (hasClientState()) {
if (!getClientState()
.equals(other.getClientState())) return false;
}
if (!getProof()
.equals(other.getProof())) return false;
if (hasProofHeight() != other.hasProofHeight()) return false;
if (hasProofHeight()) {
if (!getProofHeight()
.equals(other.getProofHeight())) 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 (hasClientState()) {
hash = (37 * hash) + CLIENT_STATE_FIELD_NUMBER;
hash = (53 * hash) + getClientState().hashCode();
}
hash = (37 * hash) + PROOF_FIELD_NUMBER;
hash = (53 * hash) + getProof().hashCode();
if (hasProofHeight()) {
hash = (37 * hash) + PROOF_HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + getProofHeight().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse 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 proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse 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 proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse 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(proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse 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;
}
/**
*
* QueryClientStateResponse is the response type for the Query/ClientState RPC
* method. Besides the client state, it includes a proof and the height from
* which the proof was retrieved.
*
*
* Protobuf type {@code tibc.core.client.v1.QueryClientStateResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tibc.core.client.v1.QueryClientStateResponse)
proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryClientStateResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryClientStateResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse.class, proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse.Builder.class);
}
// Construct using proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (clientStateBuilder_ == null) {
clientState_ = null;
} else {
clientState_ = null;
clientStateBuilder_ = null;
}
proof_ = com.google.protobuf.ByteString.EMPTY;
if (proofHeightBuilder_ == null) {
proofHeight_ = null;
} else {
proofHeight_ = null;
proofHeightBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryClientStateResponse_descriptor;
}
@java.lang.Override
public proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse getDefaultInstanceForType() {
return proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse.getDefaultInstance();
}
@java.lang.Override
public proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse build() {
proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse buildPartial() {
proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse result = new proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse(this);
if (clientStateBuilder_ == null) {
result.clientState_ = clientState_;
} else {
result.clientState_ = clientStateBuilder_.build();
}
result.proof_ = proof_;
if (proofHeightBuilder_ == null) {
result.proofHeight_ = proofHeight_;
} else {
result.proofHeight_ = proofHeightBuilder_.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 proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse) {
return mergeFrom((proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse other) {
if (other == proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse.getDefaultInstance()) return this;
if (other.hasClientState()) {
mergeClientState(other.getClientState());
}
if (other.getProof() != com.google.protobuf.ByteString.EMPTY) {
setProof(other.getProof());
}
if (other.hasProofHeight()) {
mergeProofHeight(other.getProofHeight());
}
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 {
proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.Any clientState_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> clientStateBuilder_;
/**
*
* client state associated with the request identifier
*
*
* .google.protobuf.Any client_state = 1;
* @return Whether the clientState field is set.
*/
public boolean hasClientState() {
return clientStateBuilder_ != null || clientState_ != null;
}
/**
*
* client state associated with the request identifier
*
*
* .google.protobuf.Any client_state = 1;
* @return The clientState.
*/
public com.google.protobuf.Any getClientState() {
if (clientStateBuilder_ == null) {
return clientState_ == null ? com.google.protobuf.Any.getDefaultInstance() : clientState_;
} else {
return clientStateBuilder_.getMessage();
}
}
/**
*
* client state associated with the request identifier
*
*
* .google.protobuf.Any client_state = 1;
*/
public Builder setClientState(com.google.protobuf.Any value) {
if (clientStateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
clientState_ = value;
onChanged();
} else {
clientStateBuilder_.setMessage(value);
}
return this;
}
/**
*
* client state associated with the request identifier
*
*
* .google.protobuf.Any client_state = 1;
*/
public Builder setClientState(
com.google.protobuf.Any.Builder builderForValue) {
if (clientStateBuilder_ == null) {
clientState_ = builderForValue.build();
onChanged();
} else {
clientStateBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* client state associated with the request identifier
*
*
* .google.protobuf.Any client_state = 1;
*/
public Builder mergeClientState(com.google.protobuf.Any value) {
if (clientStateBuilder_ == null) {
if (clientState_ != null) {
clientState_ =
com.google.protobuf.Any.newBuilder(clientState_).mergeFrom(value).buildPartial();
} else {
clientState_ = value;
}
onChanged();
} else {
clientStateBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* client state associated with the request identifier
*
*
* .google.protobuf.Any client_state = 1;
*/
public Builder clearClientState() {
if (clientStateBuilder_ == null) {
clientState_ = null;
onChanged();
} else {
clientState_ = null;
clientStateBuilder_ = null;
}
return this;
}
/**
*
* client state associated with the request identifier
*
*
* .google.protobuf.Any client_state = 1;
*/
public com.google.protobuf.Any.Builder getClientStateBuilder() {
onChanged();
return getClientStateFieldBuilder().getBuilder();
}
/**
*
* client state associated with the request identifier
*
*
* .google.protobuf.Any client_state = 1;
*/
public com.google.protobuf.AnyOrBuilder getClientStateOrBuilder() {
if (clientStateBuilder_ != null) {
return clientStateBuilder_.getMessageOrBuilder();
} else {
return clientState_ == null ?
com.google.protobuf.Any.getDefaultInstance() : clientState_;
}
}
/**
*
* client state associated with the request identifier
*
*
* .google.protobuf.Any client_state = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getClientStateFieldBuilder() {
if (clientStateBuilder_ == null) {
clientStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
getClientState(),
getParentForChildren(),
isClean());
clientState_ = null;
}
return clientStateBuilder_;
}
private com.google.protobuf.ByteString proof_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* merkle proof of existence
*
*
* bytes proof = 2;
* @return The proof.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProof() {
return proof_;
}
/**
*
* merkle proof of existence
*
*
* bytes proof = 2;
* @param value The proof to set.
* @return This builder for chaining.
*/
public Builder setProof(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
proof_ = value;
onChanged();
return this;
}
/**
*
* merkle proof of existence
*
*
* bytes proof = 2;
* @return This builder for chaining.
*/
public Builder clearProof() {
proof_ = getDefaultInstance().getProof();
onChanged();
return this;
}
private proto.tibc.core.client.v1.Client.Height proofHeight_;
private com.google.protobuf.SingleFieldBuilderV3<
proto.tibc.core.client.v1.Client.Height, proto.tibc.core.client.v1.Client.Height.Builder, proto.tibc.core.client.v1.Client.HeightOrBuilder> proofHeightBuilder_;
/**
*
* height at which the proof was retrieved
*
*
* .tibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false];
* @return Whether the proofHeight field is set.
*/
public boolean hasProofHeight() {
return proofHeightBuilder_ != null || proofHeight_ != null;
}
/**
*
* height at which the proof was retrieved
*
*
* .tibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false];
* @return The proofHeight.
*/
public proto.tibc.core.client.v1.Client.Height getProofHeight() {
if (proofHeightBuilder_ == null) {
return proofHeight_ == null ? proto.tibc.core.client.v1.Client.Height.getDefaultInstance() : proofHeight_;
} else {
return proofHeightBuilder_.getMessage();
}
}
/**
*
* height at which the proof was retrieved
*
*
* .tibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false];
*/
public Builder setProofHeight(proto.tibc.core.client.v1.Client.Height value) {
if (proofHeightBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
proofHeight_ = value;
onChanged();
} else {
proofHeightBuilder_.setMessage(value);
}
return this;
}
/**
*
* height at which the proof was retrieved
*
*
* .tibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false];
*/
public Builder setProofHeight(
proto.tibc.core.client.v1.Client.Height.Builder builderForValue) {
if (proofHeightBuilder_ == null) {
proofHeight_ = builderForValue.build();
onChanged();
} else {
proofHeightBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* height at which the proof was retrieved
*
*
* .tibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false];
*/
public Builder mergeProofHeight(proto.tibc.core.client.v1.Client.Height value) {
if (proofHeightBuilder_ == null) {
if (proofHeight_ != null) {
proofHeight_ =
proto.tibc.core.client.v1.Client.Height.newBuilder(proofHeight_).mergeFrom(value).buildPartial();
} else {
proofHeight_ = value;
}
onChanged();
} else {
proofHeightBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* height at which the proof was retrieved
*
*
* .tibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false];
*/
public Builder clearProofHeight() {
if (proofHeightBuilder_ == null) {
proofHeight_ = null;
onChanged();
} else {
proofHeight_ = null;
proofHeightBuilder_ = null;
}
return this;
}
/**
*
* height at which the proof was retrieved
*
*
* .tibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false];
*/
public proto.tibc.core.client.v1.Client.Height.Builder getProofHeightBuilder() {
onChanged();
return getProofHeightFieldBuilder().getBuilder();
}
/**
*
* height at which the proof was retrieved
*
*
* .tibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false];
*/
public proto.tibc.core.client.v1.Client.HeightOrBuilder getProofHeightOrBuilder() {
if (proofHeightBuilder_ != null) {
return proofHeightBuilder_.getMessageOrBuilder();
} else {
return proofHeight_ == null ?
proto.tibc.core.client.v1.Client.Height.getDefaultInstance() : proofHeight_;
}
}
/**
*
* height at which the proof was retrieved
*
*
* .tibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false];
*/
private com.google.protobuf.SingleFieldBuilderV3<
proto.tibc.core.client.v1.Client.Height, proto.tibc.core.client.v1.Client.Height.Builder, proto.tibc.core.client.v1.Client.HeightOrBuilder>
getProofHeightFieldBuilder() {
if (proofHeightBuilder_ == null) {
proofHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
proto.tibc.core.client.v1.Client.Height, proto.tibc.core.client.v1.Client.Height.Builder, proto.tibc.core.client.v1.Client.HeightOrBuilder>(
getProofHeight(),
getParentForChildren(),
isClean());
proofHeight_ = null;
}
return proofHeightBuilder_;
}
@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:tibc.core.client.v1.QueryClientStateResponse)
}
// @@protoc_insertion_point(class_scope:tibc.core.client.v1.QueryClientStateResponse)
private static final proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse();
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryClientStateResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryClientStateResponse(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 proto.tibc.core.client.v1.QueryOuterClass.QueryClientStateResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryClientStatesRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:tibc.core.client.v1.QueryClientStatesRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* pagination request
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 1;
* @return Whether the pagination field is set.
*/
boolean hasPagination();
/**
*
* pagination request
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 1;
* @return The pagination.
*/
proto.cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();
/**
*
* pagination request
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 1;
*/
proto.cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();
}
/**
*
* QueryClientStatesRequest is the request type for the Query/ClientStates RPC
* method
*
*
* Protobuf type {@code tibc.core.client.v1.QueryClientStatesRequest}
*/
public static final class QueryClientStatesRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tibc.core.client.v1.QueryClientStatesRequest)
QueryClientStatesRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryClientStatesRequest.newBuilder() to construct.
private QueryClientStatesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryClientStatesRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryClientStatesRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryClientStatesRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
proto.cosmos.base.query.v1beta1.Pagination.PageRequest.Builder subBuilder = null;
if (pagination_ != null) {
subBuilder = pagination_.toBuilder();
}
pagination_ = input.readMessage(proto.cosmos.base.query.v1beta1.Pagination.PageRequest.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(pagination_);
pagination_ = subBuilder.buildPartial();
}
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryClientStatesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryClientStatesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest.class, proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest.Builder.class);
}
public static final int PAGINATION_FIELD_NUMBER = 1;
private proto.cosmos.base.query.v1beta1.Pagination.PageRequest pagination_;
/**
*
* pagination request
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 1;
* @return Whether the pagination field is set.
*/
@java.lang.Override
public boolean hasPagination() {
return pagination_ != null;
}
/**
*
* pagination request
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 1;
* @return The pagination.
*/
@java.lang.Override
public proto.cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {
return pagination_ == null ? proto.cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;
}
/**
*
* pagination request
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 1;
*/
@java.lang.Override
public proto.cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {
return getPagination();
}
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 (pagination_ != null) {
output.writeMessage(1, getPagination());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (pagination_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getPagination());
}
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 proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest)) {
return super.equals(obj);
}
proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest other = (proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest) obj;
if (hasPagination() != other.hasPagination()) return false;
if (hasPagination()) {
if (!getPagination()
.equals(other.getPagination())) 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 (hasPagination()) {
hash = (37 * hash) + PAGINATION_FIELD_NUMBER;
hash = (53 * hash) + getPagination().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest 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 proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest 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 proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest 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(proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest 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;
}
/**
*
* QueryClientStatesRequest is the request type for the Query/ClientStates RPC
* method
*
*
* Protobuf type {@code tibc.core.client.v1.QueryClientStatesRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tibc.core.client.v1.QueryClientStatesRequest)
proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryClientStatesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryClientStatesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest.class, proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest.Builder.class);
}
// Construct using proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (paginationBuilder_ == null) {
pagination_ = null;
} else {
pagination_ = null;
paginationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryClientStatesRequest_descriptor;
}
@java.lang.Override
public proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest getDefaultInstanceForType() {
return proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest.getDefaultInstance();
}
@java.lang.Override
public proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest build() {
proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest buildPartial() {
proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest result = new proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest(this);
if (paginationBuilder_ == null) {
result.pagination_ = pagination_;
} else {
result.pagination_ = paginationBuilder_.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 proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest) {
return mergeFrom((proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest other) {
if (other == proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest.getDefaultInstance()) return this;
if (other.hasPagination()) {
mergePagination(other.getPagination());
}
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 {
proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private proto.cosmos.base.query.v1beta1.Pagination.PageRequest pagination_;
private com.google.protobuf.SingleFieldBuilderV3<
proto.cosmos.base.query.v1beta1.Pagination.PageRequest, proto.cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, proto.cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> paginationBuilder_;
/**
*
* pagination request
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 1;
* @return Whether the pagination field is set.
*/
public boolean hasPagination() {
return paginationBuilder_ != null || pagination_ != null;
}
/**
*
* pagination request
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 1;
* @return The pagination.
*/
public proto.cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {
if (paginationBuilder_ == null) {
return pagination_ == null ? proto.cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;
} else {
return paginationBuilder_.getMessage();
}
}
/**
*
* pagination request
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 1;
*/
public Builder setPagination(proto.cosmos.base.query.v1beta1.Pagination.PageRequest value) {
if (paginationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pagination_ = value;
onChanged();
} else {
paginationBuilder_.setMessage(value);
}
return this;
}
/**
*
* pagination request
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 1;
*/
public Builder setPagination(
proto.cosmos.base.query.v1beta1.Pagination.PageRequest.Builder builderForValue) {
if (paginationBuilder_ == null) {
pagination_ = builderForValue.build();
onChanged();
} else {
paginationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* pagination request
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 1;
*/
public Builder mergePagination(proto.cosmos.base.query.v1beta1.Pagination.PageRequest value) {
if (paginationBuilder_ == null) {
if (pagination_ != null) {
pagination_ =
proto.cosmos.base.query.v1beta1.Pagination.PageRequest.newBuilder(pagination_).mergeFrom(value).buildPartial();
} else {
pagination_ = value;
}
onChanged();
} else {
paginationBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* pagination request
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 1;
*/
public Builder clearPagination() {
if (paginationBuilder_ == null) {
pagination_ = null;
onChanged();
} else {
pagination_ = null;
paginationBuilder_ = null;
}
return this;
}
/**
*
* pagination request
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 1;
*/
public proto.cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {
onChanged();
return getPaginationFieldBuilder().getBuilder();
}
/**
*
* pagination request
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 1;
*/
public proto.cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {
if (paginationBuilder_ != null) {
return paginationBuilder_.getMessageOrBuilder();
} else {
return pagination_ == null ?
proto.cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;
}
}
/**
*
* pagination request
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
proto.cosmos.base.query.v1beta1.Pagination.PageRequest, proto.cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, proto.cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>
getPaginationFieldBuilder() {
if (paginationBuilder_ == null) {
paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
proto.cosmos.base.query.v1beta1.Pagination.PageRequest, proto.cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, proto.cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(
getPagination(),
getParentForChildren(),
isClean());
pagination_ = null;
}
return paginationBuilder_;
}
@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:tibc.core.client.v1.QueryClientStatesRequest)
}
// @@protoc_insertion_point(class_scope:tibc.core.client.v1.QueryClientStatesRequest)
private static final proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest();
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryClientStatesRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryClientStatesRequest(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 proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryClientStatesResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:tibc.core.client.v1.QueryClientStatesResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* list of stored ClientStates of the chain.
*
*
* repeated .tibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
java.util.List
getClientStatesList();
/**
*
* list of stored ClientStates of the chain.
*
*
* repeated .tibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
proto.tibc.core.client.v1.Client.IdentifiedClientState getClientStates(int index);
/**
*
* list of stored ClientStates of the chain.
*
*
* repeated .tibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
int getClientStatesCount();
/**
*
* list of stored ClientStates of the chain.
*
*
* repeated .tibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
java.util.List extends proto.tibc.core.client.v1.Client.IdentifiedClientStateOrBuilder>
getClientStatesOrBuilderList();
/**
*
* list of stored ClientStates of the chain.
*
*
* repeated .tibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
proto.tibc.core.client.v1.Client.IdentifiedClientStateOrBuilder getClientStatesOrBuilder(
int index);
/**
*
* pagination response
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return Whether the pagination field is set.
*/
boolean hasPagination();
/**
*
* pagination response
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return The pagination.
*/
proto.cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();
/**
*
* pagination response
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
proto.cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();
}
/**
*
* QueryClientStatesResponse is the response type for the Query/ClientStates RPC
* method.
*
*
* Protobuf type {@code tibc.core.client.v1.QueryClientStatesResponse}
*/
public static final class QueryClientStatesResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tibc.core.client.v1.QueryClientStatesResponse)
QueryClientStatesResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryClientStatesResponse.newBuilder() to construct.
private QueryClientStatesResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryClientStatesResponse() {
clientStates_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryClientStatesResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryClientStatesResponse(
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: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
clientStates_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
clientStates_.add(
input.readMessage(proto.tibc.core.client.v1.Client.IdentifiedClientState.parser(), extensionRegistry));
break;
}
case 18: {
proto.cosmos.base.query.v1beta1.Pagination.PageResponse.Builder subBuilder = null;
if (pagination_ != null) {
subBuilder = pagination_.toBuilder();
}
pagination_ = input.readMessage(proto.cosmos.base.query.v1beta1.Pagination.PageResponse.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(pagination_);
pagination_ = subBuilder.buildPartial();
}
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)) {
clientStates_ = java.util.Collections.unmodifiableList(clientStates_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryClientStatesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryClientStatesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse.class, proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse.Builder.class);
}
public static final int CLIENT_STATES_FIELD_NUMBER = 1;
private java.util.List clientStates_;
/**
*
* list of stored ClientStates of the chain.
*
*
* repeated .tibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
@java.lang.Override
public java.util.List getClientStatesList() {
return clientStates_;
}
/**
*
* list of stored ClientStates of the chain.
*
*
* repeated .tibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
@java.lang.Override
public java.util.List extends proto.tibc.core.client.v1.Client.IdentifiedClientStateOrBuilder>
getClientStatesOrBuilderList() {
return clientStates_;
}
/**
*
* list of stored ClientStates of the chain.
*
*
* repeated .tibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
@java.lang.Override
public int getClientStatesCount() {
return clientStates_.size();
}
/**
*
* list of stored ClientStates of the chain.
*
*
* repeated .tibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
@java.lang.Override
public proto.tibc.core.client.v1.Client.IdentifiedClientState getClientStates(int index) {
return clientStates_.get(index);
}
/**
*
* list of stored ClientStates of the chain.
*
*
* repeated .tibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
@java.lang.Override
public proto.tibc.core.client.v1.Client.IdentifiedClientStateOrBuilder getClientStatesOrBuilder(
int index) {
return clientStates_.get(index);
}
public static final int PAGINATION_FIELD_NUMBER = 2;
private proto.cosmos.base.query.v1beta1.Pagination.PageResponse pagination_;
/**
*
* pagination response
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return Whether the pagination field is set.
*/
@java.lang.Override
public boolean hasPagination() {
return pagination_ != null;
}
/**
*
* pagination response
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return The pagination.
*/
@java.lang.Override
public proto.cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {
return pagination_ == null ? proto.cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;
}
/**
*
* pagination response
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
@java.lang.Override
public proto.cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {
return getPagination();
}
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 {
for (int i = 0; i < clientStates_.size(); i++) {
output.writeMessage(1, clientStates_.get(i));
}
if (pagination_ != null) {
output.writeMessage(2, getPagination());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < clientStates_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, clientStates_.get(i));
}
if (pagination_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPagination());
}
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 proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse)) {
return super.equals(obj);
}
proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse other = (proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse) obj;
if (!getClientStatesList()
.equals(other.getClientStatesList())) return false;
if (hasPagination() != other.hasPagination()) return false;
if (hasPagination()) {
if (!getPagination()
.equals(other.getPagination())) 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 (getClientStatesCount() > 0) {
hash = (37 * hash) + CLIENT_STATES_FIELD_NUMBER;
hash = (53 * hash) + getClientStatesList().hashCode();
}
if (hasPagination()) {
hash = (37 * hash) + PAGINATION_FIELD_NUMBER;
hash = (53 * hash) + getPagination().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse 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 proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse 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 proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse 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(proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse 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;
}
/**
*
* QueryClientStatesResponse is the response type for the Query/ClientStates RPC
* method.
*
*
* Protobuf type {@code tibc.core.client.v1.QueryClientStatesResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tibc.core.client.v1.QueryClientStatesResponse)
proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryClientStatesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryClientStatesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse.class, proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse.Builder.class);
}
// Construct using proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getClientStatesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (clientStatesBuilder_ == null) {
clientStates_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
clientStatesBuilder_.clear();
}
if (paginationBuilder_ == null) {
pagination_ = null;
} else {
pagination_ = null;
paginationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryClientStatesResponse_descriptor;
}
@java.lang.Override
public proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse getDefaultInstanceForType() {
return proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse.getDefaultInstance();
}
@java.lang.Override
public proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse build() {
proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse buildPartial() {
proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse result = new proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse(this);
int from_bitField0_ = bitField0_;
if (clientStatesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
clientStates_ = java.util.Collections.unmodifiableList(clientStates_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.clientStates_ = clientStates_;
} else {
result.clientStates_ = clientStatesBuilder_.build();
}
if (paginationBuilder_ == null) {
result.pagination_ = pagination_;
} else {
result.pagination_ = paginationBuilder_.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 proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse) {
return mergeFrom((proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse other) {
if (other == proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse.getDefaultInstance()) return this;
if (clientStatesBuilder_ == null) {
if (!other.clientStates_.isEmpty()) {
if (clientStates_.isEmpty()) {
clientStates_ = other.clientStates_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureClientStatesIsMutable();
clientStates_.addAll(other.clientStates_);
}
onChanged();
}
} else {
if (!other.clientStates_.isEmpty()) {
if (clientStatesBuilder_.isEmpty()) {
clientStatesBuilder_.dispose();
clientStatesBuilder_ = null;
clientStates_ = other.clientStates_;
bitField0_ = (bitField0_ & ~0x00000001);
clientStatesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getClientStatesFieldBuilder() : null;
} else {
clientStatesBuilder_.addAllMessages(other.clientStates_);
}
}
}
if (other.hasPagination()) {
mergePagination(other.getPagination());
}
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 {
proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List clientStates_ =
java.util.Collections.emptyList();
private void ensureClientStatesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
clientStates_ = new java.util.ArrayList(clientStates_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
proto.tibc.core.client.v1.Client.IdentifiedClientState, proto.tibc.core.client.v1.Client.IdentifiedClientState.Builder, proto.tibc.core.client.v1.Client.IdentifiedClientStateOrBuilder> clientStatesBuilder_;
/**
*
* list of stored ClientStates of the chain.
*
*
* repeated .tibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public java.util.List getClientStatesList() {
if (clientStatesBuilder_ == null) {
return java.util.Collections.unmodifiableList(clientStates_);
} else {
return clientStatesBuilder_.getMessageList();
}
}
/**
*
* list of stored ClientStates of the chain.
*
*
* repeated .tibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public int getClientStatesCount() {
if (clientStatesBuilder_ == null) {
return clientStates_.size();
} else {
return clientStatesBuilder_.getCount();
}
}
/**
*
* list of stored ClientStates of the chain.
*
*
* repeated .tibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public proto.tibc.core.client.v1.Client.IdentifiedClientState getClientStates(int index) {
if (clientStatesBuilder_ == null) {
return clientStates_.get(index);
} else {
return clientStatesBuilder_.getMessage(index);
}
}
/**
*
* list of stored ClientStates of the chain.
*
*
* repeated .tibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public Builder setClientStates(
int index, proto.tibc.core.client.v1.Client.IdentifiedClientState value) {
if (clientStatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClientStatesIsMutable();
clientStates_.set(index, value);
onChanged();
} else {
clientStatesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* list of stored ClientStates of the chain.
*
*
* repeated .tibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public Builder setClientStates(
int index, proto.tibc.core.client.v1.Client.IdentifiedClientState.Builder builderForValue) {
if (clientStatesBuilder_ == null) {
ensureClientStatesIsMutable();
clientStates_.set(index, builderForValue.build());
onChanged();
} else {
clientStatesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* list of stored ClientStates of the chain.
*
*
* repeated .tibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public Builder addClientStates(proto.tibc.core.client.v1.Client.IdentifiedClientState value) {
if (clientStatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClientStatesIsMutable();
clientStates_.add(value);
onChanged();
} else {
clientStatesBuilder_.addMessage(value);
}
return this;
}
/**
*
* list of stored ClientStates of the chain.
*
*
* repeated .tibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public Builder addClientStates(
int index, proto.tibc.core.client.v1.Client.IdentifiedClientState value) {
if (clientStatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClientStatesIsMutable();
clientStates_.add(index, value);
onChanged();
} else {
clientStatesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* list of stored ClientStates of the chain.
*
*
* repeated .tibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public Builder addClientStates(
proto.tibc.core.client.v1.Client.IdentifiedClientState.Builder builderForValue) {
if (clientStatesBuilder_ == null) {
ensureClientStatesIsMutable();
clientStates_.add(builderForValue.build());
onChanged();
} else {
clientStatesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* list of stored ClientStates of the chain.
*
*
* repeated .tibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public Builder addClientStates(
int index, proto.tibc.core.client.v1.Client.IdentifiedClientState.Builder builderForValue) {
if (clientStatesBuilder_ == null) {
ensureClientStatesIsMutable();
clientStates_.add(index, builderForValue.build());
onChanged();
} else {
clientStatesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* list of stored ClientStates of the chain.
*
*
* repeated .tibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public Builder addAllClientStates(
java.lang.Iterable extends proto.tibc.core.client.v1.Client.IdentifiedClientState> values) {
if (clientStatesBuilder_ == null) {
ensureClientStatesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, clientStates_);
onChanged();
} else {
clientStatesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* list of stored ClientStates of the chain.
*
*
* repeated .tibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public Builder clearClientStates() {
if (clientStatesBuilder_ == null) {
clientStates_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
clientStatesBuilder_.clear();
}
return this;
}
/**
*
* list of stored ClientStates of the chain.
*
*
* repeated .tibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public Builder removeClientStates(int index) {
if (clientStatesBuilder_ == null) {
ensureClientStatesIsMutable();
clientStates_.remove(index);
onChanged();
} else {
clientStatesBuilder_.remove(index);
}
return this;
}
/**
*
* list of stored ClientStates of the chain.
*
*
* repeated .tibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public proto.tibc.core.client.v1.Client.IdentifiedClientState.Builder getClientStatesBuilder(
int index) {
return getClientStatesFieldBuilder().getBuilder(index);
}
/**
*
* list of stored ClientStates of the chain.
*
*
* repeated .tibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public proto.tibc.core.client.v1.Client.IdentifiedClientStateOrBuilder getClientStatesOrBuilder(
int index) {
if (clientStatesBuilder_ == null) {
return clientStates_.get(index); } else {
return clientStatesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* list of stored ClientStates of the chain.
*
*
* repeated .tibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public java.util.List extends proto.tibc.core.client.v1.Client.IdentifiedClientStateOrBuilder>
getClientStatesOrBuilderList() {
if (clientStatesBuilder_ != null) {
return clientStatesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(clientStates_);
}
}
/**
*
* list of stored ClientStates of the chain.
*
*
* repeated .tibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public proto.tibc.core.client.v1.Client.IdentifiedClientState.Builder addClientStatesBuilder() {
return getClientStatesFieldBuilder().addBuilder(
proto.tibc.core.client.v1.Client.IdentifiedClientState.getDefaultInstance());
}
/**
*
* list of stored ClientStates of the chain.
*
*
* repeated .tibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public proto.tibc.core.client.v1.Client.IdentifiedClientState.Builder addClientStatesBuilder(
int index) {
return getClientStatesFieldBuilder().addBuilder(
index, proto.tibc.core.client.v1.Client.IdentifiedClientState.getDefaultInstance());
}
/**
*
* list of stored ClientStates of the chain.
*
*
* repeated .tibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"];
*/
public java.util.List
getClientStatesBuilderList() {
return getClientStatesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
proto.tibc.core.client.v1.Client.IdentifiedClientState, proto.tibc.core.client.v1.Client.IdentifiedClientState.Builder, proto.tibc.core.client.v1.Client.IdentifiedClientStateOrBuilder>
getClientStatesFieldBuilder() {
if (clientStatesBuilder_ == null) {
clientStatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
proto.tibc.core.client.v1.Client.IdentifiedClientState, proto.tibc.core.client.v1.Client.IdentifiedClientState.Builder, proto.tibc.core.client.v1.Client.IdentifiedClientStateOrBuilder>(
clientStates_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
clientStates_ = null;
}
return clientStatesBuilder_;
}
private proto.cosmos.base.query.v1beta1.Pagination.PageResponse pagination_;
private com.google.protobuf.SingleFieldBuilderV3<
proto.cosmos.base.query.v1beta1.Pagination.PageResponse, proto.cosmos.base.query.v1beta1.Pagination.PageResponse.Builder, proto.cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder> paginationBuilder_;
/**
*
* pagination response
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return Whether the pagination field is set.
*/
public boolean hasPagination() {
return paginationBuilder_ != null || pagination_ != null;
}
/**
*
* pagination response
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return The pagination.
*/
public proto.cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {
if (paginationBuilder_ == null) {
return pagination_ == null ? proto.cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;
} else {
return paginationBuilder_.getMessage();
}
}
/**
*
* pagination response
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public Builder setPagination(proto.cosmos.base.query.v1beta1.Pagination.PageResponse value) {
if (paginationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pagination_ = value;
onChanged();
} else {
paginationBuilder_.setMessage(value);
}
return this;
}
/**
*
* pagination response
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public Builder setPagination(
proto.cosmos.base.query.v1beta1.Pagination.PageResponse.Builder builderForValue) {
if (paginationBuilder_ == null) {
pagination_ = builderForValue.build();
onChanged();
} else {
paginationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* pagination response
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public Builder mergePagination(proto.cosmos.base.query.v1beta1.Pagination.PageResponse value) {
if (paginationBuilder_ == null) {
if (pagination_ != null) {
pagination_ =
proto.cosmos.base.query.v1beta1.Pagination.PageResponse.newBuilder(pagination_).mergeFrom(value).buildPartial();
} else {
pagination_ = value;
}
onChanged();
} else {
paginationBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* pagination response
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public Builder clearPagination() {
if (paginationBuilder_ == null) {
pagination_ = null;
onChanged();
} else {
pagination_ = null;
paginationBuilder_ = null;
}
return this;
}
/**
*
* pagination response
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public proto.cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {
onChanged();
return getPaginationFieldBuilder().getBuilder();
}
/**
*
* pagination response
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public proto.cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {
if (paginationBuilder_ != null) {
return paginationBuilder_.getMessageOrBuilder();
} else {
return pagination_ == null ?
proto.cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;
}
}
/**
*
* pagination response
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
proto.cosmos.base.query.v1beta1.Pagination.PageResponse, proto.cosmos.base.query.v1beta1.Pagination.PageResponse.Builder, proto.cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder>
getPaginationFieldBuilder() {
if (paginationBuilder_ == null) {
paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
proto.cosmos.base.query.v1beta1.Pagination.PageResponse, proto.cosmos.base.query.v1beta1.Pagination.PageResponse.Builder, proto.cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder>(
getPagination(),
getParentForChildren(),
isClean());
pagination_ = null;
}
return paginationBuilder_;
}
@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:tibc.core.client.v1.QueryClientStatesResponse)
}
// @@protoc_insertion_point(class_scope:tibc.core.client.v1.QueryClientStatesResponse)
private static final proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse();
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryClientStatesResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryClientStatesResponse(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 proto.tibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryConsensusStateRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:tibc.core.client.v1.QueryConsensusStateRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return The chainName.
*/
java.lang.String getChainName();
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return The bytes for chainName.
*/
com.google.protobuf.ByteString
getChainNameBytes();
/**
*
* consensus state revision number
*
*
* uint64 revision_number = 2;
* @return The revisionNumber.
*/
long getRevisionNumber();
/**
*
* consensus state revision height
*
*
* uint64 revision_height = 3;
* @return The revisionHeight.
*/
long getRevisionHeight();
/**
*
* latest_height overrrides the height field and queries the latest stored
* ConsensusState
*
*
* bool latest_height = 4;
* @return The latestHeight.
*/
boolean getLatestHeight();
}
/**
*
* QueryConsensusStateRequest is the request type for the Query/ConsensusState
* RPC method. Besides the consensus state, it includes a proof and the height
* from which the proof was retrieved.
*
*
* Protobuf type {@code tibc.core.client.v1.QueryConsensusStateRequest}
*/
public static final class QueryConsensusStateRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tibc.core.client.v1.QueryConsensusStateRequest)
QueryConsensusStateRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryConsensusStateRequest.newBuilder() to construct.
private QueryConsensusStateRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryConsensusStateRequest() {
chainName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryConsensusStateRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryConsensusStateRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
java.lang.String s = input.readStringRequireUtf8();
chainName_ = s;
break;
}
case 16: {
revisionNumber_ = input.readUInt64();
break;
}
case 24: {
revisionHeight_ = input.readUInt64();
break;
}
case 32: {
latestHeight_ = input.readBool();
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryConsensusStateRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryConsensusStateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest.class, proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest.Builder.class);
}
public static final int CHAIN_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object chainName_;
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return The chainName.
*/
@java.lang.Override
public java.lang.String getChainName() {
java.lang.Object ref = chainName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
chainName_ = s;
return s;
}
}
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return The bytes for chainName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getChainNameBytes() {
java.lang.Object ref = chainName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
chainName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REVISION_NUMBER_FIELD_NUMBER = 2;
private long revisionNumber_;
/**
*
* consensus state revision number
*
*
* uint64 revision_number = 2;
* @return The revisionNumber.
*/
@java.lang.Override
public long getRevisionNumber() {
return revisionNumber_;
}
public static final int REVISION_HEIGHT_FIELD_NUMBER = 3;
private long revisionHeight_;
/**
*
* consensus state revision height
*
*
* uint64 revision_height = 3;
* @return The revisionHeight.
*/
@java.lang.Override
public long getRevisionHeight() {
return revisionHeight_;
}
public static final int LATEST_HEIGHT_FIELD_NUMBER = 4;
private boolean latestHeight_;
/**
*
* latest_height overrrides the height field and queries the latest stored
* ConsensusState
*
*
* bool latest_height = 4;
* @return The latestHeight.
*/
@java.lang.Override
public boolean getLatestHeight() {
return latestHeight_;
}
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 (!getChainNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, chainName_);
}
if (revisionNumber_ != 0L) {
output.writeUInt64(2, revisionNumber_);
}
if (revisionHeight_ != 0L) {
output.writeUInt64(3, revisionHeight_);
}
if (latestHeight_ != false) {
output.writeBool(4, latestHeight_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getChainNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, chainName_);
}
if (revisionNumber_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, revisionNumber_);
}
if (revisionHeight_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, revisionHeight_);
}
if (latestHeight_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, latestHeight_);
}
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 proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest)) {
return super.equals(obj);
}
proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest other = (proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest) obj;
if (!getChainName()
.equals(other.getChainName())) return false;
if (getRevisionNumber()
!= other.getRevisionNumber()) return false;
if (getRevisionHeight()
!= other.getRevisionHeight()) return false;
if (getLatestHeight()
!= other.getLatestHeight()) 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();
hash = (37 * hash) + CHAIN_NAME_FIELD_NUMBER;
hash = (53 * hash) + getChainName().hashCode();
hash = (37 * hash) + REVISION_NUMBER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRevisionNumber());
hash = (37 * hash) + REVISION_HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRevisionHeight());
hash = (37 * hash) + LATEST_HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getLatestHeight());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest 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 proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest 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 proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest 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(proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest 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;
}
/**
*
* QueryConsensusStateRequest is the request type for the Query/ConsensusState
* RPC method. Besides the consensus state, it includes a proof and the height
* from which the proof was retrieved.
*
*
* Protobuf type {@code tibc.core.client.v1.QueryConsensusStateRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tibc.core.client.v1.QueryConsensusStateRequest)
proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryConsensusStateRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryConsensusStateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest.class, proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest.Builder.class);
}
// Construct using proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
chainName_ = "";
revisionNumber_ = 0L;
revisionHeight_ = 0L;
latestHeight_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryConsensusStateRequest_descriptor;
}
@java.lang.Override
public proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest getDefaultInstanceForType() {
return proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest.getDefaultInstance();
}
@java.lang.Override
public proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest build() {
proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest buildPartial() {
proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest result = new proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest(this);
result.chainName_ = chainName_;
result.revisionNumber_ = revisionNumber_;
result.revisionHeight_ = revisionHeight_;
result.latestHeight_ = latestHeight_;
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 proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest) {
return mergeFrom((proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest other) {
if (other == proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest.getDefaultInstance()) return this;
if (!other.getChainName().isEmpty()) {
chainName_ = other.chainName_;
onChanged();
}
if (other.getRevisionNumber() != 0L) {
setRevisionNumber(other.getRevisionNumber());
}
if (other.getRevisionHeight() != 0L) {
setRevisionHeight(other.getRevisionHeight());
}
if (other.getLatestHeight() != false) {
setLatestHeight(other.getLatestHeight());
}
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 {
proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object chainName_ = "";
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return The chainName.
*/
public java.lang.String getChainName() {
java.lang.Object ref = chainName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
chainName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return The bytes for chainName.
*/
public com.google.protobuf.ByteString
getChainNameBytes() {
java.lang.Object ref = chainName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
chainName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* client identifier
*
*
* string chain_name = 1;
* @param value The chainName to set.
* @return This builder for chaining.
*/
public Builder setChainName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
chainName_ = value;
onChanged();
return this;
}
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return This builder for chaining.
*/
public Builder clearChainName() {
chainName_ = getDefaultInstance().getChainName();
onChanged();
return this;
}
/**
*
* client identifier
*
*
* string chain_name = 1;
* @param value The bytes for chainName to set.
* @return This builder for chaining.
*/
public Builder setChainNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
chainName_ = value;
onChanged();
return this;
}
private long revisionNumber_ ;
/**
*
* consensus state revision number
*
*
* uint64 revision_number = 2;
* @return The revisionNumber.
*/
@java.lang.Override
public long getRevisionNumber() {
return revisionNumber_;
}
/**
*
* consensus state revision number
*
*
* uint64 revision_number = 2;
* @param value The revisionNumber to set.
* @return This builder for chaining.
*/
public Builder setRevisionNumber(long value) {
revisionNumber_ = value;
onChanged();
return this;
}
/**
*
* consensus state revision number
*
*
* uint64 revision_number = 2;
* @return This builder for chaining.
*/
public Builder clearRevisionNumber() {
revisionNumber_ = 0L;
onChanged();
return this;
}
private long revisionHeight_ ;
/**
*
* consensus state revision height
*
*
* uint64 revision_height = 3;
* @return The revisionHeight.
*/
@java.lang.Override
public long getRevisionHeight() {
return revisionHeight_;
}
/**
*
* consensus state revision height
*
*
* uint64 revision_height = 3;
* @param value The revisionHeight to set.
* @return This builder for chaining.
*/
public Builder setRevisionHeight(long value) {
revisionHeight_ = value;
onChanged();
return this;
}
/**
*
* consensus state revision height
*
*
* uint64 revision_height = 3;
* @return This builder for chaining.
*/
public Builder clearRevisionHeight() {
revisionHeight_ = 0L;
onChanged();
return this;
}
private boolean latestHeight_ ;
/**
*
* latest_height overrrides the height field and queries the latest stored
* ConsensusState
*
*
* bool latest_height = 4;
* @return The latestHeight.
*/
@java.lang.Override
public boolean getLatestHeight() {
return latestHeight_;
}
/**
*
* latest_height overrrides the height field and queries the latest stored
* ConsensusState
*
*
* bool latest_height = 4;
* @param value The latestHeight to set.
* @return This builder for chaining.
*/
public Builder setLatestHeight(boolean value) {
latestHeight_ = value;
onChanged();
return this;
}
/**
*
* latest_height overrrides the height field and queries the latest stored
* ConsensusState
*
*
* bool latest_height = 4;
* @return This builder for chaining.
*/
public Builder clearLatestHeight() {
latestHeight_ = false;
onChanged();
return this;
}
@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:tibc.core.client.v1.QueryConsensusStateRequest)
}
// @@protoc_insertion_point(class_scope:tibc.core.client.v1.QueryConsensusStateRequest)
private static final proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest();
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryConsensusStateRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryConsensusStateRequest(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 proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryConsensusStateResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:tibc.core.client.v1.QueryConsensusStateResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* consensus state associated with the client identifier at the given height
*
*
* .google.protobuf.Any consensus_state = 1;
* @return Whether the consensusState field is set.
*/
boolean hasConsensusState();
/**
*
* consensus state associated with the client identifier at the given height
*
*
* .google.protobuf.Any consensus_state = 1;
* @return The consensusState.
*/
com.google.protobuf.Any getConsensusState();
/**
*
* consensus state associated with the client identifier at the given height
*
*
* .google.protobuf.Any consensus_state = 1;
*/
com.google.protobuf.AnyOrBuilder getConsensusStateOrBuilder();
/**
*
* merkle proof of existence
*
*
* bytes proof = 2;
* @return The proof.
*/
com.google.protobuf.ByteString getProof();
/**
*
* height at which the proof was retrieved
*
*
* .tibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false];
* @return Whether the proofHeight field is set.
*/
boolean hasProofHeight();
/**
*
* height at which the proof was retrieved
*
*
* .tibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false];
* @return The proofHeight.
*/
proto.tibc.core.client.v1.Client.Height getProofHeight();
/**
*
* height at which the proof was retrieved
*
*
* .tibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false];
*/
proto.tibc.core.client.v1.Client.HeightOrBuilder getProofHeightOrBuilder();
}
/**
*
* QueryConsensusStateResponse is the response type for the Query/ConsensusState
* RPC method
*
*
* Protobuf type {@code tibc.core.client.v1.QueryConsensusStateResponse}
*/
public static final class QueryConsensusStateResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tibc.core.client.v1.QueryConsensusStateResponse)
QueryConsensusStateResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryConsensusStateResponse.newBuilder() to construct.
private QueryConsensusStateResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryConsensusStateResponse() {
proof_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryConsensusStateResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryConsensusStateResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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.google.protobuf.Any.Builder subBuilder = null;
if (consensusState_ != null) {
subBuilder = consensusState_.toBuilder();
}
consensusState_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(consensusState_);
consensusState_ = subBuilder.buildPartial();
}
break;
}
case 18: {
proof_ = input.readBytes();
break;
}
case 26: {
proto.tibc.core.client.v1.Client.Height.Builder subBuilder = null;
if (proofHeight_ != null) {
subBuilder = proofHeight_.toBuilder();
}
proofHeight_ = input.readMessage(proto.tibc.core.client.v1.Client.Height.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(proofHeight_);
proofHeight_ = subBuilder.buildPartial();
}
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryConsensusStateResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryConsensusStateResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse.class, proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse.Builder.class);
}
public static final int CONSENSUS_STATE_FIELD_NUMBER = 1;
private com.google.protobuf.Any consensusState_;
/**
*
* consensus state associated with the client identifier at the given height
*
*
* .google.protobuf.Any consensus_state = 1;
* @return Whether the consensusState field is set.
*/
@java.lang.Override
public boolean hasConsensusState() {
return consensusState_ != null;
}
/**
*
* consensus state associated with the client identifier at the given height
*
*
* .google.protobuf.Any consensus_state = 1;
* @return The consensusState.
*/
@java.lang.Override
public com.google.protobuf.Any getConsensusState() {
return consensusState_ == null ? com.google.protobuf.Any.getDefaultInstance() : consensusState_;
}
/**
*
* consensus state associated with the client identifier at the given height
*
*
* .google.protobuf.Any consensus_state = 1;
*/
@java.lang.Override
public com.google.protobuf.AnyOrBuilder getConsensusStateOrBuilder() {
return getConsensusState();
}
public static final int PROOF_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString proof_;
/**
*
* merkle proof of existence
*
*
* bytes proof = 2;
* @return The proof.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProof() {
return proof_;
}
public static final int PROOF_HEIGHT_FIELD_NUMBER = 3;
private proto.tibc.core.client.v1.Client.Height proofHeight_;
/**
*
* height at which the proof was retrieved
*
*
* .tibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false];
* @return Whether the proofHeight field is set.
*/
@java.lang.Override
public boolean hasProofHeight() {
return proofHeight_ != null;
}
/**
*
* height at which the proof was retrieved
*
*
* .tibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false];
* @return The proofHeight.
*/
@java.lang.Override
public proto.tibc.core.client.v1.Client.Height getProofHeight() {
return proofHeight_ == null ? proto.tibc.core.client.v1.Client.Height.getDefaultInstance() : proofHeight_;
}
/**
*
* height at which the proof was retrieved
*
*
* .tibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public proto.tibc.core.client.v1.Client.HeightOrBuilder getProofHeightOrBuilder() {
return getProofHeight();
}
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 (consensusState_ != null) {
output.writeMessage(1, getConsensusState());
}
if (!proof_.isEmpty()) {
output.writeBytes(2, proof_);
}
if (proofHeight_ != null) {
output.writeMessage(3, getProofHeight());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (consensusState_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getConsensusState());
}
if (!proof_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, proof_);
}
if (proofHeight_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getProofHeight());
}
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 proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse)) {
return super.equals(obj);
}
proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse other = (proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse) obj;
if (hasConsensusState() != other.hasConsensusState()) return false;
if (hasConsensusState()) {
if (!getConsensusState()
.equals(other.getConsensusState())) return false;
}
if (!getProof()
.equals(other.getProof())) return false;
if (hasProofHeight() != other.hasProofHeight()) return false;
if (hasProofHeight()) {
if (!getProofHeight()
.equals(other.getProofHeight())) 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 (hasConsensusState()) {
hash = (37 * hash) + CONSENSUS_STATE_FIELD_NUMBER;
hash = (53 * hash) + getConsensusState().hashCode();
}
hash = (37 * hash) + PROOF_FIELD_NUMBER;
hash = (53 * hash) + getProof().hashCode();
if (hasProofHeight()) {
hash = (37 * hash) + PROOF_HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + getProofHeight().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse 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 proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse 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 proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse 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(proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse 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;
}
/**
*
* QueryConsensusStateResponse is the response type for the Query/ConsensusState
* RPC method
*
*
* Protobuf type {@code tibc.core.client.v1.QueryConsensusStateResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tibc.core.client.v1.QueryConsensusStateResponse)
proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryConsensusStateResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryConsensusStateResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse.class, proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse.Builder.class);
}
// Construct using proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (consensusStateBuilder_ == null) {
consensusState_ = null;
} else {
consensusState_ = null;
consensusStateBuilder_ = null;
}
proof_ = com.google.protobuf.ByteString.EMPTY;
if (proofHeightBuilder_ == null) {
proofHeight_ = null;
} else {
proofHeight_ = null;
proofHeightBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryConsensusStateResponse_descriptor;
}
@java.lang.Override
public proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse getDefaultInstanceForType() {
return proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse.getDefaultInstance();
}
@java.lang.Override
public proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse build() {
proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse buildPartial() {
proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse result = new proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse(this);
if (consensusStateBuilder_ == null) {
result.consensusState_ = consensusState_;
} else {
result.consensusState_ = consensusStateBuilder_.build();
}
result.proof_ = proof_;
if (proofHeightBuilder_ == null) {
result.proofHeight_ = proofHeight_;
} else {
result.proofHeight_ = proofHeightBuilder_.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 proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse) {
return mergeFrom((proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse other) {
if (other == proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse.getDefaultInstance()) return this;
if (other.hasConsensusState()) {
mergeConsensusState(other.getConsensusState());
}
if (other.getProof() != com.google.protobuf.ByteString.EMPTY) {
setProof(other.getProof());
}
if (other.hasProofHeight()) {
mergeProofHeight(other.getProofHeight());
}
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 {
proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.Any consensusState_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> consensusStateBuilder_;
/**
*
* consensus state associated with the client identifier at the given height
*
*
* .google.protobuf.Any consensus_state = 1;
* @return Whether the consensusState field is set.
*/
public boolean hasConsensusState() {
return consensusStateBuilder_ != null || consensusState_ != null;
}
/**
*
* consensus state associated with the client identifier at the given height
*
*
* .google.protobuf.Any consensus_state = 1;
* @return The consensusState.
*/
public com.google.protobuf.Any getConsensusState() {
if (consensusStateBuilder_ == null) {
return consensusState_ == null ? com.google.protobuf.Any.getDefaultInstance() : consensusState_;
} else {
return consensusStateBuilder_.getMessage();
}
}
/**
*
* consensus state associated with the client identifier at the given height
*
*
* .google.protobuf.Any consensus_state = 1;
*/
public Builder setConsensusState(com.google.protobuf.Any value) {
if (consensusStateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
consensusState_ = value;
onChanged();
} else {
consensusStateBuilder_.setMessage(value);
}
return this;
}
/**
*
* consensus state associated with the client identifier at the given height
*
*
* .google.protobuf.Any consensus_state = 1;
*/
public Builder setConsensusState(
com.google.protobuf.Any.Builder builderForValue) {
if (consensusStateBuilder_ == null) {
consensusState_ = builderForValue.build();
onChanged();
} else {
consensusStateBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* consensus state associated with the client identifier at the given height
*
*
* .google.protobuf.Any consensus_state = 1;
*/
public Builder mergeConsensusState(com.google.protobuf.Any value) {
if (consensusStateBuilder_ == null) {
if (consensusState_ != null) {
consensusState_ =
com.google.protobuf.Any.newBuilder(consensusState_).mergeFrom(value).buildPartial();
} else {
consensusState_ = value;
}
onChanged();
} else {
consensusStateBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* consensus state associated with the client identifier at the given height
*
*
* .google.protobuf.Any consensus_state = 1;
*/
public Builder clearConsensusState() {
if (consensusStateBuilder_ == null) {
consensusState_ = null;
onChanged();
} else {
consensusState_ = null;
consensusStateBuilder_ = null;
}
return this;
}
/**
*
* consensus state associated with the client identifier at the given height
*
*
* .google.protobuf.Any consensus_state = 1;
*/
public com.google.protobuf.Any.Builder getConsensusStateBuilder() {
onChanged();
return getConsensusStateFieldBuilder().getBuilder();
}
/**
*
* consensus state associated with the client identifier at the given height
*
*
* .google.protobuf.Any consensus_state = 1;
*/
public com.google.protobuf.AnyOrBuilder getConsensusStateOrBuilder() {
if (consensusStateBuilder_ != null) {
return consensusStateBuilder_.getMessageOrBuilder();
} else {
return consensusState_ == null ?
com.google.protobuf.Any.getDefaultInstance() : consensusState_;
}
}
/**
*
* consensus state associated with the client identifier at the given height
*
*
* .google.protobuf.Any consensus_state = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getConsensusStateFieldBuilder() {
if (consensusStateBuilder_ == null) {
consensusStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
getConsensusState(),
getParentForChildren(),
isClean());
consensusState_ = null;
}
return consensusStateBuilder_;
}
private com.google.protobuf.ByteString proof_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* merkle proof of existence
*
*
* bytes proof = 2;
* @return The proof.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProof() {
return proof_;
}
/**
*
* merkle proof of existence
*
*
* bytes proof = 2;
* @param value The proof to set.
* @return This builder for chaining.
*/
public Builder setProof(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
proof_ = value;
onChanged();
return this;
}
/**
*
* merkle proof of existence
*
*
* bytes proof = 2;
* @return This builder for chaining.
*/
public Builder clearProof() {
proof_ = getDefaultInstance().getProof();
onChanged();
return this;
}
private proto.tibc.core.client.v1.Client.Height proofHeight_;
private com.google.protobuf.SingleFieldBuilderV3<
proto.tibc.core.client.v1.Client.Height, proto.tibc.core.client.v1.Client.Height.Builder, proto.tibc.core.client.v1.Client.HeightOrBuilder> proofHeightBuilder_;
/**
*
* height at which the proof was retrieved
*
*
* .tibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false];
* @return Whether the proofHeight field is set.
*/
public boolean hasProofHeight() {
return proofHeightBuilder_ != null || proofHeight_ != null;
}
/**
*
* height at which the proof was retrieved
*
*
* .tibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false];
* @return The proofHeight.
*/
public proto.tibc.core.client.v1.Client.Height getProofHeight() {
if (proofHeightBuilder_ == null) {
return proofHeight_ == null ? proto.tibc.core.client.v1.Client.Height.getDefaultInstance() : proofHeight_;
} else {
return proofHeightBuilder_.getMessage();
}
}
/**
*
* height at which the proof was retrieved
*
*
* .tibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false];
*/
public Builder setProofHeight(proto.tibc.core.client.v1.Client.Height value) {
if (proofHeightBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
proofHeight_ = value;
onChanged();
} else {
proofHeightBuilder_.setMessage(value);
}
return this;
}
/**
*
* height at which the proof was retrieved
*
*
* .tibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false];
*/
public Builder setProofHeight(
proto.tibc.core.client.v1.Client.Height.Builder builderForValue) {
if (proofHeightBuilder_ == null) {
proofHeight_ = builderForValue.build();
onChanged();
} else {
proofHeightBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* height at which the proof was retrieved
*
*
* .tibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false];
*/
public Builder mergeProofHeight(proto.tibc.core.client.v1.Client.Height value) {
if (proofHeightBuilder_ == null) {
if (proofHeight_ != null) {
proofHeight_ =
proto.tibc.core.client.v1.Client.Height.newBuilder(proofHeight_).mergeFrom(value).buildPartial();
} else {
proofHeight_ = value;
}
onChanged();
} else {
proofHeightBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* height at which the proof was retrieved
*
*
* .tibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false];
*/
public Builder clearProofHeight() {
if (proofHeightBuilder_ == null) {
proofHeight_ = null;
onChanged();
} else {
proofHeight_ = null;
proofHeightBuilder_ = null;
}
return this;
}
/**
*
* height at which the proof was retrieved
*
*
* .tibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false];
*/
public proto.tibc.core.client.v1.Client.Height.Builder getProofHeightBuilder() {
onChanged();
return getProofHeightFieldBuilder().getBuilder();
}
/**
*
* height at which the proof was retrieved
*
*
* .tibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false];
*/
public proto.tibc.core.client.v1.Client.HeightOrBuilder getProofHeightOrBuilder() {
if (proofHeightBuilder_ != null) {
return proofHeightBuilder_.getMessageOrBuilder();
} else {
return proofHeight_ == null ?
proto.tibc.core.client.v1.Client.Height.getDefaultInstance() : proofHeight_;
}
}
/**
*
* height at which the proof was retrieved
*
*
* .tibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false];
*/
private com.google.protobuf.SingleFieldBuilderV3<
proto.tibc.core.client.v1.Client.Height, proto.tibc.core.client.v1.Client.Height.Builder, proto.tibc.core.client.v1.Client.HeightOrBuilder>
getProofHeightFieldBuilder() {
if (proofHeightBuilder_ == null) {
proofHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
proto.tibc.core.client.v1.Client.Height, proto.tibc.core.client.v1.Client.Height.Builder, proto.tibc.core.client.v1.Client.HeightOrBuilder>(
getProofHeight(),
getParentForChildren(),
isClean());
proofHeight_ = null;
}
return proofHeightBuilder_;
}
@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:tibc.core.client.v1.QueryConsensusStateResponse)
}
// @@protoc_insertion_point(class_scope:tibc.core.client.v1.QueryConsensusStateResponse)
private static final proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse();
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryConsensusStateResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryConsensusStateResponse(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 proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryConsensusStatesRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:tibc.core.client.v1.QueryConsensusStatesRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return The chainName.
*/
java.lang.String getChainName();
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return The bytes for chainName.
*/
com.google.protobuf.ByteString
getChainNameBytes();
/**
*
* pagination request
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
* @return Whether the pagination field is set.
*/
boolean hasPagination();
/**
*
* pagination request
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
* @return The pagination.
*/
proto.cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();
/**
*
* pagination request
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
proto.cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();
}
/**
*
* QueryConsensusStatesRequest is the request type for the Query/ConsensusStates
* RPC method.
*
*
* Protobuf type {@code tibc.core.client.v1.QueryConsensusStatesRequest}
*/
public static final class QueryConsensusStatesRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tibc.core.client.v1.QueryConsensusStatesRequest)
QueryConsensusStatesRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryConsensusStatesRequest.newBuilder() to construct.
private QueryConsensusStatesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryConsensusStatesRequest() {
chainName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryConsensusStatesRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryConsensusStatesRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
java.lang.String s = input.readStringRequireUtf8();
chainName_ = s;
break;
}
case 18: {
proto.cosmos.base.query.v1beta1.Pagination.PageRequest.Builder subBuilder = null;
if (pagination_ != null) {
subBuilder = pagination_.toBuilder();
}
pagination_ = input.readMessage(proto.cosmos.base.query.v1beta1.Pagination.PageRequest.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(pagination_);
pagination_ = subBuilder.buildPartial();
}
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryConsensusStatesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryConsensusStatesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest.class, proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest.Builder.class);
}
public static final int CHAIN_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object chainName_;
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return The chainName.
*/
@java.lang.Override
public java.lang.String getChainName() {
java.lang.Object ref = chainName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
chainName_ = s;
return s;
}
}
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return The bytes for chainName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getChainNameBytes() {
java.lang.Object ref = chainName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
chainName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PAGINATION_FIELD_NUMBER = 2;
private proto.cosmos.base.query.v1beta1.Pagination.PageRequest pagination_;
/**
*
* pagination request
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
* @return Whether the pagination field is set.
*/
@java.lang.Override
public boolean hasPagination() {
return pagination_ != null;
}
/**
*
* pagination request
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
* @return The pagination.
*/
@java.lang.Override
public proto.cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {
return pagination_ == null ? proto.cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;
}
/**
*
* pagination request
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
@java.lang.Override
public proto.cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {
return getPagination();
}
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 (!getChainNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, chainName_);
}
if (pagination_ != null) {
output.writeMessage(2, getPagination());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getChainNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, chainName_);
}
if (pagination_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPagination());
}
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 proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest)) {
return super.equals(obj);
}
proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest other = (proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest) obj;
if (!getChainName()
.equals(other.getChainName())) return false;
if (hasPagination() != other.hasPagination()) return false;
if (hasPagination()) {
if (!getPagination()
.equals(other.getPagination())) 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();
hash = (37 * hash) + CHAIN_NAME_FIELD_NUMBER;
hash = (53 * hash) + getChainName().hashCode();
if (hasPagination()) {
hash = (37 * hash) + PAGINATION_FIELD_NUMBER;
hash = (53 * hash) + getPagination().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest 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 proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest 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 proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest 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(proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest 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;
}
/**
*
* QueryConsensusStatesRequest is the request type for the Query/ConsensusStates
* RPC method.
*
*
* Protobuf type {@code tibc.core.client.v1.QueryConsensusStatesRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tibc.core.client.v1.QueryConsensusStatesRequest)
proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryConsensusStatesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryConsensusStatesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest.class, proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest.Builder.class);
}
// Construct using proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
chainName_ = "";
if (paginationBuilder_ == null) {
pagination_ = null;
} else {
pagination_ = null;
paginationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryConsensusStatesRequest_descriptor;
}
@java.lang.Override
public proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest getDefaultInstanceForType() {
return proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest.getDefaultInstance();
}
@java.lang.Override
public proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest build() {
proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest buildPartial() {
proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest result = new proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest(this);
result.chainName_ = chainName_;
if (paginationBuilder_ == null) {
result.pagination_ = pagination_;
} else {
result.pagination_ = paginationBuilder_.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 proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest) {
return mergeFrom((proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest other) {
if (other == proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest.getDefaultInstance()) return this;
if (!other.getChainName().isEmpty()) {
chainName_ = other.chainName_;
onChanged();
}
if (other.hasPagination()) {
mergePagination(other.getPagination());
}
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 {
proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object chainName_ = "";
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return The chainName.
*/
public java.lang.String getChainName() {
java.lang.Object ref = chainName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
chainName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return The bytes for chainName.
*/
public com.google.protobuf.ByteString
getChainNameBytes() {
java.lang.Object ref = chainName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
chainName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* client identifier
*
*
* string chain_name = 1;
* @param value The chainName to set.
* @return This builder for chaining.
*/
public Builder setChainName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
chainName_ = value;
onChanged();
return this;
}
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return This builder for chaining.
*/
public Builder clearChainName() {
chainName_ = getDefaultInstance().getChainName();
onChanged();
return this;
}
/**
*
* client identifier
*
*
* string chain_name = 1;
* @param value The bytes for chainName to set.
* @return This builder for chaining.
*/
public Builder setChainNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
chainName_ = value;
onChanged();
return this;
}
private proto.cosmos.base.query.v1beta1.Pagination.PageRequest pagination_;
private com.google.protobuf.SingleFieldBuilderV3<
proto.cosmos.base.query.v1beta1.Pagination.PageRequest, proto.cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, proto.cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> paginationBuilder_;
/**
*
* pagination request
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
* @return Whether the pagination field is set.
*/
public boolean hasPagination() {
return paginationBuilder_ != null || pagination_ != null;
}
/**
*
* pagination request
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
* @return The pagination.
*/
public proto.cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {
if (paginationBuilder_ == null) {
return pagination_ == null ? proto.cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;
} else {
return paginationBuilder_.getMessage();
}
}
/**
*
* pagination request
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
public Builder setPagination(proto.cosmos.base.query.v1beta1.Pagination.PageRequest value) {
if (paginationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pagination_ = value;
onChanged();
} else {
paginationBuilder_.setMessage(value);
}
return this;
}
/**
*
* pagination request
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
public Builder setPagination(
proto.cosmos.base.query.v1beta1.Pagination.PageRequest.Builder builderForValue) {
if (paginationBuilder_ == null) {
pagination_ = builderForValue.build();
onChanged();
} else {
paginationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* pagination request
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
public Builder mergePagination(proto.cosmos.base.query.v1beta1.Pagination.PageRequest value) {
if (paginationBuilder_ == null) {
if (pagination_ != null) {
pagination_ =
proto.cosmos.base.query.v1beta1.Pagination.PageRequest.newBuilder(pagination_).mergeFrom(value).buildPartial();
} else {
pagination_ = value;
}
onChanged();
} else {
paginationBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* pagination request
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
public Builder clearPagination() {
if (paginationBuilder_ == null) {
pagination_ = null;
onChanged();
} else {
pagination_ = null;
paginationBuilder_ = null;
}
return this;
}
/**
*
* pagination request
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
public proto.cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {
onChanged();
return getPaginationFieldBuilder().getBuilder();
}
/**
*
* pagination request
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
public proto.cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {
if (paginationBuilder_ != null) {
return paginationBuilder_.getMessageOrBuilder();
} else {
return pagination_ == null ?
proto.cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;
}
}
/**
*
* pagination request
*
*
* .cosmos.base.query.v1beta1.PageRequest pagination = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
proto.cosmos.base.query.v1beta1.Pagination.PageRequest, proto.cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, proto.cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>
getPaginationFieldBuilder() {
if (paginationBuilder_ == null) {
paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
proto.cosmos.base.query.v1beta1.Pagination.PageRequest, proto.cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, proto.cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(
getPagination(),
getParentForChildren(),
isClean());
pagination_ = null;
}
return paginationBuilder_;
}
@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:tibc.core.client.v1.QueryConsensusStatesRequest)
}
// @@protoc_insertion_point(class_scope:tibc.core.client.v1.QueryConsensusStatesRequest)
private static final proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest();
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryConsensusStatesRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryConsensusStatesRequest(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 proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryConsensusStatesResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:tibc.core.client.v1.QueryConsensusStatesResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* consensus states associated with the identifier
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false];
*/
java.util.List
getConsensusStatesList();
/**
*
* consensus states associated with the identifier
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false];
*/
proto.tibc.core.client.v1.Client.ConsensusStateWithHeight getConsensusStates(int index);
/**
*
* consensus states associated with the identifier
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false];
*/
int getConsensusStatesCount();
/**
*
* consensus states associated with the identifier
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false];
*/
java.util.List extends proto.tibc.core.client.v1.Client.ConsensusStateWithHeightOrBuilder>
getConsensusStatesOrBuilderList();
/**
*
* consensus states associated with the identifier
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false];
*/
proto.tibc.core.client.v1.Client.ConsensusStateWithHeightOrBuilder getConsensusStatesOrBuilder(
int index);
/**
*
* pagination response
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return Whether the pagination field is set.
*/
boolean hasPagination();
/**
*
* pagination response
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return The pagination.
*/
proto.cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();
/**
*
* pagination response
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
proto.cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();
}
/**
*
* QueryConsensusStatesResponse is the response type for the
* Query/ConsensusStates RPC method
*
*
* Protobuf type {@code tibc.core.client.v1.QueryConsensusStatesResponse}
*/
public static final class QueryConsensusStatesResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tibc.core.client.v1.QueryConsensusStatesResponse)
QueryConsensusStatesResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryConsensusStatesResponse.newBuilder() to construct.
private QueryConsensusStatesResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryConsensusStatesResponse() {
consensusStates_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryConsensusStatesResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryConsensusStatesResponse(
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: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
consensusStates_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
consensusStates_.add(
input.readMessage(proto.tibc.core.client.v1.Client.ConsensusStateWithHeight.parser(), extensionRegistry));
break;
}
case 18: {
proto.cosmos.base.query.v1beta1.Pagination.PageResponse.Builder subBuilder = null;
if (pagination_ != null) {
subBuilder = pagination_.toBuilder();
}
pagination_ = input.readMessage(proto.cosmos.base.query.v1beta1.Pagination.PageResponse.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(pagination_);
pagination_ = subBuilder.buildPartial();
}
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)) {
consensusStates_ = java.util.Collections.unmodifiableList(consensusStates_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryConsensusStatesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryConsensusStatesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse.class, proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse.Builder.class);
}
public static final int CONSENSUS_STATES_FIELD_NUMBER = 1;
private java.util.List consensusStates_;
/**
*
* consensus states associated with the identifier
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public java.util.List getConsensusStatesList() {
return consensusStates_;
}
/**
*
* consensus states associated with the identifier
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public java.util.List extends proto.tibc.core.client.v1.Client.ConsensusStateWithHeightOrBuilder>
getConsensusStatesOrBuilderList() {
return consensusStates_;
}
/**
*
* consensus states associated with the identifier
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public int getConsensusStatesCount() {
return consensusStates_.size();
}
/**
*
* consensus states associated with the identifier
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public proto.tibc.core.client.v1.Client.ConsensusStateWithHeight getConsensusStates(int index) {
return consensusStates_.get(index);
}
/**
*
* consensus states associated with the identifier
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public proto.tibc.core.client.v1.Client.ConsensusStateWithHeightOrBuilder getConsensusStatesOrBuilder(
int index) {
return consensusStates_.get(index);
}
public static final int PAGINATION_FIELD_NUMBER = 2;
private proto.cosmos.base.query.v1beta1.Pagination.PageResponse pagination_;
/**
*
* pagination response
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return Whether the pagination field is set.
*/
@java.lang.Override
public boolean hasPagination() {
return pagination_ != null;
}
/**
*
* pagination response
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return The pagination.
*/
@java.lang.Override
public proto.cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {
return pagination_ == null ? proto.cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;
}
/**
*
* pagination response
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
@java.lang.Override
public proto.cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {
return getPagination();
}
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 {
for (int i = 0; i < consensusStates_.size(); i++) {
output.writeMessage(1, consensusStates_.get(i));
}
if (pagination_ != null) {
output.writeMessage(2, getPagination());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < consensusStates_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, consensusStates_.get(i));
}
if (pagination_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPagination());
}
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 proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse)) {
return super.equals(obj);
}
proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse other = (proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse) obj;
if (!getConsensusStatesList()
.equals(other.getConsensusStatesList())) return false;
if (hasPagination() != other.hasPagination()) return false;
if (hasPagination()) {
if (!getPagination()
.equals(other.getPagination())) 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 (getConsensusStatesCount() > 0) {
hash = (37 * hash) + CONSENSUS_STATES_FIELD_NUMBER;
hash = (53 * hash) + getConsensusStatesList().hashCode();
}
if (hasPagination()) {
hash = (37 * hash) + PAGINATION_FIELD_NUMBER;
hash = (53 * hash) + getPagination().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse 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 proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse 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 proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse 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(proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse 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;
}
/**
*
* QueryConsensusStatesResponse is the response type for the
* Query/ConsensusStates RPC method
*
*
* Protobuf type {@code tibc.core.client.v1.QueryConsensusStatesResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tibc.core.client.v1.QueryConsensusStatesResponse)
proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryConsensusStatesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryConsensusStatesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse.class, proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse.Builder.class);
}
// Construct using proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getConsensusStatesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (consensusStatesBuilder_ == null) {
consensusStates_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
consensusStatesBuilder_.clear();
}
if (paginationBuilder_ == null) {
pagination_ = null;
} else {
pagination_ = null;
paginationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryConsensusStatesResponse_descriptor;
}
@java.lang.Override
public proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse getDefaultInstanceForType() {
return proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse.getDefaultInstance();
}
@java.lang.Override
public proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse build() {
proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse buildPartial() {
proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse result = new proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse(this);
int from_bitField0_ = bitField0_;
if (consensusStatesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
consensusStates_ = java.util.Collections.unmodifiableList(consensusStates_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.consensusStates_ = consensusStates_;
} else {
result.consensusStates_ = consensusStatesBuilder_.build();
}
if (paginationBuilder_ == null) {
result.pagination_ = pagination_;
} else {
result.pagination_ = paginationBuilder_.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 proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse) {
return mergeFrom((proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse other) {
if (other == proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse.getDefaultInstance()) return this;
if (consensusStatesBuilder_ == null) {
if (!other.consensusStates_.isEmpty()) {
if (consensusStates_.isEmpty()) {
consensusStates_ = other.consensusStates_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureConsensusStatesIsMutable();
consensusStates_.addAll(other.consensusStates_);
}
onChanged();
}
} else {
if (!other.consensusStates_.isEmpty()) {
if (consensusStatesBuilder_.isEmpty()) {
consensusStatesBuilder_.dispose();
consensusStatesBuilder_ = null;
consensusStates_ = other.consensusStates_;
bitField0_ = (bitField0_ & ~0x00000001);
consensusStatesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getConsensusStatesFieldBuilder() : null;
} else {
consensusStatesBuilder_.addAllMessages(other.consensusStates_);
}
}
}
if (other.hasPagination()) {
mergePagination(other.getPagination());
}
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 {
proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List consensusStates_ =
java.util.Collections.emptyList();
private void ensureConsensusStatesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
consensusStates_ = new java.util.ArrayList(consensusStates_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
proto.tibc.core.client.v1.Client.ConsensusStateWithHeight, proto.tibc.core.client.v1.Client.ConsensusStateWithHeight.Builder, proto.tibc.core.client.v1.Client.ConsensusStateWithHeightOrBuilder> consensusStatesBuilder_;
/**
*
* consensus states associated with the identifier
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false];
*/
public java.util.List getConsensusStatesList() {
if (consensusStatesBuilder_ == null) {
return java.util.Collections.unmodifiableList(consensusStates_);
} else {
return consensusStatesBuilder_.getMessageList();
}
}
/**
*
* consensus states associated with the identifier
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false];
*/
public int getConsensusStatesCount() {
if (consensusStatesBuilder_ == null) {
return consensusStates_.size();
} else {
return consensusStatesBuilder_.getCount();
}
}
/**
*
* consensus states associated with the identifier
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false];
*/
public proto.tibc.core.client.v1.Client.ConsensusStateWithHeight getConsensusStates(int index) {
if (consensusStatesBuilder_ == null) {
return consensusStates_.get(index);
} else {
return consensusStatesBuilder_.getMessage(index);
}
}
/**
*
* consensus states associated with the identifier
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false];
*/
public Builder setConsensusStates(
int index, proto.tibc.core.client.v1.Client.ConsensusStateWithHeight value) {
if (consensusStatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConsensusStatesIsMutable();
consensusStates_.set(index, value);
onChanged();
} else {
consensusStatesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* consensus states associated with the identifier
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false];
*/
public Builder setConsensusStates(
int index, proto.tibc.core.client.v1.Client.ConsensusStateWithHeight.Builder builderForValue) {
if (consensusStatesBuilder_ == null) {
ensureConsensusStatesIsMutable();
consensusStates_.set(index, builderForValue.build());
onChanged();
} else {
consensusStatesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* consensus states associated with the identifier
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false];
*/
public Builder addConsensusStates(proto.tibc.core.client.v1.Client.ConsensusStateWithHeight value) {
if (consensusStatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConsensusStatesIsMutable();
consensusStates_.add(value);
onChanged();
} else {
consensusStatesBuilder_.addMessage(value);
}
return this;
}
/**
*
* consensus states associated with the identifier
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false];
*/
public Builder addConsensusStates(
int index, proto.tibc.core.client.v1.Client.ConsensusStateWithHeight value) {
if (consensusStatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConsensusStatesIsMutable();
consensusStates_.add(index, value);
onChanged();
} else {
consensusStatesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* consensus states associated with the identifier
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false];
*/
public Builder addConsensusStates(
proto.tibc.core.client.v1.Client.ConsensusStateWithHeight.Builder builderForValue) {
if (consensusStatesBuilder_ == null) {
ensureConsensusStatesIsMutable();
consensusStates_.add(builderForValue.build());
onChanged();
} else {
consensusStatesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* consensus states associated with the identifier
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false];
*/
public Builder addConsensusStates(
int index, proto.tibc.core.client.v1.Client.ConsensusStateWithHeight.Builder builderForValue) {
if (consensusStatesBuilder_ == null) {
ensureConsensusStatesIsMutable();
consensusStates_.add(index, builderForValue.build());
onChanged();
} else {
consensusStatesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* consensus states associated with the identifier
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false];
*/
public Builder addAllConsensusStates(
java.lang.Iterable extends proto.tibc.core.client.v1.Client.ConsensusStateWithHeight> values) {
if (consensusStatesBuilder_ == null) {
ensureConsensusStatesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, consensusStates_);
onChanged();
} else {
consensusStatesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* consensus states associated with the identifier
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false];
*/
public Builder clearConsensusStates() {
if (consensusStatesBuilder_ == null) {
consensusStates_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
consensusStatesBuilder_.clear();
}
return this;
}
/**
*
* consensus states associated with the identifier
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false];
*/
public Builder removeConsensusStates(int index) {
if (consensusStatesBuilder_ == null) {
ensureConsensusStatesIsMutable();
consensusStates_.remove(index);
onChanged();
} else {
consensusStatesBuilder_.remove(index);
}
return this;
}
/**
*
* consensus states associated with the identifier
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false];
*/
public proto.tibc.core.client.v1.Client.ConsensusStateWithHeight.Builder getConsensusStatesBuilder(
int index) {
return getConsensusStatesFieldBuilder().getBuilder(index);
}
/**
*
* consensus states associated with the identifier
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false];
*/
public proto.tibc.core.client.v1.Client.ConsensusStateWithHeightOrBuilder getConsensusStatesOrBuilder(
int index) {
if (consensusStatesBuilder_ == null) {
return consensusStates_.get(index); } else {
return consensusStatesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* consensus states associated with the identifier
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false];
*/
public java.util.List extends proto.tibc.core.client.v1.Client.ConsensusStateWithHeightOrBuilder>
getConsensusStatesOrBuilderList() {
if (consensusStatesBuilder_ != null) {
return consensusStatesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(consensusStates_);
}
}
/**
*
* consensus states associated with the identifier
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false];
*/
public proto.tibc.core.client.v1.Client.ConsensusStateWithHeight.Builder addConsensusStatesBuilder() {
return getConsensusStatesFieldBuilder().addBuilder(
proto.tibc.core.client.v1.Client.ConsensusStateWithHeight.getDefaultInstance());
}
/**
*
* consensus states associated with the identifier
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false];
*/
public proto.tibc.core.client.v1.Client.ConsensusStateWithHeight.Builder addConsensusStatesBuilder(
int index) {
return getConsensusStatesFieldBuilder().addBuilder(
index, proto.tibc.core.client.v1.Client.ConsensusStateWithHeight.getDefaultInstance());
}
/**
*
* consensus states associated with the identifier
*
*
* repeated .tibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false];
*/
public java.util.List
getConsensusStatesBuilderList() {
return getConsensusStatesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
proto.tibc.core.client.v1.Client.ConsensusStateWithHeight, proto.tibc.core.client.v1.Client.ConsensusStateWithHeight.Builder, proto.tibc.core.client.v1.Client.ConsensusStateWithHeightOrBuilder>
getConsensusStatesFieldBuilder() {
if (consensusStatesBuilder_ == null) {
consensusStatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
proto.tibc.core.client.v1.Client.ConsensusStateWithHeight, proto.tibc.core.client.v1.Client.ConsensusStateWithHeight.Builder, proto.tibc.core.client.v1.Client.ConsensusStateWithHeightOrBuilder>(
consensusStates_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
consensusStates_ = null;
}
return consensusStatesBuilder_;
}
private proto.cosmos.base.query.v1beta1.Pagination.PageResponse pagination_;
private com.google.protobuf.SingleFieldBuilderV3<
proto.cosmos.base.query.v1beta1.Pagination.PageResponse, proto.cosmos.base.query.v1beta1.Pagination.PageResponse.Builder, proto.cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder> paginationBuilder_;
/**
*
* pagination response
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return Whether the pagination field is set.
*/
public boolean hasPagination() {
return paginationBuilder_ != null || pagination_ != null;
}
/**
*
* pagination response
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return The pagination.
*/
public proto.cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {
if (paginationBuilder_ == null) {
return pagination_ == null ? proto.cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;
} else {
return paginationBuilder_.getMessage();
}
}
/**
*
* pagination response
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public Builder setPagination(proto.cosmos.base.query.v1beta1.Pagination.PageResponse value) {
if (paginationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pagination_ = value;
onChanged();
} else {
paginationBuilder_.setMessage(value);
}
return this;
}
/**
*
* pagination response
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public Builder setPagination(
proto.cosmos.base.query.v1beta1.Pagination.PageResponse.Builder builderForValue) {
if (paginationBuilder_ == null) {
pagination_ = builderForValue.build();
onChanged();
} else {
paginationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* pagination response
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public Builder mergePagination(proto.cosmos.base.query.v1beta1.Pagination.PageResponse value) {
if (paginationBuilder_ == null) {
if (pagination_ != null) {
pagination_ =
proto.cosmos.base.query.v1beta1.Pagination.PageResponse.newBuilder(pagination_).mergeFrom(value).buildPartial();
} else {
pagination_ = value;
}
onChanged();
} else {
paginationBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* pagination response
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public Builder clearPagination() {
if (paginationBuilder_ == null) {
pagination_ = null;
onChanged();
} else {
pagination_ = null;
paginationBuilder_ = null;
}
return this;
}
/**
*
* pagination response
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public proto.cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {
onChanged();
return getPaginationFieldBuilder().getBuilder();
}
/**
*
* pagination response
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
public proto.cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {
if (paginationBuilder_ != null) {
return paginationBuilder_.getMessageOrBuilder();
} else {
return pagination_ == null ?
proto.cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;
}
}
/**
*
* pagination response
*
*
* .cosmos.base.query.v1beta1.PageResponse pagination = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
proto.cosmos.base.query.v1beta1.Pagination.PageResponse, proto.cosmos.base.query.v1beta1.Pagination.PageResponse.Builder, proto.cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder>
getPaginationFieldBuilder() {
if (paginationBuilder_ == null) {
paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
proto.cosmos.base.query.v1beta1.Pagination.PageResponse, proto.cosmos.base.query.v1beta1.Pagination.PageResponse.Builder, proto.cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder>(
getPagination(),
getParentForChildren(),
isClean());
pagination_ = null;
}
return paginationBuilder_;
}
@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:tibc.core.client.v1.QueryConsensusStatesResponse)
}
// @@protoc_insertion_point(class_scope:tibc.core.client.v1.QueryConsensusStatesResponse)
private static final proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse();
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryConsensusStatesResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryConsensusStatesResponse(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 proto.tibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryRelayersRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:tibc.core.client.v1.QueryRelayersRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return The chainName.
*/
java.lang.String getChainName();
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return The bytes for chainName.
*/
com.google.protobuf.ByteString
getChainNameBytes();
}
/**
*
* QueryRelayersRequest is the request type for the Query/Relayers
* RPC method.
*
*
* Protobuf type {@code tibc.core.client.v1.QueryRelayersRequest}
*/
public static final class QueryRelayersRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tibc.core.client.v1.QueryRelayersRequest)
QueryRelayersRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryRelayersRequest.newBuilder() to construct.
private QueryRelayersRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryRelayersRequest() {
chainName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryRelayersRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryRelayersRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
java.lang.String s = input.readStringRequireUtf8();
chainName_ = s;
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryRelayersRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryRelayersRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest.class, proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest.Builder.class);
}
public static final int CHAIN_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object chainName_;
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return The chainName.
*/
@java.lang.Override
public java.lang.String getChainName() {
java.lang.Object ref = chainName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
chainName_ = s;
return s;
}
}
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return The bytes for chainName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getChainNameBytes() {
java.lang.Object ref = chainName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
chainName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (!getChainNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, chainName_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getChainNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, chainName_);
}
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 proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest)) {
return super.equals(obj);
}
proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest other = (proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest) obj;
if (!getChainName()
.equals(other.getChainName())) 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();
hash = (37 * hash) + CHAIN_NAME_FIELD_NUMBER;
hash = (53 * hash) + getChainName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest 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 proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest 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 proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest 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(proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest 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;
}
/**
*
* QueryRelayersRequest is the request type for the Query/Relayers
* RPC method.
*
*
* Protobuf type {@code tibc.core.client.v1.QueryRelayersRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tibc.core.client.v1.QueryRelayersRequest)
proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryRelayersRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryRelayersRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest.class, proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest.Builder.class);
}
// Construct using proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
chainName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryRelayersRequest_descriptor;
}
@java.lang.Override
public proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest getDefaultInstanceForType() {
return proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest.getDefaultInstance();
}
@java.lang.Override
public proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest build() {
proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest buildPartial() {
proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest result = new proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest(this);
result.chainName_ = chainName_;
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 proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest) {
return mergeFrom((proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest other) {
if (other == proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest.getDefaultInstance()) return this;
if (!other.getChainName().isEmpty()) {
chainName_ = other.chainName_;
onChanged();
}
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 {
proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object chainName_ = "";
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return The chainName.
*/
public java.lang.String getChainName() {
java.lang.Object ref = chainName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
chainName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return The bytes for chainName.
*/
public com.google.protobuf.ByteString
getChainNameBytes() {
java.lang.Object ref = chainName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
chainName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* client identifier
*
*
* string chain_name = 1;
* @param value The chainName to set.
* @return This builder for chaining.
*/
public Builder setChainName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
chainName_ = value;
onChanged();
return this;
}
/**
*
* client identifier
*
*
* string chain_name = 1;
* @return This builder for chaining.
*/
public Builder clearChainName() {
chainName_ = getDefaultInstance().getChainName();
onChanged();
return this;
}
/**
*
* client identifier
*
*
* string chain_name = 1;
* @param value The bytes for chainName to set.
* @return This builder for chaining.
*/
public Builder setChainNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
chainName_ = value;
onChanged();
return this;
}
@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:tibc.core.client.v1.QueryRelayersRequest)
}
// @@protoc_insertion_point(class_scope:tibc.core.client.v1.QueryRelayersRequest)
private static final proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest();
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryRelayersRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryRelayersRequest(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 proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryRelayersResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:tibc.core.client.v1.QueryRelayersResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* relayers address associated with the client
*
*
* repeated string relayers = 1;
* @return A list containing the relayers.
*/
java.util.List
getRelayersList();
/**
*
* relayers address associated with the client
*
*
* repeated string relayers = 1;
* @return The count of relayers.
*/
int getRelayersCount();
/**
*
* relayers address associated with the client
*
*
* repeated string relayers = 1;
* @param index The index of the element to return.
* @return The relayers at the given index.
*/
java.lang.String getRelayers(int index);
/**
*
* relayers address associated with the client
*
*
* repeated string relayers = 1;
* @param index The index of the value to return.
* @return The bytes of the relayers at the given index.
*/
com.google.protobuf.ByteString
getRelayersBytes(int index);
}
/**
*
* QueryConsensusStatesResponse is the response type for the
* Query/Relayers RPC method
*
*
* Protobuf type {@code tibc.core.client.v1.QueryRelayersResponse}
*/
public static final class QueryRelayersResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tibc.core.client.v1.QueryRelayersResponse)
QueryRelayersResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryRelayersResponse.newBuilder() to construct.
private QueryRelayersResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryRelayersResponse() {
relayers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryRelayersResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryRelayersResponse(
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: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
relayers_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
relayers_.add(s);
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)) {
relayers_ = relayers_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryRelayersResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryRelayersResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse.class, proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse.Builder.class);
}
public static final int RELAYERS_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList relayers_;
/**
*
* relayers address associated with the client
*
*
* repeated string relayers = 1;
* @return A list containing the relayers.
*/
public com.google.protobuf.ProtocolStringList
getRelayersList() {
return relayers_;
}
/**
*
* relayers address associated with the client
*
*
* repeated string relayers = 1;
* @return The count of relayers.
*/
public int getRelayersCount() {
return relayers_.size();
}
/**
*
* relayers address associated with the client
*
*
* repeated string relayers = 1;
* @param index The index of the element to return.
* @return The relayers at the given index.
*/
public java.lang.String getRelayers(int index) {
return relayers_.get(index);
}
/**
*
* relayers address associated with the client
*
*
* repeated string relayers = 1;
* @param index The index of the value to return.
* @return The bytes of the relayers at the given index.
*/
public com.google.protobuf.ByteString
getRelayersBytes(int index) {
return relayers_.getByteString(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 {
for (int i = 0; i < relayers_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, relayers_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < relayers_.size(); i++) {
dataSize += computeStringSizeNoTag(relayers_.getRaw(i));
}
size += dataSize;
size += 1 * getRelayersList().size();
}
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 proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse)) {
return super.equals(obj);
}
proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse other = (proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse) obj;
if (!getRelayersList()
.equals(other.getRelayersList())) 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 (getRelayersCount() > 0) {
hash = (37 * hash) + RELAYERS_FIELD_NUMBER;
hash = (53 * hash) + getRelayersList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse 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 proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse 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 proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse 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(proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse 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;
}
/**
*
* QueryConsensusStatesResponse is the response type for the
* Query/Relayers RPC method
*
*
* Protobuf type {@code tibc.core.client.v1.QueryRelayersResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tibc.core.client.v1.QueryRelayersResponse)
proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryRelayersResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryRelayersResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse.class, proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse.Builder.class);
}
// Construct using proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
relayers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return proto.tibc.core.client.v1.QueryOuterClass.internal_static_tibc_core_client_v1_QueryRelayersResponse_descriptor;
}
@java.lang.Override
public proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse getDefaultInstanceForType() {
return proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse.getDefaultInstance();
}
@java.lang.Override
public proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse build() {
proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse buildPartial() {
proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse result = new proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
relayers_ = relayers_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.relayers_ = relayers_;
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 proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse) {
return mergeFrom((proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse other) {
if (other == proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse.getDefaultInstance()) return this;
if (!other.relayers_.isEmpty()) {
if (relayers_.isEmpty()) {
relayers_ = other.relayers_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRelayersIsMutable();
relayers_.addAll(other.relayers_);
}
onChanged();
}
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 {
proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList relayers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureRelayersIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
relayers_ = new com.google.protobuf.LazyStringArrayList(relayers_);
bitField0_ |= 0x00000001;
}
}
/**
*
* relayers address associated with the client
*
*
* repeated string relayers = 1;
* @return A list containing the relayers.
*/
public com.google.protobuf.ProtocolStringList
getRelayersList() {
return relayers_.getUnmodifiableView();
}
/**
*
* relayers address associated with the client
*
*
* repeated string relayers = 1;
* @return The count of relayers.
*/
public int getRelayersCount() {
return relayers_.size();
}
/**
*
* relayers address associated with the client
*
*
* repeated string relayers = 1;
* @param index The index of the element to return.
* @return The relayers at the given index.
*/
public java.lang.String getRelayers(int index) {
return relayers_.get(index);
}
/**
*
* relayers address associated with the client
*
*
* repeated string relayers = 1;
* @param index The index of the value to return.
* @return The bytes of the relayers at the given index.
*/
public com.google.protobuf.ByteString
getRelayersBytes(int index) {
return relayers_.getByteString(index);
}
/**
*
* relayers address associated with the client
*
*
* repeated string relayers = 1;
* @param index The index to set the value at.
* @param value The relayers to set.
* @return This builder for chaining.
*/
public Builder setRelayers(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRelayersIsMutable();
relayers_.set(index, value);
onChanged();
return this;
}
/**
*
* relayers address associated with the client
*
*
* repeated string relayers = 1;
* @param value The relayers to add.
* @return This builder for chaining.
*/
public Builder addRelayers(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRelayersIsMutable();
relayers_.add(value);
onChanged();
return this;
}
/**
*
* relayers address associated with the client
*
*
* repeated string relayers = 1;
* @param values The relayers to add.
* @return This builder for chaining.
*/
public Builder addAllRelayers(
java.lang.Iterable values) {
ensureRelayersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, relayers_);
onChanged();
return this;
}
/**
*
* relayers address associated with the client
*
*
* repeated string relayers = 1;
* @return This builder for chaining.
*/
public Builder clearRelayers() {
relayers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* relayers address associated with the client
*
*
* repeated string relayers = 1;
* @param value The bytes of the relayers to add.
* @return This builder for chaining.
*/
public Builder addRelayersBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureRelayersIsMutable();
relayers_.add(value);
onChanged();
return this;
}
@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:tibc.core.client.v1.QueryRelayersResponse)
}
// @@protoc_insertion_point(class_scope:tibc.core.client.v1.QueryRelayersResponse)
private static final proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse();
}
public static proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryRelayersResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryRelayersResponse(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 proto.tibc.core.client.v1.QueryOuterClass.QueryRelayersResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tibc_core_client_v1_QueryClientStateRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tibc_core_client_v1_QueryClientStateRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tibc_core_client_v1_QueryClientStateResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tibc_core_client_v1_QueryClientStateResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tibc_core_client_v1_QueryClientStatesRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tibc_core_client_v1_QueryClientStatesRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tibc_core_client_v1_QueryClientStatesResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tibc_core_client_v1_QueryClientStatesResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tibc_core_client_v1_QueryConsensusStateRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tibc_core_client_v1_QueryConsensusStateRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tibc_core_client_v1_QueryConsensusStateResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tibc_core_client_v1_QueryConsensusStateResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tibc_core_client_v1_QueryConsensusStatesRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tibc_core_client_v1_QueryConsensusStatesRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tibc_core_client_v1_QueryConsensusStatesResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tibc_core_client_v1_QueryConsensusStatesResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tibc_core_client_v1_QueryRelayersRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tibc_core_client_v1_QueryRelayersRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tibc_core_client_v1_QueryRelayersResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tibc_core_client_v1_QueryRelayersResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\037tibc/core/client/v1/query.proto\022\023tibc." +
"core.client.v1\032*cosmos/base/query/v1beta" +
"1/pagination.proto\032 tibc/core/client/v1/" +
"client.proto\032\031google/protobuf/any.proto\032" +
"\034google/api/annotations.proto\032\024gogoproto" +
"/gogo.proto\"-\n\027QueryClientStateRequest\022\022" +
"\n\nchain_name\030\001 \001(\t\"\216\001\n\030QueryClientStateR" +
"esponse\022*\n\014client_state\030\001 \001(\0132\024.google.p" +
"rotobuf.Any\022\r\n\005proof\030\002 \001(\014\0227\n\014proof_heig" +
"ht\030\003 \001(\0132\033.tibc.core.client.v1.HeightB\004\310" +
"\336\037\000\"V\n\030QueryClientStatesRequest\022:\n\npagin" +
"ation\030\001 \001(\0132&.cosmos.base.query.v1beta1." +
"PageRequest\"\273\001\n\031QueryClientStatesRespons" +
"e\022a\n\rclient_states\030\001 \003(\0132*.tibc.core.cli" +
"ent.v1.IdentifiedClientStateB\036\310\336\037\000\252\337\037\026Id" +
"entifiedClientStates\022;\n\npagination\030\002 \001(\013" +
"2\'.cosmos.base.query.v1beta1.PageRespons" +
"e\"y\n\032QueryConsensusStateRequest\022\022\n\nchain" +
"_name\030\001 \001(\t\022\027\n\017revision_number\030\002 \001(\004\022\027\n\017" +
"revision_height\030\003 \001(\004\022\025\n\rlatest_height\030\004" +
" \001(\010\"\224\001\n\033QueryConsensusStateResponse\022-\n\017" +
"consensus_state\030\001 \001(\0132\024.google.protobuf." +
"Any\022\r\n\005proof\030\002 \001(\014\0227\n\014proof_height\030\003 \001(\013" +
"2\033.tibc.core.client.v1.HeightB\004\310\336\037\000\"m\n\033Q" +
"ueryConsensusStatesRequest\022\022\n\nchain_name" +
"\030\001 \001(\t\022:\n\npagination\030\002 \001(\0132&.cosmos.base" +
".query.v1beta1.PageRequest\"\252\001\n\034QueryCons" +
"ensusStatesResponse\022M\n\020consensus_states\030" +
"\001 \003(\0132-.tibc.core.client.v1.ConsensusSta" +
"teWithHeightB\004\310\336\037\000\022;\n\npagination\030\002 \001(\0132\'" +
".cosmos.base.query.v1beta1.PageResponse\"" +
"*\n\024QueryRelayersRequest\022\022\n\nchain_name\030\001 " +
"\001(\t\")\n\025QueryRelayersResponse\022\020\n\010relayers" +
"\030\001 \003(\t2\220\007\n\005Query\022\247\001\n\013ClientState\022,.tibc." +
"core.client.v1.QueryClientStateRequest\032-" +
".tibc.core.client.v1.QueryClientStateRes" +
"ponse\";\202\323\344\223\0025\0223/ibc/core/client/v1beta1/" +
"client_states/{chain_name}\022\235\001\n\014ClientSta" +
"tes\022-.tibc.core.client.v1.QueryClientSta" +
"tesRequest\032..tibc.core.client.v1.QueryCl" +
"ientStatesResponse\".\202\323\344\223\002(\022&/ibc/core/cl" +
"ient/v1beta1/client_states\022\347\001\n\016Consensus" +
"State\022/.tibc.core.client.v1.QueryConsens" +
"usStateRequest\0320.tibc.core.client.v1.Que" +
"ryConsensusStateResponse\"r\202\323\344\223\002l\022j/ibc/c" +
"ore/client/v1beta1/consensus_states/{cha" +
"in_name}/revision/{revision_number}/heig" +
"ht/{revision_height}\022\266\001\n\017ConsensusStates" +
"\0220.tibc.core.client.v1.QueryConsensusSta" +
"tesRequest\0321.tibc.core.client.v1.QueryCo" +
"nsensusStatesResponse\">\202\323\344\223\0028\0226/ibc/core" +
"/client/v1beta1/consensus_states/{chain_" +
"name}\022\231\001\n\010Relayers\022).tibc.core.client.v1" +
".QueryRelayersRequest\032*.tibc.core.client" +
".v1.QueryRelayersResponse\"6\202\323\344\223\0020\022./ibc/" +
"core/client/v1beta1/relayers/{chain_name" +
"}B\033\n\031proto.tibc.core.client.v1b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
proto.cosmos.base.query.v1beta1.Pagination.getDescriptor(),
proto.tibc.core.client.v1.Client.getDescriptor(),
com.google.protobuf.AnyProto.getDescriptor(),
com.google.api.AnnotationsProto.getDescriptor(),
com.google.protobuf.GoGoProtos.getDescriptor(),
});
internal_static_tibc_core_client_v1_QueryClientStateRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_tibc_core_client_v1_QueryClientStateRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tibc_core_client_v1_QueryClientStateRequest_descriptor,
new java.lang.String[] { "ChainName", });
internal_static_tibc_core_client_v1_QueryClientStateResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_tibc_core_client_v1_QueryClientStateResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tibc_core_client_v1_QueryClientStateResponse_descriptor,
new java.lang.String[] { "ClientState", "Proof", "ProofHeight", });
internal_static_tibc_core_client_v1_QueryClientStatesRequest_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_tibc_core_client_v1_QueryClientStatesRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tibc_core_client_v1_QueryClientStatesRequest_descriptor,
new java.lang.String[] { "Pagination", });
internal_static_tibc_core_client_v1_QueryClientStatesResponse_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_tibc_core_client_v1_QueryClientStatesResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tibc_core_client_v1_QueryClientStatesResponse_descriptor,
new java.lang.String[] { "ClientStates", "Pagination", });
internal_static_tibc_core_client_v1_QueryConsensusStateRequest_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_tibc_core_client_v1_QueryConsensusStateRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tibc_core_client_v1_QueryConsensusStateRequest_descriptor,
new java.lang.String[] { "ChainName", "RevisionNumber", "RevisionHeight", "LatestHeight", });
internal_static_tibc_core_client_v1_QueryConsensusStateResponse_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_tibc_core_client_v1_QueryConsensusStateResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tibc_core_client_v1_QueryConsensusStateResponse_descriptor,
new java.lang.String[] { "ConsensusState", "Proof", "ProofHeight", });
internal_static_tibc_core_client_v1_QueryConsensusStatesRequest_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_tibc_core_client_v1_QueryConsensusStatesRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tibc_core_client_v1_QueryConsensusStatesRequest_descriptor,
new java.lang.String[] { "ChainName", "Pagination", });
internal_static_tibc_core_client_v1_QueryConsensusStatesResponse_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_tibc_core_client_v1_QueryConsensusStatesResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tibc_core_client_v1_QueryConsensusStatesResponse_descriptor,
new java.lang.String[] { "ConsensusStates", "Pagination", });
internal_static_tibc_core_client_v1_QueryRelayersRequest_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_tibc_core_client_v1_QueryRelayersRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tibc_core_client_v1_QueryRelayersRequest_descriptor,
new java.lang.String[] { "ChainName", });
internal_static_tibc_core_client_v1_QueryRelayersResponse_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_tibc_core_client_v1_QueryRelayersResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tibc_core_client_v1_QueryRelayersResponse_descriptor,
new java.lang.String[] { "Relayers", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.protobuf.GoGoProtos.castrepeated);
registry.add(com.google.protobuf.GoGoProtos.nullable);
registry.add(com.google.api.AnnotationsProto.http);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
proto.cosmos.base.query.v1beta1.Pagination.getDescriptor();
proto.tibc.core.client.v1.Client.getDescriptor();
com.google.protobuf.AnyProto.getDescriptor();
com.google.api.AnnotationsProto.getDescriptor();
com.google.protobuf.GoGoProtos.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}