jvmMain.terra.treasury.v1beta1.Treasury Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: terra/treasury/v1beta1/treasury.proto
// Protobuf Java Version: 3.25.3
package terra.treasury.v1beta1;
public final class Treasury {
private Treasury() {}
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 ParamsOrBuilder extends
// @@protoc_insertion_point(interface_extends:terra.treasury.v1beta1.Params)
com.google.protobuf.MessageOrBuilder {
/**
* .terra.treasury.v1beta1.PolicyConstraints tax_policy = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_policy\""];
* @return Whether the taxPolicy field is set.
*/
boolean hasTaxPolicy();
/**
* .terra.treasury.v1beta1.PolicyConstraints tax_policy = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_policy\""];
* @return The taxPolicy.
*/
terra.treasury.v1beta1.Treasury.PolicyConstraints getTaxPolicy();
/**
* .terra.treasury.v1beta1.PolicyConstraints tax_policy = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_policy\""];
*/
terra.treasury.v1beta1.Treasury.PolicyConstraintsOrBuilder getTaxPolicyOrBuilder();
/**
* .terra.treasury.v1beta1.PolicyConstraints reward_policy = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"reward_policy\""];
* @return Whether the rewardPolicy field is set.
*/
boolean hasRewardPolicy();
/**
* .terra.treasury.v1beta1.PolicyConstraints reward_policy = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"reward_policy\""];
* @return The rewardPolicy.
*/
terra.treasury.v1beta1.Treasury.PolicyConstraints getRewardPolicy();
/**
* .terra.treasury.v1beta1.PolicyConstraints reward_policy = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"reward_policy\""];
*/
terra.treasury.v1beta1.Treasury.PolicyConstraintsOrBuilder getRewardPolicyOrBuilder();
/**
* string seigniorage_burden_target = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"seigniorage_burden_target\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The seigniorageBurdenTarget.
*/
java.lang.String getSeigniorageBurdenTarget();
/**
* string seigniorage_burden_target = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"seigniorage_burden_target\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The bytes for seigniorageBurdenTarget.
*/
com.google.protobuf.ByteString
getSeigniorageBurdenTargetBytes();
/**
* string mining_increment = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"mining_increment\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The miningIncrement.
*/
java.lang.String getMiningIncrement();
/**
* string mining_increment = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"mining_increment\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The bytes for miningIncrement.
*/
com.google.protobuf.ByteString
getMiningIncrementBytes();
/**
* uint64 window_short = 5 [(.gogoproto.moretags) = "yaml:\"window_short\""];
* @return The windowShort.
*/
long getWindowShort();
/**
* uint64 window_long = 6 [(.gogoproto.moretags) = "yaml:\"window_long\""];
* @return The windowLong.
*/
long getWindowLong();
/**
* uint64 window_probation = 7 [(.gogoproto.moretags) = "yaml:\"window_probation\""];
* @return The windowProbation.
*/
long getWindowProbation();
/**
* string burn_tax_split = 8 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"burn_tax_split\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The burnTaxSplit.
*/
java.lang.String getBurnTaxSplit();
/**
* string burn_tax_split = 8 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"burn_tax_split\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The bytes for burnTaxSplit.
*/
com.google.protobuf.ByteString
getBurnTaxSplitBytes();
/**
* string min_initial_deposit_ratio = 9 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"min_initial_deposit_ratio\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The minInitialDepositRatio.
*/
java.lang.String getMinInitialDepositRatio();
/**
* string min_initial_deposit_ratio = 9 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"min_initial_deposit_ratio\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The bytes for minInitialDepositRatio.
*/
com.google.protobuf.ByteString
getMinInitialDepositRatioBytes();
}
/**
*
* Params defines the parameters for the oracle module.
*
*
* Protobuf type {@code terra.treasury.v1beta1.Params}
*/
public static final class Params extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:terra.treasury.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() {
seigniorageBurdenTarget_ = "";
miningIncrement_ = "";
burnTaxSplit_ = "";
minInitialDepositRatio_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Params();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return terra.treasury.v1beta1.Treasury.internal_static_terra_treasury_v1beta1_Params_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return terra.treasury.v1beta1.Treasury.internal_static_terra_treasury_v1beta1_Params_fieldAccessorTable
.ensureFieldAccessorsInitialized(
terra.treasury.v1beta1.Treasury.Params.class, terra.treasury.v1beta1.Treasury.Params.Builder.class);
}
private int bitField0_;
public static final int TAX_POLICY_FIELD_NUMBER = 1;
private terra.treasury.v1beta1.Treasury.PolicyConstraints taxPolicy_;
/**
* .terra.treasury.v1beta1.PolicyConstraints tax_policy = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_policy\""];
* @return Whether the taxPolicy field is set.
*/
@java.lang.Override
public boolean hasTaxPolicy() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .terra.treasury.v1beta1.PolicyConstraints tax_policy = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_policy\""];
* @return The taxPolicy.
*/
@java.lang.Override
public terra.treasury.v1beta1.Treasury.PolicyConstraints getTaxPolicy() {
return taxPolicy_ == null ? terra.treasury.v1beta1.Treasury.PolicyConstraints.getDefaultInstance() : taxPolicy_;
}
/**
* .terra.treasury.v1beta1.PolicyConstraints tax_policy = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_policy\""];
*/
@java.lang.Override
public terra.treasury.v1beta1.Treasury.PolicyConstraintsOrBuilder getTaxPolicyOrBuilder() {
return taxPolicy_ == null ? terra.treasury.v1beta1.Treasury.PolicyConstraints.getDefaultInstance() : taxPolicy_;
}
public static final int REWARD_POLICY_FIELD_NUMBER = 2;
private terra.treasury.v1beta1.Treasury.PolicyConstraints rewardPolicy_;
/**
* .terra.treasury.v1beta1.PolicyConstraints reward_policy = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"reward_policy\""];
* @return Whether the rewardPolicy field is set.
*/
@java.lang.Override
public boolean hasRewardPolicy() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .terra.treasury.v1beta1.PolicyConstraints reward_policy = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"reward_policy\""];
* @return The rewardPolicy.
*/
@java.lang.Override
public terra.treasury.v1beta1.Treasury.PolicyConstraints getRewardPolicy() {
return rewardPolicy_ == null ? terra.treasury.v1beta1.Treasury.PolicyConstraints.getDefaultInstance() : rewardPolicy_;
}
/**
* .terra.treasury.v1beta1.PolicyConstraints reward_policy = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"reward_policy\""];
*/
@java.lang.Override
public terra.treasury.v1beta1.Treasury.PolicyConstraintsOrBuilder getRewardPolicyOrBuilder() {
return rewardPolicy_ == null ? terra.treasury.v1beta1.Treasury.PolicyConstraints.getDefaultInstance() : rewardPolicy_;
}
public static final int SEIGNIORAGE_BURDEN_TARGET_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object seigniorageBurdenTarget_ = "";
/**
* string seigniorage_burden_target = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"seigniorage_burden_target\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The seigniorageBurdenTarget.
*/
@java.lang.Override
public java.lang.String getSeigniorageBurdenTarget() {
java.lang.Object ref = seigniorageBurdenTarget_;
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();
seigniorageBurdenTarget_ = s;
return s;
}
}
/**
* string seigniorage_burden_target = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"seigniorage_burden_target\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The bytes for seigniorageBurdenTarget.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSeigniorageBurdenTargetBytes() {
java.lang.Object ref = seigniorageBurdenTarget_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
seigniorageBurdenTarget_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MINING_INCREMENT_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object miningIncrement_ = "";
/**
* string mining_increment = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"mining_increment\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The miningIncrement.
*/
@java.lang.Override
public java.lang.String getMiningIncrement() {
java.lang.Object ref = miningIncrement_;
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();
miningIncrement_ = s;
return s;
}
}
/**
* string mining_increment = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"mining_increment\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The bytes for miningIncrement.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMiningIncrementBytes() {
java.lang.Object ref = miningIncrement_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
miningIncrement_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int WINDOW_SHORT_FIELD_NUMBER = 5;
private long windowShort_ = 0L;
/**
* uint64 window_short = 5 [(.gogoproto.moretags) = "yaml:\"window_short\""];
* @return The windowShort.
*/
@java.lang.Override
public long getWindowShort() {
return windowShort_;
}
public static final int WINDOW_LONG_FIELD_NUMBER = 6;
private long windowLong_ = 0L;
/**
* uint64 window_long = 6 [(.gogoproto.moretags) = "yaml:\"window_long\""];
* @return The windowLong.
*/
@java.lang.Override
public long getWindowLong() {
return windowLong_;
}
public static final int WINDOW_PROBATION_FIELD_NUMBER = 7;
private long windowProbation_ = 0L;
/**
* uint64 window_probation = 7 [(.gogoproto.moretags) = "yaml:\"window_probation\""];
* @return The windowProbation.
*/
@java.lang.Override
public long getWindowProbation() {
return windowProbation_;
}
public static final int BURN_TAX_SPLIT_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private volatile java.lang.Object burnTaxSplit_ = "";
/**
* string burn_tax_split = 8 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"burn_tax_split\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The burnTaxSplit.
*/
@java.lang.Override
public java.lang.String getBurnTaxSplit() {
java.lang.Object ref = burnTaxSplit_;
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();
burnTaxSplit_ = s;
return s;
}
}
/**
* string burn_tax_split = 8 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"burn_tax_split\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The bytes for burnTaxSplit.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBurnTaxSplitBytes() {
java.lang.Object ref = burnTaxSplit_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
burnTaxSplit_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MIN_INITIAL_DEPOSIT_RATIO_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private volatile java.lang.Object minInitialDepositRatio_ = "";
/**
* string min_initial_deposit_ratio = 9 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"min_initial_deposit_ratio\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The minInitialDepositRatio.
*/
@java.lang.Override
public java.lang.String getMinInitialDepositRatio() {
java.lang.Object ref = minInitialDepositRatio_;
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();
minInitialDepositRatio_ = s;
return s;
}
}
/**
* string min_initial_deposit_ratio = 9 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"min_initial_deposit_ratio\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The bytes for minInitialDepositRatio.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMinInitialDepositRatioBytes() {
java.lang.Object ref = minInitialDepositRatio_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
minInitialDepositRatio_ = 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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getTaxPolicy());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getRewardPolicy());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(seigniorageBurdenTarget_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, seigniorageBurdenTarget_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(miningIncrement_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, miningIncrement_);
}
if (windowShort_ != 0L) {
output.writeUInt64(5, windowShort_);
}
if (windowLong_ != 0L) {
output.writeUInt64(6, windowLong_);
}
if (windowProbation_ != 0L) {
output.writeUInt64(7, windowProbation_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(burnTaxSplit_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, burnTaxSplit_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minInitialDepositRatio_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, minInitialDepositRatio_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTaxPolicy());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getRewardPolicy());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(seigniorageBurdenTarget_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, seigniorageBurdenTarget_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(miningIncrement_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, miningIncrement_);
}
if (windowShort_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(5, windowShort_);
}
if (windowLong_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(6, windowLong_);
}
if (windowProbation_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(7, windowProbation_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(burnTaxSplit_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, burnTaxSplit_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minInitialDepositRatio_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, minInitialDepositRatio_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof terra.treasury.v1beta1.Treasury.Params)) {
return super.equals(obj);
}
terra.treasury.v1beta1.Treasury.Params other = (terra.treasury.v1beta1.Treasury.Params) obj;
if (hasTaxPolicy() != other.hasTaxPolicy()) return false;
if (hasTaxPolicy()) {
if (!getTaxPolicy()
.equals(other.getTaxPolicy())) return false;
}
if (hasRewardPolicy() != other.hasRewardPolicy()) return false;
if (hasRewardPolicy()) {
if (!getRewardPolicy()
.equals(other.getRewardPolicy())) return false;
}
if (!getSeigniorageBurdenTarget()
.equals(other.getSeigniorageBurdenTarget())) return false;
if (!getMiningIncrement()
.equals(other.getMiningIncrement())) return false;
if (getWindowShort()
!= other.getWindowShort()) return false;
if (getWindowLong()
!= other.getWindowLong()) return false;
if (getWindowProbation()
!= other.getWindowProbation()) return false;
if (!getBurnTaxSplit()
.equals(other.getBurnTaxSplit())) return false;
if (!getMinInitialDepositRatio()
.equals(other.getMinInitialDepositRatio())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasTaxPolicy()) {
hash = (37 * hash) + TAX_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getTaxPolicy().hashCode();
}
if (hasRewardPolicy()) {
hash = (37 * hash) + REWARD_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getRewardPolicy().hashCode();
}
hash = (37 * hash) + SEIGNIORAGE_BURDEN_TARGET_FIELD_NUMBER;
hash = (53 * hash) + getSeigniorageBurdenTarget().hashCode();
hash = (37 * hash) + MINING_INCREMENT_FIELD_NUMBER;
hash = (53 * hash) + getMiningIncrement().hashCode();
hash = (37 * hash) + WINDOW_SHORT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getWindowShort());
hash = (37 * hash) + WINDOW_LONG_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getWindowLong());
hash = (37 * hash) + WINDOW_PROBATION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getWindowProbation());
hash = (37 * hash) + BURN_TAX_SPLIT_FIELD_NUMBER;
hash = (53 * hash) + getBurnTaxSplit().hashCode();
hash = (37 * hash) + MIN_INITIAL_DEPOSIT_RATIO_FIELD_NUMBER;
hash = (53 * hash) + getMinInitialDepositRatio().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static terra.treasury.v1beta1.Treasury.Params parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static terra.treasury.v1beta1.Treasury.Params parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static terra.treasury.v1beta1.Treasury.Params parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static terra.treasury.v1beta1.Treasury.Params parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static terra.treasury.v1beta1.Treasury.Params parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static terra.treasury.v1beta1.Treasury.Params parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static terra.treasury.v1beta1.Treasury.Params parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static terra.treasury.v1beta1.Treasury.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 terra.treasury.v1beta1.Treasury.Params parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static terra.treasury.v1beta1.Treasury.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 terra.treasury.v1beta1.Treasury.Params parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static terra.treasury.v1beta1.Treasury.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(terra.treasury.v1beta1.Treasury.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 defines the parameters for the oracle module.
*
*
* Protobuf type {@code terra.treasury.v1beta1.Params}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:terra.treasury.v1beta1.Params)
terra.treasury.v1beta1.Treasury.ParamsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return terra.treasury.v1beta1.Treasury.internal_static_terra_treasury_v1beta1_Params_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return terra.treasury.v1beta1.Treasury.internal_static_terra_treasury_v1beta1_Params_fieldAccessorTable
.ensureFieldAccessorsInitialized(
terra.treasury.v1beta1.Treasury.Params.class, terra.treasury.v1beta1.Treasury.Params.Builder.class);
}
// Construct using terra.treasury.v1beta1.Treasury.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) {
getTaxPolicyFieldBuilder();
getRewardPolicyFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
taxPolicy_ = null;
if (taxPolicyBuilder_ != null) {
taxPolicyBuilder_.dispose();
taxPolicyBuilder_ = null;
}
rewardPolicy_ = null;
if (rewardPolicyBuilder_ != null) {
rewardPolicyBuilder_.dispose();
rewardPolicyBuilder_ = null;
}
seigniorageBurdenTarget_ = "";
miningIncrement_ = "";
windowShort_ = 0L;
windowLong_ = 0L;
windowProbation_ = 0L;
burnTaxSplit_ = "";
minInitialDepositRatio_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return terra.treasury.v1beta1.Treasury.internal_static_terra_treasury_v1beta1_Params_descriptor;
}
@java.lang.Override
public terra.treasury.v1beta1.Treasury.Params getDefaultInstanceForType() {
return terra.treasury.v1beta1.Treasury.Params.getDefaultInstance();
}
@java.lang.Override
public terra.treasury.v1beta1.Treasury.Params build() {
terra.treasury.v1beta1.Treasury.Params result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public terra.treasury.v1beta1.Treasury.Params buildPartial() {
terra.treasury.v1beta1.Treasury.Params result = new terra.treasury.v1beta1.Treasury.Params(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(terra.treasury.v1beta1.Treasury.Params result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.taxPolicy_ = taxPolicyBuilder_ == null
? taxPolicy_
: taxPolicyBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.rewardPolicy_ = rewardPolicyBuilder_ == null
? rewardPolicy_
: rewardPolicyBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.seigniorageBurdenTarget_ = seigniorageBurdenTarget_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.miningIncrement_ = miningIncrement_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.windowShort_ = windowShort_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.windowLong_ = windowLong_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.windowProbation_ = windowProbation_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.burnTaxSplit_ = burnTaxSplit_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.minInitialDepositRatio_ = minInitialDepositRatio_;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof terra.treasury.v1beta1.Treasury.Params) {
return mergeFrom((terra.treasury.v1beta1.Treasury.Params)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(terra.treasury.v1beta1.Treasury.Params other) {
if (other == terra.treasury.v1beta1.Treasury.Params.getDefaultInstance()) return this;
if (other.hasTaxPolicy()) {
mergeTaxPolicy(other.getTaxPolicy());
}
if (other.hasRewardPolicy()) {
mergeRewardPolicy(other.getRewardPolicy());
}
if (!other.getSeigniorageBurdenTarget().isEmpty()) {
seigniorageBurdenTarget_ = other.seigniorageBurdenTarget_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getMiningIncrement().isEmpty()) {
miningIncrement_ = other.miningIncrement_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.getWindowShort() != 0L) {
setWindowShort(other.getWindowShort());
}
if (other.getWindowLong() != 0L) {
setWindowLong(other.getWindowLong());
}
if (other.getWindowProbation() != 0L) {
setWindowProbation(other.getWindowProbation());
}
if (!other.getBurnTaxSplit().isEmpty()) {
burnTaxSplit_ = other.burnTaxSplit_;
bitField0_ |= 0x00000080;
onChanged();
}
if (!other.getMinInitialDepositRatio().isEmpty()) {
minInitialDepositRatio_ = other.minInitialDepositRatio_;
bitField0_ |= 0x00000100;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getTaxPolicyFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getRewardPolicyFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
seigniorageBurdenTarget_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
miningIncrement_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 40: {
windowShort_ = input.readUInt64();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
windowLong_ = input.readUInt64();
bitField0_ |= 0x00000020;
break;
} // case 48
case 56: {
windowProbation_ = input.readUInt64();
bitField0_ |= 0x00000040;
break;
} // case 56
case 66: {
burnTaxSplit_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000080;
break;
} // case 66
case 74: {
minInitialDepositRatio_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000100;
break;
} // case 74
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private terra.treasury.v1beta1.Treasury.PolicyConstraints taxPolicy_;
private com.google.protobuf.SingleFieldBuilderV3<
terra.treasury.v1beta1.Treasury.PolicyConstraints, terra.treasury.v1beta1.Treasury.PolicyConstraints.Builder, terra.treasury.v1beta1.Treasury.PolicyConstraintsOrBuilder> taxPolicyBuilder_;
/**
* .terra.treasury.v1beta1.PolicyConstraints tax_policy = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_policy\""];
* @return Whether the taxPolicy field is set.
*/
public boolean hasTaxPolicy() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .terra.treasury.v1beta1.PolicyConstraints tax_policy = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_policy\""];
* @return The taxPolicy.
*/
public terra.treasury.v1beta1.Treasury.PolicyConstraints getTaxPolicy() {
if (taxPolicyBuilder_ == null) {
return taxPolicy_ == null ? terra.treasury.v1beta1.Treasury.PolicyConstraints.getDefaultInstance() : taxPolicy_;
} else {
return taxPolicyBuilder_.getMessage();
}
}
/**
* .terra.treasury.v1beta1.PolicyConstraints tax_policy = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_policy\""];
*/
public Builder setTaxPolicy(terra.treasury.v1beta1.Treasury.PolicyConstraints value) {
if (taxPolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
taxPolicy_ = value;
} else {
taxPolicyBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .terra.treasury.v1beta1.PolicyConstraints tax_policy = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_policy\""];
*/
public Builder setTaxPolicy(
terra.treasury.v1beta1.Treasury.PolicyConstraints.Builder builderForValue) {
if (taxPolicyBuilder_ == null) {
taxPolicy_ = builderForValue.build();
} else {
taxPolicyBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .terra.treasury.v1beta1.PolicyConstraints tax_policy = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_policy\""];
*/
public Builder mergeTaxPolicy(terra.treasury.v1beta1.Treasury.PolicyConstraints value) {
if (taxPolicyBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
taxPolicy_ != null &&
taxPolicy_ != terra.treasury.v1beta1.Treasury.PolicyConstraints.getDefaultInstance()) {
getTaxPolicyBuilder().mergeFrom(value);
} else {
taxPolicy_ = value;
}
} else {
taxPolicyBuilder_.mergeFrom(value);
}
if (taxPolicy_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* .terra.treasury.v1beta1.PolicyConstraints tax_policy = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_policy\""];
*/
public Builder clearTaxPolicy() {
bitField0_ = (bitField0_ & ~0x00000001);
taxPolicy_ = null;
if (taxPolicyBuilder_ != null) {
taxPolicyBuilder_.dispose();
taxPolicyBuilder_ = null;
}
onChanged();
return this;
}
/**
* .terra.treasury.v1beta1.PolicyConstraints tax_policy = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_policy\""];
*/
public terra.treasury.v1beta1.Treasury.PolicyConstraints.Builder getTaxPolicyBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getTaxPolicyFieldBuilder().getBuilder();
}
/**
* .terra.treasury.v1beta1.PolicyConstraints tax_policy = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_policy\""];
*/
public terra.treasury.v1beta1.Treasury.PolicyConstraintsOrBuilder getTaxPolicyOrBuilder() {
if (taxPolicyBuilder_ != null) {
return taxPolicyBuilder_.getMessageOrBuilder();
} else {
return taxPolicy_ == null ?
terra.treasury.v1beta1.Treasury.PolicyConstraints.getDefaultInstance() : taxPolicy_;
}
}
/**
* .terra.treasury.v1beta1.PolicyConstraints tax_policy = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_policy\""];
*/
private com.google.protobuf.SingleFieldBuilderV3<
terra.treasury.v1beta1.Treasury.PolicyConstraints, terra.treasury.v1beta1.Treasury.PolicyConstraints.Builder, terra.treasury.v1beta1.Treasury.PolicyConstraintsOrBuilder>
getTaxPolicyFieldBuilder() {
if (taxPolicyBuilder_ == null) {
taxPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
terra.treasury.v1beta1.Treasury.PolicyConstraints, terra.treasury.v1beta1.Treasury.PolicyConstraints.Builder, terra.treasury.v1beta1.Treasury.PolicyConstraintsOrBuilder>(
getTaxPolicy(),
getParentForChildren(),
isClean());
taxPolicy_ = null;
}
return taxPolicyBuilder_;
}
private terra.treasury.v1beta1.Treasury.PolicyConstraints rewardPolicy_;
private com.google.protobuf.SingleFieldBuilderV3<
terra.treasury.v1beta1.Treasury.PolicyConstraints, terra.treasury.v1beta1.Treasury.PolicyConstraints.Builder, terra.treasury.v1beta1.Treasury.PolicyConstraintsOrBuilder> rewardPolicyBuilder_;
/**
* .terra.treasury.v1beta1.PolicyConstraints reward_policy = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"reward_policy\""];
* @return Whether the rewardPolicy field is set.
*/
public boolean hasRewardPolicy() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .terra.treasury.v1beta1.PolicyConstraints reward_policy = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"reward_policy\""];
* @return The rewardPolicy.
*/
public terra.treasury.v1beta1.Treasury.PolicyConstraints getRewardPolicy() {
if (rewardPolicyBuilder_ == null) {
return rewardPolicy_ == null ? terra.treasury.v1beta1.Treasury.PolicyConstraints.getDefaultInstance() : rewardPolicy_;
} else {
return rewardPolicyBuilder_.getMessage();
}
}
/**
* .terra.treasury.v1beta1.PolicyConstraints reward_policy = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"reward_policy\""];
*/
public Builder setRewardPolicy(terra.treasury.v1beta1.Treasury.PolicyConstraints value) {
if (rewardPolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
rewardPolicy_ = value;
} else {
rewardPolicyBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .terra.treasury.v1beta1.PolicyConstraints reward_policy = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"reward_policy\""];
*/
public Builder setRewardPolicy(
terra.treasury.v1beta1.Treasury.PolicyConstraints.Builder builderForValue) {
if (rewardPolicyBuilder_ == null) {
rewardPolicy_ = builderForValue.build();
} else {
rewardPolicyBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .terra.treasury.v1beta1.PolicyConstraints reward_policy = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"reward_policy\""];
*/
public Builder mergeRewardPolicy(terra.treasury.v1beta1.Treasury.PolicyConstraints value) {
if (rewardPolicyBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
rewardPolicy_ != null &&
rewardPolicy_ != terra.treasury.v1beta1.Treasury.PolicyConstraints.getDefaultInstance()) {
getRewardPolicyBuilder().mergeFrom(value);
} else {
rewardPolicy_ = value;
}
} else {
rewardPolicyBuilder_.mergeFrom(value);
}
if (rewardPolicy_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
* .terra.treasury.v1beta1.PolicyConstraints reward_policy = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"reward_policy\""];
*/
public Builder clearRewardPolicy() {
bitField0_ = (bitField0_ & ~0x00000002);
rewardPolicy_ = null;
if (rewardPolicyBuilder_ != null) {
rewardPolicyBuilder_.dispose();
rewardPolicyBuilder_ = null;
}
onChanged();
return this;
}
/**
* .terra.treasury.v1beta1.PolicyConstraints reward_policy = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"reward_policy\""];
*/
public terra.treasury.v1beta1.Treasury.PolicyConstraints.Builder getRewardPolicyBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getRewardPolicyFieldBuilder().getBuilder();
}
/**
* .terra.treasury.v1beta1.PolicyConstraints reward_policy = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"reward_policy\""];
*/
public terra.treasury.v1beta1.Treasury.PolicyConstraintsOrBuilder getRewardPolicyOrBuilder() {
if (rewardPolicyBuilder_ != null) {
return rewardPolicyBuilder_.getMessageOrBuilder();
} else {
return rewardPolicy_ == null ?
terra.treasury.v1beta1.Treasury.PolicyConstraints.getDefaultInstance() : rewardPolicy_;
}
}
/**
* .terra.treasury.v1beta1.PolicyConstraints reward_policy = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"reward_policy\""];
*/
private com.google.protobuf.SingleFieldBuilderV3<
terra.treasury.v1beta1.Treasury.PolicyConstraints, terra.treasury.v1beta1.Treasury.PolicyConstraints.Builder, terra.treasury.v1beta1.Treasury.PolicyConstraintsOrBuilder>
getRewardPolicyFieldBuilder() {
if (rewardPolicyBuilder_ == null) {
rewardPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
terra.treasury.v1beta1.Treasury.PolicyConstraints, terra.treasury.v1beta1.Treasury.PolicyConstraints.Builder, terra.treasury.v1beta1.Treasury.PolicyConstraintsOrBuilder>(
getRewardPolicy(),
getParentForChildren(),
isClean());
rewardPolicy_ = null;
}
return rewardPolicyBuilder_;
}
private java.lang.Object seigniorageBurdenTarget_ = "";
/**
* string seigniorage_burden_target = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"seigniorage_burden_target\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The seigniorageBurdenTarget.
*/
public java.lang.String getSeigniorageBurdenTarget() {
java.lang.Object ref = seigniorageBurdenTarget_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
seigniorageBurdenTarget_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string seigniorage_burden_target = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"seigniorage_burden_target\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The bytes for seigniorageBurdenTarget.
*/
public com.google.protobuf.ByteString
getSeigniorageBurdenTargetBytes() {
java.lang.Object ref = seigniorageBurdenTarget_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
seigniorageBurdenTarget_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string seigniorage_burden_target = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"seigniorage_burden_target\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @param value The seigniorageBurdenTarget to set.
* @return This builder for chaining.
*/
public Builder setSeigniorageBurdenTarget(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
seigniorageBurdenTarget_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* string seigniorage_burden_target = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"seigniorage_burden_target\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return This builder for chaining.
*/
public Builder clearSeigniorageBurdenTarget() {
seigniorageBurdenTarget_ = getDefaultInstance().getSeigniorageBurdenTarget();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* string seigniorage_burden_target = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"seigniorage_burden_target\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @param value The bytes for seigniorageBurdenTarget to set.
* @return This builder for chaining.
*/
public Builder setSeigniorageBurdenTargetBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
seigniorageBurdenTarget_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object miningIncrement_ = "";
/**
* string mining_increment = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"mining_increment\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The miningIncrement.
*/
public java.lang.String getMiningIncrement() {
java.lang.Object ref = miningIncrement_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
miningIncrement_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string mining_increment = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"mining_increment\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The bytes for miningIncrement.
*/
public com.google.protobuf.ByteString
getMiningIncrementBytes() {
java.lang.Object ref = miningIncrement_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
miningIncrement_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string mining_increment = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"mining_increment\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @param value The miningIncrement to set.
* @return This builder for chaining.
*/
public Builder setMiningIncrement(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
miningIncrement_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* string mining_increment = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"mining_increment\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return This builder for chaining.
*/
public Builder clearMiningIncrement() {
miningIncrement_ = getDefaultInstance().getMiningIncrement();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* string mining_increment = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"mining_increment\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @param value The bytes for miningIncrement to set.
* @return This builder for chaining.
*/
public Builder setMiningIncrementBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
miningIncrement_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private long windowShort_ ;
/**
* uint64 window_short = 5 [(.gogoproto.moretags) = "yaml:\"window_short\""];
* @return The windowShort.
*/
@java.lang.Override
public long getWindowShort() {
return windowShort_;
}
/**
* uint64 window_short = 5 [(.gogoproto.moretags) = "yaml:\"window_short\""];
* @param value The windowShort to set.
* @return This builder for chaining.
*/
public Builder setWindowShort(long value) {
windowShort_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* uint64 window_short = 5 [(.gogoproto.moretags) = "yaml:\"window_short\""];
* @return This builder for chaining.
*/
public Builder clearWindowShort() {
bitField0_ = (bitField0_ & ~0x00000010);
windowShort_ = 0L;
onChanged();
return this;
}
private long windowLong_ ;
/**
* uint64 window_long = 6 [(.gogoproto.moretags) = "yaml:\"window_long\""];
* @return The windowLong.
*/
@java.lang.Override
public long getWindowLong() {
return windowLong_;
}
/**
* uint64 window_long = 6 [(.gogoproto.moretags) = "yaml:\"window_long\""];
* @param value The windowLong to set.
* @return This builder for chaining.
*/
public Builder setWindowLong(long value) {
windowLong_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* uint64 window_long = 6 [(.gogoproto.moretags) = "yaml:\"window_long\""];
* @return This builder for chaining.
*/
public Builder clearWindowLong() {
bitField0_ = (bitField0_ & ~0x00000020);
windowLong_ = 0L;
onChanged();
return this;
}
private long windowProbation_ ;
/**
* uint64 window_probation = 7 [(.gogoproto.moretags) = "yaml:\"window_probation\""];
* @return The windowProbation.
*/
@java.lang.Override
public long getWindowProbation() {
return windowProbation_;
}
/**
* uint64 window_probation = 7 [(.gogoproto.moretags) = "yaml:\"window_probation\""];
* @param value The windowProbation to set.
* @return This builder for chaining.
*/
public Builder setWindowProbation(long value) {
windowProbation_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* uint64 window_probation = 7 [(.gogoproto.moretags) = "yaml:\"window_probation\""];
* @return This builder for chaining.
*/
public Builder clearWindowProbation() {
bitField0_ = (bitField0_ & ~0x00000040);
windowProbation_ = 0L;
onChanged();
return this;
}
private java.lang.Object burnTaxSplit_ = "";
/**
* string burn_tax_split = 8 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"burn_tax_split\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The burnTaxSplit.
*/
public java.lang.String getBurnTaxSplit() {
java.lang.Object ref = burnTaxSplit_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
burnTaxSplit_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string burn_tax_split = 8 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"burn_tax_split\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The bytes for burnTaxSplit.
*/
public com.google.protobuf.ByteString
getBurnTaxSplitBytes() {
java.lang.Object ref = burnTaxSplit_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
burnTaxSplit_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string burn_tax_split = 8 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"burn_tax_split\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @param value The burnTaxSplit to set.
* @return This builder for chaining.
*/
public Builder setBurnTaxSplit(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
burnTaxSplit_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* string burn_tax_split = 8 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"burn_tax_split\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return This builder for chaining.
*/
public Builder clearBurnTaxSplit() {
burnTaxSplit_ = getDefaultInstance().getBurnTaxSplit();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
/**
* string burn_tax_split = 8 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"burn_tax_split\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @param value The bytes for burnTaxSplit to set.
* @return This builder for chaining.
*/
public Builder setBurnTaxSplitBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
burnTaxSplit_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
private java.lang.Object minInitialDepositRatio_ = "";
/**
* string min_initial_deposit_ratio = 9 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"min_initial_deposit_ratio\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The minInitialDepositRatio.
*/
public java.lang.String getMinInitialDepositRatio() {
java.lang.Object ref = minInitialDepositRatio_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
minInitialDepositRatio_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string min_initial_deposit_ratio = 9 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"min_initial_deposit_ratio\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The bytes for minInitialDepositRatio.
*/
public com.google.protobuf.ByteString
getMinInitialDepositRatioBytes() {
java.lang.Object ref = minInitialDepositRatio_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
minInitialDepositRatio_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string min_initial_deposit_ratio = 9 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"min_initial_deposit_ratio\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @param value The minInitialDepositRatio to set.
* @return This builder for chaining.
*/
public Builder setMinInitialDepositRatio(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
minInitialDepositRatio_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* string min_initial_deposit_ratio = 9 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"min_initial_deposit_ratio\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return This builder for chaining.
*/
public Builder clearMinInitialDepositRatio() {
minInitialDepositRatio_ = getDefaultInstance().getMinInitialDepositRatio();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
/**
* string min_initial_deposit_ratio = 9 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"min_initial_deposit_ratio\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @param value The bytes for minInitialDepositRatio to set.
* @return This builder for chaining.
*/
public Builder setMinInitialDepositRatioBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
minInitialDepositRatio_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:terra.treasury.v1beta1.Params)
}
// @@protoc_insertion_point(class_scope:terra.treasury.v1beta1.Params)
private static final terra.treasury.v1beta1.Treasury.Params DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new terra.treasury.v1beta1.Treasury.Params();
}
public static terra.treasury.v1beta1.Treasury.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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public terra.treasury.v1beta1.Treasury.Params getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PolicyConstraintsOrBuilder extends
// @@protoc_insertion_point(interface_extends:terra.treasury.v1beta1.PolicyConstraints)
com.google.protobuf.MessageOrBuilder {
/**
* string rate_min = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"rate_min\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The rateMin.
*/
java.lang.String getRateMin();
/**
* string rate_min = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"rate_min\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The bytes for rateMin.
*/
com.google.protobuf.ByteString
getRateMinBytes();
/**
* string rate_max = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"rate_max\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The rateMax.
*/
java.lang.String getRateMax();
/**
* string rate_max = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"rate_max\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The bytes for rateMax.
*/
com.google.protobuf.ByteString
getRateMaxBytes();
/**
* .cosmos.base.v1beta1.Coin cap = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cap\""];
* @return Whether the cap field is set.
*/
boolean hasCap();
/**
* .cosmos.base.v1beta1.Coin cap = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cap\""];
* @return The cap.
*/
cosmos.base.v1beta1.CoinOuterClass.Coin getCap();
/**
* .cosmos.base.v1beta1.Coin cap = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cap\""];
*/
cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getCapOrBuilder();
/**
* string change_rate_max = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"change_rate_max\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The changeRateMax.
*/
java.lang.String getChangeRateMax();
/**
* string change_rate_max = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"change_rate_max\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The bytes for changeRateMax.
*/
com.google.protobuf.ByteString
getChangeRateMaxBytes();
}
/**
*
* PolicyConstraints - defines policy constraints can be applied in tax & reward policies
*
*
* Protobuf type {@code terra.treasury.v1beta1.PolicyConstraints}
*/
public static final class PolicyConstraints extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:terra.treasury.v1beta1.PolicyConstraints)
PolicyConstraintsOrBuilder {
private static final long serialVersionUID = 0L;
// Use PolicyConstraints.newBuilder() to construct.
private PolicyConstraints(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PolicyConstraints() {
rateMin_ = "";
rateMax_ = "";
changeRateMax_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PolicyConstraints();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return terra.treasury.v1beta1.Treasury.internal_static_terra_treasury_v1beta1_PolicyConstraints_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return terra.treasury.v1beta1.Treasury.internal_static_terra_treasury_v1beta1_PolicyConstraints_fieldAccessorTable
.ensureFieldAccessorsInitialized(
terra.treasury.v1beta1.Treasury.PolicyConstraints.class, terra.treasury.v1beta1.Treasury.PolicyConstraints.Builder.class);
}
private int bitField0_;
public static final int RATE_MIN_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object rateMin_ = "";
/**
* string rate_min = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"rate_min\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The rateMin.
*/
@java.lang.Override
public java.lang.String getRateMin() {
java.lang.Object ref = rateMin_;
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();
rateMin_ = s;
return s;
}
}
/**
* string rate_min = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"rate_min\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The bytes for rateMin.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRateMinBytes() {
java.lang.Object ref = rateMin_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rateMin_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RATE_MAX_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object rateMax_ = "";
/**
* string rate_max = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"rate_max\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The rateMax.
*/
@java.lang.Override
public java.lang.String getRateMax() {
java.lang.Object ref = rateMax_;
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();
rateMax_ = s;
return s;
}
}
/**
* string rate_max = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"rate_max\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The bytes for rateMax.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRateMaxBytes() {
java.lang.Object ref = rateMax_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rateMax_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CAP_FIELD_NUMBER = 3;
private cosmos.base.v1beta1.CoinOuterClass.Coin cap_;
/**
* .cosmos.base.v1beta1.Coin cap = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cap\""];
* @return Whether the cap field is set.
*/
@java.lang.Override
public boolean hasCap() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .cosmos.base.v1beta1.Coin cap = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cap\""];
* @return The cap.
*/
@java.lang.Override
public cosmos.base.v1beta1.CoinOuterClass.Coin getCap() {
return cap_ == null ? cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance() : cap_;
}
/**
* .cosmos.base.v1beta1.Coin cap = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cap\""];
*/
@java.lang.Override
public cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getCapOrBuilder() {
return cap_ == null ? cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance() : cap_;
}
public static final int CHANGE_RATE_MAX_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object changeRateMax_ = "";
/**
* string change_rate_max = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"change_rate_max\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The changeRateMax.
*/
@java.lang.Override
public java.lang.String getChangeRateMax() {
java.lang.Object ref = changeRateMax_;
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();
changeRateMax_ = s;
return s;
}
}
/**
* string change_rate_max = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"change_rate_max\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The bytes for changeRateMax.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getChangeRateMaxBytes() {
java.lang.Object ref = changeRateMax_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
changeRateMax_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rateMin_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rateMin_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rateMax_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, rateMax_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getCap());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(changeRateMax_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, changeRateMax_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rateMin_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, rateMin_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rateMax_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, rateMax_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getCap());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(changeRateMax_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, changeRateMax_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof terra.treasury.v1beta1.Treasury.PolicyConstraints)) {
return super.equals(obj);
}
terra.treasury.v1beta1.Treasury.PolicyConstraints other = (terra.treasury.v1beta1.Treasury.PolicyConstraints) obj;
if (!getRateMin()
.equals(other.getRateMin())) return false;
if (!getRateMax()
.equals(other.getRateMax())) return false;
if (hasCap() != other.hasCap()) return false;
if (hasCap()) {
if (!getCap()
.equals(other.getCap())) return false;
}
if (!getChangeRateMax()
.equals(other.getChangeRateMax())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + RATE_MIN_FIELD_NUMBER;
hash = (53 * hash) + getRateMin().hashCode();
hash = (37 * hash) + RATE_MAX_FIELD_NUMBER;
hash = (53 * hash) + getRateMax().hashCode();
if (hasCap()) {
hash = (37 * hash) + CAP_FIELD_NUMBER;
hash = (53 * hash) + getCap().hashCode();
}
hash = (37 * hash) + CHANGE_RATE_MAX_FIELD_NUMBER;
hash = (53 * hash) + getChangeRateMax().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static terra.treasury.v1beta1.Treasury.PolicyConstraints parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static terra.treasury.v1beta1.Treasury.PolicyConstraints parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static terra.treasury.v1beta1.Treasury.PolicyConstraints parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static terra.treasury.v1beta1.Treasury.PolicyConstraints parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static terra.treasury.v1beta1.Treasury.PolicyConstraints parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static terra.treasury.v1beta1.Treasury.PolicyConstraints parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static terra.treasury.v1beta1.Treasury.PolicyConstraints parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static terra.treasury.v1beta1.Treasury.PolicyConstraints 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 terra.treasury.v1beta1.Treasury.PolicyConstraints parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static terra.treasury.v1beta1.Treasury.PolicyConstraints 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 terra.treasury.v1beta1.Treasury.PolicyConstraints parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static terra.treasury.v1beta1.Treasury.PolicyConstraints 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(terra.treasury.v1beta1.Treasury.PolicyConstraints 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;
}
/**
*
* PolicyConstraints - defines policy constraints can be applied in tax & reward policies
*
*
* Protobuf type {@code terra.treasury.v1beta1.PolicyConstraints}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:terra.treasury.v1beta1.PolicyConstraints)
terra.treasury.v1beta1.Treasury.PolicyConstraintsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return terra.treasury.v1beta1.Treasury.internal_static_terra_treasury_v1beta1_PolicyConstraints_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return terra.treasury.v1beta1.Treasury.internal_static_terra_treasury_v1beta1_PolicyConstraints_fieldAccessorTable
.ensureFieldAccessorsInitialized(
terra.treasury.v1beta1.Treasury.PolicyConstraints.class, terra.treasury.v1beta1.Treasury.PolicyConstraints.Builder.class);
}
// Construct using terra.treasury.v1beta1.Treasury.PolicyConstraints.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCapFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
rateMin_ = "";
rateMax_ = "";
cap_ = null;
if (capBuilder_ != null) {
capBuilder_.dispose();
capBuilder_ = null;
}
changeRateMax_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return terra.treasury.v1beta1.Treasury.internal_static_terra_treasury_v1beta1_PolicyConstraints_descriptor;
}
@java.lang.Override
public terra.treasury.v1beta1.Treasury.PolicyConstraints getDefaultInstanceForType() {
return terra.treasury.v1beta1.Treasury.PolicyConstraints.getDefaultInstance();
}
@java.lang.Override
public terra.treasury.v1beta1.Treasury.PolicyConstraints build() {
terra.treasury.v1beta1.Treasury.PolicyConstraints result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public terra.treasury.v1beta1.Treasury.PolicyConstraints buildPartial() {
terra.treasury.v1beta1.Treasury.PolicyConstraints result = new terra.treasury.v1beta1.Treasury.PolicyConstraints(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(terra.treasury.v1beta1.Treasury.PolicyConstraints result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.rateMin_ = rateMin_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.rateMax_ = rateMax_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.cap_ = capBuilder_ == null
? cap_
: capBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.changeRateMax_ = changeRateMax_;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof terra.treasury.v1beta1.Treasury.PolicyConstraints) {
return mergeFrom((terra.treasury.v1beta1.Treasury.PolicyConstraints)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(terra.treasury.v1beta1.Treasury.PolicyConstraints other) {
if (other == terra.treasury.v1beta1.Treasury.PolicyConstraints.getDefaultInstance()) return this;
if (!other.getRateMin().isEmpty()) {
rateMin_ = other.rateMin_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getRateMax().isEmpty()) {
rateMax_ = other.rateMax_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasCap()) {
mergeCap(other.getCap());
}
if (!other.getChangeRateMax().isEmpty()) {
changeRateMax_ = other.changeRateMax_;
bitField0_ |= 0x00000008;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
rateMin_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
rateMax_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getCapFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
changeRateMax_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object rateMin_ = "";
/**
* string rate_min = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"rate_min\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The rateMin.
*/
public java.lang.String getRateMin() {
java.lang.Object ref = rateMin_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
rateMin_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string rate_min = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"rate_min\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The bytes for rateMin.
*/
public com.google.protobuf.ByteString
getRateMinBytes() {
java.lang.Object ref = rateMin_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rateMin_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string rate_min = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"rate_min\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @param value The rateMin to set.
* @return This builder for chaining.
*/
public Builder setRateMin(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
rateMin_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string rate_min = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"rate_min\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return This builder for chaining.
*/
public Builder clearRateMin() {
rateMin_ = getDefaultInstance().getRateMin();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string rate_min = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"rate_min\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @param value The bytes for rateMin to set.
* @return This builder for chaining.
*/
public Builder setRateMinBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
rateMin_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object rateMax_ = "";
/**
* string rate_max = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"rate_max\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The rateMax.
*/
public java.lang.String getRateMax() {
java.lang.Object ref = rateMax_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
rateMax_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string rate_max = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"rate_max\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The bytes for rateMax.
*/
public com.google.protobuf.ByteString
getRateMaxBytes() {
java.lang.Object ref = rateMax_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rateMax_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string rate_max = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"rate_max\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @param value The rateMax to set.
* @return This builder for chaining.
*/
public Builder setRateMax(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
rateMax_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* string rate_max = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"rate_max\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return This builder for chaining.
*/
public Builder clearRateMax() {
rateMax_ = getDefaultInstance().getRateMax();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* string rate_max = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"rate_max\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @param value The bytes for rateMax to set.
* @return This builder for chaining.
*/
public Builder setRateMaxBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
rateMax_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private cosmos.base.v1beta1.CoinOuterClass.Coin cap_;
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.v1beta1.CoinOuterClass.Coin, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder> capBuilder_;
/**
* .cosmos.base.v1beta1.Coin cap = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cap\""];
* @return Whether the cap field is set.
*/
public boolean hasCap() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .cosmos.base.v1beta1.Coin cap = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cap\""];
* @return The cap.
*/
public cosmos.base.v1beta1.CoinOuterClass.Coin getCap() {
if (capBuilder_ == null) {
return cap_ == null ? cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance() : cap_;
} else {
return capBuilder_.getMessage();
}
}
/**
* .cosmos.base.v1beta1.Coin cap = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cap\""];
*/
public Builder setCap(cosmos.base.v1beta1.CoinOuterClass.Coin value) {
if (capBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
cap_ = value;
} else {
capBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .cosmos.base.v1beta1.Coin cap = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cap\""];
*/
public Builder setCap(
cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) {
if (capBuilder_ == null) {
cap_ = builderForValue.build();
} else {
capBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .cosmos.base.v1beta1.Coin cap = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cap\""];
*/
public Builder mergeCap(cosmos.base.v1beta1.CoinOuterClass.Coin value) {
if (capBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
cap_ != null &&
cap_ != cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance()) {
getCapBuilder().mergeFrom(value);
} else {
cap_ = value;
}
} else {
capBuilder_.mergeFrom(value);
}
if (cap_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
* .cosmos.base.v1beta1.Coin cap = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cap\""];
*/
public Builder clearCap() {
bitField0_ = (bitField0_ & ~0x00000004);
cap_ = null;
if (capBuilder_ != null) {
capBuilder_.dispose();
capBuilder_ = null;
}
onChanged();
return this;
}
/**
* .cosmos.base.v1beta1.Coin cap = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cap\""];
*/
public cosmos.base.v1beta1.CoinOuterClass.Coin.Builder getCapBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getCapFieldBuilder().getBuilder();
}
/**
* .cosmos.base.v1beta1.Coin cap = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cap\""];
*/
public cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getCapOrBuilder() {
if (capBuilder_ != null) {
return capBuilder_.getMessageOrBuilder();
} else {
return cap_ == null ?
cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance() : cap_;
}
}
/**
* .cosmos.base.v1beta1.Coin cap = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"cap\""];
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.v1beta1.CoinOuterClass.Coin, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>
getCapFieldBuilder() {
if (capBuilder_ == null) {
capBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.v1beta1.CoinOuterClass.Coin, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>(
getCap(),
getParentForChildren(),
isClean());
cap_ = null;
}
return capBuilder_;
}
private java.lang.Object changeRateMax_ = "";
/**
* string change_rate_max = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"change_rate_max\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The changeRateMax.
*/
public java.lang.String getChangeRateMax() {
java.lang.Object ref = changeRateMax_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
changeRateMax_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string change_rate_max = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"change_rate_max\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return The bytes for changeRateMax.
*/
public com.google.protobuf.ByteString
getChangeRateMaxBytes() {
java.lang.Object ref = changeRateMax_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
changeRateMax_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string change_rate_max = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"change_rate_max\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @param value The changeRateMax to set.
* @return This builder for chaining.
*/
public Builder setChangeRateMax(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
changeRateMax_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* string change_rate_max = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"change_rate_max\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @return This builder for chaining.
*/
public Builder clearChangeRateMax() {
changeRateMax_ = getDefaultInstance().getChangeRateMax();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* string change_rate_max = 4 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (.gogoproto.moretags) = "yaml:\"change_rate_max\"", (.cosmos_proto.scalar) = "cosmos.Dec"];
* @param value The bytes for changeRateMax to set.
* @return This builder for chaining.
*/
public Builder setChangeRateMaxBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
changeRateMax_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:terra.treasury.v1beta1.PolicyConstraints)
}
// @@protoc_insertion_point(class_scope:terra.treasury.v1beta1.PolicyConstraints)
private static final terra.treasury.v1beta1.Treasury.PolicyConstraints DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new terra.treasury.v1beta1.Treasury.PolicyConstraints();
}
public static terra.treasury.v1beta1.Treasury.PolicyConstraints getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PolicyConstraints parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public terra.treasury.v1beta1.Treasury.PolicyConstraints getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EpochTaxProceedsOrBuilder extends
// @@protoc_insertion_point(interface_extends:terra.treasury.v1beta1.EpochTaxProceeds)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .cosmos.base.v1beta1.Coin tax_proceeds = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_proceeds\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
java.util.List
getTaxProceedsList();
/**
* repeated .cosmos.base.v1beta1.Coin tax_proceeds = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_proceeds\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
cosmos.base.v1beta1.CoinOuterClass.Coin getTaxProceeds(int index);
/**
* repeated .cosmos.base.v1beta1.Coin tax_proceeds = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_proceeds\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
int getTaxProceedsCount();
/**
* repeated .cosmos.base.v1beta1.Coin tax_proceeds = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_proceeds\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
java.util.List extends cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>
getTaxProceedsOrBuilderList();
/**
* repeated .cosmos.base.v1beta1.Coin tax_proceeds = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_proceeds\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getTaxProceedsOrBuilder(
int index);
}
/**
*
* EpochTaxProceeds represents the tax amount
* collected at the current epoch
*
*
* Protobuf type {@code terra.treasury.v1beta1.EpochTaxProceeds}
*/
public static final class EpochTaxProceeds extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:terra.treasury.v1beta1.EpochTaxProceeds)
EpochTaxProceedsOrBuilder {
private static final long serialVersionUID = 0L;
// Use EpochTaxProceeds.newBuilder() to construct.
private EpochTaxProceeds(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EpochTaxProceeds() {
taxProceeds_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EpochTaxProceeds();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return terra.treasury.v1beta1.Treasury.internal_static_terra_treasury_v1beta1_EpochTaxProceeds_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return terra.treasury.v1beta1.Treasury.internal_static_terra_treasury_v1beta1_EpochTaxProceeds_fieldAccessorTable
.ensureFieldAccessorsInitialized(
terra.treasury.v1beta1.Treasury.EpochTaxProceeds.class, terra.treasury.v1beta1.Treasury.EpochTaxProceeds.Builder.class);
}
public static final int TAX_PROCEEDS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List taxProceeds_;
/**
* repeated .cosmos.base.v1beta1.Coin tax_proceeds = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_proceeds\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
@java.lang.Override
public java.util.List getTaxProceedsList() {
return taxProceeds_;
}
/**
* repeated .cosmos.base.v1beta1.Coin tax_proceeds = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_proceeds\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
@java.lang.Override
public java.util.List extends cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>
getTaxProceedsOrBuilderList() {
return taxProceeds_;
}
/**
* repeated .cosmos.base.v1beta1.Coin tax_proceeds = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_proceeds\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
@java.lang.Override
public int getTaxProceedsCount() {
return taxProceeds_.size();
}
/**
* repeated .cosmos.base.v1beta1.Coin tax_proceeds = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_proceeds\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
@java.lang.Override
public cosmos.base.v1beta1.CoinOuterClass.Coin getTaxProceeds(int index) {
return taxProceeds_.get(index);
}
/**
* repeated .cosmos.base.v1beta1.Coin tax_proceeds = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_proceeds\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
@java.lang.Override
public cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getTaxProceedsOrBuilder(
int index) {
return taxProceeds_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < taxProceeds_.size(); i++) {
output.writeMessage(1, taxProceeds_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < taxProceeds_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, taxProceeds_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof terra.treasury.v1beta1.Treasury.EpochTaxProceeds)) {
return super.equals(obj);
}
terra.treasury.v1beta1.Treasury.EpochTaxProceeds other = (terra.treasury.v1beta1.Treasury.EpochTaxProceeds) obj;
if (!getTaxProceedsList()
.equals(other.getTaxProceedsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getTaxProceedsCount() > 0) {
hash = (37 * hash) + TAX_PROCEEDS_FIELD_NUMBER;
hash = (53 * hash) + getTaxProceedsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static terra.treasury.v1beta1.Treasury.EpochTaxProceeds parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static terra.treasury.v1beta1.Treasury.EpochTaxProceeds parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static terra.treasury.v1beta1.Treasury.EpochTaxProceeds parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static terra.treasury.v1beta1.Treasury.EpochTaxProceeds parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static terra.treasury.v1beta1.Treasury.EpochTaxProceeds parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static terra.treasury.v1beta1.Treasury.EpochTaxProceeds parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static terra.treasury.v1beta1.Treasury.EpochTaxProceeds parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static terra.treasury.v1beta1.Treasury.EpochTaxProceeds 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 terra.treasury.v1beta1.Treasury.EpochTaxProceeds parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static terra.treasury.v1beta1.Treasury.EpochTaxProceeds 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 terra.treasury.v1beta1.Treasury.EpochTaxProceeds parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static terra.treasury.v1beta1.Treasury.EpochTaxProceeds 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(terra.treasury.v1beta1.Treasury.EpochTaxProceeds 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;
}
/**
*
* EpochTaxProceeds represents the tax amount
* collected at the current epoch
*
*
* Protobuf type {@code terra.treasury.v1beta1.EpochTaxProceeds}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:terra.treasury.v1beta1.EpochTaxProceeds)
terra.treasury.v1beta1.Treasury.EpochTaxProceedsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return terra.treasury.v1beta1.Treasury.internal_static_terra_treasury_v1beta1_EpochTaxProceeds_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return terra.treasury.v1beta1.Treasury.internal_static_terra_treasury_v1beta1_EpochTaxProceeds_fieldAccessorTable
.ensureFieldAccessorsInitialized(
terra.treasury.v1beta1.Treasury.EpochTaxProceeds.class, terra.treasury.v1beta1.Treasury.EpochTaxProceeds.Builder.class);
}
// Construct using terra.treasury.v1beta1.Treasury.EpochTaxProceeds.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (taxProceedsBuilder_ == null) {
taxProceeds_ = java.util.Collections.emptyList();
} else {
taxProceeds_ = null;
taxProceedsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return terra.treasury.v1beta1.Treasury.internal_static_terra_treasury_v1beta1_EpochTaxProceeds_descriptor;
}
@java.lang.Override
public terra.treasury.v1beta1.Treasury.EpochTaxProceeds getDefaultInstanceForType() {
return terra.treasury.v1beta1.Treasury.EpochTaxProceeds.getDefaultInstance();
}
@java.lang.Override
public terra.treasury.v1beta1.Treasury.EpochTaxProceeds build() {
terra.treasury.v1beta1.Treasury.EpochTaxProceeds result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public terra.treasury.v1beta1.Treasury.EpochTaxProceeds buildPartial() {
terra.treasury.v1beta1.Treasury.EpochTaxProceeds result = new terra.treasury.v1beta1.Treasury.EpochTaxProceeds(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(terra.treasury.v1beta1.Treasury.EpochTaxProceeds result) {
if (taxProceedsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
taxProceeds_ = java.util.Collections.unmodifiableList(taxProceeds_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.taxProceeds_ = taxProceeds_;
} else {
result.taxProceeds_ = taxProceedsBuilder_.build();
}
}
private void buildPartial0(terra.treasury.v1beta1.Treasury.EpochTaxProceeds result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof terra.treasury.v1beta1.Treasury.EpochTaxProceeds) {
return mergeFrom((terra.treasury.v1beta1.Treasury.EpochTaxProceeds)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(terra.treasury.v1beta1.Treasury.EpochTaxProceeds other) {
if (other == terra.treasury.v1beta1.Treasury.EpochTaxProceeds.getDefaultInstance()) return this;
if (taxProceedsBuilder_ == null) {
if (!other.taxProceeds_.isEmpty()) {
if (taxProceeds_.isEmpty()) {
taxProceeds_ = other.taxProceeds_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTaxProceedsIsMutable();
taxProceeds_.addAll(other.taxProceeds_);
}
onChanged();
}
} else {
if (!other.taxProceeds_.isEmpty()) {
if (taxProceedsBuilder_.isEmpty()) {
taxProceedsBuilder_.dispose();
taxProceedsBuilder_ = null;
taxProceeds_ = other.taxProceeds_;
bitField0_ = (bitField0_ & ~0x00000001);
taxProceedsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTaxProceedsFieldBuilder() : null;
} else {
taxProceedsBuilder_.addAllMessages(other.taxProceeds_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
cosmos.base.v1beta1.CoinOuterClass.Coin m =
input.readMessage(
cosmos.base.v1beta1.CoinOuterClass.Coin.parser(),
extensionRegistry);
if (taxProceedsBuilder_ == null) {
ensureTaxProceedsIsMutable();
taxProceeds_.add(m);
} else {
taxProceedsBuilder_.addMessage(m);
}
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List taxProceeds_ =
java.util.Collections.emptyList();
private void ensureTaxProceedsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
taxProceeds_ = new java.util.ArrayList(taxProceeds_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.base.v1beta1.CoinOuterClass.Coin, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder> taxProceedsBuilder_;
/**
* repeated .cosmos.base.v1beta1.Coin tax_proceeds = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_proceeds\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public java.util.List getTaxProceedsList() {
if (taxProceedsBuilder_ == null) {
return java.util.Collections.unmodifiableList(taxProceeds_);
} else {
return taxProceedsBuilder_.getMessageList();
}
}
/**
* repeated .cosmos.base.v1beta1.Coin tax_proceeds = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_proceeds\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public int getTaxProceedsCount() {
if (taxProceedsBuilder_ == null) {
return taxProceeds_.size();
} else {
return taxProceedsBuilder_.getCount();
}
}
/**
* repeated .cosmos.base.v1beta1.Coin tax_proceeds = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_proceeds\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public cosmos.base.v1beta1.CoinOuterClass.Coin getTaxProceeds(int index) {
if (taxProceedsBuilder_ == null) {
return taxProceeds_.get(index);
} else {
return taxProceedsBuilder_.getMessage(index);
}
}
/**
* repeated .cosmos.base.v1beta1.Coin tax_proceeds = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_proceeds\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder setTaxProceeds(
int index, cosmos.base.v1beta1.CoinOuterClass.Coin value) {
if (taxProceedsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTaxProceedsIsMutable();
taxProceeds_.set(index, value);
onChanged();
} else {
taxProceedsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin tax_proceeds = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_proceeds\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder setTaxProceeds(
int index, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) {
if (taxProceedsBuilder_ == null) {
ensureTaxProceedsIsMutable();
taxProceeds_.set(index, builderForValue.build());
onChanged();
} else {
taxProceedsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin tax_proceeds = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_proceeds\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder addTaxProceeds(cosmos.base.v1beta1.CoinOuterClass.Coin value) {
if (taxProceedsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTaxProceedsIsMutable();
taxProceeds_.add(value);
onChanged();
} else {
taxProceedsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin tax_proceeds = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_proceeds\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder addTaxProceeds(
int index, cosmos.base.v1beta1.CoinOuterClass.Coin value) {
if (taxProceedsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTaxProceedsIsMutable();
taxProceeds_.add(index, value);
onChanged();
} else {
taxProceedsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin tax_proceeds = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_proceeds\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder addTaxProceeds(
cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) {
if (taxProceedsBuilder_ == null) {
ensureTaxProceedsIsMutable();
taxProceeds_.add(builderForValue.build());
onChanged();
} else {
taxProceedsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin tax_proceeds = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_proceeds\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder addTaxProceeds(
int index, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) {
if (taxProceedsBuilder_ == null) {
ensureTaxProceedsIsMutable();
taxProceeds_.add(index, builderForValue.build());
onChanged();
} else {
taxProceedsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin tax_proceeds = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_proceeds\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder addAllTaxProceeds(
java.lang.Iterable extends cosmos.base.v1beta1.CoinOuterClass.Coin> values) {
if (taxProceedsBuilder_ == null) {
ensureTaxProceedsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, taxProceeds_);
onChanged();
} else {
taxProceedsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin tax_proceeds = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_proceeds\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder clearTaxProceeds() {
if (taxProceedsBuilder_ == null) {
taxProceeds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
taxProceedsBuilder_.clear();
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin tax_proceeds = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_proceeds\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder removeTaxProceeds(int index) {
if (taxProceedsBuilder_ == null) {
ensureTaxProceedsIsMutable();
taxProceeds_.remove(index);
onChanged();
} else {
taxProceedsBuilder_.remove(index);
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin tax_proceeds = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_proceeds\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public cosmos.base.v1beta1.CoinOuterClass.Coin.Builder getTaxProceedsBuilder(
int index) {
return getTaxProceedsFieldBuilder().getBuilder(index);
}
/**
* repeated .cosmos.base.v1beta1.Coin tax_proceeds = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_proceeds\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getTaxProceedsOrBuilder(
int index) {
if (taxProceedsBuilder_ == null) {
return taxProceeds_.get(index); } else {
return taxProceedsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cosmos.base.v1beta1.Coin tax_proceeds = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_proceeds\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public java.util.List extends cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>
getTaxProceedsOrBuilderList() {
if (taxProceedsBuilder_ != null) {
return taxProceedsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(taxProceeds_);
}
}
/**
* repeated .cosmos.base.v1beta1.Coin tax_proceeds = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_proceeds\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public cosmos.base.v1beta1.CoinOuterClass.Coin.Builder addTaxProceedsBuilder() {
return getTaxProceedsFieldBuilder().addBuilder(
cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance());
}
/**
* repeated .cosmos.base.v1beta1.Coin tax_proceeds = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_proceeds\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public cosmos.base.v1beta1.CoinOuterClass.Coin.Builder addTaxProceedsBuilder(
int index) {
return getTaxProceedsFieldBuilder().addBuilder(
index, cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance());
}
/**
* repeated .cosmos.base.v1beta1.Coin tax_proceeds = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tax_proceeds\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public java.util.List
getTaxProceedsBuilderList() {
return getTaxProceedsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.base.v1beta1.CoinOuterClass.Coin, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>
getTaxProceedsFieldBuilder() {
if (taxProceedsBuilder_ == null) {
taxProceedsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.base.v1beta1.CoinOuterClass.Coin, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>(
taxProceeds_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
taxProceeds_ = null;
}
return taxProceedsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:terra.treasury.v1beta1.EpochTaxProceeds)
}
// @@protoc_insertion_point(class_scope:terra.treasury.v1beta1.EpochTaxProceeds)
private static final terra.treasury.v1beta1.Treasury.EpochTaxProceeds DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new terra.treasury.v1beta1.Treasury.EpochTaxProceeds();
}
public static terra.treasury.v1beta1.Treasury.EpochTaxProceeds getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EpochTaxProceeds parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public terra.treasury.v1beta1.Treasury.EpochTaxProceeds getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EpochInitialIssuanceOrBuilder extends
// @@protoc_insertion_point(interface_extends:terra.treasury.v1beta1.EpochInitialIssuance)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .cosmos.base.v1beta1.Coin issuance = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"issuance\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
java.util.List
getIssuanceList();
/**
* repeated .cosmos.base.v1beta1.Coin issuance = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"issuance\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
cosmos.base.v1beta1.CoinOuterClass.Coin getIssuance(int index);
/**
* repeated .cosmos.base.v1beta1.Coin issuance = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"issuance\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
int getIssuanceCount();
/**
* repeated .cosmos.base.v1beta1.Coin issuance = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"issuance\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
java.util.List extends cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>
getIssuanceOrBuilderList();
/**
* repeated .cosmos.base.v1beta1.Coin issuance = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"issuance\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getIssuanceOrBuilder(
int index);
}
/**
*
* EpochInitialIssuance represents initial issuance
* of the currrent epoch
*
*
* Protobuf type {@code terra.treasury.v1beta1.EpochInitialIssuance}
*/
public static final class EpochInitialIssuance extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:terra.treasury.v1beta1.EpochInitialIssuance)
EpochInitialIssuanceOrBuilder {
private static final long serialVersionUID = 0L;
// Use EpochInitialIssuance.newBuilder() to construct.
private EpochInitialIssuance(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EpochInitialIssuance() {
issuance_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EpochInitialIssuance();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return terra.treasury.v1beta1.Treasury.internal_static_terra_treasury_v1beta1_EpochInitialIssuance_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return terra.treasury.v1beta1.Treasury.internal_static_terra_treasury_v1beta1_EpochInitialIssuance_fieldAccessorTable
.ensureFieldAccessorsInitialized(
terra.treasury.v1beta1.Treasury.EpochInitialIssuance.class, terra.treasury.v1beta1.Treasury.EpochInitialIssuance.Builder.class);
}
public static final int ISSUANCE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List issuance_;
/**
* repeated .cosmos.base.v1beta1.Coin issuance = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"issuance\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
@java.lang.Override
public java.util.List getIssuanceList() {
return issuance_;
}
/**
* repeated .cosmos.base.v1beta1.Coin issuance = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"issuance\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
@java.lang.Override
public java.util.List extends cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>
getIssuanceOrBuilderList() {
return issuance_;
}
/**
* repeated .cosmos.base.v1beta1.Coin issuance = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"issuance\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
@java.lang.Override
public int getIssuanceCount() {
return issuance_.size();
}
/**
* repeated .cosmos.base.v1beta1.Coin issuance = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"issuance\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
@java.lang.Override
public cosmos.base.v1beta1.CoinOuterClass.Coin getIssuance(int index) {
return issuance_.get(index);
}
/**
* repeated .cosmos.base.v1beta1.Coin issuance = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"issuance\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
@java.lang.Override
public cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getIssuanceOrBuilder(
int index) {
return issuance_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < issuance_.size(); i++) {
output.writeMessage(1, issuance_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < issuance_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, issuance_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof terra.treasury.v1beta1.Treasury.EpochInitialIssuance)) {
return super.equals(obj);
}
terra.treasury.v1beta1.Treasury.EpochInitialIssuance other = (terra.treasury.v1beta1.Treasury.EpochInitialIssuance) obj;
if (!getIssuanceList()
.equals(other.getIssuanceList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getIssuanceCount() > 0) {
hash = (37 * hash) + ISSUANCE_FIELD_NUMBER;
hash = (53 * hash) + getIssuanceList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static terra.treasury.v1beta1.Treasury.EpochInitialIssuance parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static terra.treasury.v1beta1.Treasury.EpochInitialIssuance parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static terra.treasury.v1beta1.Treasury.EpochInitialIssuance parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static terra.treasury.v1beta1.Treasury.EpochInitialIssuance parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static terra.treasury.v1beta1.Treasury.EpochInitialIssuance parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static terra.treasury.v1beta1.Treasury.EpochInitialIssuance parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static terra.treasury.v1beta1.Treasury.EpochInitialIssuance parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static terra.treasury.v1beta1.Treasury.EpochInitialIssuance 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 terra.treasury.v1beta1.Treasury.EpochInitialIssuance parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static terra.treasury.v1beta1.Treasury.EpochInitialIssuance 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 terra.treasury.v1beta1.Treasury.EpochInitialIssuance parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static terra.treasury.v1beta1.Treasury.EpochInitialIssuance 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(terra.treasury.v1beta1.Treasury.EpochInitialIssuance 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;
}
/**
*
* EpochInitialIssuance represents initial issuance
* of the currrent epoch
*
*
* Protobuf type {@code terra.treasury.v1beta1.EpochInitialIssuance}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:terra.treasury.v1beta1.EpochInitialIssuance)
terra.treasury.v1beta1.Treasury.EpochInitialIssuanceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return terra.treasury.v1beta1.Treasury.internal_static_terra_treasury_v1beta1_EpochInitialIssuance_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return terra.treasury.v1beta1.Treasury.internal_static_terra_treasury_v1beta1_EpochInitialIssuance_fieldAccessorTable
.ensureFieldAccessorsInitialized(
terra.treasury.v1beta1.Treasury.EpochInitialIssuance.class, terra.treasury.v1beta1.Treasury.EpochInitialIssuance.Builder.class);
}
// Construct using terra.treasury.v1beta1.Treasury.EpochInitialIssuance.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (issuanceBuilder_ == null) {
issuance_ = java.util.Collections.emptyList();
} else {
issuance_ = null;
issuanceBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return terra.treasury.v1beta1.Treasury.internal_static_terra_treasury_v1beta1_EpochInitialIssuance_descriptor;
}
@java.lang.Override
public terra.treasury.v1beta1.Treasury.EpochInitialIssuance getDefaultInstanceForType() {
return terra.treasury.v1beta1.Treasury.EpochInitialIssuance.getDefaultInstance();
}
@java.lang.Override
public terra.treasury.v1beta1.Treasury.EpochInitialIssuance build() {
terra.treasury.v1beta1.Treasury.EpochInitialIssuance result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public terra.treasury.v1beta1.Treasury.EpochInitialIssuance buildPartial() {
terra.treasury.v1beta1.Treasury.EpochInitialIssuance result = new terra.treasury.v1beta1.Treasury.EpochInitialIssuance(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(terra.treasury.v1beta1.Treasury.EpochInitialIssuance result) {
if (issuanceBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
issuance_ = java.util.Collections.unmodifiableList(issuance_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.issuance_ = issuance_;
} else {
result.issuance_ = issuanceBuilder_.build();
}
}
private void buildPartial0(terra.treasury.v1beta1.Treasury.EpochInitialIssuance result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof terra.treasury.v1beta1.Treasury.EpochInitialIssuance) {
return mergeFrom((terra.treasury.v1beta1.Treasury.EpochInitialIssuance)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(terra.treasury.v1beta1.Treasury.EpochInitialIssuance other) {
if (other == terra.treasury.v1beta1.Treasury.EpochInitialIssuance.getDefaultInstance()) return this;
if (issuanceBuilder_ == null) {
if (!other.issuance_.isEmpty()) {
if (issuance_.isEmpty()) {
issuance_ = other.issuance_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureIssuanceIsMutable();
issuance_.addAll(other.issuance_);
}
onChanged();
}
} else {
if (!other.issuance_.isEmpty()) {
if (issuanceBuilder_.isEmpty()) {
issuanceBuilder_.dispose();
issuanceBuilder_ = null;
issuance_ = other.issuance_;
bitField0_ = (bitField0_ & ~0x00000001);
issuanceBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getIssuanceFieldBuilder() : null;
} else {
issuanceBuilder_.addAllMessages(other.issuance_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
cosmos.base.v1beta1.CoinOuterClass.Coin m =
input.readMessage(
cosmos.base.v1beta1.CoinOuterClass.Coin.parser(),
extensionRegistry);
if (issuanceBuilder_ == null) {
ensureIssuanceIsMutable();
issuance_.add(m);
} else {
issuanceBuilder_.addMessage(m);
}
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List issuance_ =
java.util.Collections.emptyList();
private void ensureIssuanceIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
issuance_ = new java.util.ArrayList(issuance_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.base.v1beta1.CoinOuterClass.Coin, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder> issuanceBuilder_;
/**
* repeated .cosmos.base.v1beta1.Coin issuance = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"issuance\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public java.util.List getIssuanceList() {
if (issuanceBuilder_ == null) {
return java.util.Collections.unmodifiableList(issuance_);
} else {
return issuanceBuilder_.getMessageList();
}
}
/**
* repeated .cosmos.base.v1beta1.Coin issuance = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"issuance\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public int getIssuanceCount() {
if (issuanceBuilder_ == null) {
return issuance_.size();
} else {
return issuanceBuilder_.getCount();
}
}
/**
* repeated .cosmos.base.v1beta1.Coin issuance = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"issuance\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public cosmos.base.v1beta1.CoinOuterClass.Coin getIssuance(int index) {
if (issuanceBuilder_ == null) {
return issuance_.get(index);
} else {
return issuanceBuilder_.getMessage(index);
}
}
/**
* repeated .cosmos.base.v1beta1.Coin issuance = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"issuance\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder setIssuance(
int index, cosmos.base.v1beta1.CoinOuterClass.Coin value) {
if (issuanceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIssuanceIsMutable();
issuance_.set(index, value);
onChanged();
} else {
issuanceBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin issuance = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"issuance\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder setIssuance(
int index, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) {
if (issuanceBuilder_ == null) {
ensureIssuanceIsMutable();
issuance_.set(index, builderForValue.build());
onChanged();
} else {
issuanceBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin issuance = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"issuance\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder addIssuance(cosmos.base.v1beta1.CoinOuterClass.Coin value) {
if (issuanceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIssuanceIsMutable();
issuance_.add(value);
onChanged();
} else {
issuanceBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin issuance = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"issuance\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder addIssuance(
int index, cosmos.base.v1beta1.CoinOuterClass.Coin value) {
if (issuanceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIssuanceIsMutable();
issuance_.add(index, value);
onChanged();
} else {
issuanceBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin issuance = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"issuance\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder addIssuance(
cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) {
if (issuanceBuilder_ == null) {
ensureIssuanceIsMutable();
issuance_.add(builderForValue.build());
onChanged();
} else {
issuanceBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin issuance = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"issuance\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder addIssuance(
int index, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) {
if (issuanceBuilder_ == null) {
ensureIssuanceIsMutable();
issuance_.add(index, builderForValue.build());
onChanged();
} else {
issuanceBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin issuance = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"issuance\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder addAllIssuance(
java.lang.Iterable extends cosmos.base.v1beta1.CoinOuterClass.Coin> values) {
if (issuanceBuilder_ == null) {
ensureIssuanceIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, issuance_);
onChanged();
} else {
issuanceBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin issuance = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"issuance\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder clearIssuance() {
if (issuanceBuilder_ == null) {
issuance_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
issuanceBuilder_.clear();
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin issuance = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"issuance\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public Builder removeIssuance(int index) {
if (issuanceBuilder_ == null) {
ensureIssuanceIsMutable();
issuance_.remove(index);
onChanged();
} else {
issuanceBuilder_.remove(index);
}
return this;
}
/**
* repeated .cosmos.base.v1beta1.Coin issuance = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"issuance\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public cosmos.base.v1beta1.CoinOuterClass.Coin.Builder getIssuanceBuilder(
int index) {
return getIssuanceFieldBuilder().getBuilder(index);
}
/**
* repeated .cosmos.base.v1beta1.Coin issuance = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"issuance\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getIssuanceOrBuilder(
int index) {
if (issuanceBuilder_ == null) {
return issuance_.get(index); } else {
return issuanceBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cosmos.base.v1beta1.Coin issuance = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"issuance\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public java.util.List extends cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>
getIssuanceOrBuilderList() {
if (issuanceBuilder_ != null) {
return issuanceBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(issuance_);
}
}
/**
* repeated .cosmos.base.v1beta1.Coin issuance = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"issuance\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public cosmos.base.v1beta1.CoinOuterClass.Coin.Builder addIssuanceBuilder() {
return getIssuanceFieldBuilder().addBuilder(
cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance());
}
/**
* repeated .cosmos.base.v1beta1.Coin issuance = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"issuance\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public cosmos.base.v1beta1.CoinOuterClass.Coin.Builder addIssuanceBuilder(
int index) {
return getIssuanceFieldBuilder().addBuilder(
index, cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance());
}
/**
* repeated .cosmos.base.v1beta1.Coin issuance = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"issuance\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
*/
public java.util.List
getIssuanceBuilderList() {
return getIssuanceFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.base.v1beta1.CoinOuterClass.Coin, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>
getIssuanceFieldBuilder() {
if (issuanceBuilder_ == null) {
issuanceBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.base.v1beta1.CoinOuterClass.Coin, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>(
issuance_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
issuance_ = null;
}
return issuanceBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:terra.treasury.v1beta1.EpochInitialIssuance)
}
// @@protoc_insertion_point(class_scope:terra.treasury.v1beta1.EpochInitialIssuance)
private static final terra.treasury.v1beta1.Treasury.EpochInitialIssuance DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new terra.treasury.v1beta1.Treasury.EpochInitialIssuance();
}
public static terra.treasury.v1beta1.Treasury.EpochInitialIssuance getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EpochInitialIssuance parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public terra.treasury.v1beta1.Treasury.EpochInitialIssuance getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_terra_treasury_v1beta1_Params_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_terra_treasury_v1beta1_Params_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_terra_treasury_v1beta1_PolicyConstraints_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_terra_treasury_v1beta1_PolicyConstraints_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_terra_treasury_v1beta1_EpochTaxProceeds_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_terra_treasury_v1beta1_EpochTaxProceeds_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_terra_treasury_v1beta1_EpochInitialIssuance_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_terra_treasury_v1beta1_EpochInitialIssuance_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%terra/treasury/v1beta1/treasury.proto\022" +
"\026terra.treasury.v1beta1\032\036cosmos/base/v1b" +
"eta1/coin.proto\032\031cosmos_proto/cosmos.pro" +
"to\032\024gogoproto/gogo.proto\"\315\006\n\006Params\022X\n\nt" +
"ax_policy\030\001 \001(\0132).terra.treasury.v1beta1" +
".PolicyConstraintsB\031\310\336\037\000\362\336\037\021yaml:\"tax_po" +
"licy\"\022^\n\rreward_policy\030\002 \001(\0132).terra.tre" +
"asury.v1beta1.PolicyConstraintsB\034\310\336\037\000\362\336\037" +
"\024yaml:\"reward_policy\"\022\203\001\n\031seigniorage_bu" +
"rden_target\030\003 \001(\tB`\310\336\037\000\332\336\037&github.com/co" +
"smos/cosmos-sdk/types.Dec\362\336\037 yaml:\"seign" +
"iorage_burden_target\"\322\264-\ncosmos.Dec\022q\n\020m" +
"ining_increment\030\004 \001(\tBW\310\336\037\000\332\336\037&github.co" +
"m/cosmos/cosmos-sdk/types.Dec\362\336\037\027yaml:\"m" +
"ining_increment\"\322\264-\ncosmos.Dec\022-\n\014window" +
"_short\030\005 \001(\004B\027\362\336\037\023yaml:\"window_short\"\022+\n" +
"\013window_long\030\006 \001(\004B\026\362\336\037\022yaml:\"window_lon" +
"g\"\0225\n\020window_probation\030\007 \001(\004B\033\362\336\037\027yaml:\"" +
"window_probation\"\022m\n\016burn_tax_split\030\010 \001(" +
"\tBU\310\336\037\000\332\336\037&github.com/cosmos/cosmos-sdk/" +
"types.Dec\362\336\037\025yaml:\"burn_tax_split\"\322\264-\nco" +
"smos.Dec\022\203\001\n\031min_initial_deposit_ratio\030\t" +
" \001(\tB`\310\336\037\000\332\336\037&github.com/cosmos/cosmos-s" +
"dk/types.Dec\362\336\037 yaml:\"min_initial_deposi" +
"t_ratio\"\322\264-\ncosmos.Dec:\010\230\240\037\000\350\240\037\001\"\220\003\n\021Pol" +
"icyConstraints\022a\n\010rate_min\030\001 \001(\tBO\310\336\037\000\332\336" +
"\037&github.com/cosmos/cosmos-sdk/types.Dec" +
"\362\336\037\017yaml:\"rate_min\"\322\264-\ncosmos.Dec\022a\n\010rat" +
"e_max\030\002 \001(\tBO\310\336\037\000\332\336\037&github.com/cosmos/c" +
"osmos-sdk/types.Dec\362\336\037\017yaml:\"rate_max\"\322\264" +
"-\ncosmos.Dec\022:\n\003cap\030\003 \001(\0132\031.cosmos.base." +
"v1beta1.CoinB\022\310\336\037\000\362\336\037\nyaml:\"cap\"\022o\n\017chan" +
"ge_rate_max\030\004 \001(\tBV\310\336\037\000\332\336\037&github.com/co" +
"smos/cosmos-sdk/types.Dec\362\336\037\026yaml:\"chang" +
"e_rate_max\"\322\264-\ncosmos.Dec:\010\230\240\037\000\350\240\037\001\"\214\001\n\020" +
"EpochTaxProceeds\022x\n\014tax_proceeds\030\001 \003(\0132\031" +
".cosmos.base.v1beta1.CoinBG\310\336\037\000\362\336\037\023yaml:" +
"\"tax_proceeds\"\252\337\037(github.com/cosmos/cosm" +
"os-sdk/types.Coins\"\210\001\n\024EpochInitialIssua" +
"nce\022p\n\010issuance\030\001 \003(\0132\031.cosmos.base.v1be" +
"ta1.CoinBC\310\336\037\000\362\336\037\017yaml:\"issuance\"\252\337\037(git" +
"hub.com/cosmos/cosmos-sdk/types.CoinsB3Z" +
"1github.com/classic-terra/core/v3/x/trea" +
"sury/typesb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
cosmos.base.v1beta1.CoinOuterClass.getDescriptor(),
cosmos_proto.Cosmos.getDescriptor(),
com.google.protobuf.GoGoProtos.getDescriptor(),
});
internal_static_terra_treasury_v1beta1_Params_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_terra_treasury_v1beta1_Params_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_terra_treasury_v1beta1_Params_descriptor,
new java.lang.String[] { "TaxPolicy", "RewardPolicy", "SeigniorageBurdenTarget", "MiningIncrement", "WindowShort", "WindowLong", "WindowProbation", "BurnTaxSplit", "MinInitialDepositRatio", });
internal_static_terra_treasury_v1beta1_PolicyConstraints_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_terra_treasury_v1beta1_PolicyConstraints_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_terra_treasury_v1beta1_PolicyConstraints_descriptor,
new java.lang.String[] { "RateMin", "RateMax", "Cap", "ChangeRateMax", });
internal_static_terra_treasury_v1beta1_EpochTaxProceeds_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_terra_treasury_v1beta1_EpochTaxProceeds_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_terra_treasury_v1beta1_EpochTaxProceeds_descriptor,
new java.lang.String[] { "TaxProceeds", });
internal_static_terra_treasury_v1beta1_EpochInitialIssuance_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_terra_treasury_v1beta1_EpochInitialIssuance_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_terra_treasury_v1beta1_EpochInitialIssuance_descriptor,
new java.lang.String[] { "Issuance", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(cosmos_proto.Cosmos.scalar);
registry.add(com.google.protobuf.GoGoProtos.castrepeated);
registry.add(com.google.protobuf.GoGoProtos.customtype);
registry.add(com.google.protobuf.GoGoProtos.equal);
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);
cosmos.base.v1beta1.CoinOuterClass.getDescriptor();
cosmos_proto.Cosmos.getDescriptor();
com.google.protobuf.GoGoProtos.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy