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

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

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

package cosmos.distribution.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 QueryParamsRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.QueryParamsRequest)
      com.google.protobuf.MessageOrBuilder {
  }
  /**
   * 
   * QueryParamsRequest is the request type for the Query/Params RPC method.
   * 
* * Protobuf type {@code cosmos.distribution.v1beta1.QueryParamsRequest} */ public static final class QueryParamsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.distribution.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.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryParamsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryParamsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.distribution.v1beta1.QueryOuterClass.QueryParamsRequest.class, cosmos.distribution.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.distribution.v1beta1.QueryOuterClass.QueryParamsRequest)) { return super.equals(obj); } cosmos.distribution.v1beta1.QueryOuterClass.QueryParamsRequest other = (cosmos.distribution.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.distribution.v1beta1.QueryOuterClass.QueryParamsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.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.distribution.v1beta1.QueryOuterClass.QueryParamsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.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.distribution.v1beta1.QueryOuterClass.QueryParamsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryParamsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryParamsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.distribution.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.distribution.v1beta1.QueryOuterClass.QueryParamsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.distribution.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.distribution.v1beta1.QueryOuterClass.QueryParamsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.distribution.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.distribution.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 the request type for the Query/Params RPC method.
     * 
* * Protobuf type {@code cosmos.distribution.v1beta1.QueryParamsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.QueryParamsRequest) cosmos.distribution.v1beta1.QueryOuterClass.QueryParamsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryParamsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryParamsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.distribution.v1beta1.QueryOuterClass.QueryParamsRequest.class, cosmos.distribution.v1beta1.QueryOuterClass.QueryParamsRequest.Builder.class); } // Construct using cosmos.distribution.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.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryParamsRequest_descriptor; } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryParamsRequest getDefaultInstanceForType() { return cosmos.distribution.v1beta1.QueryOuterClass.QueryParamsRequest.getDefaultInstance(); } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryParamsRequest build() { cosmos.distribution.v1beta1.QueryOuterClass.QueryParamsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryParamsRequest buildPartial() { cosmos.distribution.v1beta1.QueryOuterClass.QueryParamsRequest result = new cosmos.distribution.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.distribution.v1beta1.QueryOuterClass.QueryParamsRequest) { return mergeFrom((cosmos.distribution.v1beta1.QueryOuterClass.QueryParamsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.distribution.v1beta1.QueryOuterClass.QueryParamsRequest other) { if (other == cosmos.distribution.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.distribution.v1beta1.QueryOuterClass.QueryParamsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.distribution.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.distribution.v1beta1.QueryParamsRequest) } // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.QueryParamsRequest) private static final cosmos.distribution.v1beta1.QueryOuterClass.QueryParamsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.QueryOuterClass.QueryParamsRequest(); } public static cosmos.distribution.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.distribution.v1beta1.QueryOuterClass.QueryParamsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryParamsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.QueryParamsResponse) com.google.protobuf.MessageOrBuilder { /** *
     * params defines the parameters of the module.
     * 
* * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ boolean hasParams(); /** *
     * params defines the parameters of the module.
     * 
* * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ cosmos.distribution.v1beta1.Distribution.Params getParams(); /** *
     * params defines the parameters of the module.
     * 
* * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ cosmos.distribution.v1beta1.Distribution.ParamsOrBuilder getParamsOrBuilder(); } /** *
   * QueryParamsResponse is the response type for the Query/Params RPC method.
   * 
* * Protobuf type {@code cosmos.distribution.v1beta1.QueryParamsResponse} */ public static final class QueryParamsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.distribution.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.distribution.v1beta1.Distribution.Params.Builder subBuilder = null; if (params_ != null) { subBuilder = params_.toBuilder(); } params_ = input.readMessage(cosmos.distribution.v1beta1.Distribution.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.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryParamsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryParamsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.distribution.v1beta1.QueryOuterClass.QueryParamsResponse.class, cosmos.distribution.v1beta1.QueryOuterClass.QueryParamsResponse.Builder.class); } public static final int PARAMS_FIELD_NUMBER = 1; private cosmos.distribution.v1beta1.Distribution.Params params_; /** *
     * params defines the parameters of the module.
     * 
* * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public boolean hasParams() { return params_ != null; } /** *
     * params defines the parameters of the module.
     * 
* * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public cosmos.distribution.v1beta1.Distribution.Params getParams() { return params_ == null ? cosmos.distribution.v1beta1.Distribution.Params.getDefaultInstance() : params_; } /** *
     * params defines the parameters of the module.
     * 
* * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public cosmos.distribution.v1beta1.Distribution.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.distribution.v1beta1.QueryOuterClass.QueryParamsResponse)) { return super.equals(obj); } cosmos.distribution.v1beta1.QueryOuterClass.QueryParamsResponse other = (cosmos.distribution.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.distribution.v1beta1.QueryOuterClass.QueryParamsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.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.distribution.v1beta1.QueryOuterClass.QueryParamsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.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.distribution.v1beta1.QueryOuterClass.QueryParamsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryParamsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryParamsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.distribution.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.distribution.v1beta1.QueryOuterClass.QueryParamsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.distribution.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.distribution.v1beta1.QueryOuterClass.QueryParamsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.distribution.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.distribution.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 the response type for the Query/Params RPC method.
     * 
* * Protobuf type {@code cosmos.distribution.v1beta1.QueryParamsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.QueryParamsResponse) cosmos.distribution.v1beta1.QueryOuterClass.QueryParamsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryParamsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryParamsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.distribution.v1beta1.QueryOuterClass.QueryParamsResponse.class, cosmos.distribution.v1beta1.QueryOuterClass.QueryParamsResponse.Builder.class); } // Construct using cosmos.distribution.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.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryParamsResponse_descriptor; } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryParamsResponse getDefaultInstanceForType() { return cosmos.distribution.v1beta1.QueryOuterClass.QueryParamsResponse.getDefaultInstance(); } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryParamsResponse build() { cosmos.distribution.v1beta1.QueryOuterClass.QueryParamsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryParamsResponse buildPartial() { cosmos.distribution.v1beta1.QueryOuterClass.QueryParamsResponse result = new cosmos.distribution.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.distribution.v1beta1.QueryOuterClass.QueryParamsResponse) { return mergeFrom((cosmos.distribution.v1beta1.QueryOuterClass.QueryParamsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.distribution.v1beta1.QueryOuterClass.QueryParamsResponse other) { if (other == cosmos.distribution.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.distribution.v1beta1.QueryOuterClass.QueryParamsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.distribution.v1beta1.QueryOuterClass.QueryParamsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private cosmos.distribution.v1beta1.Distribution.Params params_ = null; private com.google.protobuf.SingleFieldBuilderV3< cosmos.distribution.v1beta1.Distribution.Params, cosmos.distribution.v1beta1.Distribution.Params.Builder, cosmos.distribution.v1beta1.Distribution.ParamsOrBuilder> paramsBuilder_; /** *
       * params defines the parameters of the module.
       * 
* * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public boolean hasParams() { return paramsBuilder_ != null || params_ != null; } /** *
       * params defines the parameters of the module.
       * 
* * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public cosmos.distribution.v1beta1.Distribution.Params getParams() { if (paramsBuilder_ == null) { return params_ == null ? cosmos.distribution.v1beta1.Distribution.Params.getDefaultInstance() : params_; } else { return paramsBuilder_.getMessage(); } } /** *
       * params defines the parameters of the module.
       * 
* * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public Builder setParams(cosmos.distribution.v1beta1.Distribution.Params value) { if (paramsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } params_ = value; onChanged(); } else { paramsBuilder_.setMessage(value); } return this; } /** *
       * params defines the parameters of the module.
       * 
* * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public Builder setParams( cosmos.distribution.v1beta1.Distribution.Params.Builder builderForValue) { if (paramsBuilder_ == null) { params_ = builderForValue.build(); onChanged(); } else { paramsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * params defines the parameters of the module.
       * 
* * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public Builder mergeParams(cosmos.distribution.v1beta1.Distribution.Params value) { if (paramsBuilder_ == null) { if (params_ != null) { params_ = cosmos.distribution.v1beta1.Distribution.Params.newBuilder(params_).mergeFrom(value).buildPartial(); } else { params_ = value; } onChanged(); } else { paramsBuilder_.mergeFrom(value); } return this; } /** *
       * params defines the parameters of the module.
       * 
* * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public Builder clearParams() { if (paramsBuilder_ == null) { params_ = null; onChanged(); } else { params_ = null; paramsBuilder_ = null; } return this; } /** *
       * params defines the parameters of the module.
       * 
* * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public cosmos.distribution.v1beta1.Distribution.Params.Builder getParamsBuilder() { onChanged(); return getParamsFieldBuilder().getBuilder(); } /** *
       * params defines the parameters of the module.
       * 
* * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public cosmos.distribution.v1beta1.Distribution.ParamsOrBuilder getParamsOrBuilder() { if (paramsBuilder_ != null) { return paramsBuilder_.getMessageOrBuilder(); } else { return params_ == null ? cosmos.distribution.v1beta1.Distribution.Params.getDefaultInstance() : params_; } } /** *
       * params defines the parameters of the module.
       * 
* * .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ private com.google.protobuf.SingleFieldBuilderV3< cosmos.distribution.v1beta1.Distribution.Params, cosmos.distribution.v1beta1.Distribution.Params.Builder, cosmos.distribution.v1beta1.Distribution.ParamsOrBuilder> getParamsFieldBuilder() { if (paramsBuilder_ == null) { paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cosmos.distribution.v1beta1.Distribution.Params, cosmos.distribution.v1beta1.Distribution.Params.Builder, cosmos.distribution.v1beta1.Distribution.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.distribution.v1beta1.QueryParamsResponse) } // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.QueryParamsResponse) private static final cosmos.distribution.v1beta1.QueryOuterClass.QueryParamsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.QueryOuterClass.QueryParamsResponse(); } public static cosmos.distribution.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.distribution.v1beta1.QueryOuterClass.QueryParamsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryValidatorOutstandingRewardsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest) com.google.protobuf.MessageOrBuilder { /** *
     * validator_address defines the validator address to query for.
     * 
* * string validator_address = 1; */ java.lang.String getValidatorAddress(); /** *
     * validator_address defines the validator address to query for.
     * 
* * string validator_address = 1; */ com.google.protobuf.ByteString getValidatorAddressBytes(); } /** *
   * QueryValidatorOutstandingRewardsRequest is the request type for the
   * Query/ValidatorOutstandingRewards RPC method.
   * 
* * Protobuf type {@code cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest} */ public static final class QueryValidatorOutstandingRewardsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest) QueryValidatorOutstandingRewardsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use QueryValidatorOutstandingRewardsRequest.newBuilder() to construct. private QueryValidatorOutstandingRewardsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryValidatorOutstandingRewardsRequest() { validatorAddress_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryValidatorOutstandingRewardsRequest( 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(); validatorAddress_ = 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.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest.class, cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest.Builder.class); } public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 1; private volatile java.lang.Object validatorAddress_; /** *
     * validator_address defines the validator address to query for.
     * 
* * string validator_address = 1; */ public java.lang.String getValidatorAddress() { java.lang.Object ref = validatorAddress_; 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(); validatorAddress_ = s; return s; } } /** *
     * validator_address defines the validator address to query for.
     * 
* * string validator_address = 1; */ public com.google.protobuf.ByteString getValidatorAddressBytes() { java.lang.Object ref = validatorAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validatorAddress_ = 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 (!getValidatorAddressBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, validatorAddress_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getValidatorAddressBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, validatorAddress_); } 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.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest)) { return super.equals(obj); } cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest other = (cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest) obj; boolean result = true; result = result && getValidatorAddress() .equals(other.getValidatorAddress()); 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_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getValidatorAddress().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest 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.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest 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.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest 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.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest 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; } /** *
     * QueryValidatorOutstandingRewardsRequest is the request type for the
     * Query/ValidatorOutstandingRewards RPC method.
     * 
* * Protobuf type {@code cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest) cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest.class, cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest.Builder.class); } // Construct using cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest.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(); validatorAddress_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsRequest_descriptor; } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest getDefaultInstanceForType() { return cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest.getDefaultInstance(); } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest build() { cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest buildPartial() { cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest result = new cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest(this); result.validatorAddress_ = validatorAddress_; 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.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest) { return mergeFrom((cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest other) { if (other == cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest.getDefaultInstance()) return this; if (!other.getValidatorAddress().isEmpty()) { validatorAddress_ = other.validatorAddress_; 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.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object validatorAddress_ = ""; /** *
       * validator_address defines the validator address to query for.
       * 
* * string validator_address = 1; */ public java.lang.String getValidatorAddress() { java.lang.Object ref = validatorAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); validatorAddress_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * validator_address defines the validator address to query for.
       * 
* * string validator_address = 1; */ public com.google.protobuf.ByteString getValidatorAddressBytes() { java.lang.Object ref = validatorAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validatorAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * validator_address defines the validator address to query for.
       * 
* * string validator_address = 1; */ public Builder setValidatorAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } validatorAddress_ = value; onChanged(); return this; } /** *
       * validator_address defines the validator address to query for.
       * 
* * string validator_address = 1; */ public Builder clearValidatorAddress() { validatorAddress_ = getDefaultInstance().getValidatorAddress(); onChanged(); return this; } /** *
       * validator_address defines the validator address to query for.
       * 
* * string validator_address = 1; */ public Builder setValidatorAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); validatorAddress_ = 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.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest) } // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest) private static final cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest(); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryValidatorOutstandingRewardsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryValidatorOutstandingRewardsRequest(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.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryValidatorOutstandingRewardsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse) com.google.protobuf.MessageOrBuilder { /** * .cosmos.distribution.v1beta1.ValidatorOutstandingRewards rewards = 1 [(.gogoproto.nullable) = false]; */ boolean hasRewards(); /** * .cosmos.distribution.v1beta1.ValidatorOutstandingRewards rewards = 1 [(.gogoproto.nullable) = false]; */ cosmos.distribution.v1beta1.Distribution.ValidatorOutstandingRewards getRewards(); /** * .cosmos.distribution.v1beta1.ValidatorOutstandingRewards rewards = 1 [(.gogoproto.nullable) = false]; */ cosmos.distribution.v1beta1.Distribution.ValidatorOutstandingRewardsOrBuilder getRewardsOrBuilder(); } /** *
   * QueryValidatorOutstandingRewardsResponse is the response type for the
   * Query/ValidatorOutstandingRewards RPC method.
   * 
* * Protobuf type {@code cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse} */ public static final class QueryValidatorOutstandingRewardsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse) QueryValidatorOutstandingRewardsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use QueryValidatorOutstandingRewardsResponse.newBuilder() to construct. private QueryValidatorOutstandingRewardsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryValidatorOutstandingRewardsResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryValidatorOutstandingRewardsResponse( 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.distribution.v1beta1.Distribution.ValidatorOutstandingRewards.Builder subBuilder = null; if (rewards_ != null) { subBuilder = rewards_.toBuilder(); } rewards_ = input.readMessage(cosmos.distribution.v1beta1.Distribution.ValidatorOutstandingRewards.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(rewards_); rewards_ = 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.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse.class, cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse.Builder.class); } public static final int REWARDS_FIELD_NUMBER = 1; private cosmos.distribution.v1beta1.Distribution.ValidatorOutstandingRewards rewards_; /** * .cosmos.distribution.v1beta1.ValidatorOutstandingRewards rewards = 1 [(.gogoproto.nullable) = false]; */ public boolean hasRewards() { return rewards_ != null; } /** * .cosmos.distribution.v1beta1.ValidatorOutstandingRewards rewards = 1 [(.gogoproto.nullable) = false]; */ public cosmos.distribution.v1beta1.Distribution.ValidatorOutstandingRewards getRewards() { return rewards_ == null ? cosmos.distribution.v1beta1.Distribution.ValidatorOutstandingRewards.getDefaultInstance() : rewards_; } /** * .cosmos.distribution.v1beta1.ValidatorOutstandingRewards rewards = 1 [(.gogoproto.nullable) = false]; */ public cosmos.distribution.v1beta1.Distribution.ValidatorOutstandingRewardsOrBuilder getRewardsOrBuilder() { return getRewards(); } 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 (rewards_ != null) { output.writeMessage(1, getRewards()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (rewards_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRewards()); } 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.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse)) { return super.equals(obj); } cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse other = (cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse) obj; boolean result = true; result = result && (hasRewards() == other.hasRewards()); if (hasRewards()) { result = result && getRewards() .equals(other.getRewards()); } 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 (hasRewards()) { hash = (37 * hash) + REWARDS_FIELD_NUMBER; hash = (53 * hash) + getRewards().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse 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.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse 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.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse 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.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse 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; } /** *
     * QueryValidatorOutstandingRewardsResponse is the response type for the
     * Query/ValidatorOutstandingRewards RPC method.
     * 
* * Protobuf type {@code cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse) cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse.class, cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse.Builder.class); } // Construct using cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse.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 (rewardsBuilder_ == null) { rewards_ = null; } else { rewards_ = null; rewardsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsResponse_descriptor; } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse getDefaultInstanceForType() { return cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse.getDefaultInstance(); } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse build() { cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse buildPartial() { cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse result = new cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse(this); if (rewardsBuilder_ == null) { result.rewards_ = rewards_; } else { result.rewards_ = rewardsBuilder_.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.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse) { return mergeFrom((cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse other) { if (other == cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse.getDefaultInstance()) return this; if (other.hasRewards()) { mergeRewards(other.getRewards()); } 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.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private cosmos.distribution.v1beta1.Distribution.ValidatorOutstandingRewards rewards_ = null; private com.google.protobuf.SingleFieldBuilderV3< cosmos.distribution.v1beta1.Distribution.ValidatorOutstandingRewards, cosmos.distribution.v1beta1.Distribution.ValidatorOutstandingRewards.Builder, cosmos.distribution.v1beta1.Distribution.ValidatorOutstandingRewardsOrBuilder> rewardsBuilder_; /** * .cosmos.distribution.v1beta1.ValidatorOutstandingRewards rewards = 1 [(.gogoproto.nullable) = false]; */ public boolean hasRewards() { return rewardsBuilder_ != null || rewards_ != null; } /** * .cosmos.distribution.v1beta1.ValidatorOutstandingRewards rewards = 1 [(.gogoproto.nullable) = false]; */ public cosmos.distribution.v1beta1.Distribution.ValidatorOutstandingRewards getRewards() { if (rewardsBuilder_ == null) { return rewards_ == null ? cosmos.distribution.v1beta1.Distribution.ValidatorOutstandingRewards.getDefaultInstance() : rewards_; } else { return rewardsBuilder_.getMessage(); } } /** * .cosmos.distribution.v1beta1.ValidatorOutstandingRewards rewards = 1 [(.gogoproto.nullable) = false]; */ public Builder setRewards(cosmos.distribution.v1beta1.Distribution.ValidatorOutstandingRewards value) { if (rewardsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rewards_ = value; onChanged(); } else { rewardsBuilder_.setMessage(value); } return this; } /** * .cosmos.distribution.v1beta1.ValidatorOutstandingRewards rewards = 1 [(.gogoproto.nullable) = false]; */ public Builder setRewards( cosmos.distribution.v1beta1.Distribution.ValidatorOutstandingRewards.Builder builderForValue) { if (rewardsBuilder_ == null) { rewards_ = builderForValue.build(); onChanged(); } else { rewardsBuilder_.setMessage(builderForValue.build()); } return this; } /** * .cosmos.distribution.v1beta1.ValidatorOutstandingRewards rewards = 1 [(.gogoproto.nullable) = false]; */ public Builder mergeRewards(cosmos.distribution.v1beta1.Distribution.ValidatorOutstandingRewards value) { if (rewardsBuilder_ == null) { if (rewards_ != null) { rewards_ = cosmos.distribution.v1beta1.Distribution.ValidatorOutstandingRewards.newBuilder(rewards_).mergeFrom(value).buildPartial(); } else { rewards_ = value; } onChanged(); } else { rewardsBuilder_.mergeFrom(value); } return this; } /** * .cosmos.distribution.v1beta1.ValidatorOutstandingRewards rewards = 1 [(.gogoproto.nullable) = false]; */ public Builder clearRewards() { if (rewardsBuilder_ == null) { rewards_ = null; onChanged(); } else { rewards_ = null; rewardsBuilder_ = null; } return this; } /** * .cosmos.distribution.v1beta1.ValidatorOutstandingRewards rewards = 1 [(.gogoproto.nullable) = false]; */ public cosmos.distribution.v1beta1.Distribution.ValidatorOutstandingRewards.Builder getRewardsBuilder() { onChanged(); return getRewardsFieldBuilder().getBuilder(); } /** * .cosmos.distribution.v1beta1.ValidatorOutstandingRewards rewards = 1 [(.gogoproto.nullable) = false]; */ public cosmos.distribution.v1beta1.Distribution.ValidatorOutstandingRewardsOrBuilder getRewardsOrBuilder() { if (rewardsBuilder_ != null) { return rewardsBuilder_.getMessageOrBuilder(); } else { return rewards_ == null ? cosmos.distribution.v1beta1.Distribution.ValidatorOutstandingRewards.getDefaultInstance() : rewards_; } } /** * .cosmos.distribution.v1beta1.ValidatorOutstandingRewards rewards = 1 [(.gogoproto.nullable) = false]; */ private com.google.protobuf.SingleFieldBuilderV3< cosmos.distribution.v1beta1.Distribution.ValidatorOutstandingRewards, cosmos.distribution.v1beta1.Distribution.ValidatorOutstandingRewards.Builder, cosmos.distribution.v1beta1.Distribution.ValidatorOutstandingRewardsOrBuilder> getRewardsFieldBuilder() { if (rewardsBuilder_ == null) { rewardsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cosmos.distribution.v1beta1.Distribution.ValidatorOutstandingRewards, cosmos.distribution.v1beta1.Distribution.ValidatorOutstandingRewards.Builder, cosmos.distribution.v1beta1.Distribution.ValidatorOutstandingRewardsOrBuilder>( getRewards(), getParentForChildren(), isClean()); rewards_ = null; } return rewardsBuilder_; } @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.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse) } // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse) private static final cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse(); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryValidatorOutstandingRewardsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryValidatorOutstandingRewardsResponse(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.distribution.v1beta1.QueryOuterClass.QueryValidatorOutstandingRewardsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryValidatorCommissionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.QueryValidatorCommissionRequest) com.google.protobuf.MessageOrBuilder { /** *
     * validator_address defines the validator address to query for.
     * 
* * string validator_address = 1; */ java.lang.String getValidatorAddress(); /** *
     * validator_address defines the validator address to query for.
     * 
* * string validator_address = 1; */ com.google.protobuf.ByteString getValidatorAddressBytes(); } /** *
   * QueryValidatorCommissionRequest is the request type for the
   * Query/ValidatorCommission RPC method
   * 
* * Protobuf type {@code cosmos.distribution.v1beta1.QueryValidatorCommissionRequest} */ public static final class QueryValidatorCommissionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.QueryValidatorCommissionRequest) QueryValidatorCommissionRequestOrBuilder { private static final long serialVersionUID = 0L; // Use QueryValidatorCommissionRequest.newBuilder() to construct. private QueryValidatorCommissionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryValidatorCommissionRequest() { validatorAddress_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryValidatorCommissionRequest( 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(); validatorAddress_ = 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.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest.class, cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest.Builder.class); } public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 1; private volatile java.lang.Object validatorAddress_; /** *
     * validator_address defines the validator address to query for.
     * 
* * string validator_address = 1; */ public java.lang.String getValidatorAddress() { java.lang.Object ref = validatorAddress_; 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(); validatorAddress_ = s; return s; } } /** *
     * validator_address defines the validator address to query for.
     * 
* * string validator_address = 1; */ public com.google.protobuf.ByteString getValidatorAddressBytes() { java.lang.Object ref = validatorAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validatorAddress_ = 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 (!getValidatorAddressBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, validatorAddress_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getValidatorAddressBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, validatorAddress_); } 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.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest)) { return super.equals(obj); } cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest other = (cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest) obj; boolean result = true; result = result && getValidatorAddress() .equals(other.getValidatorAddress()); 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_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getValidatorAddress().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest 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.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest 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.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest 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.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest 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; } /** *
     * QueryValidatorCommissionRequest is the request type for the
     * Query/ValidatorCommission RPC method
     * 
* * Protobuf type {@code cosmos.distribution.v1beta1.QueryValidatorCommissionRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.QueryValidatorCommissionRequest) cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest.class, cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest.Builder.class); } // Construct using cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest.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(); validatorAddress_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionRequest_descriptor; } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest getDefaultInstanceForType() { return cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest.getDefaultInstance(); } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest build() { cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest buildPartial() { cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest result = new cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest(this); result.validatorAddress_ = validatorAddress_; 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.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest) { return mergeFrom((cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest other) { if (other == cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest.getDefaultInstance()) return this; if (!other.getValidatorAddress().isEmpty()) { validatorAddress_ = other.validatorAddress_; 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.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object validatorAddress_ = ""; /** *
       * validator_address defines the validator address to query for.
       * 
* * string validator_address = 1; */ public java.lang.String getValidatorAddress() { java.lang.Object ref = validatorAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); validatorAddress_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * validator_address defines the validator address to query for.
       * 
* * string validator_address = 1; */ public com.google.protobuf.ByteString getValidatorAddressBytes() { java.lang.Object ref = validatorAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validatorAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * validator_address defines the validator address to query for.
       * 
* * string validator_address = 1; */ public Builder setValidatorAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } validatorAddress_ = value; onChanged(); return this; } /** *
       * validator_address defines the validator address to query for.
       * 
* * string validator_address = 1; */ public Builder clearValidatorAddress() { validatorAddress_ = getDefaultInstance().getValidatorAddress(); onChanged(); return this; } /** *
       * validator_address defines the validator address to query for.
       * 
* * string validator_address = 1; */ public Builder setValidatorAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); validatorAddress_ = 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.distribution.v1beta1.QueryValidatorCommissionRequest) } // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.QueryValidatorCommissionRequest) private static final cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest(); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryValidatorCommissionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryValidatorCommissionRequest(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.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryValidatorCommissionResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.QueryValidatorCommissionResponse) com.google.protobuf.MessageOrBuilder { /** *
     * commission defines the commision the validator received.
     * 
* * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission commission = 1 [(.gogoproto.nullable) = false]; */ boolean hasCommission(); /** *
     * commission defines the commision the validator received.
     * 
* * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission commission = 1 [(.gogoproto.nullable) = false]; */ cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission getCommission(); /** *
     * commission defines the commision the validator received.
     * 
* * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission commission = 1 [(.gogoproto.nullable) = false]; */ cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommissionOrBuilder getCommissionOrBuilder(); } /** *
   * QueryValidatorCommissionResponse is the response type for the
   * Query/ValidatorCommission RPC method
   * 
* * Protobuf type {@code cosmos.distribution.v1beta1.QueryValidatorCommissionResponse} */ public static final class QueryValidatorCommissionResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.QueryValidatorCommissionResponse) QueryValidatorCommissionResponseOrBuilder { private static final long serialVersionUID = 0L; // Use QueryValidatorCommissionResponse.newBuilder() to construct. private QueryValidatorCommissionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryValidatorCommissionResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryValidatorCommissionResponse( 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.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission.Builder subBuilder = null; if (commission_ != null) { subBuilder = commission_.toBuilder(); } commission_ = input.readMessage(cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(commission_); commission_ = 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.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse.class, cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse.Builder.class); } public static final int COMMISSION_FIELD_NUMBER = 1; private cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission commission_; /** *
     * commission defines the commision the validator received.
     * 
* * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission commission = 1 [(.gogoproto.nullable) = false]; */ public boolean hasCommission() { return commission_ != null; } /** *
     * commission defines the commision the validator received.
     * 
* * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission commission = 1 [(.gogoproto.nullable) = false]; */ public cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission getCommission() { return commission_ == null ? cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission.getDefaultInstance() : commission_; } /** *
     * commission defines the commision the validator received.
     * 
* * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission commission = 1 [(.gogoproto.nullable) = false]; */ public cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommissionOrBuilder getCommissionOrBuilder() { return getCommission(); } 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 (commission_ != null) { output.writeMessage(1, getCommission()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (commission_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getCommission()); } 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.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse)) { return super.equals(obj); } cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse other = (cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse) obj; boolean result = true; result = result && (hasCommission() == other.hasCommission()); if (hasCommission()) { result = result && getCommission() .equals(other.getCommission()); } 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 (hasCommission()) { hash = (37 * hash) + COMMISSION_FIELD_NUMBER; hash = (53 * hash) + getCommission().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse 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.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse 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.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse 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.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse 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; } /** *
     * QueryValidatorCommissionResponse is the response type for the
     * Query/ValidatorCommission RPC method
     * 
* * Protobuf type {@code cosmos.distribution.v1beta1.QueryValidatorCommissionResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.QueryValidatorCommissionResponse) cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse.class, cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse.Builder.class); } // Construct using cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse.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 (commissionBuilder_ == null) { commission_ = null; } else { commission_ = null; commissionBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionResponse_descriptor; } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse getDefaultInstanceForType() { return cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse.getDefaultInstance(); } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse build() { cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse buildPartial() { cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse result = new cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse(this); if (commissionBuilder_ == null) { result.commission_ = commission_; } else { result.commission_ = commissionBuilder_.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.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse) { return mergeFrom((cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse other) { if (other == cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse.getDefaultInstance()) return this; if (other.hasCommission()) { mergeCommission(other.getCommission()); } 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.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission commission_ = null; private com.google.protobuf.SingleFieldBuilderV3< cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission, cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission.Builder, cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommissionOrBuilder> commissionBuilder_; /** *
       * commission defines the commision the validator received.
       * 
* * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission commission = 1 [(.gogoproto.nullable) = false]; */ public boolean hasCommission() { return commissionBuilder_ != null || commission_ != null; } /** *
       * commission defines the commision the validator received.
       * 
* * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission commission = 1 [(.gogoproto.nullable) = false]; */ public cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission getCommission() { if (commissionBuilder_ == null) { return commission_ == null ? cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission.getDefaultInstance() : commission_; } else { return commissionBuilder_.getMessage(); } } /** *
       * commission defines the commision the validator received.
       * 
* * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission commission = 1 [(.gogoproto.nullable) = false]; */ public Builder setCommission(cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission value) { if (commissionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } commission_ = value; onChanged(); } else { commissionBuilder_.setMessage(value); } return this; } /** *
       * commission defines the commision the validator received.
       * 
* * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission commission = 1 [(.gogoproto.nullable) = false]; */ public Builder setCommission( cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission.Builder builderForValue) { if (commissionBuilder_ == null) { commission_ = builderForValue.build(); onChanged(); } else { commissionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * commission defines the commision the validator received.
       * 
* * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission commission = 1 [(.gogoproto.nullable) = false]; */ public Builder mergeCommission(cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission value) { if (commissionBuilder_ == null) { if (commission_ != null) { commission_ = cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission.newBuilder(commission_).mergeFrom(value).buildPartial(); } else { commission_ = value; } onChanged(); } else { commissionBuilder_.mergeFrom(value); } return this; } /** *
       * commission defines the commision the validator received.
       * 
* * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission commission = 1 [(.gogoproto.nullable) = false]; */ public Builder clearCommission() { if (commissionBuilder_ == null) { commission_ = null; onChanged(); } else { commission_ = null; commissionBuilder_ = null; } return this; } /** *
       * commission defines the commision the validator received.
       * 
* * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission commission = 1 [(.gogoproto.nullable) = false]; */ public cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission.Builder getCommissionBuilder() { onChanged(); return getCommissionFieldBuilder().getBuilder(); } /** *
       * commission defines the commision the validator received.
       * 
* * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission commission = 1 [(.gogoproto.nullable) = false]; */ public cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommissionOrBuilder getCommissionOrBuilder() { if (commissionBuilder_ != null) { return commissionBuilder_.getMessageOrBuilder(); } else { return commission_ == null ? cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission.getDefaultInstance() : commission_; } } /** *
       * commission defines the commision the validator received.
       * 
* * .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission commission = 1 [(.gogoproto.nullable) = false]; */ private com.google.protobuf.SingleFieldBuilderV3< cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission, cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission.Builder, cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommissionOrBuilder> getCommissionFieldBuilder() { if (commissionBuilder_ == null) { commissionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission, cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission.Builder, cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommissionOrBuilder>( getCommission(), getParentForChildren(), isClean()); commission_ = null; } return commissionBuilder_; } @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.distribution.v1beta1.QueryValidatorCommissionResponse) } // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.QueryValidatorCommissionResponse) private static final cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse(); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryValidatorCommissionResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryValidatorCommissionResponse(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.distribution.v1beta1.QueryOuterClass.QueryValidatorCommissionResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryValidatorSlashesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.QueryValidatorSlashesRequest) com.google.protobuf.MessageOrBuilder { /** *
     * validator_address defines the validator address to query for.
     * 
* * string validator_address = 1; */ java.lang.String getValidatorAddress(); /** *
     * validator_address defines the validator address to query for.
     * 
* * string validator_address = 1; */ com.google.protobuf.ByteString getValidatorAddressBytes(); /** *
     * starting_height defines the optional starting height to query the slashes.
     * 
* * uint64 starting_height = 2; */ long getStartingHeight(); /** *
     * starting_height defines the optional ending height to query the slashes.
     * 
* * uint64 ending_height = 3; */ long getEndingHeight(); /** *
     * 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(); } /** *
   * QueryValidatorSlashesRequest is the request type for the
   * Query/ValidatorSlashes RPC method
   * 
* * Protobuf type {@code cosmos.distribution.v1beta1.QueryValidatorSlashesRequest} */ public static final class QueryValidatorSlashesRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.QueryValidatorSlashesRequest) QueryValidatorSlashesRequestOrBuilder { private static final long serialVersionUID = 0L; // Use QueryValidatorSlashesRequest.newBuilder() to construct. private QueryValidatorSlashesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryValidatorSlashesRequest() { validatorAddress_ = ""; startingHeight_ = 0L; endingHeight_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryValidatorSlashesRequest( 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(); validatorAddress_ = s; break; } case 16: { startingHeight_ = input.readUInt64(); break; } case 24: { endingHeight_ = input.readUInt64(); 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.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest.class, cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest.Builder.class); } public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 1; private volatile java.lang.Object validatorAddress_; /** *
     * validator_address defines the validator address to query for.
     * 
* * string validator_address = 1; */ public java.lang.String getValidatorAddress() { java.lang.Object ref = validatorAddress_; 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(); validatorAddress_ = s; return s; } } /** *
     * validator_address defines the validator address to query for.
     * 
* * string validator_address = 1; */ public com.google.protobuf.ByteString getValidatorAddressBytes() { java.lang.Object ref = validatorAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validatorAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STARTING_HEIGHT_FIELD_NUMBER = 2; private long startingHeight_; /** *
     * starting_height defines the optional starting height to query the slashes.
     * 
* * uint64 starting_height = 2; */ public long getStartingHeight() { return startingHeight_; } public static final int ENDING_HEIGHT_FIELD_NUMBER = 3; private long endingHeight_; /** *
     * starting_height defines the optional ending height to query the slashes.
     * 
* * uint64 ending_height = 3; */ public long getEndingHeight() { return endingHeight_; } 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 (!getValidatorAddressBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, validatorAddress_); } if (startingHeight_ != 0L) { output.writeUInt64(2, startingHeight_); } if (endingHeight_ != 0L) { output.writeUInt64(3, endingHeight_); } 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 (!getValidatorAddressBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, validatorAddress_); } if (startingHeight_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, startingHeight_); } if (endingHeight_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, endingHeight_); } 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.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest)) { return super.equals(obj); } cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest other = (cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest) obj; boolean result = true; result = result && getValidatorAddress() .equals(other.getValidatorAddress()); result = result && (getStartingHeight() == other.getStartingHeight()); result = result && (getEndingHeight() == other.getEndingHeight()); 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_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getValidatorAddress().hashCode(); hash = (37 * hash) + STARTING_HEIGHT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartingHeight()); hash = (37 * hash) + ENDING_HEIGHT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEndingHeight()); 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.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest 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.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest 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.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest 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.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest 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; } /** *
     * QueryValidatorSlashesRequest is the request type for the
     * Query/ValidatorSlashes RPC method
     * 
* * Protobuf type {@code cosmos.distribution.v1beta1.QueryValidatorSlashesRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.QueryValidatorSlashesRequest) cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest.class, cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest.Builder.class); } // Construct using cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest.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(); validatorAddress_ = ""; startingHeight_ = 0L; endingHeight_ = 0L; if (paginationBuilder_ == null) { pagination_ = null; } else { pagination_ = null; paginationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesRequest_descriptor; } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest getDefaultInstanceForType() { return cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest.getDefaultInstance(); } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest build() { cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest buildPartial() { cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest result = new cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest(this); result.validatorAddress_ = validatorAddress_; result.startingHeight_ = startingHeight_; result.endingHeight_ = endingHeight_; 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.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest) { return mergeFrom((cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest other) { if (other == cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest.getDefaultInstance()) return this; if (!other.getValidatorAddress().isEmpty()) { validatorAddress_ = other.validatorAddress_; onChanged(); } if (other.getStartingHeight() != 0L) { setStartingHeight(other.getStartingHeight()); } if (other.getEndingHeight() != 0L) { setEndingHeight(other.getEndingHeight()); } 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.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object validatorAddress_ = ""; /** *
       * validator_address defines the validator address to query for.
       * 
* * string validator_address = 1; */ public java.lang.String getValidatorAddress() { java.lang.Object ref = validatorAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); validatorAddress_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * validator_address defines the validator address to query for.
       * 
* * string validator_address = 1; */ public com.google.protobuf.ByteString getValidatorAddressBytes() { java.lang.Object ref = validatorAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validatorAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * validator_address defines the validator address to query for.
       * 
* * string validator_address = 1; */ public Builder setValidatorAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } validatorAddress_ = value; onChanged(); return this; } /** *
       * validator_address defines the validator address to query for.
       * 
* * string validator_address = 1; */ public Builder clearValidatorAddress() { validatorAddress_ = getDefaultInstance().getValidatorAddress(); onChanged(); return this; } /** *
       * validator_address defines the validator address to query for.
       * 
* * string validator_address = 1; */ public Builder setValidatorAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); validatorAddress_ = value; onChanged(); return this; } private long startingHeight_ ; /** *
       * starting_height defines the optional starting height to query the slashes.
       * 
* * uint64 starting_height = 2; */ public long getStartingHeight() { return startingHeight_; } /** *
       * starting_height defines the optional starting height to query the slashes.
       * 
* * uint64 starting_height = 2; */ public Builder setStartingHeight(long value) { startingHeight_ = value; onChanged(); return this; } /** *
       * starting_height defines the optional starting height to query the slashes.
       * 
* * uint64 starting_height = 2; */ public Builder clearStartingHeight() { startingHeight_ = 0L; onChanged(); return this; } private long endingHeight_ ; /** *
       * starting_height defines the optional ending height to query the slashes.
       * 
* * uint64 ending_height = 3; */ public long getEndingHeight() { return endingHeight_; } /** *
       * starting_height defines the optional ending height to query the slashes.
       * 
* * uint64 ending_height = 3; */ public Builder setEndingHeight(long value) { endingHeight_ = value; onChanged(); return this; } /** *
       * starting_height defines the optional ending height to query the slashes.
       * 
* * uint64 ending_height = 3; */ public Builder clearEndingHeight() { endingHeight_ = 0L; 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.distribution.v1beta1.QueryValidatorSlashesRequest) } // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.QueryValidatorSlashesRequest) private static final cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest(); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryValidatorSlashesRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryValidatorSlashesRequest(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.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryValidatorSlashesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.QueryValidatorSlashesResponse) com.google.protobuf.MessageOrBuilder { /** *
     * slashes defines the slashes the validator received.
     * 
* * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; */ java.util.List getSlashesList(); /** *
     * slashes defines the slashes the validator received.
     * 
* * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; */ cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent getSlashes(int index); /** *
     * slashes defines the slashes the validator received.
     * 
* * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; */ int getSlashesCount(); /** *
     * slashes defines the slashes the validator received.
     * 
* * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; */ java.util.List getSlashesOrBuilderList(); /** *
     * slashes defines the slashes the validator received.
     * 
* * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; */ cosmos.distribution.v1beta1.Distribution.ValidatorSlashEventOrBuilder getSlashesOrBuilder( 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(); } /** *
   * QueryValidatorSlashesResponse is the response type for the
   * Query/ValidatorSlashes RPC method.
   * 
* * Protobuf type {@code cosmos.distribution.v1beta1.QueryValidatorSlashesResponse} */ public static final class QueryValidatorSlashesResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.QueryValidatorSlashesResponse) QueryValidatorSlashesResponseOrBuilder { private static final long serialVersionUID = 0L; // Use QueryValidatorSlashesResponse.newBuilder() to construct. private QueryValidatorSlashesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryValidatorSlashesResponse() { slashes_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryValidatorSlashesResponse( 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)) { slashes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } slashes_.add( input.readMessage(cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent.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)) { slashes_ = java.util.Collections.unmodifiableList(slashes_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse.class, cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse.Builder.class); } private int bitField0_; public static final int SLASHES_FIELD_NUMBER = 1; private java.util.List slashes_; /** *
     * slashes defines the slashes the validator received.
     * 
* * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getSlashesList() { return slashes_; } /** *
     * slashes defines the slashes the validator received.
     * 
* * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getSlashesOrBuilderList() { return slashes_; } /** *
     * slashes defines the slashes the validator received.
     * 
* * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; */ public int getSlashesCount() { return slashes_.size(); } /** *
     * slashes defines the slashes the validator received.
     * 
* * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; */ public cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent getSlashes(int index) { return slashes_.get(index); } /** *
     * slashes defines the slashes the validator received.
     * 
* * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; */ public cosmos.distribution.v1beta1.Distribution.ValidatorSlashEventOrBuilder getSlashesOrBuilder( int index) { return slashes_.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 < slashes_.size(); i++) { output.writeMessage(1, slashes_.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 < slashes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, slashes_.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.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse)) { return super.equals(obj); } cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse other = (cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse) obj; boolean result = true; result = result && getSlashesList() .equals(other.getSlashesList()); 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 (getSlashesCount() > 0) { hash = (37 * hash) + SLASHES_FIELD_NUMBER; hash = (53 * hash) + getSlashesList().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.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse 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.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse 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.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse 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.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse 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; } /** *
     * QueryValidatorSlashesResponse is the response type for the
     * Query/ValidatorSlashes RPC method.
     * 
* * Protobuf type {@code cosmos.distribution.v1beta1.QueryValidatorSlashesResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.QueryValidatorSlashesResponse) cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse.class, cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse.Builder.class); } // Construct using cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSlashesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (slashesBuilder_ == null) { slashes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { slashesBuilder_.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.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesResponse_descriptor; } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse getDefaultInstanceForType() { return cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse.getDefaultInstance(); } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse build() { cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse buildPartial() { cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse result = new cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (slashesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { slashes_ = java.util.Collections.unmodifiableList(slashes_); bitField0_ = (bitField0_ & ~0x00000001); } result.slashes_ = slashes_; } else { result.slashes_ = slashesBuilder_.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.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse) { return mergeFrom((cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse other) { if (other == cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse.getDefaultInstance()) return this; if (slashesBuilder_ == null) { if (!other.slashes_.isEmpty()) { if (slashes_.isEmpty()) { slashes_ = other.slashes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSlashesIsMutable(); slashes_.addAll(other.slashes_); } onChanged(); } } else { if (!other.slashes_.isEmpty()) { if (slashesBuilder_.isEmpty()) { slashesBuilder_.dispose(); slashesBuilder_ = null; slashes_ = other.slashes_; bitField0_ = (bitField0_ & ~0x00000001); slashesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSlashesFieldBuilder() : null; } else { slashesBuilder_.addAllMessages(other.slashes_); } } } 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.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List slashes_ = java.util.Collections.emptyList(); private void ensureSlashesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { slashes_ = new java.util.ArrayList(slashes_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent, cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent.Builder, cosmos.distribution.v1beta1.Distribution.ValidatorSlashEventOrBuilder> slashesBuilder_; /** *
       * slashes defines the slashes the validator received.
       * 
* * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getSlashesList() { if (slashesBuilder_ == null) { return java.util.Collections.unmodifiableList(slashes_); } else { return slashesBuilder_.getMessageList(); } } /** *
       * slashes defines the slashes the validator received.
       * 
* * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; */ public int getSlashesCount() { if (slashesBuilder_ == null) { return slashes_.size(); } else { return slashesBuilder_.getCount(); } } /** *
       * slashes defines the slashes the validator received.
       * 
* * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; */ public cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent getSlashes(int index) { if (slashesBuilder_ == null) { return slashes_.get(index); } else { return slashesBuilder_.getMessage(index); } } /** *
       * slashes defines the slashes the validator received.
       * 
* * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; */ public Builder setSlashes( int index, cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent value) { if (slashesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSlashesIsMutable(); slashes_.set(index, value); onChanged(); } else { slashesBuilder_.setMessage(index, value); } return this; } /** *
       * slashes defines the slashes the validator received.
       * 
* * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; */ public Builder setSlashes( int index, cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent.Builder builderForValue) { if (slashesBuilder_ == null) { ensureSlashesIsMutable(); slashes_.set(index, builderForValue.build()); onChanged(); } else { slashesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * slashes defines the slashes the validator received.
       * 
* * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; */ public Builder addSlashes(cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent value) { if (slashesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSlashesIsMutable(); slashes_.add(value); onChanged(); } else { slashesBuilder_.addMessage(value); } return this; } /** *
       * slashes defines the slashes the validator received.
       * 
* * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; */ public Builder addSlashes( int index, cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent value) { if (slashesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSlashesIsMutable(); slashes_.add(index, value); onChanged(); } else { slashesBuilder_.addMessage(index, value); } return this; } /** *
       * slashes defines the slashes the validator received.
       * 
* * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; */ public Builder addSlashes( cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent.Builder builderForValue) { if (slashesBuilder_ == null) { ensureSlashesIsMutable(); slashes_.add(builderForValue.build()); onChanged(); } else { slashesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * slashes defines the slashes the validator received.
       * 
* * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; */ public Builder addSlashes( int index, cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent.Builder builderForValue) { if (slashesBuilder_ == null) { ensureSlashesIsMutable(); slashes_.add(index, builderForValue.build()); onChanged(); } else { slashesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * slashes defines the slashes the validator received.
       * 
* * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; */ public Builder addAllSlashes( java.lang.Iterable values) { if (slashesBuilder_ == null) { ensureSlashesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, slashes_); onChanged(); } else { slashesBuilder_.addAllMessages(values); } return this; } /** *
       * slashes defines the slashes the validator received.
       * 
* * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; */ public Builder clearSlashes() { if (slashesBuilder_ == null) { slashes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { slashesBuilder_.clear(); } return this; } /** *
       * slashes defines the slashes the validator received.
       * 
* * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; */ public Builder removeSlashes(int index) { if (slashesBuilder_ == null) { ensureSlashesIsMutable(); slashes_.remove(index); onChanged(); } else { slashesBuilder_.remove(index); } return this; } /** *
       * slashes defines the slashes the validator received.
       * 
* * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; */ public cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent.Builder getSlashesBuilder( int index) { return getSlashesFieldBuilder().getBuilder(index); } /** *
       * slashes defines the slashes the validator received.
       * 
* * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; */ public cosmos.distribution.v1beta1.Distribution.ValidatorSlashEventOrBuilder getSlashesOrBuilder( int index) { if (slashesBuilder_ == null) { return slashes_.get(index); } else { return slashesBuilder_.getMessageOrBuilder(index); } } /** *
       * slashes defines the slashes the validator received.
       * 
* * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getSlashesOrBuilderList() { if (slashesBuilder_ != null) { return slashesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(slashes_); } } /** *
       * slashes defines the slashes the validator received.
       * 
* * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; */ public cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent.Builder addSlashesBuilder() { return getSlashesFieldBuilder().addBuilder( cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent.getDefaultInstance()); } /** *
       * slashes defines the slashes the validator received.
       * 
* * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; */ public cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent.Builder addSlashesBuilder( int index) { return getSlashesFieldBuilder().addBuilder( index, cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent.getDefaultInstance()); } /** *
       * slashes defines the slashes the validator received.
       * 
* * repeated .cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getSlashesBuilderList() { return getSlashesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent, cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent.Builder, cosmos.distribution.v1beta1.Distribution.ValidatorSlashEventOrBuilder> getSlashesFieldBuilder() { if (slashesBuilder_ == null) { slashesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent, cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent.Builder, cosmos.distribution.v1beta1.Distribution.ValidatorSlashEventOrBuilder>( slashes_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); slashes_ = null; } return slashesBuilder_; } 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.distribution.v1beta1.QueryValidatorSlashesResponse) } // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.QueryValidatorSlashesResponse) private static final cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse(); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryValidatorSlashesResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryValidatorSlashesResponse(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.distribution.v1beta1.QueryOuterClass.QueryValidatorSlashesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryDelegationRewardsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.QueryDelegationRewardsRequest) com.google.protobuf.MessageOrBuilder { /** *
     * delegator_address defines the delegator address to query for.
     * 
* * string delegator_address = 1; */ java.lang.String getDelegatorAddress(); /** *
     * delegator_address defines the delegator address to query for.
     * 
* * string delegator_address = 1; */ com.google.protobuf.ByteString getDelegatorAddressBytes(); /** *
     * validator_address defines the validator address to query for.
     * 
* * string validator_address = 2; */ java.lang.String getValidatorAddress(); /** *
     * validator_address defines the validator address to query for.
     * 
* * string validator_address = 2; */ com.google.protobuf.ByteString getValidatorAddressBytes(); } /** *
   * QueryDelegationRewardsRequest is the request type for the
   * Query/DelegationRewards RPC method.
   * 
* * Protobuf type {@code cosmos.distribution.v1beta1.QueryDelegationRewardsRequest} */ public static final class QueryDelegationRewardsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.QueryDelegationRewardsRequest) QueryDelegationRewardsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use QueryDelegationRewardsRequest.newBuilder() to construct. private QueryDelegationRewardsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryDelegationRewardsRequest() { delegatorAddress_ = ""; validatorAddress_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryDelegationRewardsRequest( 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(); delegatorAddress_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); validatorAddress_ = 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.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest.class, cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest.Builder.class); } public static final int DELEGATOR_ADDRESS_FIELD_NUMBER = 1; private volatile java.lang.Object delegatorAddress_; /** *
     * delegator_address defines the delegator address to query for.
     * 
* * string delegator_address = 1; */ public java.lang.String getDelegatorAddress() { java.lang.Object ref = delegatorAddress_; 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(); delegatorAddress_ = s; return s; } } /** *
     * delegator_address defines the delegator address to query for.
     * 
* * string delegator_address = 1; */ public com.google.protobuf.ByteString getDelegatorAddressBytes() { java.lang.Object ref = delegatorAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); delegatorAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 2; private volatile java.lang.Object validatorAddress_; /** *
     * validator_address defines the validator address to query for.
     * 
* * string validator_address = 2; */ public java.lang.String getValidatorAddress() { java.lang.Object ref = validatorAddress_; 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(); validatorAddress_ = s; return s; } } /** *
     * validator_address defines the validator address to query for.
     * 
* * string validator_address = 2; */ public com.google.protobuf.ByteString getValidatorAddressBytes() { java.lang.Object ref = validatorAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validatorAddress_ = 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 (!getDelegatorAddressBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddress_); } if (!getValidatorAddressBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, validatorAddress_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getDelegatorAddressBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddress_); } if (!getValidatorAddressBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, validatorAddress_); } 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.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest)) { return super.equals(obj); } cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest other = (cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest) obj; boolean result = true; result = result && getDelegatorAddress() .equals(other.getDelegatorAddress()); result = result && getValidatorAddress() .equals(other.getValidatorAddress()); 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_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getDelegatorAddress().hashCode(); hash = (37 * hash) + VALIDATOR_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getValidatorAddress().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest 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.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest 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.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest 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.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest 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; } /** *
     * QueryDelegationRewardsRequest is the request type for the
     * Query/DelegationRewards RPC method.
     * 
* * Protobuf type {@code cosmos.distribution.v1beta1.QueryDelegationRewardsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.QueryDelegationRewardsRequest) cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest.class, cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest.Builder.class); } // Construct using cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest.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(); delegatorAddress_ = ""; validatorAddress_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsRequest_descriptor; } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest getDefaultInstanceForType() { return cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest.getDefaultInstance(); } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest build() { cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest buildPartial() { cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest result = new cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest(this); result.delegatorAddress_ = delegatorAddress_; result.validatorAddress_ = validatorAddress_; 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.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest) { return mergeFrom((cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest other) { if (other == cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest.getDefaultInstance()) return this; if (!other.getDelegatorAddress().isEmpty()) { delegatorAddress_ = other.delegatorAddress_; onChanged(); } if (!other.getValidatorAddress().isEmpty()) { validatorAddress_ = other.validatorAddress_; 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.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object delegatorAddress_ = ""; /** *
       * delegator_address defines the delegator address to query for.
       * 
* * string delegator_address = 1; */ public java.lang.String getDelegatorAddress() { java.lang.Object ref = delegatorAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); delegatorAddress_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * delegator_address defines the delegator address to query for.
       * 
* * string delegator_address = 1; */ public com.google.protobuf.ByteString getDelegatorAddressBytes() { java.lang.Object ref = delegatorAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); delegatorAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * delegator_address defines the delegator address to query for.
       * 
* * string delegator_address = 1; */ public Builder setDelegatorAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } delegatorAddress_ = value; onChanged(); return this; } /** *
       * delegator_address defines the delegator address to query for.
       * 
* * string delegator_address = 1; */ public Builder clearDelegatorAddress() { delegatorAddress_ = getDefaultInstance().getDelegatorAddress(); onChanged(); return this; } /** *
       * delegator_address defines the delegator address to query for.
       * 
* * string delegator_address = 1; */ public Builder setDelegatorAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); delegatorAddress_ = value; onChanged(); return this; } private java.lang.Object validatorAddress_ = ""; /** *
       * validator_address defines the validator address to query for.
       * 
* * string validator_address = 2; */ public java.lang.String getValidatorAddress() { java.lang.Object ref = validatorAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); validatorAddress_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * validator_address defines the validator address to query for.
       * 
* * string validator_address = 2; */ public com.google.protobuf.ByteString getValidatorAddressBytes() { java.lang.Object ref = validatorAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validatorAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * validator_address defines the validator address to query for.
       * 
* * string validator_address = 2; */ public Builder setValidatorAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } validatorAddress_ = value; onChanged(); return this; } /** *
       * validator_address defines the validator address to query for.
       * 
* * string validator_address = 2; */ public Builder clearValidatorAddress() { validatorAddress_ = getDefaultInstance().getValidatorAddress(); onChanged(); return this; } /** *
       * validator_address defines the validator address to query for.
       * 
* * string validator_address = 2; */ public Builder setValidatorAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); validatorAddress_ = 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.distribution.v1beta1.QueryDelegationRewardsRequest) } // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.QueryDelegationRewardsRequest) private static final cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest(); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryDelegationRewardsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryDelegationRewardsRequest(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.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryDelegationRewardsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.QueryDelegationRewardsResponse) com.google.protobuf.MessageOrBuilder { /** *
     * rewards defines the rewards accrued by a delegation.
     * 
* * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ java.util.List getRewardsList(); /** *
     * rewards defines the rewards accrued by a delegation.
     * 
* * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ cosmos.base.v1beta1.CoinOuterClass.DecCoin getRewards(int index); /** *
     * rewards defines the rewards accrued by a delegation.
     * 
* * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ int getRewardsCount(); /** *
     * rewards defines the rewards accrued by a delegation.
     * 
* * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ java.util.List getRewardsOrBuilderList(); /** *
     * rewards defines the rewards accrued by a delegation.
     * 
* * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ cosmos.base.v1beta1.CoinOuterClass.DecCoinOrBuilder getRewardsOrBuilder( int index); } /** *
   * QueryDelegationRewardsResponse is the response type for the
   * Query/DelegationRewards RPC method.
   * 
* * Protobuf type {@code cosmos.distribution.v1beta1.QueryDelegationRewardsResponse} */ public static final class QueryDelegationRewardsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.QueryDelegationRewardsResponse) QueryDelegationRewardsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use QueryDelegationRewardsResponse.newBuilder() to construct. private QueryDelegationRewardsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryDelegationRewardsResponse() { rewards_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryDelegationRewardsResponse( 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)) { rewards_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } rewards_.add( input.readMessage(cosmos.base.v1beta1.CoinOuterClass.DecCoin.parser(), extensionRegistry)); 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)) { rewards_ = java.util.Collections.unmodifiableList(rewards_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse.class, cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse.Builder.class); } public static final int REWARDS_FIELD_NUMBER = 1; private java.util.List rewards_; /** *
     * rewards defines the rewards accrued by a delegation.
     * 
* * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public java.util.List getRewardsList() { return rewards_; } /** *
     * rewards defines the rewards accrued by a delegation.
     * 
* * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public java.util.List getRewardsOrBuilderList() { return rewards_; } /** *
     * rewards defines the rewards accrued by a delegation.
     * 
* * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public int getRewardsCount() { return rewards_.size(); } /** *
     * rewards defines the rewards accrued by a delegation.
     * 
* * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public cosmos.base.v1beta1.CoinOuterClass.DecCoin getRewards(int index) { return rewards_.get(index); } /** *
     * rewards defines the rewards accrued by a delegation.
     * 
* * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public cosmos.base.v1beta1.CoinOuterClass.DecCoinOrBuilder getRewardsOrBuilder( int index) { return rewards_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < rewards_.size(); i++) { output.writeMessage(1, rewards_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < rewards_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, rewards_.get(i)); } 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.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse)) { return super.equals(obj); } cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse other = (cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse) obj; boolean result = true; result = result && getRewardsList() .equals(other.getRewardsList()); 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 (getRewardsCount() > 0) { hash = (37 * hash) + REWARDS_FIELD_NUMBER; hash = (53 * hash) + getRewardsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse 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.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse 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.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse 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.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse 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; } /** *
     * QueryDelegationRewardsResponse is the response type for the
     * Query/DelegationRewards RPC method.
     * 
* * Protobuf type {@code cosmos.distribution.v1beta1.QueryDelegationRewardsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.QueryDelegationRewardsResponse) cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse.class, cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse.Builder.class); } // Construct using cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRewardsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (rewardsBuilder_ == null) { rewards_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { rewardsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsResponse_descriptor; } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse getDefaultInstanceForType() { return cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse.getDefaultInstance(); } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse build() { cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse buildPartial() { cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse result = new cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse(this); int from_bitField0_ = bitField0_; if (rewardsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { rewards_ = java.util.Collections.unmodifiableList(rewards_); bitField0_ = (bitField0_ & ~0x00000001); } result.rewards_ = rewards_; } else { result.rewards_ = rewardsBuilder_.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.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse) { return mergeFrom((cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse other) { if (other == cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse.getDefaultInstance()) return this; if (rewardsBuilder_ == null) { if (!other.rewards_.isEmpty()) { if (rewards_.isEmpty()) { rewards_ = other.rewards_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRewardsIsMutable(); rewards_.addAll(other.rewards_); } onChanged(); } } else { if (!other.rewards_.isEmpty()) { if (rewardsBuilder_.isEmpty()) { rewardsBuilder_.dispose(); rewardsBuilder_ = null; rewards_ = other.rewards_; bitField0_ = (bitField0_ & ~0x00000001); rewardsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRewardsFieldBuilder() : null; } else { rewardsBuilder_.addAllMessages(other.rewards_); } } } 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.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List rewards_ = java.util.Collections.emptyList(); private void ensureRewardsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { rewards_ = new java.util.ArrayList(rewards_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< cosmos.base.v1beta1.CoinOuterClass.DecCoin, cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder, cosmos.base.v1beta1.CoinOuterClass.DecCoinOrBuilder> rewardsBuilder_; /** *
       * rewards defines the rewards accrued by a delegation.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public java.util.List getRewardsList() { if (rewardsBuilder_ == null) { return java.util.Collections.unmodifiableList(rewards_); } else { return rewardsBuilder_.getMessageList(); } } /** *
       * rewards defines the rewards accrued by a delegation.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public int getRewardsCount() { if (rewardsBuilder_ == null) { return rewards_.size(); } else { return rewardsBuilder_.getCount(); } } /** *
       * rewards defines the rewards accrued by a delegation.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public cosmos.base.v1beta1.CoinOuterClass.DecCoin getRewards(int index) { if (rewardsBuilder_ == null) { return rewards_.get(index); } else { return rewardsBuilder_.getMessage(index); } } /** *
       * rewards defines the rewards accrued by a delegation.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public Builder setRewards( int index, cosmos.base.v1beta1.CoinOuterClass.DecCoin value) { if (rewardsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRewardsIsMutable(); rewards_.set(index, value); onChanged(); } else { rewardsBuilder_.setMessage(index, value); } return this; } /** *
       * rewards defines the rewards accrued by a delegation.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public Builder setRewards( int index, cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder builderForValue) { if (rewardsBuilder_ == null) { ensureRewardsIsMutable(); rewards_.set(index, builderForValue.build()); onChanged(); } else { rewardsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * rewards defines the rewards accrued by a delegation.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public Builder addRewards(cosmos.base.v1beta1.CoinOuterClass.DecCoin value) { if (rewardsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRewardsIsMutable(); rewards_.add(value); onChanged(); } else { rewardsBuilder_.addMessage(value); } return this; } /** *
       * rewards defines the rewards accrued by a delegation.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public Builder addRewards( int index, cosmos.base.v1beta1.CoinOuterClass.DecCoin value) { if (rewardsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRewardsIsMutable(); rewards_.add(index, value); onChanged(); } else { rewardsBuilder_.addMessage(index, value); } return this; } /** *
       * rewards defines the rewards accrued by a delegation.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public Builder addRewards( cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder builderForValue) { if (rewardsBuilder_ == null) { ensureRewardsIsMutable(); rewards_.add(builderForValue.build()); onChanged(); } else { rewardsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * rewards defines the rewards accrued by a delegation.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public Builder addRewards( int index, cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder builderForValue) { if (rewardsBuilder_ == null) { ensureRewardsIsMutable(); rewards_.add(index, builderForValue.build()); onChanged(); } else { rewardsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * rewards defines the rewards accrued by a delegation.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public Builder addAllRewards( java.lang.Iterable values) { if (rewardsBuilder_ == null) { ensureRewardsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, rewards_); onChanged(); } else { rewardsBuilder_.addAllMessages(values); } return this; } /** *
       * rewards defines the rewards accrued by a delegation.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public Builder clearRewards() { if (rewardsBuilder_ == null) { rewards_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { rewardsBuilder_.clear(); } return this; } /** *
       * rewards defines the rewards accrued by a delegation.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public Builder removeRewards(int index) { if (rewardsBuilder_ == null) { ensureRewardsIsMutable(); rewards_.remove(index); onChanged(); } else { rewardsBuilder_.remove(index); } return this; } /** *
       * rewards defines the rewards accrued by a delegation.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder getRewardsBuilder( int index) { return getRewardsFieldBuilder().getBuilder(index); } /** *
       * rewards defines the rewards accrued by a delegation.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public cosmos.base.v1beta1.CoinOuterClass.DecCoinOrBuilder getRewardsOrBuilder( int index) { if (rewardsBuilder_ == null) { return rewards_.get(index); } else { return rewardsBuilder_.getMessageOrBuilder(index); } } /** *
       * rewards defines the rewards accrued by a delegation.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public java.util.List getRewardsOrBuilderList() { if (rewardsBuilder_ != null) { return rewardsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(rewards_); } } /** *
       * rewards defines the rewards accrued by a delegation.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder addRewardsBuilder() { return getRewardsFieldBuilder().addBuilder( cosmos.base.v1beta1.CoinOuterClass.DecCoin.getDefaultInstance()); } /** *
       * rewards defines the rewards accrued by a delegation.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder addRewardsBuilder( int index) { return getRewardsFieldBuilder().addBuilder( index, cosmos.base.v1beta1.CoinOuterClass.DecCoin.getDefaultInstance()); } /** *
       * rewards defines the rewards accrued by a delegation.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin rewards = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public java.util.List getRewardsBuilderList() { return getRewardsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< cosmos.base.v1beta1.CoinOuterClass.DecCoin, cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder, cosmos.base.v1beta1.CoinOuterClass.DecCoinOrBuilder> getRewardsFieldBuilder() { if (rewardsBuilder_ == null) { rewardsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< cosmos.base.v1beta1.CoinOuterClass.DecCoin, cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder, cosmos.base.v1beta1.CoinOuterClass.DecCoinOrBuilder>( rewards_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); rewards_ = null; } return rewardsBuilder_; } @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.distribution.v1beta1.QueryDelegationRewardsResponse) } // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.QueryDelegationRewardsResponse) private static final cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse(); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryDelegationRewardsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryDelegationRewardsResponse(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.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryDelegationTotalRewardsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest) com.google.protobuf.MessageOrBuilder { /** *
     * delegator_address defines the delegator address to query for.
     * 
* * string delegator_address = 1; */ java.lang.String getDelegatorAddress(); /** *
     * delegator_address defines the delegator address to query for.
     * 
* * string delegator_address = 1; */ com.google.protobuf.ByteString getDelegatorAddressBytes(); } /** *
   * QueryDelegationTotalRewardsRequest is the request type for the
   * Query/DelegationTotalRewards RPC method.
   * 
* * Protobuf type {@code cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest} */ public static final class QueryDelegationTotalRewardsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest) QueryDelegationTotalRewardsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use QueryDelegationTotalRewardsRequest.newBuilder() to construct. private QueryDelegationTotalRewardsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryDelegationTotalRewardsRequest() { delegatorAddress_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryDelegationTotalRewardsRequest( 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(); delegatorAddress_ = 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.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest.class, cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest.Builder.class); } public static final int DELEGATOR_ADDRESS_FIELD_NUMBER = 1; private volatile java.lang.Object delegatorAddress_; /** *
     * delegator_address defines the delegator address to query for.
     * 
* * string delegator_address = 1; */ public java.lang.String getDelegatorAddress() { java.lang.Object ref = delegatorAddress_; 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(); delegatorAddress_ = s; return s; } } /** *
     * delegator_address defines the delegator address to query for.
     * 
* * string delegator_address = 1; */ public com.google.protobuf.ByteString getDelegatorAddressBytes() { java.lang.Object ref = delegatorAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); delegatorAddress_ = 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 (!getDelegatorAddressBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddress_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getDelegatorAddressBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddress_); } 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.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest)) { return super.equals(obj); } cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest other = (cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest) obj; boolean result = true; result = result && getDelegatorAddress() .equals(other.getDelegatorAddress()); 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_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getDelegatorAddress().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest 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.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest 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.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest 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.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest 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; } /** *
     * QueryDelegationTotalRewardsRequest is the request type for the
     * Query/DelegationTotalRewards RPC method.
     * 
* * Protobuf type {@code cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest) cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest.class, cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest.Builder.class); } // Construct using cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest.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(); delegatorAddress_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsRequest_descriptor; } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest getDefaultInstanceForType() { return cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest.getDefaultInstance(); } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest build() { cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest buildPartial() { cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest result = new cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest(this); result.delegatorAddress_ = delegatorAddress_; 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.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest) { return mergeFrom((cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest other) { if (other == cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest.getDefaultInstance()) return this; if (!other.getDelegatorAddress().isEmpty()) { delegatorAddress_ = other.delegatorAddress_; 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.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object delegatorAddress_ = ""; /** *
       * delegator_address defines the delegator address to query for.
       * 
* * string delegator_address = 1; */ public java.lang.String getDelegatorAddress() { java.lang.Object ref = delegatorAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); delegatorAddress_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * delegator_address defines the delegator address to query for.
       * 
* * string delegator_address = 1; */ public com.google.protobuf.ByteString getDelegatorAddressBytes() { java.lang.Object ref = delegatorAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); delegatorAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * delegator_address defines the delegator address to query for.
       * 
* * string delegator_address = 1; */ public Builder setDelegatorAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } delegatorAddress_ = value; onChanged(); return this; } /** *
       * delegator_address defines the delegator address to query for.
       * 
* * string delegator_address = 1; */ public Builder clearDelegatorAddress() { delegatorAddress_ = getDefaultInstance().getDelegatorAddress(); onChanged(); return this; } /** *
       * delegator_address defines the delegator address to query for.
       * 
* * string delegator_address = 1; */ public Builder setDelegatorAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); delegatorAddress_ = 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.distribution.v1beta1.QueryDelegationTotalRewardsRequest) } // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest) private static final cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest(); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryDelegationTotalRewardsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryDelegationTotalRewardsRequest(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.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryDelegationTotalRewardsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse) com.google.protobuf.MessageOrBuilder { /** *
     * rewards defines all the rewards accrued by a delegator.
     * 
* * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; */ java.util.List getRewardsList(); /** *
     * rewards defines all the rewards accrued by a delegator.
     * 
* * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; */ cosmos.distribution.v1beta1.Distribution.DelegationDelegatorReward getRewards(int index); /** *
     * rewards defines all the rewards accrued by a delegator.
     * 
* * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; */ int getRewardsCount(); /** *
     * rewards defines all the rewards accrued by a delegator.
     * 
* * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; */ java.util.List getRewardsOrBuilderList(); /** *
     * rewards defines all the rewards accrued by a delegator.
     * 
* * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; */ cosmos.distribution.v1beta1.Distribution.DelegationDelegatorRewardOrBuilder getRewardsOrBuilder( int index); /** *
     * total defines the sum of all the rewards.
     * 
* * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ java.util.List getTotalList(); /** *
     * total defines the sum of all the rewards.
     * 
* * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ cosmos.base.v1beta1.CoinOuterClass.DecCoin getTotal(int index); /** *
     * total defines the sum of all the rewards.
     * 
* * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ int getTotalCount(); /** *
     * total defines the sum of all the rewards.
     * 
* * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ java.util.List getTotalOrBuilderList(); /** *
     * total defines the sum of all the rewards.
     * 
* * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ cosmos.base.v1beta1.CoinOuterClass.DecCoinOrBuilder getTotalOrBuilder( int index); } /** *
   * QueryDelegationTotalRewardsResponse is the response type for the
   * Query/DelegationTotalRewards RPC method.
   * 
* * Protobuf type {@code cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse} */ public static final class QueryDelegationTotalRewardsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse) QueryDelegationTotalRewardsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use QueryDelegationTotalRewardsResponse.newBuilder() to construct. private QueryDelegationTotalRewardsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryDelegationTotalRewardsResponse() { rewards_ = java.util.Collections.emptyList(); total_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryDelegationTotalRewardsResponse( 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)) { rewards_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } rewards_.add( input.readMessage(cosmos.distribution.v1beta1.Distribution.DelegationDelegatorReward.parser(), extensionRegistry)); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { total_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } total_.add( input.readMessage(cosmos.base.v1beta1.CoinOuterClass.DecCoin.parser(), extensionRegistry)); 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)) { rewards_ = java.util.Collections.unmodifiableList(rewards_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { total_ = java.util.Collections.unmodifiableList(total_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse.class, cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse.Builder.class); } public static final int REWARDS_FIELD_NUMBER = 1; private java.util.List rewards_; /** *
     * rewards defines all the rewards accrued by a delegator.
     * 
* * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getRewardsList() { return rewards_; } /** *
     * rewards defines all the rewards accrued by a delegator.
     * 
* * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getRewardsOrBuilderList() { return rewards_; } /** *
     * rewards defines all the rewards accrued by a delegator.
     * 
* * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; */ public int getRewardsCount() { return rewards_.size(); } /** *
     * rewards defines all the rewards accrued by a delegator.
     * 
* * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; */ public cosmos.distribution.v1beta1.Distribution.DelegationDelegatorReward getRewards(int index) { return rewards_.get(index); } /** *
     * rewards defines all the rewards accrued by a delegator.
     * 
* * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; */ public cosmos.distribution.v1beta1.Distribution.DelegationDelegatorRewardOrBuilder getRewardsOrBuilder( int index) { return rewards_.get(index); } public static final int TOTAL_FIELD_NUMBER = 2; private java.util.List total_; /** *
     * total defines the sum of all the rewards.
     * 
* * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public java.util.List getTotalList() { return total_; } /** *
     * total defines the sum of all the rewards.
     * 
* * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public java.util.List getTotalOrBuilderList() { return total_; } /** *
     * total defines the sum of all the rewards.
     * 
* * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public int getTotalCount() { return total_.size(); } /** *
     * total defines the sum of all the rewards.
     * 
* * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public cosmos.base.v1beta1.CoinOuterClass.DecCoin getTotal(int index) { return total_.get(index); } /** *
     * total defines the sum of all the rewards.
     * 
* * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public cosmos.base.v1beta1.CoinOuterClass.DecCoinOrBuilder getTotalOrBuilder( int index) { return total_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < rewards_.size(); i++) { output.writeMessage(1, rewards_.get(i)); } for (int i = 0; i < total_.size(); i++) { output.writeMessage(2, total_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < rewards_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, rewards_.get(i)); } for (int i = 0; i < total_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, total_.get(i)); } 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.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse)) { return super.equals(obj); } cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse other = (cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse) obj; boolean result = true; result = result && getRewardsList() .equals(other.getRewardsList()); result = result && getTotalList() .equals(other.getTotalList()); 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 (getRewardsCount() > 0) { hash = (37 * hash) + REWARDS_FIELD_NUMBER; hash = (53 * hash) + getRewardsList().hashCode(); } if (getTotalCount() > 0) { hash = (37 * hash) + TOTAL_FIELD_NUMBER; hash = (53 * hash) + getTotalList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse 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.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse 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.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse 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.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse 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; } /** *
     * QueryDelegationTotalRewardsResponse is the response type for the
     * Query/DelegationTotalRewards RPC method.
     * 
* * Protobuf type {@code cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse) cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse.class, cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse.Builder.class); } // Construct using cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRewardsFieldBuilder(); getTotalFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (rewardsBuilder_ == null) { rewards_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { rewardsBuilder_.clear(); } if (totalBuilder_ == null) { total_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { totalBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsResponse_descriptor; } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse getDefaultInstanceForType() { return cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse.getDefaultInstance(); } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse build() { cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse buildPartial() { cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse result = new cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse(this); int from_bitField0_ = bitField0_; if (rewardsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { rewards_ = java.util.Collections.unmodifiableList(rewards_); bitField0_ = (bitField0_ & ~0x00000001); } result.rewards_ = rewards_; } else { result.rewards_ = rewardsBuilder_.build(); } if (totalBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { total_ = java.util.Collections.unmodifiableList(total_); bitField0_ = (bitField0_ & ~0x00000002); } result.total_ = total_; } else { result.total_ = totalBuilder_.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.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse) { return mergeFrom((cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse other) { if (other == cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse.getDefaultInstance()) return this; if (rewardsBuilder_ == null) { if (!other.rewards_.isEmpty()) { if (rewards_.isEmpty()) { rewards_ = other.rewards_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRewardsIsMutable(); rewards_.addAll(other.rewards_); } onChanged(); } } else { if (!other.rewards_.isEmpty()) { if (rewardsBuilder_.isEmpty()) { rewardsBuilder_.dispose(); rewardsBuilder_ = null; rewards_ = other.rewards_; bitField0_ = (bitField0_ & ~0x00000001); rewardsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRewardsFieldBuilder() : null; } else { rewardsBuilder_.addAllMessages(other.rewards_); } } } if (totalBuilder_ == null) { if (!other.total_.isEmpty()) { if (total_.isEmpty()) { total_ = other.total_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureTotalIsMutable(); total_.addAll(other.total_); } onChanged(); } } else { if (!other.total_.isEmpty()) { if (totalBuilder_.isEmpty()) { totalBuilder_.dispose(); totalBuilder_ = null; total_ = other.total_; bitField0_ = (bitField0_ & ~0x00000002); totalBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTotalFieldBuilder() : null; } else { totalBuilder_.addAllMessages(other.total_); } } } 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.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List rewards_ = java.util.Collections.emptyList(); private void ensureRewardsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { rewards_ = new java.util.ArrayList(rewards_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< cosmos.distribution.v1beta1.Distribution.DelegationDelegatorReward, cosmos.distribution.v1beta1.Distribution.DelegationDelegatorReward.Builder, cosmos.distribution.v1beta1.Distribution.DelegationDelegatorRewardOrBuilder> rewardsBuilder_; /** *
       * rewards defines all the rewards accrued by a delegator.
       * 
* * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getRewardsList() { if (rewardsBuilder_ == null) { return java.util.Collections.unmodifiableList(rewards_); } else { return rewardsBuilder_.getMessageList(); } } /** *
       * rewards defines all the rewards accrued by a delegator.
       * 
* * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; */ public int getRewardsCount() { if (rewardsBuilder_ == null) { return rewards_.size(); } else { return rewardsBuilder_.getCount(); } } /** *
       * rewards defines all the rewards accrued by a delegator.
       * 
* * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; */ public cosmos.distribution.v1beta1.Distribution.DelegationDelegatorReward getRewards(int index) { if (rewardsBuilder_ == null) { return rewards_.get(index); } else { return rewardsBuilder_.getMessage(index); } } /** *
       * rewards defines all the rewards accrued by a delegator.
       * 
* * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; */ public Builder setRewards( int index, cosmos.distribution.v1beta1.Distribution.DelegationDelegatorReward value) { if (rewardsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRewardsIsMutable(); rewards_.set(index, value); onChanged(); } else { rewardsBuilder_.setMessage(index, value); } return this; } /** *
       * rewards defines all the rewards accrued by a delegator.
       * 
* * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; */ public Builder setRewards( int index, cosmos.distribution.v1beta1.Distribution.DelegationDelegatorReward.Builder builderForValue) { if (rewardsBuilder_ == null) { ensureRewardsIsMutable(); rewards_.set(index, builderForValue.build()); onChanged(); } else { rewardsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * rewards defines all the rewards accrued by a delegator.
       * 
* * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; */ public Builder addRewards(cosmos.distribution.v1beta1.Distribution.DelegationDelegatorReward value) { if (rewardsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRewardsIsMutable(); rewards_.add(value); onChanged(); } else { rewardsBuilder_.addMessage(value); } return this; } /** *
       * rewards defines all the rewards accrued by a delegator.
       * 
* * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; */ public Builder addRewards( int index, cosmos.distribution.v1beta1.Distribution.DelegationDelegatorReward value) { if (rewardsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRewardsIsMutable(); rewards_.add(index, value); onChanged(); } else { rewardsBuilder_.addMessage(index, value); } return this; } /** *
       * rewards defines all the rewards accrued by a delegator.
       * 
* * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; */ public Builder addRewards( cosmos.distribution.v1beta1.Distribution.DelegationDelegatorReward.Builder builderForValue) { if (rewardsBuilder_ == null) { ensureRewardsIsMutable(); rewards_.add(builderForValue.build()); onChanged(); } else { rewardsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * rewards defines all the rewards accrued by a delegator.
       * 
* * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; */ public Builder addRewards( int index, cosmos.distribution.v1beta1.Distribution.DelegationDelegatorReward.Builder builderForValue) { if (rewardsBuilder_ == null) { ensureRewardsIsMutable(); rewards_.add(index, builderForValue.build()); onChanged(); } else { rewardsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * rewards defines all the rewards accrued by a delegator.
       * 
* * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; */ public Builder addAllRewards( java.lang.Iterable values) { if (rewardsBuilder_ == null) { ensureRewardsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, rewards_); onChanged(); } else { rewardsBuilder_.addAllMessages(values); } return this; } /** *
       * rewards defines all the rewards accrued by a delegator.
       * 
* * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; */ public Builder clearRewards() { if (rewardsBuilder_ == null) { rewards_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { rewardsBuilder_.clear(); } return this; } /** *
       * rewards defines all the rewards accrued by a delegator.
       * 
* * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; */ public Builder removeRewards(int index) { if (rewardsBuilder_ == null) { ensureRewardsIsMutable(); rewards_.remove(index); onChanged(); } else { rewardsBuilder_.remove(index); } return this; } /** *
       * rewards defines all the rewards accrued by a delegator.
       * 
* * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; */ public cosmos.distribution.v1beta1.Distribution.DelegationDelegatorReward.Builder getRewardsBuilder( int index) { return getRewardsFieldBuilder().getBuilder(index); } /** *
       * rewards defines all the rewards accrued by a delegator.
       * 
* * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; */ public cosmos.distribution.v1beta1.Distribution.DelegationDelegatorRewardOrBuilder getRewardsOrBuilder( int index) { if (rewardsBuilder_ == null) { return rewards_.get(index); } else { return rewardsBuilder_.getMessageOrBuilder(index); } } /** *
       * rewards defines all the rewards accrued by a delegator.
       * 
* * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getRewardsOrBuilderList() { if (rewardsBuilder_ != null) { return rewardsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(rewards_); } } /** *
       * rewards defines all the rewards accrued by a delegator.
       * 
* * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; */ public cosmos.distribution.v1beta1.Distribution.DelegationDelegatorReward.Builder addRewardsBuilder() { return getRewardsFieldBuilder().addBuilder( cosmos.distribution.v1beta1.Distribution.DelegationDelegatorReward.getDefaultInstance()); } /** *
       * rewards defines all the rewards accrued by a delegator.
       * 
* * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; */ public cosmos.distribution.v1beta1.Distribution.DelegationDelegatorReward.Builder addRewardsBuilder( int index) { return getRewardsFieldBuilder().addBuilder( index, cosmos.distribution.v1beta1.Distribution.DelegationDelegatorReward.getDefaultInstance()); } /** *
       * rewards defines all the rewards accrued by a delegator.
       * 
* * repeated .cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getRewardsBuilderList() { return getRewardsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< cosmos.distribution.v1beta1.Distribution.DelegationDelegatorReward, cosmos.distribution.v1beta1.Distribution.DelegationDelegatorReward.Builder, cosmos.distribution.v1beta1.Distribution.DelegationDelegatorRewardOrBuilder> getRewardsFieldBuilder() { if (rewardsBuilder_ == null) { rewardsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< cosmos.distribution.v1beta1.Distribution.DelegationDelegatorReward, cosmos.distribution.v1beta1.Distribution.DelegationDelegatorReward.Builder, cosmos.distribution.v1beta1.Distribution.DelegationDelegatorRewardOrBuilder>( rewards_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); rewards_ = null; } return rewardsBuilder_; } private java.util.List total_ = java.util.Collections.emptyList(); private void ensureTotalIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { total_ = new java.util.ArrayList(total_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< cosmos.base.v1beta1.CoinOuterClass.DecCoin, cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder, cosmos.base.v1beta1.CoinOuterClass.DecCoinOrBuilder> totalBuilder_; /** *
       * total defines the sum of all the rewards.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public java.util.List getTotalList() { if (totalBuilder_ == null) { return java.util.Collections.unmodifiableList(total_); } else { return totalBuilder_.getMessageList(); } } /** *
       * total defines the sum of all the rewards.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public int getTotalCount() { if (totalBuilder_ == null) { return total_.size(); } else { return totalBuilder_.getCount(); } } /** *
       * total defines the sum of all the rewards.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public cosmos.base.v1beta1.CoinOuterClass.DecCoin getTotal(int index) { if (totalBuilder_ == null) { return total_.get(index); } else { return totalBuilder_.getMessage(index); } } /** *
       * total defines the sum of all the rewards.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public Builder setTotal( int index, cosmos.base.v1beta1.CoinOuterClass.DecCoin value) { if (totalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTotalIsMutable(); total_.set(index, value); onChanged(); } else { totalBuilder_.setMessage(index, value); } return this; } /** *
       * total defines the sum of all the rewards.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public Builder setTotal( int index, cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder builderForValue) { if (totalBuilder_ == null) { ensureTotalIsMutable(); total_.set(index, builderForValue.build()); onChanged(); } else { totalBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * total defines the sum of all the rewards.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public Builder addTotal(cosmos.base.v1beta1.CoinOuterClass.DecCoin value) { if (totalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTotalIsMutable(); total_.add(value); onChanged(); } else { totalBuilder_.addMessage(value); } return this; } /** *
       * total defines the sum of all the rewards.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public Builder addTotal( int index, cosmos.base.v1beta1.CoinOuterClass.DecCoin value) { if (totalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTotalIsMutable(); total_.add(index, value); onChanged(); } else { totalBuilder_.addMessage(index, value); } return this; } /** *
       * total defines the sum of all the rewards.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public Builder addTotal( cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder builderForValue) { if (totalBuilder_ == null) { ensureTotalIsMutable(); total_.add(builderForValue.build()); onChanged(); } else { totalBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * total defines the sum of all the rewards.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public Builder addTotal( int index, cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder builderForValue) { if (totalBuilder_ == null) { ensureTotalIsMutable(); total_.add(index, builderForValue.build()); onChanged(); } else { totalBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * total defines the sum of all the rewards.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public Builder addAllTotal( java.lang.Iterable values) { if (totalBuilder_ == null) { ensureTotalIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, total_); onChanged(); } else { totalBuilder_.addAllMessages(values); } return this; } /** *
       * total defines the sum of all the rewards.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public Builder clearTotal() { if (totalBuilder_ == null) { total_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { totalBuilder_.clear(); } return this; } /** *
       * total defines the sum of all the rewards.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public Builder removeTotal(int index) { if (totalBuilder_ == null) { ensureTotalIsMutable(); total_.remove(index); onChanged(); } else { totalBuilder_.remove(index); } return this; } /** *
       * total defines the sum of all the rewards.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder getTotalBuilder( int index) { return getTotalFieldBuilder().getBuilder(index); } /** *
       * total defines the sum of all the rewards.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public cosmos.base.v1beta1.CoinOuterClass.DecCoinOrBuilder getTotalOrBuilder( int index) { if (totalBuilder_ == null) { return total_.get(index); } else { return totalBuilder_.getMessageOrBuilder(index); } } /** *
       * total defines the sum of all the rewards.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public java.util.List getTotalOrBuilderList() { if (totalBuilder_ != null) { return totalBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(total_); } } /** *
       * total defines the sum of all the rewards.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder addTotalBuilder() { return getTotalFieldBuilder().addBuilder( cosmos.base.v1beta1.CoinOuterClass.DecCoin.getDefaultInstance()); } /** *
       * total defines the sum of all the rewards.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder addTotalBuilder( int index) { return getTotalFieldBuilder().addBuilder( index, cosmos.base.v1beta1.CoinOuterClass.DecCoin.getDefaultInstance()); } /** *
       * total defines the sum of all the rewards.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin total = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public java.util.List getTotalBuilderList() { return getTotalFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< cosmos.base.v1beta1.CoinOuterClass.DecCoin, cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder, cosmos.base.v1beta1.CoinOuterClass.DecCoinOrBuilder> getTotalFieldBuilder() { if (totalBuilder_ == null) { totalBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< cosmos.base.v1beta1.CoinOuterClass.DecCoin, cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder, cosmos.base.v1beta1.CoinOuterClass.DecCoinOrBuilder>( total_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); total_ = null; } return totalBuilder_; } @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.distribution.v1beta1.QueryDelegationTotalRewardsResponse) } // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse) private static final cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse(); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryDelegationTotalRewardsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryDelegationTotalRewardsResponse(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.distribution.v1beta1.QueryOuterClass.QueryDelegationTotalRewardsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryDelegatorValidatorsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest) com.google.protobuf.MessageOrBuilder { /** *
     * delegator_address defines the delegator address to query for.
     * 
* * string delegator_address = 1; */ java.lang.String getDelegatorAddress(); /** *
     * delegator_address defines the delegator address to query for.
     * 
* * string delegator_address = 1; */ com.google.protobuf.ByteString getDelegatorAddressBytes(); } /** *
   * QueryDelegatorValidatorsRequest is the request type for the
   * Query/DelegatorValidators RPC method.
   * 
* * Protobuf type {@code cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest} */ public static final class QueryDelegatorValidatorsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.distribution.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() { delegatorAddress_ = ""; } @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(); delegatorAddress_ = 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.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest.class, cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest.Builder.class); } public static final int DELEGATOR_ADDRESS_FIELD_NUMBER = 1; private volatile java.lang.Object delegatorAddress_; /** *
     * delegator_address defines the delegator address to query for.
     * 
* * string delegator_address = 1; */ public java.lang.String getDelegatorAddress() { java.lang.Object ref = delegatorAddress_; 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(); delegatorAddress_ = s; return s; } } /** *
     * delegator_address defines the delegator address to query for.
     * 
* * string delegator_address = 1; */ public com.google.protobuf.ByteString getDelegatorAddressBytes() { java.lang.Object ref = delegatorAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); delegatorAddress_ = 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 (!getDelegatorAddressBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddress_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getDelegatorAddressBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddress_); } 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.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest)) { return super.equals(obj); } cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest other = (cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest) obj; boolean result = true; result = result && getDelegatorAddress() .equals(other.getDelegatorAddress()); 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_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getDelegatorAddress().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.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.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.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.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.distribution.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.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.distribution.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.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.distribution.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.distribution.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 the request type for the
     * Query/DelegatorValidators RPC method.
     * 
* * Protobuf type {@code cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest) cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest.class, cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest.Builder.class); } // Construct using cosmos.distribution.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(); delegatorAddress_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsRequest_descriptor; } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest getDefaultInstanceForType() { return cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest.getDefaultInstance(); } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest build() { cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest buildPartial() { cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest result = new cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest(this); result.delegatorAddress_ = delegatorAddress_; 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.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest) { return mergeFrom((cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest other) { if (other == cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest.getDefaultInstance()) return this; if (!other.getDelegatorAddress().isEmpty()) { delegatorAddress_ = other.delegatorAddress_; 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.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object delegatorAddress_ = ""; /** *
       * delegator_address defines the delegator address to query for.
       * 
* * string delegator_address = 1; */ public java.lang.String getDelegatorAddress() { java.lang.Object ref = delegatorAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); delegatorAddress_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * delegator_address defines the delegator address to query for.
       * 
* * string delegator_address = 1; */ public com.google.protobuf.ByteString getDelegatorAddressBytes() { java.lang.Object ref = delegatorAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); delegatorAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * delegator_address defines the delegator address to query for.
       * 
* * string delegator_address = 1; */ public Builder setDelegatorAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } delegatorAddress_ = value; onChanged(); return this; } /** *
       * delegator_address defines the delegator address to query for.
       * 
* * string delegator_address = 1; */ public Builder clearDelegatorAddress() { delegatorAddress_ = getDefaultInstance().getDelegatorAddress(); onChanged(); return this; } /** *
       * delegator_address defines the delegator address to query for.
       * 
* * string delegator_address = 1; */ public Builder setDelegatorAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); delegatorAddress_ = 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.distribution.v1beta1.QueryDelegatorValidatorsRequest) } // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest) private static final cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest(); } public static cosmos.distribution.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.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryDelegatorValidatorsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse) com.google.protobuf.MessageOrBuilder { /** *
     * validators defines the validators a delegator is delegating for.
     * 
* * repeated string validators = 1; */ java.util.List getValidatorsList(); /** *
     * validators defines the validators a delegator is delegating for.
     * 
* * repeated string validators = 1; */ int getValidatorsCount(); /** *
     * validators defines the validators a delegator is delegating for.
     * 
* * repeated string validators = 1; */ java.lang.String getValidators(int index); /** *
     * validators defines the validators a delegator is delegating for.
     * 
* * repeated string validators = 1; */ com.google.protobuf.ByteString getValidatorsBytes(int index); } /** *
   * QueryDelegatorValidatorsResponse is the response type for the
   * Query/DelegatorValidators RPC method.
   * 
* * Protobuf type {@code cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse} */ public static final class QueryDelegatorValidatorsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.distribution.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_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @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: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { validators_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } validators_.add(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 { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { validators_ = validators_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse.class, cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse.Builder.class); } public static final int VALIDATORS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList validators_; /** *
     * validators defines the validators a delegator is delegating for.
     * 
* * repeated string validators = 1; */ public com.google.protobuf.ProtocolStringList getValidatorsList() { return validators_; } /** *
     * validators defines the validators a delegator is delegating for.
     * 
* * repeated string validators = 1; */ public int getValidatorsCount() { return validators_.size(); } /** *
     * validators defines the validators a delegator is delegating for.
     * 
* * repeated string validators = 1; */ public java.lang.String getValidators(int index) { return validators_.get(index); } /** *
     * validators defines the validators a delegator is delegating for.
     * 
* * repeated string validators = 1; */ public com.google.protobuf.ByteString getValidatorsBytes(int index) { return validators_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < validators_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, validators_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < validators_.size(); i++) { dataSize += computeStringSizeNoTag(validators_.getRaw(i)); } size += dataSize; size += 1 * getValidatorsList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse)) { return super.equals(obj); } cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse other = (cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse) obj; boolean result = true; result = result && getValidatorsList() .equals(other.getValidatorsList()); 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(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.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.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.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.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.distribution.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.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.distribution.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.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.distribution.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.distribution.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 the response type for the
     * Query/DelegatorValidators RPC method.
     * 
* * Protobuf type {@code cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse) cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse.class, cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse.Builder.class); } // Construct using cosmos.distribution.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) { } } @java.lang.Override public Builder clear() { super.clear(); validators_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsResponse_descriptor; } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse getDefaultInstanceForType() { return cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse.getDefaultInstance(); } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse build() { cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse buildPartial() { cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse result = new cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { validators_ = validators_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.validators_ = validators_; 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.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse) { return mergeFrom((cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse other) { if (other == cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse.getDefaultInstance()) return this; if (!other.validators_.isEmpty()) { if (validators_.isEmpty()) { validators_ = other.validators_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureValidatorsIsMutable(); validators_.addAll(other.validators_); } 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.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList validators_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureValidatorsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { validators_ = new com.google.protobuf.LazyStringArrayList(validators_); bitField0_ |= 0x00000001; } } /** *
       * validators defines the validators a delegator is delegating for.
       * 
* * repeated string validators = 1; */ public com.google.protobuf.ProtocolStringList getValidatorsList() { return validators_.getUnmodifiableView(); } /** *
       * validators defines the validators a delegator is delegating for.
       * 
* * repeated string validators = 1; */ public int getValidatorsCount() { return validators_.size(); } /** *
       * validators defines the validators a delegator is delegating for.
       * 
* * repeated string validators = 1; */ public java.lang.String getValidators(int index) { return validators_.get(index); } /** *
       * validators defines the validators a delegator is delegating for.
       * 
* * repeated string validators = 1; */ public com.google.protobuf.ByteString getValidatorsBytes(int index) { return validators_.getByteString(index); } /** *
       * validators defines the validators a delegator is delegating for.
       * 
* * repeated string validators = 1; */ public Builder setValidators( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValidatorsIsMutable(); validators_.set(index, value); onChanged(); return this; } /** *
       * validators defines the validators a delegator is delegating for.
       * 
* * repeated string validators = 1; */ public Builder addValidators( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValidatorsIsMutable(); validators_.add(value); onChanged(); return this; } /** *
       * validators defines the validators a delegator is delegating for.
       * 
* * repeated string validators = 1; */ public Builder addAllValidators( java.lang.Iterable values) { ensureValidatorsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, validators_); onChanged(); return this; } /** *
       * validators defines the validators a delegator is delegating for.
       * 
* * repeated string validators = 1; */ public Builder clearValidators() { validators_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * validators defines the validators a delegator is delegating for.
       * 
* * repeated string validators = 1; */ public Builder addValidatorsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureValidatorsIsMutable(); validators_.add(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.distribution.v1beta1.QueryDelegatorValidatorsResponse) } // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse) private static final cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse(); } public static cosmos.distribution.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.distribution.v1beta1.QueryOuterClass.QueryDelegatorValidatorsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryDelegatorWithdrawAddressRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest) com.google.protobuf.MessageOrBuilder { /** *
     * delegator_address defines the delegator address to query for.
     * 
* * string delegator_address = 1; */ java.lang.String getDelegatorAddress(); /** *
     * delegator_address defines the delegator address to query for.
     * 
* * string delegator_address = 1; */ com.google.protobuf.ByteString getDelegatorAddressBytes(); } /** *
   * QueryDelegatorWithdrawAddressRequest is the request type for the
   * Query/DelegatorWithdrawAddress RPC method.
   * 
* * Protobuf type {@code cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest} */ public static final class QueryDelegatorWithdrawAddressRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest) QueryDelegatorWithdrawAddressRequestOrBuilder { private static final long serialVersionUID = 0L; // Use QueryDelegatorWithdrawAddressRequest.newBuilder() to construct. private QueryDelegatorWithdrawAddressRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryDelegatorWithdrawAddressRequest() { delegatorAddress_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryDelegatorWithdrawAddressRequest( 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(); delegatorAddress_ = 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.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest.class, cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest.Builder.class); } public static final int DELEGATOR_ADDRESS_FIELD_NUMBER = 1; private volatile java.lang.Object delegatorAddress_; /** *
     * delegator_address defines the delegator address to query for.
     * 
* * string delegator_address = 1; */ public java.lang.String getDelegatorAddress() { java.lang.Object ref = delegatorAddress_; 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(); delegatorAddress_ = s; return s; } } /** *
     * delegator_address defines the delegator address to query for.
     * 
* * string delegator_address = 1; */ public com.google.protobuf.ByteString getDelegatorAddressBytes() { java.lang.Object ref = delegatorAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); delegatorAddress_ = 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 (!getDelegatorAddressBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddress_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getDelegatorAddressBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddress_); } 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.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest)) { return super.equals(obj); } cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest other = (cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest) obj; boolean result = true; result = result && getDelegatorAddress() .equals(other.getDelegatorAddress()); 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_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getDelegatorAddress().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest 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.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest 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.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest 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.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest 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; } /** *
     * QueryDelegatorWithdrawAddressRequest is the request type for the
     * Query/DelegatorWithdrawAddress RPC method.
     * 
* * Protobuf type {@code cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest) cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest.class, cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest.Builder.class); } // Construct using cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest.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(); delegatorAddress_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressRequest_descriptor; } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest getDefaultInstanceForType() { return cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest.getDefaultInstance(); } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest build() { cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest buildPartial() { cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest result = new cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest(this); result.delegatorAddress_ = delegatorAddress_; 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.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest) { return mergeFrom((cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest other) { if (other == cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest.getDefaultInstance()) return this; if (!other.getDelegatorAddress().isEmpty()) { delegatorAddress_ = other.delegatorAddress_; 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.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object delegatorAddress_ = ""; /** *
       * delegator_address defines the delegator address to query for.
       * 
* * string delegator_address = 1; */ public java.lang.String getDelegatorAddress() { java.lang.Object ref = delegatorAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); delegatorAddress_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * delegator_address defines the delegator address to query for.
       * 
* * string delegator_address = 1; */ public com.google.protobuf.ByteString getDelegatorAddressBytes() { java.lang.Object ref = delegatorAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); delegatorAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * delegator_address defines the delegator address to query for.
       * 
* * string delegator_address = 1; */ public Builder setDelegatorAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } delegatorAddress_ = value; onChanged(); return this; } /** *
       * delegator_address defines the delegator address to query for.
       * 
* * string delegator_address = 1; */ public Builder clearDelegatorAddress() { delegatorAddress_ = getDefaultInstance().getDelegatorAddress(); onChanged(); return this; } /** *
       * delegator_address defines the delegator address to query for.
       * 
* * string delegator_address = 1; */ public Builder setDelegatorAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); delegatorAddress_ = 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.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest) } // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest) private static final cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest(); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryDelegatorWithdrawAddressRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryDelegatorWithdrawAddressRequest(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.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryDelegatorWithdrawAddressResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse) com.google.protobuf.MessageOrBuilder { /** *
     * withdraw_address defines the delegator address to query for.
     * 
* * string withdraw_address = 1; */ java.lang.String getWithdrawAddress(); /** *
     * withdraw_address defines the delegator address to query for.
     * 
* * string withdraw_address = 1; */ com.google.protobuf.ByteString getWithdrawAddressBytes(); } /** *
   * QueryDelegatorWithdrawAddressResponse is the response type for the
   * Query/DelegatorWithdrawAddress RPC method.
   * 
* * Protobuf type {@code cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse} */ public static final class QueryDelegatorWithdrawAddressResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse) QueryDelegatorWithdrawAddressResponseOrBuilder { private static final long serialVersionUID = 0L; // Use QueryDelegatorWithdrawAddressResponse.newBuilder() to construct. private QueryDelegatorWithdrawAddressResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryDelegatorWithdrawAddressResponse() { withdrawAddress_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryDelegatorWithdrawAddressResponse( 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(); withdrawAddress_ = 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.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse.class, cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse.Builder.class); } public static final int WITHDRAW_ADDRESS_FIELD_NUMBER = 1; private volatile java.lang.Object withdrawAddress_; /** *
     * withdraw_address defines the delegator address to query for.
     * 
* * string withdraw_address = 1; */ public java.lang.String getWithdrawAddress() { java.lang.Object ref = withdrawAddress_; 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(); withdrawAddress_ = s; return s; } } /** *
     * withdraw_address defines the delegator address to query for.
     * 
* * string withdraw_address = 1; */ public com.google.protobuf.ByteString getWithdrawAddressBytes() { java.lang.Object ref = withdrawAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); withdrawAddress_ = 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 (!getWithdrawAddressBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, withdrawAddress_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getWithdrawAddressBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, withdrawAddress_); } 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.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse)) { return super.equals(obj); } cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse other = (cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse) obj; boolean result = true; result = result && getWithdrawAddress() .equals(other.getWithdrawAddress()); 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) + WITHDRAW_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getWithdrawAddress().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse 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.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse 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.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse 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.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse 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; } /** *
     * QueryDelegatorWithdrawAddressResponse is the response type for the
     * Query/DelegatorWithdrawAddress RPC method.
     * 
* * Protobuf type {@code cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse) cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse.class, cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse.Builder.class); } // Construct using cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse.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(); withdrawAddress_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressResponse_descriptor; } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse getDefaultInstanceForType() { return cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse.getDefaultInstance(); } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse build() { cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse buildPartial() { cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse result = new cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse(this); result.withdrawAddress_ = withdrawAddress_; 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.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse) { return mergeFrom((cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse other) { if (other == cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse.getDefaultInstance()) return this; if (!other.getWithdrawAddress().isEmpty()) { withdrawAddress_ = other.withdrawAddress_; 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.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object withdrawAddress_ = ""; /** *
       * withdraw_address defines the delegator address to query for.
       * 
* * string withdraw_address = 1; */ public java.lang.String getWithdrawAddress() { java.lang.Object ref = withdrawAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); withdrawAddress_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * withdraw_address defines the delegator address to query for.
       * 
* * string withdraw_address = 1; */ public com.google.protobuf.ByteString getWithdrawAddressBytes() { java.lang.Object ref = withdrawAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); withdrawAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * withdraw_address defines the delegator address to query for.
       * 
* * string withdraw_address = 1; */ public Builder setWithdrawAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } withdrawAddress_ = value; onChanged(); return this; } /** *
       * withdraw_address defines the delegator address to query for.
       * 
* * string withdraw_address = 1; */ public Builder clearWithdrawAddress() { withdrawAddress_ = getDefaultInstance().getWithdrawAddress(); onChanged(); return this; } /** *
       * withdraw_address defines the delegator address to query for.
       * 
* * string withdraw_address = 1; */ public Builder setWithdrawAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); withdrawAddress_ = 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.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse) } // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse) private static final cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse(); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryDelegatorWithdrawAddressResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryDelegatorWithdrawAddressResponse(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.distribution.v1beta1.QueryOuterClass.QueryDelegatorWithdrawAddressResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryCommunityPoolRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.QueryCommunityPoolRequest) com.google.protobuf.MessageOrBuilder { } /** *
   * QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC
   * method.
   * 
* * Protobuf type {@code cosmos.distribution.v1beta1.QueryCommunityPoolRequest} */ public static final class QueryCommunityPoolRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.QueryCommunityPoolRequest) QueryCommunityPoolRequestOrBuilder { private static final long serialVersionUID = 0L; // Use QueryCommunityPoolRequest.newBuilder() to construct. private QueryCommunityPoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryCommunityPoolRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryCommunityPoolRequest( 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.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest.class, cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest.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.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest)) { return super.equals(obj); } cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest other = (cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest) 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.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest 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.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest 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.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest 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.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest 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; } /** *
     * QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC
     * method.
     * 
* * Protobuf type {@code cosmos.distribution.v1beta1.QueryCommunityPoolRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.QueryCommunityPoolRequest) cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest.class, cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest.Builder.class); } // Construct using cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest.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.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolRequest_descriptor; } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest getDefaultInstanceForType() { return cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest.getDefaultInstance(); } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest build() { cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest buildPartial() { cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest result = new cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest(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.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest) { return mergeFrom((cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest other) { if (other == cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest.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.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest) 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.distribution.v1beta1.QueryCommunityPoolRequest) } // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.QueryCommunityPoolRequest) private static final cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest(); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryCommunityPoolRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryCommunityPoolRequest(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.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryCommunityPoolResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.QueryCommunityPoolResponse) com.google.protobuf.MessageOrBuilder { /** *
     * pool defines community pool's coins.
     * 
* * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ java.util.List getPoolList(); /** *
     * pool defines community pool's coins.
     * 
* * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ cosmos.base.v1beta1.CoinOuterClass.DecCoin getPool(int index); /** *
     * pool defines community pool's coins.
     * 
* * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ int getPoolCount(); /** *
     * pool defines community pool's coins.
     * 
* * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ java.util.List getPoolOrBuilderList(); /** *
     * pool defines community pool's coins.
     * 
* * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ cosmos.base.v1beta1.CoinOuterClass.DecCoinOrBuilder getPoolOrBuilder( int index); } /** *
   * QueryCommunityPoolResponse is the response type for the Query/CommunityPool
   * RPC method.
   * 
* * Protobuf type {@code cosmos.distribution.v1beta1.QueryCommunityPoolResponse} */ public static final class QueryCommunityPoolResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.QueryCommunityPoolResponse) QueryCommunityPoolResponseOrBuilder { private static final long serialVersionUID = 0L; // Use QueryCommunityPoolResponse.newBuilder() to construct. private QueryCommunityPoolResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryCommunityPoolResponse() { pool_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryCommunityPoolResponse( 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)) { pool_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } pool_.add( input.readMessage(cosmos.base.v1beta1.CoinOuterClass.DecCoin.parser(), extensionRegistry)); 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)) { pool_ = java.util.Collections.unmodifiableList(pool_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse.class, cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse.Builder.class); } public static final int POOL_FIELD_NUMBER = 1; private java.util.List pool_; /** *
     * pool defines community pool's coins.
     * 
* * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public java.util.List getPoolList() { return pool_; } /** *
     * pool defines community pool's coins.
     * 
* * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public java.util.List getPoolOrBuilderList() { return pool_; } /** *
     * pool defines community pool's coins.
     * 
* * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public int getPoolCount() { return pool_.size(); } /** *
     * pool defines community pool's coins.
     * 
* * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public cosmos.base.v1beta1.CoinOuterClass.DecCoin getPool(int index) { return pool_.get(index); } /** *
     * pool defines community pool's coins.
     * 
* * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public cosmos.base.v1beta1.CoinOuterClass.DecCoinOrBuilder getPoolOrBuilder( int index) { return pool_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < pool_.size(); i++) { output.writeMessage(1, pool_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < pool_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, pool_.get(i)); } 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.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse)) { return super.equals(obj); } cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse other = (cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse) obj; boolean result = true; result = result && getPoolList() .equals(other.getPoolList()); 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 (getPoolCount() > 0) { hash = (37 * hash) + POOL_FIELD_NUMBER; hash = (53 * hash) + getPoolList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse 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.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse 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.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse 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.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse 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; } /** *
     * QueryCommunityPoolResponse is the response type for the Query/CommunityPool
     * RPC method.
     * 
* * Protobuf type {@code cosmos.distribution.v1beta1.QueryCommunityPoolResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.QueryCommunityPoolResponse) cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse.class, cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse.Builder.class); } // Construct using cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPoolFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (poolBuilder_ == null) { pool_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { poolBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.distribution.v1beta1.QueryOuterClass.internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolResponse_descriptor; } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse getDefaultInstanceForType() { return cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse.getDefaultInstance(); } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse build() { cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse buildPartial() { cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse result = new cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse(this); int from_bitField0_ = bitField0_; if (poolBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { pool_ = java.util.Collections.unmodifiableList(pool_); bitField0_ = (bitField0_ & ~0x00000001); } 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.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse) { return mergeFrom((cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse other) { if (other == cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse.getDefaultInstance()) return this; if (poolBuilder_ == null) { if (!other.pool_.isEmpty()) { if (pool_.isEmpty()) { pool_ = other.pool_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePoolIsMutable(); pool_.addAll(other.pool_); } onChanged(); } } else { if (!other.pool_.isEmpty()) { if (poolBuilder_.isEmpty()) { poolBuilder_.dispose(); poolBuilder_ = null; pool_ = other.pool_; bitField0_ = (bitField0_ & ~0x00000001); poolBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPoolFieldBuilder() : null; } else { poolBuilder_.addAllMessages(other.pool_); } } } 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.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List pool_ = java.util.Collections.emptyList(); private void ensurePoolIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { pool_ = new java.util.ArrayList(pool_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< cosmos.base.v1beta1.CoinOuterClass.DecCoin, cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder, cosmos.base.v1beta1.CoinOuterClass.DecCoinOrBuilder> poolBuilder_; /** *
       * pool defines community pool's coins.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public java.util.List getPoolList() { if (poolBuilder_ == null) { return java.util.Collections.unmodifiableList(pool_); } else { return poolBuilder_.getMessageList(); } } /** *
       * pool defines community pool's coins.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public int getPoolCount() { if (poolBuilder_ == null) { return pool_.size(); } else { return poolBuilder_.getCount(); } } /** *
       * pool defines community pool's coins.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public cosmos.base.v1beta1.CoinOuterClass.DecCoin getPool(int index) { if (poolBuilder_ == null) { return pool_.get(index); } else { return poolBuilder_.getMessage(index); } } /** *
       * pool defines community pool's coins.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public Builder setPool( int index, cosmos.base.v1beta1.CoinOuterClass.DecCoin value) { if (poolBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePoolIsMutable(); pool_.set(index, value); onChanged(); } else { poolBuilder_.setMessage(index, value); } return this; } /** *
       * pool defines community pool's coins.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public Builder setPool( int index, cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder builderForValue) { if (poolBuilder_ == null) { ensurePoolIsMutable(); pool_.set(index, builderForValue.build()); onChanged(); } else { poolBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * pool defines community pool's coins.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public Builder addPool(cosmos.base.v1beta1.CoinOuterClass.DecCoin value) { if (poolBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePoolIsMutable(); pool_.add(value); onChanged(); } else { poolBuilder_.addMessage(value); } return this; } /** *
       * pool defines community pool's coins.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public Builder addPool( int index, cosmos.base.v1beta1.CoinOuterClass.DecCoin value) { if (poolBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePoolIsMutable(); pool_.add(index, value); onChanged(); } else { poolBuilder_.addMessage(index, value); } return this; } /** *
       * pool defines community pool's coins.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public Builder addPool( cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder builderForValue) { if (poolBuilder_ == null) { ensurePoolIsMutable(); pool_.add(builderForValue.build()); onChanged(); } else { poolBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * pool defines community pool's coins.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public Builder addPool( int index, cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder builderForValue) { if (poolBuilder_ == null) { ensurePoolIsMutable(); pool_.add(index, builderForValue.build()); onChanged(); } else { poolBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * pool defines community pool's coins.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public Builder addAllPool( java.lang.Iterable values) { if (poolBuilder_ == null) { ensurePoolIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, pool_); onChanged(); } else { poolBuilder_.addAllMessages(values); } return this; } /** *
       * pool defines community pool's coins.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public Builder clearPool() { if (poolBuilder_ == null) { pool_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { poolBuilder_.clear(); } return this; } /** *
       * pool defines community pool's coins.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public Builder removePool(int index) { if (poolBuilder_ == null) { ensurePoolIsMutable(); pool_.remove(index); onChanged(); } else { poolBuilder_.remove(index); } return this; } /** *
       * pool defines community pool's coins.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder getPoolBuilder( int index) { return getPoolFieldBuilder().getBuilder(index); } /** *
       * pool defines community pool's coins.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public cosmos.base.v1beta1.CoinOuterClass.DecCoinOrBuilder getPoolOrBuilder( int index) { if (poolBuilder_ == null) { return pool_.get(index); } else { return poolBuilder_.getMessageOrBuilder(index); } } /** *
       * pool defines community pool's coins.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public java.util.List getPoolOrBuilderList() { if (poolBuilder_ != null) { return poolBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(pool_); } } /** *
       * pool defines community pool's coins.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder addPoolBuilder() { return getPoolFieldBuilder().addBuilder( cosmos.base.v1beta1.CoinOuterClass.DecCoin.getDefaultInstance()); } /** *
       * pool defines community pool's coins.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder addPoolBuilder( int index) { return getPoolFieldBuilder().addBuilder( index, cosmos.base.v1beta1.CoinOuterClass.DecCoin.getDefaultInstance()); } /** *
       * pool defines community pool's coins.
       * 
* * repeated .cosmos.base.v1beta1.DecCoin pool = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; */ public java.util.List getPoolBuilderList() { return getPoolFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< cosmos.base.v1beta1.CoinOuterClass.DecCoin, cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder, cosmos.base.v1beta1.CoinOuterClass.DecCoinOrBuilder> getPoolFieldBuilder() { if (poolBuilder_ == null) { poolBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< cosmos.base.v1beta1.CoinOuterClass.DecCoin, cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder, cosmos.base.v1beta1.CoinOuterClass.DecCoinOrBuilder>( pool_, ((bitField0_ & 0x00000001) == 0x00000001), 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.distribution.v1beta1.QueryCommunityPoolResponse) } // @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.QueryCommunityPoolResponse) private static final cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse(); } public static cosmos.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryCommunityPoolResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryCommunityPoolResponse(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.distribution.v1beta1.QueryOuterClass.QueryCommunityPoolResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_distribution_v1beta1_QueryParamsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_distribution_v1beta1_QueryParamsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_distribution_v1beta1_QueryParamsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_distribution_v1beta1_QueryParamsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolResponse_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/distribution/v1beta1/query.prot" + "o\022\033cosmos.distribution.v1beta1\032*cosmos/b" + "ase/query/v1beta1/pagination.proto\032\024gogo" + "proto/gogo.proto\032\034google/api/annotations" + ".proto\032\036cosmos/base/v1beta1/coin.proto\032." + "cosmos/distribution/v1beta1/distribution" + ".proto\"\024\n\022QueryParamsRequest\"P\n\023QueryPar" + "amsResponse\0229\n\006params\030\001 \001(\0132#.cosmos.dis" + "tribution.v1beta1.ParamsB\004\310\336\037\000\"D\n\'QueryV" + "alidatorOutstandingRewardsRequest\022\031\n\021val" + "idator_address\030\001 \001(\t\"{\n(QueryValidatorOu" + "tstandingRewardsResponse\022O\n\007rewards\030\001 \001(" + "\01328.cosmos.distribution.v1beta1.Validato" + "rOutstandingRewardsB\004\310\336\037\000\"<\n\037QueryValida" + "torCommissionRequest\022\031\n\021validator_addres" + "s\030\001 \001(\t\"y\n QueryValidatorCommissionRespo" + "nse\022U\n\ncommission\030\001 \001(\0132;.cosmos.distrib" + "ution.v1beta1.ValidatorAccumulatedCommis" + "sionB\004\310\336\037\000\"\257\001\n\034QueryValidatorSlashesRequ" + "est\022\031\n\021validator_address\030\001 \001(\t\022\027\n\017starti" + "ng_height\030\002 \001(\004\022\025\n\rending_height\030\003 \001(\004\022:" + "\n\npagination\030\004 \001(\0132&.cosmos.base.query.v" + "1beta1.PageRequest:\010\210\240\037\000\230\240\037\001\"\245\001\n\035QueryVa" + "lidatorSlashesResponse\022G\n\007slashes\030\001 \003(\0132" + "0.cosmos.distribution.v1beta1.ValidatorS" + "lashEventB\004\310\336\037\000\022;\n\npagination\030\002 \001(\0132\'.co" + "smos.base.query.v1beta1.PageResponse\"_\n\035" + "QueryDelegationRewardsRequest\022\031\n\021delegat" + "or_address\030\001 \001(\t\022\031\n\021validator_address\030\002 " + "\001(\t:\010\350\240\037\000\210\240\037\000\"\204\001\n\036QueryDelegationRewards" + "Response\022b\n\007rewards\030\001 \003(\0132\034.cosmos.base." + "v1beta1.DecCoinB3\310\336\037\000\252\337\037+github.com/cosm" + "os/cosmos-sdk/types.DecCoins\"I\n\"QueryDel" + "egationTotalRewardsRequest\022\031\n\021delegator_" + "address\030\001 \001(\t:\010\350\240\037\000\210\240\037\000\"\326\001\n#QueryDelegat" + "ionTotalRewardsResponse\022M\n\007rewards\030\001 \003(\013" + "26.cosmos.distribution.v1beta1.Delegatio" + "nDelegatorRewardB\004\310\336\037\000\022`\n\005total\030\002 \003(\0132\034." + "cosmos.base.v1beta1.DecCoinB3\310\336\037\000\252\337\037+git" + "hub.com/cosmos/cosmos-sdk/types.DecCoins" + "\"F\n\037QueryDelegatorValidatorsRequest\022\031\n\021d" + "elegator_address\030\001 \001(\t:\010\350\240\037\000\210\240\037\000\"@\n Quer" + "yDelegatorValidatorsResponse\022\022\n\nvalidato" + "rs\030\001 \003(\t:\010\350\240\037\000\210\240\037\000\"K\n$QueryDelegatorWith" + "drawAddressRequest\022\031\n\021delegator_address\030" + "\001 \001(\t:\010\350\240\037\000\210\240\037\000\"K\n%QueryDelegatorWithdra" + "wAddressResponse\022\030\n\020withdraw_address\030\001 \001" + "(\t:\010\350\240\037\000\210\240\037\000\"\033\n\031QueryCommunityPoolReques" + "t\"}\n\032QueryCommunityPoolResponse\022_\n\004pool\030" + "\001 \003(\0132\034.cosmos.base.v1beta1.DecCoinB3\252\337\037" + "+github.com/cosmos/cosmos-sdk/types.DecC" + "oins\310\336\037\0002\330\017\n\005Query\022\230\001\n\006Params\022/.cosmos.d" + "istribution.v1beta1.QueryParamsRequest\0320" + ".cosmos.distribution.v1beta1.QueryParams" + "Response\"+\202\323\344\223\002%\022#/cosmos/distribution/v" + "1beta1/params\022\203\002\n\033ValidatorOutstandingRe" + "wards\022D.cosmos.distribution.v1beta1.Quer" + "yValidatorOutstandingRewardsRequest\032E.co" + "smos.distribution.v1beta1.QueryValidator" + "OutstandingRewardsResponse\"W\202\323\344\223\002Q\022O/cos" + "mos/distribution/v1beta1/validators/{val" + "idator_address}/outstanding_rewards\022\342\001\n\023" + "ValidatorCommission\022<.cosmos.distributio" + "n.v1beta1.QueryValidatorCommissionReques" + "t\032=.cosmos.distribution.v1beta1.QueryVal" + "idatorCommissionResponse\"N\202\323\344\223\002H\022F/cosmo" + "s/distribution/v1beta1/validators/{valid" + "ator_address}/commission\022\326\001\n\020ValidatorSl" + "ashes\0229.cosmos.distribution.v1beta1.Quer" + "yValidatorSlashesRequest\032:.cosmos.distri" + "bution.v1beta1.QueryValidatorSlashesResp" + "onse\"K\202\323\344\223\002E\022C/cosmos/distribution/v1bet" + "a1/validators/{validator_address}/slashe" + "s\022\355\001\n\021DelegationRewards\022:.cosmos.distrib" + "ution.v1beta1.QueryDelegationRewardsRequ" + "est\032;.cosmos.distribution.v1beta1.QueryD" + "elegationRewardsResponse\"_\202\323\344\223\002Y\022W/cosmo" + "s/distribution/v1beta1/delegators/{deleg" + "ator_address}/rewards/{validator_address" + "}\022\350\001\n\026DelegationTotalRewards\022?.cosmos.di" + "stribution.v1beta1.QueryDelegationTotalR" + "ewardsRequest\[email protected]" + "ta1.QueryDelegationTotalRewardsResponse\"" + "K\202\323\344\223\002E\022C/cosmos/distribution/v1beta1/de" + "legators/{delegator_address}/rewards\022\342\001\n" + "\023DelegatorValidators\022<.cosmos.distributi" + "on.v1beta1.QueryDelegatorValidatorsReque" + "st\032=.cosmos.distribution.v1beta1.QueryDe" + "legatorValidatorsResponse\"N\202\323\344\223\002H\022F/cosm" + "os/distribution/v1beta1/delegators/{dele" + "gator_address}/validators\022\367\001\n\030DelegatorW" + "ithdrawAddress\022A.cosmos.distribution.v1b" + "eta1.QueryDelegatorWithdrawAddressReques" + "t\032B.cosmos.distribution.v1beta1.QueryDel" + "egatorWithdrawAddressResponse\"T\202\323\344\223\002N\022L/" + "cosmos/distribution/v1beta1/delegators/{" + "delegator_address}/withdraw_address\022\265\001\n\r" + "CommunityPool\0226.cosmos.distribution.v1be" + "ta1.QueryCommunityPoolRequest\0327.cosmos.d" + "istribution.v1beta1.QueryCommunityPoolRe" + "sponse\"3\202\323\344\223\002-\022+/cosmos/distribution/v1b" + "eta1/community_poolB3Z1github.com/cosmos" + "/cosmos-sdk/x/distribution/typesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { cosmos.base.query.v1beta1.Pagination.getDescriptor(), com.google.protobuf.GoGoProtos.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), cosmos.base.v1beta1.CoinOuterClass.getDescriptor(), cosmos.distribution.v1beta1.Distribution.getDescriptor(), }, assigner); internal_static_cosmos_distribution_v1beta1_QueryParamsRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_cosmos_distribution_v1beta1_QueryParamsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_distribution_v1beta1_QueryParamsRequest_descriptor, new java.lang.String[] { }); internal_static_cosmos_distribution_v1beta1_QueryParamsResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_cosmos_distribution_v1beta1_QueryParamsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_distribution_v1beta1_QueryParamsResponse_descriptor, new java.lang.String[] { "Params", }); internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsRequest_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsRequest_descriptor, new java.lang.String[] { "ValidatorAddress", }); internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsResponse_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_distribution_v1beta1_QueryValidatorOutstandingRewardsResponse_descriptor, new java.lang.String[] { "Rewards", }); internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionRequest_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionRequest_descriptor, new java.lang.String[] { "ValidatorAddress", }); internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionResponse_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_distribution_v1beta1_QueryValidatorCommissionResponse_descriptor, new java.lang.String[] { "Commission", }); internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesRequest_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesRequest_descriptor, new java.lang.String[] { "ValidatorAddress", "StartingHeight", "EndingHeight", "Pagination", }); internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesResponse_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_distribution_v1beta1_QueryValidatorSlashesResponse_descriptor, new java.lang.String[] { "Slashes", "Pagination", }); internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsRequest_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsRequest_descriptor, new java.lang.String[] { "DelegatorAddress", "ValidatorAddress", }); internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsResponse_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_distribution_v1beta1_QueryDelegationRewardsResponse_descriptor, new java.lang.String[] { "Rewards", }); internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsRequest_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsRequest_descriptor, new java.lang.String[] { "DelegatorAddress", }); internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsResponse_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_distribution_v1beta1_QueryDelegationTotalRewardsResponse_descriptor, new java.lang.String[] { "Rewards", "Total", }); internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsRequest_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsRequest_descriptor, new java.lang.String[] { "DelegatorAddress", }); internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsResponse_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_distribution_v1beta1_QueryDelegatorValidatorsResponse_descriptor, new java.lang.String[] { "Validators", }); internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressRequest_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressRequest_descriptor, new java.lang.String[] { "DelegatorAddress", }); internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressResponse_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_distribution_v1beta1_QueryDelegatorWithdrawAddressResponse_descriptor, new java.lang.String[] { "WithdrawAddress", }); internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolRequest_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolRequest_descriptor, new java.lang.String[] { }); internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolResponse_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_distribution_v1beta1_QueryCommunityPoolResponse_descriptor, new java.lang.String[] { "Pool", }); 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.goprotoStringer); 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.base.v1beta1.CoinOuterClass.getDescriptor(); cosmos.distribution.v1beta1.Distribution.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy