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.params.v1beta1.Params Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: cosmos/params/v1beta1/params.proto
package cosmos.params.v1beta1;
public final class Params {
private Params() {}
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 ParameterChangeProposalOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.params.v1beta1.ParameterChangeProposal)
com.google.protobuf.MessageOrBuilder {
/**
* string title = 1;
*/
java.lang.String getTitle();
/**
* string title = 1;
*/
com.google.protobuf.ByteString
getTitleBytes();
/**
* string description = 2;
*/
java.lang.String getDescription();
/**
* string description = 2;
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
* repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false];
*/
java.util.List
getChangesList();
/**
* repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false];
*/
cosmos.params.v1beta1.Params.ParamChange getChanges(int index);
/**
* repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false];
*/
int getChangesCount();
/**
* repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false];
*/
java.util.List extends cosmos.params.v1beta1.Params.ParamChangeOrBuilder>
getChangesOrBuilderList();
/**
* repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false];
*/
cosmos.params.v1beta1.Params.ParamChangeOrBuilder getChangesOrBuilder(
int index);
}
/**
*
* ParameterChangeProposal defines a proposal to change one or more parameters.
*
*
* Protobuf type {@code cosmos.params.v1beta1.ParameterChangeProposal}
*/
public static final class ParameterChangeProposal extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.params.v1beta1.ParameterChangeProposal)
ParameterChangeProposalOrBuilder {
private static final long serialVersionUID = 0L;
// Use ParameterChangeProposal.newBuilder() to construct.
private ParameterChangeProposal(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ParameterChangeProposal() {
title_ = "";
description_ = "";
changes_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ParameterChangeProposal(
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();
title_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
changes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
changes_.add(
input.readMessage(cosmos.params.v1beta1.Params.ParamChange.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
changes_ = java.util.Collections.unmodifiableList(changes_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.params.v1beta1.Params.internal_static_cosmos_params_v1beta1_ParameterChangeProposal_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.params.v1beta1.Params.internal_static_cosmos_params_v1beta1_ParameterChangeProposal_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.params.v1beta1.Params.ParameterChangeProposal.class, cosmos.params.v1beta1.Params.ParameterChangeProposal.Builder.class);
}
private int bitField0_;
public static final int TITLE_FIELD_NUMBER = 1;
private volatile java.lang.Object title_;
/**
* string title = 1;
*/
public java.lang.String getTitle() {
java.lang.Object ref = title_;
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();
title_ = s;
return s;
}
}
/**
* string title = 1;
*/
public com.google.protobuf.ByteString
getTitleBytes() {
java.lang.Object ref = title_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
title_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 2;
private volatile java.lang.Object description_;
/**
* string description = 2;
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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();
description_ = s;
return s;
}
}
/**
* string description = 2;
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CHANGES_FIELD_NUMBER = 3;
private java.util.List changes_;
/**
* repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false];
*/
public java.util.List getChangesList() {
return changes_;
}
/**
* repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false];
*/
public java.util.List extends cosmos.params.v1beta1.Params.ParamChangeOrBuilder>
getChangesOrBuilderList() {
return changes_;
}
/**
* repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false];
*/
public int getChangesCount() {
return changes_.size();
}
/**
* repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false];
*/
public cosmos.params.v1beta1.Params.ParamChange getChanges(int index) {
return changes_.get(index);
}
/**
* repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false];
*/
public cosmos.params.v1beta1.Params.ParamChangeOrBuilder getChangesOrBuilder(
int index) {
return changes_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getTitleBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_);
}
if (!getDescriptionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
}
for (int i = 0; i < changes_.size(); i++) {
output.writeMessage(3, changes_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getTitleBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_);
}
if (!getDescriptionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
}
for (int i = 0; i < changes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, changes_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cosmos.params.v1beta1.Params.ParameterChangeProposal)) {
return super.equals(obj);
}
cosmos.params.v1beta1.Params.ParameterChangeProposal other = (cosmos.params.v1beta1.Params.ParameterChangeProposal) obj;
boolean result = true;
result = result && getTitle()
.equals(other.getTitle());
result = result && getDescription()
.equals(other.getDescription());
result = result && getChangesList()
.equals(other.getChangesList());
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) + TITLE_FIELD_NUMBER;
hash = (53 * hash) + getTitle().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
if (getChangesCount() > 0) {
hash = (37 * hash) + CHANGES_FIELD_NUMBER;
hash = (53 * hash) + getChangesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.params.v1beta1.Params.ParameterChangeProposal parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.params.v1beta1.Params.ParameterChangeProposal parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.params.v1beta1.Params.ParameterChangeProposal parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.params.v1beta1.Params.ParameterChangeProposal parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.params.v1beta1.Params.ParameterChangeProposal parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.params.v1beta1.Params.ParameterChangeProposal parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.params.v1beta1.Params.ParameterChangeProposal parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.params.v1beta1.Params.ParameterChangeProposal parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cosmos.params.v1beta1.Params.ParameterChangeProposal parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.params.v1beta1.Params.ParameterChangeProposal parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cosmos.params.v1beta1.Params.ParameterChangeProposal parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.params.v1beta1.Params.ParameterChangeProposal parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cosmos.params.v1beta1.Params.ParameterChangeProposal 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;
}
/**
*
* ParameterChangeProposal defines a proposal to change one or more parameters.
*
*
* Protobuf type {@code cosmos.params.v1beta1.ParameterChangeProposal}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.params.v1beta1.ParameterChangeProposal)
cosmos.params.v1beta1.Params.ParameterChangeProposalOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.params.v1beta1.Params.internal_static_cosmos_params_v1beta1_ParameterChangeProposal_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.params.v1beta1.Params.internal_static_cosmos_params_v1beta1_ParameterChangeProposal_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.params.v1beta1.Params.ParameterChangeProposal.class, cosmos.params.v1beta1.Params.ParameterChangeProposal.Builder.class);
}
// Construct using cosmos.params.v1beta1.Params.ParameterChangeProposal.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getChangesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
title_ = "";
description_ = "";
if (changesBuilder_ == null) {
changes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
changesBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.params.v1beta1.Params.internal_static_cosmos_params_v1beta1_ParameterChangeProposal_descriptor;
}
@java.lang.Override
public cosmos.params.v1beta1.Params.ParameterChangeProposal getDefaultInstanceForType() {
return cosmos.params.v1beta1.Params.ParameterChangeProposal.getDefaultInstance();
}
@java.lang.Override
public cosmos.params.v1beta1.Params.ParameterChangeProposal build() {
cosmos.params.v1beta1.Params.ParameterChangeProposal result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.params.v1beta1.Params.ParameterChangeProposal buildPartial() {
cosmos.params.v1beta1.Params.ParameterChangeProposal result = new cosmos.params.v1beta1.Params.ParameterChangeProposal(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.title_ = title_;
result.description_ = description_;
if (changesBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
changes_ = java.util.Collections.unmodifiableList(changes_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.changes_ = changes_;
} else {
result.changes_ = changesBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmos.params.v1beta1.Params.ParameterChangeProposal) {
return mergeFrom((cosmos.params.v1beta1.Params.ParameterChangeProposal)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.params.v1beta1.Params.ParameterChangeProposal other) {
if (other == cosmos.params.v1beta1.Params.ParameterChangeProposal.getDefaultInstance()) return this;
if (!other.getTitle().isEmpty()) {
title_ = other.title_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
if (changesBuilder_ == null) {
if (!other.changes_.isEmpty()) {
if (changes_.isEmpty()) {
changes_ = other.changes_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureChangesIsMutable();
changes_.addAll(other.changes_);
}
onChanged();
}
} else {
if (!other.changes_.isEmpty()) {
if (changesBuilder_.isEmpty()) {
changesBuilder_.dispose();
changesBuilder_ = null;
changes_ = other.changes_;
bitField0_ = (bitField0_ & ~0x00000004);
changesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getChangesFieldBuilder() : null;
} else {
changesBuilder_.addAllMessages(other.changes_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cosmos.params.v1beta1.Params.ParameterChangeProposal parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.params.v1beta1.Params.ParameterChangeProposal) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object title_ = "";
/**
* string title = 1;
*/
public java.lang.String getTitle() {
java.lang.Object ref = title_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
title_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string title = 1;
*/
public com.google.protobuf.ByteString
getTitleBytes() {
java.lang.Object ref = title_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
title_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string title = 1;
*/
public Builder setTitle(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
title_ = value;
onChanged();
return this;
}
/**
* string title = 1;
*/
public Builder clearTitle() {
title_ = getDefaultInstance().getTitle();
onChanged();
return this;
}
/**
* string title = 1;
*/
public Builder setTitleBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
title_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
* string description = 2;
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string description = 2;
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string description = 2;
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
* string description = 2;
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
* string description = 2;
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private java.util.List changes_ =
java.util.Collections.emptyList();
private void ensureChangesIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
changes_ = new java.util.ArrayList(changes_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.params.v1beta1.Params.ParamChange, cosmos.params.v1beta1.Params.ParamChange.Builder, cosmos.params.v1beta1.Params.ParamChangeOrBuilder> changesBuilder_;
/**
* repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false];
*/
public java.util.List getChangesList() {
if (changesBuilder_ == null) {
return java.util.Collections.unmodifiableList(changes_);
} else {
return changesBuilder_.getMessageList();
}
}
/**
* repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false];
*/
public int getChangesCount() {
if (changesBuilder_ == null) {
return changes_.size();
} else {
return changesBuilder_.getCount();
}
}
/**
* repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false];
*/
public cosmos.params.v1beta1.Params.ParamChange getChanges(int index) {
if (changesBuilder_ == null) {
return changes_.get(index);
} else {
return changesBuilder_.getMessage(index);
}
}
/**
* repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false];
*/
public Builder setChanges(
int index, cosmos.params.v1beta1.Params.ParamChange value) {
if (changesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChangesIsMutable();
changes_.set(index, value);
onChanged();
} else {
changesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false];
*/
public Builder setChanges(
int index, cosmos.params.v1beta1.Params.ParamChange.Builder builderForValue) {
if (changesBuilder_ == null) {
ensureChangesIsMutable();
changes_.set(index, builderForValue.build());
onChanged();
} else {
changesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false];
*/
public Builder addChanges(cosmos.params.v1beta1.Params.ParamChange value) {
if (changesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChangesIsMutable();
changes_.add(value);
onChanged();
} else {
changesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false];
*/
public Builder addChanges(
int index, cosmos.params.v1beta1.Params.ParamChange value) {
if (changesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChangesIsMutable();
changes_.add(index, value);
onChanged();
} else {
changesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false];
*/
public Builder addChanges(
cosmos.params.v1beta1.Params.ParamChange.Builder builderForValue) {
if (changesBuilder_ == null) {
ensureChangesIsMutable();
changes_.add(builderForValue.build());
onChanged();
} else {
changesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false];
*/
public Builder addChanges(
int index, cosmos.params.v1beta1.Params.ParamChange.Builder builderForValue) {
if (changesBuilder_ == null) {
ensureChangesIsMutable();
changes_.add(index, builderForValue.build());
onChanged();
} else {
changesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false];
*/
public Builder addAllChanges(
java.lang.Iterable extends cosmos.params.v1beta1.Params.ParamChange> values) {
if (changesBuilder_ == null) {
ensureChangesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, changes_);
onChanged();
} else {
changesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false];
*/
public Builder clearChanges() {
if (changesBuilder_ == null) {
changes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
changesBuilder_.clear();
}
return this;
}
/**
* repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false];
*/
public Builder removeChanges(int index) {
if (changesBuilder_ == null) {
ensureChangesIsMutable();
changes_.remove(index);
onChanged();
} else {
changesBuilder_.remove(index);
}
return this;
}
/**
* repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false];
*/
public cosmos.params.v1beta1.Params.ParamChange.Builder getChangesBuilder(
int index) {
return getChangesFieldBuilder().getBuilder(index);
}
/**
* repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false];
*/
public cosmos.params.v1beta1.Params.ParamChangeOrBuilder getChangesOrBuilder(
int index) {
if (changesBuilder_ == null) {
return changes_.get(index); } else {
return changesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false];
*/
public java.util.List extends cosmos.params.v1beta1.Params.ParamChangeOrBuilder>
getChangesOrBuilderList() {
if (changesBuilder_ != null) {
return changesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(changes_);
}
}
/**
* repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false];
*/
public cosmos.params.v1beta1.Params.ParamChange.Builder addChangesBuilder() {
return getChangesFieldBuilder().addBuilder(
cosmos.params.v1beta1.Params.ParamChange.getDefaultInstance());
}
/**
* repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false];
*/
public cosmos.params.v1beta1.Params.ParamChange.Builder addChangesBuilder(
int index) {
return getChangesFieldBuilder().addBuilder(
index, cosmos.params.v1beta1.Params.ParamChange.getDefaultInstance());
}
/**
* repeated .cosmos.params.v1beta1.ParamChange changes = 3 [(.gogoproto.nullable) = false];
*/
public java.util.List
getChangesBuilderList() {
return getChangesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.params.v1beta1.Params.ParamChange, cosmos.params.v1beta1.Params.ParamChange.Builder, cosmos.params.v1beta1.Params.ParamChangeOrBuilder>
getChangesFieldBuilder() {
if (changesBuilder_ == null) {
changesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.params.v1beta1.Params.ParamChange, cosmos.params.v1beta1.Params.ParamChange.Builder, cosmos.params.v1beta1.Params.ParamChangeOrBuilder>(
changes_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
changes_ = null;
}
return changesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmos.params.v1beta1.ParameterChangeProposal)
}
// @@protoc_insertion_point(class_scope:cosmos.params.v1beta1.ParameterChangeProposal)
private static final cosmos.params.v1beta1.Params.ParameterChangeProposal DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.params.v1beta1.Params.ParameterChangeProposal();
}
public static cosmos.params.v1beta1.Params.ParameterChangeProposal getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ParameterChangeProposal parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ParameterChangeProposal(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cosmos.params.v1beta1.Params.ParameterChangeProposal getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ParamChangeOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.params.v1beta1.ParamChange)
com.google.protobuf.MessageOrBuilder {
/**
* string subspace = 1;
*/
java.lang.String getSubspace();
/**
* string subspace = 1;
*/
com.google.protobuf.ByteString
getSubspaceBytes();
/**
* string key = 2;
*/
java.lang.String getKey();
/**
* string key = 2;
*/
com.google.protobuf.ByteString
getKeyBytes();
/**
* string value = 3;
*/
java.lang.String getValue();
/**
* string value = 3;
*/
com.google.protobuf.ByteString
getValueBytes();
}
/**
*
* ParamChange defines an individual parameter change, for use in
* ParameterChangeProposal.
*
*
* Protobuf type {@code cosmos.params.v1beta1.ParamChange}
*/
public static final class ParamChange extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.params.v1beta1.ParamChange)
ParamChangeOrBuilder {
private static final long serialVersionUID = 0L;
// Use ParamChange.newBuilder() to construct.
private ParamChange(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ParamChange() {
subspace_ = "";
key_ = "";
value_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ParamChange(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
subspace_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
key_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
value_ = s;
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.params.v1beta1.Params.internal_static_cosmos_params_v1beta1_ParamChange_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.params.v1beta1.Params.internal_static_cosmos_params_v1beta1_ParamChange_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.params.v1beta1.Params.ParamChange.class, cosmos.params.v1beta1.Params.ParamChange.Builder.class);
}
public static final int SUBSPACE_FIELD_NUMBER = 1;
private volatile java.lang.Object subspace_;
/**
* string subspace = 1;
*/
public java.lang.String getSubspace() {
java.lang.Object ref = subspace_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
subspace_ = s;
return s;
}
}
/**
* string subspace = 1;
*/
public com.google.protobuf.ByteString
getSubspaceBytes() {
java.lang.Object ref = subspace_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
subspace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int KEY_FIELD_NUMBER = 2;
private volatile java.lang.Object key_;
/**
* string key = 2;
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
key_ = s;
return s;
}
}
/**
* string key = 2;
*/
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALUE_FIELD_NUMBER = 3;
private volatile java.lang.Object value_;
/**
* string value = 3;
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
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();
value_ = s;
return s;
}
}
/**
* string value = 3;
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getSubspaceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subspace_);
}
if (!getKeyBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_);
}
if (!getValueBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getSubspaceBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subspace_);
}
if (!getKeyBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_);
}
if (!getValueBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, value_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cosmos.params.v1beta1.Params.ParamChange)) {
return super.equals(obj);
}
cosmos.params.v1beta1.Params.ParamChange other = (cosmos.params.v1beta1.Params.ParamChange) obj;
boolean result = true;
result = result && getSubspace()
.equals(other.getSubspace());
result = result && getKey()
.equals(other.getKey());
result = result && getValue()
.equals(other.getValue());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SUBSPACE_FIELD_NUMBER;
hash = (53 * hash) + getSubspace().hashCode();
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.params.v1beta1.Params.ParamChange parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.params.v1beta1.Params.ParamChange parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.params.v1beta1.Params.ParamChange parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.params.v1beta1.Params.ParamChange parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.params.v1beta1.Params.ParamChange parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.params.v1beta1.Params.ParamChange parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.params.v1beta1.Params.ParamChange parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.params.v1beta1.Params.ParamChange parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cosmos.params.v1beta1.Params.ParamChange parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.params.v1beta1.Params.ParamChange parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cosmos.params.v1beta1.Params.ParamChange parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.params.v1beta1.Params.ParamChange parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cosmos.params.v1beta1.Params.ParamChange 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;
}
/**
*
* ParamChange defines an individual parameter change, for use in
* ParameterChangeProposal.
*
*
* Protobuf type {@code cosmos.params.v1beta1.ParamChange}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.params.v1beta1.ParamChange)
cosmos.params.v1beta1.Params.ParamChangeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.params.v1beta1.Params.internal_static_cosmos_params_v1beta1_ParamChange_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.params.v1beta1.Params.internal_static_cosmos_params_v1beta1_ParamChange_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.params.v1beta1.Params.ParamChange.class, cosmos.params.v1beta1.Params.ParamChange.Builder.class);
}
// Construct using cosmos.params.v1beta1.Params.ParamChange.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
subspace_ = "";
key_ = "";
value_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.params.v1beta1.Params.internal_static_cosmos_params_v1beta1_ParamChange_descriptor;
}
@java.lang.Override
public cosmos.params.v1beta1.Params.ParamChange getDefaultInstanceForType() {
return cosmos.params.v1beta1.Params.ParamChange.getDefaultInstance();
}
@java.lang.Override
public cosmos.params.v1beta1.Params.ParamChange build() {
cosmos.params.v1beta1.Params.ParamChange result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.params.v1beta1.Params.ParamChange buildPartial() {
cosmos.params.v1beta1.Params.ParamChange result = new cosmos.params.v1beta1.Params.ParamChange(this);
result.subspace_ = subspace_;
result.key_ = key_;
result.value_ = value_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmos.params.v1beta1.Params.ParamChange) {
return mergeFrom((cosmos.params.v1beta1.Params.ParamChange)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.params.v1beta1.Params.ParamChange other) {
if (other == cosmos.params.v1beta1.Params.ParamChange.getDefaultInstance()) return this;
if (!other.getSubspace().isEmpty()) {
subspace_ = other.subspace_;
onChanged();
}
if (!other.getKey().isEmpty()) {
key_ = other.key_;
onChanged();
}
if (!other.getValue().isEmpty()) {
value_ = other.value_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cosmos.params.v1beta1.Params.ParamChange parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.params.v1beta1.Params.ParamChange) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object subspace_ = "";
/**
* string subspace = 1;
*/
public java.lang.String getSubspace() {
java.lang.Object ref = subspace_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
subspace_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string subspace = 1;
*/
public com.google.protobuf.ByteString
getSubspaceBytes() {
java.lang.Object ref = subspace_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
subspace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string subspace = 1;
*/
public Builder setSubspace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
subspace_ = value;
onChanged();
return this;
}
/**
* string subspace = 1;
*/
public Builder clearSubspace() {
subspace_ = getDefaultInstance().getSubspace();
onChanged();
return this;
}
/**
* string subspace = 1;
*/
public Builder setSubspaceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
subspace_ = value;
onChanged();
return this;
}
private java.lang.Object key_ = "";
/**
* string key = 2;
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
key_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string key = 2;
*/
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string key = 2;
*/
public Builder setKey(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
key_ = value;
onChanged();
return this;
}
/**
* string key = 2;
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
/**
* string key = 2;
*/
public Builder setKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
key_ = value;
onChanged();
return this;
}
private java.lang.Object value_ = "";
/**
* string value = 3;
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
value_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string value = 3;
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string value = 3;
*/
public Builder setValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
return this;
}
/**
* string value = 3;
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
/**
* string value = 3;
*/
public Builder setValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
value_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmos.params.v1beta1.ParamChange)
}
// @@protoc_insertion_point(class_scope:cosmos.params.v1beta1.ParamChange)
private static final cosmos.params.v1beta1.Params.ParamChange DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.params.v1beta1.Params.ParamChange();
}
public static cosmos.params.v1beta1.Params.ParamChange getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ParamChange parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ParamChange(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cosmos.params.v1beta1.Params.ParamChange getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_params_v1beta1_ParameterChangeProposal_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_params_v1beta1_ParameterChangeProposal_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_params_v1beta1_ParamChange_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_params_v1beta1_ParamChange_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\"cosmos/params/v1beta1/params.proto\022\025co" +
"smos.params.v1beta1\032\024gogoproto/gogo.prot" +
"o\"\202\001\n\027ParameterChangeProposal\022\r\n\005title\030\001" +
" \001(\t\022\023\n\013description\030\002 \001(\t\0229\n\007changes\030\003 \003" +
"(\0132\".cosmos.params.v1beta1.ParamChangeB\004" +
"\310\336\037\000:\010\210\240\037\000\230\240\037\000\"A\n\013ParamChange\022\020\n\010subspac" +
"e\030\001 \001(\t\022\013\n\003key\030\002 \001(\t\022\r\n\005value\030\003 \001(\t:\004\230\240\037" +
"\000B:Z4github.com/cosmos/cosmos-sdk/x/para" +
"ms/types/proposal\250\342\036\001b\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.GoGoProtos.getDescriptor(),
}, assigner);
internal_static_cosmos_params_v1beta1_ParameterChangeProposal_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_cosmos_params_v1beta1_ParameterChangeProposal_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_params_v1beta1_ParameterChangeProposal_descriptor,
new java.lang.String[] { "Title", "Description", "Changes", });
internal_static_cosmos_params_v1beta1_ParamChange_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_cosmos_params_v1beta1_ParamChange_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_params_v1beta1_ParamChange_descriptor,
new java.lang.String[] { "Subspace", "Key", "Value", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.protobuf.GoGoProtos.equalAll);
registry.add(com.google.protobuf.GoGoProtos.goprotoGetters);
registry.add(com.google.protobuf.GoGoProtos.goprotoStringer);
registry.add(com.google.protobuf.GoGoProtos.nullable);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.protobuf.GoGoProtos.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}