All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ibc.core.client.v1.QueryOuterClass Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: ibc/core/client/v1/query.proto

package ibc.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:ibc.core.client.v1.QueryClientStateRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * client state unique identifier
     * 
* * string client_id = 1; */ java.lang.String getClientId(); /** *
     * client state unique identifier
     * 
* * string client_id = 1; */ com.google.protobuf.ByteString getClientIdBytes(); } /** *
   * QueryClientStateRequest is the request type for the Query/ClientState RPC
   * method
   * 
* * Protobuf type {@code ibc.core.client.v1.QueryClientStateRequest} */ public static final class QueryClientStateRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ibc.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() { clientId_ = ""; } @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(); } 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(); clientId_ = s; break; } default: { if (!parseUnknownFieldProto3( 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 ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( ibc.core.client.v1.QueryOuterClass.QueryClientStateRequest.class, ibc.core.client.v1.QueryOuterClass.QueryClientStateRequest.Builder.class); } public static final int CLIENT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object clientId_; /** *
     * client state unique identifier
     * 
* * string client_id = 1; */ public java.lang.String getClientId() { java.lang.Object ref = clientId_; 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(); clientId_ = s; return s; } } /** *
     * client state unique identifier
     * 
* * string client_id = 1; */ public com.google.protobuf.ByteString getClientIdBytes() { java.lang.Object ref = clientId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clientId_ = 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 (!getClientIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientId_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getClientIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientId_); } 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 ibc.core.client.v1.QueryOuterClass.QueryClientStateRequest)) { return super.equals(obj); } ibc.core.client.v1.QueryOuterClass.QueryClientStateRequest other = (ibc.core.client.v1.QueryOuterClass.QueryClientStateRequest) obj; boolean result = true; result = result && getClientId() .equals(other.getClientId()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; hash = (53 * hash) + getClientId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ibc.core.client.v1.QueryOuterClass.QueryClientStateRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryClientStateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryClientStateRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryClientStateRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryClientStateRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ibc.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 ibc.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 ibc.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(ibc.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 ibc.core.client.v1.QueryClientStateRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ibc.core.client.v1.QueryClientStateRequest) ibc.core.client.v1.QueryOuterClass.QueryClientStateRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( ibc.core.client.v1.QueryOuterClass.QueryClientStateRequest.class, ibc.core.client.v1.QueryOuterClass.QueryClientStateRequest.Builder.class); } // Construct using ibc.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(); clientId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStateRequest_descriptor; } @java.lang.Override public ibc.core.client.v1.QueryOuterClass.QueryClientStateRequest getDefaultInstanceForType() { return ibc.core.client.v1.QueryOuterClass.QueryClientStateRequest.getDefaultInstance(); } @java.lang.Override public ibc.core.client.v1.QueryOuterClass.QueryClientStateRequest build() { ibc.core.client.v1.QueryOuterClass.QueryClientStateRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ibc.core.client.v1.QueryOuterClass.QueryClientStateRequest buildPartial() { ibc.core.client.v1.QueryOuterClass.QueryClientStateRequest result = new ibc.core.client.v1.QueryOuterClass.QueryClientStateRequest(this); result.clientId_ = clientId_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ibc.core.client.v1.QueryOuterClass.QueryClientStateRequest) { return mergeFrom((ibc.core.client.v1.QueryOuterClass.QueryClientStateRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ibc.core.client.v1.QueryOuterClass.QueryClientStateRequest other) { if (other == ibc.core.client.v1.QueryOuterClass.QueryClientStateRequest.getDefaultInstance()) return this; if (!other.getClientId().isEmpty()) { clientId_ = other.clientId_; 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 { ibc.core.client.v1.QueryOuterClass.QueryClientStateRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ibc.core.client.v1.QueryOuterClass.QueryClientStateRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object clientId_ = ""; /** *
       * client state unique identifier
       * 
* * string client_id = 1; */ public java.lang.String getClientId() { java.lang.Object ref = clientId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * client state unique identifier
       * 
* * string client_id = 1; */ public com.google.protobuf.ByteString getClientIdBytes() { java.lang.Object ref = clientId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clientId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * client state unique identifier
       * 
* * string client_id = 1; */ public Builder setClientId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } clientId_ = value; onChanged(); return this; } /** *
       * client state unique identifier
       * 
* * string client_id = 1; */ public Builder clearClientId() { clientId_ = getDefaultInstance().getClientId(); onChanged(); return this; } /** *
       * client state unique identifier
       * 
* * string client_id = 1; */ public Builder setClientIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); clientId_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:ibc.core.client.v1.QueryClientStateRequest) } // @@protoc_insertion_point(class_scope:ibc.core.client.v1.QueryClientStateRequest) private static final ibc.core.client.v1.QueryOuterClass.QueryClientStateRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ibc.core.client.v1.QueryOuterClass.QueryClientStateRequest(); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryClientStateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryClientStateResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:ibc.core.client.v1.QueryClientStateResponse) com.google.protobuf.MessageOrBuilder { /** *
     * client state associated with the request identifier
     * 
* * .google.protobuf.Any client_state = 1; */ boolean hasClientState(); /** *
     * client state associated with the request identifier
     * 
* * .google.protobuf.Any client_state = 1; */ 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; */ com.google.protobuf.ByteString getProof(); /** *
     * height at which the proof was retrieved
     * 
* * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; */ boolean hasProofHeight(); /** *
     * height at which the proof was retrieved
     * 
* * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; */ ibc.core.client.v1.Client.Height getProofHeight(); /** *
     * height at which the proof was retrieved
     * 
* * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; */ ibc.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 ibc.core.client.v1.QueryClientStateResponse} */ public static final class QueryClientStateResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ibc.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 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(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.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: { ibc.core.client.v1.Client.Height.Builder subBuilder = null; if (proofHeight_ != null) { subBuilder = proofHeight_.toBuilder(); } proofHeight_ = input.readMessage(ibc.core.client.v1.Client.Height.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(proofHeight_); proofHeight_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownFieldProto3( 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 ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStateResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStateResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( ibc.core.client.v1.QueryOuterClass.QueryClientStateResponse.class, ibc.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; */ public boolean hasClientState() { return clientState_ != null; } /** *
     * client state associated with the request identifier
     * 
* * .google.protobuf.Any client_state = 1; */ 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; */ 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; */ public com.google.protobuf.ByteString getProof() { return proof_; } public static final int PROOF_HEIGHT_FIELD_NUMBER = 3; private ibc.core.client.v1.Client.Height proofHeight_; /** *
     * height at which the proof was retrieved
     * 
* * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; */ public boolean hasProofHeight() { return proofHeight_ != null; } /** *
     * height at which the proof was retrieved
     * 
* * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; */ public ibc.core.client.v1.Client.Height getProofHeight() { return proofHeight_ == null ? ibc.core.client.v1.Client.Height.getDefaultInstance() : proofHeight_; } /** *
     * height at which the proof was retrieved
     * 
* * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; */ public ibc.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 ibc.core.client.v1.QueryOuterClass.QueryClientStateResponse)) { return super.equals(obj); } ibc.core.client.v1.QueryOuterClass.QueryClientStateResponse other = (ibc.core.client.v1.QueryOuterClass.QueryClientStateResponse) obj; boolean result = true; result = result && (hasClientState() == other.hasClientState()); if (hasClientState()) { result = result && getClientState() .equals(other.getClientState()); } result = result && getProof() .equals(other.getProof()); result = result && (hasProofHeight() == other.hasProofHeight()); if (hasProofHeight()) { result = result && getProofHeight() .equals(other.getProofHeight()); } result = result && unknownFields.equals(other.unknownFields); return result; } @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 ibc.core.client.v1.QueryOuterClass.QueryClientStateResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryClientStateResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryClientStateResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryClientStateResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryClientStateResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ibc.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 ibc.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 ibc.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(ibc.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 ibc.core.client.v1.QueryClientStateResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ibc.core.client.v1.QueryClientStateResponse) ibc.core.client.v1.QueryOuterClass.QueryClientStateResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStateResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStateResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( ibc.core.client.v1.QueryOuterClass.QueryClientStateResponse.class, ibc.core.client.v1.QueryOuterClass.QueryClientStateResponse.Builder.class); } // Construct using ibc.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 ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStateResponse_descriptor; } @java.lang.Override public ibc.core.client.v1.QueryOuterClass.QueryClientStateResponse getDefaultInstanceForType() { return ibc.core.client.v1.QueryOuterClass.QueryClientStateResponse.getDefaultInstance(); } @java.lang.Override public ibc.core.client.v1.QueryOuterClass.QueryClientStateResponse build() { ibc.core.client.v1.QueryOuterClass.QueryClientStateResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ibc.core.client.v1.QueryOuterClass.QueryClientStateResponse buildPartial() { ibc.core.client.v1.QueryOuterClass.QueryClientStateResponse result = new ibc.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 (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ibc.core.client.v1.QueryOuterClass.QueryClientStateResponse) { return mergeFrom((ibc.core.client.v1.QueryOuterClass.QueryClientStateResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ibc.core.client.v1.QueryOuterClass.QueryClientStateResponse other) { if (other == ibc.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 { ibc.core.client.v1.QueryOuterClass.QueryClientStateResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ibc.core.client.v1.QueryOuterClass.QueryClientStateResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.Any clientState_ = null; 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; */ public boolean hasClientState() { return clientStateBuilder_ != null || clientState_ != null; } /** *
       * client state associated with the request identifier
       * 
* * .google.protobuf.Any client_state = 1; */ 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; */ public com.google.protobuf.ByteString getProof() { return proof_; } /** *
       * merkle proof of existence
       * 
* * bytes proof = 2; */ 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; */ public Builder clearProof() { proof_ = getDefaultInstance().getProof(); onChanged(); return this; } private ibc.core.client.v1.Client.Height proofHeight_ = null; private com.google.protobuf.SingleFieldBuilderV3< ibc.core.client.v1.Client.Height, ibc.core.client.v1.Client.Height.Builder, ibc.core.client.v1.Client.HeightOrBuilder> proofHeightBuilder_; /** *
       * height at which the proof was retrieved
       * 
* * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; */ public boolean hasProofHeight() { return proofHeightBuilder_ != null || proofHeight_ != null; } /** *
       * height at which the proof was retrieved
       * 
* * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; */ public ibc.core.client.v1.Client.Height getProofHeight() { if (proofHeightBuilder_ == null) { return proofHeight_ == null ? ibc.core.client.v1.Client.Height.getDefaultInstance() : proofHeight_; } else { return proofHeightBuilder_.getMessage(); } } /** *
       * height at which the proof was retrieved
       * 
* * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; */ public Builder setProofHeight(ibc.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
       * 
* * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; */ public Builder setProofHeight( ibc.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
       * 
* * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; */ public Builder mergeProofHeight(ibc.core.client.v1.Client.Height value) { if (proofHeightBuilder_ == null) { if (proofHeight_ != null) { proofHeight_ = ibc.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
       * 
* * .ibc.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
       * 
* * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; */ public ibc.core.client.v1.Client.Height.Builder getProofHeightBuilder() { onChanged(); return getProofHeightFieldBuilder().getBuilder(); } /** *
       * height at which the proof was retrieved
       * 
* * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; */ public ibc.core.client.v1.Client.HeightOrBuilder getProofHeightOrBuilder() { if (proofHeightBuilder_ != null) { return proofHeightBuilder_.getMessageOrBuilder(); } else { return proofHeight_ == null ? ibc.core.client.v1.Client.Height.getDefaultInstance() : proofHeight_; } } /** *
       * height at which the proof was retrieved
       * 
* * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; */ private com.google.protobuf.SingleFieldBuilderV3< ibc.core.client.v1.Client.Height, ibc.core.client.v1.Client.Height.Builder, ibc.core.client.v1.Client.HeightOrBuilder> getProofHeightFieldBuilder() { if (proofHeightBuilder_ == null) { proofHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ibc.core.client.v1.Client.Height, ibc.core.client.v1.Client.Height.Builder, ibc.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.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:ibc.core.client.v1.QueryClientStateResponse) } // @@protoc_insertion_point(class_scope:ibc.core.client.v1.QueryClientStateResponse) private static final ibc.core.client.v1.QueryOuterClass.QueryClientStateResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ibc.core.client.v1.QueryOuterClass.QueryClientStateResponse(); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryClientStateResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryClientStatesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:ibc.core.client.v1.QueryClientStatesRequest) com.google.protobuf.MessageOrBuilder { /** *
     * pagination request
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 1; */ boolean hasPagination(); /** *
     * pagination request
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 1; */ cosmos.base.query.v1beta1.Pagination.PageRequest getPagination(); /** *
     * pagination request
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 1; */ cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder(); } /** *
   * QueryClientStatesRequest is the request type for the Query/ClientStates RPC
   * method
   * 
* * Protobuf type {@code ibc.core.client.v1.QueryClientStatesRequest} */ public static final class QueryClientStatesRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ibc.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 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(); } 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: { cosmos.base.query.v1beta1.Pagination.PageRequest.Builder subBuilder = null; if (pagination_ != null) { subBuilder = pagination_.toBuilder(); } pagination_ = input.readMessage(cosmos.base.query.v1beta1.Pagination.PageRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(pagination_); pagination_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownFieldProto3( 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 ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStatesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStatesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( ibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest.class, ibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest.Builder.class); } public static final int PAGINATION_FIELD_NUMBER = 1; private cosmos.base.query.v1beta1.Pagination.PageRequest pagination_; /** *
     * pagination request
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 1; */ public boolean hasPagination() { return pagination_ != null; } /** *
     * pagination request
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 1; */ public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() { return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_; } /** *
     * pagination request
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 1; */ public 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 ibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest)) { return super.equals(obj); } ibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest other = (ibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest) obj; boolean result = true; result = result && (hasPagination() == other.hasPagination()); if (hasPagination()) { result = result && getPagination() .equals(other.getPagination()); } result = result && unknownFields.equals(other.unknownFields); return result; } @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 ibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ibc.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 ibc.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 ibc.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(ibc.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 ibc.core.client.v1.QueryClientStatesRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ibc.core.client.v1.QueryClientStatesRequest) ibc.core.client.v1.QueryOuterClass.QueryClientStatesRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStatesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStatesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( ibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest.class, ibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest.Builder.class); } // Construct using ibc.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 ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStatesRequest_descriptor; } @java.lang.Override public ibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest getDefaultInstanceForType() { return ibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest.getDefaultInstance(); } @java.lang.Override public ibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest build() { ibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest buildPartial() { ibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest result = new ibc.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 (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest) { return mergeFrom((ibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest other) { if (other == ibc.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 { ibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private cosmos.base.query.v1beta1.Pagination.PageRequest pagination_ = null; private com.google.protobuf.SingleFieldBuilderV3< cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> paginationBuilder_; /** *
       * pagination request
       * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 1; */ public boolean hasPagination() { return paginationBuilder_ != null || pagination_ != null; } /** *
       * pagination request
       * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 1; */ public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() { if (paginationBuilder_ == null) { return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_; } else { return paginationBuilder_.getMessage(); } } /** *
       * pagination request
       * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 1; */ public Builder setPagination(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( 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(cosmos.base.query.v1beta1.Pagination.PageRequest value) { if (paginationBuilder_ == null) { if (pagination_ != null) { pagination_ = 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 cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() { onChanged(); return getPaginationFieldBuilder().getBuilder(); } /** *
       * pagination request
       * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 1; */ public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() { if (paginationBuilder_ != null) { return paginationBuilder_.getMessageOrBuilder(); } else { return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_; } } /** *
       * pagination request
       * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 1; */ private com.google.protobuf.SingleFieldBuilderV3< cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> getPaginationFieldBuilder() { if (paginationBuilder_ == null) { paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, 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.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:ibc.core.client.v1.QueryClientStatesRequest) } // @@protoc_insertion_point(class_scope:ibc.core.client.v1.QueryClientStatesRequest) private static final ibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest(); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryClientStatesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryClientStatesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:ibc.core.client.v1.QueryClientStatesResponse) com.google.protobuf.MessageOrBuilder { /** *
     * list of stored ClientStates of the chain.
     * 
* * repeated .ibc.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 .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; */ ibc.core.client.v1.Client.IdentifiedClientState getClientStates(int index); /** *
     * list of stored ClientStates of the chain.
     * 
* * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; */ int getClientStatesCount(); /** *
     * list of stored ClientStates of the chain.
     * 
* * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; */ java.util.List getClientStatesOrBuilderList(); /** *
     * list of stored ClientStates of the chain.
     * 
* * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; */ ibc.core.client.v1.Client.IdentifiedClientStateOrBuilder getClientStatesOrBuilder( int index); /** *
     * pagination response
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ boolean hasPagination(); /** *
     * pagination response
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ cosmos.base.query.v1beta1.Pagination.PageResponse getPagination(); /** *
     * pagination response
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder(); } /** *
   * QueryClientStatesResponse is the response type for the Query/ClientStates RPC
   * method.
   * 
* * Protobuf type {@code ibc.core.client.v1.QueryClientStatesResponse} */ public static final class QueryClientStatesResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ibc.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 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) == 0x00000001)) { clientStates_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } clientStates_.add( input.readMessage(ibc.core.client.v1.Client.IdentifiedClientState.parser(), extensionRegistry)); break; } case 18: { cosmos.base.query.v1beta1.Pagination.PageResponse.Builder subBuilder = null; if (pagination_ != null) { subBuilder = pagination_.toBuilder(); } pagination_ = input.readMessage(cosmos.base.query.v1beta1.Pagination.PageResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(pagination_); pagination_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownFieldProto3( 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) == 0x00000001)) { clientStates_ = java.util.Collections.unmodifiableList(clientStates_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStatesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStatesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( ibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse.class, ibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse.Builder.class); } private int bitField0_; public static final int CLIENT_STATES_FIELD_NUMBER = 1; private java.util.List clientStates_; /** *
     * list of stored ClientStates of the chain.
     * 
* * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; */ public java.util.List getClientStatesList() { return clientStates_; } /** *
     * list of stored ClientStates of the chain.
     * 
* * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; */ public java.util.List getClientStatesOrBuilderList() { return clientStates_; } /** *
     * list of stored ClientStates of the chain.
     * 
* * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; */ public int getClientStatesCount() { return clientStates_.size(); } /** *
     * list of stored ClientStates of the chain.
     * 
* * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; */ public ibc.core.client.v1.Client.IdentifiedClientState getClientStates(int index) { return clientStates_.get(index); } /** *
     * list of stored ClientStates of the chain.
     * 
* * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; */ public ibc.core.client.v1.Client.IdentifiedClientStateOrBuilder getClientStatesOrBuilder( int index) { return clientStates_.get(index); } public static final int PAGINATION_FIELD_NUMBER = 2; private cosmos.base.query.v1beta1.Pagination.PageResponse pagination_; /** *
     * pagination response
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ public boolean hasPagination() { return pagination_ != null; } /** *
     * pagination response
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() { return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_; } /** *
     * pagination response
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ public 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 ibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse)) { return super.equals(obj); } ibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse other = (ibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse) obj; boolean result = true; result = result && getClientStatesList() .equals(other.getClientStatesList()); result = result && (hasPagination() == other.hasPagination()); if (hasPagination()) { result = result && getPagination() .equals(other.getPagination()); } result = result && unknownFields.equals(other.unknownFields); return result; } @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 ibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ibc.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 ibc.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 ibc.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(ibc.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 ibc.core.client.v1.QueryClientStatesResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ibc.core.client.v1.QueryClientStatesResponse) ibc.core.client.v1.QueryOuterClass.QueryClientStatesResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStatesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStatesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( ibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse.class, ibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse.Builder.class); } // Construct using ibc.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 ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientStatesResponse_descriptor; } @java.lang.Override public ibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse getDefaultInstanceForType() { return ibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse.getDefaultInstance(); } @java.lang.Override public ibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse build() { ibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse buildPartial() { ibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse result = new ibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (clientStatesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { 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(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse) { return mergeFrom((ibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse other) { if (other == ibc.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 { ibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ibc.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) == 0x00000001)) { clientStates_ = new java.util.ArrayList(clientStates_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< ibc.core.client.v1.Client.IdentifiedClientState, ibc.core.client.v1.Client.IdentifiedClientState.Builder, ibc.core.client.v1.Client.IdentifiedClientStateOrBuilder> clientStatesBuilder_; /** *
       * list of stored ClientStates of the chain.
       * 
* * repeated .ibc.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 .ibc.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 .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; */ public ibc.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 .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; */ public Builder setClientStates( int index, ibc.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 .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; */ public Builder setClientStates( int index, ibc.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 .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; */ public Builder addClientStates(ibc.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 .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; */ public Builder addClientStates( int index, ibc.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 .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; */ public Builder addClientStates( ibc.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 .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; */ public Builder addClientStates( int index, ibc.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 .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; */ public Builder addAllClientStates( java.lang.Iterable 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 .ibc.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 .ibc.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 .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; */ public ibc.core.client.v1.Client.IdentifiedClientState.Builder getClientStatesBuilder( int index) { return getClientStatesFieldBuilder().getBuilder(index); } /** *
       * list of stored ClientStates of the chain.
       * 
* * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; */ public ibc.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 .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; */ public java.util.List getClientStatesOrBuilderList() { if (clientStatesBuilder_ != null) { return clientStatesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(clientStates_); } } /** *
       * list of stored ClientStates of the chain.
       * 
* * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; */ public ibc.core.client.v1.Client.IdentifiedClientState.Builder addClientStatesBuilder() { return getClientStatesFieldBuilder().addBuilder( ibc.core.client.v1.Client.IdentifiedClientState.getDefaultInstance()); } /** *
       * list of stored ClientStates of the chain.
       * 
* * repeated .ibc.core.client.v1.IdentifiedClientState client_states = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "IdentifiedClientStates"]; */ public ibc.core.client.v1.Client.IdentifiedClientState.Builder addClientStatesBuilder( int index) { return getClientStatesFieldBuilder().addBuilder( index, ibc.core.client.v1.Client.IdentifiedClientState.getDefaultInstance()); } /** *
       * list of stored ClientStates of the chain.
       * 
* * repeated .ibc.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< ibc.core.client.v1.Client.IdentifiedClientState, ibc.core.client.v1.Client.IdentifiedClientState.Builder, ibc.core.client.v1.Client.IdentifiedClientStateOrBuilder> getClientStatesFieldBuilder() { if (clientStatesBuilder_ == null) { clientStatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ibc.core.client.v1.Client.IdentifiedClientState, ibc.core.client.v1.Client.IdentifiedClientState.Builder, ibc.core.client.v1.Client.IdentifiedClientStateOrBuilder>( clientStates_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); clientStates_ = null; } return clientStatesBuilder_; } private cosmos.base.query.v1beta1.Pagination.PageResponse pagination_ = null; private com.google.protobuf.SingleFieldBuilderV3< cosmos.base.query.v1beta1.Pagination.PageResponse, cosmos.base.query.v1beta1.Pagination.PageResponse.Builder, cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder> paginationBuilder_; /** *
       * pagination response
       * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ public boolean hasPagination() { return paginationBuilder_ != null || pagination_ != null; } /** *
       * pagination response
       * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() { if (paginationBuilder_ == null) { return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_; } else { return paginationBuilder_.getMessage(); } } /** *
       * pagination response
       * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ public Builder setPagination(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( 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(cosmos.base.query.v1beta1.Pagination.PageResponse value) { if (paginationBuilder_ == null) { if (pagination_ != null) { pagination_ = 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 cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() { onChanged(); return getPaginationFieldBuilder().getBuilder(); } /** *
       * pagination response
       * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() { if (paginationBuilder_ != null) { return paginationBuilder_.getMessageOrBuilder(); } else { return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_; } } /** *
       * pagination response
       * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ private com.google.protobuf.SingleFieldBuilderV3< cosmos.base.query.v1beta1.Pagination.PageResponse, cosmos.base.query.v1beta1.Pagination.PageResponse.Builder, cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder> getPaginationFieldBuilder() { if (paginationBuilder_ == null) { paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cosmos.base.query.v1beta1.Pagination.PageResponse, cosmos.base.query.v1beta1.Pagination.PageResponse.Builder, 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.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:ibc.core.client.v1.QueryClientStatesResponse) } // @@protoc_insertion_point(class_scope:ibc.core.client.v1.QueryClientStatesResponse) private static final ibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse(); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryClientStatesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryConsensusStateRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:ibc.core.client.v1.QueryConsensusStateRequest) com.google.protobuf.MessageOrBuilder { /** *
     * client identifier
     * 
* * string client_id = 1; */ java.lang.String getClientId(); /** *
     * client identifier
     * 
* * string client_id = 1; */ com.google.protobuf.ByteString getClientIdBytes(); /** *
     * consensus state revision number
     * 
* * uint64 revision_number = 2; */ long getRevisionNumber(); /** *
     * consensus state revision height
     * 
* * uint64 revision_height = 3; */ long getRevisionHeight(); /** *
     * latest_height overrrides the height field and queries the latest stored
     * ConsensusState
     * 
* * bool latest_height = 4; */ 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 ibc.core.client.v1.QueryConsensusStateRequest} */ public static final class QueryConsensusStateRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ibc.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() { clientId_ = ""; revisionNumber_ = 0L; revisionHeight_ = 0L; latestHeight_ = false; } @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(); } 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(); clientId_ = s; break; } case 16: { revisionNumber_ = input.readUInt64(); break; } case 24: { revisionHeight_ = input.readUInt64(); break; } case 32: { latestHeight_ = input.readBool(); break; } default: { if (!parseUnknownFieldProto3( 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 ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( ibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest.class, ibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest.Builder.class); } public static final int CLIENT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object clientId_; /** *
     * client identifier
     * 
* * string client_id = 1; */ public java.lang.String getClientId() { java.lang.Object ref = clientId_; 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(); clientId_ = s; return s; } } /** *
     * client identifier
     * 
* * string client_id = 1; */ public com.google.protobuf.ByteString getClientIdBytes() { java.lang.Object ref = clientId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clientId_ = 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; */ 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; */ 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; */ 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 (!getClientIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientId_); } 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 (!getClientIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientId_); } 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 ibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest)) { return super.equals(obj); } ibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest other = (ibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest) obj; boolean result = true; result = result && getClientId() .equals(other.getClientId()); result = result && (getRevisionNumber() == other.getRevisionNumber()); result = result && (getRevisionHeight() == other.getRevisionHeight()); result = result && (getLatestHeight() == other.getLatestHeight()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; hash = (53 * hash) + getClientId().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 ibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ibc.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 ibc.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 ibc.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(ibc.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 ibc.core.client.v1.QueryConsensusStateRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ibc.core.client.v1.QueryConsensusStateRequest) ibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( ibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest.class, ibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest.Builder.class); } // Construct using ibc.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(); clientId_ = ""; revisionNumber_ = 0L; revisionHeight_ = 0L; latestHeight_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStateRequest_descriptor; } @java.lang.Override public ibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest getDefaultInstanceForType() { return ibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest.getDefaultInstance(); } @java.lang.Override public ibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest build() { ibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest buildPartial() { ibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest result = new ibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest(this); result.clientId_ = clientId_; result.revisionNumber_ = revisionNumber_; result.revisionHeight_ = revisionHeight_; result.latestHeight_ = latestHeight_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest) { return mergeFrom((ibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest other) { if (other == ibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest.getDefaultInstance()) return this; if (!other.getClientId().isEmpty()) { clientId_ = other.clientId_; 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 { ibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object clientId_ = ""; /** *
       * client identifier
       * 
* * string client_id = 1; */ public java.lang.String getClientId() { java.lang.Object ref = clientId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * client identifier
       * 
* * string client_id = 1; */ public com.google.protobuf.ByteString getClientIdBytes() { java.lang.Object ref = clientId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clientId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * client identifier
       * 
* * string client_id = 1; */ public Builder setClientId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } clientId_ = value; onChanged(); return this; } /** *
       * client identifier
       * 
* * string client_id = 1; */ public Builder clearClientId() { clientId_ = getDefaultInstance().getClientId(); onChanged(); return this; } /** *
       * client identifier
       * 
* * string client_id = 1; */ public Builder setClientIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); clientId_ = value; onChanged(); return this; } private long revisionNumber_ ; /** *
       * consensus state revision number
       * 
* * uint64 revision_number = 2; */ public long getRevisionNumber() { return revisionNumber_; } /** *
       * consensus state revision number
       * 
* * uint64 revision_number = 2; */ public Builder setRevisionNumber(long value) { revisionNumber_ = value; onChanged(); return this; } /** *
       * consensus state revision number
       * 
* * uint64 revision_number = 2; */ public Builder clearRevisionNumber() { revisionNumber_ = 0L; onChanged(); return this; } private long revisionHeight_ ; /** *
       * consensus state revision height
       * 
* * uint64 revision_height = 3; */ public long getRevisionHeight() { return revisionHeight_; } /** *
       * consensus state revision height
       * 
* * uint64 revision_height = 3; */ public Builder setRevisionHeight(long value) { revisionHeight_ = value; onChanged(); return this; } /** *
       * consensus state revision height
       * 
* * uint64 revision_height = 3; */ 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; */ public boolean getLatestHeight() { return latestHeight_; } /** *
       * latest_height overrrides the height field and queries the latest stored
       * ConsensusState
       * 
* * bool latest_height = 4; */ 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; */ public Builder clearLatestHeight() { latestHeight_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:ibc.core.client.v1.QueryConsensusStateRequest) } // @@protoc_insertion_point(class_scope:ibc.core.client.v1.QueryConsensusStateRequest) private static final ibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest(); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryConsensusStateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryConsensusStateResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:ibc.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; */ boolean hasConsensusState(); /** *
     * consensus state associated with the client identifier at the given height
     * 
* * .google.protobuf.Any consensus_state = 1; */ 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; */ com.google.protobuf.ByteString getProof(); /** *
     * height at which the proof was retrieved
     * 
* * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; */ boolean hasProofHeight(); /** *
     * height at which the proof was retrieved
     * 
* * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; */ ibc.core.client.v1.Client.Height getProofHeight(); /** *
     * height at which the proof was retrieved
     * 
* * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; */ ibc.core.client.v1.Client.HeightOrBuilder getProofHeightOrBuilder(); } /** *
   * QueryConsensusStateResponse is the response type for the Query/ConsensusState
   * RPC method
   * 
* * Protobuf type {@code ibc.core.client.v1.QueryConsensusStateResponse} */ public static final class QueryConsensusStateResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ibc.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 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(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.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: { ibc.core.client.v1.Client.Height.Builder subBuilder = null; if (proofHeight_ != null) { subBuilder = proofHeight_.toBuilder(); } proofHeight_ = input.readMessage(ibc.core.client.v1.Client.Height.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(proofHeight_); proofHeight_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownFieldProto3( 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 ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStateResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStateResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( ibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse.class, ibc.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; */ public boolean hasConsensusState() { return consensusState_ != null; } /** *
     * consensus state associated with the client identifier at the given height
     * 
* * .google.protobuf.Any consensus_state = 1; */ 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; */ 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; */ public com.google.protobuf.ByteString getProof() { return proof_; } public static final int PROOF_HEIGHT_FIELD_NUMBER = 3; private ibc.core.client.v1.Client.Height proofHeight_; /** *
     * height at which the proof was retrieved
     * 
* * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; */ public boolean hasProofHeight() { return proofHeight_ != null; } /** *
     * height at which the proof was retrieved
     * 
* * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; */ public ibc.core.client.v1.Client.Height getProofHeight() { return proofHeight_ == null ? ibc.core.client.v1.Client.Height.getDefaultInstance() : proofHeight_; } /** *
     * height at which the proof was retrieved
     * 
* * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; */ public ibc.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 ibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse)) { return super.equals(obj); } ibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse other = (ibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse) obj; boolean result = true; result = result && (hasConsensusState() == other.hasConsensusState()); if (hasConsensusState()) { result = result && getConsensusState() .equals(other.getConsensusState()); } result = result && getProof() .equals(other.getProof()); result = result && (hasProofHeight() == other.hasProofHeight()); if (hasProofHeight()) { result = result && getProofHeight() .equals(other.getProofHeight()); } result = result && unknownFields.equals(other.unknownFields); return result; } @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 ibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ibc.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 ibc.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 ibc.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(ibc.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 ibc.core.client.v1.QueryConsensusStateResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ibc.core.client.v1.QueryConsensusStateResponse) ibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStateResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStateResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( ibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse.class, ibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse.Builder.class); } // Construct using ibc.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 ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStateResponse_descriptor; } @java.lang.Override public ibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse getDefaultInstanceForType() { return ibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse.getDefaultInstance(); } @java.lang.Override public ibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse build() { ibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse buildPartial() { ibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse result = new ibc.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 (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse) { return mergeFrom((ibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse other) { if (other == ibc.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 { ibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.Any consensusState_ = null; 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; */ 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; */ 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; */ public com.google.protobuf.ByteString getProof() { return proof_; } /** *
       * merkle proof of existence
       * 
* * bytes proof = 2; */ 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; */ public Builder clearProof() { proof_ = getDefaultInstance().getProof(); onChanged(); return this; } private ibc.core.client.v1.Client.Height proofHeight_ = null; private com.google.protobuf.SingleFieldBuilderV3< ibc.core.client.v1.Client.Height, ibc.core.client.v1.Client.Height.Builder, ibc.core.client.v1.Client.HeightOrBuilder> proofHeightBuilder_; /** *
       * height at which the proof was retrieved
       * 
* * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; */ public boolean hasProofHeight() { return proofHeightBuilder_ != null || proofHeight_ != null; } /** *
       * height at which the proof was retrieved
       * 
* * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; */ public ibc.core.client.v1.Client.Height getProofHeight() { if (proofHeightBuilder_ == null) { return proofHeight_ == null ? ibc.core.client.v1.Client.Height.getDefaultInstance() : proofHeight_; } else { return proofHeightBuilder_.getMessage(); } } /** *
       * height at which the proof was retrieved
       * 
* * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; */ public Builder setProofHeight(ibc.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
       * 
* * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; */ public Builder setProofHeight( ibc.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
       * 
* * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; */ public Builder mergeProofHeight(ibc.core.client.v1.Client.Height value) { if (proofHeightBuilder_ == null) { if (proofHeight_ != null) { proofHeight_ = ibc.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
       * 
* * .ibc.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
       * 
* * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; */ public ibc.core.client.v1.Client.Height.Builder getProofHeightBuilder() { onChanged(); return getProofHeightFieldBuilder().getBuilder(); } /** *
       * height at which the proof was retrieved
       * 
* * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; */ public ibc.core.client.v1.Client.HeightOrBuilder getProofHeightOrBuilder() { if (proofHeightBuilder_ != null) { return proofHeightBuilder_.getMessageOrBuilder(); } else { return proofHeight_ == null ? ibc.core.client.v1.Client.Height.getDefaultInstance() : proofHeight_; } } /** *
       * height at which the proof was retrieved
       * 
* * .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false]; */ private com.google.protobuf.SingleFieldBuilderV3< ibc.core.client.v1.Client.Height, ibc.core.client.v1.Client.Height.Builder, ibc.core.client.v1.Client.HeightOrBuilder> getProofHeightFieldBuilder() { if (proofHeightBuilder_ == null) { proofHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ibc.core.client.v1.Client.Height, ibc.core.client.v1.Client.Height.Builder, ibc.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.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:ibc.core.client.v1.QueryConsensusStateResponse) } // @@protoc_insertion_point(class_scope:ibc.core.client.v1.QueryConsensusStateResponse) private static final ibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse(); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryConsensusStateResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryConsensusStatesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:ibc.core.client.v1.QueryConsensusStatesRequest) com.google.protobuf.MessageOrBuilder { /** *
     * client identifier
     * 
* * string client_id = 1; */ java.lang.String getClientId(); /** *
     * client identifier
     * 
* * string client_id = 1; */ com.google.protobuf.ByteString getClientIdBytes(); /** *
     * pagination request
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ boolean hasPagination(); /** *
     * pagination request
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ cosmos.base.query.v1beta1.Pagination.PageRequest getPagination(); /** *
     * pagination request
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder(); } /** *
   * QueryConsensusStatesRequest is the request type for the Query/ConsensusStates
   * RPC method.
   * 
* * Protobuf type {@code ibc.core.client.v1.QueryConsensusStatesRequest} */ public static final class QueryConsensusStatesRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ibc.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() { clientId_ = ""; } @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(); } 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(); clientId_ = s; break; } case 18: { cosmos.base.query.v1beta1.Pagination.PageRequest.Builder subBuilder = null; if (pagination_ != null) { subBuilder = pagination_.toBuilder(); } pagination_ = input.readMessage(cosmos.base.query.v1beta1.Pagination.PageRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(pagination_); pagination_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownFieldProto3( 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 ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStatesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStatesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest.class, ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest.Builder.class); } public static final int CLIENT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object clientId_; /** *
     * client identifier
     * 
* * string client_id = 1; */ public java.lang.String getClientId() { java.lang.Object ref = clientId_; 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(); clientId_ = s; return s; } } /** *
     * client identifier
     * 
* * string client_id = 1; */ public com.google.protobuf.ByteString getClientIdBytes() { java.lang.Object ref = clientId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clientId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PAGINATION_FIELD_NUMBER = 2; private cosmos.base.query.v1beta1.Pagination.PageRequest pagination_; /** *
     * pagination request
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ public boolean hasPagination() { return pagination_ != null; } /** *
     * pagination request
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() { return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_; } /** *
     * pagination request
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ public 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 (!getClientIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientId_); } 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 (!getClientIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientId_); } 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 ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest)) { return super.equals(obj); } ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest other = (ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest) obj; boolean result = true; result = result && getClientId() .equals(other.getClientId()); result = result && (hasPagination() == other.hasPagination()); if (hasPagination()) { result = result && getPagination() .equals(other.getPagination()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; hash = (53 * hash) + getClientId().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 ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ibc.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 ibc.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 ibc.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(ibc.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 ibc.core.client.v1.QueryConsensusStatesRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ibc.core.client.v1.QueryConsensusStatesRequest) ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStatesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStatesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest.class, ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest.Builder.class); } // Construct using ibc.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(); clientId_ = ""; if (paginationBuilder_ == null) { pagination_ = null; } else { pagination_ = null; paginationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStatesRequest_descriptor; } @java.lang.Override public ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest getDefaultInstanceForType() { return ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest.getDefaultInstance(); } @java.lang.Override public ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest build() { ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest buildPartial() { ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest result = new ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest(this); result.clientId_ = clientId_; if (paginationBuilder_ == null) { result.pagination_ = pagination_; } else { result.pagination_ = paginationBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest) { return mergeFrom((ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest other) { if (other == ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest.getDefaultInstance()) return this; if (!other.getClientId().isEmpty()) { clientId_ = other.clientId_; 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 { ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object clientId_ = ""; /** *
       * client identifier
       * 
* * string client_id = 1; */ public java.lang.String getClientId() { java.lang.Object ref = clientId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * client identifier
       * 
* * string client_id = 1; */ public com.google.protobuf.ByteString getClientIdBytes() { java.lang.Object ref = clientId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clientId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * client identifier
       * 
* * string client_id = 1; */ public Builder setClientId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } clientId_ = value; onChanged(); return this; } /** *
       * client identifier
       * 
* * string client_id = 1; */ public Builder clearClientId() { clientId_ = getDefaultInstance().getClientId(); onChanged(); return this; } /** *
       * client identifier
       * 
* * string client_id = 1; */ public Builder setClientIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); clientId_ = value; onChanged(); return this; } private cosmos.base.query.v1beta1.Pagination.PageRequest pagination_ = null; private com.google.protobuf.SingleFieldBuilderV3< cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> paginationBuilder_; /** *
       * pagination request
       * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ public boolean hasPagination() { return paginationBuilder_ != null || pagination_ != null; } /** *
       * pagination request
       * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() { if (paginationBuilder_ == null) { return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_; } else { return paginationBuilder_.getMessage(); } } /** *
       * pagination request
       * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ public Builder setPagination(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( 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(cosmos.base.query.v1beta1.Pagination.PageRequest value) { if (paginationBuilder_ == null) { if (pagination_ != null) { pagination_ = 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 cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() { onChanged(); return getPaginationFieldBuilder().getBuilder(); } /** *
       * pagination request
       * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() { if (paginationBuilder_ != null) { return paginationBuilder_.getMessageOrBuilder(); } else { return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_; } } /** *
       * pagination request
       * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ private com.google.protobuf.SingleFieldBuilderV3< cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> getPaginationFieldBuilder() { if (paginationBuilder_ == null) { paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, 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.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:ibc.core.client.v1.QueryConsensusStatesRequest) } // @@protoc_insertion_point(class_scope:ibc.core.client.v1.QueryConsensusStatesRequest) private static final ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest(); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryConsensusStatesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:ibc.core.client.v1.QueryConsensusStatesResponse) com.google.protobuf.MessageOrBuilder { /** *
     * consensus states associated with the identifier
     * 
* * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; */ java.util.List getConsensusStatesList(); /** *
     * consensus states associated with the identifier
     * 
* * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; */ ibc.core.client.v1.Client.ConsensusStateWithHeight getConsensusStates(int index); /** *
     * consensus states associated with the identifier
     * 
* * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; */ int getConsensusStatesCount(); /** *
     * consensus states associated with the identifier
     * 
* * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; */ java.util.List getConsensusStatesOrBuilderList(); /** *
     * consensus states associated with the identifier
     * 
* * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; */ ibc.core.client.v1.Client.ConsensusStateWithHeightOrBuilder getConsensusStatesOrBuilder( int index); /** *
     * pagination response
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ boolean hasPagination(); /** *
     * pagination response
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ cosmos.base.query.v1beta1.Pagination.PageResponse getPagination(); /** *
     * pagination response
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder(); } /** *
   * QueryConsensusStatesResponse is the response type for the
   * Query/ConsensusStates RPC method
   * 
* * Protobuf type {@code ibc.core.client.v1.QueryConsensusStatesResponse} */ public static final class QueryConsensusStatesResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ibc.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 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) == 0x00000001)) { consensusStates_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } consensusStates_.add( input.readMessage(ibc.core.client.v1.Client.ConsensusStateWithHeight.parser(), extensionRegistry)); break; } case 18: { cosmos.base.query.v1beta1.Pagination.PageResponse.Builder subBuilder = null; if (pagination_ != null) { subBuilder = pagination_.toBuilder(); } pagination_ = input.readMessage(cosmos.base.query.v1beta1.Pagination.PageResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(pagination_); pagination_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownFieldProto3( 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) == 0x00000001)) { consensusStates_ = java.util.Collections.unmodifiableList(consensusStates_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStatesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStatesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse.class, ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse.Builder.class); } private int bitField0_; public static final int CONSENSUS_STATES_FIELD_NUMBER = 1; private java.util.List consensusStates_; /** *
     * consensus states associated with the identifier
     * 
* * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getConsensusStatesList() { return consensusStates_; } /** *
     * consensus states associated with the identifier
     * 
* * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getConsensusStatesOrBuilderList() { return consensusStates_; } /** *
     * consensus states associated with the identifier
     * 
* * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; */ public int getConsensusStatesCount() { return consensusStates_.size(); } /** *
     * consensus states associated with the identifier
     * 
* * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; */ public ibc.core.client.v1.Client.ConsensusStateWithHeight getConsensusStates(int index) { return consensusStates_.get(index); } /** *
     * consensus states associated with the identifier
     * 
* * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; */ public ibc.core.client.v1.Client.ConsensusStateWithHeightOrBuilder getConsensusStatesOrBuilder( int index) { return consensusStates_.get(index); } public static final int PAGINATION_FIELD_NUMBER = 2; private cosmos.base.query.v1beta1.Pagination.PageResponse pagination_; /** *
     * pagination response
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ public boolean hasPagination() { return pagination_ != null; } /** *
     * pagination response
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() { return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_; } /** *
     * pagination response
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ public 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 ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse)) { return super.equals(obj); } ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse other = (ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse) obj; boolean result = true; result = result && getConsensusStatesList() .equals(other.getConsensusStatesList()); result = result && (hasPagination() == other.hasPagination()); if (hasPagination()) { result = result && getPagination() .equals(other.getPagination()); } result = result && unknownFields.equals(other.unknownFields); return result; } @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 ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ibc.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 ibc.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 ibc.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(ibc.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 ibc.core.client.v1.QueryConsensusStatesResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ibc.core.client.v1.QueryConsensusStatesResponse) ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStatesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStatesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse.class, ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse.Builder.class); } // Construct using ibc.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 ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryConsensusStatesResponse_descriptor; } @java.lang.Override public ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse getDefaultInstanceForType() { return ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse.getDefaultInstance(); } @java.lang.Override public ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse build() { ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse buildPartial() { ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse result = new ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (consensusStatesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { 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(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse) { return mergeFrom((ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse other) { if (other == ibc.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 { ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ibc.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) == 0x00000001)) { consensusStates_ = new java.util.ArrayList(consensusStates_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< ibc.core.client.v1.Client.ConsensusStateWithHeight, ibc.core.client.v1.Client.ConsensusStateWithHeight.Builder, ibc.core.client.v1.Client.ConsensusStateWithHeightOrBuilder> consensusStatesBuilder_; /** *
       * consensus states associated with the identifier
       * 
* * repeated .ibc.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 .ibc.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 .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; */ public ibc.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 .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; */ public Builder setConsensusStates( int index, ibc.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 .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; */ public Builder setConsensusStates( int index, ibc.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 .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; */ public Builder addConsensusStates(ibc.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 .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; */ public Builder addConsensusStates( int index, ibc.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 .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; */ public Builder addConsensusStates( ibc.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 .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; */ public Builder addConsensusStates( int index, ibc.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 .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; */ public Builder addAllConsensusStates( java.lang.Iterable 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 .ibc.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 .ibc.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 .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; */ public ibc.core.client.v1.Client.ConsensusStateWithHeight.Builder getConsensusStatesBuilder( int index) { return getConsensusStatesFieldBuilder().getBuilder(index); } /** *
       * consensus states associated with the identifier
       * 
* * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; */ public ibc.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 .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getConsensusStatesOrBuilderList() { if (consensusStatesBuilder_ != null) { return consensusStatesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(consensusStates_); } } /** *
       * consensus states associated with the identifier
       * 
* * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; */ public ibc.core.client.v1.Client.ConsensusStateWithHeight.Builder addConsensusStatesBuilder() { return getConsensusStatesFieldBuilder().addBuilder( ibc.core.client.v1.Client.ConsensusStateWithHeight.getDefaultInstance()); } /** *
       * consensus states associated with the identifier
       * 
* * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; */ public ibc.core.client.v1.Client.ConsensusStateWithHeight.Builder addConsensusStatesBuilder( int index) { return getConsensusStatesFieldBuilder().addBuilder( index, ibc.core.client.v1.Client.ConsensusStateWithHeight.getDefaultInstance()); } /** *
       * consensus states associated with the identifier
       * 
* * repeated .ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getConsensusStatesBuilderList() { return getConsensusStatesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ibc.core.client.v1.Client.ConsensusStateWithHeight, ibc.core.client.v1.Client.ConsensusStateWithHeight.Builder, ibc.core.client.v1.Client.ConsensusStateWithHeightOrBuilder> getConsensusStatesFieldBuilder() { if (consensusStatesBuilder_ == null) { consensusStatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ibc.core.client.v1.Client.ConsensusStateWithHeight, ibc.core.client.v1.Client.ConsensusStateWithHeight.Builder, ibc.core.client.v1.Client.ConsensusStateWithHeightOrBuilder>( consensusStates_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); consensusStates_ = null; } return consensusStatesBuilder_; } private cosmos.base.query.v1beta1.Pagination.PageResponse pagination_ = null; private com.google.protobuf.SingleFieldBuilderV3< cosmos.base.query.v1beta1.Pagination.PageResponse, cosmos.base.query.v1beta1.Pagination.PageResponse.Builder, cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder> paginationBuilder_; /** *
       * pagination response
       * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ public boolean hasPagination() { return paginationBuilder_ != null || pagination_ != null; } /** *
       * pagination response
       * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() { if (paginationBuilder_ == null) { return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_; } else { return paginationBuilder_.getMessage(); } } /** *
       * pagination response
       * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ public Builder setPagination(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( 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(cosmos.base.query.v1beta1.Pagination.PageResponse value) { if (paginationBuilder_ == null) { if (pagination_ != null) { pagination_ = 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 cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() { onChanged(); return getPaginationFieldBuilder().getBuilder(); } /** *
       * pagination response
       * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() { if (paginationBuilder_ != null) { return paginationBuilder_.getMessageOrBuilder(); } else { return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_; } } /** *
       * pagination response
       * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ private com.google.protobuf.SingleFieldBuilderV3< cosmos.base.query.v1beta1.Pagination.PageResponse, cosmos.base.query.v1beta1.Pagination.PageResponse.Builder, cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder> getPaginationFieldBuilder() { if (paginationBuilder_ == null) { paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cosmos.base.query.v1beta1.Pagination.PageResponse, cosmos.base.query.v1beta1.Pagination.PageResponse.Builder, 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.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:ibc.core.client.v1.QueryConsensusStatesResponse) } // @@protoc_insertion_point(class_scope:ibc.core.client.v1.QueryConsensusStatesResponse) private static final ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse(); } public static ibc.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 ibc.core.client.v1.QueryOuterClass.QueryConsensusStatesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryClientParamsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:ibc.core.client.v1.QueryClientParamsRequest) com.google.protobuf.MessageOrBuilder { } /** *
   * QueryClientParamsRequest is the request type for the Query/ClientParams RPC method.
   * 
* * Protobuf type {@code ibc.core.client.v1.QueryClientParamsRequest} */ public static final class QueryClientParamsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ibc.core.client.v1.QueryClientParamsRequest) QueryClientParamsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use QueryClientParamsRequest.newBuilder() to construct. private QueryClientParamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryClientParamsRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryClientParamsRequest( 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; default: { if (!parseUnknownFieldProto3( 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 ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientParamsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientParamsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest.class, ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest.Builder.class); } 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 { unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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 ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest)) { return super.equals(obj); } ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest other = (ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest) obj; boolean result = true; result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest 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 ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest 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 ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest 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(ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest 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; } /** *
     * QueryClientParamsRequest is the request type for the Query/ClientParams RPC method.
     * 
* * Protobuf type {@code ibc.core.client.v1.QueryClientParamsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ibc.core.client.v1.QueryClientParamsRequest) ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientParamsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientParamsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest.class, ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest.Builder.class); } // Construct using ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest.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(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientParamsRequest_descriptor; } @java.lang.Override public ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest getDefaultInstanceForType() { return ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest.getDefaultInstance(); } @java.lang.Override public ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest build() { ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest buildPartial() { ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest result = new ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest) { return mergeFrom((ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest other) { if (other == ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest.getDefaultInstance()) return this; 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 { ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:ibc.core.client.v1.QueryClientParamsRequest) } // @@protoc_insertion_point(class_scope:ibc.core.client.v1.QueryClientParamsRequest) private static final ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest(); } public static ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryClientParamsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryClientParamsRequest(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 ibc.core.client.v1.QueryOuterClass.QueryClientParamsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryClientParamsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:ibc.core.client.v1.QueryClientParamsResponse) com.google.protobuf.MessageOrBuilder { /** *
     * params defines the parameters of the module.
     * 
* * .ibc.core.client.v1.Params params = 1; */ boolean hasParams(); /** *
     * params defines the parameters of the module.
     * 
* * .ibc.core.client.v1.Params params = 1; */ ibc.core.client.v1.Client.Params getParams(); /** *
     * params defines the parameters of the module.
     * 
* * .ibc.core.client.v1.Params params = 1; */ ibc.core.client.v1.Client.ParamsOrBuilder getParamsOrBuilder(); } /** *
   * QueryClientParamsResponse is the response type for the Query/ClientParams RPC method.
   * 
* * Protobuf type {@code ibc.core.client.v1.QueryClientParamsResponse} */ public static final class QueryClientParamsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ibc.core.client.v1.QueryClientParamsResponse) QueryClientParamsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use QueryClientParamsResponse.newBuilder() to construct. private QueryClientParamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryClientParamsResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryClientParamsResponse( 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: { ibc.core.client.v1.Client.Params.Builder subBuilder = null; if (params_ != null) { subBuilder = params_.toBuilder(); } params_ = input.readMessage(ibc.core.client.v1.Client.Params.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(params_); params_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownFieldProto3( 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 ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientParamsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientParamsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse.class, ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse.Builder.class); } public static final int PARAMS_FIELD_NUMBER = 1; private ibc.core.client.v1.Client.Params params_; /** *
     * params defines the parameters of the module.
     * 
* * .ibc.core.client.v1.Params params = 1; */ public boolean hasParams() { return params_ != null; } /** *
     * params defines the parameters of the module.
     * 
* * .ibc.core.client.v1.Params params = 1; */ public ibc.core.client.v1.Client.Params getParams() { return params_ == null ? ibc.core.client.v1.Client.Params.getDefaultInstance() : params_; } /** *
     * params defines the parameters of the module.
     * 
* * .ibc.core.client.v1.Params params = 1; */ public ibc.core.client.v1.Client.ParamsOrBuilder getParamsOrBuilder() { return getParams(); } 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 (params_ != null) { output.writeMessage(1, getParams()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (params_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getParams()); } 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 ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse)) { return super.equals(obj); } ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse other = (ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse) obj; boolean result = true; result = result && (hasParams() == other.hasParams()); if (hasParams()) { result = result && getParams() .equals(other.getParams()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasParams()) { hash = (37 * hash) + PARAMS_FIELD_NUMBER; hash = (53 * hash) + getParams().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse 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 ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse 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 ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse 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(ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse 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; } /** *
     * QueryClientParamsResponse is the response type for the Query/ClientParams RPC method.
     * 
* * Protobuf type {@code ibc.core.client.v1.QueryClientParamsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ibc.core.client.v1.QueryClientParamsResponse) ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientParamsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientParamsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse.class, ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse.Builder.class); } // Construct using ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse.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 (paramsBuilder_ == null) { params_ = null; } else { params_ = null; paramsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ibc.core.client.v1.QueryOuterClass.internal_static_ibc_core_client_v1_QueryClientParamsResponse_descriptor; } @java.lang.Override public ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse getDefaultInstanceForType() { return ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse.getDefaultInstance(); } @java.lang.Override public ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse build() { ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse buildPartial() { ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse result = new ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse(this); if (paramsBuilder_ == null) { result.params_ = params_; } else { result.params_ = paramsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse) { return mergeFrom((ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse other) { if (other == ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse.getDefaultInstance()) return this; if (other.hasParams()) { mergeParams(other.getParams()); } 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 { ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private ibc.core.client.v1.Client.Params params_ = null; private com.google.protobuf.SingleFieldBuilderV3< ibc.core.client.v1.Client.Params, ibc.core.client.v1.Client.Params.Builder, ibc.core.client.v1.Client.ParamsOrBuilder> paramsBuilder_; /** *
       * params defines the parameters of the module.
       * 
* * .ibc.core.client.v1.Params params = 1; */ public boolean hasParams() { return paramsBuilder_ != null || params_ != null; } /** *
       * params defines the parameters of the module.
       * 
* * .ibc.core.client.v1.Params params = 1; */ public ibc.core.client.v1.Client.Params getParams() { if (paramsBuilder_ == null) { return params_ == null ? ibc.core.client.v1.Client.Params.getDefaultInstance() : params_; } else { return paramsBuilder_.getMessage(); } } /** *
       * params defines the parameters of the module.
       * 
* * .ibc.core.client.v1.Params params = 1; */ public Builder setParams(ibc.core.client.v1.Client.Params value) { if (paramsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } params_ = value; onChanged(); } else { paramsBuilder_.setMessage(value); } return this; } /** *
       * params defines the parameters of the module.
       * 
* * .ibc.core.client.v1.Params params = 1; */ public Builder setParams( ibc.core.client.v1.Client.Params.Builder builderForValue) { if (paramsBuilder_ == null) { params_ = builderForValue.build(); onChanged(); } else { paramsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * params defines the parameters of the module.
       * 
* * .ibc.core.client.v1.Params params = 1; */ public Builder mergeParams(ibc.core.client.v1.Client.Params value) { if (paramsBuilder_ == null) { if (params_ != null) { params_ = ibc.core.client.v1.Client.Params.newBuilder(params_).mergeFrom(value).buildPartial(); } else { params_ = value; } onChanged(); } else { paramsBuilder_.mergeFrom(value); } return this; } /** *
       * params defines the parameters of the module.
       * 
* * .ibc.core.client.v1.Params params = 1; */ public Builder clearParams() { if (paramsBuilder_ == null) { params_ = null; onChanged(); } else { params_ = null; paramsBuilder_ = null; } return this; } /** *
       * params defines the parameters of the module.
       * 
* * .ibc.core.client.v1.Params params = 1; */ public ibc.core.client.v1.Client.Params.Builder getParamsBuilder() { onChanged(); return getParamsFieldBuilder().getBuilder(); } /** *
       * params defines the parameters of the module.
       * 
* * .ibc.core.client.v1.Params params = 1; */ public ibc.core.client.v1.Client.ParamsOrBuilder getParamsOrBuilder() { if (paramsBuilder_ != null) { return paramsBuilder_.getMessageOrBuilder(); } else { return params_ == null ? ibc.core.client.v1.Client.Params.getDefaultInstance() : params_; } } /** *
       * params defines the parameters of the module.
       * 
* * .ibc.core.client.v1.Params params = 1; */ private com.google.protobuf.SingleFieldBuilderV3< ibc.core.client.v1.Client.Params, ibc.core.client.v1.Client.Params.Builder, ibc.core.client.v1.Client.ParamsOrBuilder> getParamsFieldBuilder() { if (paramsBuilder_ == null) { paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< ibc.core.client.v1.Client.Params, ibc.core.client.v1.Client.Params.Builder, ibc.core.client.v1.Client.ParamsOrBuilder>( getParams(), getParentForChildren(), isClean()); params_ = null; } return paramsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:ibc.core.client.v1.QueryClientParamsResponse) } // @@protoc_insertion_point(class_scope:ibc.core.client.v1.QueryClientParamsResponse) private static final ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse(); } public static ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryClientParamsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryClientParamsResponse(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 ibc.core.client.v1.QueryOuterClass.QueryClientParamsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_ibc_core_client_v1_QueryClientStateRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ibc_core_client_v1_QueryClientStateRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ibc_core_client_v1_QueryClientStateResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ibc_core_client_v1_QueryClientStateResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ibc_core_client_v1_QueryClientStatesRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ibc_core_client_v1_QueryClientStatesRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ibc_core_client_v1_QueryClientStatesResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ibc_core_client_v1_QueryClientStatesResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ibc_core_client_v1_QueryConsensusStateRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ibc_core_client_v1_QueryConsensusStateRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ibc_core_client_v1_QueryConsensusStateResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ibc_core_client_v1_QueryConsensusStateResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ibc_core_client_v1_QueryConsensusStatesRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ibc_core_client_v1_QueryConsensusStatesRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ibc_core_client_v1_QueryConsensusStatesResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ibc_core_client_v1_QueryConsensusStatesResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ibc_core_client_v1_QueryClientParamsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ibc_core_client_v1_QueryClientParamsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ibc_core_client_v1_QueryClientParamsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ibc_core_client_v1_QueryClientParamsResponse_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\036ibc/core/client/v1/query.proto\022\022ibc.co" + "re.client.v1\032*cosmos/base/query/v1beta1/" + "pagination.proto\032\037ibc/core/client/v1/cli" + "ent.proto\032\031google/protobuf/any.proto\032\034go" + "ogle/api/annotations.proto\032\024gogoproto/go" + "go.proto\",\n\027QueryClientStateRequest\022\021\n\tc" + "lient_id\030\001 \001(\t\"\215\001\n\030QueryClientStateRespo" + "nse\022*\n\014client_state\030\001 \001(\0132\024.google.proto" + "buf.Any\022\r\n\005proof\030\002 \001(\014\0226\n\014proof_height\030\003" + " \001(\0132\032.ibc.core.client.v1.HeightB\004\310\336\037\000\"V" + "\n\030QueryClientStatesRequest\022:\n\npagination" + "\030\001 \001(\0132&.cosmos.base.query.v1beta1.PageR" + "equest\"\272\001\n\031QueryClientStatesResponse\022`\n\r" + "client_states\030\001 \003(\0132).ibc.core.client.v1" + ".IdentifiedClientStateB\036\310\336\037\000\252\337\037\026Identifi" + "edClientStates\022;\n\npagination\030\002 \001(\0132\'.cos" + "mos.base.query.v1beta1.PageResponse\"x\n\032Q" + "ueryConsensusStateRequest\022\021\n\tclient_id\030\001" + " \001(\t\022\027\n\017revision_number\030\002 \001(\004\022\027\n\017revisio" + "n_height\030\003 \001(\004\022\025\n\rlatest_height\030\004 \001(\010\"\223\001" + "\n\033QueryConsensusStateResponse\022-\n\017consens" + "us_state\030\001 \001(\0132\024.google.protobuf.Any\022\r\n\005" + "proof\030\002 \001(\014\0226\n\014proof_height\030\003 \001(\0132\032.ibc." + "core.client.v1.HeightB\004\310\336\037\000\"l\n\033QueryCons" + "ensusStatesRequest\022\021\n\tclient_id\030\001 \001(\t\022:\n" + "\npagination\030\002 \001(\0132&.cosmos.base.query.v1" + "beta1.PageRequest\"\251\001\n\034QueryConsensusStat" + "esResponse\022L\n\020consensus_states\030\001 \003(\0132,.i" + "bc.core.client.v1.ConsensusStateWithHeig" + "htB\004\310\336\037\000\022;\n\npagination\030\002 \001(\0132\'.cosmos.ba" + "se.query.v1beta1.PageResponse\"\032\n\030QueryCl" + "ientParamsRequest\"G\n\031QueryClientParamsRe" + "sponse\022*\n\006params\030\001 \001(\0132\032.ibc.core.client" + ".v1.Params2\373\006\n\005Query\022\244\001\n\013ClientState\022+.i" + "bc.core.client.v1.QueryClientStateReques" + "t\032,.ibc.core.client.v1.QueryClientStateR" + "esponse\":\202\323\344\223\0024\0222/ibc/core/client/v1beta" + "1/client_states/{client_id}\022\233\001\n\014ClientSt" + "ates\022,.ibc.core.client.v1.QueryClientSta" + "tesRequest\032-.ibc.core.client.v1.QueryCli" + "entStatesResponse\".\202\323\344\223\002(\022&/ibc/core/cli" + "ent/v1beta1/client_states\022\344\001\n\016ConsensusS" + "tate\022..ibc.core.client.v1.QueryConsensus" + "StateRequest\032/.ibc.core.client.v1.QueryC" + "onsensusStateResponse\"q\202\323\344\223\002k\022i/ibc/core" + "/client/v1beta1/consensus_states/{client" + "_id}/revision/{revision_number}/height/{" + "revision_height}\022\263\001\n\017ConsensusStates\022/.i" + "bc.core.client.v1.QueryConsensusStatesRe" + "quest\0320.ibc.core.client.v1.QueryConsensu" + "sStatesResponse\"=\202\323\344\223\0027\0225/ibc/core/clien" + "t/v1beta1/consensus_states/{client_id}\022\217" + "\001\n\014ClientParams\022,.ibc.core.client.v1.Que" + "ryClientParamsRequest\032-.ibc.core.client." + "v1.QueryClientParamsResponse\"\"\202\323\344\223\002\034\022\032/i" + "bc/client/v1beta1/paramsB9Z7github.com/c" + "osmos/cosmos-sdk/x/ibc/core/02-client/ty" + "pesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { cosmos.base.query.v1beta1.Pagination.getDescriptor(), ibc.core.client.v1.Client.getDescriptor(), com.google.protobuf.AnyProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), com.google.protobuf.GoGoProtos.getDescriptor(), }, assigner); internal_static_ibc_core_client_v1_QueryClientStateRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_ibc_core_client_v1_QueryClientStateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ibc_core_client_v1_QueryClientStateRequest_descriptor, new java.lang.String[] { "ClientId", }); internal_static_ibc_core_client_v1_QueryClientStateResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_ibc_core_client_v1_QueryClientStateResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ibc_core_client_v1_QueryClientStateResponse_descriptor, new java.lang.String[] { "ClientState", "Proof", "ProofHeight", }); internal_static_ibc_core_client_v1_QueryClientStatesRequest_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_ibc_core_client_v1_QueryClientStatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ibc_core_client_v1_QueryClientStatesRequest_descriptor, new java.lang.String[] { "Pagination", }); internal_static_ibc_core_client_v1_QueryClientStatesResponse_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_ibc_core_client_v1_QueryClientStatesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ibc_core_client_v1_QueryClientStatesResponse_descriptor, new java.lang.String[] { "ClientStates", "Pagination", }); internal_static_ibc_core_client_v1_QueryConsensusStateRequest_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_ibc_core_client_v1_QueryConsensusStateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ibc_core_client_v1_QueryConsensusStateRequest_descriptor, new java.lang.String[] { "ClientId", "RevisionNumber", "RevisionHeight", "LatestHeight", }); internal_static_ibc_core_client_v1_QueryConsensusStateResponse_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_ibc_core_client_v1_QueryConsensusStateResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ibc_core_client_v1_QueryConsensusStateResponse_descriptor, new java.lang.String[] { "ConsensusState", "Proof", "ProofHeight", }); internal_static_ibc_core_client_v1_QueryConsensusStatesRequest_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_ibc_core_client_v1_QueryConsensusStatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ibc_core_client_v1_QueryConsensusStatesRequest_descriptor, new java.lang.String[] { "ClientId", "Pagination", }); internal_static_ibc_core_client_v1_QueryConsensusStatesResponse_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_ibc_core_client_v1_QueryConsensusStatesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ibc_core_client_v1_QueryConsensusStatesResponse_descriptor, new java.lang.String[] { "ConsensusStates", "Pagination", }); internal_static_ibc_core_client_v1_QueryClientParamsRequest_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_ibc_core_client_v1_QueryClientParamsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ibc_core_client_v1_QueryClientParamsRequest_descriptor, new java.lang.String[] { }); internal_static_ibc_core_client_v1_QueryClientParamsResponse_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_ibc_core_client_v1_QueryClientParamsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ibc_core_client_v1_QueryClientParamsResponse_descriptor, new java.lang.String[] { "Params", }); 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); cosmos.base.query.v1beta1.Pagination.getDescriptor(); ibc.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) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy