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

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

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

package cosmos.params.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.params.v1beta1.QueryParamsRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * subspace defines the module to query the parameter for.
     * 
* * string subspace = 1; */ java.lang.String getSubspace(); /** *
     * subspace defines the module to query the parameter for.
     * 
* * string subspace = 1; */ com.google.protobuf.ByteString getSubspaceBytes(); /** *
     * key defines the key of the parameter in the subspace.
     * 
* * string key = 2; */ java.lang.String getKey(); /** *
     * key defines the key of the parameter in the subspace.
     * 
* * string key = 2; */ com.google.protobuf.ByteString getKeyBytes(); } /** *
   * QueryParamsRequest is request type for the Query/Params RPC method.
   * 
* * Protobuf type {@code cosmos.params.v1beta1.QueryParamsRequest} */ public static final class QueryParamsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.params.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() { subspace_ = ""; key_ = ""; } @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(); } 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(); subspace_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); key_ = 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.params.v1beta1.QueryOuterClass.internal_static_cosmos_params_v1beta1_QueryParamsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.params.v1beta1.QueryOuterClass.internal_static_cosmos_params_v1beta1_QueryParamsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.params.v1beta1.QueryOuterClass.QueryParamsRequest.class, cosmos.params.v1beta1.QueryOuterClass.QueryParamsRequest.Builder.class); } public static final int SUBSPACE_FIELD_NUMBER = 1; private volatile java.lang.Object subspace_; /** *
     * subspace defines the module to query the parameter for.
     * 
* * string subspace = 1; */ public java.lang.String getSubspace() { java.lang.Object ref = subspace_; 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(); subspace_ = s; return s; } } /** *
     * subspace defines the module to query the parameter for.
     * 
* * string subspace = 1; */ public com.google.protobuf.ByteString getSubspaceBytes() { java.lang.Object ref = subspace_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subspace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int KEY_FIELD_NUMBER = 2; private volatile java.lang.Object key_; /** *
     * key defines the key of the parameter in the subspace.
     * 
* * string key = 2; */ public java.lang.String getKey() { java.lang.Object ref = key_; 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(); key_ = s; return s; } } /** *
     * key defines the key of the parameter in the subspace.
     * 
* * string key = 2; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = 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 (!getSubspaceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subspace_); } if (!getKeyBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getSubspaceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subspace_); } if (!getKeyBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_); } 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.params.v1beta1.QueryOuterClass.QueryParamsRequest)) { return super.equals(obj); } cosmos.params.v1beta1.QueryOuterClass.QueryParamsRequest other = (cosmos.params.v1beta1.QueryOuterClass.QueryParamsRequest) obj; boolean result = true; result = result && getSubspace() .equals(other.getSubspace()); result = result && getKey() .equals(other.getKey()); 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) + SUBSPACE_FIELD_NUMBER; hash = (53 * hash) + getSubspace().hashCode(); hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.params.v1beta1.QueryOuterClass.QueryParamsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.params.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.params.v1beta1.QueryOuterClass.QueryParamsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.params.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.params.v1beta1.QueryOuterClass.QueryParamsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.params.v1beta1.QueryOuterClass.QueryParamsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.params.v1beta1.QueryOuterClass.QueryParamsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.params.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.params.v1beta1.QueryOuterClass.QueryParamsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.params.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.params.v1beta1.QueryOuterClass.QueryParamsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.params.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.params.v1beta1.QueryOuterClass.QueryParamsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * QueryParamsRequest is request type for the Query/Params RPC method.
     * 
* * Protobuf type {@code cosmos.params.v1beta1.QueryParamsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.params.v1beta1.QueryParamsRequest) cosmos.params.v1beta1.QueryOuterClass.QueryParamsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.params.v1beta1.QueryOuterClass.internal_static_cosmos_params_v1beta1_QueryParamsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.params.v1beta1.QueryOuterClass.internal_static_cosmos_params_v1beta1_QueryParamsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.params.v1beta1.QueryOuterClass.QueryParamsRequest.class, cosmos.params.v1beta1.QueryOuterClass.QueryParamsRequest.Builder.class); } // Construct using cosmos.params.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(); subspace_ = ""; key_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.params.v1beta1.QueryOuterClass.internal_static_cosmos_params_v1beta1_QueryParamsRequest_descriptor; } @java.lang.Override public cosmos.params.v1beta1.QueryOuterClass.QueryParamsRequest getDefaultInstanceForType() { return cosmos.params.v1beta1.QueryOuterClass.QueryParamsRequest.getDefaultInstance(); } @java.lang.Override public cosmos.params.v1beta1.QueryOuterClass.QueryParamsRequest build() { cosmos.params.v1beta1.QueryOuterClass.QueryParamsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.params.v1beta1.QueryOuterClass.QueryParamsRequest buildPartial() { cosmos.params.v1beta1.QueryOuterClass.QueryParamsRequest result = new cosmos.params.v1beta1.QueryOuterClass.QueryParamsRequest(this); result.subspace_ = subspace_; result.key_ = key_; 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.params.v1beta1.QueryOuterClass.QueryParamsRequest) { return mergeFrom((cosmos.params.v1beta1.QueryOuterClass.QueryParamsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.params.v1beta1.QueryOuterClass.QueryParamsRequest other) { if (other == cosmos.params.v1beta1.QueryOuterClass.QueryParamsRequest.getDefaultInstance()) return this; if (!other.getSubspace().isEmpty()) { subspace_ = other.subspace_; onChanged(); } if (!other.getKey().isEmpty()) { key_ = other.key_; 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.params.v1beta1.QueryOuterClass.QueryParamsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.params.v1beta1.QueryOuterClass.QueryParamsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object subspace_ = ""; /** *
       * subspace defines the module to query the parameter for.
       * 
* * string subspace = 1; */ public java.lang.String getSubspace() { java.lang.Object ref = subspace_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subspace_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * subspace defines the module to query the parameter for.
       * 
* * string subspace = 1; */ public com.google.protobuf.ByteString getSubspaceBytes() { java.lang.Object ref = subspace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subspace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * subspace defines the module to query the parameter for.
       * 
* * string subspace = 1; */ public Builder setSubspace( java.lang.String value) { if (value == null) { throw new NullPointerException(); } subspace_ = value; onChanged(); return this; } /** *
       * subspace defines the module to query the parameter for.
       * 
* * string subspace = 1; */ public Builder clearSubspace() { subspace_ = getDefaultInstance().getSubspace(); onChanged(); return this; } /** *
       * subspace defines the module to query the parameter for.
       * 
* * string subspace = 1; */ public Builder setSubspaceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subspace_ = value; onChanged(); return this; } private java.lang.Object key_ = ""; /** *
       * key defines the key of the parameter in the subspace.
       * 
* * string key = 2; */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * key defines the key of the parameter in the subspace.
       * 
* * string key = 2; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * key defines the key of the parameter in the subspace.
       * 
* * string key = 2; */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** *
       * key defines the key of the parameter in the subspace.
       * 
* * string key = 2; */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** *
       * key defines the key of the parameter in the subspace.
       * 
* * string key = 2; */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = 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.params.v1beta1.QueryParamsRequest) } // @@protoc_insertion_point(class_scope:cosmos.params.v1beta1.QueryParamsRequest) private static final cosmos.params.v1beta1.QueryOuterClass.QueryParamsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.params.v1beta1.QueryOuterClass.QueryParamsRequest(); } public static cosmos.params.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.params.v1beta1.QueryOuterClass.QueryParamsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryParamsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.params.v1beta1.QueryParamsResponse) com.google.protobuf.MessageOrBuilder { /** *
     * param defines the queried parameter.
     * 
* * .cosmos.params.v1beta1.ParamChange param = 1 [(.gogoproto.nullable) = false]; */ boolean hasParam(); /** *
     * param defines the queried parameter.
     * 
* * .cosmos.params.v1beta1.ParamChange param = 1 [(.gogoproto.nullable) = false]; */ cosmos.params.v1beta1.Params.ParamChange getParam(); /** *
     * param defines the queried parameter.
     * 
* * .cosmos.params.v1beta1.ParamChange param = 1 [(.gogoproto.nullable) = false]; */ cosmos.params.v1beta1.Params.ParamChangeOrBuilder getParamOrBuilder(); } /** *
   * QueryParamsResponse is response type for the Query/Params RPC method.
   * 
* * Protobuf type {@code cosmos.params.v1beta1.QueryParamsResponse} */ public static final class QueryParamsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.params.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.params.v1beta1.Params.ParamChange.Builder subBuilder = null; if (param_ != null) { subBuilder = param_.toBuilder(); } param_ = input.readMessage(cosmos.params.v1beta1.Params.ParamChange.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(param_); param_ = 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.params.v1beta1.QueryOuterClass.internal_static_cosmos_params_v1beta1_QueryParamsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.params.v1beta1.QueryOuterClass.internal_static_cosmos_params_v1beta1_QueryParamsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.params.v1beta1.QueryOuterClass.QueryParamsResponse.class, cosmos.params.v1beta1.QueryOuterClass.QueryParamsResponse.Builder.class); } public static final int PARAM_FIELD_NUMBER = 1; private cosmos.params.v1beta1.Params.ParamChange param_; /** *
     * param defines the queried parameter.
     * 
* * .cosmos.params.v1beta1.ParamChange param = 1 [(.gogoproto.nullable) = false]; */ public boolean hasParam() { return param_ != null; } /** *
     * param defines the queried parameter.
     * 
* * .cosmos.params.v1beta1.ParamChange param = 1 [(.gogoproto.nullable) = false]; */ public cosmos.params.v1beta1.Params.ParamChange getParam() { return param_ == null ? cosmos.params.v1beta1.Params.ParamChange.getDefaultInstance() : param_; } /** *
     * param defines the queried parameter.
     * 
* * .cosmos.params.v1beta1.ParamChange param = 1 [(.gogoproto.nullable) = false]; */ public cosmos.params.v1beta1.Params.ParamChangeOrBuilder getParamOrBuilder() { return getParam(); } 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 (param_ != null) { output.writeMessage(1, getParam()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (param_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getParam()); } 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.params.v1beta1.QueryOuterClass.QueryParamsResponse)) { return super.equals(obj); } cosmos.params.v1beta1.QueryOuterClass.QueryParamsResponse other = (cosmos.params.v1beta1.QueryOuterClass.QueryParamsResponse) obj; boolean result = true; result = result && (hasParam() == other.hasParam()); if (hasParam()) { result = result && getParam() .equals(other.getParam()); } 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 (hasParam()) { hash = (37 * hash) + PARAM_FIELD_NUMBER; hash = (53 * hash) + getParam().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.params.v1beta1.QueryOuterClass.QueryParamsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.params.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.params.v1beta1.QueryOuterClass.QueryParamsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.params.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.params.v1beta1.QueryOuterClass.QueryParamsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.params.v1beta1.QueryOuterClass.QueryParamsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.params.v1beta1.QueryOuterClass.QueryParamsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.params.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.params.v1beta1.QueryOuterClass.QueryParamsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.params.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.params.v1beta1.QueryOuterClass.QueryParamsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.params.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.params.v1beta1.QueryOuterClass.QueryParamsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * QueryParamsResponse is response type for the Query/Params RPC method.
     * 
* * Protobuf type {@code cosmos.params.v1beta1.QueryParamsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.params.v1beta1.QueryParamsResponse) cosmos.params.v1beta1.QueryOuterClass.QueryParamsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.params.v1beta1.QueryOuterClass.internal_static_cosmos_params_v1beta1_QueryParamsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.params.v1beta1.QueryOuterClass.internal_static_cosmos_params_v1beta1_QueryParamsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.params.v1beta1.QueryOuterClass.QueryParamsResponse.class, cosmos.params.v1beta1.QueryOuterClass.QueryParamsResponse.Builder.class); } // Construct using cosmos.params.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 (paramBuilder_ == null) { param_ = null; } else { param_ = null; paramBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.params.v1beta1.QueryOuterClass.internal_static_cosmos_params_v1beta1_QueryParamsResponse_descriptor; } @java.lang.Override public cosmos.params.v1beta1.QueryOuterClass.QueryParamsResponse getDefaultInstanceForType() { return cosmos.params.v1beta1.QueryOuterClass.QueryParamsResponse.getDefaultInstance(); } @java.lang.Override public cosmos.params.v1beta1.QueryOuterClass.QueryParamsResponse build() { cosmos.params.v1beta1.QueryOuterClass.QueryParamsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.params.v1beta1.QueryOuterClass.QueryParamsResponse buildPartial() { cosmos.params.v1beta1.QueryOuterClass.QueryParamsResponse result = new cosmos.params.v1beta1.QueryOuterClass.QueryParamsResponse(this); if (paramBuilder_ == null) { result.param_ = param_; } else { result.param_ = paramBuilder_.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.params.v1beta1.QueryOuterClass.QueryParamsResponse) { return mergeFrom((cosmos.params.v1beta1.QueryOuterClass.QueryParamsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.params.v1beta1.QueryOuterClass.QueryParamsResponse other) { if (other == cosmos.params.v1beta1.QueryOuterClass.QueryParamsResponse.getDefaultInstance()) return this; if (other.hasParam()) { mergeParam(other.getParam()); } 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.params.v1beta1.QueryOuterClass.QueryParamsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.params.v1beta1.QueryOuterClass.QueryParamsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private cosmos.params.v1beta1.Params.ParamChange param_ = null; private com.google.protobuf.SingleFieldBuilderV3< cosmos.params.v1beta1.Params.ParamChange, cosmos.params.v1beta1.Params.ParamChange.Builder, cosmos.params.v1beta1.Params.ParamChangeOrBuilder> paramBuilder_; /** *
       * param defines the queried parameter.
       * 
* * .cosmos.params.v1beta1.ParamChange param = 1 [(.gogoproto.nullable) = false]; */ public boolean hasParam() { return paramBuilder_ != null || param_ != null; } /** *
       * param defines the queried parameter.
       * 
* * .cosmos.params.v1beta1.ParamChange param = 1 [(.gogoproto.nullable) = false]; */ public cosmos.params.v1beta1.Params.ParamChange getParam() { if (paramBuilder_ == null) { return param_ == null ? cosmos.params.v1beta1.Params.ParamChange.getDefaultInstance() : param_; } else { return paramBuilder_.getMessage(); } } /** *
       * param defines the queried parameter.
       * 
* * .cosmos.params.v1beta1.ParamChange param = 1 [(.gogoproto.nullable) = false]; */ public Builder setParam(cosmos.params.v1beta1.Params.ParamChange value) { if (paramBuilder_ == null) { if (value == null) { throw new NullPointerException(); } param_ = value; onChanged(); } else { paramBuilder_.setMessage(value); } return this; } /** *
       * param defines the queried parameter.
       * 
* * .cosmos.params.v1beta1.ParamChange param = 1 [(.gogoproto.nullable) = false]; */ public Builder setParam( cosmos.params.v1beta1.Params.ParamChange.Builder builderForValue) { if (paramBuilder_ == null) { param_ = builderForValue.build(); onChanged(); } else { paramBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * param defines the queried parameter.
       * 
* * .cosmos.params.v1beta1.ParamChange param = 1 [(.gogoproto.nullable) = false]; */ public Builder mergeParam(cosmos.params.v1beta1.Params.ParamChange value) { if (paramBuilder_ == null) { if (param_ != null) { param_ = cosmos.params.v1beta1.Params.ParamChange.newBuilder(param_).mergeFrom(value).buildPartial(); } else { param_ = value; } onChanged(); } else { paramBuilder_.mergeFrom(value); } return this; } /** *
       * param defines the queried parameter.
       * 
* * .cosmos.params.v1beta1.ParamChange param = 1 [(.gogoproto.nullable) = false]; */ public Builder clearParam() { if (paramBuilder_ == null) { param_ = null; onChanged(); } else { param_ = null; paramBuilder_ = null; } return this; } /** *
       * param defines the queried parameter.
       * 
* * .cosmos.params.v1beta1.ParamChange param = 1 [(.gogoproto.nullable) = false]; */ public cosmos.params.v1beta1.Params.ParamChange.Builder getParamBuilder() { onChanged(); return getParamFieldBuilder().getBuilder(); } /** *
       * param defines the queried parameter.
       * 
* * .cosmos.params.v1beta1.ParamChange param = 1 [(.gogoproto.nullable) = false]; */ public cosmos.params.v1beta1.Params.ParamChangeOrBuilder getParamOrBuilder() { if (paramBuilder_ != null) { return paramBuilder_.getMessageOrBuilder(); } else { return param_ == null ? cosmos.params.v1beta1.Params.ParamChange.getDefaultInstance() : param_; } } /** *
       * param defines the queried parameter.
       * 
* * .cosmos.params.v1beta1.ParamChange param = 1 [(.gogoproto.nullable) = false]; */ private com.google.protobuf.SingleFieldBuilderV3< cosmos.params.v1beta1.Params.ParamChange, cosmos.params.v1beta1.Params.ParamChange.Builder, cosmos.params.v1beta1.Params.ParamChangeOrBuilder> getParamFieldBuilder() { if (paramBuilder_ == null) { paramBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cosmos.params.v1beta1.Params.ParamChange, cosmos.params.v1beta1.Params.ParamChange.Builder, cosmos.params.v1beta1.Params.ParamChangeOrBuilder>( getParam(), getParentForChildren(), isClean()); param_ = null; } return paramBuilder_; } @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.params.v1beta1.QueryParamsResponse) } // @@protoc_insertion_point(class_scope:cosmos.params.v1beta1.QueryParamsResponse) private static final cosmos.params.v1beta1.QueryOuterClass.QueryParamsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.params.v1beta1.QueryOuterClass.QueryParamsResponse(); } public static cosmos.params.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.params.v1beta1.QueryOuterClass.QueryParamsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_params_v1beta1_QueryParamsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_params_v1beta1_QueryParamsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_params_v1beta1_QueryParamsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_params_v1beta1_QueryParamsResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n!cosmos/params/v1beta1/query.proto\022\025cos" + "mos.params.v1beta1\032\024gogoproto/gogo.proto" + "\032\034google/api/annotations.proto\032\"cosmos/p" + "arams/v1beta1/params.proto\"3\n\022QueryParam" + "sRequest\022\020\n\010subspace\030\001 \001(\t\022\013\n\003key\030\002 \001(\t\"" + "N\n\023QueryParamsResponse\0227\n\005param\030\001 \001(\0132\"." + "cosmos.params.v1beta1.ParamChangeB\004\310\336\037\0002" + "\220\001\n\005Query\022\206\001\n\006Params\022).cosmos.params.v1b" + "eta1.QueryParamsRequest\032*.cosmos.params." + "v1beta1.QueryParamsResponse\"%\202\323\344\223\002\037\022\035/co" + "smos/params/v1beta1/paramsB6Z4github.com" + "/cosmos/cosmos-sdk/x/params/types/propos" + "alb\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[] { com.google.protobuf.GoGoProtos.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), cosmos.params.v1beta1.Params.getDescriptor(), }, assigner); internal_static_cosmos_params_v1beta1_QueryParamsRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_cosmos_params_v1beta1_QueryParamsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_params_v1beta1_QueryParamsRequest_descriptor, new java.lang.String[] { "Subspace", "Key", }); internal_static_cosmos_params_v1beta1_QueryParamsResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_cosmos_params_v1beta1_QueryParamsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_params_v1beta1_QueryParamsResponse_descriptor, new java.lang.String[] { "Param", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.protobuf.GoGoProtos.nullable); registry.add(com.google.api.AnnotationsProto.http); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.protobuf.GoGoProtos.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); cosmos.params.v1beta1.Params.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy