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

cosmos.staking.v1beta1.QueryOuterClass Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: cosmos/staking/v1beta1/query.proto

package cosmos.staking.v1beta1;

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 QueryValidatorsRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryValidatorsRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * status enables to query for validators matching a given status.
     * 
* * string status = 1; */ java.lang.String getStatus(); /** *
     * status enables to query for validators matching a given status.
     * 
* * string status = 1; */ com.google.protobuf.ByteString getStatusBytes(); /** *
     * pagination defines an optional pagination for the request.
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ boolean hasPagination(); /** *
     * pagination defines an optional pagination for the request.
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ cosmos.base.query.v1beta1.Pagination.PageRequest getPagination(); /** *
     * pagination defines an optional pagination for the request.
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder(); } /** *
   * QueryValidatorsRequest is request type for Query/Validators RPC method.
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryValidatorsRequest} */ public static final class QueryValidatorsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryValidatorsRequest) QueryValidatorsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use QueryValidatorsRequest.newBuilder() to construct. private QueryValidatorsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryValidatorsRequest() { status_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryValidatorsRequest( 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(); status_ = 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 cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest.class, cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest.Builder.class); } public static final int STATUS_FIELD_NUMBER = 1; private volatile java.lang.Object status_; /** *
     * status enables to query for validators matching a given status.
     * 
* * string status = 1; */ public java.lang.String getStatus() { java.lang.Object ref = status_; 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(); status_ = s; return s; } } /** *
     * status enables to query for validators matching a given status.
     * 
* * string status = 1; */ public com.google.protobuf.ByteString getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); status_ = 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 defines an optional pagination for the request.
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ public boolean hasPagination() { return pagination_ != null; } /** *
     * pagination defines an optional pagination for the 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 defines an optional pagination for the 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 (!getStatusBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, status_); } 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 (!getStatusBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, status_); } 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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest)) { return super.equals(obj); } cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest other = (cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest) obj; boolean result = true; result = result && getStatus() .equals(other.getStatus()); 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) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus().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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest 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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest 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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest 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(cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest 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; } /** *
     * QueryValidatorsRequest is request type for Query/Validators RPC method.
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryValidatorsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryValidatorsRequest) cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest.class, cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest.Builder.class); } // Construct using cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest.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(); status_ = ""; if (paginationBuilder_ == null) { pagination_ = null; } else { pagination_ = null; paginationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorsRequest_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest getDefaultInstanceForType() { return cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest build() { cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest buildPartial() { cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest result = new cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest(this); result.status_ = status_; 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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest) { return mergeFrom((cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest other) { if (other == cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest.getDefaultInstance()) return this; if (!other.getStatus().isEmpty()) { status_ = other.status_; 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 { cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object status_ = ""; /** *
       * status enables to query for validators matching a given status.
       * 
* * string status = 1; */ public java.lang.String getStatus() { java.lang.Object ref = status_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); status_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * status enables to query for validators matching a given status.
       * 
* * string status = 1; */ public com.google.protobuf.ByteString getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); status_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * status enables to query for validators matching a given status.
       * 
* * string status = 1; */ public Builder setStatus( java.lang.String value) { if (value == null) { throw new NullPointerException(); } status_ = value; onChanged(); return this; } /** *
       * status enables to query for validators matching a given status.
       * 
* * string status = 1; */ public Builder clearStatus() { status_ = getDefaultInstance().getStatus(); onChanged(); return this; } /** *
       * status enables to query for validators matching a given status.
       * 
* * string status = 1; */ public Builder setStatusBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); status_ = 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 defines an optional pagination for the request.
       * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ public boolean hasPagination() { return paginationBuilder_ != null || pagination_ != null; } /** *
       * pagination defines an optional pagination for the 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 defines an optional pagination for the 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 defines an optional pagination for the 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 defines an optional pagination for the 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 defines an optional pagination for the 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 defines an optional pagination for the request.
       * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() { onChanged(); return getPaginationFieldBuilder().getBuilder(); } /** *
       * pagination defines an optional pagination for the 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 defines an optional pagination for the 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:cosmos.staking.v1beta1.QueryValidatorsRequest) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryValidatorsRequest) private static final cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest(); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryValidatorsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryValidatorsRequest(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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryValidatorsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryValidatorsResponse) com.google.protobuf.MessageOrBuilder { /** *
     * validators contains all the queried validators.
     * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ java.util.List getValidatorsList(); /** *
     * validators contains all the queried validators.
     * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ cosmos.staking.v1beta1.Staking.Validator getValidators(int index); /** *
     * validators contains all the queried validators.
     * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ int getValidatorsCount(); /** *
     * validators contains all the queried validators.
     * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ java.util.List getValidatorsOrBuilderList(); /** *
     * validators contains all the queried validators.
     * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ cosmos.staking.v1beta1.Staking.ValidatorOrBuilder getValidatorsOrBuilder( int index); /** *
     * pagination defines the pagination in the response.
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ boolean hasPagination(); /** *
     * pagination defines the pagination in the response.
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ cosmos.base.query.v1beta1.Pagination.PageResponse getPagination(); /** *
     * pagination defines the pagination in the response.
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder(); } /** *
   * QueryValidatorsResponse is response type for the Query/Validators RPC method
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryValidatorsResponse} */ public static final class QueryValidatorsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryValidatorsResponse) QueryValidatorsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use QueryValidatorsResponse.newBuilder() to construct. private QueryValidatorsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryValidatorsResponse() { validators_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryValidatorsResponse( 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)) { validators_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } validators_.add( input.readMessage(cosmos.staking.v1beta1.Staking.Validator.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)) { validators_ = java.util.Collections.unmodifiableList(validators_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse.class, cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse.Builder.class); } private int bitField0_; public static final int VALIDATORS_FIELD_NUMBER = 1; private java.util.List validators_; /** *
     * validators contains all the queried validators.
     * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getValidatorsList() { return validators_; } /** *
     * validators contains all the queried validators.
     * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getValidatorsOrBuilderList() { return validators_; } /** *
     * validators contains all the queried validators.
     * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public int getValidatorsCount() { return validators_.size(); } /** *
     * validators contains all the queried validators.
     * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.Validator getValidators(int index) { return validators_.get(index); } /** *
     * validators contains all the queried validators.
     * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.ValidatorOrBuilder getValidatorsOrBuilder( int index) { return validators_.get(index); } public static final int PAGINATION_FIELD_NUMBER = 2; private cosmos.base.query.v1beta1.Pagination.PageResponse pagination_; /** *
     * pagination defines the pagination in the response.
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ public boolean hasPagination() { return pagination_ != null; } /** *
     * pagination defines the pagination in the 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 defines the pagination in the 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 < validators_.size(); i++) { output.writeMessage(1, validators_.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 < validators_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, validators_.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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse)) { return super.equals(obj); } cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse other = (cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse) obj; boolean result = true; result = result && getValidatorsList() .equals(other.getValidatorsList()); 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 (getValidatorsCount() > 0) { hash = (37 * hash) + VALIDATORS_FIELD_NUMBER; hash = (53 * hash) + getValidatorsList().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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse 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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse 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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse 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(cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse 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; } /** *
     * QueryValidatorsResponse is response type for the Query/Validators RPC method
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryValidatorsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryValidatorsResponse) cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse.class, cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse.Builder.class); } // Construct using cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getValidatorsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (validatorsBuilder_ == null) { validators_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { validatorsBuilder_.clear(); } if (paginationBuilder_ == null) { pagination_ = null; } else { pagination_ = null; paginationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorsResponse_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse getDefaultInstanceForType() { return cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse build() { cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse buildPartial() { cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse result = new cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (validatorsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { validators_ = java.util.Collections.unmodifiableList(validators_); bitField0_ = (bitField0_ & ~0x00000001); } result.validators_ = validators_; } else { result.validators_ = validatorsBuilder_.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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse) { return mergeFrom((cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse other) { if (other == cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse.getDefaultInstance()) return this; if (validatorsBuilder_ == null) { if (!other.validators_.isEmpty()) { if (validators_.isEmpty()) { validators_ = other.validators_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureValidatorsIsMutable(); validators_.addAll(other.validators_); } onChanged(); } } else { if (!other.validators_.isEmpty()) { if (validatorsBuilder_.isEmpty()) { validatorsBuilder_.dispose(); validatorsBuilder_ = null; validators_ = other.validators_; bitField0_ = (bitField0_ & ~0x00000001); validatorsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getValidatorsFieldBuilder() : null; } else { validatorsBuilder_.addAllMessages(other.validators_); } } } 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 { cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List validators_ = java.util.Collections.emptyList(); private void ensureValidatorsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { validators_ = new java.util.ArrayList(validators_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< cosmos.staking.v1beta1.Staking.Validator, cosmos.staking.v1beta1.Staking.Validator.Builder, cosmos.staking.v1beta1.Staking.ValidatorOrBuilder> validatorsBuilder_; /** *
       * validators contains all the queried validators.
       * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getValidatorsList() { if (validatorsBuilder_ == null) { return java.util.Collections.unmodifiableList(validators_); } else { return validatorsBuilder_.getMessageList(); } } /** *
       * validators contains all the queried validators.
       * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public int getValidatorsCount() { if (validatorsBuilder_ == null) { return validators_.size(); } else { return validatorsBuilder_.getCount(); } } /** *
       * validators contains all the queried validators.
       * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.Validator getValidators(int index) { if (validatorsBuilder_ == null) { return validators_.get(index); } else { return validatorsBuilder_.getMessage(index); } } /** *
       * validators contains all the queried validators.
       * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public Builder setValidators( int index, cosmos.staking.v1beta1.Staking.Validator value) { if (validatorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValidatorsIsMutable(); validators_.set(index, value); onChanged(); } else { validatorsBuilder_.setMessage(index, value); } return this; } /** *
       * validators contains all the queried validators.
       * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public Builder setValidators( int index, cosmos.staking.v1beta1.Staking.Validator.Builder builderForValue) { if (validatorsBuilder_ == null) { ensureValidatorsIsMutable(); validators_.set(index, builderForValue.build()); onChanged(); } else { validatorsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * validators contains all the queried validators.
       * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public Builder addValidators(cosmos.staking.v1beta1.Staking.Validator value) { if (validatorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValidatorsIsMutable(); validators_.add(value); onChanged(); } else { validatorsBuilder_.addMessage(value); } return this; } /** *
       * validators contains all the queried validators.
       * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public Builder addValidators( int index, cosmos.staking.v1beta1.Staking.Validator value) { if (validatorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValidatorsIsMutable(); validators_.add(index, value); onChanged(); } else { validatorsBuilder_.addMessage(index, value); } return this; } /** *
       * validators contains all the queried validators.
       * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public Builder addValidators( cosmos.staking.v1beta1.Staking.Validator.Builder builderForValue) { if (validatorsBuilder_ == null) { ensureValidatorsIsMutable(); validators_.add(builderForValue.build()); onChanged(); } else { validatorsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * validators contains all the queried validators.
       * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public Builder addValidators( int index, cosmos.staking.v1beta1.Staking.Validator.Builder builderForValue) { if (validatorsBuilder_ == null) { ensureValidatorsIsMutable(); validators_.add(index, builderForValue.build()); onChanged(); } else { validatorsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * validators contains all the queried validators.
       * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public Builder addAllValidators( java.lang.Iterable values) { if (validatorsBuilder_ == null) { ensureValidatorsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, validators_); onChanged(); } else { validatorsBuilder_.addAllMessages(values); } return this; } /** *
       * validators contains all the queried validators.
       * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public Builder clearValidators() { if (validatorsBuilder_ == null) { validators_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { validatorsBuilder_.clear(); } return this; } /** *
       * validators contains all the queried validators.
       * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public Builder removeValidators(int index) { if (validatorsBuilder_ == null) { ensureValidatorsIsMutable(); validators_.remove(index); onChanged(); } else { validatorsBuilder_.remove(index); } return this; } /** *
       * validators contains all the queried validators.
       * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.Validator.Builder getValidatorsBuilder( int index) { return getValidatorsFieldBuilder().getBuilder(index); } /** *
       * validators contains all the queried validators.
       * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.ValidatorOrBuilder getValidatorsOrBuilder( int index) { if (validatorsBuilder_ == null) { return validators_.get(index); } else { return validatorsBuilder_.getMessageOrBuilder(index); } } /** *
       * validators contains all the queried validators.
       * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getValidatorsOrBuilderList() { if (validatorsBuilder_ != null) { return validatorsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(validators_); } } /** *
       * validators contains all the queried validators.
       * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.Validator.Builder addValidatorsBuilder() { return getValidatorsFieldBuilder().addBuilder( cosmos.staking.v1beta1.Staking.Validator.getDefaultInstance()); } /** *
       * validators contains all the queried validators.
       * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.Validator.Builder addValidatorsBuilder( int index) { return getValidatorsFieldBuilder().addBuilder( index, cosmos.staking.v1beta1.Staking.Validator.getDefaultInstance()); } /** *
       * validators contains all the queried validators.
       * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getValidatorsBuilderList() { return getValidatorsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< cosmos.staking.v1beta1.Staking.Validator, cosmos.staking.v1beta1.Staking.Validator.Builder, cosmos.staking.v1beta1.Staking.ValidatorOrBuilder> getValidatorsFieldBuilder() { if (validatorsBuilder_ == null) { validatorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< cosmos.staking.v1beta1.Staking.Validator, cosmos.staking.v1beta1.Staking.Validator.Builder, cosmos.staking.v1beta1.Staking.ValidatorOrBuilder>( validators_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); validators_ = null; } return validatorsBuilder_; } 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 defines the pagination in the response.
       * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ public boolean hasPagination() { return paginationBuilder_ != null || pagination_ != null; } /** *
       * pagination defines the pagination in the 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 defines the pagination in the 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 defines the pagination in the 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 defines the pagination in the 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 defines the pagination in the 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 defines the pagination in the response.
       * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() { onChanged(); return getPaginationFieldBuilder().getBuilder(); } /** *
       * pagination defines the pagination in the 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 defines the pagination in the 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:cosmos.staking.v1beta1.QueryValidatorsResponse) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryValidatorsResponse) private static final cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse(); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryValidatorsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryValidatorsResponse(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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryValidatorRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryValidatorRequest) com.google.protobuf.MessageOrBuilder { /** *
     * validator_addr defines the validator address to query for.
     * 
* * string validator_addr = 1; */ java.lang.String getValidatorAddr(); /** *
     * validator_addr defines the validator address to query for.
     * 
* * string validator_addr = 1; */ com.google.protobuf.ByteString getValidatorAddrBytes(); } /** *
   * QueryValidatorRequest is response type for the Query/Validator RPC method
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryValidatorRequest} */ public static final class QueryValidatorRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryValidatorRequest) QueryValidatorRequestOrBuilder { private static final long serialVersionUID = 0L; // Use QueryValidatorRequest.newBuilder() to construct. private QueryValidatorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryValidatorRequest() { validatorAddr_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryValidatorRequest( 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(); validatorAddr_ = 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 cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest.class, cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest.Builder.class); } public static final int VALIDATOR_ADDR_FIELD_NUMBER = 1; private volatile java.lang.Object validatorAddr_; /** *
     * validator_addr defines the validator address to query for.
     * 
* * string validator_addr = 1; */ public java.lang.String getValidatorAddr() { java.lang.Object ref = validatorAddr_; 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(); validatorAddr_ = s; return s; } } /** *
     * validator_addr defines the validator address to query for.
     * 
* * string validator_addr = 1; */ public com.google.protobuf.ByteString getValidatorAddrBytes() { java.lang.Object ref = validatorAddr_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validatorAddr_ = 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 (!getValidatorAddrBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, validatorAddr_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getValidatorAddrBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, validatorAddr_); } 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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest)) { return super.equals(obj); } cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest other = (cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest) obj; boolean result = true; result = result && getValidatorAddr() .equals(other.getValidatorAddr()); 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) + VALIDATOR_ADDR_FIELD_NUMBER; hash = (53 * hash) + getValidatorAddr().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest 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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest 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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest 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(cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest 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; } /** *
     * QueryValidatorRequest is response type for the Query/Validator RPC method
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryValidatorRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryValidatorRequest) cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest.class, cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest.Builder.class); } // Construct using cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest.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(); validatorAddr_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorRequest_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest getDefaultInstanceForType() { return cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest build() { cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest buildPartial() { cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest result = new cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest(this); result.validatorAddr_ = validatorAddr_; 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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest) { return mergeFrom((cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest other) { if (other == cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest.getDefaultInstance()) return this; if (!other.getValidatorAddr().isEmpty()) { validatorAddr_ = other.validatorAddr_; 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 { cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object validatorAddr_ = ""; /** *
       * validator_addr defines the validator address to query for.
       * 
* * string validator_addr = 1; */ public java.lang.String getValidatorAddr() { java.lang.Object ref = validatorAddr_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); validatorAddr_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * validator_addr defines the validator address to query for.
       * 
* * string validator_addr = 1; */ public com.google.protobuf.ByteString getValidatorAddrBytes() { java.lang.Object ref = validatorAddr_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validatorAddr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * validator_addr defines the validator address to query for.
       * 
* * string validator_addr = 1; */ public Builder setValidatorAddr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } validatorAddr_ = value; onChanged(); return this; } /** *
       * validator_addr defines the validator address to query for.
       * 
* * string validator_addr = 1; */ public Builder clearValidatorAddr() { validatorAddr_ = getDefaultInstance().getValidatorAddr(); onChanged(); return this; } /** *
       * validator_addr defines the validator address to query for.
       * 
* * string validator_addr = 1; */ public Builder setValidatorAddrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); validatorAddr_ = 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:cosmos.staking.v1beta1.QueryValidatorRequest) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryValidatorRequest) private static final cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest(); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryValidatorRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryValidatorRequest(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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryValidatorResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryValidatorResponse) com.google.protobuf.MessageOrBuilder { /** *
     * validator defines the the validator info.
     * 
* * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; */ boolean hasValidator(); /** *
     * validator defines the the validator info.
     * 
* * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; */ cosmos.staking.v1beta1.Staking.Validator getValidator(); /** *
     * validator defines the the validator info.
     * 
* * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; */ cosmos.staking.v1beta1.Staking.ValidatorOrBuilder getValidatorOrBuilder(); } /** *
   * QueryValidatorResponse is response type for the Query/Validator RPC method
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryValidatorResponse} */ public static final class QueryValidatorResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryValidatorResponse) QueryValidatorResponseOrBuilder { private static final long serialVersionUID = 0L; // Use QueryValidatorResponse.newBuilder() to construct. private QueryValidatorResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryValidatorResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryValidatorResponse( 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.staking.v1beta1.Staking.Validator.Builder subBuilder = null; if (validator_ != null) { subBuilder = validator_.toBuilder(); } validator_ = input.readMessage(cosmos.staking.v1beta1.Staking.Validator.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(validator_); validator_ = 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 cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse.class, cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse.Builder.class); } public static final int VALIDATOR_FIELD_NUMBER = 1; private cosmos.staking.v1beta1.Staking.Validator validator_; /** *
     * validator defines the the validator info.
     * 
* * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; */ public boolean hasValidator() { return validator_ != null; } /** *
     * validator defines the the validator info.
     * 
* * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.Validator getValidator() { return validator_ == null ? cosmos.staking.v1beta1.Staking.Validator.getDefaultInstance() : validator_; } /** *
     * validator defines the the validator info.
     * 
* * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.ValidatorOrBuilder getValidatorOrBuilder() { return getValidator(); } 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 (validator_ != null) { output.writeMessage(1, getValidator()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (validator_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getValidator()); } 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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse)) { return super.equals(obj); } cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse other = (cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse) obj; boolean result = true; result = result && (hasValidator() == other.hasValidator()); if (hasValidator()) { result = result && getValidator() .equals(other.getValidator()); } 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 (hasValidator()) { hash = (37 * hash) + VALIDATOR_FIELD_NUMBER; hash = (53 * hash) + getValidator().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse 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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse 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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse 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(cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse 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; } /** *
     * QueryValidatorResponse is response type for the Query/Validator RPC method
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryValidatorResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryValidatorResponse) cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse.class, cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse.Builder.class); } // Construct using cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse.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 (validatorBuilder_ == null) { validator_ = null; } else { validator_ = null; validatorBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorResponse_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse getDefaultInstanceForType() { return cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse build() { cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse buildPartial() { cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse result = new cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse(this); if (validatorBuilder_ == null) { result.validator_ = validator_; } else { result.validator_ = validatorBuilder_.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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse) { return mergeFrom((cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse other) { if (other == cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse.getDefaultInstance()) return this; if (other.hasValidator()) { mergeValidator(other.getValidator()); } 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 { cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private cosmos.staking.v1beta1.Staking.Validator validator_ = null; private com.google.protobuf.SingleFieldBuilderV3< cosmos.staking.v1beta1.Staking.Validator, cosmos.staking.v1beta1.Staking.Validator.Builder, cosmos.staking.v1beta1.Staking.ValidatorOrBuilder> validatorBuilder_; /** *
       * validator defines the the validator info.
       * 
* * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; */ public boolean hasValidator() { return validatorBuilder_ != null || validator_ != null; } /** *
       * validator defines the the validator info.
       * 
* * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.Validator getValidator() { if (validatorBuilder_ == null) { return validator_ == null ? cosmos.staking.v1beta1.Staking.Validator.getDefaultInstance() : validator_; } else { return validatorBuilder_.getMessage(); } } /** *
       * validator defines the the validator info.
       * 
* * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; */ public Builder setValidator(cosmos.staking.v1beta1.Staking.Validator value) { if (validatorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } validator_ = value; onChanged(); } else { validatorBuilder_.setMessage(value); } return this; } /** *
       * validator defines the the validator info.
       * 
* * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; */ public Builder setValidator( cosmos.staking.v1beta1.Staking.Validator.Builder builderForValue) { if (validatorBuilder_ == null) { validator_ = builderForValue.build(); onChanged(); } else { validatorBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * validator defines the the validator info.
       * 
* * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; */ public Builder mergeValidator(cosmos.staking.v1beta1.Staking.Validator value) { if (validatorBuilder_ == null) { if (validator_ != null) { validator_ = cosmos.staking.v1beta1.Staking.Validator.newBuilder(validator_).mergeFrom(value).buildPartial(); } else { validator_ = value; } onChanged(); } else { validatorBuilder_.mergeFrom(value); } return this; } /** *
       * validator defines the the validator info.
       * 
* * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; */ public Builder clearValidator() { if (validatorBuilder_ == null) { validator_ = null; onChanged(); } else { validator_ = null; validatorBuilder_ = null; } return this; } /** *
       * validator defines the the validator info.
       * 
* * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.Validator.Builder getValidatorBuilder() { onChanged(); return getValidatorFieldBuilder().getBuilder(); } /** *
       * validator defines the the validator info.
       * 
* * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.ValidatorOrBuilder getValidatorOrBuilder() { if (validatorBuilder_ != null) { return validatorBuilder_.getMessageOrBuilder(); } else { return validator_ == null ? cosmos.staking.v1beta1.Staking.Validator.getDefaultInstance() : validator_; } } /** *
       * validator defines the the validator info.
       * 
* * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; */ private com.google.protobuf.SingleFieldBuilderV3< cosmos.staking.v1beta1.Staking.Validator, cosmos.staking.v1beta1.Staking.Validator.Builder, cosmos.staking.v1beta1.Staking.ValidatorOrBuilder> getValidatorFieldBuilder() { if (validatorBuilder_ == null) { validatorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cosmos.staking.v1beta1.Staking.Validator, cosmos.staking.v1beta1.Staking.Validator.Builder, cosmos.staking.v1beta1.Staking.ValidatorOrBuilder>( getValidator(), getParentForChildren(), isClean()); validator_ = null; } return validatorBuilder_; } @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:cosmos.staking.v1beta1.QueryValidatorResponse) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryValidatorResponse) private static final cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse(); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryValidatorResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryValidatorResponse(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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryValidatorDelegationsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryValidatorDelegationsRequest) com.google.protobuf.MessageOrBuilder { /** *
     * validator_addr defines the validator address to query for.
     * 
* * string validator_addr = 1; */ java.lang.String getValidatorAddr(); /** *
     * validator_addr defines the validator address to query for.
     * 
* * string validator_addr = 1; */ com.google.protobuf.ByteString getValidatorAddrBytes(); /** *
     * pagination defines an optional pagination for the request.
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ boolean hasPagination(); /** *
     * pagination defines an optional pagination for the request.
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ cosmos.base.query.v1beta1.Pagination.PageRequest getPagination(); /** *
     * pagination defines an optional pagination for the request.
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder(); } /** *
   * QueryValidatorDelegationsRequest is request type for the
   * Query/ValidatorDelegations RPC method
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryValidatorDelegationsRequest} */ public static final class QueryValidatorDelegationsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryValidatorDelegationsRequest) QueryValidatorDelegationsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use QueryValidatorDelegationsRequest.newBuilder() to construct. private QueryValidatorDelegationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryValidatorDelegationsRequest() { validatorAddr_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryValidatorDelegationsRequest( 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(); validatorAddr_ = 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 cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest.class, cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest.Builder.class); } public static final int VALIDATOR_ADDR_FIELD_NUMBER = 1; private volatile java.lang.Object validatorAddr_; /** *
     * validator_addr defines the validator address to query for.
     * 
* * string validator_addr = 1; */ public java.lang.String getValidatorAddr() { java.lang.Object ref = validatorAddr_; 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(); validatorAddr_ = s; return s; } } /** *
     * validator_addr defines the validator address to query for.
     * 
* * string validator_addr = 1; */ public com.google.protobuf.ByteString getValidatorAddrBytes() { java.lang.Object ref = validatorAddr_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validatorAddr_ = 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 defines an optional pagination for the request.
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ public boolean hasPagination() { return pagination_ != null; } /** *
     * pagination defines an optional pagination for the 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 defines an optional pagination for the 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 (!getValidatorAddrBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, validatorAddr_); } 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 (!getValidatorAddrBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, validatorAddr_); } 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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest)) { return super.equals(obj); } cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest other = (cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest) obj; boolean result = true; result = result && getValidatorAddr() .equals(other.getValidatorAddr()); 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) + VALIDATOR_ADDR_FIELD_NUMBER; hash = (53 * hash) + getValidatorAddr().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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest 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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest 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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest 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(cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest 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; } /** *
     * QueryValidatorDelegationsRequest is request type for the
     * Query/ValidatorDelegations RPC method
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryValidatorDelegationsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryValidatorDelegationsRequest) cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest.class, cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest.Builder.class); } // Construct using cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest.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(); validatorAddr_ = ""; if (paginationBuilder_ == null) { pagination_ = null; } else { pagination_ = null; paginationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsRequest_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest getDefaultInstanceForType() { return cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest build() { cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest buildPartial() { cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest result = new cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest(this); result.validatorAddr_ = validatorAddr_; 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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest) { return mergeFrom((cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest other) { if (other == cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest.getDefaultInstance()) return this; if (!other.getValidatorAddr().isEmpty()) { validatorAddr_ = other.validatorAddr_; 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 { cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object validatorAddr_ = ""; /** *
       * validator_addr defines the validator address to query for.
       * 
* * string validator_addr = 1; */ public java.lang.String getValidatorAddr() { java.lang.Object ref = validatorAddr_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); validatorAddr_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * validator_addr defines the validator address to query for.
       * 
* * string validator_addr = 1; */ public com.google.protobuf.ByteString getValidatorAddrBytes() { java.lang.Object ref = validatorAddr_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validatorAddr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * validator_addr defines the validator address to query for.
       * 
* * string validator_addr = 1; */ public Builder setValidatorAddr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } validatorAddr_ = value; onChanged(); return this; } /** *
       * validator_addr defines the validator address to query for.
       * 
* * string validator_addr = 1; */ public Builder clearValidatorAddr() { validatorAddr_ = getDefaultInstance().getValidatorAddr(); onChanged(); return this; } /** *
       * validator_addr defines the validator address to query for.
       * 
* * string validator_addr = 1; */ public Builder setValidatorAddrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); validatorAddr_ = 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 defines an optional pagination for the request.
       * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ public boolean hasPagination() { return paginationBuilder_ != null || pagination_ != null; } /** *
       * pagination defines an optional pagination for the 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 defines an optional pagination for the 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 defines an optional pagination for the 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 defines an optional pagination for the 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 defines an optional pagination for the 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 defines an optional pagination for the request.
       * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() { onChanged(); return getPaginationFieldBuilder().getBuilder(); } /** *
       * pagination defines an optional pagination for the 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 defines an optional pagination for the 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:cosmos.staking.v1beta1.QueryValidatorDelegationsRequest) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryValidatorDelegationsRequest) private static final cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest(); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryValidatorDelegationsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryValidatorDelegationsRequest(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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryValidatorDelegationsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryValidatorDelegationsResponse) com.google.protobuf.MessageOrBuilder { /** * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; */ java.util.List getDelegationResponsesList(); /** * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; */ cosmos.staking.v1beta1.Staking.DelegationResponse getDelegationResponses(int index); /** * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; */ int getDelegationResponsesCount(); /** * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; */ java.util.List getDelegationResponsesOrBuilderList(); /** * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; */ cosmos.staking.v1beta1.Staking.DelegationResponseOrBuilder getDelegationResponsesOrBuilder( int index); /** *
     * pagination defines the pagination in the response.
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ boolean hasPagination(); /** *
     * pagination defines the pagination in the response.
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ cosmos.base.query.v1beta1.Pagination.PageResponse getPagination(); /** *
     * pagination defines the pagination in the response.
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder(); } /** *
   * QueryValidatorDelegationsResponse is response type for the
   * Query/ValidatorDelegations RPC method
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryValidatorDelegationsResponse} */ public static final class QueryValidatorDelegationsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryValidatorDelegationsResponse) QueryValidatorDelegationsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use QueryValidatorDelegationsResponse.newBuilder() to construct. private QueryValidatorDelegationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryValidatorDelegationsResponse() { delegationResponses_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryValidatorDelegationsResponse( 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)) { delegationResponses_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } delegationResponses_.add( input.readMessage(cosmos.staking.v1beta1.Staking.DelegationResponse.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)) { delegationResponses_ = java.util.Collections.unmodifiableList(delegationResponses_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse.class, cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse.Builder.class); } private int bitField0_; public static final int DELEGATION_RESPONSES_FIELD_NUMBER = 1; private java.util.List delegationResponses_; /** * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; */ public java.util.List getDelegationResponsesList() { return delegationResponses_; } /** * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; */ public java.util.List getDelegationResponsesOrBuilderList() { return delegationResponses_; } /** * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; */ public int getDelegationResponsesCount() { return delegationResponses_.size(); } /** * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; */ public cosmos.staking.v1beta1.Staking.DelegationResponse getDelegationResponses(int index) { return delegationResponses_.get(index); } /** * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; */ public cosmos.staking.v1beta1.Staking.DelegationResponseOrBuilder getDelegationResponsesOrBuilder( int index) { return delegationResponses_.get(index); } public static final int PAGINATION_FIELD_NUMBER = 2; private cosmos.base.query.v1beta1.Pagination.PageResponse pagination_; /** *
     * pagination defines the pagination in the response.
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ public boolean hasPagination() { return pagination_ != null; } /** *
     * pagination defines the pagination in the 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 defines the pagination in the 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 < delegationResponses_.size(); i++) { output.writeMessage(1, delegationResponses_.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 < delegationResponses_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, delegationResponses_.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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse)) { return super.equals(obj); } cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse other = (cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse) obj; boolean result = true; result = result && getDelegationResponsesList() .equals(other.getDelegationResponsesList()); 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 (getDelegationResponsesCount() > 0) { hash = (37 * hash) + DELEGATION_RESPONSES_FIELD_NUMBER; hash = (53 * hash) + getDelegationResponsesList().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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse 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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse 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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse 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(cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse 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; } /** *
     * QueryValidatorDelegationsResponse is response type for the
     * Query/ValidatorDelegations RPC method
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryValidatorDelegationsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryValidatorDelegationsResponse) cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse.class, cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse.Builder.class); } // Construct using cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDelegationResponsesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (delegationResponsesBuilder_ == null) { delegationResponses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { delegationResponsesBuilder_.clear(); } if (paginationBuilder_ == null) { pagination_ = null; } else { pagination_ = null; paginationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsResponse_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse getDefaultInstanceForType() { return cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse build() { cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse buildPartial() { cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse result = new cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (delegationResponsesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { delegationResponses_ = java.util.Collections.unmodifiableList(delegationResponses_); bitField0_ = (bitField0_ & ~0x00000001); } result.delegationResponses_ = delegationResponses_; } else { result.delegationResponses_ = delegationResponsesBuilder_.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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse) { return mergeFrom((cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse other) { if (other == cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse.getDefaultInstance()) return this; if (delegationResponsesBuilder_ == null) { if (!other.delegationResponses_.isEmpty()) { if (delegationResponses_.isEmpty()) { delegationResponses_ = other.delegationResponses_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDelegationResponsesIsMutable(); delegationResponses_.addAll(other.delegationResponses_); } onChanged(); } } else { if (!other.delegationResponses_.isEmpty()) { if (delegationResponsesBuilder_.isEmpty()) { delegationResponsesBuilder_.dispose(); delegationResponsesBuilder_ = null; delegationResponses_ = other.delegationResponses_; bitField0_ = (bitField0_ & ~0x00000001); delegationResponsesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDelegationResponsesFieldBuilder() : null; } else { delegationResponsesBuilder_.addAllMessages(other.delegationResponses_); } } } 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 { cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List delegationResponses_ = java.util.Collections.emptyList(); private void ensureDelegationResponsesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { delegationResponses_ = new java.util.ArrayList(delegationResponses_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< cosmos.staking.v1beta1.Staking.DelegationResponse, cosmos.staking.v1beta1.Staking.DelegationResponse.Builder, cosmos.staking.v1beta1.Staking.DelegationResponseOrBuilder> delegationResponsesBuilder_; /** * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; */ public java.util.List getDelegationResponsesList() { if (delegationResponsesBuilder_ == null) { return java.util.Collections.unmodifiableList(delegationResponses_); } else { return delegationResponsesBuilder_.getMessageList(); } } /** * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; */ public int getDelegationResponsesCount() { if (delegationResponsesBuilder_ == null) { return delegationResponses_.size(); } else { return delegationResponsesBuilder_.getCount(); } } /** * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; */ public cosmos.staking.v1beta1.Staking.DelegationResponse getDelegationResponses(int index) { if (delegationResponsesBuilder_ == null) { return delegationResponses_.get(index); } else { return delegationResponsesBuilder_.getMessage(index); } } /** * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; */ public Builder setDelegationResponses( int index, cosmos.staking.v1beta1.Staking.DelegationResponse value) { if (delegationResponsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDelegationResponsesIsMutable(); delegationResponses_.set(index, value); onChanged(); } else { delegationResponsesBuilder_.setMessage(index, value); } return this; } /** * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; */ public Builder setDelegationResponses( int index, cosmos.staking.v1beta1.Staking.DelegationResponse.Builder builderForValue) { if (delegationResponsesBuilder_ == null) { ensureDelegationResponsesIsMutable(); delegationResponses_.set(index, builderForValue.build()); onChanged(); } else { delegationResponsesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; */ public Builder addDelegationResponses(cosmos.staking.v1beta1.Staking.DelegationResponse value) { if (delegationResponsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDelegationResponsesIsMutable(); delegationResponses_.add(value); onChanged(); } else { delegationResponsesBuilder_.addMessage(value); } return this; } /** * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; */ public Builder addDelegationResponses( int index, cosmos.staking.v1beta1.Staking.DelegationResponse value) { if (delegationResponsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDelegationResponsesIsMutable(); delegationResponses_.add(index, value); onChanged(); } else { delegationResponsesBuilder_.addMessage(index, value); } return this; } /** * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; */ public Builder addDelegationResponses( cosmos.staking.v1beta1.Staking.DelegationResponse.Builder builderForValue) { if (delegationResponsesBuilder_ == null) { ensureDelegationResponsesIsMutable(); delegationResponses_.add(builderForValue.build()); onChanged(); } else { delegationResponsesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; */ public Builder addDelegationResponses( int index, cosmos.staking.v1beta1.Staking.DelegationResponse.Builder builderForValue) { if (delegationResponsesBuilder_ == null) { ensureDelegationResponsesIsMutable(); delegationResponses_.add(index, builderForValue.build()); onChanged(); } else { delegationResponsesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; */ public Builder addAllDelegationResponses( java.lang.Iterable values) { if (delegationResponsesBuilder_ == null) { ensureDelegationResponsesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, delegationResponses_); onChanged(); } else { delegationResponsesBuilder_.addAllMessages(values); } return this; } /** * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; */ public Builder clearDelegationResponses() { if (delegationResponsesBuilder_ == null) { delegationResponses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { delegationResponsesBuilder_.clear(); } return this; } /** * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; */ public Builder removeDelegationResponses(int index) { if (delegationResponsesBuilder_ == null) { ensureDelegationResponsesIsMutable(); delegationResponses_.remove(index); onChanged(); } else { delegationResponsesBuilder_.remove(index); } return this; } /** * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; */ public cosmos.staking.v1beta1.Staking.DelegationResponse.Builder getDelegationResponsesBuilder( int index) { return getDelegationResponsesFieldBuilder().getBuilder(index); } /** * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; */ public cosmos.staking.v1beta1.Staking.DelegationResponseOrBuilder getDelegationResponsesOrBuilder( int index) { if (delegationResponsesBuilder_ == null) { return delegationResponses_.get(index); } else { return delegationResponsesBuilder_.getMessageOrBuilder(index); } } /** * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; */ public java.util.List getDelegationResponsesOrBuilderList() { if (delegationResponsesBuilder_ != null) { return delegationResponsesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(delegationResponses_); } } /** * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; */ public cosmos.staking.v1beta1.Staking.DelegationResponse.Builder addDelegationResponsesBuilder() { return getDelegationResponsesFieldBuilder().addBuilder( cosmos.staking.v1beta1.Staking.DelegationResponse.getDefaultInstance()); } /** * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; */ public cosmos.staking.v1beta1.Staking.DelegationResponse.Builder addDelegationResponsesBuilder( int index) { return getDelegationResponsesFieldBuilder().addBuilder( index, cosmos.staking.v1beta1.Staking.DelegationResponse.getDefaultInstance()); } /** * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "DelegationResponses"]; */ public java.util.List getDelegationResponsesBuilderList() { return getDelegationResponsesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< cosmos.staking.v1beta1.Staking.DelegationResponse, cosmos.staking.v1beta1.Staking.DelegationResponse.Builder, cosmos.staking.v1beta1.Staking.DelegationResponseOrBuilder> getDelegationResponsesFieldBuilder() { if (delegationResponsesBuilder_ == null) { delegationResponsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< cosmos.staking.v1beta1.Staking.DelegationResponse, cosmos.staking.v1beta1.Staking.DelegationResponse.Builder, cosmos.staking.v1beta1.Staking.DelegationResponseOrBuilder>( delegationResponses_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); delegationResponses_ = null; } return delegationResponsesBuilder_; } 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 defines the pagination in the response.
       * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ public boolean hasPagination() { return paginationBuilder_ != null || pagination_ != null; } /** *
       * pagination defines the pagination in the 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 defines the pagination in the 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 defines the pagination in the 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 defines the pagination in the 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 defines the pagination in the 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 defines the pagination in the response.
       * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() { onChanged(); return getPaginationFieldBuilder().getBuilder(); } /** *
       * pagination defines the pagination in the 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 defines the pagination in the 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:cosmos.staking.v1beta1.QueryValidatorDelegationsResponse) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryValidatorDelegationsResponse) private static final cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse(); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryValidatorDelegationsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryValidatorDelegationsResponse(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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorDelegationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryValidatorUnbondingDelegationsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest) com.google.protobuf.MessageOrBuilder { /** *
     * validator_addr defines the validator address to query for.
     * 
* * string validator_addr = 1; */ java.lang.String getValidatorAddr(); /** *
     * validator_addr defines the validator address to query for.
     * 
* * string validator_addr = 1; */ com.google.protobuf.ByteString getValidatorAddrBytes(); /** *
     * pagination defines an optional pagination for the request.
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ boolean hasPagination(); /** *
     * pagination defines an optional pagination for the request.
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ cosmos.base.query.v1beta1.Pagination.PageRequest getPagination(); /** *
     * pagination defines an optional pagination for the request.
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder(); } /** *
   * QueryValidatorUnbondingDelegationsRequest is required type for the
   * Query/ValidatorUnbondingDelegations RPC method
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest} */ public static final class QueryValidatorUnbondingDelegationsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest) QueryValidatorUnbondingDelegationsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use QueryValidatorUnbondingDelegationsRequest.newBuilder() to construct. private QueryValidatorUnbondingDelegationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryValidatorUnbondingDelegationsRequest() { validatorAddr_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryValidatorUnbondingDelegationsRequest( 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(); validatorAddr_ = 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 cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest.class, cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest.Builder.class); } public static final int VALIDATOR_ADDR_FIELD_NUMBER = 1; private volatile java.lang.Object validatorAddr_; /** *
     * validator_addr defines the validator address to query for.
     * 
* * string validator_addr = 1; */ public java.lang.String getValidatorAddr() { java.lang.Object ref = validatorAddr_; 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(); validatorAddr_ = s; return s; } } /** *
     * validator_addr defines the validator address to query for.
     * 
* * string validator_addr = 1; */ public com.google.protobuf.ByteString getValidatorAddrBytes() { java.lang.Object ref = validatorAddr_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validatorAddr_ = 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 defines an optional pagination for the request.
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ public boolean hasPagination() { return pagination_ != null; } /** *
     * pagination defines an optional pagination for the 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 defines an optional pagination for the 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 (!getValidatorAddrBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, validatorAddr_); } 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 (!getValidatorAddrBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, validatorAddr_); } 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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest)) { return super.equals(obj); } cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest other = (cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest) obj; boolean result = true; result = result && getValidatorAddr() .equals(other.getValidatorAddr()); 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) + VALIDATOR_ADDR_FIELD_NUMBER; hash = (53 * hash) + getValidatorAddr().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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest 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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest 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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest 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(cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest 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; } /** *
     * QueryValidatorUnbondingDelegationsRequest is required type for the
     * Query/ValidatorUnbondingDelegations RPC method
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest) cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest.class, cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest.Builder.class); } // Construct using cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest.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(); validatorAddr_ = ""; if (paginationBuilder_ == null) { pagination_ = null; } else { pagination_ = null; paginationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsRequest_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest getDefaultInstanceForType() { return cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest build() { cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest buildPartial() { cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest result = new cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest(this); result.validatorAddr_ = validatorAddr_; 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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest) { return mergeFrom((cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest other) { if (other == cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest.getDefaultInstance()) return this; if (!other.getValidatorAddr().isEmpty()) { validatorAddr_ = other.validatorAddr_; 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 { cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object validatorAddr_ = ""; /** *
       * validator_addr defines the validator address to query for.
       * 
* * string validator_addr = 1; */ public java.lang.String getValidatorAddr() { java.lang.Object ref = validatorAddr_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); validatorAddr_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * validator_addr defines the validator address to query for.
       * 
* * string validator_addr = 1; */ public com.google.protobuf.ByteString getValidatorAddrBytes() { java.lang.Object ref = validatorAddr_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validatorAddr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * validator_addr defines the validator address to query for.
       * 
* * string validator_addr = 1; */ public Builder setValidatorAddr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } validatorAddr_ = value; onChanged(); return this; } /** *
       * validator_addr defines the validator address to query for.
       * 
* * string validator_addr = 1; */ public Builder clearValidatorAddr() { validatorAddr_ = getDefaultInstance().getValidatorAddr(); onChanged(); return this; } /** *
       * validator_addr defines the validator address to query for.
       * 
* * string validator_addr = 1; */ public Builder setValidatorAddrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); validatorAddr_ = 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 defines an optional pagination for the request.
       * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ public boolean hasPagination() { return paginationBuilder_ != null || pagination_ != null; } /** *
       * pagination defines an optional pagination for the 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 defines an optional pagination for the 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 defines an optional pagination for the 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 defines an optional pagination for the 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 defines an optional pagination for the 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 defines an optional pagination for the request.
       * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() { onChanged(); return getPaginationFieldBuilder().getBuilder(); } /** *
       * pagination defines an optional pagination for the 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 defines an optional pagination for the 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:cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest) private static final cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest(); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryValidatorUnbondingDelegationsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryValidatorUnbondingDelegationsRequest(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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryValidatorUnbondingDelegationsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse) com.google.protobuf.MessageOrBuilder { /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ java.util.List getUnbondingResponsesList(); /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ cosmos.staking.v1beta1.Staking.UnbondingDelegation getUnbondingResponses(int index); /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ int getUnbondingResponsesCount(); /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ java.util.List getUnbondingResponsesOrBuilderList(); /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ cosmos.staking.v1beta1.Staking.UnbondingDelegationOrBuilder getUnbondingResponsesOrBuilder( int index); /** *
     * pagination defines the pagination in the response.
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ boolean hasPagination(); /** *
     * pagination defines the pagination in the response.
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ cosmos.base.query.v1beta1.Pagination.PageResponse getPagination(); /** *
     * pagination defines the pagination in the response.
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder(); } /** *
   * QueryValidatorUnbondingDelegationsResponse is response type for the
   * Query/ValidatorUnbondingDelegations RPC method.
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse} */ public static final class QueryValidatorUnbondingDelegationsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse) QueryValidatorUnbondingDelegationsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use QueryValidatorUnbondingDelegationsResponse.newBuilder() to construct. private QueryValidatorUnbondingDelegationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryValidatorUnbondingDelegationsResponse() { unbondingResponses_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryValidatorUnbondingDelegationsResponse( 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)) { unbondingResponses_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } unbondingResponses_.add( input.readMessage(cosmos.staking.v1beta1.Staking.UnbondingDelegation.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)) { unbondingResponses_ = java.util.Collections.unmodifiableList(unbondingResponses_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse.class, cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse.Builder.class); } private int bitField0_; public static final int UNBONDING_RESPONSES_FIELD_NUMBER = 1; private java.util.List unbondingResponses_; /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getUnbondingResponsesList() { return unbondingResponses_; } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getUnbondingResponsesOrBuilderList() { return unbondingResponses_; } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public int getUnbondingResponsesCount() { return unbondingResponses_.size(); } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.UnbondingDelegation getUnbondingResponses(int index) { return unbondingResponses_.get(index); } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.UnbondingDelegationOrBuilder getUnbondingResponsesOrBuilder( int index) { return unbondingResponses_.get(index); } public static final int PAGINATION_FIELD_NUMBER = 2; private cosmos.base.query.v1beta1.Pagination.PageResponse pagination_; /** *
     * pagination defines the pagination in the response.
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ public boolean hasPagination() { return pagination_ != null; } /** *
     * pagination defines the pagination in the 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 defines the pagination in the 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 < unbondingResponses_.size(); i++) { output.writeMessage(1, unbondingResponses_.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 < unbondingResponses_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, unbondingResponses_.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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse)) { return super.equals(obj); } cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse other = (cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse) obj; boolean result = true; result = result && getUnbondingResponsesList() .equals(other.getUnbondingResponsesList()); 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 (getUnbondingResponsesCount() > 0) { hash = (37 * hash) + UNBONDING_RESPONSES_FIELD_NUMBER; hash = (53 * hash) + getUnbondingResponsesList().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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse 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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse 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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse 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(cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse 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; } /** *
     * QueryValidatorUnbondingDelegationsResponse is response type for the
     * Query/ValidatorUnbondingDelegations RPC method.
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse) cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse.class, cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse.Builder.class); } // Construct using cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getUnbondingResponsesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (unbondingResponsesBuilder_ == null) { unbondingResponses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { unbondingResponsesBuilder_.clear(); } if (paginationBuilder_ == null) { pagination_ = null; } else { pagination_ = null; paginationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsResponse_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse getDefaultInstanceForType() { return cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse build() { cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse buildPartial() { cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse result = new cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (unbondingResponsesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { unbondingResponses_ = java.util.Collections.unmodifiableList(unbondingResponses_); bitField0_ = (bitField0_ & ~0x00000001); } result.unbondingResponses_ = unbondingResponses_; } else { result.unbondingResponses_ = unbondingResponsesBuilder_.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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse) { return mergeFrom((cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse other) { if (other == cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse.getDefaultInstance()) return this; if (unbondingResponsesBuilder_ == null) { if (!other.unbondingResponses_.isEmpty()) { if (unbondingResponses_.isEmpty()) { unbondingResponses_ = other.unbondingResponses_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureUnbondingResponsesIsMutable(); unbondingResponses_.addAll(other.unbondingResponses_); } onChanged(); } } else { if (!other.unbondingResponses_.isEmpty()) { if (unbondingResponsesBuilder_.isEmpty()) { unbondingResponsesBuilder_.dispose(); unbondingResponsesBuilder_ = null; unbondingResponses_ = other.unbondingResponses_; bitField0_ = (bitField0_ & ~0x00000001); unbondingResponsesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getUnbondingResponsesFieldBuilder() : null; } else { unbondingResponsesBuilder_.addAllMessages(other.unbondingResponses_); } } } 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 { cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List unbondingResponses_ = java.util.Collections.emptyList(); private void ensureUnbondingResponsesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { unbondingResponses_ = new java.util.ArrayList(unbondingResponses_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< cosmos.staking.v1beta1.Staking.UnbondingDelegation, cosmos.staking.v1beta1.Staking.UnbondingDelegation.Builder, cosmos.staking.v1beta1.Staking.UnbondingDelegationOrBuilder> unbondingResponsesBuilder_; /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getUnbondingResponsesList() { if (unbondingResponsesBuilder_ == null) { return java.util.Collections.unmodifiableList(unbondingResponses_); } else { return unbondingResponsesBuilder_.getMessageList(); } } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public int getUnbondingResponsesCount() { if (unbondingResponsesBuilder_ == null) { return unbondingResponses_.size(); } else { return unbondingResponsesBuilder_.getCount(); } } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.UnbondingDelegation getUnbondingResponses(int index) { if (unbondingResponsesBuilder_ == null) { return unbondingResponses_.get(index); } else { return unbondingResponsesBuilder_.getMessage(index); } } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public Builder setUnbondingResponses( int index, cosmos.staking.v1beta1.Staking.UnbondingDelegation value) { if (unbondingResponsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUnbondingResponsesIsMutable(); unbondingResponses_.set(index, value); onChanged(); } else { unbondingResponsesBuilder_.setMessage(index, value); } return this; } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public Builder setUnbondingResponses( int index, cosmos.staking.v1beta1.Staking.UnbondingDelegation.Builder builderForValue) { if (unbondingResponsesBuilder_ == null) { ensureUnbondingResponsesIsMutable(); unbondingResponses_.set(index, builderForValue.build()); onChanged(); } else { unbondingResponsesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public Builder addUnbondingResponses(cosmos.staking.v1beta1.Staking.UnbondingDelegation value) { if (unbondingResponsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUnbondingResponsesIsMutable(); unbondingResponses_.add(value); onChanged(); } else { unbondingResponsesBuilder_.addMessage(value); } return this; } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public Builder addUnbondingResponses( int index, cosmos.staking.v1beta1.Staking.UnbondingDelegation value) { if (unbondingResponsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUnbondingResponsesIsMutable(); unbondingResponses_.add(index, value); onChanged(); } else { unbondingResponsesBuilder_.addMessage(index, value); } return this; } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public Builder addUnbondingResponses( cosmos.staking.v1beta1.Staking.UnbondingDelegation.Builder builderForValue) { if (unbondingResponsesBuilder_ == null) { ensureUnbondingResponsesIsMutable(); unbondingResponses_.add(builderForValue.build()); onChanged(); } else { unbondingResponsesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public Builder addUnbondingResponses( int index, cosmos.staking.v1beta1.Staking.UnbondingDelegation.Builder builderForValue) { if (unbondingResponsesBuilder_ == null) { ensureUnbondingResponsesIsMutable(); unbondingResponses_.add(index, builderForValue.build()); onChanged(); } else { unbondingResponsesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public Builder addAllUnbondingResponses( java.lang.Iterable values) { if (unbondingResponsesBuilder_ == null) { ensureUnbondingResponsesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, unbondingResponses_); onChanged(); } else { unbondingResponsesBuilder_.addAllMessages(values); } return this; } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public Builder clearUnbondingResponses() { if (unbondingResponsesBuilder_ == null) { unbondingResponses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { unbondingResponsesBuilder_.clear(); } return this; } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public Builder removeUnbondingResponses(int index) { if (unbondingResponsesBuilder_ == null) { ensureUnbondingResponsesIsMutable(); unbondingResponses_.remove(index); onChanged(); } else { unbondingResponsesBuilder_.remove(index); } return this; } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.UnbondingDelegation.Builder getUnbondingResponsesBuilder( int index) { return getUnbondingResponsesFieldBuilder().getBuilder(index); } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.UnbondingDelegationOrBuilder getUnbondingResponsesOrBuilder( int index) { if (unbondingResponsesBuilder_ == null) { return unbondingResponses_.get(index); } else { return unbondingResponsesBuilder_.getMessageOrBuilder(index); } } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getUnbondingResponsesOrBuilderList() { if (unbondingResponsesBuilder_ != null) { return unbondingResponsesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(unbondingResponses_); } } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.UnbondingDelegation.Builder addUnbondingResponsesBuilder() { return getUnbondingResponsesFieldBuilder().addBuilder( cosmos.staking.v1beta1.Staking.UnbondingDelegation.getDefaultInstance()); } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.UnbondingDelegation.Builder addUnbondingResponsesBuilder( int index) { return getUnbondingResponsesFieldBuilder().addBuilder( index, cosmos.staking.v1beta1.Staking.UnbondingDelegation.getDefaultInstance()); } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getUnbondingResponsesBuilderList() { return getUnbondingResponsesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< cosmos.staking.v1beta1.Staking.UnbondingDelegation, cosmos.staking.v1beta1.Staking.UnbondingDelegation.Builder, cosmos.staking.v1beta1.Staking.UnbondingDelegationOrBuilder> getUnbondingResponsesFieldBuilder() { if (unbondingResponsesBuilder_ == null) { unbondingResponsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< cosmos.staking.v1beta1.Staking.UnbondingDelegation, cosmos.staking.v1beta1.Staking.UnbondingDelegation.Builder, cosmos.staking.v1beta1.Staking.UnbondingDelegationOrBuilder>( unbondingResponses_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); unbondingResponses_ = null; } return unbondingResponsesBuilder_; } 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 defines the pagination in the response.
       * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ public boolean hasPagination() { return paginationBuilder_ != null || pagination_ != null; } /** *
       * pagination defines the pagination in the 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 defines the pagination in the 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 defines the pagination in the 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 defines the pagination in the 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 defines the pagination in the 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 defines the pagination in the response.
       * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() { onChanged(); return getPaginationFieldBuilder().getBuilder(); } /** *
       * pagination defines the pagination in the 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 defines the pagination in the 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:cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse) private static final cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse(); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryValidatorUnbondingDelegationsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryValidatorUnbondingDelegationsResponse(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 cosmos.staking.v1beta1.QueryOuterClass.QueryValidatorUnbondingDelegationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryDelegationRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryDelegationRequest) com.google.protobuf.MessageOrBuilder { /** *
     * delegator_addr defines the delegator address to query for.
     * 
* * string delegator_addr = 1; */ java.lang.String getDelegatorAddr(); /** *
     * delegator_addr defines the delegator address to query for.
     * 
* * string delegator_addr = 1; */ com.google.protobuf.ByteString getDelegatorAddrBytes(); /** *
     * validator_addr defines the validator address to query for.
     * 
* * string validator_addr = 2; */ java.lang.String getValidatorAddr(); /** *
     * validator_addr defines the validator address to query for.
     * 
* * string validator_addr = 2; */ com.google.protobuf.ByteString getValidatorAddrBytes(); } /** *
   * QueryDelegationRequest is request type for the Query/Delegation RPC method.
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegationRequest} */ public static final class QueryDelegationRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryDelegationRequest) QueryDelegationRequestOrBuilder { private static final long serialVersionUID = 0L; // Use QueryDelegationRequest.newBuilder() to construct. private QueryDelegationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryDelegationRequest() { delegatorAddr_ = ""; validatorAddr_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryDelegationRequest( 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(); delegatorAddr_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); validatorAddr_ = 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 cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest.class, cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest.Builder.class); } public static final int DELEGATOR_ADDR_FIELD_NUMBER = 1; private volatile java.lang.Object delegatorAddr_; /** *
     * delegator_addr defines the delegator address to query for.
     * 
* * string delegator_addr = 1; */ public java.lang.String getDelegatorAddr() { java.lang.Object ref = delegatorAddr_; 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(); delegatorAddr_ = s; return s; } } /** *
     * delegator_addr defines the delegator address to query for.
     * 
* * string delegator_addr = 1; */ public com.google.protobuf.ByteString getDelegatorAddrBytes() { java.lang.Object ref = delegatorAddr_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); delegatorAddr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALIDATOR_ADDR_FIELD_NUMBER = 2; private volatile java.lang.Object validatorAddr_; /** *
     * validator_addr defines the validator address to query for.
     * 
* * string validator_addr = 2; */ public java.lang.String getValidatorAddr() { java.lang.Object ref = validatorAddr_; 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(); validatorAddr_ = s; return s; } } /** *
     * validator_addr defines the validator address to query for.
     * 
* * string validator_addr = 2; */ public com.google.protobuf.ByteString getValidatorAddrBytes() { java.lang.Object ref = validatorAddr_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validatorAddr_ = 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 (!getDelegatorAddrBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddr_); } if (!getValidatorAddrBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, validatorAddr_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getDelegatorAddrBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddr_); } if (!getValidatorAddrBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, validatorAddr_); } 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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest)) { return super.equals(obj); } cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest other = (cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest) obj; boolean result = true; result = result && getDelegatorAddr() .equals(other.getDelegatorAddr()); result = result && getValidatorAddr() .equals(other.getValidatorAddr()); 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) + DELEGATOR_ADDR_FIELD_NUMBER; hash = (53 * hash) + getDelegatorAddr().hashCode(); hash = (37 * hash) + VALIDATOR_ADDR_FIELD_NUMBER; hash = (53 * hash) + getValidatorAddr().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest 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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest 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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest 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(cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest 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; } /** *
     * QueryDelegationRequest is request type for the Query/Delegation RPC method.
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegationRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryDelegationRequest) cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest.class, cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest.Builder.class); } // Construct using cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest.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(); delegatorAddr_ = ""; validatorAddr_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegationRequest_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest getDefaultInstanceForType() { return cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest build() { cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest buildPartial() { cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest result = new cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest(this); result.delegatorAddr_ = delegatorAddr_; result.validatorAddr_ = validatorAddr_; 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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest) { return mergeFrom((cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest other) { if (other == cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest.getDefaultInstance()) return this; if (!other.getDelegatorAddr().isEmpty()) { delegatorAddr_ = other.delegatorAddr_; onChanged(); } if (!other.getValidatorAddr().isEmpty()) { validatorAddr_ = other.validatorAddr_; 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 { cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object delegatorAddr_ = ""; /** *
       * delegator_addr defines the delegator address to query for.
       * 
* * string delegator_addr = 1; */ public java.lang.String getDelegatorAddr() { java.lang.Object ref = delegatorAddr_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); delegatorAddr_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * delegator_addr defines the delegator address to query for.
       * 
* * string delegator_addr = 1; */ public com.google.protobuf.ByteString getDelegatorAddrBytes() { java.lang.Object ref = delegatorAddr_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); delegatorAddr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * delegator_addr defines the delegator address to query for.
       * 
* * string delegator_addr = 1; */ public Builder setDelegatorAddr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } delegatorAddr_ = value; onChanged(); return this; } /** *
       * delegator_addr defines the delegator address to query for.
       * 
* * string delegator_addr = 1; */ public Builder clearDelegatorAddr() { delegatorAddr_ = getDefaultInstance().getDelegatorAddr(); onChanged(); return this; } /** *
       * delegator_addr defines the delegator address to query for.
       * 
* * string delegator_addr = 1; */ public Builder setDelegatorAddrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); delegatorAddr_ = value; onChanged(); return this; } private java.lang.Object validatorAddr_ = ""; /** *
       * validator_addr defines the validator address to query for.
       * 
* * string validator_addr = 2; */ public java.lang.String getValidatorAddr() { java.lang.Object ref = validatorAddr_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); validatorAddr_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * validator_addr defines the validator address to query for.
       * 
* * string validator_addr = 2; */ public com.google.protobuf.ByteString getValidatorAddrBytes() { java.lang.Object ref = validatorAddr_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validatorAddr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * validator_addr defines the validator address to query for.
       * 
* * string validator_addr = 2; */ public Builder setValidatorAddr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } validatorAddr_ = value; onChanged(); return this; } /** *
       * validator_addr defines the validator address to query for.
       * 
* * string validator_addr = 2; */ public Builder clearValidatorAddr() { validatorAddr_ = getDefaultInstance().getValidatorAddr(); onChanged(); return this; } /** *
       * validator_addr defines the validator address to query for.
       * 
* * string validator_addr = 2; */ public Builder setValidatorAddrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); validatorAddr_ = 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:cosmos.staking.v1beta1.QueryDelegationRequest) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryDelegationRequest) private static final cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest(); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryDelegationRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryDelegationRequest(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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryDelegationResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryDelegationResponse) com.google.protobuf.MessageOrBuilder { /** *
     * delegation_responses defines the delegation info of a delegation.
     * 
* * .cosmos.staking.v1beta1.DelegationResponse delegation_response = 1; */ boolean hasDelegationResponse(); /** *
     * delegation_responses defines the delegation info of a delegation.
     * 
* * .cosmos.staking.v1beta1.DelegationResponse delegation_response = 1; */ cosmos.staking.v1beta1.Staking.DelegationResponse getDelegationResponse(); /** *
     * delegation_responses defines the delegation info of a delegation.
     * 
* * .cosmos.staking.v1beta1.DelegationResponse delegation_response = 1; */ cosmos.staking.v1beta1.Staking.DelegationResponseOrBuilder getDelegationResponseOrBuilder(); } /** *
   * QueryDelegationResponse is response type for the Query/Delegation RPC method.
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegationResponse} */ public static final class QueryDelegationResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryDelegationResponse) QueryDelegationResponseOrBuilder { private static final long serialVersionUID = 0L; // Use QueryDelegationResponse.newBuilder() to construct. private QueryDelegationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryDelegationResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryDelegationResponse( 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.staking.v1beta1.Staking.DelegationResponse.Builder subBuilder = null; if (delegationResponse_ != null) { subBuilder = delegationResponse_.toBuilder(); } delegationResponse_ = input.readMessage(cosmos.staking.v1beta1.Staking.DelegationResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(delegationResponse_); delegationResponse_ = 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 cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegationResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegationResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse.class, cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse.Builder.class); } public static final int DELEGATION_RESPONSE_FIELD_NUMBER = 1; private cosmos.staking.v1beta1.Staking.DelegationResponse delegationResponse_; /** *
     * delegation_responses defines the delegation info of a delegation.
     * 
* * .cosmos.staking.v1beta1.DelegationResponse delegation_response = 1; */ public boolean hasDelegationResponse() { return delegationResponse_ != null; } /** *
     * delegation_responses defines the delegation info of a delegation.
     * 
* * .cosmos.staking.v1beta1.DelegationResponse delegation_response = 1; */ public cosmos.staking.v1beta1.Staking.DelegationResponse getDelegationResponse() { return delegationResponse_ == null ? cosmos.staking.v1beta1.Staking.DelegationResponse.getDefaultInstance() : delegationResponse_; } /** *
     * delegation_responses defines the delegation info of a delegation.
     * 
* * .cosmos.staking.v1beta1.DelegationResponse delegation_response = 1; */ public cosmos.staking.v1beta1.Staking.DelegationResponseOrBuilder getDelegationResponseOrBuilder() { return getDelegationResponse(); } 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 (delegationResponse_ != null) { output.writeMessage(1, getDelegationResponse()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (delegationResponse_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getDelegationResponse()); } 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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse)) { return super.equals(obj); } cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse other = (cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse) obj; boolean result = true; result = result && (hasDelegationResponse() == other.hasDelegationResponse()); if (hasDelegationResponse()) { result = result && getDelegationResponse() .equals(other.getDelegationResponse()); } 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 (hasDelegationResponse()) { hash = (37 * hash) + DELEGATION_RESPONSE_FIELD_NUMBER; hash = (53 * hash) + getDelegationResponse().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse 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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse 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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse 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(cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse 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; } /** *
     * QueryDelegationResponse is response type for the Query/Delegation RPC method.
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegationResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryDelegationResponse) cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegationResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegationResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse.class, cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse.Builder.class); } // Construct using cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse.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 (delegationResponseBuilder_ == null) { delegationResponse_ = null; } else { delegationResponse_ = null; delegationResponseBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegationResponse_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse getDefaultInstanceForType() { return cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse build() { cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse buildPartial() { cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse result = new cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse(this); if (delegationResponseBuilder_ == null) { result.delegationResponse_ = delegationResponse_; } else { result.delegationResponse_ = delegationResponseBuilder_.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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse) { return mergeFrom((cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse other) { if (other == cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse.getDefaultInstance()) return this; if (other.hasDelegationResponse()) { mergeDelegationResponse(other.getDelegationResponse()); } 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 { cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private cosmos.staking.v1beta1.Staking.DelegationResponse delegationResponse_ = null; private com.google.protobuf.SingleFieldBuilderV3< cosmos.staking.v1beta1.Staking.DelegationResponse, cosmos.staking.v1beta1.Staking.DelegationResponse.Builder, cosmos.staking.v1beta1.Staking.DelegationResponseOrBuilder> delegationResponseBuilder_; /** *
       * delegation_responses defines the delegation info of a delegation.
       * 
* * .cosmos.staking.v1beta1.DelegationResponse delegation_response = 1; */ public boolean hasDelegationResponse() { return delegationResponseBuilder_ != null || delegationResponse_ != null; } /** *
       * delegation_responses defines the delegation info of a delegation.
       * 
* * .cosmos.staking.v1beta1.DelegationResponse delegation_response = 1; */ public cosmos.staking.v1beta1.Staking.DelegationResponse getDelegationResponse() { if (delegationResponseBuilder_ == null) { return delegationResponse_ == null ? cosmos.staking.v1beta1.Staking.DelegationResponse.getDefaultInstance() : delegationResponse_; } else { return delegationResponseBuilder_.getMessage(); } } /** *
       * delegation_responses defines the delegation info of a delegation.
       * 
* * .cosmos.staking.v1beta1.DelegationResponse delegation_response = 1; */ public Builder setDelegationResponse(cosmos.staking.v1beta1.Staking.DelegationResponse value) { if (delegationResponseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } delegationResponse_ = value; onChanged(); } else { delegationResponseBuilder_.setMessage(value); } return this; } /** *
       * delegation_responses defines the delegation info of a delegation.
       * 
* * .cosmos.staking.v1beta1.DelegationResponse delegation_response = 1; */ public Builder setDelegationResponse( cosmos.staking.v1beta1.Staking.DelegationResponse.Builder builderForValue) { if (delegationResponseBuilder_ == null) { delegationResponse_ = builderForValue.build(); onChanged(); } else { delegationResponseBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * delegation_responses defines the delegation info of a delegation.
       * 
* * .cosmos.staking.v1beta1.DelegationResponse delegation_response = 1; */ public Builder mergeDelegationResponse(cosmos.staking.v1beta1.Staking.DelegationResponse value) { if (delegationResponseBuilder_ == null) { if (delegationResponse_ != null) { delegationResponse_ = cosmos.staking.v1beta1.Staking.DelegationResponse.newBuilder(delegationResponse_).mergeFrom(value).buildPartial(); } else { delegationResponse_ = value; } onChanged(); } else { delegationResponseBuilder_.mergeFrom(value); } return this; } /** *
       * delegation_responses defines the delegation info of a delegation.
       * 
* * .cosmos.staking.v1beta1.DelegationResponse delegation_response = 1; */ public Builder clearDelegationResponse() { if (delegationResponseBuilder_ == null) { delegationResponse_ = null; onChanged(); } else { delegationResponse_ = null; delegationResponseBuilder_ = null; } return this; } /** *
       * delegation_responses defines the delegation info of a delegation.
       * 
* * .cosmos.staking.v1beta1.DelegationResponse delegation_response = 1; */ public cosmos.staking.v1beta1.Staking.DelegationResponse.Builder getDelegationResponseBuilder() { onChanged(); return getDelegationResponseFieldBuilder().getBuilder(); } /** *
       * delegation_responses defines the delegation info of a delegation.
       * 
* * .cosmos.staking.v1beta1.DelegationResponse delegation_response = 1; */ public cosmos.staking.v1beta1.Staking.DelegationResponseOrBuilder getDelegationResponseOrBuilder() { if (delegationResponseBuilder_ != null) { return delegationResponseBuilder_.getMessageOrBuilder(); } else { return delegationResponse_ == null ? cosmos.staking.v1beta1.Staking.DelegationResponse.getDefaultInstance() : delegationResponse_; } } /** *
       * delegation_responses defines the delegation info of a delegation.
       * 
* * .cosmos.staking.v1beta1.DelegationResponse delegation_response = 1; */ private com.google.protobuf.SingleFieldBuilderV3< cosmos.staking.v1beta1.Staking.DelegationResponse, cosmos.staking.v1beta1.Staking.DelegationResponse.Builder, cosmos.staking.v1beta1.Staking.DelegationResponseOrBuilder> getDelegationResponseFieldBuilder() { if (delegationResponseBuilder_ == null) { delegationResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cosmos.staking.v1beta1.Staking.DelegationResponse, cosmos.staking.v1beta1.Staking.DelegationResponse.Builder, cosmos.staking.v1beta1.Staking.DelegationResponseOrBuilder>( getDelegationResponse(), getParentForChildren(), isClean()); delegationResponse_ = null; } return delegationResponseBuilder_; } @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:cosmos.staking.v1beta1.QueryDelegationResponse) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryDelegationResponse) private static final cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse(); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryDelegationResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryDelegationResponse(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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegationResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryUnbondingDelegationRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryUnbondingDelegationRequest) com.google.protobuf.MessageOrBuilder { /** *
     * delegator_addr defines the delegator address to query for.
     * 
* * string delegator_addr = 1; */ java.lang.String getDelegatorAddr(); /** *
     * delegator_addr defines the delegator address to query for.
     * 
* * string delegator_addr = 1; */ com.google.protobuf.ByteString getDelegatorAddrBytes(); /** *
     * validator_addr defines the validator address to query for.
     * 
* * string validator_addr = 2; */ java.lang.String getValidatorAddr(); /** *
     * validator_addr defines the validator address to query for.
     * 
* * string validator_addr = 2; */ com.google.protobuf.ByteString getValidatorAddrBytes(); } /** *
   * QueryUnbondingDelegationRequest is request type for the
   * Query/UnbondingDelegation RPC method.
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryUnbondingDelegationRequest} */ public static final class QueryUnbondingDelegationRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryUnbondingDelegationRequest) QueryUnbondingDelegationRequestOrBuilder { private static final long serialVersionUID = 0L; // Use QueryUnbondingDelegationRequest.newBuilder() to construct. private QueryUnbondingDelegationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryUnbondingDelegationRequest() { delegatorAddr_ = ""; validatorAddr_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryUnbondingDelegationRequest( 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(); delegatorAddr_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); validatorAddr_ = 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 cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest.class, cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest.Builder.class); } public static final int DELEGATOR_ADDR_FIELD_NUMBER = 1; private volatile java.lang.Object delegatorAddr_; /** *
     * delegator_addr defines the delegator address to query for.
     * 
* * string delegator_addr = 1; */ public java.lang.String getDelegatorAddr() { java.lang.Object ref = delegatorAddr_; 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(); delegatorAddr_ = s; return s; } } /** *
     * delegator_addr defines the delegator address to query for.
     * 
* * string delegator_addr = 1; */ public com.google.protobuf.ByteString getDelegatorAddrBytes() { java.lang.Object ref = delegatorAddr_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); delegatorAddr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALIDATOR_ADDR_FIELD_NUMBER = 2; private volatile java.lang.Object validatorAddr_; /** *
     * validator_addr defines the validator address to query for.
     * 
* * string validator_addr = 2; */ public java.lang.String getValidatorAddr() { java.lang.Object ref = validatorAddr_; 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(); validatorAddr_ = s; return s; } } /** *
     * validator_addr defines the validator address to query for.
     * 
* * string validator_addr = 2; */ public com.google.protobuf.ByteString getValidatorAddrBytes() { java.lang.Object ref = validatorAddr_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validatorAddr_ = 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 (!getDelegatorAddrBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddr_); } if (!getValidatorAddrBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, validatorAddr_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getDelegatorAddrBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddr_); } if (!getValidatorAddrBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, validatorAddr_); } 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 cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest)) { return super.equals(obj); } cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest other = (cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest) obj; boolean result = true; result = result && getDelegatorAddr() .equals(other.getDelegatorAddr()); result = result && getValidatorAddr() .equals(other.getValidatorAddr()); 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) + DELEGATOR_ADDR_FIELD_NUMBER; hash = (53 * hash) + getDelegatorAddr().hashCode(); hash = (37 * hash) + VALIDATOR_ADDR_FIELD_NUMBER; hash = (53 * hash) + getValidatorAddr().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest 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 cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest 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 cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest 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(cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest 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; } /** *
     * QueryUnbondingDelegationRequest is request type for the
     * Query/UnbondingDelegation RPC method.
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryUnbondingDelegationRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryUnbondingDelegationRequest) cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest.class, cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest.Builder.class); } // Construct using cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest.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(); delegatorAddr_ = ""; validatorAddr_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationRequest_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest getDefaultInstanceForType() { return cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest build() { cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest buildPartial() { cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest result = new cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest(this); result.delegatorAddr_ = delegatorAddr_; result.validatorAddr_ = validatorAddr_; 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 cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest) { return mergeFrom((cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest other) { if (other == cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest.getDefaultInstance()) return this; if (!other.getDelegatorAddr().isEmpty()) { delegatorAddr_ = other.delegatorAddr_; onChanged(); } if (!other.getValidatorAddr().isEmpty()) { validatorAddr_ = other.validatorAddr_; 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 { cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object delegatorAddr_ = ""; /** *
       * delegator_addr defines the delegator address to query for.
       * 
* * string delegator_addr = 1; */ public java.lang.String getDelegatorAddr() { java.lang.Object ref = delegatorAddr_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); delegatorAddr_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * delegator_addr defines the delegator address to query for.
       * 
* * string delegator_addr = 1; */ public com.google.protobuf.ByteString getDelegatorAddrBytes() { java.lang.Object ref = delegatorAddr_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); delegatorAddr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * delegator_addr defines the delegator address to query for.
       * 
* * string delegator_addr = 1; */ public Builder setDelegatorAddr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } delegatorAddr_ = value; onChanged(); return this; } /** *
       * delegator_addr defines the delegator address to query for.
       * 
* * string delegator_addr = 1; */ public Builder clearDelegatorAddr() { delegatorAddr_ = getDefaultInstance().getDelegatorAddr(); onChanged(); return this; } /** *
       * delegator_addr defines the delegator address to query for.
       * 
* * string delegator_addr = 1; */ public Builder setDelegatorAddrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); delegatorAddr_ = value; onChanged(); return this; } private java.lang.Object validatorAddr_ = ""; /** *
       * validator_addr defines the validator address to query for.
       * 
* * string validator_addr = 2; */ public java.lang.String getValidatorAddr() { java.lang.Object ref = validatorAddr_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); validatorAddr_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * validator_addr defines the validator address to query for.
       * 
* * string validator_addr = 2; */ public com.google.protobuf.ByteString getValidatorAddrBytes() { java.lang.Object ref = validatorAddr_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validatorAddr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * validator_addr defines the validator address to query for.
       * 
* * string validator_addr = 2; */ public Builder setValidatorAddr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } validatorAddr_ = value; onChanged(); return this; } /** *
       * validator_addr defines the validator address to query for.
       * 
* * string validator_addr = 2; */ public Builder clearValidatorAddr() { validatorAddr_ = getDefaultInstance().getValidatorAddr(); onChanged(); return this; } /** *
       * validator_addr defines the validator address to query for.
       * 
* * string validator_addr = 2; */ public Builder setValidatorAddrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); validatorAddr_ = 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:cosmos.staking.v1beta1.QueryUnbondingDelegationRequest) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryUnbondingDelegationRequest) private static final cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest(); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryUnbondingDelegationRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryUnbondingDelegationRequest(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 cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryUnbondingDelegationResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryUnbondingDelegationResponse) com.google.protobuf.MessageOrBuilder { /** *
     * unbond defines the unbonding information of a delegation.
     * 
* * .cosmos.staking.v1beta1.UnbondingDelegation unbond = 1 [(.gogoproto.nullable) = false]; */ boolean hasUnbond(); /** *
     * unbond defines the unbonding information of a delegation.
     * 
* * .cosmos.staking.v1beta1.UnbondingDelegation unbond = 1 [(.gogoproto.nullable) = false]; */ cosmos.staking.v1beta1.Staking.UnbondingDelegation getUnbond(); /** *
     * unbond defines the unbonding information of a delegation.
     * 
* * .cosmos.staking.v1beta1.UnbondingDelegation unbond = 1 [(.gogoproto.nullable) = false]; */ cosmos.staking.v1beta1.Staking.UnbondingDelegationOrBuilder getUnbondOrBuilder(); } /** *
   * QueryDelegationResponse is response type for the Query/UnbondingDelegation
   * RPC method.
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryUnbondingDelegationResponse} */ public static final class QueryUnbondingDelegationResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryUnbondingDelegationResponse) QueryUnbondingDelegationResponseOrBuilder { private static final long serialVersionUID = 0L; // Use QueryUnbondingDelegationResponse.newBuilder() to construct. private QueryUnbondingDelegationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryUnbondingDelegationResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryUnbondingDelegationResponse( 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.staking.v1beta1.Staking.UnbondingDelegation.Builder subBuilder = null; if (unbond_ != null) { subBuilder = unbond_.toBuilder(); } unbond_ = input.readMessage(cosmos.staking.v1beta1.Staking.UnbondingDelegation.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(unbond_); unbond_ = 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 cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse.class, cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse.Builder.class); } public static final int UNBOND_FIELD_NUMBER = 1; private cosmos.staking.v1beta1.Staking.UnbondingDelegation unbond_; /** *
     * unbond defines the unbonding information of a delegation.
     * 
* * .cosmos.staking.v1beta1.UnbondingDelegation unbond = 1 [(.gogoproto.nullable) = false]; */ public boolean hasUnbond() { return unbond_ != null; } /** *
     * unbond defines the unbonding information of a delegation.
     * 
* * .cosmos.staking.v1beta1.UnbondingDelegation unbond = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.UnbondingDelegation getUnbond() { return unbond_ == null ? cosmos.staking.v1beta1.Staking.UnbondingDelegation.getDefaultInstance() : unbond_; } /** *
     * unbond defines the unbonding information of a delegation.
     * 
* * .cosmos.staking.v1beta1.UnbondingDelegation unbond = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.UnbondingDelegationOrBuilder getUnbondOrBuilder() { return getUnbond(); } 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 (unbond_ != null) { output.writeMessage(1, getUnbond()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (unbond_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getUnbond()); } 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 cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse)) { return super.equals(obj); } cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse other = (cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse) obj; boolean result = true; result = result && (hasUnbond() == other.hasUnbond()); if (hasUnbond()) { result = result && getUnbond() .equals(other.getUnbond()); } 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 (hasUnbond()) { hash = (37 * hash) + UNBOND_FIELD_NUMBER; hash = (53 * hash) + getUnbond().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse 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 cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse 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 cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse 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(cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse 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; } /** *
     * QueryDelegationResponse is response type for the Query/UnbondingDelegation
     * RPC method.
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryUnbondingDelegationResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryUnbondingDelegationResponse) cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse.class, cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse.Builder.class); } // Construct using cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse.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 (unbondBuilder_ == null) { unbond_ = null; } else { unbond_ = null; unbondBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationResponse_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse getDefaultInstanceForType() { return cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse build() { cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse buildPartial() { cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse result = new cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse(this); if (unbondBuilder_ == null) { result.unbond_ = unbond_; } else { result.unbond_ = unbondBuilder_.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 cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse) { return mergeFrom((cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse other) { if (other == cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse.getDefaultInstance()) return this; if (other.hasUnbond()) { mergeUnbond(other.getUnbond()); } 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 { cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private cosmos.staking.v1beta1.Staking.UnbondingDelegation unbond_ = null; private com.google.protobuf.SingleFieldBuilderV3< cosmos.staking.v1beta1.Staking.UnbondingDelegation, cosmos.staking.v1beta1.Staking.UnbondingDelegation.Builder, cosmos.staking.v1beta1.Staking.UnbondingDelegationOrBuilder> unbondBuilder_; /** *
       * unbond defines the unbonding information of a delegation.
       * 
* * .cosmos.staking.v1beta1.UnbondingDelegation unbond = 1 [(.gogoproto.nullable) = false]; */ public boolean hasUnbond() { return unbondBuilder_ != null || unbond_ != null; } /** *
       * unbond defines the unbonding information of a delegation.
       * 
* * .cosmos.staking.v1beta1.UnbondingDelegation unbond = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.UnbondingDelegation getUnbond() { if (unbondBuilder_ == null) { return unbond_ == null ? cosmos.staking.v1beta1.Staking.UnbondingDelegation.getDefaultInstance() : unbond_; } else { return unbondBuilder_.getMessage(); } } /** *
       * unbond defines the unbonding information of a delegation.
       * 
* * .cosmos.staking.v1beta1.UnbondingDelegation unbond = 1 [(.gogoproto.nullable) = false]; */ public Builder setUnbond(cosmos.staking.v1beta1.Staking.UnbondingDelegation value) { if (unbondBuilder_ == null) { if (value == null) { throw new NullPointerException(); } unbond_ = value; onChanged(); } else { unbondBuilder_.setMessage(value); } return this; } /** *
       * unbond defines the unbonding information of a delegation.
       * 
* * .cosmos.staking.v1beta1.UnbondingDelegation unbond = 1 [(.gogoproto.nullable) = false]; */ public Builder setUnbond( cosmos.staking.v1beta1.Staking.UnbondingDelegation.Builder builderForValue) { if (unbondBuilder_ == null) { unbond_ = builderForValue.build(); onChanged(); } else { unbondBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * unbond defines the unbonding information of a delegation.
       * 
* * .cosmos.staking.v1beta1.UnbondingDelegation unbond = 1 [(.gogoproto.nullable) = false]; */ public Builder mergeUnbond(cosmos.staking.v1beta1.Staking.UnbondingDelegation value) { if (unbondBuilder_ == null) { if (unbond_ != null) { unbond_ = cosmos.staking.v1beta1.Staking.UnbondingDelegation.newBuilder(unbond_).mergeFrom(value).buildPartial(); } else { unbond_ = value; } onChanged(); } else { unbondBuilder_.mergeFrom(value); } return this; } /** *
       * unbond defines the unbonding information of a delegation.
       * 
* * .cosmos.staking.v1beta1.UnbondingDelegation unbond = 1 [(.gogoproto.nullable) = false]; */ public Builder clearUnbond() { if (unbondBuilder_ == null) { unbond_ = null; onChanged(); } else { unbond_ = null; unbondBuilder_ = null; } return this; } /** *
       * unbond defines the unbonding information of a delegation.
       * 
* * .cosmos.staking.v1beta1.UnbondingDelegation unbond = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.UnbondingDelegation.Builder getUnbondBuilder() { onChanged(); return getUnbondFieldBuilder().getBuilder(); } /** *
       * unbond defines the unbonding information of a delegation.
       * 
* * .cosmos.staking.v1beta1.UnbondingDelegation unbond = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.UnbondingDelegationOrBuilder getUnbondOrBuilder() { if (unbondBuilder_ != null) { return unbondBuilder_.getMessageOrBuilder(); } else { return unbond_ == null ? cosmos.staking.v1beta1.Staking.UnbondingDelegation.getDefaultInstance() : unbond_; } } /** *
       * unbond defines the unbonding information of a delegation.
       * 
* * .cosmos.staking.v1beta1.UnbondingDelegation unbond = 1 [(.gogoproto.nullable) = false]; */ private com.google.protobuf.SingleFieldBuilderV3< cosmos.staking.v1beta1.Staking.UnbondingDelegation, cosmos.staking.v1beta1.Staking.UnbondingDelegation.Builder, cosmos.staking.v1beta1.Staking.UnbondingDelegationOrBuilder> getUnbondFieldBuilder() { if (unbondBuilder_ == null) { unbondBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cosmos.staking.v1beta1.Staking.UnbondingDelegation, cosmos.staking.v1beta1.Staking.UnbondingDelegation.Builder, cosmos.staking.v1beta1.Staking.UnbondingDelegationOrBuilder>( getUnbond(), getParentForChildren(), isClean()); unbond_ = null; } return unbondBuilder_; } @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:cosmos.staking.v1beta1.QueryUnbondingDelegationResponse) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryUnbondingDelegationResponse) private static final cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse(); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryUnbondingDelegationResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryUnbondingDelegationResponse(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 cosmos.staking.v1beta1.QueryOuterClass.QueryUnbondingDelegationResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryDelegatorDelegationsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest) com.google.protobuf.MessageOrBuilder { /** *
     * delegator_addr defines the delegator address to query for.
     * 
* * string delegator_addr = 1; */ java.lang.String getDelegatorAddr(); /** *
     * delegator_addr defines the delegator address to query for.
     * 
* * string delegator_addr = 1; */ com.google.protobuf.ByteString getDelegatorAddrBytes(); /** *
     * pagination defines an optional pagination for the request.
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ boolean hasPagination(); /** *
     * pagination defines an optional pagination for the request.
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ cosmos.base.query.v1beta1.Pagination.PageRequest getPagination(); /** *
     * pagination defines an optional pagination for the request.
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder(); } /** *
   * QueryDelegatorDelegationsRequest is request type for the
   * Query/DelegatorDelegations RPC method.
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest} */ public static final class QueryDelegatorDelegationsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest) QueryDelegatorDelegationsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use QueryDelegatorDelegationsRequest.newBuilder() to construct. private QueryDelegatorDelegationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryDelegatorDelegationsRequest() { delegatorAddr_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryDelegatorDelegationsRequest( 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(); delegatorAddr_ = 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 cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest.class, cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest.Builder.class); } public static final int DELEGATOR_ADDR_FIELD_NUMBER = 1; private volatile java.lang.Object delegatorAddr_; /** *
     * delegator_addr defines the delegator address to query for.
     * 
* * string delegator_addr = 1; */ public java.lang.String getDelegatorAddr() { java.lang.Object ref = delegatorAddr_; 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(); delegatorAddr_ = s; return s; } } /** *
     * delegator_addr defines the delegator address to query for.
     * 
* * string delegator_addr = 1; */ public com.google.protobuf.ByteString getDelegatorAddrBytes() { java.lang.Object ref = delegatorAddr_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); delegatorAddr_ = 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 defines an optional pagination for the request.
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ public boolean hasPagination() { return pagination_ != null; } /** *
     * pagination defines an optional pagination for the 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 defines an optional pagination for the 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 (!getDelegatorAddrBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddr_); } 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 (!getDelegatorAddrBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddr_); } 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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest)) { return super.equals(obj); } cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest other = (cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest) obj; boolean result = true; result = result && getDelegatorAddr() .equals(other.getDelegatorAddr()); 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) + DELEGATOR_ADDR_FIELD_NUMBER; hash = (53 * hash) + getDelegatorAddr().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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest 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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest 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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest 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(cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest 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; } /** *
     * QueryDelegatorDelegationsRequest is request type for the
     * Query/DelegatorDelegations RPC method.
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest) cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest.class, cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest.Builder.class); } // Construct using cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest.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(); delegatorAddr_ = ""; if (paginationBuilder_ == null) { pagination_ = null; } else { pagination_ = null; paginationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsRequest_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest getDefaultInstanceForType() { return cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest build() { cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest buildPartial() { cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest result = new cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest(this); result.delegatorAddr_ = delegatorAddr_; 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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest) { return mergeFrom((cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest other) { if (other == cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest.getDefaultInstance()) return this; if (!other.getDelegatorAddr().isEmpty()) { delegatorAddr_ = other.delegatorAddr_; 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 { cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object delegatorAddr_ = ""; /** *
       * delegator_addr defines the delegator address to query for.
       * 
* * string delegator_addr = 1; */ public java.lang.String getDelegatorAddr() { java.lang.Object ref = delegatorAddr_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); delegatorAddr_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * delegator_addr defines the delegator address to query for.
       * 
* * string delegator_addr = 1; */ public com.google.protobuf.ByteString getDelegatorAddrBytes() { java.lang.Object ref = delegatorAddr_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); delegatorAddr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * delegator_addr defines the delegator address to query for.
       * 
* * string delegator_addr = 1; */ public Builder setDelegatorAddr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } delegatorAddr_ = value; onChanged(); return this; } /** *
       * delegator_addr defines the delegator address to query for.
       * 
* * string delegator_addr = 1; */ public Builder clearDelegatorAddr() { delegatorAddr_ = getDefaultInstance().getDelegatorAddr(); onChanged(); return this; } /** *
       * delegator_addr defines the delegator address to query for.
       * 
* * string delegator_addr = 1; */ public Builder setDelegatorAddrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); delegatorAddr_ = 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 defines an optional pagination for the request.
       * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ public boolean hasPagination() { return paginationBuilder_ != null || pagination_ != null; } /** *
       * pagination defines an optional pagination for the 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 defines an optional pagination for the 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 defines an optional pagination for the 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 defines an optional pagination for the 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 defines an optional pagination for the 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 defines an optional pagination for the request.
       * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() { onChanged(); return getPaginationFieldBuilder().getBuilder(); } /** *
       * pagination defines an optional pagination for the 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 defines an optional pagination for the 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:cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest) private static final cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest(); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryDelegatorDelegationsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryDelegatorDelegationsRequest(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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryDelegatorDelegationsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse) com.google.protobuf.MessageOrBuilder { /** *
     * delegation_responses defines all the delegations' info of a delegator.
     * 
* * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; */ java.util.List getDelegationResponsesList(); /** *
     * delegation_responses defines all the delegations' info of a delegator.
     * 
* * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; */ cosmos.staking.v1beta1.Staking.DelegationResponse getDelegationResponses(int index); /** *
     * delegation_responses defines all the delegations' info of a delegator.
     * 
* * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; */ int getDelegationResponsesCount(); /** *
     * delegation_responses defines all the delegations' info of a delegator.
     * 
* * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; */ java.util.List getDelegationResponsesOrBuilderList(); /** *
     * delegation_responses defines all the delegations' info of a delegator.
     * 
* * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; */ cosmos.staking.v1beta1.Staking.DelegationResponseOrBuilder getDelegationResponsesOrBuilder( int index); /** *
     * pagination defines the pagination in the response.
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ boolean hasPagination(); /** *
     * pagination defines the pagination in the response.
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ cosmos.base.query.v1beta1.Pagination.PageResponse getPagination(); /** *
     * pagination defines the pagination in the response.
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder(); } /** *
   * QueryDelegatorDelegationsResponse is response type for the
   * Query/DelegatorDelegations RPC method.
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse} */ public static final class QueryDelegatorDelegationsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse) QueryDelegatorDelegationsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use QueryDelegatorDelegationsResponse.newBuilder() to construct. private QueryDelegatorDelegationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryDelegatorDelegationsResponse() { delegationResponses_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryDelegatorDelegationsResponse( 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)) { delegationResponses_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } delegationResponses_.add( input.readMessage(cosmos.staking.v1beta1.Staking.DelegationResponse.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)) { delegationResponses_ = java.util.Collections.unmodifiableList(delegationResponses_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse.class, cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse.Builder.class); } private int bitField0_; public static final int DELEGATION_RESPONSES_FIELD_NUMBER = 1; private java.util.List delegationResponses_; /** *
     * delegation_responses defines all the delegations' info of a delegator.
     * 
* * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getDelegationResponsesList() { return delegationResponses_; } /** *
     * delegation_responses defines all the delegations' info of a delegator.
     * 
* * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getDelegationResponsesOrBuilderList() { return delegationResponses_; } /** *
     * delegation_responses defines all the delegations' info of a delegator.
     * 
* * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; */ public int getDelegationResponsesCount() { return delegationResponses_.size(); } /** *
     * delegation_responses defines all the delegations' info of a delegator.
     * 
* * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.DelegationResponse getDelegationResponses(int index) { return delegationResponses_.get(index); } /** *
     * delegation_responses defines all the delegations' info of a delegator.
     * 
* * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.DelegationResponseOrBuilder getDelegationResponsesOrBuilder( int index) { return delegationResponses_.get(index); } public static final int PAGINATION_FIELD_NUMBER = 2; private cosmos.base.query.v1beta1.Pagination.PageResponse pagination_; /** *
     * pagination defines the pagination in the response.
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ public boolean hasPagination() { return pagination_ != null; } /** *
     * pagination defines the pagination in the 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 defines the pagination in the 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 < delegationResponses_.size(); i++) { output.writeMessage(1, delegationResponses_.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 < delegationResponses_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, delegationResponses_.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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse)) { return super.equals(obj); } cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse other = (cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse) obj; boolean result = true; result = result && getDelegationResponsesList() .equals(other.getDelegationResponsesList()); 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 (getDelegationResponsesCount() > 0) { hash = (37 * hash) + DELEGATION_RESPONSES_FIELD_NUMBER; hash = (53 * hash) + getDelegationResponsesList().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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse 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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse 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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse 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(cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse 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; } /** *
     * QueryDelegatorDelegationsResponse is response type for the
     * Query/DelegatorDelegations RPC method.
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse) cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse.class, cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse.Builder.class); } // Construct using cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDelegationResponsesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (delegationResponsesBuilder_ == null) { delegationResponses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { delegationResponsesBuilder_.clear(); } if (paginationBuilder_ == null) { pagination_ = null; } else { pagination_ = null; paginationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsResponse_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse getDefaultInstanceForType() { return cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse build() { cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse buildPartial() { cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse result = new cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (delegationResponsesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { delegationResponses_ = java.util.Collections.unmodifiableList(delegationResponses_); bitField0_ = (bitField0_ & ~0x00000001); } result.delegationResponses_ = delegationResponses_; } else { result.delegationResponses_ = delegationResponsesBuilder_.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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse) { return mergeFrom((cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse other) { if (other == cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse.getDefaultInstance()) return this; if (delegationResponsesBuilder_ == null) { if (!other.delegationResponses_.isEmpty()) { if (delegationResponses_.isEmpty()) { delegationResponses_ = other.delegationResponses_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDelegationResponsesIsMutable(); delegationResponses_.addAll(other.delegationResponses_); } onChanged(); } } else { if (!other.delegationResponses_.isEmpty()) { if (delegationResponsesBuilder_.isEmpty()) { delegationResponsesBuilder_.dispose(); delegationResponsesBuilder_ = null; delegationResponses_ = other.delegationResponses_; bitField0_ = (bitField0_ & ~0x00000001); delegationResponsesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDelegationResponsesFieldBuilder() : null; } else { delegationResponsesBuilder_.addAllMessages(other.delegationResponses_); } } } 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 { cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List delegationResponses_ = java.util.Collections.emptyList(); private void ensureDelegationResponsesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { delegationResponses_ = new java.util.ArrayList(delegationResponses_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< cosmos.staking.v1beta1.Staking.DelegationResponse, cosmos.staking.v1beta1.Staking.DelegationResponse.Builder, cosmos.staking.v1beta1.Staking.DelegationResponseOrBuilder> delegationResponsesBuilder_; /** *
       * delegation_responses defines all the delegations' info of a delegator.
       * 
* * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getDelegationResponsesList() { if (delegationResponsesBuilder_ == null) { return java.util.Collections.unmodifiableList(delegationResponses_); } else { return delegationResponsesBuilder_.getMessageList(); } } /** *
       * delegation_responses defines all the delegations' info of a delegator.
       * 
* * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; */ public int getDelegationResponsesCount() { if (delegationResponsesBuilder_ == null) { return delegationResponses_.size(); } else { return delegationResponsesBuilder_.getCount(); } } /** *
       * delegation_responses defines all the delegations' info of a delegator.
       * 
* * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.DelegationResponse getDelegationResponses(int index) { if (delegationResponsesBuilder_ == null) { return delegationResponses_.get(index); } else { return delegationResponsesBuilder_.getMessage(index); } } /** *
       * delegation_responses defines all the delegations' info of a delegator.
       * 
* * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; */ public Builder setDelegationResponses( int index, cosmos.staking.v1beta1.Staking.DelegationResponse value) { if (delegationResponsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDelegationResponsesIsMutable(); delegationResponses_.set(index, value); onChanged(); } else { delegationResponsesBuilder_.setMessage(index, value); } return this; } /** *
       * delegation_responses defines all the delegations' info of a delegator.
       * 
* * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; */ public Builder setDelegationResponses( int index, cosmos.staking.v1beta1.Staking.DelegationResponse.Builder builderForValue) { if (delegationResponsesBuilder_ == null) { ensureDelegationResponsesIsMutable(); delegationResponses_.set(index, builderForValue.build()); onChanged(); } else { delegationResponsesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * delegation_responses defines all the delegations' info of a delegator.
       * 
* * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; */ public Builder addDelegationResponses(cosmos.staking.v1beta1.Staking.DelegationResponse value) { if (delegationResponsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDelegationResponsesIsMutable(); delegationResponses_.add(value); onChanged(); } else { delegationResponsesBuilder_.addMessage(value); } return this; } /** *
       * delegation_responses defines all the delegations' info of a delegator.
       * 
* * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; */ public Builder addDelegationResponses( int index, cosmos.staking.v1beta1.Staking.DelegationResponse value) { if (delegationResponsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDelegationResponsesIsMutable(); delegationResponses_.add(index, value); onChanged(); } else { delegationResponsesBuilder_.addMessage(index, value); } return this; } /** *
       * delegation_responses defines all the delegations' info of a delegator.
       * 
* * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; */ public Builder addDelegationResponses( cosmos.staking.v1beta1.Staking.DelegationResponse.Builder builderForValue) { if (delegationResponsesBuilder_ == null) { ensureDelegationResponsesIsMutable(); delegationResponses_.add(builderForValue.build()); onChanged(); } else { delegationResponsesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * delegation_responses defines all the delegations' info of a delegator.
       * 
* * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; */ public Builder addDelegationResponses( int index, cosmos.staking.v1beta1.Staking.DelegationResponse.Builder builderForValue) { if (delegationResponsesBuilder_ == null) { ensureDelegationResponsesIsMutable(); delegationResponses_.add(index, builderForValue.build()); onChanged(); } else { delegationResponsesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * delegation_responses defines all the delegations' info of a delegator.
       * 
* * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; */ public Builder addAllDelegationResponses( java.lang.Iterable values) { if (delegationResponsesBuilder_ == null) { ensureDelegationResponsesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, delegationResponses_); onChanged(); } else { delegationResponsesBuilder_.addAllMessages(values); } return this; } /** *
       * delegation_responses defines all the delegations' info of a delegator.
       * 
* * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; */ public Builder clearDelegationResponses() { if (delegationResponsesBuilder_ == null) { delegationResponses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { delegationResponsesBuilder_.clear(); } return this; } /** *
       * delegation_responses defines all the delegations' info of a delegator.
       * 
* * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; */ public Builder removeDelegationResponses(int index) { if (delegationResponsesBuilder_ == null) { ensureDelegationResponsesIsMutable(); delegationResponses_.remove(index); onChanged(); } else { delegationResponsesBuilder_.remove(index); } return this; } /** *
       * delegation_responses defines all the delegations' info of a delegator.
       * 
* * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.DelegationResponse.Builder getDelegationResponsesBuilder( int index) { return getDelegationResponsesFieldBuilder().getBuilder(index); } /** *
       * delegation_responses defines all the delegations' info of a delegator.
       * 
* * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.DelegationResponseOrBuilder getDelegationResponsesOrBuilder( int index) { if (delegationResponsesBuilder_ == null) { return delegationResponses_.get(index); } else { return delegationResponsesBuilder_.getMessageOrBuilder(index); } } /** *
       * delegation_responses defines all the delegations' info of a delegator.
       * 
* * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getDelegationResponsesOrBuilderList() { if (delegationResponsesBuilder_ != null) { return delegationResponsesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(delegationResponses_); } } /** *
       * delegation_responses defines all the delegations' info of a delegator.
       * 
* * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.DelegationResponse.Builder addDelegationResponsesBuilder() { return getDelegationResponsesFieldBuilder().addBuilder( cosmos.staking.v1beta1.Staking.DelegationResponse.getDefaultInstance()); } /** *
       * delegation_responses defines all the delegations' info of a delegator.
       * 
* * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.DelegationResponse.Builder addDelegationResponsesBuilder( int index) { return getDelegationResponsesFieldBuilder().addBuilder( index, cosmos.staking.v1beta1.Staking.DelegationResponse.getDefaultInstance()); } /** *
       * delegation_responses defines all the delegations' info of a delegator.
       * 
* * repeated .cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getDelegationResponsesBuilderList() { return getDelegationResponsesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< cosmos.staking.v1beta1.Staking.DelegationResponse, cosmos.staking.v1beta1.Staking.DelegationResponse.Builder, cosmos.staking.v1beta1.Staking.DelegationResponseOrBuilder> getDelegationResponsesFieldBuilder() { if (delegationResponsesBuilder_ == null) { delegationResponsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< cosmos.staking.v1beta1.Staking.DelegationResponse, cosmos.staking.v1beta1.Staking.DelegationResponse.Builder, cosmos.staking.v1beta1.Staking.DelegationResponseOrBuilder>( delegationResponses_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); delegationResponses_ = null; } return delegationResponsesBuilder_; } 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 defines the pagination in the response.
       * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ public boolean hasPagination() { return paginationBuilder_ != null || pagination_ != null; } /** *
       * pagination defines the pagination in the 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 defines the pagination in the 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 defines the pagination in the 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 defines the pagination in the 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 defines the pagination in the 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 defines the pagination in the response.
       * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() { onChanged(); return getPaginationFieldBuilder().getBuilder(); } /** *
       * pagination defines the pagination in the 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 defines the pagination in the 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:cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse) private static final cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse(); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryDelegatorDelegationsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryDelegatorDelegationsResponse(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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorDelegationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryDelegatorUnbondingDelegationsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest) com.google.protobuf.MessageOrBuilder { /** *
     * delegator_addr defines the delegator address to query for.
     * 
* * string delegator_addr = 1; */ java.lang.String getDelegatorAddr(); /** *
     * delegator_addr defines the delegator address to query for.
     * 
* * string delegator_addr = 1; */ com.google.protobuf.ByteString getDelegatorAddrBytes(); /** *
     * pagination defines an optional pagination for the request.
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ boolean hasPagination(); /** *
     * pagination defines an optional pagination for the request.
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ cosmos.base.query.v1beta1.Pagination.PageRequest getPagination(); /** *
     * pagination defines an optional pagination for the request.
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder(); } /** *
   * QueryDelegatorUnbondingDelegationsRequest is request type for the
   * Query/DelegatorUnbondingDelegations RPC method.
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest} */ public static final class QueryDelegatorUnbondingDelegationsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest) QueryDelegatorUnbondingDelegationsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use QueryDelegatorUnbondingDelegationsRequest.newBuilder() to construct. private QueryDelegatorUnbondingDelegationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryDelegatorUnbondingDelegationsRequest() { delegatorAddr_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryDelegatorUnbondingDelegationsRequest( 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(); delegatorAddr_ = 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 cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest.class, cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest.Builder.class); } public static final int DELEGATOR_ADDR_FIELD_NUMBER = 1; private volatile java.lang.Object delegatorAddr_; /** *
     * delegator_addr defines the delegator address to query for.
     * 
* * string delegator_addr = 1; */ public java.lang.String getDelegatorAddr() { java.lang.Object ref = delegatorAddr_; 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(); delegatorAddr_ = s; return s; } } /** *
     * delegator_addr defines the delegator address to query for.
     * 
* * string delegator_addr = 1; */ public com.google.protobuf.ByteString getDelegatorAddrBytes() { java.lang.Object ref = delegatorAddr_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); delegatorAddr_ = 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 defines an optional pagination for the request.
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ public boolean hasPagination() { return pagination_ != null; } /** *
     * pagination defines an optional pagination for the 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 defines an optional pagination for the 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 (!getDelegatorAddrBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddr_); } 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 (!getDelegatorAddrBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddr_); } 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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest)) { return super.equals(obj); } cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest other = (cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest) obj; boolean result = true; result = result && getDelegatorAddr() .equals(other.getDelegatorAddr()); 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) + DELEGATOR_ADDR_FIELD_NUMBER; hash = (53 * hash) + getDelegatorAddr().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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest 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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest 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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest 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(cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest 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; } /** *
     * QueryDelegatorUnbondingDelegationsRequest is request type for the
     * Query/DelegatorUnbondingDelegations RPC method.
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest) cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest.class, cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest.Builder.class); } // Construct using cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest.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(); delegatorAddr_ = ""; if (paginationBuilder_ == null) { pagination_ = null; } else { pagination_ = null; paginationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsRequest_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest getDefaultInstanceForType() { return cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest build() { cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest buildPartial() { cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest result = new cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest(this); result.delegatorAddr_ = delegatorAddr_; 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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest) { return mergeFrom((cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest other) { if (other == cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest.getDefaultInstance()) return this; if (!other.getDelegatorAddr().isEmpty()) { delegatorAddr_ = other.delegatorAddr_; 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 { cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object delegatorAddr_ = ""; /** *
       * delegator_addr defines the delegator address to query for.
       * 
* * string delegator_addr = 1; */ public java.lang.String getDelegatorAddr() { java.lang.Object ref = delegatorAddr_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); delegatorAddr_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * delegator_addr defines the delegator address to query for.
       * 
* * string delegator_addr = 1; */ public com.google.protobuf.ByteString getDelegatorAddrBytes() { java.lang.Object ref = delegatorAddr_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); delegatorAddr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * delegator_addr defines the delegator address to query for.
       * 
* * string delegator_addr = 1; */ public Builder setDelegatorAddr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } delegatorAddr_ = value; onChanged(); return this; } /** *
       * delegator_addr defines the delegator address to query for.
       * 
* * string delegator_addr = 1; */ public Builder clearDelegatorAddr() { delegatorAddr_ = getDefaultInstance().getDelegatorAddr(); onChanged(); return this; } /** *
       * delegator_addr defines the delegator address to query for.
       * 
* * string delegator_addr = 1; */ public Builder setDelegatorAddrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); delegatorAddr_ = 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 defines an optional pagination for the request.
       * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ public boolean hasPagination() { return paginationBuilder_ != null || pagination_ != null; } /** *
       * pagination defines an optional pagination for the 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 defines an optional pagination for the 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 defines an optional pagination for the 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 defines an optional pagination for the 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 defines an optional pagination for the 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 defines an optional pagination for the request.
       * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() { onChanged(); return getPaginationFieldBuilder().getBuilder(); } /** *
       * pagination defines an optional pagination for the 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 defines an optional pagination for the 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:cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest) private static final cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest(); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryDelegatorUnbondingDelegationsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryDelegatorUnbondingDelegationsRequest(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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryDelegatorUnbondingDelegationsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse) com.google.protobuf.MessageOrBuilder { /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ java.util.List getUnbondingResponsesList(); /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ cosmos.staking.v1beta1.Staking.UnbondingDelegation getUnbondingResponses(int index); /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ int getUnbondingResponsesCount(); /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ java.util.List getUnbondingResponsesOrBuilderList(); /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ cosmos.staking.v1beta1.Staking.UnbondingDelegationOrBuilder getUnbondingResponsesOrBuilder( int index); /** *
     * pagination defines the pagination in the response.
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ boolean hasPagination(); /** *
     * pagination defines the pagination in the response.
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ cosmos.base.query.v1beta1.Pagination.PageResponse getPagination(); /** *
     * pagination defines the pagination in the response.
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder(); } /** *
   * QueryUnbondingDelegatorDelegationsResponse is response type for the
   * Query/UnbondingDelegatorDelegations RPC method.
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse} */ public static final class QueryDelegatorUnbondingDelegationsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse) QueryDelegatorUnbondingDelegationsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use QueryDelegatorUnbondingDelegationsResponse.newBuilder() to construct. private QueryDelegatorUnbondingDelegationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryDelegatorUnbondingDelegationsResponse() { unbondingResponses_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryDelegatorUnbondingDelegationsResponse( 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)) { unbondingResponses_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } unbondingResponses_.add( input.readMessage(cosmos.staking.v1beta1.Staking.UnbondingDelegation.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)) { unbondingResponses_ = java.util.Collections.unmodifiableList(unbondingResponses_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse.class, cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse.Builder.class); } private int bitField0_; public static final int UNBONDING_RESPONSES_FIELD_NUMBER = 1; private java.util.List unbondingResponses_; /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getUnbondingResponsesList() { return unbondingResponses_; } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getUnbondingResponsesOrBuilderList() { return unbondingResponses_; } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public int getUnbondingResponsesCount() { return unbondingResponses_.size(); } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.UnbondingDelegation getUnbondingResponses(int index) { return unbondingResponses_.get(index); } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.UnbondingDelegationOrBuilder getUnbondingResponsesOrBuilder( int index) { return unbondingResponses_.get(index); } public static final int PAGINATION_FIELD_NUMBER = 2; private cosmos.base.query.v1beta1.Pagination.PageResponse pagination_; /** *
     * pagination defines the pagination in the response.
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ public boolean hasPagination() { return pagination_ != null; } /** *
     * pagination defines the pagination in the 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 defines the pagination in the 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 < unbondingResponses_.size(); i++) { output.writeMessage(1, unbondingResponses_.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 < unbondingResponses_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, unbondingResponses_.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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse)) { return super.equals(obj); } cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse other = (cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse) obj; boolean result = true; result = result && getUnbondingResponsesList() .equals(other.getUnbondingResponsesList()); 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 (getUnbondingResponsesCount() > 0) { hash = (37 * hash) + UNBONDING_RESPONSES_FIELD_NUMBER; hash = (53 * hash) + getUnbondingResponsesList().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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse 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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse 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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse 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(cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse 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; } /** *
     * QueryUnbondingDelegatorDelegationsResponse is response type for the
     * Query/UnbondingDelegatorDelegations RPC method.
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse) cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse.class, cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse.Builder.class); } // Construct using cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getUnbondingResponsesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (unbondingResponsesBuilder_ == null) { unbondingResponses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { unbondingResponsesBuilder_.clear(); } if (paginationBuilder_ == null) { pagination_ = null; } else { pagination_ = null; paginationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsResponse_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse getDefaultInstanceForType() { return cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse build() { cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse buildPartial() { cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse result = new cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (unbondingResponsesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { unbondingResponses_ = java.util.Collections.unmodifiableList(unbondingResponses_); bitField0_ = (bitField0_ & ~0x00000001); } result.unbondingResponses_ = unbondingResponses_; } else { result.unbondingResponses_ = unbondingResponsesBuilder_.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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse) { return mergeFrom((cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse other) { if (other == cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse.getDefaultInstance()) return this; if (unbondingResponsesBuilder_ == null) { if (!other.unbondingResponses_.isEmpty()) { if (unbondingResponses_.isEmpty()) { unbondingResponses_ = other.unbondingResponses_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureUnbondingResponsesIsMutable(); unbondingResponses_.addAll(other.unbondingResponses_); } onChanged(); } } else { if (!other.unbondingResponses_.isEmpty()) { if (unbondingResponsesBuilder_.isEmpty()) { unbondingResponsesBuilder_.dispose(); unbondingResponsesBuilder_ = null; unbondingResponses_ = other.unbondingResponses_; bitField0_ = (bitField0_ & ~0x00000001); unbondingResponsesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getUnbondingResponsesFieldBuilder() : null; } else { unbondingResponsesBuilder_.addAllMessages(other.unbondingResponses_); } } } 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 { cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List unbondingResponses_ = java.util.Collections.emptyList(); private void ensureUnbondingResponsesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { unbondingResponses_ = new java.util.ArrayList(unbondingResponses_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< cosmos.staking.v1beta1.Staking.UnbondingDelegation, cosmos.staking.v1beta1.Staking.UnbondingDelegation.Builder, cosmos.staking.v1beta1.Staking.UnbondingDelegationOrBuilder> unbondingResponsesBuilder_; /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getUnbondingResponsesList() { if (unbondingResponsesBuilder_ == null) { return java.util.Collections.unmodifiableList(unbondingResponses_); } else { return unbondingResponsesBuilder_.getMessageList(); } } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public int getUnbondingResponsesCount() { if (unbondingResponsesBuilder_ == null) { return unbondingResponses_.size(); } else { return unbondingResponsesBuilder_.getCount(); } } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.UnbondingDelegation getUnbondingResponses(int index) { if (unbondingResponsesBuilder_ == null) { return unbondingResponses_.get(index); } else { return unbondingResponsesBuilder_.getMessage(index); } } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public Builder setUnbondingResponses( int index, cosmos.staking.v1beta1.Staking.UnbondingDelegation value) { if (unbondingResponsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUnbondingResponsesIsMutable(); unbondingResponses_.set(index, value); onChanged(); } else { unbondingResponsesBuilder_.setMessage(index, value); } return this; } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public Builder setUnbondingResponses( int index, cosmos.staking.v1beta1.Staking.UnbondingDelegation.Builder builderForValue) { if (unbondingResponsesBuilder_ == null) { ensureUnbondingResponsesIsMutable(); unbondingResponses_.set(index, builderForValue.build()); onChanged(); } else { unbondingResponsesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public Builder addUnbondingResponses(cosmos.staking.v1beta1.Staking.UnbondingDelegation value) { if (unbondingResponsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUnbondingResponsesIsMutable(); unbondingResponses_.add(value); onChanged(); } else { unbondingResponsesBuilder_.addMessage(value); } return this; } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public Builder addUnbondingResponses( int index, cosmos.staking.v1beta1.Staking.UnbondingDelegation value) { if (unbondingResponsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUnbondingResponsesIsMutable(); unbondingResponses_.add(index, value); onChanged(); } else { unbondingResponsesBuilder_.addMessage(index, value); } return this; } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public Builder addUnbondingResponses( cosmos.staking.v1beta1.Staking.UnbondingDelegation.Builder builderForValue) { if (unbondingResponsesBuilder_ == null) { ensureUnbondingResponsesIsMutable(); unbondingResponses_.add(builderForValue.build()); onChanged(); } else { unbondingResponsesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public Builder addUnbondingResponses( int index, cosmos.staking.v1beta1.Staking.UnbondingDelegation.Builder builderForValue) { if (unbondingResponsesBuilder_ == null) { ensureUnbondingResponsesIsMutable(); unbondingResponses_.add(index, builderForValue.build()); onChanged(); } else { unbondingResponsesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public Builder addAllUnbondingResponses( java.lang.Iterable values) { if (unbondingResponsesBuilder_ == null) { ensureUnbondingResponsesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, unbondingResponses_); onChanged(); } else { unbondingResponsesBuilder_.addAllMessages(values); } return this; } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public Builder clearUnbondingResponses() { if (unbondingResponsesBuilder_ == null) { unbondingResponses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { unbondingResponsesBuilder_.clear(); } return this; } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public Builder removeUnbondingResponses(int index) { if (unbondingResponsesBuilder_ == null) { ensureUnbondingResponsesIsMutable(); unbondingResponses_.remove(index); onChanged(); } else { unbondingResponsesBuilder_.remove(index); } return this; } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.UnbondingDelegation.Builder getUnbondingResponsesBuilder( int index) { return getUnbondingResponsesFieldBuilder().getBuilder(index); } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.UnbondingDelegationOrBuilder getUnbondingResponsesOrBuilder( int index) { if (unbondingResponsesBuilder_ == null) { return unbondingResponses_.get(index); } else { return unbondingResponsesBuilder_.getMessageOrBuilder(index); } } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getUnbondingResponsesOrBuilderList() { if (unbondingResponsesBuilder_ != null) { return unbondingResponsesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(unbondingResponses_); } } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.UnbondingDelegation.Builder addUnbondingResponsesBuilder() { return getUnbondingResponsesFieldBuilder().addBuilder( cosmos.staking.v1beta1.Staking.UnbondingDelegation.getDefaultInstance()); } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.UnbondingDelegation.Builder addUnbondingResponsesBuilder( int index) { return getUnbondingResponsesFieldBuilder().addBuilder( index, cosmos.staking.v1beta1.Staking.UnbondingDelegation.getDefaultInstance()); } /** * repeated .cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getUnbondingResponsesBuilderList() { return getUnbondingResponsesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< cosmos.staking.v1beta1.Staking.UnbondingDelegation, cosmos.staking.v1beta1.Staking.UnbondingDelegation.Builder, cosmos.staking.v1beta1.Staking.UnbondingDelegationOrBuilder> getUnbondingResponsesFieldBuilder() { if (unbondingResponsesBuilder_ == null) { unbondingResponsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< cosmos.staking.v1beta1.Staking.UnbondingDelegation, cosmos.staking.v1beta1.Staking.UnbondingDelegation.Builder, cosmos.staking.v1beta1.Staking.UnbondingDelegationOrBuilder>( unbondingResponses_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); unbondingResponses_ = null; } return unbondingResponsesBuilder_; } 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 defines the pagination in the response.
       * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ public boolean hasPagination() { return paginationBuilder_ != null || pagination_ != null; } /** *
       * pagination defines the pagination in the 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 defines the pagination in the 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 defines the pagination in the 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 defines the pagination in the 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 defines the pagination in the 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 defines the pagination in the response.
       * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() { onChanged(); return getPaginationFieldBuilder().getBuilder(); } /** *
       * pagination defines the pagination in the 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 defines the pagination in the 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:cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse) private static final cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse(); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryDelegatorUnbondingDelegationsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryDelegatorUnbondingDelegationsResponse(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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorUnbondingDelegationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryRedelegationsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryRedelegationsRequest) com.google.protobuf.MessageOrBuilder { /** *
     * delegator_addr defines the delegator address to query for.
     * 
* * string delegator_addr = 1; */ java.lang.String getDelegatorAddr(); /** *
     * delegator_addr defines the delegator address to query for.
     * 
* * string delegator_addr = 1; */ com.google.protobuf.ByteString getDelegatorAddrBytes(); /** *
     * src_validator_addr defines the validator address to redelegate from.
     * 
* * string src_validator_addr = 2; */ java.lang.String getSrcValidatorAddr(); /** *
     * src_validator_addr defines the validator address to redelegate from.
     * 
* * string src_validator_addr = 2; */ com.google.protobuf.ByteString getSrcValidatorAddrBytes(); /** *
     * dst_validator_addr defines the validator address to redelegate to.
     * 
* * string dst_validator_addr = 3; */ java.lang.String getDstValidatorAddr(); /** *
     * dst_validator_addr defines the validator address to redelegate to.
     * 
* * string dst_validator_addr = 3; */ com.google.protobuf.ByteString getDstValidatorAddrBytes(); /** *
     * pagination defines an optional pagination for the request.
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 4; */ boolean hasPagination(); /** *
     * pagination defines an optional pagination for the request.
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 4; */ cosmos.base.query.v1beta1.Pagination.PageRequest getPagination(); /** *
     * pagination defines an optional pagination for the request.
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 4; */ cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder(); } /** *
   * QueryRedelegationsRequest is request type for the Query/Redelegations RPC
   * method.
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryRedelegationsRequest} */ public static final class QueryRedelegationsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryRedelegationsRequest) QueryRedelegationsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use QueryRedelegationsRequest.newBuilder() to construct. private QueryRedelegationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryRedelegationsRequest() { delegatorAddr_ = ""; srcValidatorAddr_ = ""; dstValidatorAddr_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryRedelegationsRequest( 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(); delegatorAddr_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); srcValidatorAddr_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); dstValidatorAddr_ = s; break; } case 34: { 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 cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryRedelegationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryRedelegationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest.class, cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest.Builder.class); } public static final int DELEGATOR_ADDR_FIELD_NUMBER = 1; private volatile java.lang.Object delegatorAddr_; /** *
     * delegator_addr defines the delegator address to query for.
     * 
* * string delegator_addr = 1; */ public java.lang.String getDelegatorAddr() { java.lang.Object ref = delegatorAddr_; 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(); delegatorAddr_ = s; return s; } } /** *
     * delegator_addr defines the delegator address to query for.
     * 
* * string delegator_addr = 1; */ public com.google.protobuf.ByteString getDelegatorAddrBytes() { java.lang.Object ref = delegatorAddr_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); delegatorAddr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SRC_VALIDATOR_ADDR_FIELD_NUMBER = 2; private volatile java.lang.Object srcValidatorAddr_; /** *
     * src_validator_addr defines the validator address to redelegate from.
     * 
* * string src_validator_addr = 2; */ public java.lang.String getSrcValidatorAddr() { java.lang.Object ref = srcValidatorAddr_; 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(); srcValidatorAddr_ = s; return s; } } /** *
     * src_validator_addr defines the validator address to redelegate from.
     * 
* * string src_validator_addr = 2; */ public com.google.protobuf.ByteString getSrcValidatorAddrBytes() { java.lang.Object ref = srcValidatorAddr_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); srcValidatorAddr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DST_VALIDATOR_ADDR_FIELD_NUMBER = 3; private volatile java.lang.Object dstValidatorAddr_; /** *
     * dst_validator_addr defines the validator address to redelegate to.
     * 
* * string dst_validator_addr = 3; */ public java.lang.String getDstValidatorAddr() { java.lang.Object ref = dstValidatorAddr_; 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(); dstValidatorAddr_ = s; return s; } } /** *
     * dst_validator_addr defines the validator address to redelegate to.
     * 
* * string dst_validator_addr = 3; */ public com.google.protobuf.ByteString getDstValidatorAddrBytes() { java.lang.Object ref = dstValidatorAddr_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dstValidatorAddr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PAGINATION_FIELD_NUMBER = 4; private cosmos.base.query.v1beta1.Pagination.PageRequest pagination_; /** *
     * pagination defines an optional pagination for the request.
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 4; */ public boolean hasPagination() { return pagination_ != null; } /** *
     * pagination defines an optional pagination for the request.
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 4; */ public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() { return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_; } /** *
     * pagination defines an optional pagination for the request.
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 4; */ 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 (!getDelegatorAddrBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddr_); } if (!getSrcValidatorAddrBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, srcValidatorAddr_); } if (!getDstValidatorAddrBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, dstValidatorAddr_); } if (pagination_ != null) { output.writeMessage(4, getPagination()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getDelegatorAddrBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddr_); } if (!getSrcValidatorAddrBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, srcValidatorAddr_); } if (!getDstValidatorAddrBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, dstValidatorAddr_); } if (pagination_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, 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 cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest)) { return super.equals(obj); } cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest other = (cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest) obj; boolean result = true; result = result && getDelegatorAddr() .equals(other.getDelegatorAddr()); result = result && getSrcValidatorAddr() .equals(other.getSrcValidatorAddr()); result = result && getDstValidatorAddr() .equals(other.getDstValidatorAddr()); 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) + DELEGATOR_ADDR_FIELD_NUMBER; hash = (53 * hash) + getDelegatorAddr().hashCode(); hash = (37 * hash) + SRC_VALIDATOR_ADDR_FIELD_NUMBER; hash = (53 * hash) + getSrcValidatorAddr().hashCode(); hash = (37 * hash) + DST_VALIDATOR_ADDR_FIELD_NUMBER; hash = (53 * hash) + getDstValidatorAddr().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 cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest 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 cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest 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 cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest 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(cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest 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; } /** *
     * QueryRedelegationsRequest is request type for the Query/Redelegations RPC
     * method.
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryRedelegationsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryRedelegationsRequest) cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryRedelegationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryRedelegationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest.class, cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest.Builder.class); } // Construct using cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest.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(); delegatorAddr_ = ""; srcValidatorAddr_ = ""; dstValidatorAddr_ = ""; if (paginationBuilder_ == null) { pagination_ = null; } else { pagination_ = null; paginationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryRedelegationsRequest_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest getDefaultInstanceForType() { return cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest build() { cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest buildPartial() { cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest result = new cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest(this); result.delegatorAddr_ = delegatorAddr_; result.srcValidatorAddr_ = srcValidatorAddr_; result.dstValidatorAddr_ = dstValidatorAddr_; 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 cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest) { return mergeFrom((cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest other) { if (other == cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest.getDefaultInstance()) return this; if (!other.getDelegatorAddr().isEmpty()) { delegatorAddr_ = other.delegatorAddr_; onChanged(); } if (!other.getSrcValidatorAddr().isEmpty()) { srcValidatorAddr_ = other.srcValidatorAddr_; onChanged(); } if (!other.getDstValidatorAddr().isEmpty()) { dstValidatorAddr_ = other.dstValidatorAddr_; 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 { cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object delegatorAddr_ = ""; /** *
       * delegator_addr defines the delegator address to query for.
       * 
* * string delegator_addr = 1; */ public java.lang.String getDelegatorAddr() { java.lang.Object ref = delegatorAddr_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); delegatorAddr_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * delegator_addr defines the delegator address to query for.
       * 
* * string delegator_addr = 1; */ public com.google.protobuf.ByteString getDelegatorAddrBytes() { java.lang.Object ref = delegatorAddr_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); delegatorAddr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * delegator_addr defines the delegator address to query for.
       * 
* * string delegator_addr = 1; */ public Builder setDelegatorAddr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } delegatorAddr_ = value; onChanged(); return this; } /** *
       * delegator_addr defines the delegator address to query for.
       * 
* * string delegator_addr = 1; */ public Builder clearDelegatorAddr() { delegatorAddr_ = getDefaultInstance().getDelegatorAddr(); onChanged(); return this; } /** *
       * delegator_addr defines the delegator address to query for.
       * 
* * string delegator_addr = 1; */ public Builder setDelegatorAddrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); delegatorAddr_ = value; onChanged(); return this; } private java.lang.Object srcValidatorAddr_ = ""; /** *
       * src_validator_addr defines the validator address to redelegate from.
       * 
* * string src_validator_addr = 2; */ public java.lang.String getSrcValidatorAddr() { java.lang.Object ref = srcValidatorAddr_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); srcValidatorAddr_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * src_validator_addr defines the validator address to redelegate from.
       * 
* * string src_validator_addr = 2; */ public com.google.protobuf.ByteString getSrcValidatorAddrBytes() { java.lang.Object ref = srcValidatorAddr_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); srcValidatorAddr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * src_validator_addr defines the validator address to redelegate from.
       * 
* * string src_validator_addr = 2; */ public Builder setSrcValidatorAddr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } srcValidatorAddr_ = value; onChanged(); return this; } /** *
       * src_validator_addr defines the validator address to redelegate from.
       * 
* * string src_validator_addr = 2; */ public Builder clearSrcValidatorAddr() { srcValidatorAddr_ = getDefaultInstance().getSrcValidatorAddr(); onChanged(); return this; } /** *
       * src_validator_addr defines the validator address to redelegate from.
       * 
* * string src_validator_addr = 2; */ public Builder setSrcValidatorAddrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); srcValidatorAddr_ = value; onChanged(); return this; } private java.lang.Object dstValidatorAddr_ = ""; /** *
       * dst_validator_addr defines the validator address to redelegate to.
       * 
* * string dst_validator_addr = 3; */ public java.lang.String getDstValidatorAddr() { java.lang.Object ref = dstValidatorAddr_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dstValidatorAddr_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * dst_validator_addr defines the validator address to redelegate to.
       * 
* * string dst_validator_addr = 3; */ public com.google.protobuf.ByteString getDstValidatorAddrBytes() { java.lang.Object ref = dstValidatorAddr_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dstValidatorAddr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * dst_validator_addr defines the validator address to redelegate to.
       * 
* * string dst_validator_addr = 3; */ public Builder setDstValidatorAddr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } dstValidatorAddr_ = value; onChanged(); return this; } /** *
       * dst_validator_addr defines the validator address to redelegate to.
       * 
* * string dst_validator_addr = 3; */ public Builder clearDstValidatorAddr() { dstValidatorAddr_ = getDefaultInstance().getDstValidatorAddr(); onChanged(); return this; } /** *
       * dst_validator_addr defines the validator address to redelegate to.
       * 
* * string dst_validator_addr = 3; */ public Builder setDstValidatorAddrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dstValidatorAddr_ = 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 defines an optional pagination for the request.
       * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 4; */ public boolean hasPagination() { return paginationBuilder_ != null || pagination_ != null; } /** *
       * pagination defines an optional pagination for the request.
       * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 4; */ 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 defines an optional pagination for the request.
       * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 4; */ 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 defines an optional pagination for the request.
       * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 4; */ 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 defines an optional pagination for the request.
       * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 4; */ 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 defines an optional pagination for the request.
       * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 4; */ public Builder clearPagination() { if (paginationBuilder_ == null) { pagination_ = null; onChanged(); } else { pagination_ = null; paginationBuilder_ = null; } return this; } /** *
       * pagination defines an optional pagination for the request.
       * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 4; */ public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() { onChanged(); return getPaginationFieldBuilder().getBuilder(); } /** *
       * pagination defines an optional pagination for the request.
       * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 4; */ 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 defines an optional pagination for the request.
       * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 4; */ 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:cosmos.staking.v1beta1.QueryRedelegationsRequest) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryRedelegationsRequest) private static final cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest(); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryRedelegationsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryRedelegationsRequest(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 cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryRedelegationsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryRedelegationsResponse) com.google.protobuf.MessageOrBuilder { /** * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; */ java.util.List getRedelegationResponsesList(); /** * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; */ cosmos.staking.v1beta1.Staking.RedelegationResponse getRedelegationResponses(int index); /** * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; */ int getRedelegationResponsesCount(); /** * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; */ java.util.List getRedelegationResponsesOrBuilderList(); /** * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; */ cosmos.staking.v1beta1.Staking.RedelegationResponseOrBuilder getRedelegationResponsesOrBuilder( int index); /** *
     * pagination defines the pagination in the response.
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ boolean hasPagination(); /** *
     * pagination defines the pagination in the response.
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ cosmos.base.query.v1beta1.Pagination.PageResponse getPagination(); /** *
     * pagination defines the pagination in the response.
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder(); } /** *
   * QueryRedelegationsResponse is response type for the Query/Redelegations RPC
   * method.
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryRedelegationsResponse} */ public static final class QueryRedelegationsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryRedelegationsResponse) QueryRedelegationsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use QueryRedelegationsResponse.newBuilder() to construct. private QueryRedelegationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryRedelegationsResponse() { redelegationResponses_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryRedelegationsResponse( 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)) { redelegationResponses_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } redelegationResponses_.add( input.readMessage(cosmos.staking.v1beta1.Staking.RedelegationResponse.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)) { redelegationResponses_ = java.util.Collections.unmodifiableList(redelegationResponses_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryRedelegationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryRedelegationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse.class, cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse.Builder.class); } private int bitField0_; public static final int REDELEGATION_RESPONSES_FIELD_NUMBER = 1; private java.util.List redelegationResponses_; /** * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getRedelegationResponsesList() { return redelegationResponses_; } /** * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getRedelegationResponsesOrBuilderList() { return redelegationResponses_; } /** * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; */ public int getRedelegationResponsesCount() { return redelegationResponses_.size(); } /** * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.RedelegationResponse getRedelegationResponses(int index) { return redelegationResponses_.get(index); } /** * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.RedelegationResponseOrBuilder getRedelegationResponsesOrBuilder( int index) { return redelegationResponses_.get(index); } public static final int PAGINATION_FIELD_NUMBER = 2; private cosmos.base.query.v1beta1.Pagination.PageResponse pagination_; /** *
     * pagination defines the pagination in the response.
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ public boolean hasPagination() { return pagination_ != null; } /** *
     * pagination defines the pagination in the 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 defines the pagination in the 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 < redelegationResponses_.size(); i++) { output.writeMessage(1, redelegationResponses_.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 < redelegationResponses_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, redelegationResponses_.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 cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse)) { return super.equals(obj); } cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse other = (cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse) obj; boolean result = true; result = result && getRedelegationResponsesList() .equals(other.getRedelegationResponsesList()); 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 (getRedelegationResponsesCount() > 0) { hash = (37 * hash) + REDELEGATION_RESPONSES_FIELD_NUMBER; hash = (53 * hash) + getRedelegationResponsesList().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 cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse 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 cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse 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 cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse 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(cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse 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; } /** *
     * QueryRedelegationsResponse is response type for the Query/Redelegations RPC
     * method.
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryRedelegationsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryRedelegationsResponse) cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryRedelegationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryRedelegationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse.class, cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse.Builder.class); } // Construct using cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRedelegationResponsesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (redelegationResponsesBuilder_ == null) { redelegationResponses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { redelegationResponsesBuilder_.clear(); } if (paginationBuilder_ == null) { pagination_ = null; } else { pagination_ = null; paginationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryRedelegationsResponse_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse getDefaultInstanceForType() { return cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse build() { cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse buildPartial() { cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse result = new cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (redelegationResponsesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { redelegationResponses_ = java.util.Collections.unmodifiableList(redelegationResponses_); bitField0_ = (bitField0_ & ~0x00000001); } result.redelegationResponses_ = redelegationResponses_; } else { result.redelegationResponses_ = redelegationResponsesBuilder_.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 cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse) { return mergeFrom((cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse other) { if (other == cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse.getDefaultInstance()) return this; if (redelegationResponsesBuilder_ == null) { if (!other.redelegationResponses_.isEmpty()) { if (redelegationResponses_.isEmpty()) { redelegationResponses_ = other.redelegationResponses_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRedelegationResponsesIsMutable(); redelegationResponses_.addAll(other.redelegationResponses_); } onChanged(); } } else { if (!other.redelegationResponses_.isEmpty()) { if (redelegationResponsesBuilder_.isEmpty()) { redelegationResponsesBuilder_.dispose(); redelegationResponsesBuilder_ = null; redelegationResponses_ = other.redelegationResponses_; bitField0_ = (bitField0_ & ~0x00000001); redelegationResponsesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRedelegationResponsesFieldBuilder() : null; } else { redelegationResponsesBuilder_.addAllMessages(other.redelegationResponses_); } } } 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 { cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List redelegationResponses_ = java.util.Collections.emptyList(); private void ensureRedelegationResponsesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { redelegationResponses_ = new java.util.ArrayList(redelegationResponses_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< cosmos.staking.v1beta1.Staking.RedelegationResponse, cosmos.staking.v1beta1.Staking.RedelegationResponse.Builder, cosmos.staking.v1beta1.Staking.RedelegationResponseOrBuilder> redelegationResponsesBuilder_; /** * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getRedelegationResponsesList() { if (redelegationResponsesBuilder_ == null) { return java.util.Collections.unmodifiableList(redelegationResponses_); } else { return redelegationResponsesBuilder_.getMessageList(); } } /** * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; */ public int getRedelegationResponsesCount() { if (redelegationResponsesBuilder_ == null) { return redelegationResponses_.size(); } else { return redelegationResponsesBuilder_.getCount(); } } /** * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.RedelegationResponse getRedelegationResponses(int index) { if (redelegationResponsesBuilder_ == null) { return redelegationResponses_.get(index); } else { return redelegationResponsesBuilder_.getMessage(index); } } /** * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; */ public Builder setRedelegationResponses( int index, cosmos.staking.v1beta1.Staking.RedelegationResponse value) { if (redelegationResponsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRedelegationResponsesIsMutable(); redelegationResponses_.set(index, value); onChanged(); } else { redelegationResponsesBuilder_.setMessage(index, value); } return this; } /** * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; */ public Builder setRedelegationResponses( int index, cosmos.staking.v1beta1.Staking.RedelegationResponse.Builder builderForValue) { if (redelegationResponsesBuilder_ == null) { ensureRedelegationResponsesIsMutable(); redelegationResponses_.set(index, builderForValue.build()); onChanged(); } else { redelegationResponsesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; */ public Builder addRedelegationResponses(cosmos.staking.v1beta1.Staking.RedelegationResponse value) { if (redelegationResponsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRedelegationResponsesIsMutable(); redelegationResponses_.add(value); onChanged(); } else { redelegationResponsesBuilder_.addMessage(value); } return this; } /** * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; */ public Builder addRedelegationResponses( int index, cosmos.staking.v1beta1.Staking.RedelegationResponse value) { if (redelegationResponsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRedelegationResponsesIsMutable(); redelegationResponses_.add(index, value); onChanged(); } else { redelegationResponsesBuilder_.addMessage(index, value); } return this; } /** * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; */ public Builder addRedelegationResponses( cosmos.staking.v1beta1.Staking.RedelegationResponse.Builder builderForValue) { if (redelegationResponsesBuilder_ == null) { ensureRedelegationResponsesIsMutable(); redelegationResponses_.add(builderForValue.build()); onChanged(); } else { redelegationResponsesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; */ public Builder addRedelegationResponses( int index, cosmos.staking.v1beta1.Staking.RedelegationResponse.Builder builderForValue) { if (redelegationResponsesBuilder_ == null) { ensureRedelegationResponsesIsMutable(); redelegationResponses_.add(index, builderForValue.build()); onChanged(); } else { redelegationResponsesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; */ public Builder addAllRedelegationResponses( java.lang.Iterable values) { if (redelegationResponsesBuilder_ == null) { ensureRedelegationResponsesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, redelegationResponses_); onChanged(); } else { redelegationResponsesBuilder_.addAllMessages(values); } return this; } /** * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; */ public Builder clearRedelegationResponses() { if (redelegationResponsesBuilder_ == null) { redelegationResponses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { redelegationResponsesBuilder_.clear(); } return this; } /** * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; */ public Builder removeRedelegationResponses(int index) { if (redelegationResponsesBuilder_ == null) { ensureRedelegationResponsesIsMutable(); redelegationResponses_.remove(index); onChanged(); } else { redelegationResponsesBuilder_.remove(index); } return this; } /** * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.RedelegationResponse.Builder getRedelegationResponsesBuilder( int index) { return getRedelegationResponsesFieldBuilder().getBuilder(index); } /** * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.RedelegationResponseOrBuilder getRedelegationResponsesOrBuilder( int index) { if (redelegationResponsesBuilder_ == null) { return redelegationResponses_.get(index); } else { return redelegationResponsesBuilder_.getMessageOrBuilder(index); } } /** * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getRedelegationResponsesOrBuilderList() { if (redelegationResponsesBuilder_ != null) { return redelegationResponsesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(redelegationResponses_); } } /** * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.RedelegationResponse.Builder addRedelegationResponsesBuilder() { return getRedelegationResponsesFieldBuilder().addBuilder( cosmos.staking.v1beta1.Staking.RedelegationResponse.getDefaultInstance()); } /** * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.RedelegationResponse.Builder addRedelegationResponsesBuilder( int index) { return getRedelegationResponsesFieldBuilder().addBuilder( index, cosmos.staking.v1beta1.Staking.RedelegationResponse.getDefaultInstance()); } /** * repeated .cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getRedelegationResponsesBuilderList() { return getRedelegationResponsesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< cosmos.staking.v1beta1.Staking.RedelegationResponse, cosmos.staking.v1beta1.Staking.RedelegationResponse.Builder, cosmos.staking.v1beta1.Staking.RedelegationResponseOrBuilder> getRedelegationResponsesFieldBuilder() { if (redelegationResponsesBuilder_ == null) { redelegationResponsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< cosmos.staking.v1beta1.Staking.RedelegationResponse, cosmos.staking.v1beta1.Staking.RedelegationResponse.Builder, cosmos.staking.v1beta1.Staking.RedelegationResponseOrBuilder>( redelegationResponses_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); redelegationResponses_ = null; } return redelegationResponsesBuilder_; } 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 defines the pagination in the response.
       * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ public boolean hasPagination() { return paginationBuilder_ != null || pagination_ != null; } /** *
       * pagination defines the pagination in the 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 defines the pagination in the 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 defines the pagination in the 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 defines the pagination in the 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 defines the pagination in the 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 defines the pagination in the response.
       * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() { onChanged(); return getPaginationFieldBuilder().getBuilder(); } /** *
       * pagination defines the pagination in the 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 defines the pagination in the 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:cosmos.staking.v1beta1.QueryRedelegationsResponse) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryRedelegationsResponse) private static final cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse(); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryRedelegationsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryRedelegationsResponse(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 cosmos.staking.v1beta1.QueryOuterClass.QueryRedelegationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryDelegatorValidatorsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest) com.google.protobuf.MessageOrBuilder { /** *
     * delegator_addr defines the delegator address to query for.
     * 
* * string delegator_addr = 1; */ java.lang.String getDelegatorAddr(); /** *
     * delegator_addr defines the delegator address to query for.
     * 
* * string delegator_addr = 1; */ com.google.protobuf.ByteString getDelegatorAddrBytes(); /** *
     * pagination defines an optional pagination for the request.
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ boolean hasPagination(); /** *
     * pagination defines an optional pagination for the request.
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ cosmos.base.query.v1beta1.Pagination.PageRequest getPagination(); /** *
     * pagination defines an optional pagination for the request.
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder(); } /** *
   * QueryDelegatorValidatorsRequest is request type for the
   * Query/DelegatorValidators RPC method.
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest} */ public static final class QueryDelegatorValidatorsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest) QueryDelegatorValidatorsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use QueryDelegatorValidatorsRequest.newBuilder() to construct. private QueryDelegatorValidatorsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryDelegatorValidatorsRequest() { delegatorAddr_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryDelegatorValidatorsRequest( 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(); delegatorAddr_ = 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 cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest.class, cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest.Builder.class); } public static final int DELEGATOR_ADDR_FIELD_NUMBER = 1; private volatile java.lang.Object delegatorAddr_; /** *
     * delegator_addr defines the delegator address to query for.
     * 
* * string delegator_addr = 1; */ public java.lang.String getDelegatorAddr() { java.lang.Object ref = delegatorAddr_; 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(); delegatorAddr_ = s; return s; } } /** *
     * delegator_addr defines the delegator address to query for.
     * 
* * string delegator_addr = 1; */ public com.google.protobuf.ByteString getDelegatorAddrBytes() { java.lang.Object ref = delegatorAddr_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); delegatorAddr_ = 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 defines an optional pagination for the request.
     * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ public boolean hasPagination() { return pagination_ != null; } /** *
     * pagination defines an optional pagination for the 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 defines an optional pagination for the 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 (!getDelegatorAddrBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddr_); } 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 (!getDelegatorAddrBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddr_); } 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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest)) { return super.equals(obj); } cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest other = (cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest) obj; boolean result = true; result = result && getDelegatorAddr() .equals(other.getDelegatorAddr()); 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) + DELEGATOR_ADDR_FIELD_NUMBER; hash = (53 * hash) + getDelegatorAddr().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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest 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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest 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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest 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(cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest 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; } /** *
     * QueryDelegatorValidatorsRequest is request type for the
     * Query/DelegatorValidators RPC method.
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest) cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest.class, cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest.Builder.class); } // Construct using cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest.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(); delegatorAddr_ = ""; if (paginationBuilder_ == null) { pagination_ = null; } else { pagination_ = null; paginationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsRequest_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest getDefaultInstanceForType() { return cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest build() { cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest buildPartial() { cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest result = new cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest(this); result.delegatorAddr_ = delegatorAddr_; 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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest) { return mergeFrom((cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest other) { if (other == cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest.getDefaultInstance()) return this; if (!other.getDelegatorAddr().isEmpty()) { delegatorAddr_ = other.delegatorAddr_; 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 { cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object delegatorAddr_ = ""; /** *
       * delegator_addr defines the delegator address to query for.
       * 
* * string delegator_addr = 1; */ public java.lang.String getDelegatorAddr() { java.lang.Object ref = delegatorAddr_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); delegatorAddr_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * delegator_addr defines the delegator address to query for.
       * 
* * string delegator_addr = 1; */ public com.google.protobuf.ByteString getDelegatorAddrBytes() { java.lang.Object ref = delegatorAddr_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); delegatorAddr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * delegator_addr defines the delegator address to query for.
       * 
* * string delegator_addr = 1; */ public Builder setDelegatorAddr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } delegatorAddr_ = value; onChanged(); return this; } /** *
       * delegator_addr defines the delegator address to query for.
       * 
* * string delegator_addr = 1; */ public Builder clearDelegatorAddr() { delegatorAddr_ = getDefaultInstance().getDelegatorAddr(); onChanged(); return this; } /** *
       * delegator_addr defines the delegator address to query for.
       * 
* * string delegator_addr = 1; */ public Builder setDelegatorAddrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); delegatorAddr_ = 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 defines an optional pagination for the request.
       * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ public boolean hasPagination() { return paginationBuilder_ != null || pagination_ != null; } /** *
       * pagination defines an optional pagination for the 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 defines an optional pagination for the 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 defines an optional pagination for the 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 defines an optional pagination for the 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 defines an optional pagination for the 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 defines an optional pagination for the request.
       * 
* * .cosmos.base.query.v1beta1.PageRequest pagination = 2; */ public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() { onChanged(); return getPaginationFieldBuilder().getBuilder(); } /** *
       * pagination defines an optional pagination for the 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 defines an optional pagination for the 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:cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest) private static final cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest(); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryDelegatorValidatorsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryDelegatorValidatorsRequest(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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryDelegatorValidatorsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse) com.google.protobuf.MessageOrBuilder { /** *
     * validators defines the the validators' info of a delegator.
     * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ java.util.List getValidatorsList(); /** *
     * validators defines the the validators' info of a delegator.
     * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ cosmos.staking.v1beta1.Staking.Validator getValidators(int index); /** *
     * validators defines the the validators' info of a delegator.
     * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ int getValidatorsCount(); /** *
     * validators defines the the validators' info of a delegator.
     * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ java.util.List getValidatorsOrBuilderList(); /** *
     * validators defines the the validators' info of a delegator.
     * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ cosmos.staking.v1beta1.Staking.ValidatorOrBuilder getValidatorsOrBuilder( int index); /** *
     * pagination defines the pagination in the response.
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ boolean hasPagination(); /** *
     * pagination defines the pagination in the response.
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ cosmos.base.query.v1beta1.Pagination.PageResponse getPagination(); /** *
     * pagination defines the pagination in the response.
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder(); } /** *
   * QueryDelegatorValidatorsResponse is response type for the
   * Query/DelegatorValidators RPC method.
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse} */ public static final class QueryDelegatorValidatorsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse) QueryDelegatorValidatorsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use QueryDelegatorValidatorsResponse.newBuilder() to construct. private QueryDelegatorValidatorsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryDelegatorValidatorsResponse() { validators_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryDelegatorValidatorsResponse( 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)) { validators_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } validators_.add( input.readMessage(cosmos.staking.v1beta1.Staking.Validator.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)) { validators_ = java.util.Collections.unmodifiableList(validators_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse.class, cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse.Builder.class); } private int bitField0_; public static final int VALIDATORS_FIELD_NUMBER = 1; private java.util.List validators_; /** *
     * validators defines the the validators' info of a delegator.
     * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getValidatorsList() { return validators_; } /** *
     * validators defines the the validators' info of a delegator.
     * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getValidatorsOrBuilderList() { return validators_; } /** *
     * validators defines the the validators' info of a delegator.
     * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public int getValidatorsCount() { return validators_.size(); } /** *
     * validators defines the the validators' info of a delegator.
     * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.Validator getValidators(int index) { return validators_.get(index); } /** *
     * validators defines the the validators' info of a delegator.
     * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.ValidatorOrBuilder getValidatorsOrBuilder( int index) { return validators_.get(index); } public static final int PAGINATION_FIELD_NUMBER = 2; private cosmos.base.query.v1beta1.Pagination.PageResponse pagination_; /** *
     * pagination defines the pagination in the response.
     * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ public boolean hasPagination() { return pagination_ != null; } /** *
     * pagination defines the pagination in the 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 defines the pagination in the 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 < validators_.size(); i++) { output.writeMessage(1, validators_.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 < validators_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, validators_.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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse)) { return super.equals(obj); } cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse other = (cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse) obj; boolean result = true; result = result && getValidatorsList() .equals(other.getValidatorsList()); 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 (getValidatorsCount() > 0) { hash = (37 * hash) + VALIDATORS_FIELD_NUMBER; hash = (53 * hash) + getValidatorsList().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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse 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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse 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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse 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(cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse 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; } /** *
     * QueryDelegatorValidatorsResponse is response type for the
     * Query/DelegatorValidators RPC method.
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse) cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse.class, cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse.Builder.class); } // Construct using cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getValidatorsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (validatorsBuilder_ == null) { validators_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { validatorsBuilder_.clear(); } if (paginationBuilder_ == null) { pagination_ = null; } else { pagination_ = null; paginationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsResponse_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse getDefaultInstanceForType() { return cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse build() { cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse buildPartial() { cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse result = new cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (validatorsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { validators_ = java.util.Collections.unmodifiableList(validators_); bitField0_ = (bitField0_ & ~0x00000001); } result.validators_ = validators_; } else { result.validators_ = validatorsBuilder_.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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse) { return mergeFrom((cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse other) { if (other == cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse.getDefaultInstance()) return this; if (validatorsBuilder_ == null) { if (!other.validators_.isEmpty()) { if (validators_.isEmpty()) { validators_ = other.validators_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureValidatorsIsMutable(); validators_.addAll(other.validators_); } onChanged(); } } else { if (!other.validators_.isEmpty()) { if (validatorsBuilder_.isEmpty()) { validatorsBuilder_.dispose(); validatorsBuilder_ = null; validators_ = other.validators_; bitField0_ = (bitField0_ & ~0x00000001); validatorsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getValidatorsFieldBuilder() : null; } else { validatorsBuilder_.addAllMessages(other.validators_); } } } 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 { cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List validators_ = java.util.Collections.emptyList(); private void ensureValidatorsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { validators_ = new java.util.ArrayList(validators_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< cosmos.staking.v1beta1.Staking.Validator, cosmos.staking.v1beta1.Staking.Validator.Builder, cosmos.staking.v1beta1.Staking.ValidatorOrBuilder> validatorsBuilder_; /** *
       * validators defines the the validators' info of a delegator.
       * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getValidatorsList() { if (validatorsBuilder_ == null) { return java.util.Collections.unmodifiableList(validators_); } else { return validatorsBuilder_.getMessageList(); } } /** *
       * validators defines the the validators' info of a delegator.
       * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public int getValidatorsCount() { if (validatorsBuilder_ == null) { return validators_.size(); } else { return validatorsBuilder_.getCount(); } } /** *
       * validators defines the the validators' info of a delegator.
       * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.Validator getValidators(int index) { if (validatorsBuilder_ == null) { return validators_.get(index); } else { return validatorsBuilder_.getMessage(index); } } /** *
       * validators defines the the validators' info of a delegator.
       * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public Builder setValidators( int index, cosmos.staking.v1beta1.Staking.Validator value) { if (validatorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValidatorsIsMutable(); validators_.set(index, value); onChanged(); } else { validatorsBuilder_.setMessage(index, value); } return this; } /** *
       * validators defines the the validators' info of a delegator.
       * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public Builder setValidators( int index, cosmos.staking.v1beta1.Staking.Validator.Builder builderForValue) { if (validatorsBuilder_ == null) { ensureValidatorsIsMutable(); validators_.set(index, builderForValue.build()); onChanged(); } else { validatorsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * validators defines the the validators' info of a delegator.
       * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public Builder addValidators(cosmos.staking.v1beta1.Staking.Validator value) { if (validatorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValidatorsIsMutable(); validators_.add(value); onChanged(); } else { validatorsBuilder_.addMessage(value); } return this; } /** *
       * validators defines the the validators' info of a delegator.
       * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public Builder addValidators( int index, cosmos.staking.v1beta1.Staking.Validator value) { if (validatorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValidatorsIsMutable(); validators_.add(index, value); onChanged(); } else { validatorsBuilder_.addMessage(index, value); } return this; } /** *
       * validators defines the the validators' info of a delegator.
       * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public Builder addValidators( cosmos.staking.v1beta1.Staking.Validator.Builder builderForValue) { if (validatorsBuilder_ == null) { ensureValidatorsIsMutable(); validators_.add(builderForValue.build()); onChanged(); } else { validatorsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * validators defines the the validators' info of a delegator.
       * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public Builder addValidators( int index, cosmos.staking.v1beta1.Staking.Validator.Builder builderForValue) { if (validatorsBuilder_ == null) { ensureValidatorsIsMutable(); validators_.add(index, builderForValue.build()); onChanged(); } else { validatorsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * validators defines the the validators' info of a delegator.
       * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public Builder addAllValidators( java.lang.Iterable values) { if (validatorsBuilder_ == null) { ensureValidatorsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, validators_); onChanged(); } else { validatorsBuilder_.addAllMessages(values); } return this; } /** *
       * validators defines the the validators' info of a delegator.
       * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public Builder clearValidators() { if (validatorsBuilder_ == null) { validators_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { validatorsBuilder_.clear(); } return this; } /** *
       * validators defines the the validators' info of a delegator.
       * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public Builder removeValidators(int index) { if (validatorsBuilder_ == null) { ensureValidatorsIsMutable(); validators_.remove(index); onChanged(); } else { validatorsBuilder_.remove(index); } return this; } /** *
       * validators defines the the validators' info of a delegator.
       * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.Validator.Builder getValidatorsBuilder( int index) { return getValidatorsFieldBuilder().getBuilder(index); } /** *
       * validators defines the the validators' info of a delegator.
       * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.ValidatorOrBuilder getValidatorsOrBuilder( int index) { if (validatorsBuilder_ == null) { return validators_.get(index); } else { return validatorsBuilder_.getMessageOrBuilder(index); } } /** *
       * validators defines the the validators' info of a delegator.
       * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getValidatorsOrBuilderList() { if (validatorsBuilder_ != null) { return validatorsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(validators_); } } /** *
       * validators defines the the validators' info of a delegator.
       * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.Validator.Builder addValidatorsBuilder() { return getValidatorsFieldBuilder().addBuilder( cosmos.staking.v1beta1.Staking.Validator.getDefaultInstance()); } /** *
       * validators defines the the validators' info of a delegator.
       * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.Validator.Builder addValidatorsBuilder( int index) { return getValidatorsFieldBuilder().addBuilder( index, cosmos.staking.v1beta1.Staking.Validator.getDefaultInstance()); } /** *
       * validators defines the the validators' info of a delegator.
       * 
* * repeated .cosmos.staking.v1beta1.Validator validators = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getValidatorsBuilderList() { return getValidatorsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< cosmos.staking.v1beta1.Staking.Validator, cosmos.staking.v1beta1.Staking.Validator.Builder, cosmos.staking.v1beta1.Staking.ValidatorOrBuilder> getValidatorsFieldBuilder() { if (validatorsBuilder_ == null) { validatorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< cosmos.staking.v1beta1.Staking.Validator, cosmos.staking.v1beta1.Staking.Validator.Builder, cosmos.staking.v1beta1.Staking.ValidatorOrBuilder>( validators_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); validators_ = null; } return validatorsBuilder_; } 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 defines the pagination in the response.
       * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ public boolean hasPagination() { return paginationBuilder_ != null || pagination_ != null; } /** *
       * pagination defines the pagination in the 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 defines the pagination in the 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 defines the pagination in the 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 defines the pagination in the 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 defines the pagination in the 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 defines the pagination in the response.
       * 
* * .cosmos.base.query.v1beta1.PageResponse pagination = 2; */ public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() { onChanged(); return getPaginationFieldBuilder().getBuilder(); } /** *
       * pagination defines the pagination in the 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 defines the pagination in the 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:cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse) private static final cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse(); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryDelegatorValidatorsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryDelegatorValidatorsResponse(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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryDelegatorValidatorRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryDelegatorValidatorRequest) com.google.protobuf.MessageOrBuilder { /** *
     * delegator_addr defines the delegator address to query for.
     * 
* * string delegator_addr = 1; */ java.lang.String getDelegatorAddr(); /** *
     * delegator_addr defines the delegator address to query for.
     * 
* * string delegator_addr = 1; */ com.google.protobuf.ByteString getDelegatorAddrBytes(); /** *
     * validator_addr defines the validator address to query for.
     * 
* * string validator_addr = 2; */ java.lang.String getValidatorAddr(); /** *
     * validator_addr defines the validator address to query for.
     * 
* * string validator_addr = 2; */ com.google.protobuf.ByteString getValidatorAddrBytes(); } /** *
   * QueryDelegatorValidatorRequest is request type for the
   * Query/DelegatorValidator RPC method.
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegatorValidatorRequest} */ public static final class QueryDelegatorValidatorRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryDelegatorValidatorRequest) QueryDelegatorValidatorRequestOrBuilder { private static final long serialVersionUID = 0L; // Use QueryDelegatorValidatorRequest.newBuilder() to construct. private QueryDelegatorValidatorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryDelegatorValidatorRequest() { delegatorAddr_ = ""; validatorAddr_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryDelegatorValidatorRequest( 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(); delegatorAddr_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); validatorAddr_ = 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 cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest.class, cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest.Builder.class); } public static final int DELEGATOR_ADDR_FIELD_NUMBER = 1; private volatile java.lang.Object delegatorAddr_; /** *
     * delegator_addr defines the delegator address to query for.
     * 
* * string delegator_addr = 1; */ public java.lang.String getDelegatorAddr() { java.lang.Object ref = delegatorAddr_; 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(); delegatorAddr_ = s; return s; } } /** *
     * delegator_addr defines the delegator address to query for.
     * 
* * string delegator_addr = 1; */ public com.google.protobuf.ByteString getDelegatorAddrBytes() { java.lang.Object ref = delegatorAddr_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); delegatorAddr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALIDATOR_ADDR_FIELD_NUMBER = 2; private volatile java.lang.Object validatorAddr_; /** *
     * validator_addr defines the validator address to query for.
     * 
* * string validator_addr = 2; */ public java.lang.String getValidatorAddr() { java.lang.Object ref = validatorAddr_; 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(); validatorAddr_ = s; return s; } } /** *
     * validator_addr defines the validator address to query for.
     * 
* * string validator_addr = 2; */ public com.google.protobuf.ByteString getValidatorAddrBytes() { java.lang.Object ref = validatorAddr_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validatorAddr_ = 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 (!getDelegatorAddrBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddr_); } if (!getValidatorAddrBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, validatorAddr_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getDelegatorAddrBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddr_); } if (!getValidatorAddrBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, validatorAddr_); } 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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest)) { return super.equals(obj); } cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest other = (cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest) obj; boolean result = true; result = result && getDelegatorAddr() .equals(other.getDelegatorAddr()); result = result && getValidatorAddr() .equals(other.getValidatorAddr()); 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) + DELEGATOR_ADDR_FIELD_NUMBER; hash = (53 * hash) + getDelegatorAddr().hashCode(); hash = (37 * hash) + VALIDATOR_ADDR_FIELD_NUMBER; hash = (53 * hash) + getValidatorAddr().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest 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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest 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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest 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(cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest 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; } /** *
     * QueryDelegatorValidatorRequest is request type for the
     * Query/DelegatorValidator RPC method.
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegatorValidatorRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryDelegatorValidatorRequest) cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest.class, cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest.Builder.class); } // Construct using cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest.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(); delegatorAddr_ = ""; validatorAddr_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorRequest_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest getDefaultInstanceForType() { return cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest build() { cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest buildPartial() { cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest result = new cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest(this); result.delegatorAddr_ = delegatorAddr_; result.validatorAddr_ = validatorAddr_; 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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest) { return mergeFrom((cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest other) { if (other == cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest.getDefaultInstance()) return this; if (!other.getDelegatorAddr().isEmpty()) { delegatorAddr_ = other.delegatorAddr_; onChanged(); } if (!other.getValidatorAddr().isEmpty()) { validatorAddr_ = other.validatorAddr_; 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 { cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object delegatorAddr_ = ""; /** *
       * delegator_addr defines the delegator address to query for.
       * 
* * string delegator_addr = 1; */ public java.lang.String getDelegatorAddr() { java.lang.Object ref = delegatorAddr_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); delegatorAddr_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * delegator_addr defines the delegator address to query for.
       * 
* * string delegator_addr = 1; */ public com.google.protobuf.ByteString getDelegatorAddrBytes() { java.lang.Object ref = delegatorAddr_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); delegatorAddr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * delegator_addr defines the delegator address to query for.
       * 
* * string delegator_addr = 1; */ public Builder setDelegatorAddr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } delegatorAddr_ = value; onChanged(); return this; } /** *
       * delegator_addr defines the delegator address to query for.
       * 
* * string delegator_addr = 1; */ public Builder clearDelegatorAddr() { delegatorAddr_ = getDefaultInstance().getDelegatorAddr(); onChanged(); return this; } /** *
       * delegator_addr defines the delegator address to query for.
       * 
* * string delegator_addr = 1; */ public Builder setDelegatorAddrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); delegatorAddr_ = value; onChanged(); return this; } private java.lang.Object validatorAddr_ = ""; /** *
       * validator_addr defines the validator address to query for.
       * 
* * string validator_addr = 2; */ public java.lang.String getValidatorAddr() { java.lang.Object ref = validatorAddr_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); validatorAddr_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * validator_addr defines the validator address to query for.
       * 
* * string validator_addr = 2; */ public com.google.protobuf.ByteString getValidatorAddrBytes() { java.lang.Object ref = validatorAddr_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validatorAddr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * validator_addr defines the validator address to query for.
       * 
* * string validator_addr = 2; */ public Builder setValidatorAddr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } validatorAddr_ = value; onChanged(); return this; } /** *
       * validator_addr defines the validator address to query for.
       * 
* * string validator_addr = 2; */ public Builder clearValidatorAddr() { validatorAddr_ = getDefaultInstance().getValidatorAddr(); onChanged(); return this; } /** *
       * validator_addr defines the validator address to query for.
       * 
* * string validator_addr = 2; */ public Builder setValidatorAddrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); validatorAddr_ = 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:cosmos.staking.v1beta1.QueryDelegatorValidatorRequest) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryDelegatorValidatorRequest) private static final cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest(); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryDelegatorValidatorRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryDelegatorValidatorRequest(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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryDelegatorValidatorResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryDelegatorValidatorResponse) com.google.protobuf.MessageOrBuilder { /** *
     * validator defines the the validator info.
     * 
* * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; */ boolean hasValidator(); /** *
     * validator defines the the validator info.
     * 
* * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; */ cosmos.staking.v1beta1.Staking.Validator getValidator(); /** *
     * validator defines the the validator info.
     * 
* * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; */ cosmos.staking.v1beta1.Staking.ValidatorOrBuilder getValidatorOrBuilder(); } /** *
   * QueryDelegatorValidatorResponse response type for the
   * Query/DelegatorValidator RPC method.
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegatorValidatorResponse} */ public static final class QueryDelegatorValidatorResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryDelegatorValidatorResponse) QueryDelegatorValidatorResponseOrBuilder { private static final long serialVersionUID = 0L; // Use QueryDelegatorValidatorResponse.newBuilder() to construct. private QueryDelegatorValidatorResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryDelegatorValidatorResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryDelegatorValidatorResponse( 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.staking.v1beta1.Staking.Validator.Builder subBuilder = null; if (validator_ != null) { subBuilder = validator_.toBuilder(); } validator_ = input.readMessage(cosmos.staking.v1beta1.Staking.Validator.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(validator_); validator_ = 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 cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse.class, cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse.Builder.class); } public static final int VALIDATOR_FIELD_NUMBER = 1; private cosmos.staking.v1beta1.Staking.Validator validator_; /** *
     * validator defines the the validator info.
     * 
* * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; */ public boolean hasValidator() { return validator_ != null; } /** *
     * validator defines the the validator info.
     * 
* * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.Validator getValidator() { return validator_ == null ? cosmos.staking.v1beta1.Staking.Validator.getDefaultInstance() : validator_; } /** *
     * validator defines the the validator info.
     * 
* * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.ValidatorOrBuilder getValidatorOrBuilder() { return getValidator(); } 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 (validator_ != null) { output.writeMessage(1, getValidator()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (validator_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getValidator()); } 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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse)) { return super.equals(obj); } cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse other = (cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse) obj; boolean result = true; result = result && (hasValidator() == other.hasValidator()); if (hasValidator()) { result = result && getValidator() .equals(other.getValidator()); } 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 (hasValidator()) { hash = (37 * hash) + VALIDATOR_FIELD_NUMBER; hash = (53 * hash) + getValidator().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse 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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse 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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse 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(cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse 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; } /** *
     * QueryDelegatorValidatorResponse response type for the
     * Query/DelegatorValidator RPC method.
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryDelegatorValidatorResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryDelegatorValidatorResponse) cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse.class, cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse.Builder.class); } // Construct using cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse.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 (validatorBuilder_ == null) { validator_ = null; } else { validator_ = null; validatorBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorResponse_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse getDefaultInstanceForType() { return cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse build() { cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse buildPartial() { cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse result = new cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse(this); if (validatorBuilder_ == null) { result.validator_ = validator_; } else { result.validator_ = validatorBuilder_.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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse) { return mergeFrom((cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse other) { if (other == cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse.getDefaultInstance()) return this; if (other.hasValidator()) { mergeValidator(other.getValidator()); } 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 { cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private cosmos.staking.v1beta1.Staking.Validator validator_ = null; private com.google.protobuf.SingleFieldBuilderV3< cosmos.staking.v1beta1.Staking.Validator, cosmos.staking.v1beta1.Staking.Validator.Builder, cosmos.staking.v1beta1.Staking.ValidatorOrBuilder> validatorBuilder_; /** *
       * validator defines the the validator info.
       * 
* * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; */ public boolean hasValidator() { return validatorBuilder_ != null || validator_ != null; } /** *
       * validator defines the the validator info.
       * 
* * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.Validator getValidator() { if (validatorBuilder_ == null) { return validator_ == null ? cosmos.staking.v1beta1.Staking.Validator.getDefaultInstance() : validator_; } else { return validatorBuilder_.getMessage(); } } /** *
       * validator defines the the validator info.
       * 
* * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; */ public Builder setValidator(cosmos.staking.v1beta1.Staking.Validator value) { if (validatorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } validator_ = value; onChanged(); } else { validatorBuilder_.setMessage(value); } return this; } /** *
       * validator defines the the validator info.
       * 
* * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; */ public Builder setValidator( cosmos.staking.v1beta1.Staking.Validator.Builder builderForValue) { if (validatorBuilder_ == null) { validator_ = builderForValue.build(); onChanged(); } else { validatorBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * validator defines the the validator info.
       * 
* * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; */ public Builder mergeValidator(cosmos.staking.v1beta1.Staking.Validator value) { if (validatorBuilder_ == null) { if (validator_ != null) { validator_ = cosmos.staking.v1beta1.Staking.Validator.newBuilder(validator_).mergeFrom(value).buildPartial(); } else { validator_ = value; } onChanged(); } else { validatorBuilder_.mergeFrom(value); } return this; } /** *
       * validator defines the the validator info.
       * 
* * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; */ public Builder clearValidator() { if (validatorBuilder_ == null) { validator_ = null; onChanged(); } else { validator_ = null; validatorBuilder_ = null; } return this; } /** *
       * validator defines the the validator info.
       * 
* * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.Validator.Builder getValidatorBuilder() { onChanged(); return getValidatorFieldBuilder().getBuilder(); } /** *
       * validator defines the the validator info.
       * 
* * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.ValidatorOrBuilder getValidatorOrBuilder() { if (validatorBuilder_ != null) { return validatorBuilder_.getMessageOrBuilder(); } else { return validator_ == null ? cosmos.staking.v1beta1.Staking.Validator.getDefaultInstance() : validator_; } } /** *
       * validator defines the the validator info.
       * 
* * .cosmos.staking.v1beta1.Validator validator = 1 [(.gogoproto.nullable) = false]; */ private com.google.protobuf.SingleFieldBuilderV3< cosmos.staking.v1beta1.Staking.Validator, cosmos.staking.v1beta1.Staking.Validator.Builder, cosmos.staking.v1beta1.Staking.ValidatorOrBuilder> getValidatorFieldBuilder() { if (validatorBuilder_ == null) { validatorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cosmos.staking.v1beta1.Staking.Validator, cosmos.staking.v1beta1.Staking.Validator.Builder, cosmos.staking.v1beta1.Staking.ValidatorOrBuilder>( getValidator(), getParentForChildren(), isClean()); validator_ = null; } return validatorBuilder_; } @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:cosmos.staking.v1beta1.QueryDelegatorValidatorResponse) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryDelegatorValidatorResponse) private static final cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse(); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryDelegatorValidatorResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryDelegatorValidatorResponse(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 cosmos.staking.v1beta1.QueryOuterClass.QueryDelegatorValidatorResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryHistoricalInfoRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryHistoricalInfoRequest) com.google.protobuf.MessageOrBuilder { /** *
     * height defines at which height to query the historical info.
     * 
* * int64 height = 1; */ long getHeight(); } /** *
   * QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC
   * method.
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryHistoricalInfoRequest} */ public static final class QueryHistoricalInfoRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryHistoricalInfoRequest) QueryHistoricalInfoRequestOrBuilder { private static final long serialVersionUID = 0L; // Use QueryHistoricalInfoRequest.newBuilder() to construct. private QueryHistoricalInfoRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryHistoricalInfoRequest() { height_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryHistoricalInfoRequest( 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 8: { height_ = input.readInt64(); 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 cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest.class, cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest.Builder.class); } public static final int HEIGHT_FIELD_NUMBER = 1; private long height_; /** *
     * height defines at which height to query the historical info.
     * 
* * int64 height = 1; */ public long getHeight() { return height_; } 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 (height_ != 0L) { output.writeInt64(1, height_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (height_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, height_); } 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 cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest)) { return super.equals(obj); } cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest other = (cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest) obj; boolean result = true; result = result && (getHeight() == other.getHeight()); 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) + HEIGHT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getHeight()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest 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 cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest 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 cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest 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(cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest 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; } /** *
     * QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC
     * method.
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryHistoricalInfoRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryHistoricalInfoRequest) cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest.class, cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest.Builder.class); } // Construct using cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest.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(); height_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoRequest_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest getDefaultInstanceForType() { return cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest build() { cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest buildPartial() { cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest result = new cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest(this); result.height_ = height_; 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 cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest) { return mergeFrom((cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest other) { if (other == cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest.getDefaultInstance()) return this; if (other.getHeight() != 0L) { setHeight(other.getHeight()); } 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 { cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long height_ ; /** *
       * height defines at which height to query the historical info.
       * 
* * int64 height = 1; */ public long getHeight() { return height_; } /** *
       * height defines at which height to query the historical info.
       * 
* * int64 height = 1; */ public Builder setHeight(long value) { height_ = value; onChanged(); return this; } /** *
       * height defines at which height to query the historical info.
       * 
* * int64 height = 1; */ public Builder clearHeight() { height_ = 0L; 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:cosmos.staking.v1beta1.QueryHistoricalInfoRequest) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryHistoricalInfoRequest) private static final cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest(); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryHistoricalInfoRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryHistoricalInfoRequest(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 cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryHistoricalInfoResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryHistoricalInfoResponse) com.google.protobuf.MessageOrBuilder { /** *
     * hist defines the historical info at the given height.
     * 
* * .cosmos.staking.v1beta1.HistoricalInfo hist = 1; */ boolean hasHist(); /** *
     * hist defines the historical info at the given height.
     * 
* * .cosmos.staking.v1beta1.HistoricalInfo hist = 1; */ cosmos.staking.v1beta1.Staking.HistoricalInfo getHist(); /** *
     * hist defines the historical info at the given height.
     * 
* * .cosmos.staking.v1beta1.HistoricalInfo hist = 1; */ cosmos.staking.v1beta1.Staking.HistoricalInfoOrBuilder getHistOrBuilder(); } /** *
   * QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC
   * method.
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryHistoricalInfoResponse} */ public static final class QueryHistoricalInfoResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryHistoricalInfoResponse) QueryHistoricalInfoResponseOrBuilder { private static final long serialVersionUID = 0L; // Use QueryHistoricalInfoResponse.newBuilder() to construct. private QueryHistoricalInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryHistoricalInfoResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryHistoricalInfoResponse( 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.staking.v1beta1.Staking.HistoricalInfo.Builder subBuilder = null; if (hist_ != null) { subBuilder = hist_.toBuilder(); } hist_ = input.readMessage(cosmos.staking.v1beta1.Staking.HistoricalInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(hist_); hist_ = 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 cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse.class, cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse.Builder.class); } public static final int HIST_FIELD_NUMBER = 1; private cosmos.staking.v1beta1.Staking.HistoricalInfo hist_; /** *
     * hist defines the historical info at the given height.
     * 
* * .cosmos.staking.v1beta1.HistoricalInfo hist = 1; */ public boolean hasHist() { return hist_ != null; } /** *
     * hist defines the historical info at the given height.
     * 
* * .cosmos.staking.v1beta1.HistoricalInfo hist = 1; */ public cosmos.staking.v1beta1.Staking.HistoricalInfo getHist() { return hist_ == null ? cosmos.staking.v1beta1.Staking.HistoricalInfo.getDefaultInstance() : hist_; } /** *
     * hist defines the historical info at the given height.
     * 
* * .cosmos.staking.v1beta1.HistoricalInfo hist = 1; */ public cosmos.staking.v1beta1.Staking.HistoricalInfoOrBuilder getHistOrBuilder() { return getHist(); } 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 (hist_ != null) { output.writeMessage(1, getHist()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (hist_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHist()); } 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 cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse)) { return super.equals(obj); } cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse other = (cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse) obj; boolean result = true; result = result && (hasHist() == other.hasHist()); if (hasHist()) { result = result && getHist() .equals(other.getHist()); } 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 (hasHist()) { hash = (37 * hash) + HIST_FIELD_NUMBER; hash = (53 * hash) + getHist().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse 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 cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse 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 cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse 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(cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse 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; } /** *
     * QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC
     * method.
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryHistoricalInfoResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryHistoricalInfoResponse) cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse.class, cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse.Builder.class); } // Construct using cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse.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 (histBuilder_ == null) { hist_ = null; } else { hist_ = null; histBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoResponse_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse getDefaultInstanceForType() { return cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse build() { cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse buildPartial() { cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse result = new cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse(this); if (histBuilder_ == null) { result.hist_ = hist_; } else { result.hist_ = histBuilder_.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 cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse) { return mergeFrom((cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse other) { if (other == cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse.getDefaultInstance()) return this; if (other.hasHist()) { mergeHist(other.getHist()); } 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 { cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private cosmos.staking.v1beta1.Staking.HistoricalInfo hist_ = null; private com.google.protobuf.SingleFieldBuilderV3< cosmos.staking.v1beta1.Staking.HistoricalInfo, cosmos.staking.v1beta1.Staking.HistoricalInfo.Builder, cosmos.staking.v1beta1.Staking.HistoricalInfoOrBuilder> histBuilder_; /** *
       * hist defines the historical info at the given height.
       * 
* * .cosmos.staking.v1beta1.HistoricalInfo hist = 1; */ public boolean hasHist() { return histBuilder_ != null || hist_ != null; } /** *
       * hist defines the historical info at the given height.
       * 
* * .cosmos.staking.v1beta1.HistoricalInfo hist = 1; */ public cosmos.staking.v1beta1.Staking.HistoricalInfo getHist() { if (histBuilder_ == null) { return hist_ == null ? cosmos.staking.v1beta1.Staking.HistoricalInfo.getDefaultInstance() : hist_; } else { return histBuilder_.getMessage(); } } /** *
       * hist defines the historical info at the given height.
       * 
* * .cosmos.staking.v1beta1.HistoricalInfo hist = 1; */ public Builder setHist(cosmos.staking.v1beta1.Staking.HistoricalInfo value) { if (histBuilder_ == null) { if (value == null) { throw new NullPointerException(); } hist_ = value; onChanged(); } else { histBuilder_.setMessage(value); } return this; } /** *
       * hist defines the historical info at the given height.
       * 
* * .cosmos.staking.v1beta1.HistoricalInfo hist = 1; */ public Builder setHist( cosmos.staking.v1beta1.Staking.HistoricalInfo.Builder builderForValue) { if (histBuilder_ == null) { hist_ = builderForValue.build(); onChanged(); } else { histBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * hist defines the historical info at the given height.
       * 
* * .cosmos.staking.v1beta1.HistoricalInfo hist = 1; */ public Builder mergeHist(cosmos.staking.v1beta1.Staking.HistoricalInfo value) { if (histBuilder_ == null) { if (hist_ != null) { hist_ = cosmos.staking.v1beta1.Staking.HistoricalInfo.newBuilder(hist_).mergeFrom(value).buildPartial(); } else { hist_ = value; } onChanged(); } else { histBuilder_.mergeFrom(value); } return this; } /** *
       * hist defines the historical info at the given height.
       * 
* * .cosmos.staking.v1beta1.HistoricalInfo hist = 1; */ public Builder clearHist() { if (histBuilder_ == null) { hist_ = null; onChanged(); } else { hist_ = null; histBuilder_ = null; } return this; } /** *
       * hist defines the historical info at the given height.
       * 
* * .cosmos.staking.v1beta1.HistoricalInfo hist = 1; */ public cosmos.staking.v1beta1.Staking.HistoricalInfo.Builder getHistBuilder() { onChanged(); return getHistFieldBuilder().getBuilder(); } /** *
       * hist defines the historical info at the given height.
       * 
* * .cosmos.staking.v1beta1.HistoricalInfo hist = 1; */ public cosmos.staking.v1beta1.Staking.HistoricalInfoOrBuilder getHistOrBuilder() { if (histBuilder_ != null) { return histBuilder_.getMessageOrBuilder(); } else { return hist_ == null ? cosmos.staking.v1beta1.Staking.HistoricalInfo.getDefaultInstance() : hist_; } } /** *
       * hist defines the historical info at the given height.
       * 
* * .cosmos.staking.v1beta1.HistoricalInfo hist = 1; */ private com.google.protobuf.SingleFieldBuilderV3< cosmos.staking.v1beta1.Staking.HistoricalInfo, cosmos.staking.v1beta1.Staking.HistoricalInfo.Builder, cosmos.staking.v1beta1.Staking.HistoricalInfoOrBuilder> getHistFieldBuilder() { if (histBuilder_ == null) { histBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cosmos.staking.v1beta1.Staking.HistoricalInfo, cosmos.staking.v1beta1.Staking.HistoricalInfo.Builder, cosmos.staking.v1beta1.Staking.HistoricalInfoOrBuilder>( getHist(), getParentForChildren(), isClean()); hist_ = null; } return histBuilder_; } @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:cosmos.staking.v1beta1.QueryHistoricalInfoResponse) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryHistoricalInfoResponse) private static final cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse(); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryHistoricalInfoResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryHistoricalInfoResponse(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 cosmos.staking.v1beta1.QueryOuterClass.QueryHistoricalInfoResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryPoolRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryPoolRequest) com.google.protobuf.MessageOrBuilder { } /** *
   * QueryPoolRequest is request type for the Query/Pool RPC method.
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryPoolRequest} */ public static final class QueryPoolRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryPoolRequest) QueryPoolRequestOrBuilder { private static final long serialVersionUID = 0L; // Use QueryPoolRequest.newBuilder() to construct. private QueryPoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryPoolRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryPoolRequest( 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 cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryPoolRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryPoolRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest.class, cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest.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 cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest)) { return super.equals(obj); } cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest other = (cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest) 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 cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest 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 cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest 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 cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest 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(cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest 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; } /** *
     * QueryPoolRequest is request type for the Query/Pool RPC method.
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryPoolRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryPoolRequest) cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryPoolRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryPoolRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest.class, cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest.Builder.class); } // Construct using cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest.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 cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryPoolRequest_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest getDefaultInstanceForType() { return cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest build() { cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest buildPartial() { cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest result = new cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest(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 cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest) { return mergeFrom((cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest other) { if (other == cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest.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 { cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest) 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:cosmos.staking.v1beta1.QueryPoolRequest) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryPoolRequest) private static final cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest(); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryPoolRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryPoolRequest(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 cosmos.staking.v1beta1.QueryOuterClass.QueryPoolRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryPoolResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryPoolResponse) com.google.protobuf.MessageOrBuilder { /** *
     * pool defines the pool info.
     * 
* * .cosmos.staking.v1beta1.Pool pool = 1 [(.gogoproto.nullable) = false]; */ boolean hasPool(); /** *
     * pool defines the pool info.
     * 
* * .cosmos.staking.v1beta1.Pool pool = 1 [(.gogoproto.nullable) = false]; */ cosmos.staking.v1beta1.Staking.Pool getPool(); /** *
     * pool defines the pool info.
     * 
* * .cosmos.staking.v1beta1.Pool pool = 1 [(.gogoproto.nullable) = false]; */ cosmos.staking.v1beta1.Staking.PoolOrBuilder getPoolOrBuilder(); } /** *
   * QueryPoolResponse is response type for the Query/Pool RPC method.
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryPoolResponse} */ public static final class QueryPoolResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryPoolResponse) QueryPoolResponseOrBuilder { private static final long serialVersionUID = 0L; // Use QueryPoolResponse.newBuilder() to construct. private QueryPoolResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryPoolResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryPoolResponse( 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.staking.v1beta1.Staking.Pool.Builder subBuilder = null; if (pool_ != null) { subBuilder = pool_.toBuilder(); } pool_ = input.readMessage(cosmos.staking.v1beta1.Staking.Pool.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(pool_); pool_ = 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 cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryPoolResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryPoolResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse.class, cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse.Builder.class); } public static final int POOL_FIELD_NUMBER = 1; private cosmos.staking.v1beta1.Staking.Pool pool_; /** *
     * pool defines the pool info.
     * 
* * .cosmos.staking.v1beta1.Pool pool = 1 [(.gogoproto.nullable) = false]; */ public boolean hasPool() { return pool_ != null; } /** *
     * pool defines the pool info.
     * 
* * .cosmos.staking.v1beta1.Pool pool = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.Pool getPool() { return pool_ == null ? cosmos.staking.v1beta1.Staking.Pool.getDefaultInstance() : pool_; } /** *
     * pool defines the pool info.
     * 
* * .cosmos.staking.v1beta1.Pool pool = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.PoolOrBuilder getPoolOrBuilder() { return getPool(); } 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 (pool_ != null) { output.writeMessage(1, getPool()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (pool_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getPool()); } 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 cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse)) { return super.equals(obj); } cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse other = (cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse) obj; boolean result = true; result = result && (hasPool() == other.hasPool()); if (hasPool()) { result = result && getPool() .equals(other.getPool()); } 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 (hasPool()) { hash = (37 * hash) + POOL_FIELD_NUMBER; hash = (53 * hash) + getPool().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse 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 cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse 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 cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse 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(cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse 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; } /** *
     * QueryPoolResponse is response type for the Query/Pool RPC method.
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryPoolResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryPoolResponse) cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryPoolResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryPoolResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse.class, cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse.Builder.class); } // Construct using cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse.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 (poolBuilder_ == null) { pool_ = null; } else { pool_ = null; poolBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryPoolResponse_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse getDefaultInstanceForType() { return cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse build() { cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse buildPartial() { cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse result = new cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse(this); if (poolBuilder_ == null) { result.pool_ = pool_; } else { result.pool_ = poolBuilder_.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 cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse) { return mergeFrom((cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse other) { if (other == cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse.getDefaultInstance()) return this; if (other.hasPool()) { mergePool(other.getPool()); } 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 { cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private cosmos.staking.v1beta1.Staking.Pool pool_ = null; private com.google.protobuf.SingleFieldBuilderV3< cosmos.staking.v1beta1.Staking.Pool, cosmos.staking.v1beta1.Staking.Pool.Builder, cosmos.staking.v1beta1.Staking.PoolOrBuilder> poolBuilder_; /** *
       * pool defines the pool info.
       * 
* * .cosmos.staking.v1beta1.Pool pool = 1 [(.gogoproto.nullable) = false]; */ public boolean hasPool() { return poolBuilder_ != null || pool_ != null; } /** *
       * pool defines the pool info.
       * 
* * .cosmos.staking.v1beta1.Pool pool = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.Pool getPool() { if (poolBuilder_ == null) { return pool_ == null ? cosmos.staking.v1beta1.Staking.Pool.getDefaultInstance() : pool_; } else { return poolBuilder_.getMessage(); } } /** *
       * pool defines the pool info.
       * 
* * .cosmos.staking.v1beta1.Pool pool = 1 [(.gogoproto.nullable) = false]; */ public Builder setPool(cosmos.staking.v1beta1.Staking.Pool value) { if (poolBuilder_ == null) { if (value == null) { throw new NullPointerException(); } pool_ = value; onChanged(); } else { poolBuilder_.setMessage(value); } return this; } /** *
       * pool defines the pool info.
       * 
* * .cosmos.staking.v1beta1.Pool pool = 1 [(.gogoproto.nullable) = false]; */ public Builder setPool( cosmos.staking.v1beta1.Staking.Pool.Builder builderForValue) { if (poolBuilder_ == null) { pool_ = builderForValue.build(); onChanged(); } else { poolBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * pool defines the pool info.
       * 
* * .cosmos.staking.v1beta1.Pool pool = 1 [(.gogoproto.nullable) = false]; */ public Builder mergePool(cosmos.staking.v1beta1.Staking.Pool value) { if (poolBuilder_ == null) { if (pool_ != null) { pool_ = cosmos.staking.v1beta1.Staking.Pool.newBuilder(pool_).mergeFrom(value).buildPartial(); } else { pool_ = value; } onChanged(); } else { poolBuilder_.mergeFrom(value); } return this; } /** *
       * pool defines the pool info.
       * 
* * .cosmos.staking.v1beta1.Pool pool = 1 [(.gogoproto.nullable) = false]; */ public Builder clearPool() { if (poolBuilder_ == null) { pool_ = null; onChanged(); } else { pool_ = null; poolBuilder_ = null; } return this; } /** *
       * pool defines the pool info.
       * 
* * .cosmos.staking.v1beta1.Pool pool = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.Pool.Builder getPoolBuilder() { onChanged(); return getPoolFieldBuilder().getBuilder(); } /** *
       * pool defines the pool info.
       * 
* * .cosmos.staking.v1beta1.Pool pool = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.PoolOrBuilder getPoolOrBuilder() { if (poolBuilder_ != null) { return poolBuilder_.getMessageOrBuilder(); } else { return pool_ == null ? cosmos.staking.v1beta1.Staking.Pool.getDefaultInstance() : pool_; } } /** *
       * pool defines the pool info.
       * 
* * .cosmos.staking.v1beta1.Pool pool = 1 [(.gogoproto.nullable) = false]; */ private com.google.protobuf.SingleFieldBuilderV3< cosmos.staking.v1beta1.Staking.Pool, cosmos.staking.v1beta1.Staking.Pool.Builder, cosmos.staking.v1beta1.Staking.PoolOrBuilder> getPoolFieldBuilder() { if (poolBuilder_ == null) { poolBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cosmos.staking.v1beta1.Staking.Pool, cosmos.staking.v1beta1.Staking.Pool.Builder, cosmos.staking.v1beta1.Staking.PoolOrBuilder>( getPool(), getParentForChildren(), isClean()); pool_ = null; } return poolBuilder_; } @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:cosmos.staking.v1beta1.QueryPoolResponse) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryPoolResponse) private static final cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse(); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryPoolResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryPoolResponse(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 cosmos.staking.v1beta1.QueryOuterClass.QueryPoolResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryParamsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryParamsRequest) com.google.protobuf.MessageOrBuilder { } /** *
   * QueryParamsRequest is request type for the Query/Params RPC method.
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryParamsRequest} */ public static final class QueryParamsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryParamsRequest) QueryParamsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use QueryParamsRequest.newBuilder() to construct. private QueryParamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryParamsRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryParamsRequest( 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 cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryParamsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryParamsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest.class, cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest.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 cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest)) { return super.equals(obj); } cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest other = (cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest) 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 cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest 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 cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest 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 cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest 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(cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest 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; } /** *
     * QueryParamsRequest is request type for the Query/Params RPC method.
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryParamsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryParamsRequest) cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryParamsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryParamsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest.class, cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest.Builder.class); } // Construct using cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest.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 cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryParamsRequest_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest getDefaultInstanceForType() { return cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest build() { cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest buildPartial() { cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest result = new cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest(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 cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest) { return mergeFrom((cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest other) { if (other == cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest.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 { cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest) 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:cosmos.staking.v1beta1.QueryParamsRequest) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryParamsRequest) private static final cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest(); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryParamsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryParamsRequest(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 cosmos.staking.v1beta1.QueryOuterClass.QueryParamsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryParamsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.staking.v1beta1.QueryParamsResponse) com.google.protobuf.MessageOrBuilder { /** *
     * params holds all the parameters of this module.
     * 
* * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ boolean hasParams(); /** *
     * params holds all the parameters of this module.
     * 
* * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ cosmos.staking.v1beta1.Staking.Params getParams(); /** *
     * params holds all the parameters of this module.
     * 
* * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ cosmos.staking.v1beta1.Staking.ParamsOrBuilder getParamsOrBuilder(); } /** *
   * QueryParamsResponse is response type for the Query/Params RPC method.
   * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryParamsResponse} */ public static final class QueryParamsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.staking.v1beta1.QueryParamsResponse) QueryParamsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use QueryParamsResponse.newBuilder() to construct. private QueryParamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryParamsResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryParamsResponse( 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.staking.v1beta1.Staking.Params.Builder subBuilder = null; if (params_ != null) { subBuilder = params_.toBuilder(); } params_ = input.readMessage(cosmos.staking.v1beta1.Staking.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 cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryParamsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryParamsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse.class, cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse.Builder.class); } public static final int PARAMS_FIELD_NUMBER = 1; private cosmos.staking.v1beta1.Staking.Params params_; /** *
     * params holds all the parameters of this module.
     * 
* * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public boolean hasParams() { return params_ != null; } /** *
     * params holds all the parameters of this module.
     * 
* * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.Params getParams() { return params_ == null ? cosmos.staking.v1beta1.Staking.Params.getDefaultInstance() : params_; } /** *
     * params holds all the parameters of this module.
     * 
* * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.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 cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse)) { return super.equals(obj); } cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse other = (cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse) 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 cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse 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 cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse 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 cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse 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(cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse 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; } /** *
     * QueryParamsResponse is response type for the Query/Params RPC method.
     * 
* * Protobuf type {@code cosmos.staking.v1beta1.QueryParamsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.staking.v1beta1.QueryParamsResponse) cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryParamsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryParamsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse.class, cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse.Builder.class); } // Construct using cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse.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 cosmos.staking.v1beta1.QueryOuterClass.internal_static_cosmos_staking_v1beta1_QueryParamsResponse_descriptor; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse getDefaultInstanceForType() { return cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse.getDefaultInstance(); } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse build() { cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse buildPartial() { cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse result = new cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse(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 cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse) { return mergeFrom((cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse other) { if (other == cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse.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 { cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private cosmos.staking.v1beta1.Staking.Params params_ = null; private com.google.protobuf.SingleFieldBuilderV3< cosmos.staking.v1beta1.Staking.Params, cosmos.staking.v1beta1.Staking.Params.Builder, cosmos.staking.v1beta1.Staking.ParamsOrBuilder> paramsBuilder_; /** *
       * params holds all the parameters of this module.
       * 
* * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public boolean hasParams() { return paramsBuilder_ != null || params_ != null; } /** *
       * params holds all the parameters of this module.
       * 
* * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.Params getParams() { if (paramsBuilder_ == null) { return params_ == null ? cosmos.staking.v1beta1.Staking.Params.getDefaultInstance() : params_; } else { return paramsBuilder_.getMessage(); } } /** *
       * params holds all the parameters of this module.
       * 
* * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public Builder setParams(cosmos.staking.v1beta1.Staking.Params value) { if (paramsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } params_ = value; onChanged(); } else { paramsBuilder_.setMessage(value); } return this; } /** *
       * params holds all the parameters of this module.
       * 
* * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public Builder setParams( cosmos.staking.v1beta1.Staking.Params.Builder builderForValue) { if (paramsBuilder_ == null) { params_ = builderForValue.build(); onChanged(); } else { paramsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * params holds all the parameters of this module.
       * 
* * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public Builder mergeParams(cosmos.staking.v1beta1.Staking.Params value) { if (paramsBuilder_ == null) { if (params_ != null) { params_ = cosmos.staking.v1beta1.Staking.Params.newBuilder(params_).mergeFrom(value).buildPartial(); } else { params_ = value; } onChanged(); } else { paramsBuilder_.mergeFrom(value); } return this; } /** *
       * params holds all the parameters of this module.
       * 
* * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public Builder clearParams() { if (paramsBuilder_ == null) { params_ = null; onChanged(); } else { params_ = null; paramsBuilder_ = null; } return this; } /** *
       * params holds all the parameters of this module.
       * 
* * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.Params.Builder getParamsBuilder() { onChanged(); return getParamsFieldBuilder().getBuilder(); } /** *
       * params holds all the parameters of this module.
       * 
* * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public cosmos.staking.v1beta1.Staking.ParamsOrBuilder getParamsOrBuilder() { if (paramsBuilder_ != null) { return paramsBuilder_.getMessageOrBuilder(); } else { return params_ == null ? cosmos.staking.v1beta1.Staking.Params.getDefaultInstance() : params_; } } /** *
       * params holds all the parameters of this module.
       * 
* * .cosmos.staking.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ private com.google.protobuf.SingleFieldBuilderV3< cosmos.staking.v1beta1.Staking.Params, cosmos.staking.v1beta1.Staking.Params.Builder, cosmos.staking.v1beta1.Staking.ParamsOrBuilder> getParamsFieldBuilder() { if (paramsBuilder_ == null) { paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cosmos.staking.v1beta1.Staking.Params, cosmos.staking.v1beta1.Staking.Params.Builder, cosmos.staking.v1beta1.Staking.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:cosmos.staking.v1beta1.QueryParamsResponse) } // @@protoc_insertion_point(class_scope:cosmos.staking.v1beta1.QueryParamsResponse) private static final cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse(); } public static cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryParamsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryParamsResponse(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 cosmos.staking.v1beta1.QueryOuterClass.QueryParamsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_QueryValidatorsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_QueryValidatorsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_QueryValidatorsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_QueryValidatorsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_QueryValidatorRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_QueryValidatorRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_QueryValidatorResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_QueryValidatorResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_QueryDelegationRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_QueryDelegationRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_QueryDelegationResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_QueryDelegationResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_QueryRedelegationsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_QueryRedelegationsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_QueryRedelegationsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_QueryRedelegationsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_QueryPoolRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_QueryPoolRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_QueryPoolResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_QueryPoolResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_QueryParamsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_QueryParamsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_staking_v1beta1_QueryParamsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_staking_v1beta1_QueryParamsResponse_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\"cosmos/staking/v1beta1/query.proto\022\026co" + "smos.staking.v1beta1\032*cosmos/base/query/" + "v1beta1/pagination.proto\032\024gogoproto/gogo" + ".proto\032\034google/api/annotations.proto\032$co" + "smos/staking/v1beta1/staking.proto\"d\n\026Qu" + "eryValidatorsRequest\022\016\n\006status\030\001 \001(\t\022:\n\n" + "pagination\030\002 \001(\0132&.cosmos.base.query.v1b" + "eta1.PageRequest\"\223\001\n\027QueryValidatorsResp" + "onse\022;\n\nvalidators\030\001 \003(\0132!.cosmos.stakin" + "g.v1beta1.ValidatorB\004\310\336\037\000\022;\n\npagination\030" + "\002 \001(\0132\'.cosmos.base.query.v1beta1.PageRe" + "sponse\"/\n\025QueryValidatorRequest\022\026\n\016valid" + "ator_addr\030\001 \001(\t\"T\n\026QueryValidatorRespons" + "e\022:\n\tvalidator\030\001 \001(\0132!.cosmos.staking.v1" + "beta1.ValidatorB\004\310\336\037\000\"v\n QueryValidatorD" + "elegationsRequest\022\026\n\016validator_addr\030\001 \001(" + "\t\022:\n\npagination\030\002 \001(\0132&.cosmos.base.quer" + "y.v1beta1.PageRequest\"\307\001\n!QueryValidator" + "DelegationsResponse\022e\n\024delegation_respon" + "ses\030\001 \003(\0132*.cosmos.staking.v1beta1.Deleg" + "ationResponseB\033\310\336\037\000\252\337\037\023DelegationRespons" + "es\022;\n\npagination\030\002 \001(\0132\'.cosmos.base.que" + "ry.v1beta1.PageResponse\"\177\n)QueryValidato" + "rUnbondingDelegationsRequest\022\026\n\016validato" + "r_addr\030\001 \001(\t\022:\n\npagination\030\002 \001(\0132&.cosmo" + "s.base.query.v1beta1.PageRequest\"\271\001\n*Que" + "ryValidatorUnbondingDelegationsResponse\022" + "N\n\023unbonding_responses\030\001 \003(\0132+.cosmos.st" + "aking.v1beta1.UnbondingDelegationB\004\310\336\037\000\022" + ";\n\npagination\030\002 \001(\0132\'.cosmos.base.query." + "v1beta1.PageResponse\"R\n\026QueryDelegationR" + "equest\022\026\n\016delegator_addr\030\001 \001(\t\022\026\n\016valida" + "tor_addr\030\002 \001(\t:\010\350\240\037\000\210\240\037\000\"b\n\027QueryDelegat" + "ionResponse\022G\n\023delegation_response\030\001 \001(\013" + "2*.cosmos.staking.v1beta1.DelegationResp" + "onse\"[\n\037QueryUnbondingDelegationRequest\022" + "\026\n\016delegator_addr\030\001 \001(\t\022\026\n\016validator_add" + "r\030\002 \001(\t:\010\350\240\037\000\210\240\037\000\"e\n QueryUnbondingDeleg" + "ationResponse\022A\n\006unbond\030\001 \001(\0132+.cosmos.s" + "taking.v1beta1.UnbondingDelegationB\004\310\336\037\000" + "\"\200\001\n QueryDelegatorDelegationsRequest\022\026\n" + "\016delegator_addr\030\001 \001(\t\022:\n\npagination\030\002 \001(" + "\0132&.cosmos.base.query.v1beta1.PageReques" + "t:\010\350\240\037\000\210\240\037\000\"\260\001\n!QueryDelegatorDelegation" + "sResponse\022N\n\024delegation_responses\030\001 \003(\0132" + "*.cosmos.staking.v1beta1.DelegationRespo" + "nseB\004\310\336\037\000\022;\n\npagination\030\002 \001(\0132\'.cosmos.b" + "ase.query.v1beta1.PageResponse\"\211\001\n)Query" + "DelegatorUnbondingDelegationsRequest\022\026\n\016" + "delegator_addr\030\001 \001(\t\022:\n\npagination\030\002 \001(\013" + "2&.cosmos.base.query.v1beta1.PageRequest" + ":\010\350\240\037\000\210\240\037\000\"\271\001\n*QueryDelegatorUnbondingDe" + "legationsResponse\022N\n\023unbonding_responses" + "\030\001 \003(\0132+.cosmos.staking.v1beta1.Unbondin" + "gDelegationB\004\310\336\037\000\022;\n\npagination\030\002 \001(\0132\'." + "cosmos.base.query.v1beta1.PageResponse\"\261" + "\001\n\031QueryRedelegationsRequest\022\026\n\016delegato" + "r_addr\030\001 \001(\t\022\032\n\022src_validator_addr\030\002 \001(\t" + "\022\032\n\022dst_validator_addr\030\003 \001(\t\022:\n\npaginati" + "on\030\004 \001(\0132&.cosmos.base.query.v1beta1.Pag" + "eRequest:\010\350\240\037\000\210\240\037\000\"\255\001\n\032QueryRedelegation" + "sResponse\022R\n\026redelegation_responses\030\001 \003(" + "\0132,.cosmos.staking.v1beta1.RedelegationR" + "esponseB\004\310\336\037\000\022;\n\npagination\030\002 \001(\0132\'.cosm" + "os.base.query.v1beta1.PageResponse\"\177\n\037Qu" + "eryDelegatorValidatorsRequest\022\026\n\016delegat" + "or_addr\030\001 \001(\t\022:\n\npagination\030\002 \001(\0132&.cosm" + "os.base.query.v1beta1.PageRequest:\010\350\240\037\000\210" + "\240\037\000\"\234\001\n QueryDelegatorValidatorsResponse" + "\022;\n\nvalidators\030\001 \003(\0132!.cosmos.staking.v1" + "beta1.ValidatorB\004\310\336\037\000\022;\n\npagination\030\002 \001(" + "\0132\'.cosmos.base.query.v1beta1.PageRespon" + "se\"Z\n\036QueryDelegatorValidatorRequest\022\026\n\016" + "delegator_addr\030\001 \001(\t\022\026\n\016validator_addr\030\002" + " \001(\t:\010\350\240\037\000\210\240\037\000\"]\n\037QueryDelegatorValidato" + "rResponse\022:\n\tvalidator\030\001 \001(\0132!.cosmos.st" + "aking.v1beta1.ValidatorB\004\310\336\037\000\",\n\032QueryHi" + "storicalInfoRequest\022\016\n\006height\030\001 \001(\003\"S\n\033Q" + "ueryHistoricalInfoResponse\0224\n\004hist\030\001 \001(\013" + "2&.cosmos.staking.v1beta1.HistoricalInfo" + "\"\022\n\020QueryPoolRequest\"E\n\021QueryPoolRespons" + "e\0220\n\004pool\030\001 \001(\0132\034.cosmos.staking.v1beta1" + ".PoolB\004\310\336\037\000\"\024\n\022QueryParamsRequest\"K\n\023Que" + "ryParamsResponse\0224\n\006params\030\001 \001(\0132\036.cosmo" + "s.staking.v1beta1.ParamsB\004\310\336\037\0002\352\025\n\005Query" + "\022\231\001\n\nValidators\022..cosmos.staking.v1beta1" + ".QueryValidatorsRequest\032/.cosmos.staking" + ".v1beta1.QueryValidatorsResponse\"*\202\323\344\223\002$" + "\022\"/cosmos/staking/v1beta1/validators\022\247\001\n" + "\tValidator\022-.cosmos.staking.v1beta1.Quer" + "yValidatorRequest\032..cosmos.staking.v1bet" + "a1.QueryValidatorResponse\";\202\323\344\223\0025\0223/cosm" + "os/staking/v1beta1/validators/{validator" + "_addr}\022\324\001\n\024ValidatorDelegations\0228.cosmos" + ".staking.v1beta1.QueryValidatorDelegatio" + "nsRequest\0329.cosmos.staking.v1beta1.Query" + "ValidatorDelegationsResponse\"G\202\323\344\223\002A\022?/c" + "osmos/staking/v1beta1/validators/{valida" + "tor_addr}/delegations\022\371\001\n\035ValidatorUnbon" + "dingDelegations\022A.cosmos.staking.v1beta1" + ".QueryValidatorUnbondingDelegationsReque" + "st\032B.cosmos.staking.v1beta1.QueryValidat" + "orUnbondingDelegationsResponse\"Q\202\323\344\223\002K\022I" + "/cosmos/staking/v1beta1/validators/{vali" + "dator_addr}/unbonding_delegations\022\307\001\n\nDe" + "legation\022..cosmos.staking.v1beta1.QueryD" + "elegationRequest\032/.cosmos.staking.v1beta" + "1.QueryDelegationResponse\"X\202\323\344\223\002R\022P/cosm" + "os/staking/v1beta1/validators/{validator" + "_addr}/delegations/{delegator_addr}\022\367\001\n\023" + "UnbondingDelegation\0227.cosmos.staking.v1b" + "eta1.QueryUnbondingDelegationRequest\0328.c" + "osmos.staking.v1beta1.QueryUnbondingDele" + "gationResponse\"m\202\323\344\223\002g\022e/cosmos/staking/" + "v1beta1/validators/{validator_addr}/dele" + "gations/{delegator_addr}/unbonding_deleg" + "ation\022\311\001\n\024DelegatorDelegations\0228.cosmos." + "staking.v1beta1.QueryDelegatorDelegation" + "sRequest\0329.cosmos.staking.v1beta1.QueryD" + "elegatorDelegationsResponse\"<\202\323\344\223\0026\0224/co" + "smos/staking/v1beta1/delegations/{delega" + "tor_addr}\022\371\001\n\035DelegatorUnbondingDelegati" + "ons\022A.cosmos.staking.v1beta1.QueryDelega" + "torUnbondingDelegationsRequest\032B.cosmos." + "staking.v1beta1.QueryDelegatorUnbondingD" + "elegationsResponse\"Q\202\323\344\223\002K\022I/cosmos/stak" + "ing/v1beta1/delegators/{delegator_addr}/" + "unbonding_delegations\022\301\001\n\rRedelegations\022" + "1.cosmos.staking.v1beta1.QueryRedelegati" + "onsRequest\0322.cosmos.staking.v1beta1.Quer" + "yRedelegationsResponse\"I\202\323\344\223\002C\022A/cosmos/" + "staking/v1beta1/delegators/{delegator_ad" + "dr}/redelegations\022\320\001\n\023DelegatorValidator" + "s\0227.cosmos.staking.v1beta1.QueryDelegato" + "rValidatorsRequest\0328.cosmos.staking.v1be" + "ta1.QueryDelegatorValidatorsResponse\"F\202\323" + "\344\223\002@\022>/cosmos/staking/v1beta1/delegators" + "/{delegator_addr}/validators\022\336\001\n\022Delegat" + "orValidator\0226.cosmos.staking.v1beta1.Que" + "ryDelegatorValidatorRequest\0327.cosmos.sta" + "king.v1beta1.QueryDelegatorValidatorResp" + "onse\"W\202\323\344\223\002Q\022O/cosmos/staking/v1beta1/de" + "legators/{delegator_addr}/validators/{va" + "lidator_addr}\022\263\001\n\016HistoricalInfo\0222.cosmo" + "s.staking.v1beta1.QueryHistoricalInfoReq" + "uest\0323.cosmos.staking.v1beta1.QueryHisto" + "ricalInfoResponse\"8\202\323\344\223\0022\0220/cosmos/staki" + "ng/v1beta1/historical_info/{height}\022\201\001\n\004" + "Pool\022(.cosmos.staking.v1beta1.QueryPoolR" + "equest\032).cosmos.staking.v1beta1.QueryPoo" + "lResponse\"$\202\323\344\223\002\036\022\034/cosmos/staking/v1bet" + "a1/pool\022\211\001\n\006Params\022*.cosmos.staking.v1be" + "ta1.QueryParamsRequest\032+.cosmos.staking." + "v1beta1.QueryParamsResponse\"&\202\323\344\223\002 \022\036/co" + "smos/staking/v1beta1/paramsB.Z,github.co" + "m/cosmos/cosmos-sdk/x/staking/typesb\006pro" + "to3" }; 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(), com.google.protobuf.GoGoProtos.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), cosmos.staking.v1beta1.Staking.getDescriptor(), }, assigner); internal_static_cosmos_staking_v1beta1_QueryValidatorsRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_cosmos_staking_v1beta1_QueryValidatorsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_QueryValidatorsRequest_descriptor, new java.lang.String[] { "Status", "Pagination", }); internal_static_cosmos_staking_v1beta1_QueryValidatorsResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_cosmos_staking_v1beta1_QueryValidatorsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_QueryValidatorsResponse_descriptor, new java.lang.String[] { "Validators", "Pagination", }); internal_static_cosmos_staking_v1beta1_QueryValidatorRequest_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_cosmos_staking_v1beta1_QueryValidatorRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_QueryValidatorRequest_descriptor, new java.lang.String[] { "ValidatorAddr", }); internal_static_cosmos_staking_v1beta1_QueryValidatorResponse_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_cosmos_staking_v1beta1_QueryValidatorResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_QueryValidatorResponse_descriptor, new java.lang.String[] { "Validator", }); internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsRequest_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsRequest_descriptor, new java.lang.String[] { "ValidatorAddr", "Pagination", }); internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsResponse_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_QueryValidatorDelegationsResponse_descriptor, new java.lang.String[] { "DelegationResponses", "Pagination", }); internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsRequest_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsRequest_descriptor, new java.lang.String[] { "ValidatorAddr", "Pagination", }); internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsResponse_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_QueryValidatorUnbondingDelegationsResponse_descriptor, new java.lang.String[] { "UnbondingResponses", "Pagination", }); internal_static_cosmos_staking_v1beta1_QueryDelegationRequest_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_cosmos_staking_v1beta1_QueryDelegationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_QueryDelegationRequest_descriptor, new java.lang.String[] { "DelegatorAddr", "ValidatorAddr", }); internal_static_cosmos_staking_v1beta1_QueryDelegationResponse_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_cosmos_staking_v1beta1_QueryDelegationResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_QueryDelegationResponse_descriptor, new java.lang.String[] { "DelegationResponse", }); internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationRequest_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationRequest_descriptor, new java.lang.String[] { "DelegatorAddr", "ValidatorAddr", }); internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationResponse_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_QueryUnbondingDelegationResponse_descriptor, new java.lang.String[] { "Unbond", }); internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsRequest_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsRequest_descriptor, new java.lang.String[] { "DelegatorAddr", "Pagination", }); internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsResponse_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_QueryDelegatorDelegationsResponse_descriptor, new java.lang.String[] { "DelegationResponses", "Pagination", }); internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsRequest_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsRequest_descriptor, new java.lang.String[] { "DelegatorAddr", "Pagination", }); internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsResponse_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_QueryDelegatorUnbondingDelegationsResponse_descriptor, new java.lang.String[] { "UnbondingResponses", "Pagination", }); internal_static_cosmos_staking_v1beta1_QueryRedelegationsRequest_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_cosmos_staking_v1beta1_QueryRedelegationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_QueryRedelegationsRequest_descriptor, new java.lang.String[] { "DelegatorAddr", "SrcValidatorAddr", "DstValidatorAddr", "Pagination", }); internal_static_cosmos_staking_v1beta1_QueryRedelegationsResponse_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_cosmos_staking_v1beta1_QueryRedelegationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_QueryRedelegationsResponse_descriptor, new java.lang.String[] { "RedelegationResponses", "Pagination", }); internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsRequest_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsRequest_descriptor, new java.lang.String[] { "DelegatorAddr", "Pagination", }); internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsResponse_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorsResponse_descriptor, new java.lang.String[] { "Validators", "Pagination", }); internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorRequest_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorRequest_descriptor, new java.lang.String[] { "DelegatorAddr", "ValidatorAddr", }); internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorResponse_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_QueryDelegatorValidatorResponse_descriptor, new java.lang.String[] { "Validator", }); internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoRequest_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoRequest_descriptor, new java.lang.String[] { "Height", }); internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoResponse_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_QueryHistoricalInfoResponse_descriptor, new java.lang.String[] { "Hist", }); internal_static_cosmos_staking_v1beta1_QueryPoolRequest_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_cosmos_staking_v1beta1_QueryPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_QueryPoolRequest_descriptor, new java.lang.String[] { }); internal_static_cosmos_staking_v1beta1_QueryPoolResponse_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_cosmos_staking_v1beta1_QueryPoolResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_QueryPoolResponse_descriptor, new java.lang.String[] { "Pool", }); internal_static_cosmos_staking_v1beta1_QueryParamsRequest_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_cosmos_staking_v1beta1_QueryParamsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_QueryParamsRequest_descriptor, new java.lang.String[] { }); internal_static_cosmos_staking_v1beta1_QueryParamsResponse_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_cosmos_staking_v1beta1_QueryParamsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_staking_v1beta1_QueryParamsResponse_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.equal); registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); 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(); com.google.protobuf.GoGoProtos.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); cosmos.staking.v1beta1.Staking.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy