![JAR search and dependency download from the Maven repository](/logo.png)
cosmos.mint.v1beta1.Mint Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: cosmos/mint/v1beta1/mint.proto
package cosmos.mint.v1beta1;
public final class Mint {
private Mint() {}
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 MinterOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.mint.v1beta1.Minter)
com.google.protobuf.MessageOrBuilder {
/**
*
* current annual inflation rate
*
*
* string inflation = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"];
*/
java.lang.String getInflation();
/**
*
* current annual inflation rate
*
*
* string inflation = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"];
*/
com.google.protobuf.ByteString
getInflationBytes();
/**
*
* current annual expected provisions
*
*
* string annual_provisions = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"annual_provisions\""];
*/
java.lang.String getAnnualProvisions();
/**
*
* current annual expected provisions
*
*
* string annual_provisions = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"annual_provisions\""];
*/
com.google.protobuf.ByteString
getAnnualProvisionsBytes();
}
/**
*
* Minter represents the minting state.
*
*
* Protobuf type {@code cosmos.mint.v1beta1.Minter}
*/
public static final class Minter extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.mint.v1beta1.Minter)
MinterOrBuilder {
private static final long serialVersionUID = 0L;
// Use Minter.newBuilder() to construct.
private Minter(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Minter() {
inflation_ = "";
annualProvisions_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Minter(
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();
inflation_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
annualProvisions_ = 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.mint.v1beta1.Mint.internal_static_cosmos_mint_v1beta1_Minter_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.mint.v1beta1.Mint.internal_static_cosmos_mint_v1beta1_Minter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.mint.v1beta1.Mint.Minter.class, cosmos.mint.v1beta1.Mint.Minter.Builder.class);
}
public static final int INFLATION_FIELD_NUMBER = 1;
private volatile java.lang.Object inflation_;
/**
*
* current annual inflation rate
*
*
* string inflation = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"];
*/
public java.lang.String getInflation() {
java.lang.Object ref = inflation_;
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();
inflation_ = s;
return s;
}
}
/**
*
* current annual inflation rate
*
*
* string inflation = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"];
*/
public com.google.protobuf.ByteString
getInflationBytes() {
java.lang.Object ref = inflation_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
inflation_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ANNUAL_PROVISIONS_FIELD_NUMBER = 2;
private volatile java.lang.Object annualProvisions_;
/**
*
* current annual expected provisions
*
*
* string annual_provisions = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"annual_provisions\""];
*/
public java.lang.String getAnnualProvisions() {
java.lang.Object ref = annualProvisions_;
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();
annualProvisions_ = s;
return s;
}
}
/**
*
* current annual expected provisions
*
*
* string annual_provisions = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"annual_provisions\""];
*/
public com.google.protobuf.ByteString
getAnnualProvisionsBytes() {
java.lang.Object ref = annualProvisions_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
annualProvisions_ = 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 (!getInflationBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inflation_);
}
if (!getAnnualProvisionsBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, annualProvisions_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getInflationBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, inflation_);
}
if (!getAnnualProvisionsBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, annualProvisions_);
}
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.mint.v1beta1.Mint.Minter)) {
return super.equals(obj);
}
cosmos.mint.v1beta1.Mint.Minter other = (cosmos.mint.v1beta1.Mint.Minter) obj;
boolean result = true;
result = result && getInflation()
.equals(other.getInflation());
result = result && getAnnualProvisions()
.equals(other.getAnnualProvisions());
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) + INFLATION_FIELD_NUMBER;
hash = (53 * hash) + getInflation().hashCode();
hash = (37 * hash) + ANNUAL_PROVISIONS_FIELD_NUMBER;
hash = (53 * hash) + getAnnualProvisions().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.mint.v1beta1.Mint.Minter parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.mint.v1beta1.Mint.Minter parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.mint.v1beta1.Mint.Minter parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.mint.v1beta1.Mint.Minter parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.mint.v1beta1.Mint.Minter parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.mint.v1beta1.Mint.Minter parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.mint.v1beta1.Mint.Minter parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.mint.v1beta1.Mint.Minter 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.mint.v1beta1.Mint.Minter parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.mint.v1beta1.Mint.Minter 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.mint.v1beta1.Mint.Minter parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.mint.v1beta1.Mint.Minter 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.mint.v1beta1.Mint.Minter 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;
}
/**
*
* Minter represents the minting state.
*
*
* Protobuf type {@code cosmos.mint.v1beta1.Minter}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.mint.v1beta1.Minter)
cosmos.mint.v1beta1.Mint.MinterOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.mint.v1beta1.Mint.internal_static_cosmos_mint_v1beta1_Minter_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.mint.v1beta1.Mint.internal_static_cosmos_mint_v1beta1_Minter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.mint.v1beta1.Mint.Minter.class, cosmos.mint.v1beta1.Mint.Minter.Builder.class);
}
// Construct using cosmos.mint.v1beta1.Mint.Minter.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();
inflation_ = "";
annualProvisions_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.mint.v1beta1.Mint.internal_static_cosmos_mint_v1beta1_Minter_descriptor;
}
@java.lang.Override
public cosmos.mint.v1beta1.Mint.Minter getDefaultInstanceForType() {
return cosmos.mint.v1beta1.Mint.Minter.getDefaultInstance();
}
@java.lang.Override
public cosmos.mint.v1beta1.Mint.Minter build() {
cosmos.mint.v1beta1.Mint.Minter result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.mint.v1beta1.Mint.Minter buildPartial() {
cosmos.mint.v1beta1.Mint.Minter result = new cosmos.mint.v1beta1.Mint.Minter(this);
result.inflation_ = inflation_;
result.annualProvisions_ = annualProvisions_;
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.mint.v1beta1.Mint.Minter) {
return mergeFrom((cosmos.mint.v1beta1.Mint.Minter)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.mint.v1beta1.Mint.Minter other) {
if (other == cosmos.mint.v1beta1.Mint.Minter.getDefaultInstance()) return this;
if (!other.getInflation().isEmpty()) {
inflation_ = other.inflation_;
onChanged();
}
if (!other.getAnnualProvisions().isEmpty()) {
annualProvisions_ = other.annualProvisions_;
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.mint.v1beta1.Mint.Minter parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.mint.v1beta1.Mint.Minter) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object inflation_ = "";
/**
*
* current annual inflation rate
*
*
* string inflation = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"];
*/
public java.lang.String getInflation() {
java.lang.Object ref = inflation_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
inflation_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* current annual inflation rate
*
*
* string inflation = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"];
*/
public com.google.protobuf.ByteString
getInflationBytes() {
java.lang.Object ref = inflation_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
inflation_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* current annual inflation rate
*
*
* string inflation = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"];
*/
public Builder setInflation(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
inflation_ = value;
onChanged();
return this;
}
/**
*
* current annual inflation rate
*
*
* string inflation = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"];
*/
public Builder clearInflation() {
inflation_ = getDefaultInstance().getInflation();
onChanged();
return this;
}
/**
*
* current annual inflation rate
*
*
* string inflation = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"];
*/
public Builder setInflationBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
inflation_ = value;
onChanged();
return this;
}
private java.lang.Object annualProvisions_ = "";
/**
*
* current annual expected provisions
*
*
* string annual_provisions = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"annual_provisions\""];
*/
public java.lang.String getAnnualProvisions() {
java.lang.Object ref = annualProvisions_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
annualProvisions_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* current annual expected provisions
*
*
* string annual_provisions = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"annual_provisions\""];
*/
public com.google.protobuf.ByteString
getAnnualProvisionsBytes() {
java.lang.Object ref = annualProvisions_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
annualProvisions_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* current annual expected provisions
*
*
* string annual_provisions = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"annual_provisions\""];
*/
public Builder setAnnualProvisions(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
annualProvisions_ = value;
onChanged();
return this;
}
/**
*
* current annual expected provisions
*
*
* string annual_provisions = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"annual_provisions\""];
*/
public Builder clearAnnualProvisions() {
annualProvisions_ = getDefaultInstance().getAnnualProvisions();
onChanged();
return this;
}
/**
*
* current annual expected provisions
*
*
* string annual_provisions = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"annual_provisions\""];
*/
public Builder setAnnualProvisionsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
annualProvisions_ = 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.mint.v1beta1.Minter)
}
// @@protoc_insertion_point(class_scope:cosmos.mint.v1beta1.Minter)
private static final cosmos.mint.v1beta1.Mint.Minter DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.mint.v1beta1.Mint.Minter();
}
public static cosmos.mint.v1beta1.Mint.Minter getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Minter parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Minter(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.mint.v1beta1.Mint.Minter getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ParamsOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.mint.v1beta1.Params)
com.google.protobuf.MessageOrBuilder {
/**
*
* type of coin to mint
*
*
* string mint_denom = 1;
*/
java.lang.String getMintDenom();
/**
*
* type of coin to mint
*
*
* string mint_denom = 1;
*/
com.google.protobuf.ByteString
getMintDenomBytes();
/**
*
* maximum annual change in inflation rate
*
*
* string inflation_rate_change = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_rate_change\""];
*/
java.lang.String getInflationRateChange();
/**
*
* maximum annual change in inflation rate
*
*
* string inflation_rate_change = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_rate_change\""];
*/
com.google.protobuf.ByteString
getInflationRateChangeBytes();
/**
*
* maximum inflation rate
*
*
* string inflation_max = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_max\""];
*/
java.lang.String getInflationMax();
/**
*
* maximum inflation rate
*
*
* string inflation_max = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_max\""];
*/
com.google.protobuf.ByteString
getInflationMaxBytes();
/**
*
* minimum inflation rate
*
*
* string inflation_min = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_min\""];
*/
java.lang.String getInflationMin();
/**
*
* minimum inflation rate
*
*
* string inflation_min = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_min\""];
*/
com.google.protobuf.ByteString
getInflationMinBytes();
/**
*
* goal of percent bonded atoms
*
*
* string goal_bonded = 5 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"goal_bonded\""];
*/
java.lang.String getGoalBonded();
/**
*
* goal of percent bonded atoms
*
*
* string goal_bonded = 5 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"goal_bonded\""];
*/
com.google.protobuf.ByteString
getGoalBondedBytes();
/**
*
* expected blocks per year
*
*
* uint64 blocks_per_year = 6 [(.gogoproto.moretags) = "yaml:\"blocks_per_year\""];
*/
long getBlocksPerYear();
}
/**
*
* Params holds parameters for the mint module.
*
*
* Protobuf type {@code cosmos.mint.v1beta1.Params}
*/
public static final class Params extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.mint.v1beta1.Params)
ParamsOrBuilder {
private static final long serialVersionUID = 0L;
// Use Params.newBuilder() to construct.
private Params(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Params() {
mintDenom_ = "";
inflationRateChange_ = "";
inflationMax_ = "";
inflationMin_ = "";
goalBonded_ = "";
blocksPerYear_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Params(
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();
mintDenom_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
inflationRateChange_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
inflationMax_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
inflationMin_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
goalBonded_ = s;
break;
}
case 48: {
blocksPerYear_ = input.readUInt64();
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.mint.v1beta1.Mint.internal_static_cosmos_mint_v1beta1_Params_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.mint.v1beta1.Mint.internal_static_cosmos_mint_v1beta1_Params_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.mint.v1beta1.Mint.Params.class, cosmos.mint.v1beta1.Mint.Params.Builder.class);
}
public static final int MINT_DENOM_FIELD_NUMBER = 1;
private volatile java.lang.Object mintDenom_;
/**
*
* type of coin to mint
*
*
* string mint_denom = 1;
*/
public java.lang.String getMintDenom() {
java.lang.Object ref = mintDenom_;
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();
mintDenom_ = s;
return s;
}
}
/**
*
* type of coin to mint
*
*
* string mint_denom = 1;
*/
public com.google.protobuf.ByteString
getMintDenomBytes() {
java.lang.Object ref = mintDenom_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mintDenom_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INFLATION_RATE_CHANGE_FIELD_NUMBER = 2;
private volatile java.lang.Object inflationRateChange_;
/**
*
* maximum annual change in inflation rate
*
*
* string inflation_rate_change = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_rate_change\""];
*/
public java.lang.String getInflationRateChange() {
java.lang.Object ref = inflationRateChange_;
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();
inflationRateChange_ = s;
return s;
}
}
/**
*
* maximum annual change in inflation rate
*
*
* string inflation_rate_change = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_rate_change\""];
*/
public com.google.protobuf.ByteString
getInflationRateChangeBytes() {
java.lang.Object ref = inflationRateChange_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
inflationRateChange_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INFLATION_MAX_FIELD_NUMBER = 3;
private volatile java.lang.Object inflationMax_;
/**
*
* maximum inflation rate
*
*
* string inflation_max = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_max\""];
*/
public java.lang.String getInflationMax() {
java.lang.Object ref = inflationMax_;
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();
inflationMax_ = s;
return s;
}
}
/**
*
* maximum inflation rate
*
*
* string inflation_max = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_max\""];
*/
public com.google.protobuf.ByteString
getInflationMaxBytes() {
java.lang.Object ref = inflationMax_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
inflationMax_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INFLATION_MIN_FIELD_NUMBER = 4;
private volatile java.lang.Object inflationMin_;
/**
*
* minimum inflation rate
*
*
* string inflation_min = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_min\""];
*/
public java.lang.String getInflationMin() {
java.lang.Object ref = inflationMin_;
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();
inflationMin_ = s;
return s;
}
}
/**
*
* minimum inflation rate
*
*
* string inflation_min = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_min\""];
*/
public com.google.protobuf.ByteString
getInflationMinBytes() {
java.lang.Object ref = inflationMin_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
inflationMin_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int GOAL_BONDED_FIELD_NUMBER = 5;
private volatile java.lang.Object goalBonded_;
/**
*
* goal of percent bonded atoms
*
*
* string goal_bonded = 5 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"goal_bonded\""];
*/
public java.lang.String getGoalBonded() {
java.lang.Object ref = goalBonded_;
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();
goalBonded_ = s;
return s;
}
}
/**
*
* goal of percent bonded atoms
*
*
* string goal_bonded = 5 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"goal_bonded\""];
*/
public com.google.protobuf.ByteString
getGoalBondedBytes() {
java.lang.Object ref = goalBonded_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
goalBonded_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BLOCKS_PER_YEAR_FIELD_NUMBER = 6;
private long blocksPerYear_;
/**
*
* expected blocks per year
*
*
* uint64 blocks_per_year = 6 [(.gogoproto.moretags) = "yaml:\"blocks_per_year\""];
*/
public long getBlocksPerYear() {
return blocksPerYear_;
}
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 (!getMintDenomBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mintDenom_);
}
if (!getInflationRateChangeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inflationRateChange_);
}
if (!getInflationMaxBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, inflationMax_);
}
if (!getInflationMinBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, inflationMin_);
}
if (!getGoalBondedBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, goalBonded_);
}
if (blocksPerYear_ != 0L) {
output.writeUInt64(6, blocksPerYear_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getMintDenomBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mintDenom_);
}
if (!getInflationRateChangeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inflationRateChange_);
}
if (!getInflationMaxBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, inflationMax_);
}
if (!getInflationMinBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, inflationMin_);
}
if (!getGoalBondedBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, goalBonded_);
}
if (blocksPerYear_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(6, blocksPerYear_);
}
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.mint.v1beta1.Mint.Params)) {
return super.equals(obj);
}
cosmos.mint.v1beta1.Mint.Params other = (cosmos.mint.v1beta1.Mint.Params) obj;
boolean result = true;
result = result && getMintDenom()
.equals(other.getMintDenom());
result = result && getInflationRateChange()
.equals(other.getInflationRateChange());
result = result && getInflationMax()
.equals(other.getInflationMax());
result = result && getInflationMin()
.equals(other.getInflationMin());
result = result && getGoalBonded()
.equals(other.getGoalBonded());
result = result && (getBlocksPerYear()
== other.getBlocksPerYear());
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) + MINT_DENOM_FIELD_NUMBER;
hash = (53 * hash) + getMintDenom().hashCode();
hash = (37 * hash) + INFLATION_RATE_CHANGE_FIELD_NUMBER;
hash = (53 * hash) + getInflationRateChange().hashCode();
hash = (37 * hash) + INFLATION_MAX_FIELD_NUMBER;
hash = (53 * hash) + getInflationMax().hashCode();
hash = (37 * hash) + INFLATION_MIN_FIELD_NUMBER;
hash = (53 * hash) + getInflationMin().hashCode();
hash = (37 * hash) + GOAL_BONDED_FIELD_NUMBER;
hash = (53 * hash) + getGoalBonded().hashCode();
hash = (37 * hash) + BLOCKS_PER_YEAR_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getBlocksPerYear());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.mint.v1beta1.Mint.Params parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.mint.v1beta1.Mint.Params parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.mint.v1beta1.Mint.Params parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.mint.v1beta1.Mint.Params parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.mint.v1beta1.Mint.Params parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.mint.v1beta1.Mint.Params parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.mint.v1beta1.Mint.Params parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.mint.v1beta1.Mint.Params 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.mint.v1beta1.Mint.Params parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.mint.v1beta1.Mint.Params 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.mint.v1beta1.Mint.Params parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.mint.v1beta1.Mint.Params 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.mint.v1beta1.Mint.Params 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;
}
/**
*
* Params holds parameters for the mint module.
*
*
* Protobuf type {@code cosmos.mint.v1beta1.Params}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.mint.v1beta1.Params)
cosmos.mint.v1beta1.Mint.ParamsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.mint.v1beta1.Mint.internal_static_cosmos_mint_v1beta1_Params_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.mint.v1beta1.Mint.internal_static_cosmos_mint_v1beta1_Params_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.mint.v1beta1.Mint.Params.class, cosmos.mint.v1beta1.Mint.Params.Builder.class);
}
// Construct using cosmos.mint.v1beta1.Mint.Params.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();
mintDenom_ = "";
inflationRateChange_ = "";
inflationMax_ = "";
inflationMin_ = "";
goalBonded_ = "";
blocksPerYear_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.mint.v1beta1.Mint.internal_static_cosmos_mint_v1beta1_Params_descriptor;
}
@java.lang.Override
public cosmos.mint.v1beta1.Mint.Params getDefaultInstanceForType() {
return cosmos.mint.v1beta1.Mint.Params.getDefaultInstance();
}
@java.lang.Override
public cosmos.mint.v1beta1.Mint.Params build() {
cosmos.mint.v1beta1.Mint.Params result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.mint.v1beta1.Mint.Params buildPartial() {
cosmos.mint.v1beta1.Mint.Params result = new cosmos.mint.v1beta1.Mint.Params(this);
result.mintDenom_ = mintDenom_;
result.inflationRateChange_ = inflationRateChange_;
result.inflationMax_ = inflationMax_;
result.inflationMin_ = inflationMin_;
result.goalBonded_ = goalBonded_;
result.blocksPerYear_ = blocksPerYear_;
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.mint.v1beta1.Mint.Params) {
return mergeFrom((cosmos.mint.v1beta1.Mint.Params)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.mint.v1beta1.Mint.Params other) {
if (other == cosmos.mint.v1beta1.Mint.Params.getDefaultInstance()) return this;
if (!other.getMintDenom().isEmpty()) {
mintDenom_ = other.mintDenom_;
onChanged();
}
if (!other.getInflationRateChange().isEmpty()) {
inflationRateChange_ = other.inflationRateChange_;
onChanged();
}
if (!other.getInflationMax().isEmpty()) {
inflationMax_ = other.inflationMax_;
onChanged();
}
if (!other.getInflationMin().isEmpty()) {
inflationMin_ = other.inflationMin_;
onChanged();
}
if (!other.getGoalBonded().isEmpty()) {
goalBonded_ = other.goalBonded_;
onChanged();
}
if (other.getBlocksPerYear() != 0L) {
setBlocksPerYear(other.getBlocksPerYear());
}
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.mint.v1beta1.Mint.Params parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.mint.v1beta1.Mint.Params) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object mintDenom_ = "";
/**
*
* type of coin to mint
*
*
* string mint_denom = 1;
*/
public java.lang.String getMintDenom() {
java.lang.Object ref = mintDenom_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
mintDenom_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* type of coin to mint
*
*
* string mint_denom = 1;
*/
public com.google.protobuf.ByteString
getMintDenomBytes() {
java.lang.Object ref = mintDenom_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mintDenom_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* type of coin to mint
*
*
* string mint_denom = 1;
*/
public Builder setMintDenom(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
mintDenom_ = value;
onChanged();
return this;
}
/**
*
* type of coin to mint
*
*
* string mint_denom = 1;
*/
public Builder clearMintDenom() {
mintDenom_ = getDefaultInstance().getMintDenom();
onChanged();
return this;
}
/**
*
* type of coin to mint
*
*
* string mint_denom = 1;
*/
public Builder setMintDenomBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
mintDenom_ = value;
onChanged();
return this;
}
private java.lang.Object inflationRateChange_ = "";
/**
*
* maximum annual change in inflation rate
*
*
* string inflation_rate_change = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_rate_change\""];
*/
public java.lang.String getInflationRateChange() {
java.lang.Object ref = inflationRateChange_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
inflationRateChange_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* maximum annual change in inflation rate
*
*
* string inflation_rate_change = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_rate_change\""];
*/
public com.google.protobuf.ByteString
getInflationRateChangeBytes() {
java.lang.Object ref = inflationRateChange_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
inflationRateChange_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* maximum annual change in inflation rate
*
*
* string inflation_rate_change = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_rate_change\""];
*/
public Builder setInflationRateChange(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
inflationRateChange_ = value;
onChanged();
return this;
}
/**
*
* maximum annual change in inflation rate
*
*
* string inflation_rate_change = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_rate_change\""];
*/
public Builder clearInflationRateChange() {
inflationRateChange_ = getDefaultInstance().getInflationRateChange();
onChanged();
return this;
}
/**
*
* maximum annual change in inflation rate
*
*
* string inflation_rate_change = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_rate_change\""];
*/
public Builder setInflationRateChangeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
inflationRateChange_ = value;
onChanged();
return this;
}
private java.lang.Object inflationMax_ = "";
/**
*
* maximum inflation rate
*
*
* string inflation_max = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_max\""];
*/
public java.lang.String getInflationMax() {
java.lang.Object ref = inflationMax_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
inflationMax_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* maximum inflation rate
*
*
* string inflation_max = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_max\""];
*/
public com.google.protobuf.ByteString
getInflationMaxBytes() {
java.lang.Object ref = inflationMax_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
inflationMax_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* maximum inflation rate
*
*
* string inflation_max = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_max\""];
*/
public Builder setInflationMax(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
inflationMax_ = value;
onChanged();
return this;
}
/**
*
* maximum inflation rate
*
*
* string inflation_max = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_max\""];
*/
public Builder clearInflationMax() {
inflationMax_ = getDefaultInstance().getInflationMax();
onChanged();
return this;
}
/**
*
* maximum inflation rate
*
*
* string inflation_max = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_max\""];
*/
public Builder setInflationMaxBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
inflationMax_ = value;
onChanged();
return this;
}
private java.lang.Object inflationMin_ = "";
/**
*
* minimum inflation rate
*
*
* string inflation_min = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_min\""];
*/
public java.lang.String getInflationMin() {
java.lang.Object ref = inflationMin_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
inflationMin_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* minimum inflation rate
*
*
* string inflation_min = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_min\""];
*/
public com.google.protobuf.ByteString
getInflationMinBytes() {
java.lang.Object ref = inflationMin_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
inflationMin_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* minimum inflation rate
*
*
* string inflation_min = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_min\""];
*/
public Builder setInflationMin(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
inflationMin_ = value;
onChanged();
return this;
}
/**
*
* minimum inflation rate
*
*
* string inflation_min = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_min\""];
*/
public Builder clearInflationMin() {
inflationMin_ = getDefaultInstance().getInflationMin();
onChanged();
return this;
}
/**
*
* minimum inflation rate
*
*
* string inflation_min = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"inflation_min\""];
*/
public Builder setInflationMinBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
inflationMin_ = value;
onChanged();
return this;
}
private java.lang.Object goalBonded_ = "";
/**
*
* goal of percent bonded atoms
*
*
* string goal_bonded = 5 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"goal_bonded\""];
*/
public java.lang.String getGoalBonded() {
java.lang.Object ref = goalBonded_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
goalBonded_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* goal of percent bonded atoms
*
*
* string goal_bonded = 5 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"goal_bonded\""];
*/
public com.google.protobuf.ByteString
getGoalBondedBytes() {
java.lang.Object ref = goalBonded_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
goalBonded_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* goal of percent bonded atoms
*
*
* string goal_bonded = 5 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"goal_bonded\""];
*/
public Builder setGoalBonded(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
goalBonded_ = value;
onChanged();
return this;
}
/**
*
* goal of percent bonded atoms
*
*
* string goal_bonded = 5 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"goal_bonded\""];
*/
public Builder clearGoalBonded() {
goalBonded_ = getDefaultInstance().getGoalBonded();
onChanged();
return this;
}
/**
*
* goal of percent bonded atoms
*
*
* string goal_bonded = 5 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"goal_bonded\""];
*/
public Builder setGoalBondedBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
goalBonded_ = value;
onChanged();
return this;
}
private long blocksPerYear_ ;
/**
*
* expected blocks per year
*
*
* uint64 blocks_per_year = 6 [(.gogoproto.moretags) = "yaml:\"blocks_per_year\""];
*/
public long getBlocksPerYear() {
return blocksPerYear_;
}
/**
*
* expected blocks per year
*
*
* uint64 blocks_per_year = 6 [(.gogoproto.moretags) = "yaml:\"blocks_per_year\""];
*/
public Builder setBlocksPerYear(long value) {
blocksPerYear_ = value;
onChanged();
return this;
}
/**
*
* expected blocks per year
*
*
* uint64 blocks_per_year = 6 [(.gogoproto.moretags) = "yaml:\"blocks_per_year\""];
*/
public Builder clearBlocksPerYear() {
blocksPerYear_ = 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.mint.v1beta1.Params)
}
// @@protoc_insertion_point(class_scope:cosmos.mint.v1beta1.Params)
private static final cosmos.mint.v1beta1.Mint.Params DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.mint.v1beta1.Mint.Params();
}
public static cosmos.mint.v1beta1.Mint.Params getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Params parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Params(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.mint.v1beta1.Mint.Params getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_mint_v1beta1_Minter_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_mint_v1beta1_Minter_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_mint_v1beta1_Params_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_mint_v1beta1_Params_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\036cosmos/mint/v1beta1/mint.proto\022\023cosmos" +
".mint.v1beta1\032\024gogoproto/gogo.proto\"\262\001\n\006" +
"Minter\022A\n\tinflation\030\001 \001(\tB.\332\336\037&github.co" +
"m/cosmos/cosmos-sdk/types.Dec\310\336\037\000\022e\n\021ann" +
"ual_provisions\030\002 \001(\tBJ\362\336\037\030yaml:\"annual_p" +
"rovisions\"\332\336\037&github.com/cosmos/cosmos-s" +
"dk/types.Dec\310\336\037\000\"\337\003\n\006Params\022\022\n\nmint_deno" +
"m\030\001 \001(\t\022m\n\025inflation_rate_change\030\002 \001(\tBN" +
"\362\336\037\034yaml:\"inflation_rate_change\"\332\336\037&gith" +
"ub.com/cosmos/cosmos-sdk/types.Dec\310\336\037\000\022]" +
"\n\rinflation_max\030\003 \001(\tBF\362\336\037\024yaml:\"inflati" +
"on_max\"\332\336\037&github.com/cosmos/cosmos-sdk/" +
"types.Dec\310\336\037\000\022]\n\rinflation_min\030\004 \001(\tBF\362\336" +
"\037\024yaml:\"inflation_min\"\332\336\037&github.com/cos" +
"mos/cosmos-sdk/types.Dec\310\336\037\000\022Y\n\013goal_bon" +
"ded\030\005 \001(\tBD\362\336\037\022yaml:\"goal_bonded\"\332\336\037&git" +
"hub.com/cosmos/cosmos-sdk/types.Dec\310\336\037\000\022" +
"3\n\017blocks_per_year\030\006 \001(\004B\032\362\336\037\026yaml:\"bloc" +
"ks_per_year\":\004\230\240\037\000B+Z)github.com/cosmos/" +
"cosmos-sdk/x/mint/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.GoGoProtos.getDescriptor(),
}, assigner);
internal_static_cosmos_mint_v1beta1_Minter_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_cosmos_mint_v1beta1_Minter_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_mint_v1beta1_Minter_descriptor,
new java.lang.String[] { "Inflation", "AnnualProvisions", });
internal_static_cosmos_mint_v1beta1_Params_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_cosmos_mint_v1beta1_Params_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_mint_v1beta1_Params_descriptor,
new java.lang.String[] { "MintDenom", "InflationRateChange", "InflationMax", "InflationMin", "GoalBonded", "BlocksPerYear", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.protobuf.GoGoProtos.customtype);
registry.add(com.google.protobuf.GoGoProtos.goprotoStringer);
registry.add(com.google.protobuf.GoGoProtos.moretags);
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)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy