Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
cosmos.upgrade.v1beta1.QueryOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: cosmos/upgrade/v1beta1/query.proto
package cosmos.upgrade.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 QueryCurrentPlanRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.upgrade.v1beta1.QueryCurrentPlanRequest)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC
* method.
*
*
* Protobuf type {@code cosmos.upgrade.v1beta1.QueryCurrentPlanRequest}
*/
public static final class QueryCurrentPlanRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.upgrade.v1beta1.QueryCurrentPlanRequest)
QueryCurrentPlanRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryCurrentPlanRequest.newBuilder() to construct.
private QueryCurrentPlanRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryCurrentPlanRequest() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryCurrentPlanRequest(
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.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest.class, cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest.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.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest)) {
return super.equals(obj);
}
cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest other = (cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest) 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.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest 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.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest 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.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest 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.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest 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;
}
/**
*
* QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC
* method.
*
*
* Protobuf type {@code cosmos.upgrade.v1beta1.QueryCurrentPlanRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.upgrade.v1beta1.QueryCurrentPlanRequest)
cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest.class, cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest.Builder.class);
}
// Construct using cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest.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.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanRequest_descriptor;
}
@java.lang.Override
public cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest getDefaultInstanceForType() {
return cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest.getDefaultInstance();
}
@java.lang.Override
public cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest build() {
cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest buildPartial() {
cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest result = new cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest(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.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest) {
return mergeFrom((cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest other) {
if (other == cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest.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.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest) 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.upgrade.v1beta1.QueryCurrentPlanRequest)
}
// @@protoc_insertion_point(class_scope:cosmos.upgrade.v1beta1.QueryCurrentPlanRequest)
private static final cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest();
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryCurrentPlanRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryCurrentPlanRequest(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.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryCurrentPlanResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.upgrade.v1beta1.QueryCurrentPlanResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* plan is the current upgrade plan.
*
*
* .cosmos.upgrade.v1beta1.Plan plan = 1;
*/
boolean hasPlan();
/**
*
* plan is the current upgrade plan.
*
*
* .cosmos.upgrade.v1beta1.Plan plan = 1;
*/
cosmos.upgrade.v1beta1.Upgrade.Plan getPlan();
/**
*
* plan is the current upgrade plan.
*
*
* .cosmos.upgrade.v1beta1.Plan plan = 1;
*/
cosmos.upgrade.v1beta1.Upgrade.PlanOrBuilder getPlanOrBuilder();
}
/**
*
* QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC
* method.
*
*
* Protobuf type {@code cosmos.upgrade.v1beta1.QueryCurrentPlanResponse}
*/
public static final class QueryCurrentPlanResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.upgrade.v1beta1.QueryCurrentPlanResponse)
QueryCurrentPlanResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryCurrentPlanResponse.newBuilder() to construct.
private QueryCurrentPlanResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryCurrentPlanResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryCurrentPlanResponse(
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.upgrade.v1beta1.Upgrade.Plan.Builder subBuilder = null;
if (plan_ != null) {
subBuilder = plan_.toBuilder();
}
plan_ = input.readMessage(cosmos.upgrade.v1beta1.Upgrade.Plan.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(plan_);
plan_ = 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.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse.class, cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse.Builder.class);
}
public static final int PLAN_FIELD_NUMBER = 1;
private cosmos.upgrade.v1beta1.Upgrade.Plan plan_;
/**
*
* plan is the current upgrade plan.
*
*
* .cosmos.upgrade.v1beta1.Plan plan = 1;
*/
public boolean hasPlan() {
return plan_ != null;
}
/**
*
* plan is the current upgrade plan.
*
*
* .cosmos.upgrade.v1beta1.Plan plan = 1;
*/
public cosmos.upgrade.v1beta1.Upgrade.Plan getPlan() {
return plan_ == null ? cosmos.upgrade.v1beta1.Upgrade.Plan.getDefaultInstance() : plan_;
}
/**
*
* plan is the current upgrade plan.
*
*
* .cosmos.upgrade.v1beta1.Plan plan = 1;
*/
public cosmos.upgrade.v1beta1.Upgrade.PlanOrBuilder getPlanOrBuilder() {
return getPlan();
}
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 (plan_ != null) {
output.writeMessage(1, getPlan());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (plan_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getPlan());
}
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.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse)) {
return super.equals(obj);
}
cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse other = (cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse) obj;
boolean result = true;
result = result && (hasPlan() == other.hasPlan());
if (hasPlan()) {
result = result && getPlan()
.equals(other.getPlan());
}
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 (hasPlan()) {
hash = (37 * hash) + PLAN_FIELD_NUMBER;
hash = (53 * hash) + getPlan().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse 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.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse 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.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse 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.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse 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;
}
/**
*
* QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC
* method.
*
*
* Protobuf type {@code cosmos.upgrade.v1beta1.QueryCurrentPlanResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.upgrade.v1beta1.QueryCurrentPlanResponse)
cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse.class, cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse.Builder.class);
}
// Construct using cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse.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 (planBuilder_ == null) {
plan_ = null;
} else {
plan_ = null;
planBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanResponse_descriptor;
}
@java.lang.Override
public cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse getDefaultInstanceForType() {
return cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse.getDefaultInstance();
}
@java.lang.Override
public cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse build() {
cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse buildPartial() {
cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse result = new cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse(this);
if (planBuilder_ == null) {
result.plan_ = plan_;
} else {
result.plan_ = planBuilder_.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.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse) {
return mergeFrom((cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse other) {
if (other == cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse.getDefaultInstance()) return this;
if (other.hasPlan()) {
mergePlan(other.getPlan());
}
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.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private cosmos.upgrade.v1beta1.Upgrade.Plan plan_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.upgrade.v1beta1.Upgrade.Plan, cosmos.upgrade.v1beta1.Upgrade.Plan.Builder, cosmos.upgrade.v1beta1.Upgrade.PlanOrBuilder> planBuilder_;
/**
*
* plan is the current upgrade plan.
*
*
* .cosmos.upgrade.v1beta1.Plan plan = 1;
*/
public boolean hasPlan() {
return planBuilder_ != null || plan_ != null;
}
/**
*
* plan is the current upgrade plan.
*
*
* .cosmos.upgrade.v1beta1.Plan plan = 1;
*/
public cosmos.upgrade.v1beta1.Upgrade.Plan getPlan() {
if (planBuilder_ == null) {
return plan_ == null ? cosmos.upgrade.v1beta1.Upgrade.Plan.getDefaultInstance() : plan_;
} else {
return planBuilder_.getMessage();
}
}
/**
*
* plan is the current upgrade plan.
*
*
* .cosmos.upgrade.v1beta1.Plan plan = 1;
*/
public Builder setPlan(cosmos.upgrade.v1beta1.Upgrade.Plan value) {
if (planBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
plan_ = value;
onChanged();
} else {
planBuilder_.setMessage(value);
}
return this;
}
/**
*
* plan is the current upgrade plan.
*
*
* .cosmos.upgrade.v1beta1.Plan plan = 1;
*/
public Builder setPlan(
cosmos.upgrade.v1beta1.Upgrade.Plan.Builder builderForValue) {
if (planBuilder_ == null) {
plan_ = builderForValue.build();
onChanged();
} else {
planBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* plan is the current upgrade plan.
*
*
* .cosmos.upgrade.v1beta1.Plan plan = 1;
*/
public Builder mergePlan(cosmos.upgrade.v1beta1.Upgrade.Plan value) {
if (planBuilder_ == null) {
if (plan_ != null) {
plan_ =
cosmos.upgrade.v1beta1.Upgrade.Plan.newBuilder(plan_).mergeFrom(value).buildPartial();
} else {
plan_ = value;
}
onChanged();
} else {
planBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* plan is the current upgrade plan.
*
*
* .cosmos.upgrade.v1beta1.Plan plan = 1;
*/
public Builder clearPlan() {
if (planBuilder_ == null) {
plan_ = null;
onChanged();
} else {
plan_ = null;
planBuilder_ = null;
}
return this;
}
/**
*
* plan is the current upgrade plan.
*
*
* .cosmos.upgrade.v1beta1.Plan plan = 1;
*/
public cosmos.upgrade.v1beta1.Upgrade.Plan.Builder getPlanBuilder() {
onChanged();
return getPlanFieldBuilder().getBuilder();
}
/**
*
* plan is the current upgrade plan.
*
*
* .cosmos.upgrade.v1beta1.Plan plan = 1;
*/
public cosmos.upgrade.v1beta1.Upgrade.PlanOrBuilder getPlanOrBuilder() {
if (planBuilder_ != null) {
return planBuilder_.getMessageOrBuilder();
} else {
return plan_ == null ?
cosmos.upgrade.v1beta1.Upgrade.Plan.getDefaultInstance() : plan_;
}
}
/**
*
* plan is the current upgrade plan.
*
*
* .cosmos.upgrade.v1beta1.Plan plan = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.upgrade.v1beta1.Upgrade.Plan, cosmos.upgrade.v1beta1.Upgrade.Plan.Builder, cosmos.upgrade.v1beta1.Upgrade.PlanOrBuilder>
getPlanFieldBuilder() {
if (planBuilder_ == null) {
planBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmos.upgrade.v1beta1.Upgrade.Plan, cosmos.upgrade.v1beta1.Upgrade.Plan.Builder, cosmos.upgrade.v1beta1.Upgrade.PlanOrBuilder>(
getPlan(),
getParentForChildren(),
isClean());
plan_ = null;
}
return planBuilder_;
}
@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.upgrade.v1beta1.QueryCurrentPlanResponse)
}
// @@protoc_insertion_point(class_scope:cosmos.upgrade.v1beta1.QueryCurrentPlanResponse)
private static final cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse();
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryCurrentPlanResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryCurrentPlanResponse(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.upgrade.v1beta1.QueryOuterClass.QueryCurrentPlanResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryAppliedPlanRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.upgrade.v1beta1.QueryAppliedPlanRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* name is the name of the applied plan to query for.
*
*
* string name = 1;
*/
java.lang.String getName();
/**
*
* name is the name of the applied plan to query for.
*
*
* string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
}
/**
*
* QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC
* method.
*
*
* Protobuf type {@code cosmos.upgrade.v1beta1.QueryAppliedPlanRequest}
*/
public static final class QueryAppliedPlanRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.upgrade.v1beta1.QueryAppliedPlanRequest)
QueryAppliedPlanRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryAppliedPlanRequest.newBuilder() to construct.
private QueryAppliedPlanRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryAppliedPlanRequest() {
name_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryAppliedPlanRequest(
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();
name_ = 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.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest.class, cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* name is the name of the applied plan to query for.
*
*
* string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
*
* name is the name of the applied plan to query for.
*
*
* string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = 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 (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
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.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest)) {
return super.equals(obj);
}
cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest other = (cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest) obj;
boolean result = true;
result = result && getName()
.equals(other.getName());
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) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest 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.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest 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.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest 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.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest 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;
}
/**
*
* QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC
* method.
*
*
* Protobuf type {@code cosmos.upgrade.v1beta1.QueryAppliedPlanRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.upgrade.v1beta1.QueryAppliedPlanRequest)
cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest.class, cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest.Builder.class);
}
// Construct using cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest.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();
name_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanRequest_descriptor;
}
@java.lang.Override
public cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest getDefaultInstanceForType() {
return cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest.getDefaultInstance();
}
@java.lang.Override
public cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest build() {
cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest buildPartial() {
cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest result = new cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest(this);
result.name_ = name_;
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.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest) {
return mergeFrom((cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest other) {
if (other == cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
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.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object name_ = "";
/**
*
* name is the name of the applied plan to query for.
*
*
* string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* name is the name of the applied plan to query for.
*
*
* string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* name is the name of the applied plan to query for.
*
*
* string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* name is the name of the applied plan to query for.
*
*
* string name = 1;
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* name is the name of the applied plan to query for.
*
*
* string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = 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.upgrade.v1beta1.QueryAppliedPlanRequest)
}
// @@protoc_insertion_point(class_scope:cosmos.upgrade.v1beta1.QueryAppliedPlanRequest)
private static final cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest();
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryAppliedPlanRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryAppliedPlanRequest(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.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryAppliedPlanResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.upgrade.v1beta1.QueryAppliedPlanResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* height is the block height at which the plan was applied.
*
*
* int64 height = 1;
*/
long getHeight();
}
/**
*
* QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC
* method.
*
*
* Protobuf type {@code cosmos.upgrade.v1beta1.QueryAppliedPlanResponse}
*/
public static final class QueryAppliedPlanResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.upgrade.v1beta1.QueryAppliedPlanResponse)
QueryAppliedPlanResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryAppliedPlanResponse.newBuilder() to construct.
private QueryAppliedPlanResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryAppliedPlanResponse() {
height_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryAppliedPlanResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
height_ = input.readInt64();
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse.class, cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse.Builder.class);
}
public static final int HEIGHT_FIELD_NUMBER = 1;
private long height_;
/**
*
* height is the block height at which the plan was applied.
*
*
* int64 height = 1;
*/
public long getHeight() {
return height_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (height_ != 0L) {
output.writeInt64(1, height_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (height_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, height_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse)) {
return super.equals(obj);
}
cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse other = (cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse) obj;
boolean result = true;
result = result && (getHeight()
== other.getHeight());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getHeight());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse 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.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse 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.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse 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.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse 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;
}
/**
*
* QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC
* method.
*
*
* Protobuf type {@code cosmos.upgrade.v1beta1.QueryAppliedPlanResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.upgrade.v1beta1.QueryAppliedPlanResponse)
cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse.class, cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse.Builder.class);
}
// Construct using cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
height_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanResponse_descriptor;
}
@java.lang.Override
public cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse getDefaultInstanceForType() {
return cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse.getDefaultInstance();
}
@java.lang.Override
public cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse build() {
cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse buildPartial() {
cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse result = new cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse(this);
result.height_ = height_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse) {
return mergeFrom((cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse other) {
if (other == cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse.getDefaultInstance()) return this;
if (other.getHeight() != 0L) {
setHeight(other.getHeight());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long height_ ;
/**
*
* height is the block height at which the plan was applied.
*
*
* int64 height = 1;
*/
public long getHeight() {
return height_;
}
/**
*
* height is the block height at which the plan was applied.
*
*
* int64 height = 1;
*/
public Builder setHeight(long value) {
height_ = value;
onChanged();
return this;
}
/**
*
* height is the block height at which the plan was applied.
*
*
* int64 height = 1;
*/
public Builder clearHeight() {
height_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmos.upgrade.v1beta1.QueryAppliedPlanResponse)
}
// @@protoc_insertion_point(class_scope:cosmos.upgrade.v1beta1.QueryAppliedPlanResponse)
private static final cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse();
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryAppliedPlanResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryAppliedPlanResponse(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.upgrade.v1beta1.QueryOuterClass.QueryAppliedPlanResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryUpgradedConsensusStateRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* last height of the current chain must be sent in request
* as this is the height under which next consensus state is stored
*
*
* int64 last_height = 1;
*/
long getLastHeight();
}
/**
*
* QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState
* RPC method.
*
*
* Protobuf type {@code cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest}
*/
public static final class QueryUpgradedConsensusStateRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest)
QueryUpgradedConsensusStateRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryUpgradedConsensusStateRequest.newBuilder() to construct.
private QueryUpgradedConsensusStateRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryUpgradedConsensusStateRequest() {
lastHeight_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryUpgradedConsensusStateRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
lastHeight_ = input.readInt64();
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest.class, cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest.Builder.class);
}
public static final int LAST_HEIGHT_FIELD_NUMBER = 1;
private long lastHeight_;
/**
*
* last height of the current chain must be sent in request
* as this is the height under which next consensus state is stored
*
*
* int64 last_height = 1;
*/
public long getLastHeight() {
return lastHeight_;
}
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 (lastHeight_ != 0L) {
output.writeInt64(1, lastHeight_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (lastHeight_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, lastHeight_);
}
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.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest)) {
return super.equals(obj);
}
cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest other = (cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest) obj;
boolean result = true;
result = result && (getLastHeight()
== other.getLastHeight());
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) + LAST_HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLastHeight());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest 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.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest 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.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest 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.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest 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;
}
/**
*
* QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState
* RPC method.
*
*
* Protobuf type {@code cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest)
cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest.class, cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest.Builder.class);
}
// Construct using cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest.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();
lastHeight_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateRequest_descriptor;
}
@java.lang.Override
public cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest getDefaultInstanceForType() {
return cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest.getDefaultInstance();
}
@java.lang.Override
public cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest build() {
cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest buildPartial() {
cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest result = new cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest(this);
result.lastHeight_ = lastHeight_;
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.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest) {
return mergeFrom((cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest other) {
if (other == cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest.getDefaultInstance()) return this;
if (other.getLastHeight() != 0L) {
setLastHeight(other.getLastHeight());
}
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.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long lastHeight_ ;
/**
*
* last height of the current chain must be sent in request
* as this is the height under which next consensus state is stored
*
*
* int64 last_height = 1;
*/
public long getLastHeight() {
return lastHeight_;
}
/**
*
* last height of the current chain must be sent in request
* as this is the height under which next consensus state is stored
*
*
* int64 last_height = 1;
*/
public Builder setLastHeight(long value) {
lastHeight_ = value;
onChanged();
return this;
}
/**
*
* last height of the current chain must be sent in request
* as this is the height under which next consensus state is stored
*
*
* int64 last_height = 1;
*/
public Builder clearLastHeight() {
lastHeight_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest)
}
// @@protoc_insertion_point(class_scope:cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest)
private static final cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest();
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryUpgradedConsensusStateRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryUpgradedConsensusStateRequest(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.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryUpgradedConsensusStateResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .google.protobuf.Any upgraded_consensus_state = 1;
*/
boolean hasUpgradedConsensusState();
/**
* .google.protobuf.Any upgraded_consensus_state = 1;
*/
com.google.protobuf.Any getUpgradedConsensusState();
/**
* .google.protobuf.Any upgraded_consensus_state = 1;
*/
com.google.protobuf.AnyOrBuilder getUpgradedConsensusStateOrBuilder();
}
/**
*
* QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState
* RPC method.
*
*
* Protobuf type {@code cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse}
*/
public static final class QueryUpgradedConsensusStateResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse)
QueryUpgradedConsensusStateResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryUpgradedConsensusStateResponse.newBuilder() to construct.
private QueryUpgradedConsensusStateResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryUpgradedConsensusStateResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryUpgradedConsensusStateResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.Any.Builder subBuilder = null;
if (upgradedConsensusState_ != null) {
subBuilder = upgradedConsensusState_.toBuilder();
}
upgradedConsensusState_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(upgradedConsensusState_);
upgradedConsensusState_ = 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.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse.class, cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse.Builder.class);
}
public static final int UPGRADED_CONSENSUS_STATE_FIELD_NUMBER = 1;
private com.google.protobuf.Any upgradedConsensusState_;
/**
* .google.protobuf.Any upgraded_consensus_state = 1;
*/
public boolean hasUpgradedConsensusState() {
return upgradedConsensusState_ != null;
}
/**
* .google.protobuf.Any upgraded_consensus_state = 1;
*/
public com.google.protobuf.Any getUpgradedConsensusState() {
return upgradedConsensusState_ == null ? com.google.protobuf.Any.getDefaultInstance() : upgradedConsensusState_;
}
/**
* .google.protobuf.Any upgraded_consensus_state = 1;
*/
public com.google.protobuf.AnyOrBuilder getUpgradedConsensusStateOrBuilder() {
return getUpgradedConsensusState();
}
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 (upgradedConsensusState_ != null) {
output.writeMessage(1, getUpgradedConsensusState());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (upgradedConsensusState_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getUpgradedConsensusState());
}
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.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse)) {
return super.equals(obj);
}
cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse other = (cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse) obj;
boolean result = true;
result = result && (hasUpgradedConsensusState() == other.hasUpgradedConsensusState());
if (hasUpgradedConsensusState()) {
result = result && getUpgradedConsensusState()
.equals(other.getUpgradedConsensusState());
}
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 (hasUpgradedConsensusState()) {
hash = (37 * hash) + UPGRADED_CONSENSUS_STATE_FIELD_NUMBER;
hash = (53 * hash) + getUpgradedConsensusState().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse 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.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse 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.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse 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.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse 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;
}
/**
*
* QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState
* RPC method.
*
*
* Protobuf type {@code cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse)
cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse.class, cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse.Builder.class);
}
// Construct using cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse.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 (upgradedConsensusStateBuilder_ == null) {
upgradedConsensusState_ = null;
} else {
upgradedConsensusState_ = null;
upgradedConsensusStateBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.upgrade.v1beta1.QueryOuterClass.internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateResponse_descriptor;
}
@java.lang.Override
public cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse getDefaultInstanceForType() {
return cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse.getDefaultInstance();
}
@java.lang.Override
public cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse build() {
cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse buildPartial() {
cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse result = new cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse(this);
if (upgradedConsensusStateBuilder_ == null) {
result.upgradedConsensusState_ = upgradedConsensusState_;
} else {
result.upgradedConsensusState_ = upgradedConsensusStateBuilder_.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.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse) {
return mergeFrom((cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse other) {
if (other == cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse.getDefaultInstance()) return this;
if (other.hasUpgradedConsensusState()) {
mergeUpgradedConsensusState(other.getUpgradedConsensusState());
}
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.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.Any upgradedConsensusState_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> upgradedConsensusStateBuilder_;
/**
* .google.protobuf.Any upgraded_consensus_state = 1;
*/
public boolean hasUpgradedConsensusState() {
return upgradedConsensusStateBuilder_ != null || upgradedConsensusState_ != null;
}
/**
* .google.protobuf.Any upgraded_consensus_state = 1;
*/
public com.google.protobuf.Any getUpgradedConsensusState() {
if (upgradedConsensusStateBuilder_ == null) {
return upgradedConsensusState_ == null ? com.google.protobuf.Any.getDefaultInstance() : upgradedConsensusState_;
} else {
return upgradedConsensusStateBuilder_.getMessage();
}
}
/**
* .google.protobuf.Any upgraded_consensus_state = 1;
*/
public Builder setUpgradedConsensusState(com.google.protobuf.Any value) {
if (upgradedConsensusStateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
upgradedConsensusState_ = value;
onChanged();
} else {
upgradedConsensusStateBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.Any upgraded_consensus_state = 1;
*/
public Builder setUpgradedConsensusState(
com.google.protobuf.Any.Builder builderForValue) {
if (upgradedConsensusStateBuilder_ == null) {
upgradedConsensusState_ = builderForValue.build();
onChanged();
} else {
upgradedConsensusStateBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.Any upgraded_consensus_state = 1;
*/
public Builder mergeUpgradedConsensusState(com.google.protobuf.Any value) {
if (upgradedConsensusStateBuilder_ == null) {
if (upgradedConsensusState_ != null) {
upgradedConsensusState_ =
com.google.protobuf.Any.newBuilder(upgradedConsensusState_).mergeFrom(value).buildPartial();
} else {
upgradedConsensusState_ = value;
}
onChanged();
} else {
upgradedConsensusStateBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.Any upgraded_consensus_state = 1;
*/
public Builder clearUpgradedConsensusState() {
if (upgradedConsensusStateBuilder_ == null) {
upgradedConsensusState_ = null;
onChanged();
} else {
upgradedConsensusState_ = null;
upgradedConsensusStateBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.Any upgraded_consensus_state = 1;
*/
public com.google.protobuf.Any.Builder getUpgradedConsensusStateBuilder() {
onChanged();
return getUpgradedConsensusStateFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Any upgraded_consensus_state = 1;
*/
public com.google.protobuf.AnyOrBuilder getUpgradedConsensusStateOrBuilder() {
if (upgradedConsensusStateBuilder_ != null) {
return upgradedConsensusStateBuilder_.getMessageOrBuilder();
} else {
return upgradedConsensusState_ == null ?
com.google.protobuf.Any.getDefaultInstance() : upgradedConsensusState_;
}
}
/**
* .google.protobuf.Any upgraded_consensus_state = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getUpgradedConsensusStateFieldBuilder() {
if (upgradedConsensusStateBuilder_ == null) {
upgradedConsensusStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
getUpgradedConsensusState(),
getParentForChildren(),
isClean());
upgradedConsensusState_ = null;
}
return upgradedConsensusStateBuilder_;
}
@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.upgrade.v1beta1.QueryUpgradedConsensusStateResponse)
}
// @@protoc_insertion_point(class_scope:cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse)
private static final cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse();
}
public static cosmos.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryUpgradedConsensusStateResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryUpgradedConsensusStateResponse(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.upgrade.v1beta1.QueryOuterClass.QueryUpgradedConsensusStateResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateResponse_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/upgrade/v1beta1/query.proto\022\026co" +
"smos.upgrade.v1beta1\032\031google/protobuf/an" +
"y.proto\032\034google/api/annotations.proto\032$c" +
"osmos/upgrade/v1beta1/upgrade.proto\"\031\n\027Q" +
"ueryCurrentPlanRequest\"F\n\030QueryCurrentPl" +
"anResponse\022*\n\004plan\030\001 \001(\0132\034.cosmos.upgrad" +
"e.v1beta1.Plan\"\'\n\027QueryAppliedPlanReques" +
"t\022\014\n\004name\030\001 \001(\t\"*\n\030QueryAppliedPlanRespo" +
"nse\022\016\n\006height\030\001 \001(\003\"9\n\"QueryUpgradedCons" +
"ensusStateRequest\022\023\n\013last_height\030\001 \001(\003\"]" +
"\n#QueryUpgradedConsensusStateResponse\0226\n" +
"\030upgraded_consensus_state\030\001 \001(\0132\024.google" +
".protobuf.Any2\254\004\n\005Query\022\236\001\n\013CurrentPlan\022" +
"/.cosmos.upgrade.v1beta1.QueryCurrentPla" +
"nRequest\0320.cosmos.upgrade.v1beta1.QueryC" +
"urrentPlanResponse\",\202\323\344\223\002&\022$/cosmos/upgr" +
"ade/v1beta1/current_plan\022\245\001\n\013AppliedPlan" +
"\022/.cosmos.upgrade.v1beta1.QueryAppliedPl" +
"anRequest\0320.cosmos.upgrade.v1beta1.Query" +
"AppliedPlanResponse\"3\202\323\344\223\002-\022+/cosmos/upg" +
"rade/v1beta1/applied_plan/{name}\022\331\001\n\026Upg" +
"radedConsensusState\022:.cosmos.upgrade.v1b" +
"eta1.QueryUpgradedConsensusStateRequest\032" +
";.cosmos.upgrade.v1beta1.QueryUpgradedCo" +
"nsensusStateResponse\"F\202\323\344\223\002@\022>/cosmos/up" +
"grade/v1beta1/upgraded_consensus_state/{" +
"last_height}B.Z,github.com/cosmos/cosmos" +
"-sdk/x/upgrade/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[] {
com.google.protobuf.AnyProto.getDescriptor(),
com.google.api.AnnotationsProto.getDescriptor(),
cosmos.upgrade.v1beta1.Upgrade.getDescriptor(),
}, assigner);
internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanRequest_descriptor,
new java.lang.String[] { });
internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_upgrade_v1beta1_QueryCurrentPlanResponse_descriptor,
new java.lang.String[] { "Plan", });
internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanRequest_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanRequest_descriptor,
new java.lang.String[] { "Name", });
internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanResponse_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_upgrade_v1beta1_QueryAppliedPlanResponse_descriptor,
new java.lang.String[] { "Height", });
internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateRequest_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateRequest_descriptor,
new java.lang.String[] { "LastHeight", });
internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateResponse_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_upgrade_v1beta1_QueryUpgradedConsensusStateResponse_descriptor,
new java.lang.String[] { "UpgradedConsensusState", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.AnnotationsProto.http);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.protobuf.AnyProto.getDescriptor();
com.google.api.AnnotationsProto.getDescriptor();
cosmos.upgrade.v1beta1.Upgrade.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}