Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
cosmos.distribution.v1beta1.Genesis Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: cosmos/distribution/v1beta1/genesis.proto
package cosmos.distribution.v1beta1;
public final class Genesis {
private Genesis() {}
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 DelegatorWithdrawInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.DelegatorWithdrawInfo)
com.google.protobuf.MessageOrBuilder {
/**
*
* delegator_address is the address of the delegator.
*
*
* string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""];
*/
java.lang.String getDelegatorAddress();
/**
*
* delegator_address is the address of the delegator.
*
*
* string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""];
*/
com.google.protobuf.ByteString
getDelegatorAddressBytes();
/**
*
* withdraw_address is the address to withdraw the delegation rewards to.
*
*
* string withdraw_address = 2 [(.gogoproto.moretags) = "yaml:\"withdraw_address\""];
*/
java.lang.String getWithdrawAddress();
/**
*
* withdraw_address is the address to withdraw the delegation rewards to.
*
*
* string withdraw_address = 2 [(.gogoproto.moretags) = "yaml:\"withdraw_address\""];
*/
com.google.protobuf.ByteString
getWithdrawAddressBytes();
}
/**
*
* DelegatorWithdrawInfo is the address for where distributions rewards are
* withdrawn to by default this struct is only used at genesis to feed in
* default withdraw addresses.
*
*
* Protobuf type {@code cosmos.distribution.v1beta1.DelegatorWithdrawInfo}
*/
public static final class DelegatorWithdrawInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.DelegatorWithdrawInfo)
DelegatorWithdrawInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use DelegatorWithdrawInfo.newBuilder() to construct.
private DelegatorWithdrawInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DelegatorWithdrawInfo() {
delegatorAddress_ = "";
withdrawAddress_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DelegatorWithdrawInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
delegatorAddress_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
withdrawAddress_ = s;
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_DelegatorWithdrawInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_DelegatorWithdrawInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo.class, cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo.Builder.class);
}
public static final int DELEGATOR_ADDRESS_FIELD_NUMBER = 1;
private volatile java.lang.Object delegatorAddress_;
/**
*
* delegator_address is the address of the delegator.
*
*
* string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""];
*/
public java.lang.String getDelegatorAddress() {
java.lang.Object ref = delegatorAddress_;
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();
delegatorAddress_ = s;
return s;
}
}
/**
*
* delegator_address is the address of the delegator.
*
*
* string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""];
*/
public com.google.protobuf.ByteString
getDelegatorAddressBytes() {
java.lang.Object ref = delegatorAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
delegatorAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int WITHDRAW_ADDRESS_FIELD_NUMBER = 2;
private volatile java.lang.Object withdrawAddress_;
/**
*
* withdraw_address is the address to withdraw the delegation rewards to.
*
*
* string withdraw_address = 2 [(.gogoproto.moretags) = "yaml:\"withdraw_address\""];
*/
public java.lang.String getWithdrawAddress() {
java.lang.Object ref = withdrawAddress_;
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();
withdrawAddress_ = s;
return s;
}
}
/**
*
* withdraw_address is the address to withdraw the delegation rewards to.
*
*
* string withdraw_address = 2 [(.gogoproto.moretags) = "yaml:\"withdraw_address\""];
*/
public com.google.protobuf.ByteString
getWithdrawAddressBytes() {
java.lang.Object ref = withdrawAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
withdrawAddress_ = 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 (!getDelegatorAddressBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddress_);
}
if (!getWithdrawAddressBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, withdrawAddress_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getDelegatorAddressBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddress_);
}
if (!getWithdrawAddressBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, withdrawAddress_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo)) {
return super.equals(obj);
}
cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo other = (cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo) obj;
boolean result = true;
result = result && getDelegatorAddress()
.equals(other.getDelegatorAddress());
result = result && getWithdrawAddress()
.equals(other.getWithdrawAddress());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + DELEGATOR_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getDelegatorAddress().hashCode();
hash = (37 * hash) + WITHDRAW_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getWithdrawAddress().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo 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;
}
/**
*
* DelegatorWithdrawInfo is the address for where distributions rewards are
* withdrawn to by default this struct is only used at genesis to feed in
* default withdraw addresses.
*
*
* Protobuf type {@code cosmos.distribution.v1beta1.DelegatorWithdrawInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.DelegatorWithdrawInfo)
cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_DelegatorWithdrawInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_DelegatorWithdrawInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo.class, cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo.Builder.class);
}
// Construct using cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
delegatorAddress_ = "";
withdrawAddress_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_DelegatorWithdrawInfo_descriptor;
}
@java.lang.Override
public cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo getDefaultInstanceForType() {
return cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo.getDefaultInstance();
}
@java.lang.Override
public cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo build() {
cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo buildPartial() {
cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo result = new cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo(this);
result.delegatorAddress_ = delegatorAddress_;
result.withdrawAddress_ = withdrawAddress_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo) {
return mergeFrom((cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo other) {
if (other == cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo.getDefaultInstance()) return this;
if (!other.getDelegatorAddress().isEmpty()) {
delegatorAddress_ = other.delegatorAddress_;
onChanged();
}
if (!other.getWithdrawAddress().isEmpty()) {
withdrawAddress_ = other.withdrawAddress_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object delegatorAddress_ = "";
/**
*
* delegator_address is the address of the delegator.
*
*
* string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""];
*/
public java.lang.String getDelegatorAddress() {
java.lang.Object ref = delegatorAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
delegatorAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* delegator_address is the address of the delegator.
*
*
* string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""];
*/
public com.google.protobuf.ByteString
getDelegatorAddressBytes() {
java.lang.Object ref = delegatorAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
delegatorAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* delegator_address is the address of the delegator.
*
*
* string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""];
*/
public Builder setDelegatorAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
delegatorAddress_ = value;
onChanged();
return this;
}
/**
*
* delegator_address is the address of the delegator.
*
*
* string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""];
*/
public Builder clearDelegatorAddress() {
delegatorAddress_ = getDefaultInstance().getDelegatorAddress();
onChanged();
return this;
}
/**
*
* delegator_address is the address of the delegator.
*
*
* string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""];
*/
public Builder setDelegatorAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
delegatorAddress_ = value;
onChanged();
return this;
}
private java.lang.Object withdrawAddress_ = "";
/**
*
* withdraw_address is the address to withdraw the delegation rewards to.
*
*
* string withdraw_address = 2 [(.gogoproto.moretags) = "yaml:\"withdraw_address\""];
*/
public java.lang.String getWithdrawAddress() {
java.lang.Object ref = withdrawAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
withdrawAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* withdraw_address is the address to withdraw the delegation rewards to.
*
*
* string withdraw_address = 2 [(.gogoproto.moretags) = "yaml:\"withdraw_address\""];
*/
public com.google.protobuf.ByteString
getWithdrawAddressBytes() {
java.lang.Object ref = withdrawAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
withdrawAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* withdraw_address is the address to withdraw the delegation rewards to.
*
*
* string withdraw_address = 2 [(.gogoproto.moretags) = "yaml:\"withdraw_address\""];
*/
public Builder setWithdrawAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
withdrawAddress_ = value;
onChanged();
return this;
}
/**
*
* withdraw_address is the address to withdraw the delegation rewards to.
*
*
* string withdraw_address = 2 [(.gogoproto.moretags) = "yaml:\"withdraw_address\""];
*/
public Builder clearWithdrawAddress() {
withdrawAddress_ = getDefaultInstance().getWithdrawAddress();
onChanged();
return this;
}
/**
*
* withdraw_address is the address to withdraw the delegation rewards to.
*
*
* string withdraw_address = 2 [(.gogoproto.moretags) = "yaml:\"withdraw_address\""];
*/
public Builder setWithdrawAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
withdrawAddress_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.DelegatorWithdrawInfo)
}
// @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.DelegatorWithdrawInfo)
private static final cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo();
}
public static cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DelegatorWithdrawInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DelegatorWithdrawInfo(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ValidatorOutstandingRewardsRecordOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord)
com.google.protobuf.MessageOrBuilder {
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
java.lang.String getValidatorAddress();
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
com.google.protobuf.ByteString
getValidatorAddressBytes();
/**
*
* outstanding_rewards represents the oustanding rewards of a validator.
*
*
* repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"];
*/
java.util.List
getOutstandingRewardsList();
/**
*
* outstanding_rewards represents the oustanding rewards of a validator.
*
*
* repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"];
*/
cosmos.base.v1beta1.CoinOuterClass.DecCoin getOutstandingRewards(int index);
/**
*
* outstanding_rewards represents the oustanding rewards of a validator.
*
*
* repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"];
*/
int getOutstandingRewardsCount();
/**
*
* outstanding_rewards represents the oustanding rewards of a validator.
*
*
* repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"];
*/
java.util.List extends cosmos.base.v1beta1.CoinOuterClass.DecCoinOrBuilder>
getOutstandingRewardsOrBuilderList();
/**
*
* outstanding_rewards represents the oustanding rewards of a validator.
*
*
* repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"];
*/
cosmos.base.v1beta1.CoinOuterClass.DecCoinOrBuilder getOutstandingRewardsOrBuilder(
int index);
}
/**
*
* ValidatorOutstandingRewardsRecord is used for import/export via genesis json.
*
*
* Protobuf type {@code cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord}
*/
public static final class ValidatorOutstandingRewardsRecord extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord)
ValidatorOutstandingRewardsRecordOrBuilder {
private static final long serialVersionUID = 0L;
// Use ValidatorOutstandingRewardsRecord.newBuilder() to construct.
private ValidatorOutstandingRewardsRecord(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ValidatorOutstandingRewardsRecord() {
validatorAddress_ = "";
outstandingRewards_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ValidatorOutstandingRewardsRecord(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
validatorAddress_ = s;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
outstandingRewards_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
outstandingRewards_.add(
input.readMessage(cosmos.base.v1beta1.CoinOuterClass.DecCoin.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
outstandingRewards_ = java.util.Collections.unmodifiableList(outstandingRewards_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorOutstandingRewardsRecord_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorOutstandingRewardsRecord_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord.class, cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord.Builder.class);
}
private int bitField0_;
public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 1;
private volatile java.lang.Object validatorAddress_;
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public java.lang.String getValidatorAddress() {
java.lang.Object ref = validatorAddress_;
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();
validatorAddress_ = s;
return s;
}
}
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public com.google.protobuf.ByteString
getValidatorAddressBytes() {
java.lang.Object ref = validatorAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
validatorAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OUTSTANDING_REWARDS_FIELD_NUMBER = 2;
private java.util.List outstandingRewards_;
/**
*
* outstanding_rewards represents the oustanding rewards of a validator.
*
*
* repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"];
*/
public java.util.List getOutstandingRewardsList() {
return outstandingRewards_;
}
/**
*
* outstanding_rewards represents the oustanding rewards of a validator.
*
*
* repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"];
*/
public java.util.List extends cosmos.base.v1beta1.CoinOuterClass.DecCoinOrBuilder>
getOutstandingRewardsOrBuilderList() {
return outstandingRewards_;
}
/**
*
* outstanding_rewards represents the oustanding rewards of a validator.
*
*
* repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"];
*/
public int getOutstandingRewardsCount() {
return outstandingRewards_.size();
}
/**
*
* outstanding_rewards represents the oustanding rewards of a validator.
*
*
* repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"];
*/
public cosmos.base.v1beta1.CoinOuterClass.DecCoin getOutstandingRewards(int index) {
return outstandingRewards_.get(index);
}
/**
*
* outstanding_rewards represents the oustanding rewards of a validator.
*
*
* repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"];
*/
public cosmos.base.v1beta1.CoinOuterClass.DecCoinOrBuilder getOutstandingRewardsOrBuilder(
int index) {
return outstandingRewards_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getValidatorAddressBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, validatorAddress_);
}
for (int i = 0; i < outstandingRewards_.size(); i++) {
output.writeMessage(2, outstandingRewards_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getValidatorAddressBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, validatorAddress_);
}
for (int i = 0; i < outstandingRewards_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, outstandingRewards_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord)) {
return super.equals(obj);
}
cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord other = (cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord) obj;
boolean result = true;
result = result && getValidatorAddress()
.equals(other.getValidatorAddress());
result = result && getOutstandingRewardsList()
.equals(other.getOutstandingRewardsList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VALIDATOR_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getValidatorAddress().hashCode();
if (getOutstandingRewardsCount() > 0) {
hash = (37 * hash) + OUTSTANDING_REWARDS_FIELD_NUMBER;
hash = (53 * hash) + getOutstandingRewardsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord 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;
}
/**
*
* ValidatorOutstandingRewardsRecord is used for import/export via genesis json.
*
*
* Protobuf type {@code cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord)
cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecordOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorOutstandingRewardsRecord_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorOutstandingRewardsRecord_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord.class, cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord.Builder.class);
}
// Construct using cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getOutstandingRewardsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
validatorAddress_ = "";
if (outstandingRewardsBuilder_ == null) {
outstandingRewards_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
outstandingRewardsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorOutstandingRewardsRecord_descriptor;
}
@java.lang.Override
public cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord getDefaultInstanceForType() {
return cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord.getDefaultInstance();
}
@java.lang.Override
public cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord build() {
cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord buildPartial() {
cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord result = new cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.validatorAddress_ = validatorAddress_;
if (outstandingRewardsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
outstandingRewards_ = java.util.Collections.unmodifiableList(outstandingRewards_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.outstandingRewards_ = outstandingRewards_;
} else {
result.outstandingRewards_ = outstandingRewardsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord) {
return mergeFrom((cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord other) {
if (other == cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord.getDefaultInstance()) return this;
if (!other.getValidatorAddress().isEmpty()) {
validatorAddress_ = other.validatorAddress_;
onChanged();
}
if (outstandingRewardsBuilder_ == null) {
if (!other.outstandingRewards_.isEmpty()) {
if (outstandingRewards_.isEmpty()) {
outstandingRewards_ = other.outstandingRewards_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureOutstandingRewardsIsMutable();
outstandingRewards_.addAll(other.outstandingRewards_);
}
onChanged();
}
} else {
if (!other.outstandingRewards_.isEmpty()) {
if (outstandingRewardsBuilder_.isEmpty()) {
outstandingRewardsBuilder_.dispose();
outstandingRewardsBuilder_ = null;
outstandingRewards_ = other.outstandingRewards_;
bitField0_ = (bitField0_ & ~0x00000002);
outstandingRewardsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getOutstandingRewardsFieldBuilder() : null;
} else {
outstandingRewardsBuilder_.addAllMessages(other.outstandingRewards_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object validatorAddress_ = "";
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public java.lang.String getValidatorAddress() {
java.lang.Object ref = validatorAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
validatorAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public com.google.protobuf.ByteString
getValidatorAddressBytes() {
java.lang.Object ref = validatorAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
validatorAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public Builder setValidatorAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
validatorAddress_ = value;
onChanged();
return this;
}
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public Builder clearValidatorAddress() {
validatorAddress_ = getDefaultInstance().getValidatorAddress();
onChanged();
return this;
}
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public Builder setValidatorAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
validatorAddress_ = value;
onChanged();
return this;
}
private java.util.List outstandingRewards_ =
java.util.Collections.emptyList();
private void ensureOutstandingRewardsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
outstandingRewards_ = new java.util.ArrayList(outstandingRewards_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.base.v1beta1.CoinOuterClass.DecCoin, cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder, cosmos.base.v1beta1.CoinOuterClass.DecCoinOrBuilder> outstandingRewardsBuilder_;
/**
*
* outstanding_rewards represents the oustanding rewards of a validator.
*
*
* repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"];
*/
public java.util.List getOutstandingRewardsList() {
if (outstandingRewardsBuilder_ == null) {
return java.util.Collections.unmodifiableList(outstandingRewards_);
} else {
return outstandingRewardsBuilder_.getMessageList();
}
}
/**
*
* outstanding_rewards represents the oustanding rewards of a validator.
*
*
* repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"];
*/
public int getOutstandingRewardsCount() {
if (outstandingRewardsBuilder_ == null) {
return outstandingRewards_.size();
} else {
return outstandingRewardsBuilder_.getCount();
}
}
/**
*
* outstanding_rewards represents the oustanding rewards of a validator.
*
*
* repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"];
*/
public cosmos.base.v1beta1.CoinOuterClass.DecCoin getOutstandingRewards(int index) {
if (outstandingRewardsBuilder_ == null) {
return outstandingRewards_.get(index);
} else {
return outstandingRewardsBuilder_.getMessage(index);
}
}
/**
*
* outstanding_rewards represents the oustanding rewards of a validator.
*
*
* repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"];
*/
public Builder setOutstandingRewards(
int index, cosmos.base.v1beta1.CoinOuterClass.DecCoin value) {
if (outstandingRewardsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOutstandingRewardsIsMutable();
outstandingRewards_.set(index, value);
onChanged();
} else {
outstandingRewardsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* outstanding_rewards represents the oustanding rewards of a validator.
*
*
* repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"];
*/
public Builder setOutstandingRewards(
int index, cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder builderForValue) {
if (outstandingRewardsBuilder_ == null) {
ensureOutstandingRewardsIsMutable();
outstandingRewards_.set(index, builderForValue.build());
onChanged();
} else {
outstandingRewardsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* outstanding_rewards represents the oustanding rewards of a validator.
*
*
* repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"];
*/
public Builder addOutstandingRewards(cosmos.base.v1beta1.CoinOuterClass.DecCoin value) {
if (outstandingRewardsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOutstandingRewardsIsMutable();
outstandingRewards_.add(value);
onChanged();
} else {
outstandingRewardsBuilder_.addMessage(value);
}
return this;
}
/**
*
* outstanding_rewards represents the oustanding rewards of a validator.
*
*
* repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"];
*/
public Builder addOutstandingRewards(
int index, cosmos.base.v1beta1.CoinOuterClass.DecCoin value) {
if (outstandingRewardsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOutstandingRewardsIsMutable();
outstandingRewards_.add(index, value);
onChanged();
} else {
outstandingRewardsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* outstanding_rewards represents the oustanding rewards of a validator.
*
*
* repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"];
*/
public Builder addOutstandingRewards(
cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder builderForValue) {
if (outstandingRewardsBuilder_ == null) {
ensureOutstandingRewardsIsMutable();
outstandingRewards_.add(builderForValue.build());
onChanged();
} else {
outstandingRewardsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* outstanding_rewards represents the oustanding rewards of a validator.
*
*
* repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"];
*/
public Builder addOutstandingRewards(
int index, cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder builderForValue) {
if (outstandingRewardsBuilder_ == null) {
ensureOutstandingRewardsIsMutable();
outstandingRewards_.add(index, builderForValue.build());
onChanged();
} else {
outstandingRewardsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* outstanding_rewards represents the oustanding rewards of a validator.
*
*
* repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"];
*/
public Builder addAllOutstandingRewards(
java.lang.Iterable extends cosmos.base.v1beta1.CoinOuterClass.DecCoin> values) {
if (outstandingRewardsBuilder_ == null) {
ensureOutstandingRewardsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, outstandingRewards_);
onChanged();
} else {
outstandingRewardsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* outstanding_rewards represents the oustanding rewards of a validator.
*
*
* repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"];
*/
public Builder clearOutstandingRewards() {
if (outstandingRewardsBuilder_ == null) {
outstandingRewards_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
outstandingRewardsBuilder_.clear();
}
return this;
}
/**
*
* outstanding_rewards represents the oustanding rewards of a validator.
*
*
* repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"];
*/
public Builder removeOutstandingRewards(int index) {
if (outstandingRewardsBuilder_ == null) {
ensureOutstandingRewardsIsMutable();
outstandingRewards_.remove(index);
onChanged();
} else {
outstandingRewardsBuilder_.remove(index);
}
return this;
}
/**
*
* outstanding_rewards represents the oustanding rewards of a validator.
*
*
* repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"];
*/
public cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder getOutstandingRewardsBuilder(
int index) {
return getOutstandingRewardsFieldBuilder().getBuilder(index);
}
/**
*
* outstanding_rewards represents the oustanding rewards of a validator.
*
*
* repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"];
*/
public cosmos.base.v1beta1.CoinOuterClass.DecCoinOrBuilder getOutstandingRewardsOrBuilder(
int index) {
if (outstandingRewardsBuilder_ == null) {
return outstandingRewards_.get(index); } else {
return outstandingRewardsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* outstanding_rewards represents the oustanding rewards of a validator.
*
*
* repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"];
*/
public java.util.List extends cosmos.base.v1beta1.CoinOuterClass.DecCoinOrBuilder>
getOutstandingRewardsOrBuilderList() {
if (outstandingRewardsBuilder_ != null) {
return outstandingRewardsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(outstandingRewards_);
}
}
/**
*
* outstanding_rewards represents the oustanding rewards of a validator.
*
*
* repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"];
*/
public cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder addOutstandingRewardsBuilder() {
return getOutstandingRewardsFieldBuilder().addBuilder(
cosmos.base.v1beta1.CoinOuterClass.DecCoin.getDefaultInstance());
}
/**
*
* outstanding_rewards represents the oustanding rewards of a validator.
*
*
* repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"];
*/
public cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder addOutstandingRewardsBuilder(
int index) {
return getOutstandingRewardsFieldBuilder().addBuilder(
index, cosmos.base.v1beta1.CoinOuterClass.DecCoin.getDefaultInstance());
}
/**
*
* outstanding_rewards represents the oustanding rewards of a validator.
*
*
* repeated .cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"];
*/
public java.util.List
getOutstandingRewardsBuilderList() {
return getOutstandingRewardsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.base.v1beta1.CoinOuterClass.DecCoin, cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder, cosmos.base.v1beta1.CoinOuterClass.DecCoinOrBuilder>
getOutstandingRewardsFieldBuilder() {
if (outstandingRewardsBuilder_ == null) {
outstandingRewardsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.base.v1beta1.CoinOuterClass.DecCoin, cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder, cosmos.base.v1beta1.CoinOuterClass.DecCoinOrBuilder>(
outstandingRewards_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
outstandingRewards_ = null;
}
return outstandingRewardsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord)
}
// @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord)
private static final cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord();
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ValidatorOutstandingRewardsRecord parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ValidatorOutstandingRewardsRecord(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ValidatorAccumulatedCommissionRecordOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord)
com.google.protobuf.MessageOrBuilder {
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
java.lang.String getValidatorAddress();
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
com.google.protobuf.ByteString
getValidatorAddressBytes();
/**
*
* accumulated is the accumulated commission of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission accumulated = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"accumulated\""];
*/
boolean hasAccumulated();
/**
*
* accumulated is the accumulated commission of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission accumulated = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"accumulated\""];
*/
cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission getAccumulated();
/**
*
* accumulated is the accumulated commission of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission accumulated = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"accumulated\""];
*/
cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommissionOrBuilder getAccumulatedOrBuilder();
}
/**
*
* ValidatorAccumulatedCommissionRecord is used for import / export via genesis
* json.
*
*
* Protobuf type {@code cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord}
*/
public static final class ValidatorAccumulatedCommissionRecord extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord)
ValidatorAccumulatedCommissionRecordOrBuilder {
private static final long serialVersionUID = 0L;
// Use ValidatorAccumulatedCommissionRecord.newBuilder() to construct.
private ValidatorAccumulatedCommissionRecord(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ValidatorAccumulatedCommissionRecord() {
validatorAddress_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ValidatorAccumulatedCommissionRecord(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
validatorAddress_ = s;
break;
}
case 18: {
cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission.Builder subBuilder = null;
if (accumulated_ != null) {
subBuilder = accumulated_.toBuilder();
}
accumulated_ = input.readMessage(cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(accumulated_);
accumulated_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorAccumulatedCommissionRecord_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorAccumulatedCommissionRecord_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord.class, cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord.Builder.class);
}
public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 1;
private volatile java.lang.Object validatorAddress_;
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public java.lang.String getValidatorAddress() {
java.lang.Object ref = validatorAddress_;
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();
validatorAddress_ = s;
return s;
}
}
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public com.google.protobuf.ByteString
getValidatorAddressBytes() {
java.lang.Object ref = validatorAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
validatorAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ACCUMULATED_FIELD_NUMBER = 2;
private cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission accumulated_;
/**
*
* accumulated is the accumulated commission of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission accumulated = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"accumulated\""];
*/
public boolean hasAccumulated() {
return accumulated_ != null;
}
/**
*
* accumulated is the accumulated commission of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission accumulated = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"accumulated\""];
*/
public cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission getAccumulated() {
return accumulated_ == null ? cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission.getDefaultInstance() : accumulated_;
}
/**
*
* accumulated is the accumulated commission of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission accumulated = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"accumulated\""];
*/
public cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommissionOrBuilder getAccumulatedOrBuilder() {
return getAccumulated();
}
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 (!getValidatorAddressBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, validatorAddress_);
}
if (accumulated_ != null) {
output.writeMessage(2, getAccumulated());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getValidatorAddressBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, validatorAddress_);
}
if (accumulated_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getAccumulated());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord)) {
return super.equals(obj);
}
cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord other = (cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord) obj;
boolean result = true;
result = result && getValidatorAddress()
.equals(other.getValidatorAddress());
result = result && (hasAccumulated() == other.hasAccumulated());
if (hasAccumulated()) {
result = result && getAccumulated()
.equals(other.getAccumulated());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VALIDATOR_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getValidatorAddress().hashCode();
if (hasAccumulated()) {
hash = (37 * hash) + ACCUMULATED_FIELD_NUMBER;
hash = (53 * hash) + getAccumulated().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord 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;
}
/**
*
* ValidatorAccumulatedCommissionRecord is used for import / export via genesis
* json.
*
*
* Protobuf type {@code cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord)
cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecordOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorAccumulatedCommissionRecord_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorAccumulatedCommissionRecord_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord.class, cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord.Builder.class);
}
// Construct using cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
validatorAddress_ = "";
if (accumulatedBuilder_ == null) {
accumulated_ = null;
} else {
accumulated_ = null;
accumulatedBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorAccumulatedCommissionRecord_descriptor;
}
@java.lang.Override
public cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord getDefaultInstanceForType() {
return cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord.getDefaultInstance();
}
@java.lang.Override
public cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord build() {
cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord buildPartial() {
cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord result = new cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord(this);
result.validatorAddress_ = validatorAddress_;
if (accumulatedBuilder_ == null) {
result.accumulated_ = accumulated_;
} else {
result.accumulated_ = accumulatedBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord) {
return mergeFrom((cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord other) {
if (other == cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord.getDefaultInstance()) return this;
if (!other.getValidatorAddress().isEmpty()) {
validatorAddress_ = other.validatorAddress_;
onChanged();
}
if (other.hasAccumulated()) {
mergeAccumulated(other.getAccumulated());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object validatorAddress_ = "";
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public java.lang.String getValidatorAddress() {
java.lang.Object ref = validatorAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
validatorAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public com.google.protobuf.ByteString
getValidatorAddressBytes() {
java.lang.Object ref = validatorAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
validatorAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public Builder setValidatorAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
validatorAddress_ = value;
onChanged();
return this;
}
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public Builder clearValidatorAddress() {
validatorAddress_ = getDefaultInstance().getValidatorAddress();
onChanged();
return this;
}
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public Builder setValidatorAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
validatorAddress_ = value;
onChanged();
return this;
}
private cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission accumulated_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission, cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission.Builder, cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommissionOrBuilder> accumulatedBuilder_;
/**
*
* accumulated is the accumulated commission of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission accumulated = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"accumulated\""];
*/
public boolean hasAccumulated() {
return accumulatedBuilder_ != null || accumulated_ != null;
}
/**
*
* accumulated is the accumulated commission of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission accumulated = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"accumulated\""];
*/
public cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission getAccumulated() {
if (accumulatedBuilder_ == null) {
return accumulated_ == null ? cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission.getDefaultInstance() : accumulated_;
} else {
return accumulatedBuilder_.getMessage();
}
}
/**
*
* accumulated is the accumulated commission of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission accumulated = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"accumulated\""];
*/
public Builder setAccumulated(cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission value) {
if (accumulatedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
accumulated_ = value;
onChanged();
} else {
accumulatedBuilder_.setMessage(value);
}
return this;
}
/**
*
* accumulated is the accumulated commission of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission accumulated = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"accumulated\""];
*/
public Builder setAccumulated(
cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission.Builder builderForValue) {
if (accumulatedBuilder_ == null) {
accumulated_ = builderForValue.build();
onChanged();
} else {
accumulatedBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* accumulated is the accumulated commission of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission accumulated = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"accumulated\""];
*/
public Builder mergeAccumulated(cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission value) {
if (accumulatedBuilder_ == null) {
if (accumulated_ != null) {
accumulated_ =
cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission.newBuilder(accumulated_).mergeFrom(value).buildPartial();
} else {
accumulated_ = value;
}
onChanged();
} else {
accumulatedBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* accumulated is the accumulated commission of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission accumulated = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"accumulated\""];
*/
public Builder clearAccumulated() {
if (accumulatedBuilder_ == null) {
accumulated_ = null;
onChanged();
} else {
accumulated_ = null;
accumulatedBuilder_ = null;
}
return this;
}
/**
*
* accumulated is the accumulated commission of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission accumulated = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"accumulated\""];
*/
public cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission.Builder getAccumulatedBuilder() {
onChanged();
return getAccumulatedFieldBuilder().getBuilder();
}
/**
*
* accumulated is the accumulated commission of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission accumulated = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"accumulated\""];
*/
public cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommissionOrBuilder getAccumulatedOrBuilder() {
if (accumulatedBuilder_ != null) {
return accumulatedBuilder_.getMessageOrBuilder();
} else {
return accumulated_ == null ?
cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission.getDefaultInstance() : accumulated_;
}
}
/**
*
* accumulated is the accumulated commission of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorAccumulatedCommission accumulated = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"accumulated\""];
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission, cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission.Builder, cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommissionOrBuilder>
getAccumulatedFieldBuilder() {
if (accumulatedBuilder_ == null) {
accumulatedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission, cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommission.Builder, cosmos.distribution.v1beta1.Distribution.ValidatorAccumulatedCommissionOrBuilder>(
getAccumulated(),
getParentForChildren(),
isClean());
accumulated_ = null;
}
return accumulatedBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord)
}
// @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord)
private static final cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord();
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ValidatorAccumulatedCommissionRecord parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ValidatorAccumulatedCommissionRecord(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ValidatorHistoricalRewardsRecordOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord)
com.google.protobuf.MessageOrBuilder {
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
java.lang.String getValidatorAddress();
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
com.google.protobuf.ByteString
getValidatorAddressBytes();
/**
*
* period defines the period the historical rewards apply to.
*
*
* uint64 period = 2;
*/
long getPeriod();
/**
*
* rewards defines the historical rewards of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorHistoricalRewards rewards = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""];
*/
boolean hasRewards();
/**
*
* rewards defines the historical rewards of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorHistoricalRewards rewards = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""];
*/
cosmos.distribution.v1beta1.Distribution.ValidatorHistoricalRewards getRewards();
/**
*
* rewards defines the historical rewards of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorHistoricalRewards rewards = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""];
*/
cosmos.distribution.v1beta1.Distribution.ValidatorHistoricalRewardsOrBuilder getRewardsOrBuilder();
}
/**
*
* ValidatorHistoricalRewardsRecord is used for import / export via genesis
* json.
*
*
* Protobuf type {@code cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord}
*/
public static final class ValidatorHistoricalRewardsRecord extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord)
ValidatorHistoricalRewardsRecordOrBuilder {
private static final long serialVersionUID = 0L;
// Use ValidatorHistoricalRewardsRecord.newBuilder() to construct.
private ValidatorHistoricalRewardsRecord(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ValidatorHistoricalRewardsRecord() {
validatorAddress_ = "";
period_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ValidatorHistoricalRewardsRecord(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
validatorAddress_ = s;
break;
}
case 16: {
period_ = input.readUInt64();
break;
}
case 26: {
cosmos.distribution.v1beta1.Distribution.ValidatorHistoricalRewards.Builder subBuilder = null;
if (rewards_ != null) {
subBuilder = rewards_.toBuilder();
}
rewards_ = input.readMessage(cosmos.distribution.v1beta1.Distribution.ValidatorHistoricalRewards.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(rewards_);
rewards_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorHistoricalRewardsRecord_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorHistoricalRewardsRecord_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord.class, cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord.Builder.class);
}
public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 1;
private volatile java.lang.Object validatorAddress_;
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public java.lang.String getValidatorAddress() {
java.lang.Object ref = validatorAddress_;
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();
validatorAddress_ = s;
return s;
}
}
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public com.google.protobuf.ByteString
getValidatorAddressBytes() {
java.lang.Object ref = validatorAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
validatorAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PERIOD_FIELD_NUMBER = 2;
private long period_;
/**
*
* period defines the period the historical rewards apply to.
*
*
* uint64 period = 2;
*/
public long getPeriod() {
return period_;
}
public static final int REWARDS_FIELD_NUMBER = 3;
private cosmos.distribution.v1beta1.Distribution.ValidatorHistoricalRewards rewards_;
/**
*
* rewards defines the historical rewards of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorHistoricalRewards rewards = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""];
*/
public boolean hasRewards() {
return rewards_ != null;
}
/**
*
* rewards defines the historical rewards of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorHistoricalRewards rewards = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""];
*/
public cosmos.distribution.v1beta1.Distribution.ValidatorHistoricalRewards getRewards() {
return rewards_ == null ? cosmos.distribution.v1beta1.Distribution.ValidatorHistoricalRewards.getDefaultInstance() : rewards_;
}
/**
*
* rewards defines the historical rewards of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorHistoricalRewards rewards = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""];
*/
public cosmos.distribution.v1beta1.Distribution.ValidatorHistoricalRewardsOrBuilder getRewardsOrBuilder() {
return getRewards();
}
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 (!getValidatorAddressBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, validatorAddress_);
}
if (period_ != 0L) {
output.writeUInt64(2, period_);
}
if (rewards_ != null) {
output.writeMessage(3, getRewards());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getValidatorAddressBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, validatorAddress_);
}
if (period_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, period_);
}
if (rewards_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getRewards());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord)) {
return super.equals(obj);
}
cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord other = (cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord) obj;
boolean result = true;
result = result && getValidatorAddress()
.equals(other.getValidatorAddress());
result = result && (getPeriod()
== other.getPeriod());
result = result && (hasRewards() == other.hasRewards());
if (hasRewards()) {
result = result && getRewards()
.equals(other.getRewards());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VALIDATOR_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getValidatorAddress().hashCode();
hash = (37 * hash) + PERIOD_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPeriod());
if (hasRewards()) {
hash = (37 * hash) + REWARDS_FIELD_NUMBER;
hash = (53 * hash) + getRewards().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord 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;
}
/**
*
* ValidatorHistoricalRewardsRecord is used for import / export via genesis
* json.
*
*
* Protobuf type {@code cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord)
cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecordOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorHistoricalRewardsRecord_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorHistoricalRewardsRecord_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord.class, cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord.Builder.class);
}
// Construct using cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
validatorAddress_ = "";
period_ = 0L;
if (rewardsBuilder_ == null) {
rewards_ = null;
} else {
rewards_ = null;
rewardsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorHistoricalRewardsRecord_descriptor;
}
@java.lang.Override
public cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord getDefaultInstanceForType() {
return cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord.getDefaultInstance();
}
@java.lang.Override
public cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord build() {
cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord buildPartial() {
cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord result = new cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord(this);
result.validatorAddress_ = validatorAddress_;
result.period_ = period_;
if (rewardsBuilder_ == null) {
result.rewards_ = rewards_;
} else {
result.rewards_ = rewardsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord) {
return mergeFrom((cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord other) {
if (other == cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord.getDefaultInstance()) return this;
if (!other.getValidatorAddress().isEmpty()) {
validatorAddress_ = other.validatorAddress_;
onChanged();
}
if (other.getPeriod() != 0L) {
setPeriod(other.getPeriod());
}
if (other.hasRewards()) {
mergeRewards(other.getRewards());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object validatorAddress_ = "";
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public java.lang.String getValidatorAddress() {
java.lang.Object ref = validatorAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
validatorAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public com.google.protobuf.ByteString
getValidatorAddressBytes() {
java.lang.Object ref = validatorAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
validatorAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public Builder setValidatorAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
validatorAddress_ = value;
onChanged();
return this;
}
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public Builder clearValidatorAddress() {
validatorAddress_ = getDefaultInstance().getValidatorAddress();
onChanged();
return this;
}
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public Builder setValidatorAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
validatorAddress_ = value;
onChanged();
return this;
}
private long period_ ;
/**
*
* period defines the period the historical rewards apply to.
*
*
* uint64 period = 2;
*/
public long getPeriod() {
return period_;
}
/**
*
* period defines the period the historical rewards apply to.
*
*
* uint64 period = 2;
*/
public Builder setPeriod(long value) {
period_ = value;
onChanged();
return this;
}
/**
*
* period defines the period the historical rewards apply to.
*
*
* uint64 period = 2;
*/
public Builder clearPeriod() {
period_ = 0L;
onChanged();
return this;
}
private cosmos.distribution.v1beta1.Distribution.ValidatorHistoricalRewards rewards_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.distribution.v1beta1.Distribution.ValidatorHistoricalRewards, cosmos.distribution.v1beta1.Distribution.ValidatorHistoricalRewards.Builder, cosmos.distribution.v1beta1.Distribution.ValidatorHistoricalRewardsOrBuilder> rewardsBuilder_;
/**
*
* rewards defines the historical rewards of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorHistoricalRewards rewards = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""];
*/
public boolean hasRewards() {
return rewardsBuilder_ != null || rewards_ != null;
}
/**
*
* rewards defines the historical rewards of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorHistoricalRewards rewards = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""];
*/
public cosmos.distribution.v1beta1.Distribution.ValidatorHistoricalRewards getRewards() {
if (rewardsBuilder_ == null) {
return rewards_ == null ? cosmos.distribution.v1beta1.Distribution.ValidatorHistoricalRewards.getDefaultInstance() : rewards_;
} else {
return rewardsBuilder_.getMessage();
}
}
/**
*
* rewards defines the historical rewards of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorHistoricalRewards rewards = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""];
*/
public Builder setRewards(cosmos.distribution.v1beta1.Distribution.ValidatorHistoricalRewards value) {
if (rewardsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
rewards_ = value;
onChanged();
} else {
rewardsBuilder_.setMessage(value);
}
return this;
}
/**
*
* rewards defines the historical rewards of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorHistoricalRewards rewards = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""];
*/
public Builder setRewards(
cosmos.distribution.v1beta1.Distribution.ValidatorHistoricalRewards.Builder builderForValue) {
if (rewardsBuilder_ == null) {
rewards_ = builderForValue.build();
onChanged();
} else {
rewardsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* rewards defines the historical rewards of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorHistoricalRewards rewards = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""];
*/
public Builder mergeRewards(cosmos.distribution.v1beta1.Distribution.ValidatorHistoricalRewards value) {
if (rewardsBuilder_ == null) {
if (rewards_ != null) {
rewards_ =
cosmos.distribution.v1beta1.Distribution.ValidatorHistoricalRewards.newBuilder(rewards_).mergeFrom(value).buildPartial();
} else {
rewards_ = value;
}
onChanged();
} else {
rewardsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* rewards defines the historical rewards of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorHistoricalRewards rewards = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""];
*/
public Builder clearRewards() {
if (rewardsBuilder_ == null) {
rewards_ = null;
onChanged();
} else {
rewards_ = null;
rewardsBuilder_ = null;
}
return this;
}
/**
*
* rewards defines the historical rewards of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorHistoricalRewards rewards = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""];
*/
public cosmos.distribution.v1beta1.Distribution.ValidatorHistoricalRewards.Builder getRewardsBuilder() {
onChanged();
return getRewardsFieldBuilder().getBuilder();
}
/**
*
* rewards defines the historical rewards of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorHistoricalRewards rewards = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""];
*/
public cosmos.distribution.v1beta1.Distribution.ValidatorHistoricalRewardsOrBuilder getRewardsOrBuilder() {
if (rewardsBuilder_ != null) {
return rewardsBuilder_.getMessageOrBuilder();
} else {
return rewards_ == null ?
cosmos.distribution.v1beta1.Distribution.ValidatorHistoricalRewards.getDefaultInstance() : rewards_;
}
}
/**
*
* rewards defines the historical rewards of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorHistoricalRewards rewards = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""];
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.distribution.v1beta1.Distribution.ValidatorHistoricalRewards, cosmos.distribution.v1beta1.Distribution.ValidatorHistoricalRewards.Builder, cosmos.distribution.v1beta1.Distribution.ValidatorHistoricalRewardsOrBuilder>
getRewardsFieldBuilder() {
if (rewardsBuilder_ == null) {
rewardsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmos.distribution.v1beta1.Distribution.ValidatorHistoricalRewards, cosmos.distribution.v1beta1.Distribution.ValidatorHistoricalRewards.Builder, cosmos.distribution.v1beta1.Distribution.ValidatorHistoricalRewardsOrBuilder>(
getRewards(),
getParentForChildren(),
isClean());
rewards_ = null;
}
return rewardsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord)
}
// @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord)
private static final cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord();
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ValidatorHistoricalRewardsRecord parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ValidatorHistoricalRewardsRecord(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ValidatorCurrentRewardsRecordOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord)
com.google.protobuf.MessageOrBuilder {
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
java.lang.String getValidatorAddress();
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
com.google.protobuf.ByteString
getValidatorAddressBytes();
/**
*
* rewards defines the current rewards of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorCurrentRewards rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""];
*/
boolean hasRewards();
/**
*
* rewards defines the current rewards of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorCurrentRewards rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""];
*/
cosmos.distribution.v1beta1.Distribution.ValidatorCurrentRewards getRewards();
/**
*
* rewards defines the current rewards of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorCurrentRewards rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""];
*/
cosmos.distribution.v1beta1.Distribution.ValidatorCurrentRewardsOrBuilder getRewardsOrBuilder();
}
/**
*
* ValidatorCurrentRewardsRecord is used for import / export via genesis json.
*
*
* Protobuf type {@code cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord}
*/
public static final class ValidatorCurrentRewardsRecord extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord)
ValidatorCurrentRewardsRecordOrBuilder {
private static final long serialVersionUID = 0L;
// Use ValidatorCurrentRewardsRecord.newBuilder() to construct.
private ValidatorCurrentRewardsRecord(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ValidatorCurrentRewardsRecord() {
validatorAddress_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ValidatorCurrentRewardsRecord(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
validatorAddress_ = s;
break;
}
case 18: {
cosmos.distribution.v1beta1.Distribution.ValidatorCurrentRewards.Builder subBuilder = null;
if (rewards_ != null) {
subBuilder = rewards_.toBuilder();
}
rewards_ = input.readMessage(cosmos.distribution.v1beta1.Distribution.ValidatorCurrentRewards.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(rewards_);
rewards_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorCurrentRewardsRecord_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorCurrentRewardsRecord_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord.class, cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord.Builder.class);
}
public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 1;
private volatile java.lang.Object validatorAddress_;
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public java.lang.String getValidatorAddress() {
java.lang.Object ref = validatorAddress_;
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();
validatorAddress_ = s;
return s;
}
}
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public com.google.protobuf.ByteString
getValidatorAddressBytes() {
java.lang.Object ref = validatorAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
validatorAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REWARDS_FIELD_NUMBER = 2;
private cosmos.distribution.v1beta1.Distribution.ValidatorCurrentRewards rewards_;
/**
*
* rewards defines the current rewards of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorCurrentRewards rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""];
*/
public boolean hasRewards() {
return rewards_ != null;
}
/**
*
* rewards defines the current rewards of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorCurrentRewards rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""];
*/
public cosmos.distribution.v1beta1.Distribution.ValidatorCurrentRewards getRewards() {
return rewards_ == null ? cosmos.distribution.v1beta1.Distribution.ValidatorCurrentRewards.getDefaultInstance() : rewards_;
}
/**
*
* rewards defines the current rewards of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorCurrentRewards rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""];
*/
public cosmos.distribution.v1beta1.Distribution.ValidatorCurrentRewardsOrBuilder getRewardsOrBuilder() {
return getRewards();
}
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 (!getValidatorAddressBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, validatorAddress_);
}
if (rewards_ != null) {
output.writeMessage(2, getRewards());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getValidatorAddressBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, validatorAddress_);
}
if (rewards_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getRewards());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord)) {
return super.equals(obj);
}
cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord other = (cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord) obj;
boolean result = true;
result = result && getValidatorAddress()
.equals(other.getValidatorAddress());
result = result && (hasRewards() == other.hasRewards());
if (hasRewards()) {
result = result && getRewards()
.equals(other.getRewards());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VALIDATOR_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getValidatorAddress().hashCode();
if (hasRewards()) {
hash = (37 * hash) + REWARDS_FIELD_NUMBER;
hash = (53 * hash) + getRewards().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord 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;
}
/**
*
* ValidatorCurrentRewardsRecord is used for import / export via genesis json.
*
*
* Protobuf type {@code cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord)
cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecordOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorCurrentRewardsRecord_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorCurrentRewardsRecord_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord.class, cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord.Builder.class);
}
// Construct using cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
validatorAddress_ = "";
if (rewardsBuilder_ == null) {
rewards_ = null;
} else {
rewards_ = null;
rewardsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorCurrentRewardsRecord_descriptor;
}
@java.lang.Override
public cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord getDefaultInstanceForType() {
return cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord.getDefaultInstance();
}
@java.lang.Override
public cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord build() {
cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord buildPartial() {
cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord result = new cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord(this);
result.validatorAddress_ = validatorAddress_;
if (rewardsBuilder_ == null) {
result.rewards_ = rewards_;
} else {
result.rewards_ = rewardsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord) {
return mergeFrom((cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord other) {
if (other == cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord.getDefaultInstance()) return this;
if (!other.getValidatorAddress().isEmpty()) {
validatorAddress_ = other.validatorAddress_;
onChanged();
}
if (other.hasRewards()) {
mergeRewards(other.getRewards());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object validatorAddress_ = "";
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public java.lang.String getValidatorAddress() {
java.lang.Object ref = validatorAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
validatorAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public com.google.protobuf.ByteString
getValidatorAddressBytes() {
java.lang.Object ref = validatorAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
validatorAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public Builder setValidatorAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
validatorAddress_ = value;
onChanged();
return this;
}
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public Builder clearValidatorAddress() {
validatorAddress_ = getDefaultInstance().getValidatorAddress();
onChanged();
return this;
}
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public Builder setValidatorAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
validatorAddress_ = value;
onChanged();
return this;
}
private cosmos.distribution.v1beta1.Distribution.ValidatorCurrentRewards rewards_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.distribution.v1beta1.Distribution.ValidatorCurrentRewards, cosmos.distribution.v1beta1.Distribution.ValidatorCurrentRewards.Builder, cosmos.distribution.v1beta1.Distribution.ValidatorCurrentRewardsOrBuilder> rewardsBuilder_;
/**
*
* rewards defines the current rewards of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorCurrentRewards rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""];
*/
public boolean hasRewards() {
return rewardsBuilder_ != null || rewards_ != null;
}
/**
*
* rewards defines the current rewards of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorCurrentRewards rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""];
*/
public cosmos.distribution.v1beta1.Distribution.ValidatorCurrentRewards getRewards() {
if (rewardsBuilder_ == null) {
return rewards_ == null ? cosmos.distribution.v1beta1.Distribution.ValidatorCurrentRewards.getDefaultInstance() : rewards_;
} else {
return rewardsBuilder_.getMessage();
}
}
/**
*
* rewards defines the current rewards of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorCurrentRewards rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""];
*/
public Builder setRewards(cosmos.distribution.v1beta1.Distribution.ValidatorCurrentRewards value) {
if (rewardsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
rewards_ = value;
onChanged();
} else {
rewardsBuilder_.setMessage(value);
}
return this;
}
/**
*
* rewards defines the current rewards of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorCurrentRewards rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""];
*/
public Builder setRewards(
cosmos.distribution.v1beta1.Distribution.ValidatorCurrentRewards.Builder builderForValue) {
if (rewardsBuilder_ == null) {
rewards_ = builderForValue.build();
onChanged();
} else {
rewardsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* rewards defines the current rewards of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorCurrentRewards rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""];
*/
public Builder mergeRewards(cosmos.distribution.v1beta1.Distribution.ValidatorCurrentRewards value) {
if (rewardsBuilder_ == null) {
if (rewards_ != null) {
rewards_ =
cosmos.distribution.v1beta1.Distribution.ValidatorCurrentRewards.newBuilder(rewards_).mergeFrom(value).buildPartial();
} else {
rewards_ = value;
}
onChanged();
} else {
rewardsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* rewards defines the current rewards of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorCurrentRewards rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""];
*/
public Builder clearRewards() {
if (rewardsBuilder_ == null) {
rewards_ = null;
onChanged();
} else {
rewards_ = null;
rewardsBuilder_ = null;
}
return this;
}
/**
*
* rewards defines the current rewards of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorCurrentRewards rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""];
*/
public cosmos.distribution.v1beta1.Distribution.ValidatorCurrentRewards.Builder getRewardsBuilder() {
onChanged();
return getRewardsFieldBuilder().getBuilder();
}
/**
*
* rewards defines the current rewards of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorCurrentRewards rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""];
*/
public cosmos.distribution.v1beta1.Distribution.ValidatorCurrentRewardsOrBuilder getRewardsOrBuilder() {
if (rewardsBuilder_ != null) {
return rewardsBuilder_.getMessageOrBuilder();
} else {
return rewards_ == null ?
cosmos.distribution.v1beta1.Distribution.ValidatorCurrentRewards.getDefaultInstance() : rewards_;
}
}
/**
*
* rewards defines the current rewards of a validator.
*
*
* .cosmos.distribution.v1beta1.ValidatorCurrentRewards rewards = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"rewards\""];
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.distribution.v1beta1.Distribution.ValidatorCurrentRewards, cosmos.distribution.v1beta1.Distribution.ValidatorCurrentRewards.Builder, cosmos.distribution.v1beta1.Distribution.ValidatorCurrentRewardsOrBuilder>
getRewardsFieldBuilder() {
if (rewardsBuilder_ == null) {
rewardsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmos.distribution.v1beta1.Distribution.ValidatorCurrentRewards, cosmos.distribution.v1beta1.Distribution.ValidatorCurrentRewards.Builder, cosmos.distribution.v1beta1.Distribution.ValidatorCurrentRewardsOrBuilder>(
getRewards(),
getParentForChildren(),
isClean());
rewards_ = null;
}
return rewardsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord)
}
// @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord)
private static final cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord();
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ValidatorCurrentRewardsRecord parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ValidatorCurrentRewardsRecord(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DelegatorStartingInfoRecordOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.DelegatorStartingInfoRecord)
com.google.protobuf.MessageOrBuilder {
/**
*
* delegator_address is the address of the delegator.
*
*
* string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""];
*/
java.lang.String getDelegatorAddress();
/**
*
* delegator_address is the address of the delegator.
*
*
* string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""];
*/
com.google.protobuf.ByteString
getDelegatorAddressBytes();
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
java.lang.String getValidatorAddress();
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
com.google.protobuf.ByteString
getValidatorAddressBytes();
/**
*
* starting_info defines the starting info of a delegator.
*
*
* .cosmos.distribution.v1beta1.DelegatorStartingInfo starting_info = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"starting_info\""];
*/
boolean hasStartingInfo();
/**
*
* starting_info defines the starting info of a delegator.
*
*
* .cosmos.distribution.v1beta1.DelegatorStartingInfo starting_info = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"starting_info\""];
*/
cosmos.distribution.v1beta1.Distribution.DelegatorStartingInfo getStartingInfo();
/**
*
* starting_info defines the starting info of a delegator.
*
*
* .cosmos.distribution.v1beta1.DelegatorStartingInfo starting_info = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"starting_info\""];
*/
cosmos.distribution.v1beta1.Distribution.DelegatorStartingInfoOrBuilder getStartingInfoOrBuilder();
}
/**
*
* DelegatorStartingInfoRecord used for import / export via genesis json.
*
*
* Protobuf type {@code cosmos.distribution.v1beta1.DelegatorStartingInfoRecord}
*/
public static final class DelegatorStartingInfoRecord extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.DelegatorStartingInfoRecord)
DelegatorStartingInfoRecordOrBuilder {
private static final long serialVersionUID = 0L;
// Use DelegatorStartingInfoRecord.newBuilder() to construct.
private DelegatorStartingInfoRecord(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DelegatorStartingInfoRecord() {
delegatorAddress_ = "";
validatorAddress_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DelegatorStartingInfoRecord(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
delegatorAddress_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
validatorAddress_ = s;
break;
}
case 26: {
cosmos.distribution.v1beta1.Distribution.DelegatorStartingInfo.Builder subBuilder = null;
if (startingInfo_ != null) {
subBuilder = startingInfo_.toBuilder();
}
startingInfo_ = input.readMessage(cosmos.distribution.v1beta1.Distribution.DelegatorStartingInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(startingInfo_);
startingInfo_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_DelegatorStartingInfoRecord_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_DelegatorStartingInfoRecord_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord.class, cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord.Builder.class);
}
public static final int DELEGATOR_ADDRESS_FIELD_NUMBER = 1;
private volatile java.lang.Object delegatorAddress_;
/**
*
* delegator_address is the address of the delegator.
*
*
* string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""];
*/
public java.lang.String getDelegatorAddress() {
java.lang.Object ref = delegatorAddress_;
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();
delegatorAddress_ = s;
return s;
}
}
/**
*
* delegator_address is the address of the delegator.
*
*
* string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""];
*/
public com.google.protobuf.ByteString
getDelegatorAddressBytes() {
java.lang.Object ref = delegatorAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
delegatorAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 2;
private volatile java.lang.Object validatorAddress_;
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public java.lang.String getValidatorAddress() {
java.lang.Object ref = validatorAddress_;
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();
validatorAddress_ = s;
return s;
}
}
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public com.google.protobuf.ByteString
getValidatorAddressBytes() {
java.lang.Object ref = validatorAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
validatorAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STARTING_INFO_FIELD_NUMBER = 3;
private cosmos.distribution.v1beta1.Distribution.DelegatorStartingInfo startingInfo_;
/**
*
* starting_info defines the starting info of a delegator.
*
*
* .cosmos.distribution.v1beta1.DelegatorStartingInfo starting_info = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"starting_info\""];
*/
public boolean hasStartingInfo() {
return startingInfo_ != null;
}
/**
*
* starting_info defines the starting info of a delegator.
*
*
* .cosmos.distribution.v1beta1.DelegatorStartingInfo starting_info = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"starting_info\""];
*/
public cosmos.distribution.v1beta1.Distribution.DelegatorStartingInfo getStartingInfo() {
return startingInfo_ == null ? cosmos.distribution.v1beta1.Distribution.DelegatorStartingInfo.getDefaultInstance() : startingInfo_;
}
/**
*
* starting_info defines the starting info of a delegator.
*
*
* .cosmos.distribution.v1beta1.DelegatorStartingInfo starting_info = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"starting_info\""];
*/
public cosmos.distribution.v1beta1.Distribution.DelegatorStartingInfoOrBuilder getStartingInfoOrBuilder() {
return getStartingInfo();
}
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 (!getDelegatorAddressBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delegatorAddress_);
}
if (!getValidatorAddressBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, validatorAddress_);
}
if (startingInfo_ != null) {
output.writeMessage(3, getStartingInfo());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getDelegatorAddressBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delegatorAddress_);
}
if (!getValidatorAddressBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, validatorAddress_);
}
if (startingInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getStartingInfo());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord)) {
return super.equals(obj);
}
cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord other = (cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord) obj;
boolean result = true;
result = result && getDelegatorAddress()
.equals(other.getDelegatorAddress());
result = result && getValidatorAddress()
.equals(other.getValidatorAddress());
result = result && (hasStartingInfo() == other.hasStartingInfo());
if (hasStartingInfo()) {
result = result && getStartingInfo()
.equals(other.getStartingInfo());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + DELEGATOR_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getDelegatorAddress().hashCode();
hash = (37 * hash) + VALIDATOR_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getValidatorAddress().hashCode();
if (hasStartingInfo()) {
hash = (37 * hash) + STARTING_INFO_FIELD_NUMBER;
hash = (53 * hash) + getStartingInfo().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord 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;
}
/**
*
* DelegatorStartingInfoRecord used for import / export via genesis json.
*
*
* Protobuf type {@code cosmos.distribution.v1beta1.DelegatorStartingInfoRecord}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.DelegatorStartingInfoRecord)
cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecordOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_DelegatorStartingInfoRecord_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_DelegatorStartingInfoRecord_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord.class, cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord.Builder.class);
}
// Construct using cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
delegatorAddress_ = "";
validatorAddress_ = "";
if (startingInfoBuilder_ == null) {
startingInfo_ = null;
} else {
startingInfo_ = null;
startingInfoBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_DelegatorStartingInfoRecord_descriptor;
}
@java.lang.Override
public cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord getDefaultInstanceForType() {
return cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord.getDefaultInstance();
}
@java.lang.Override
public cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord build() {
cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord buildPartial() {
cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord result = new cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord(this);
result.delegatorAddress_ = delegatorAddress_;
result.validatorAddress_ = validatorAddress_;
if (startingInfoBuilder_ == null) {
result.startingInfo_ = startingInfo_;
} else {
result.startingInfo_ = startingInfoBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord) {
return mergeFrom((cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord other) {
if (other == cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord.getDefaultInstance()) return this;
if (!other.getDelegatorAddress().isEmpty()) {
delegatorAddress_ = other.delegatorAddress_;
onChanged();
}
if (!other.getValidatorAddress().isEmpty()) {
validatorAddress_ = other.validatorAddress_;
onChanged();
}
if (other.hasStartingInfo()) {
mergeStartingInfo(other.getStartingInfo());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object delegatorAddress_ = "";
/**
*
* delegator_address is the address of the delegator.
*
*
* string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""];
*/
public java.lang.String getDelegatorAddress() {
java.lang.Object ref = delegatorAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
delegatorAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* delegator_address is the address of the delegator.
*
*
* string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""];
*/
public com.google.protobuf.ByteString
getDelegatorAddressBytes() {
java.lang.Object ref = delegatorAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
delegatorAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* delegator_address is the address of the delegator.
*
*
* string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""];
*/
public Builder setDelegatorAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
delegatorAddress_ = value;
onChanged();
return this;
}
/**
*
* delegator_address is the address of the delegator.
*
*
* string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""];
*/
public Builder clearDelegatorAddress() {
delegatorAddress_ = getDefaultInstance().getDelegatorAddress();
onChanged();
return this;
}
/**
*
* delegator_address is the address of the delegator.
*
*
* string delegator_address = 1 [(.gogoproto.moretags) = "yaml:\"delegator_address\""];
*/
public Builder setDelegatorAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
delegatorAddress_ = value;
onChanged();
return this;
}
private java.lang.Object validatorAddress_ = "";
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public java.lang.String getValidatorAddress() {
java.lang.Object ref = validatorAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
validatorAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public com.google.protobuf.ByteString
getValidatorAddressBytes() {
java.lang.Object ref = validatorAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
validatorAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public Builder setValidatorAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
validatorAddress_ = value;
onChanged();
return this;
}
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public Builder clearValidatorAddress() {
validatorAddress_ = getDefaultInstance().getValidatorAddress();
onChanged();
return this;
}
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 2 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public Builder setValidatorAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
validatorAddress_ = value;
onChanged();
return this;
}
private cosmos.distribution.v1beta1.Distribution.DelegatorStartingInfo startingInfo_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.distribution.v1beta1.Distribution.DelegatorStartingInfo, cosmos.distribution.v1beta1.Distribution.DelegatorStartingInfo.Builder, cosmos.distribution.v1beta1.Distribution.DelegatorStartingInfoOrBuilder> startingInfoBuilder_;
/**
*
* starting_info defines the starting info of a delegator.
*
*
* .cosmos.distribution.v1beta1.DelegatorStartingInfo starting_info = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"starting_info\""];
*/
public boolean hasStartingInfo() {
return startingInfoBuilder_ != null || startingInfo_ != null;
}
/**
*
* starting_info defines the starting info of a delegator.
*
*
* .cosmos.distribution.v1beta1.DelegatorStartingInfo starting_info = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"starting_info\""];
*/
public cosmos.distribution.v1beta1.Distribution.DelegatorStartingInfo getStartingInfo() {
if (startingInfoBuilder_ == null) {
return startingInfo_ == null ? cosmos.distribution.v1beta1.Distribution.DelegatorStartingInfo.getDefaultInstance() : startingInfo_;
} else {
return startingInfoBuilder_.getMessage();
}
}
/**
*
* starting_info defines the starting info of a delegator.
*
*
* .cosmos.distribution.v1beta1.DelegatorStartingInfo starting_info = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"starting_info\""];
*/
public Builder setStartingInfo(cosmos.distribution.v1beta1.Distribution.DelegatorStartingInfo value) {
if (startingInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
startingInfo_ = value;
onChanged();
} else {
startingInfoBuilder_.setMessage(value);
}
return this;
}
/**
*
* starting_info defines the starting info of a delegator.
*
*
* .cosmos.distribution.v1beta1.DelegatorStartingInfo starting_info = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"starting_info\""];
*/
public Builder setStartingInfo(
cosmos.distribution.v1beta1.Distribution.DelegatorStartingInfo.Builder builderForValue) {
if (startingInfoBuilder_ == null) {
startingInfo_ = builderForValue.build();
onChanged();
} else {
startingInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* starting_info defines the starting info of a delegator.
*
*
* .cosmos.distribution.v1beta1.DelegatorStartingInfo starting_info = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"starting_info\""];
*/
public Builder mergeStartingInfo(cosmos.distribution.v1beta1.Distribution.DelegatorStartingInfo value) {
if (startingInfoBuilder_ == null) {
if (startingInfo_ != null) {
startingInfo_ =
cosmos.distribution.v1beta1.Distribution.DelegatorStartingInfo.newBuilder(startingInfo_).mergeFrom(value).buildPartial();
} else {
startingInfo_ = value;
}
onChanged();
} else {
startingInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* starting_info defines the starting info of a delegator.
*
*
* .cosmos.distribution.v1beta1.DelegatorStartingInfo starting_info = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"starting_info\""];
*/
public Builder clearStartingInfo() {
if (startingInfoBuilder_ == null) {
startingInfo_ = null;
onChanged();
} else {
startingInfo_ = null;
startingInfoBuilder_ = null;
}
return this;
}
/**
*
* starting_info defines the starting info of a delegator.
*
*
* .cosmos.distribution.v1beta1.DelegatorStartingInfo starting_info = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"starting_info\""];
*/
public cosmos.distribution.v1beta1.Distribution.DelegatorStartingInfo.Builder getStartingInfoBuilder() {
onChanged();
return getStartingInfoFieldBuilder().getBuilder();
}
/**
*
* starting_info defines the starting info of a delegator.
*
*
* .cosmos.distribution.v1beta1.DelegatorStartingInfo starting_info = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"starting_info\""];
*/
public cosmos.distribution.v1beta1.Distribution.DelegatorStartingInfoOrBuilder getStartingInfoOrBuilder() {
if (startingInfoBuilder_ != null) {
return startingInfoBuilder_.getMessageOrBuilder();
} else {
return startingInfo_ == null ?
cosmos.distribution.v1beta1.Distribution.DelegatorStartingInfo.getDefaultInstance() : startingInfo_;
}
}
/**
*
* starting_info defines the starting info of a delegator.
*
*
* .cosmos.distribution.v1beta1.DelegatorStartingInfo starting_info = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"starting_info\""];
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.distribution.v1beta1.Distribution.DelegatorStartingInfo, cosmos.distribution.v1beta1.Distribution.DelegatorStartingInfo.Builder, cosmos.distribution.v1beta1.Distribution.DelegatorStartingInfoOrBuilder>
getStartingInfoFieldBuilder() {
if (startingInfoBuilder_ == null) {
startingInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmos.distribution.v1beta1.Distribution.DelegatorStartingInfo, cosmos.distribution.v1beta1.Distribution.DelegatorStartingInfo.Builder, cosmos.distribution.v1beta1.Distribution.DelegatorStartingInfoOrBuilder>(
getStartingInfo(),
getParentForChildren(),
isClean());
startingInfo_ = null;
}
return startingInfoBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.DelegatorStartingInfoRecord)
}
// @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.DelegatorStartingInfoRecord)
private static final cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord();
}
public static cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DelegatorStartingInfoRecord parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DelegatorStartingInfoRecord(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ValidatorSlashEventRecordOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.ValidatorSlashEventRecord)
com.google.protobuf.MessageOrBuilder {
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
java.lang.String getValidatorAddress();
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
com.google.protobuf.ByteString
getValidatorAddressBytes();
/**
*
* height defines the block height at which the slash event occured.
*
*
* uint64 height = 2;
*/
long getHeight();
/**
*
* period is the period of the slash event.
*
*
* uint64 period = 3;
*/
long getPeriod();
/**
*
* validator_slash_event describes the slash event.
*
*
* .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_event = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"event\""];
*/
boolean hasValidatorSlashEvent();
/**
*
* validator_slash_event describes the slash event.
*
*
* .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_event = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"event\""];
*/
cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent getValidatorSlashEvent();
/**
*
* validator_slash_event describes the slash event.
*
*
* .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_event = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"event\""];
*/
cosmos.distribution.v1beta1.Distribution.ValidatorSlashEventOrBuilder getValidatorSlashEventOrBuilder();
}
/**
*
* ValidatorSlashEventRecord is used for import / export via genesis json.
*
*
* Protobuf type {@code cosmos.distribution.v1beta1.ValidatorSlashEventRecord}
*/
public static final class ValidatorSlashEventRecord extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.ValidatorSlashEventRecord)
ValidatorSlashEventRecordOrBuilder {
private static final long serialVersionUID = 0L;
// Use ValidatorSlashEventRecord.newBuilder() to construct.
private ValidatorSlashEventRecord(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ValidatorSlashEventRecord() {
validatorAddress_ = "";
height_ = 0L;
period_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ValidatorSlashEventRecord(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
validatorAddress_ = s;
break;
}
case 16: {
height_ = input.readUInt64();
break;
}
case 24: {
period_ = input.readUInt64();
break;
}
case 34: {
cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent.Builder subBuilder = null;
if (validatorSlashEvent_ != null) {
subBuilder = validatorSlashEvent_.toBuilder();
}
validatorSlashEvent_ = input.readMessage(cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(validatorSlashEvent_);
validatorSlashEvent_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorSlashEventRecord_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorSlashEventRecord_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord.class, cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord.Builder.class);
}
public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 1;
private volatile java.lang.Object validatorAddress_;
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public java.lang.String getValidatorAddress() {
java.lang.Object ref = validatorAddress_;
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();
validatorAddress_ = s;
return s;
}
}
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public com.google.protobuf.ByteString
getValidatorAddressBytes() {
java.lang.Object ref = validatorAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
validatorAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HEIGHT_FIELD_NUMBER = 2;
private long height_;
/**
*
* height defines the block height at which the slash event occured.
*
*
* uint64 height = 2;
*/
public long getHeight() {
return height_;
}
public static final int PERIOD_FIELD_NUMBER = 3;
private long period_;
/**
*
* period is the period of the slash event.
*
*
* uint64 period = 3;
*/
public long getPeriod() {
return period_;
}
public static final int VALIDATOR_SLASH_EVENT_FIELD_NUMBER = 4;
private cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent validatorSlashEvent_;
/**
*
* validator_slash_event describes the slash event.
*
*
* .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_event = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"event\""];
*/
public boolean hasValidatorSlashEvent() {
return validatorSlashEvent_ != null;
}
/**
*
* validator_slash_event describes the slash event.
*
*
* .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_event = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"event\""];
*/
public cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent getValidatorSlashEvent() {
return validatorSlashEvent_ == null ? cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent.getDefaultInstance() : validatorSlashEvent_;
}
/**
*
* validator_slash_event describes the slash event.
*
*
* .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_event = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"event\""];
*/
public cosmos.distribution.v1beta1.Distribution.ValidatorSlashEventOrBuilder getValidatorSlashEventOrBuilder() {
return getValidatorSlashEvent();
}
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 (!getValidatorAddressBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, validatorAddress_);
}
if (height_ != 0L) {
output.writeUInt64(2, height_);
}
if (period_ != 0L) {
output.writeUInt64(3, period_);
}
if (validatorSlashEvent_ != null) {
output.writeMessage(4, getValidatorSlashEvent());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getValidatorAddressBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, validatorAddress_);
}
if (height_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, height_);
}
if (period_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, period_);
}
if (validatorSlashEvent_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getValidatorSlashEvent());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord)) {
return super.equals(obj);
}
cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord other = (cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord) obj;
boolean result = true;
result = result && getValidatorAddress()
.equals(other.getValidatorAddress());
result = result && (getHeight()
== other.getHeight());
result = result && (getPeriod()
== other.getPeriod());
result = result && (hasValidatorSlashEvent() == other.hasValidatorSlashEvent());
if (hasValidatorSlashEvent()) {
result = result && getValidatorSlashEvent()
.equals(other.getValidatorSlashEvent());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VALIDATOR_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getValidatorAddress().hashCode();
hash = (37 * hash) + HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getHeight());
hash = (37 * hash) + PERIOD_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPeriod());
if (hasValidatorSlashEvent()) {
hash = (37 * hash) + VALIDATOR_SLASH_EVENT_FIELD_NUMBER;
hash = (53 * hash) + getValidatorSlashEvent().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord 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;
}
/**
*
* ValidatorSlashEventRecord is used for import / export via genesis json.
*
*
* Protobuf type {@code cosmos.distribution.v1beta1.ValidatorSlashEventRecord}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.ValidatorSlashEventRecord)
cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecordOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorSlashEventRecord_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorSlashEventRecord_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord.class, cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord.Builder.class);
}
// Construct using cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
validatorAddress_ = "";
height_ = 0L;
period_ = 0L;
if (validatorSlashEventBuilder_ == null) {
validatorSlashEvent_ = null;
} else {
validatorSlashEvent_ = null;
validatorSlashEventBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_ValidatorSlashEventRecord_descriptor;
}
@java.lang.Override
public cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord getDefaultInstanceForType() {
return cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord.getDefaultInstance();
}
@java.lang.Override
public cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord build() {
cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord buildPartial() {
cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord result = new cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord(this);
result.validatorAddress_ = validatorAddress_;
result.height_ = height_;
result.period_ = period_;
if (validatorSlashEventBuilder_ == null) {
result.validatorSlashEvent_ = validatorSlashEvent_;
} else {
result.validatorSlashEvent_ = validatorSlashEventBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord) {
return mergeFrom((cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord other) {
if (other == cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord.getDefaultInstance()) return this;
if (!other.getValidatorAddress().isEmpty()) {
validatorAddress_ = other.validatorAddress_;
onChanged();
}
if (other.getHeight() != 0L) {
setHeight(other.getHeight());
}
if (other.getPeriod() != 0L) {
setPeriod(other.getPeriod());
}
if (other.hasValidatorSlashEvent()) {
mergeValidatorSlashEvent(other.getValidatorSlashEvent());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object validatorAddress_ = "";
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public java.lang.String getValidatorAddress() {
java.lang.Object ref = validatorAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
validatorAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public com.google.protobuf.ByteString
getValidatorAddressBytes() {
java.lang.Object ref = validatorAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
validatorAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public Builder setValidatorAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
validatorAddress_ = value;
onChanged();
return this;
}
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public Builder clearValidatorAddress() {
validatorAddress_ = getDefaultInstance().getValidatorAddress();
onChanged();
return this;
}
/**
*
* validator_address is the address of the validator.
*
*
* string validator_address = 1 [(.gogoproto.moretags) = "yaml:\"validator_address\""];
*/
public Builder setValidatorAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
validatorAddress_ = value;
onChanged();
return this;
}
private long height_ ;
/**
*
* height defines the block height at which the slash event occured.
*
*
* uint64 height = 2;
*/
public long getHeight() {
return height_;
}
/**
*
* height defines the block height at which the slash event occured.
*
*
* uint64 height = 2;
*/
public Builder setHeight(long value) {
height_ = value;
onChanged();
return this;
}
/**
*
* height defines the block height at which the slash event occured.
*
*
* uint64 height = 2;
*/
public Builder clearHeight() {
height_ = 0L;
onChanged();
return this;
}
private long period_ ;
/**
*
* period is the period of the slash event.
*
*
* uint64 period = 3;
*/
public long getPeriod() {
return period_;
}
/**
*
* period is the period of the slash event.
*
*
* uint64 period = 3;
*/
public Builder setPeriod(long value) {
period_ = value;
onChanged();
return this;
}
/**
*
* period is the period of the slash event.
*
*
* uint64 period = 3;
*/
public Builder clearPeriod() {
period_ = 0L;
onChanged();
return this;
}
private cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent validatorSlashEvent_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent, cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent.Builder, cosmos.distribution.v1beta1.Distribution.ValidatorSlashEventOrBuilder> validatorSlashEventBuilder_;
/**
*
* validator_slash_event describes the slash event.
*
*
* .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_event = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"event\""];
*/
public boolean hasValidatorSlashEvent() {
return validatorSlashEventBuilder_ != null || validatorSlashEvent_ != null;
}
/**
*
* validator_slash_event describes the slash event.
*
*
* .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_event = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"event\""];
*/
public cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent getValidatorSlashEvent() {
if (validatorSlashEventBuilder_ == null) {
return validatorSlashEvent_ == null ? cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent.getDefaultInstance() : validatorSlashEvent_;
} else {
return validatorSlashEventBuilder_.getMessage();
}
}
/**
*
* validator_slash_event describes the slash event.
*
*
* .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_event = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"event\""];
*/
public Builder setValidatorSlashEvent(cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent value) {
if (validatorSlashEventBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
validatorSlashEvent_ = value;
onChanged();
} else {
validatorSlashEventBuilder_.setMessage(value);
}
return this;
}
/**
*
* validator_slash_event describes the slash event.
*
*
* .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_event = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"event\""];
*/
public Builder setValidatorSlashEvent(
cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent.Builder builderForValue) {
if (validatorSlashEventBuilder_ == null) {
validatorSlashEvent_ = builderForValue.build();
onChanged();
} else {
validatorSlashEventBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* validator_slash_event describes the slash event.
*
*
* .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_event = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"event\""];
*/
public Builder mergeValidatorSlashEvent(cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent value) {
if (validatorSlashEventBuilder_ == null) {
if (validatorSlashEvent_ != null) {
validatorSlashEvent_ =
cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent.newBuilder(validatorSlashEvent_).mergeFrom(value).buildPartial();
} else {
validatorSlashEvent_ = value;
}
onChanged();
} else {
validatorSlashEventBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* validator_slash_event describes the slash event.
*
*
* .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_event = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"event\""];
*/
public Builder clearValidatorSlashEvent() {
if (validatorSlashEventBuilder_ == null) {
validatorSlashEvent_ = null;
onChanged();
} else {
validatorSlashEvent_ = null;
validatorSlashEventBuilder_ = null;
}
return this;
}
/**
*
* validator_slash_event describes the slash event.
*
*
* .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_event = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"event\""];
*/
public cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent.Builder getValidatorSlashEventBuilder() {
onChanged();
return getValidatorSlashEventFieldBuilder().getBuilder();
}
/**
*
* validator_slash_event describes the slash event.
*
*
* .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_event = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"event\""];
*/
public cosmos.distribution.v1beta1.Distribution.ValidatorSlashEventOrBuilder getValidatorSlashEventOrBuilder() {
if (validatorSlashEventBuilder_ != null) {
return validatorSlashEventBuilder_.getMessageOrBuilder();
} else {
return validatorSlashEvent_ == null ?
cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent.getDefaultInstance() : validatorSlashEvent_;
}
}
/**
*
* validator_slash_event describes the slash event.
*
*
* .cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_event = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"event\""];
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent, cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent.Builder, cosmos.distribution.v1beta1.Distribution.ValidatorSlashEventOrBuilder>
getValidatorSlashEventFieldBuilder() {
if (validatorSlashEventBuilder_ == null) {
validatorSlashEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent, cosmos.distribution.v1beta1.Distribution.ValidatorSlashEvent.Builder, cosmos.distribution.v1beta1.Distribution.ValidatorSlashEventOrBuilder>(
getValidatorSlashEvent(),
getParentForChildren(),
isClean());
validatorSlashEvent_ = null;
}
return validatorSlashEventBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.ValidatorSlashEventRecord)
}
// @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.ValidatorSlashEventRecord)
private static final cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord();
}
public static cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ValidatorSlashEventRecord parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ValidatorSlashEventRecord(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GenesisStateOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.distribution.v1beta1.GenesisState)
com.google.protobuf.MessageOrBuilder {
/**
*
* params defines all the paramaters of the module.
*
*
* .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"params\""];
*/
boolean hasParams();
/**
*
* params defines all the paramaters of the module.
*
*
* .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"params\""];
*/
cosmos.distribution.v1beta1.Distribution.Params getParams();
/**
*
* params defines all the paramaters of the module.
*
*
* .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"params\""];
*/
cosmos.distribution.v1beta1.Distribution.ParamsOrBuilder getParamsOrBuilder();
/**
*
* fee_pool defines the fee pool at genesis.
*
*
* .cosmos.distribution.v1beta1.FeePool fee_pool = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"fee_pool\""];
*/
boolean hasFeePool();
/**
*
* fee_pool defines the fee pool at genesis.
*
*
* .cosmos.distribution.v1beta1.FeePool fee_pool = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"fee_pool\""];
*/
cosmos.distribution.v1beta1.Distribution.FeePool getFeePool();
/**
*
* fee_pool defines the fee pool at genesis.
*
*
* .cosmos.distribution.v1beta1.FeePool fee_pool = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"fee_pool\""];
*/
cosmos.distribution.v1beta1.Distribution.FeePoolOrBuilder getFeePoolOrBuilder();
/**
*
* fee_pool defines the delegator withdraw infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""];
*/
java.util.List
getDelegatorWithdrawInfosList();
/**
*
* fee_pool defines the delegator withdraw infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""];
*/
cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo getDelegatorWithdrawInfos(int index);
/**
*
* fee_pool defines the delegator withdraw infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""];
*/
int getDelegatorWithdrawInfosCount();
/**
*
* fee_pool defines the delegator withdraw infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""];
*/
java.util.List extends cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfoOrBuilder>
getDelegatorWithdrawInfosOrBuilderList();
/**
*
* fee_pool defines the delegator withdraw infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""];
*/
cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfoOrBuilder getDelegatorWithdrawInfosOrBuilder(
int index);
/**
*
* fee_pool defines the previous proposer at genesis.
*
*
* string previous_proposer = 4 [(.gogoproto.moretags) = "yaml:\"previous_proposer\""];
*/
java.lang.String getPreviousProposer();
/**
*
* fee_pool defines the previous proposer at genesis.
*
*
* string previous_proposer = 4 [(.gogoproto.moretags) = "yaml:\"previous_proposer\""];
*/
com.google.protobuf.ByteString
getPreviousProposerBytes();
/**
*
* fee_pool defines the outstanding rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""];
*/
java.util.List
getOutstandingRewardsList();
/**
*
* fee_pool defines the outstanding rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""];
*/
cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord getOutstandingRewards(int index);
/**
*
* fee_pool defines the outstanding rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""];
*/
int getOutstandingRewardsCount();
/**
*
* fee_pool defines the outstanding rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""];
*/
java.util.List extends cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecordOrBuilder>
getOutstandingRewardsOrBuilderList();
/**
*
* fee_pool defines the outstanding rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""];
*/
cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecordOrBuilder getOutstandingRewardsOrBuilder(
int index);
/**
*
* fee_pool defines the accumulated commisions of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""];
*/
java.util.List
getValidatorAccumulatedCommissionsList();
/**
*
* fee_pool defines the accumulated commisions of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""];
*/
cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord getValidatorAccumulatedCommissions(int index);
/**
*
* fee_pool defines the accumulated commisions of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""];
*/
int getValidatorAccumulatedCommissionsCount();
/**
*
* fee_pool defines the accumulated commisions of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""];
*/
java.util.List extends cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecordOrBuilder>
getValidatorAccumulatedCommissionsOrBuilderList();
/**
*
* fee_pool defines the accumulated commisions of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""];
*/
cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecordOrBuilder getValidatorAccumulatedCommissionsOrBuilder(
int index);
/**
*
* fee_pool defines the historical rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""];
*/
java.util.List
getValidatorHistoricalRewardsList();
/**
*
* fee_pool defines the historical rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""];
*/
cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord getValidatorHistoricalRewards(int index);
/**
*
* fee_pool defines the historical rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""];
*/
int getValidatorHistoricalRewardsCount();
/**
*
* fee_pool defines the historical rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""];
*/
java.util.List extends cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecordOrBuilder>
getValidatorHistoricalRewardsOrBuilderList();
/**
*
* fee_pool defines the historical rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""];
*/
cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecordOrBuilder getValidatorHistoricalRewardsOrBuilder(
int index);
/**
*
* fee_pool defines the current rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""];
*/
java.util.List
getValidatorCurrentRewardsList();
/**
*
* fee_pool defines the current rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""];
*/
cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord getValidatorCurrentRewards(int index);
/**
*
* fee_pool defines the current rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""];
*/
int getValidatorCurrentRewardsCount();
/**
*
* fee_pool defines the current rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""];
*/
java.util.List extends cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecordOrBuilder>
getValidatorCurrentRewardsOrBuilderList();
/**
*
* fee_pool defines the current rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""];
*/
cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecordOrBuilder getValidatorCurrentRewardsOrBuilder(
int index);
/**
*
* fee_pool defines the delegator starting infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""];
*/
java.util.List
getDelegatorStartingInfosList();
/**
*
* fee_pool defines the delegator starting infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""];
*/
cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord getDelegatorStartingInfos(int index);
/**
*
* fee_pool defines the delegator starting infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""];
*/
int getDelegatorStartingInfosCount();
/**
*
* fee_pool defines the delegator starting infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""];
*/
java.util.List extends cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecordOrBuilder>
getDelegatorStartingInfosOrBuilderList();
/**
*
* fee_pool defines the delegator starting infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""];
*/
cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecordOrBuilder getDelegatorStartingInfosOrBuilder(
int index);
/**
*
* fee_pool defines the validator slash events at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""];
*/
java.util.List
getValidatorSlashEventsList();
/**
*
* fee_pool defines the validator slash events at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""];
*/
cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord getValidatorSlashEvents(int index);
/**
*
* fee_pool defines the validator slash events at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""];
*/
int getValidatorSlashEventsCount();
/**
*
* fee_pool defines the validator slash events at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""];
*/
java.util.List extends cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecordOrBuilder>
getValidatorSlashEventsOrBuilderList();
/**
*
* fee_pool defines the validator slash events at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""];
*/
cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecordOrBuilder getValidatorSlashEventsOrBuilder(
int index);
}
/**
*
* GenesisState defines the distribution module's genesis state.
*
*
* Protobuf type {@code cosmos.distribution.v1beta1.GenesisState}
*/
public static final class GenesisState extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.distribution.v1beta1.GenesisState)
GenesisStateOrBuilder {
private static final long serialVersionUID = 0L;
// Use GenesisState.newBuilder() to construct.
private GenesisState(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GenesisState() {
delegatorWithdrawInfos_ = java.util.Collections.emptyList();
previousProposer_ = "";
outstandingRewards_ = java.util.Collections.emptyList();
validatorAccumulatedCommissions_ = java.util.Collections.emptyList();
validatorHistoricalRewards_ = java.util.Collections.emptyList();
validatorCurrentRewards_ = java.util.Collections.emptyList();
delegatorStartingInfos_ = java.util.Collections.emptyList();
validatorSlashEvents_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GenesisState(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
cosmos.distribution.v1beta1.Distribution.Params.Builder subBuilder = null;
if (params_ != null) {
subBuilder = params_.toBuilder();
}
params_ = input.readMessage(cosmos.distribution.v1beta1.Distribution.Params.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(params_);
params_ = subBuilder.buildPartial();
}
break;
}
case 18: {
cosmos.distribution.v1beta1.Distribution.FeePool.Builder subBuilder = null;
if (feePool_ != null) {
subBuilder = feePool_.toBuilder();
}
feePool_ = input.readMessage(cosmos.distribution.v1beta1.Distribution.FeePool.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(feePool_);
feePool_ = subBuilder.buildPartial();
}
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
delegatorWithdrawInfos_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
delegatorWithdrawInfos_.add(
input.readMessage(cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo.parser(), extensionRegistry));
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
previousProposer_ = s;
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
outstandingRewards_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
outstandingRewards_.add(
input.readMessage(cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord.parser(), extensionRegistry));
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
validatorAccumulatedCommissions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
validatorAccumulatedCommissions_.add(
input.readMessage(cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord.parser(), extensionRegistry));
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
validatorHistoricalRewards_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
validatorHistoricalRewards_.add(
input.readMessage(cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord.parser(), extensionRegistry));
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
validatorCurrentRewards_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000080;
}
validatorCurrentRewards_.add(
input.readMessage(cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord.parser(), extensionRegistry));
break;
}
case 74: {
if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
delegatorStartingInfos_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000100;
}
delegatorStartingInfos_.add(
input.readMessage(cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord.parser(), extensionRegistry));
break;
}
case 82: {
if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
validatorSlashEvents_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000200;
}
validatorSlashEvents_.add(
input.readMessage(cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
delegatorWithdrawInfos_ = java.util.Collections.unmodifiableList(delegatorWithdrawInfos_);
}
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
outstandingRewards_ = java.util.Collections.unmodifiableList(outstandingRewards_);
}
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
validatorAccumulatedCommissions_ = java.util.Collections.unmodifiableList(validatorAccumulatedCommissions_);
}
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
validatorHistoricalRewards_ = java.util.Collections.unmodifiableList(validatorHistoricalRewards_);
}
if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
validatorCurrentRewards_ = java.util.Collections.unmodifiableList(validatorCurrentRewards_);
}
if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
delegatorStartingInfos_ = java.util.Collections.unmodifiableList(delegatorStartingInfos_);
}
if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
validatorSlashEvents_ = java.util.Collections.unmodifiableList(validatorSlashEvents_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_GenesisState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_GenesisState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.distribution.v1beta1.Genesis.GenesisState.class, cosmos.distribution.v1beta1.Genesis.GenesisState.Builder.class);
}
private int bitField0_;
public static final int PARAMS_FIELD_NUMBER = 1;
private cosmos.distribution.v1beta1.Distribution.Params params_;
/**
*
* params defines all the paramaters of the module.
*
*
* .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"params\""];
*/
public boolean hasParams() {
return params_ != null;
}
/**
*
* params defines all the paramaters of the module.
*
*
* .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"params\""];
*/
public cosmos.distribution.v1beta1.Distribution.Params getParams() {
return params_ == null ? cosmos.distribution.v1beta1.Distribution.Params.getDefaultInstance() : params_;
}
/**
*
* params defines all the paramaters of the module.
*
*
* .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"params\""];
*/
public cosmos.distribution.v1beta1.Distribution.ParamsOrBuilder getParamsOrBuilder() {
return getParams();
}
public static final int FEE_POOL_FIELD_NUMBER = 2;
private cosmos.distribution.v1beta1.Distribution.FeePool feePool_;
/**
*
* fee_pool defines the fee pool at genesis.
*
*
* .cosmos.distribution.v1beta1.FeePool fee_pool = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"fee_pool\""];
*/
public boolean hasFeePool() {
return feePool_ != null;
}
/**
*
* fee_pool defines the fee pool at genesis.
*
*
* .cosmos.distribution.v1beta1.FeePool fee_pool = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"fee_pool\""];
*/
public cosmos.distribution.v1beta1.Distribution.FeePool getFeePool() {
return feePool_ == null ? cosmos.distribution.v1beta1.Distribution.FeePool.getDefaultInstance() : feePool_;
}
/**
*
* fee_pool defines the fee pool at genesis.
*
*
* .cosmos.distribution.v1beta1.FeePool fee_pool = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"fee_pool\""];
*/
public cosmos.distribution.v1beta1.Distribution.FeePoolOrBuilder getFeePoolOrBuilder() {
return getFeePool();
}
public static final int DELEGATOR_WITHDRAW_INFOS_FIELD_NUMBER = 3;
private java.util.List delegatorWithdrawInfos_;
/**
*
* fee_pool defines the delegator withdraw infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""];
*/
public java.util.List getDelegatorWithdrawInfosList() {
return delegatorWithdrawInfos_;
}
/**
*
* fee_pool defines the delegator withdraw infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""];
*/
public java.util.List extends cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfoOrBuilder>
getDelegatorWithdrawInfosOrBuilderList() {
return delegatorWithdrawInfos_;
}
/**
*
* fee_pool defines the delegator withdraw infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""];
*/
public int getDelegatorWithdrawInfosCount() {
return delegatorWithdrawInfos_.size();
}
/**
*
* fee_pool defines the delegator withdraw infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""];
*/
public cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo getDelegatorWithdrawInfos(int index) {
return delegatorWithdrawInfos_.get(index);
}
/**
*
* fee_pool defines the delegator withdraw infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""];
*/
public cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfoOrBuilder getDelegatorWithdrawInfosOrBuilder(
int index) {
return delegatorWithdrawInfos_.get(index);
}
public static final int PREVIOUS_PROPOSER_FIELD_NUMBER = 4;
private volatile java.lang.Object previousProposer_;
/**
*
* fee_pool defines the previous proposer at genesis.
*
*
* string previous_proposer = 4 [(.gogoproto.moretags) = "yaml:\"previous_proposer\""];
*/
public java.lang.String getPreviousProposer() {
java.lang.Object ref = previousProposer_;
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();
previousProposer_ = s;
return s;
}
}
/**
*
* fee_pool defines the previous proposer at genesis.
*
*
* string previous_proposer = 4 [(.gogoproto.moretags) = "yaml:\"previous_proposer\""];
*/
public com.google.protobuf.ByteString
getPreviousProposerBytes() {
java.lang.Object ref = previousProposer_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
previousProposer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OUTSTANDING_REWARDS_FIELD_NUMBER = 5;
private java.util.List outstandingRewards_;
/**
*
* fee_pool defines the outstanding rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""];
*/
public java.util.List getOutstandingRewardsList() {
return outstandingRewards_;
}
/**
*
* fee_pool defines the outstanding rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""];
*/
public java.util.List extends cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecordOrBuilder>
getOutstandingRewardsOrBuilderList() {
return outstandingRewards_;
}
/**
*
* fee_pool defines the outstanding rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""];
*/
public int getOutstandingRewardsCount() {
return outstandingRewards_.size();
}
/**
*
* fee_pool defines the outstanding rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""];
*/
public cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord getOutstandingRewards(int index) {
return outstandingRewards_.get(index);
}
/**
*
* fee_pool defines the outstanding rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""];
*/
public cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecordOrBuilder getOutstandingRewardsOrBuilder(
int index) {
return outstandingRewards_.get(index);
}
public static final int VALIDATOR_ACCUMULATED_COMMISSIONS_FIELD_NUMBER = 6;
private java.util.List validatorAccumulatedCommissions_;
/**
*
* fee_pool defines the accumulated commisions of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""];
*/
public java.util.List getValidatorAccumulatedCommissionsList() {
return validatorAccumulatedCommissions_;
}
/**
*
* fee_pool defines the accumulated commisions of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""];
*/
public java.util.List extends cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecordOrBuilder>
getValidatorAccumulatedCommissionsOrBuilderList() {
return validatorAccumulatedCommissions_;
}
/**
*
* fee_pool defines the accumulated commisions of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""];
*/
public int getValidatorAccumulatedCommissionsCount() {
return validatorAccumulatedCommissions_.size();
}
/**
*
* fee_pool defines the accumulated commisions of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""];
*/
public cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord getValidatorAccumulatedCommissions(int index) {
return validatorAccumulatedCommissions_.get(index);
}
/**
*
* fee_pool defines the accumulated commisions of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""];
*/
public cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecordOrBuilder getValidatorAccumulatedCommissionsOrBuilder(
int index) {
return validatorAccumulatedCommissions_.get(index);
}
public static final int VALIDATOR_HISTORICAL_REWARDS_FIELD_NUMBER = 7;
private java.util.List validatorHistoricalRewards_;
/**
*
* fee_pool defines the historical rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""];
*/
public java.util.List getValidatorHistoricalRewardsList() {
return validatorHistoricalRewards_;
}
/**
*
* fee_pool defines the historical rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""];
*/
public java.util.List extends cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecordOrBuilder>
getValidatorHistoricalRewardsOrBuilderList() {
return validatorHistoricalRewards_;
}
/**
*
* fee_pool defines the historical rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""];
*/
public int getValidatorHistoricalRewardsCount() {
return validatorHistoricalRewards_.size();
}
/**
*
* fee_pool defines the historical rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""];
*/
public cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord getValidatorHistoricalRewards(int index) {
return validatorHistoricalRewards_.get(index);
}
/**
*
* fee_pool defines the historical rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""];
*/
public cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecordOrBuilder getValidatorHistoricalRewardsOrBuilder(
int index) {
return validatorHistoricalRewards_.get(index);
}
public static final int VALIDATOR_CURRENT_REWARDS_FIELD_NUMBER = 8;
private java.util.List validatorCurrentRewards_;
/**
*
* fee_pool defines the current rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""];
*/
public java.util.List getValidatorCurrentRewardsList() {
return validatorCurrentRewards_;
}
/**
*
* fee_pool defines the current rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""];
*/
public java.util.List extends cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecordOrBuilder>
getValidatorCurrentRewardsOrBuilderList() {
return validatorCurrentRewards_;
}
/**
*
* fee_pool defines the current rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""];
*/
public int getValidatorCurrentRewardsCount() {
return validatorCurrentRewards_.size();
}
/**
*
* fee_pool defines the current rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""];
*/
public cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord getValidatorCurrentRewards(int index) {
return validatorCurrentRewards_.get(index);
}
/**
*
* fee_pool defines the current rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""];
*/
public cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecordOrBuilder getValidatorCurrentRewardsOrBuilder(
int index) {
return validatorCurrentRewards_.get(index);
}
public static final int DELEGATOR_STARTING_INFOS_FIELD_NUMBER = 9;
private java.util.List delegatorStartingInfos_;
/**
*
* fee_pool defines the delegator starting infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""];
*/
public java.util.List getDelegatorStartingInfosList() {
return delegatorStartingInfos_;
}
/**
*
* fee_pool defines the delegator starting infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""];
*/
public java.util.List extends cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecordOrBuilder>
getDelegatorStartingInfosOrBuilderList() {
return delegatorStartingInfos_;
}
/**
*
* fee_pool defines the delegator starting infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""];
*/
public int getDelegatorStartingInfosCount() {
return delegatorStartingInfos_.size();
}
/**
*
* fee_pool defines the delegator starting infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""];
*/
public cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord getDelegatorStartingInfos(int index) {
return delegatorStartingInfos_.get(index);
}
/**
*
* fee_pool defines the delegator starting infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""];
*/
public cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecordOrBuilder getDelegatorStartingInfosOrBuilder(
int index) {
return delegatorStartingInfos_.get(index);
}
public static final int VALIDATOR_SLASH_EVENTS_FIELD_NUMBER = 10;
private java.util.List validatorSlashEvents_;
/**
*
* fee_pool defines the validator slash events at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""];
*/
public java.util.List getValidatorSlashEventsList() {
return validatorSlashEvents_;
}
/**
*
* fee_pool defines the validator slash events at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""];
*/
public java.util.List extends cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecordOrBuilder>
getValidatorSlashEventsOrBuilderList() {
return validatorSlashEvents_;
}
/**
*
* fee_pool defines the validator slash events at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""];
*/
public int getValidatorSlashEventsCount() {
return validatorSlashEvents_.size();
}
/**
*
* fee_pool defines the validator slash events at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""];
*/
public cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord getValidatorSlashEvents(int index) {
return validatorSlashEvents_.get(index);
}
/**
*
* fee_pool defines the validator slash events at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""];
*/
public cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecordOrBuilder getValidatorSlashEventsOrBuilder(
int index) {
return validatorSlashEvents_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (params_ != null) {
output.writeMessage(1, getParams());
}
if (feePool_ != null) {
output.writeMessage(2, getFeePool());
}
for (int i = 0; i < delegatorWithdrawInfos_.size(); i++) {
output.writeMessage(3, delegatorWithdrawInfos_.get(i));
}
if (!getPreviousProposerBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, previousProposer_);
}
for (int i = 0; i < outstandingRewards_.size(); i++) {
output.writeMessage(5, outstandingRewards_.get(i));
}
for (int i = 0; i < validatorAccumulatedCommissions_.size(); i++) {
output.writeMessage(6, validatorAccumulatedCommissions_.get(i));
}
for (int i = 0; i < validatorHistoricalRewards_.size(); i++) {
output.writeMessage(7, validatorHistoricalRewards_.get(i));
}
for (int i = 0; i < validatorCurrentRewards_.size(); i++) {
output.writeMessage(8, validatorCurrentRewards_.get(i));
}
for (int i = 0; i < delegatorStartingInfos_.size(); i++) {
output.writeMessage(9, delegatorStartingInfos_.get(i));
}
for (int i = 0; i < validatorSlashEvents_.size(); i++) {
output.writeMessage(10, validatorSlashEvents_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (params_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getParams());
}
if (feePool_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getFeePool());
}
for (int i = 0; i < delegatorWithdrawInfos_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, delegatorWithdrawInfos_.get(i));
}
if (!getPreviousProposerBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, previousProposer_);
}
for (int i = 0; i < outstandingRewards_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, outstandingRewards_.get(i));
}
for (int i = 0; i < validatorAccumulatedCommissions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, validatorAccumulatedCommissions_.get(i));
}
for (int i = 0; i < validatorHistoricalRewards_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, validatorHistoricalRewards_.get(i));
}
for (int i = 0; i < validatorCurrentRewards_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, validatorCurrentRewards_.get(i));
}
for (int i = 0; i < delegatorStartingInfos_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, delegatorStartingInfos_.get(i));
}
for (int i = 0; i < validatorSlashEvents_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, validatorSlashEvents_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cosmos.distribution.v1beta1.Genesis.GenesisState)) {
return super.equals(obj);
}
cosmos.distribution.v1beta1.Genesis.GenesisState other = (cosmos.distribution.v1beta1.Genesis.GenesisState) obj;
boolean result = true;
result = result && (hasParams() == other.hasParams());
if (hasParams()) {
result = result && getParams()
.equals(other.getParams());
}
result = result && (hasFeePool() == other.hasFeePool());
if (hasFeePool()) {
result = result && getFeePool()
.equals(other.getFeePool());
}
result = result && getDelegatorWithdrawInfosList()
.equals(other.getDelegatorWithdrawInfosList());
result = result && getPreviousProposer()
.equals(other.getPreviousProposer());
result = result && getOutstandingRewardsList()
.equals(other.getOutstandingRewardsList());
result = result && getValidatorAccumulatedCommissionsList()
.equals(other.getValidatorAccumulatedCommissionsList());
result = result && getValidatorHistoricalRewardsList()
.equals(other.getValidatorHistoricalRewardsList());
result = result && getValidatorCurrentRewardsList()
.equals(other.getValidatorCurrentRewardsList());
result = result && getDelegatorStartingInfosList()
.equals(other.getDelegatorStartingInfosList());
result = result && getValidatorSlashEventsList()
.equals(other.getValidatorSlashEventsList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasParams()) {
hash = (37 * hash) + PARAMS_FIELD_NUMBER;
hash = (53 * hash) + getParams().hashCode();
}
if (hasFeePool()) {
hash = (37 * hash) + FEE_POOL_FIELD_NUMBER;
hash = (53 * hash) + getFeePool().hashCode();
}
if (getDelegatorWithdrawInfosCount() > 0) {
hash = (37 * hash) + DELEGATOR_WITHDRAW_INFOS_FIELD_NUMBER;
hash = (53 * hash) + getDelegatorWithdrawInfosList().hashCode();
}
hash = (37 * hash) + PREVIOUS_PROPOSER_FIELD_NUMBER;
hash = (53 * hash) + getPreviousProposer().hashCode();
if (getOutstandingRewardsCount() > 0) {
hash = (37 * hash) + OUTSTANDING_REWARDS_FIELD_NUMBER;
hash = (53 * hash) + getOutstandingRewardsList().hashCode();
}
if (getValidatorAccumulatedCommissionsCount() > 0) {
hash = (37 * hash) + VALIDATOR_ACCUMULATED_COMMISSIONS_FIELD_NUMBER;
hash = (53 * hash) + getValidatorAccumulatedCommissionsList().hashCode();
}
if (getValidatorHistoricalRewardsCount() > 0) {
hash = (37 * hash) + VALIDATOR_HISTORICAL_REWARDS_FIELD_NUMBER;
hash = (53 * hash) + getValidatorHistoricalRewardsList().hashCode();
}
if (getValidatorCurrentRewardsCount() > 0) {
hash = (37 * hash) + VALIDATOR_CURRENT_REWARDS_FIELD_NUMBER;
hash = (53 * hash) + getValidatorCurrentRewardsList().hashCode();
}
if (getDelegatorStartingInfosCount() > 0) {
hash = (37 * hash) + DELEGATOR_STARTING_INFOS_FIELD_NUMBER;
hash = (53 * hash) + getDelegatorStartingInfosList().hashCode();
}
if (getValidatorSlashEventsCount() > 0) {
hash = (37 * hash) + VALIDATOR_SLASH_EVENTS_FIELD_NUMBER;
hash = (53 * hash) + getValidatorSlashEventsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.distribution.v1beta1.Genesis.GenesisState parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.distribution.v1beta1.Genesis.GenesisState parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.GenesisState parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.distribution.v1beta1.Genesis.GenesisState parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.GenesisState parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.distribution.v1beta1.Genesis.GenesisState parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.GenesisState parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.distribution.v1beta1.Genesis.GenesisState parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.GenesisState parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.distribution.v1beta1.Genesis.GenesisState parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cosmos.distribution.v1beta1.Genesis.GenesisState parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.distribution.v1beta1.Genesis.GenesisState parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cosmos.distribution.v1beta1.Genesis.GenesisState 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;
}
/**
*
* GenesisState defines the distribution module's genesis state.
*
*
* Protobuf type {@code cosmos.distribution.v1beta1.GenesisState}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.distribution.v1beta1.GenesisState)
cosmos.distribution.v1beta1.Genesis.GenesisStateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_GenesisState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_GenesisState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.distribution.v1beta1.Genesis.GenesisState.class, cosmos.distribution.v1beta1.Genesis.GenesisState.Builder.class);
}
// Construct using cosmos.distribution.v1beta1.Genesis.GenesisState.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getDelegatorWithdrawInfosFieldBuilder();
getOutstandingRewardsFieldBuilder();
getValidatorAccumulatedCommissionsFieldBuilder();
getValidatorHistoricalRewardsFieldBuilder();
getValidatorCurrentRewardsFieldBuilder();
getDelegatorStartingInfosFieldBuilder();
getValidatorSlashEventsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (paramsBuilder_ == null) {
params_ = null;
} else {
params_ = null;
paramsBuilder_ = null;
}
if (feePoolBuilder_ == null) {
feePool_ = null;
} else {
feePool_ = null;
feePoolBuilder_ = null;
}
if (delegatorWithdrawInfosBuilder_ == null) {
delegatorWithdrawInfos_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
delegatorWithdrawInfosBuilder_.clear();
}
previousProposer_ = "";
if (outstandingRewardsBuilder_ == null) {
outstandingRewards_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
} else {
outstandingRewardsBuilder_.clear();
}
if (validatorAccumulatedCommissionsBuilder_ == null) {
validatorAccumulatedCommissions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
} else {
validatorAccumulatedCommissionsBuilder_.clear();
}
if (validatorHistoricalRewardsBuilder_ == null) {
validatorHistoricalRewards_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
} else {
validatorHistoricalRewardsBuilder_.clear();
}
if (validatorCurrentRewardsBuilder_ == null) {
validatorCurrentRewards_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
} else {
validatorCurrentRewardsBuilder_.clear();
}
if (delegatorStartingInfosBuilder_ == null) {
delegatorStartingInfos_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);
} else {
delegatorStartingInfosBuilder_.clear();
}
if (validatorSlashEventsBuilder_ == null) {
validatorSlashEvents_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000200);
} else {
validatorSlashEventsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.distribution.v1beta1.Genesis.internal_static_cosmos_distribution_v1beta1_GenesisState_descriptor;
}
@java.lang.Override
public cosmos.distribution.v1beta1.Genesis.GenesisState getDefaultInstanceForType() {
return cosmos.distribution.v1beta1.Genesis.GenesisState.getDefaultInstance();
}
@java.lang.Override
public cosmos.distribution.v1beta1.Genesis.GenesisState build() {
cosmos.distribution.v1beta1.Genesis.GenesisState result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.distribution.v1beta1.Genesis.GenesisState buildPartial() {
cosmos.distribution.v1beta1.Genesis.GenesisState result = new cosmos.distribution.v1beta1.Genesis.GenesisState(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (paramsBuilder_ == null) {
result.params_ = params_;
} else {
result.params_ = paramsBuilder_.build();
}
if (feePoolBuilder_ == null) {
result.feePool_ = feePool_;
} else {
result.feePool_ = feePoolBuilder_.build();
}
if (delegatorWithdrawInfosBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
delegatorWithdrawInfos_ = java.util.Collections.unmodifiableList(delegatorWithdrawInfos_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.delegatorWithdrawInfos_ = delegatorWithdrawInfos_;
} else {
result.delegatorWithdrawInfos_ = delegatorWithdrawInfosBuilder_.build();
}
result.previousProposer_ = previousProposer_;
if (outstandingRewardsBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010)) {
outstandingRewards_ = java.util.Collections.unmodifiableList(outstandingRewards_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.outstandingRewards_ = outstandingRewards_;
} else {
result.outstandingRewards_ = outstandingRewardsBuilder_.build();
}
if (validatorAccumulatedCommissionsBuilder_ == null) {
if (((bitField0_ & 0x00000020) == 0x00000020)) {
validatorAccumulatedCommissions_ = java.util.Collections.unmodifiableList(validatorAccumulatedCommissions_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.validatorAccumulatedCommissions_ = validatorAccumulatedCommissions_;
} else {
result.validatorAccumulatedCommissions_ = validatorAccumulatedCommissionsBuilder_.build();
}
if (validatorHistoricalRewardsBuilder_ == null) {
if (((bitField0_ & 0x00000040) == 0x00000040)) {
validatorHistoricalRewards_ = java.util.Collections.unmodifiableList(validatorHistoricalRewards_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.validatorHistoricalRewards_ = validatorHistoricalRewards_;
} else {
result.validatorHistoricalRewards_ = validatorHistoricalRewardsBuilder_.build();
}
if (validatorCurrentRewardsBuilder_ == null) {
if (((bitField0_ & 0x00000080) == 0x00000080)) {
validatorCurrentRewards_ = java.util.Collections.unmodifiableList(validatorCurrentRewards_);
bitField0_ = (bitField0_ & ~0x00000080);
}
result.validatorCurrentRewards_ = validatorCurrentRewards_;
} else {
result.validatorCurrentRewards_ = validatorCurrentRewardsBuilder_.build();
}
if (delegatorStartingInfosBuilder_ == null) {
if (((bitField0_ & 0x00000100) == 0x00000100)) {
delegatorStartingInfos_ = java.util.Collections.unmodifiableList(delegatorStartingInfos_);
bitField0_ = (bitField0_ & ~0x00000100);
}
result.delegatorStartingInfos_ = delegatorStartingInfos_;
} else {
result.delegatorStartingInfos_ = delegatorStartingInfosBuilder_.build();
}
if (validatorSlashEventsBuilder_ == null) {
if (((bitField0_ & 0x00000200) == 0x00000200)) {
validatorSlashEvents_ = java.util.Collections.unmodifiableList(validatorSlashEvents_);
bitField0_ = (bitField0_ & ~0x00000200);
}
result.validatorSlashEvents_ = validatorSlashEvents_;
} else {
result.validatorSlashEvents_ = validatorSlashEventsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cosmos.distribution.v1beta1.Genesis.GenesisState) {
return mergeFrom((cosmos.distribution.v1beta1.Genesis.GenesisState)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.distribution.v1beta1.Genesis.GenesisState other) {
if (other == cosmos.distribution.v1beta1.Genesis.GenesisState.getDefaultInstance()) return this;
if (other.hasParams()) {
mergeParams(other.getParams());
}
if (other.hasFeePool()) {
mergeFeePool(other.getFeePool());
}
if (delegatorWithdrawInfosBuilder_ == null) {
if (!other.delegatorWithdrawInfos_.isEmpty()) {
if (delegatorWithdrawInfos_.isEmpty()) {
delegatorWithdrawInfos_ = other.delegatorWithdrawInfos_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureDelegatorWithdrawInfosIsMutable();
delegatorWithdrawInfos_.addAll(other.delegatorWithdrawInfos_);
}
onChanged();
}
} else {
if (!other.delegatorWithdrawInfos_.isEmpty()) {
if (delegatorWithdrawInfosBuilder_.isEmpty()) {
delegatorWithdrawInfosBuilder_.dispose();
delegatorWithdrawInfosBuilder_ = null;
delegatorWithdrawInfos_ = other.delegatorWithdrawInfos_;
bitField0_ = (bitField0_ & ~0x00000004);
delegatorWithdrawInfosBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDelegatorWithdrawInfosFieldBuilder() : null;
} else {
delegatorWithdrawInfosBuilder_.addAllMessages(other.delegatorWithdrawInfos_);
}
}
}
if (!other.getPreviousProposer().isEmpty()) {
previousProposer_ = other.previousProposer_;
onChanged();
}
if (outstandingRewardsBuilder_ == null) {
if (!other.outstandingRewards_.isEmpty()) {
if (outstandingRewards_.isEmpty()) {
outstandingRewards_ = other.outstandingRewards_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureOutstandingRewardsIsMutable();
outstandingRewards_.addAll(other.outstandingRewards_);
}
onChanged();
}
} else {
if (!other.outstandingRewards_.isEmpty()) {
if (outstandingRewardsBuilder_.isEmpty()) {
outstandingRewardsBuilder_.dispose();
outstandingRewardsBuilder_ = null;
outstandingRewards_ = other.outstandingRewards_;
bitField0_ = (bitField0_ & ~0x00000010);
outstandingRewardsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getOutstandingRewardsFieldBuilder() : null;
} else {
outstandingRewardsBuilder_.addAllMessages(other.outstandingRewards_);
}
}
}
if (validatorAccumulatedCommissionsBuilder_ == null) {
if (!other.validatorAccumulatedCommissions_.isEmpty()) {
if (validatorAccumulatedCommissions_.isEmpty()) {
validatorAccumulatedCommissions_ = other.validatorAccumulatedCommissions_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureValidatorAccumulatedCommissionsIsMutable();
validatorAccumulatedCommissions_.addAll(other.validatorAccumulatedCommissions_);
}
onChanged();
}
} else {
if (!other.validatorAccumulatedCommissions_.isEmpty()) {
if (validatorAccumulatedCommissionsBuilder_.isEmpty()) {
validatorAccumulatedCommissionsBuilder_.dispose();
validatorAccumulatedCommissionsBuilder_ = null;
validatorAccumulatedCommissions_ = other.validatorAccumulatedCommissions_;
bitField0_ = (bitField0_ & ~0x00000020);
validatorAccumulatedCommissionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getValidatorAccumulatedCommissionsFieldBuilder() : null;
} else {
validatorAccumulatedCommissionsBuilder_.addAllMessages(other.validatorAccumulatedCommissions_);
}
}
}
if (validatorHistoricalRewardsBuilder_ == null) {
if (!other.validatorHistoricalRewards_.isEmpty()) {
if (validatorHistoricalRewards_.isEmpty()) {
validatorHistoricalRewards_ = other.validatorHistoricalRewards_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureValidatorHistoricalRewardsIsMutable();
validatorHistoricalRewards_.addAll(other.validatorHistoricalRewards_);
}
onChanged();
}
} else {
if (!other.validatorHistoricalRewards_.isEmpty()) {
if (validatorHistoricalRewardsBuilder_.isEmpty()) {
validatorHistoricalRewardsBuilder_.dispose();
validatorHistoricalRewardsBuilder_ = null;
validatorHistoricalRewards_ = other.validatorHistoricalRewards_;
bitField0_ = (bitField0_ & ~0x00000040);
validatorHistoricalRewardsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getValidatorHistoricalRewardsFieldBuilder() : null;
} else {
validatorHistoricalRewardsBuilder_.addAllMessages(other.validatorHistoricalRewards_);
}
}
}
if (validatorCurrentRewardsBuilder_ == null) {
if (!other.validatorCurrentRewards_.isEmpty()) {
if (validatorCurrentRewards_.isEmpty()) {
validatorCurrentRewards_ = other.validatorCurrentRewards_;
bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensureValidatorCurrentRewardsIsMutable();
validatorCurrentRewards_.addAll(other.validatorCurrentRewards_);
}
onChanged();
}
} else {
if (!other.validatorCurrentRewards_.isEmpty()) {
if (validatorCurrentRewardsBuilder_.isEmpty()) {
validatorCurrentRewardsBuilder_.dispose();
validatorCurrentRewardsBuilder_ = null;
validatorCurrentRewards_ = other.validatorCurrentRewards_;
bitField0_ = (bitField0_ & ~0x00000080);
validatorCurrentRewardsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getValidatorCurrentRewardsFieldBuilder() : null;
} else {
validatorCurrentRewardsBuilder_.addAllMessages(other.validatorCurrentRewards_);
}
}
}
if (delegatorStartingInfosBuilder_ == null) {
if (!other.delegatorStartingInfos_.isEmpty()) {
if (delegatorStartingInfos_.isEmpty()) {
delegatorStartingInfos_ = other.delegatorStartingInfos_;
bitField0_ = (bitField0_ & ~0x00000100);
} else {
ensureDelegatorStartingInfosIsMutable();
delegatorStartingInfos_.addAll(other.delegatorStartingInfos_);
}
onChanged();
}
} else {
if (!other.delegatorStartingInfos_.isEmpty()) {
if (delegatorStartingInfosBuilder_.isEmpty()) {
delegatorStartingInfosBuilder_.dispose();
delegatorStartingInfosBuilder_ = null;
delegatorStartingInfos_ = other.delegatorStartingInfos_;
bitField0_ = (bitField0_ & ~0x00000100);
delegatorStartingInfosBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDelegatorStartingInfosFieldBuilder() : null;
} else {
delegatorStartingInfosBuilder_.addAllMessages(other.delegatorStartingInfos_);
}
}
}
if (validatorSlashEventsBuilder_ == null) {
if (!other.validatorSlashEvents_.isEmpty()) {
if (validatorSlashEvents_.isEmpty()) {
validatorSlashEvents_ = other.validatorSlashEvents_;
bitField0_ = (bitField0_ & ~0x00000200);
} else {
ensureValidatorSlashEventsIsMutable();
validatorSlashEvents_.addAll(other.validatorSlashEvents_);
}
onChanged();
}
} else {
if (!other.validatorSlashEvents_.isEmpty()) {
if (validatorSlashEventsBuilder_.isEmpty()) {
validatorSlashEventsBuilder_.dispose();
validatorSlashEventsBuilder_ = null;
validatorSlashEvents_ = other.validatorSlashEvents_;
bitField0_ = (bitField0_ & ~0x00000200);
validatorSlashEventsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getValidatorSlashEventsFieldBuilder() : null;
} else {
validatorSlashEventsBuilder_.addAllMessages(other.validatorSlashEvents_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cosmos.distribution.v1beta1.Genesis.GenesisState parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.distribution.v1beta1.Genesis.GenesisState) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private cosmos.distribution.v1beta1.Distribution.Params params_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.distribution.v1beta1.Distribution.Params, cosmos.distribution.v1beta1.Distribution.Params.Builder, cosmos.distribution.v1beta1.Distribution.ParamsOrBuilder> paramsBuilder_;
/**
*
* params defines all the paramaters of the module.
*
*
* .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"params\""];
*/
public boolean hasParams() {
return paramsBuilder_ != null || params_ != null;
}
/**
*
* params defines all the paramaters of the module.
*
*
* .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"params\""];
*/
public cosmos.distribution.v1beta1.Distribution.Params getParams() {
if (paramsBuilder_ == null) {
return params_ == null ? cosmos.distribution.v1beta1.Distribution.Params.getDefaultInstance() : params_;
} else {
return paramsBuilder_.getMessage();
}
}
/**
*
* params defines all the paramaters of the module.
*
*
* .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"params\""];
*/
public Builder setParams(cosmos.distribution.v1beta1.Distribution.Params value) {
if (paramsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
params_ = value;
onChanged();
} else {
paramsBuilder_.setMessage(value);
}
return this;
}
/**
*
* params defines all the paramaters of the module.
*
*
* .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"params\""];
*/
public Builder setParams(
cosmos.distribution.v1beta1.Distribution.Params.Builder builderForValue) {
if (paramsBuilder_ == null) {
params_ = builderForValue.build();
onChanged();
} else {
paramsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* params defines all the paramaters of the module.
*
*
* .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"params\""];
*/
public Builder mergeParams(cosmos.distribution.v1beta1.Distribution.Params value) {
if (paramsBuilder_ == null) {
if (params_ != null) {
params_ =
cosmos.distribution.v1beta1.Distribution.Params.newBuilder(params_).mergeFrom(value).buildPartial();
} else {
params_ = value;
}
onChanged();
} else {
paramsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* params defines all the paramaters of the module.
*
*
* .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"params\""];
*/
public Builder clearParams() {
if (paramsBuilder_ == null) {
params_ = null;
onChanged();
} else {
params_ = null;
paramsBuilder_ = null;
}
return this;
}
/**
*
* params defines all the paramaters of the module.
*
*
* .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"params\""];
*/
public cosmos.distribution.v1beta1.Distribution.Params.Builder getParamsBuilder() {
onChanged();
return getParamsFieldBuilder().getBuilder();
}
/**
*
* params defines all the paramaters of the module.
*
*
* .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"params\""];
*/
public cosmos.distribution.v1beta1.Distribution.ParamsOrBuilder getParamsOrBuilder() {
if (paramsBuilder_ != null) {
return paramsBuilder_.getMessageOrBuilder();
} else {
return params_ == null ?
cosmos.distribution.v1beta1.Distribution.Params.getDefaultInstance() : params_;
}
}
/**
*
* params defines all the paramaters of the module.
*
*
* .cosmos.distribution.v1beta1.Params params = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"params\""];
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.distribution.v1beta1.Distribution.Params, cosmos.distribution.v1beta1.Distribution.Params.Builder, cosmos.distribution.v1beta1.Distribution.ParamsOrBuilder>
getParamsFieldBuilder() {
if (paramsBuilder_ == null) {
paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmos.distribution.v1beta1.Distribution.Params, cosmos.distribution.v1beta1.Distribution.Params.Builder, cosmos.distribution.v1beta1.Distribution.ParamsOrBuilder>(
getParams(),
getParentForChildren(),
isClean());
params_ = null;
}
return paramsBuilder_;
}
private cosmos.distribution.v1beta1.Distribution.FeePool feePool_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.distribution.v1beta1.Distribution.FeePool, cosmos.distribution.v1beta1.Distribution.FeePool.Builder, cosmos.distribution.v1beta1.Distribution.FeePoolOrBuilder> feePoolBuilder_;
/**
*
* fee_pool defines the fee pool at genesis.
*
*
* .cosmos.distribution.v1beta1.FeePool fee_pool = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"fee_pool\""];
*/
public boolean hasFeePool() {
return feePoolBuilder_ != null || feePool_ != null;
}
/**
*
* fee_pool defines the fee pool at genesis.
*
*
* .cosmos.distribution.v1beta1.FeePool fee_pool = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"fee_pool\""];
*/
public cosmos.distribution.v1beta1.Distribution.FeePool getFeePool() {
if (feePoolBuilder_ == null) {
return feePool_ == null ? cosmos.distribution.v1beta1.Distribution.FeePool.getDefaultInstance() : feePool_;
} else {
return feePoolBuilder_.getMessage();
}
}
/**
*
* fee_pool defines the fee pool at genesis.
*
*
* .cosmos.distribution.v1beta1.FeePool fee_pool = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"fee_pool\""];
*/
public Builder setFeePool(cosmos.distribution.v1beta1.Distribution.FeePool value) {
if (feePoolBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
feePool_ = value;
onChanged();
} else {
feePoolBuilder_.setMessage(value);
}
return this;
}
/**
*
* fee_pool defines the fee pool at genesis.
*
*
* .cosmos.distribution.v1beta1.FeePool fee_pool = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"fee_pool\""];
*/
public Builder setFeePool(
cosmos.distribution.v1beta1.Distribution.FeePool.Builder builderForValue) {
if (feePoolBuilder_ == null) {
feePool_ = builderForValue.build();
onChanged();
} else {
feePoolBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* fee_pool defines the fee pool at genesis.
*
*
* .cosmos.distribution.v1beta1.FeePool fee_pool = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"fee_pool\""];
*/
public Builder mergeFeePool(cosmos.distribution.v1beta1.Distribution.FeePool value) {
if (feePoolBuilder_ == null) {
if (feePool_ != null) {
feePool_ =
cosmos.distribution.v1beta1.Distribution.FeePool.newBuilder(feePool_).mergeFrom(value).buildPartial();
} else {
feePool_ = value;
}
onChanged();
} else {
feePoolBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* fee_pool defines the fee pool at genesis.
*
*
* .cosmos.distribution.v1beta1.FeePool fee_pool = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"fee_pool\""];
*/
public Builder clearFeePool() {
if (feePoolBuilder_ == null) {
feePool_ = null;
onChanged();
} else {
feePool_ = null;
feePoolBuilder_ = null;
}
return this;
}
/**
*
* fee_pool defines the fee pool at genesis.
*
*
* .cosmos.distribution.v1beta1.FeePool fee_pool = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"fee_pool\""];
*/
public cosmos.distribution.v1beta1.Distribution.FeePool.Builder getFeePoolBuilder() {
onChanged();
return getFeePoolFieldBuilder().getBuilder();
}
/**
*
* fee_pool defines the fee pool at genesis.
*
*
* .cosmos.distribution.v1beta1.FeePool fee_pool = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"fee_pool\""];
*/
public cosmos.distribution.v1beta1.Distribution.FeePoolOrBuilder getFeePoolOrBuilder() {
if (feePoolBuilder_ != null) {
return feePoolBuilder_.getMessageOrBuilder();
} else {
return feePool_ == null ?
cosmos.distribution.v1beta1.Distribution.FeePool.getDefaultInstance() : feePool_;
}
}
/**
*
* fee_pool defines the fee pool at genesis.
*
*
* .cosmos.distribution.v1beta1.FeePool fee_pool = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"fee_pool\""];
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.distribution.v1beta1.Distribution.FeePool, cosmos.distribution.v1beta1.Distribution.FeePool.Builder, cosmos.distribution.v1beta1.Distribution.FeePoolOrBuilder>
getFeePoolFieldBuilder() {
if (feePoolBuilder_ == null) {
feePoolBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmos.distribution.v1beta1.Distribution.FeePool, cosmos.distribution.v1beta1.Distribution.FeePool.Builder, cosmos.distribution.v1beta1.Distribution.FeePoolOrBuilder>(
getFeePool(),
getParentForChildren(),
isClean());
feePool_ = null;
}
return feePoolBuilder_;
}
private java.util.List delegatorWithdrawInfos_ =
java.util.Collections.emptyList();
private void ensureDelegatorWithdrawInfosIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
delegatorWithdrawInfos_ = new java.util.ArrayList(delegatorWithdrawInfos_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo, cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo.Builder, cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfoOrBuilder> delegatorWithdrawInfosBuilder_;
/**
*
* fee_pool defines the delegator withdraw infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""];
*/
public java.util.List getDelegatorWithdrawInfosList() {
if (delegatorWithdrawInfosBuilder_ == null) {
return java.util.Collections.unmodifiableList(delegatorWithdrawInfos_);
} else {
return delegatorWithdrawInfosBuilder_.getMessageList();
}
}
/**
*
* fee_pool defines the delegator withdraw infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""];
*/
public int getDelegatorWithdrawInfosCount() {
if (delegatorWithdrawInfosBuilder_ == null) {
return delegatorWithdrawInfos_.size();
} else {
return delegatorWithdrawInfosBuilder_.getCount();
}
}
/**
*
* fee_pool defines the delegator withdraw infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""];
*/
public cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo getDelegatorWithdrawInfos(int index) {
if (delegatorWithdrawInfosBuilder_ == null) {
return delegatorWithdrawInfos_.get(index);
} else {
return delegatorWithdrawInfosBuilder_.getMessage(index);
}
}
/**
*
* fee_pool defines the delegator withdraw infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""];
*/
public Builder setDelegatorWithdrawInfos(
int index, cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo value) {
if (delegatorWithdrawInfosBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDelegatorWithdrawInfosIsMutable();
delegatorWithdrawInfos_.set(index, value);
onChanged();
} else {
delegatorWithdrawInfosBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* fee_pool defines the delegator withdraw infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""];
*/
public Builder setDelegatorWithdrawInfos(
int index, cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo.Builder builderForValue) {
if (delegatorWithdrawInfosBuilder_ == null) {
ensureDelegatorWithdrawInfosIsMutable();
delegatorWithdrawInfos_.set(index, builderForValue.build());
onChanged();
} else {
delegatorWithdrawInfosBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* fee_pool defines the delegator withdraw infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""];
*/
public Builder addDelegatorWithdrawInfos(cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo value) {
if (delegatorWithdrawInfosBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDelegatorWithdrawInfosIsMutable();
delegatorWithdrawInfos_.add(value);
onChanged();
} else {
delegatorWithdrawInfosBuilder_.addMessage(value);
}
return this;
}
/**
*
* fee_pool defines the delegator withdraw infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""];
*/
public Builder addDelegatorWithdrawInfos(
int index, cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo value) {
if (delegatorWithdrawInfosBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDelegatorWithdrawInfosIsMutable();
delegatorWithdrawInfos_.add(index, value);
onChanged();
} else {
delegatorWithdrawInfosBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* fee_pool defines the delegator withdraw infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""];
*/
public Builder addDelegatorWithdrawInfos(
cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo.Builder builderForValue) {
if (delegatorWithdrawInfosBuilder_ == null) {
ensureDelegatorWithdrawInfosIsMutable();
delegatorWithdrawInfos_.add(builderForValue.build());
onChanged();
} else {
delegatorWithdrawInfosBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* fee_pool defines the delegator withdraw infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""];
*/
public Builder addDelegatorWithdrawInfos(
int index, cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo.Builder builderForValue) {
if (delegatorWithdrawInfosBuilder_ == null) {
ensureDelegatorWithdrawInfosIsMutable();
delegatorWithdrawInfos_.add(index, builderForValue.build());
onChanged();
} else {
delegatorWithdrawInfosBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* fee_pool defines the delegator withdraw infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""];
*/
public Builder addAllDelegatorWithdrawInfos(
java.lang.Iterable extends cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo> values) {
if (delegatorWithdrawInfosBuilder_ == null) {
ensureDelegatorWithdrawInfosIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, delegatorWithdrawInfos_);
onChanged();
} else {
delegatorWithdrawInfosBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* fee_pool defines the delegator withdraw infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""];
*/
public Builder clearDelegatorWithdrawInfos() {
if (delegatorWithdrawInfosBuilder_ == null) {
delegatorWithdrawInfos_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
delegatorWithdrawInfosBuilder_.clear();
}
return this;
}
/**
*
* fee_pool defines the delegator withdraw infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""];
*/
public Builder removeDelegatorWithdrawInfos(int index) {
if (delegatorWithdrawInfosBuilder_ == null) {
ensureDelegatorWithdrawInfosIsMutable();
delegatorWithdrawInfos_.remove(index);
onChanged();
} else {
delegatorWithdrawInfosBuilder_.remove(index);
}
return this;
}
/**
*
* fee_pool defines the delegator withdraw infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""];
*/
public cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo.Builder getDelegatorWithdrawInfosBuilder(
int index) {
return getDelegatorWithdrawInfosFieldBuilder().getBuilder(index);
}
/**
*
* fee_pool defines the delegator withdraw infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""];
*/
public cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfoOrBuilder getDelegatorWithdrawInfosOrBuilder(
int index) {
if (delegatorWithdrawInfosBuilder_ == null) {
return delegatorWithdrawInfos_.get(index); } else {
return delegatorWithdrawInfosBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* fee_pool defines the delegator withdraw infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""];
*/
public java.util.List extends cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfoOrBuilder>
getDelegatorWithdrawInfosOrBuilderList() {
if (delegatorWithdrawInfosBuilder_ != null) {
return delegatorWithdrawInfosBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(delegatorWithdrawInfos_);
}
}
/**
*
* fee_pool defines the delegator withdraw infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""];
*/
public cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo.Builder addDelegatorWithdrawInfosBuilder() {
return getDelegatorWithdrawInfosFieldBuilder().addBuilder(
cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo.getDefaultInstance());
}
/**
*
* fee_pool defines the delegator withdraw infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""];
*/
public cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo.Builder addDelegatorWithdrawInfosBuilder(
int index) {
return getDelegatorWithdrawInfosFieldBuilder().addBuilder(
index, cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo.getDefaultInstance());
}
/**
*
* fee_pool defines the delegator withdraw infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""];
*/
public java.util.List
getDelegatorWithdrawInfosBuilderList() {
return getDelegatorWithdrawInfosFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo, cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo.Builder, cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfoOrBuilder>
getDelegatorWithdrawInfosFieldBuilder() {
if (delegatorWithdrawInfosBuilder_ == null) {
delegatorWithdrawInfosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo, cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfo.Builder, cosmos.distribution.v1beta1.Genesis.DelegatorWithdrawInfoOrBuilder>(
delegatorWithdrawInfos_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
delegatorWithdrawInfos_ = null;
}
return delegatorWithdrawInfosBuilder_;
}
private java.lang.Object previousProposer_ = "";
/**
*
* fee_pool defines the previous proposer at genesis.
*
*
* string previous_proposer = 4 [(.gogoproto.moretags) = "yaml:\"previous_proposer\""];
*/
public java.lang.String getPreviousProposer() {
java.lang.Object ref = previousProposer_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
previousProposer_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* fee_pool defines the previous proposer at genesis.
*
*
* string previous_proposer = 4 [(.gogoproto.moretags) = "yaml:\"previous_proposer\""];
*/
public com.google.protobuf.ByteString
getPreviousProposerBytes() {
java.lang.Object ref = previousProposer_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
previousProposer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* fee_pool defines the previous proposer at genesis.
*
*
* string previous_proposer = 4 [(.gogoproto.moretags) = "yaml:\"previous_proposer\""];
*/
public Builder setPreviousProposer(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
previousProposer_ = value;
onChanged();
return this;
}
/**
*
* fee_pool defines the previous proposer at genesis.
*
*
* string previous_proposer = 4 [(.gogoproto.moretags) = "yaml:\"previous_proposer\""];
*/
public Builder clearPreviousProposer() {
previousProposer_ = getDefaultInstance().getPreviousProposer();
onChanged();
return this;
}
/**
*
* fee_pool defines the previous proposer at genesis.
*
*
* string previous_proposer = 4 [(.gogoproto.moretags) = "yaml:\"previous_proposer\""];
*/
public Builder setPreviousProposerBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
previousProposer_ = value;
onChanged();
return this;
}
private java.util.List outstandingRewards_ =
java.util.Collections.emptyList();
private void ensureOutstandingRewardsIsMutable() {
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
outstandingRewards_ = new java.util.ArrayList(outstandingRewards_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord, cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord.Builder, cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecordOrBuilder> outstandingRewardsBuilder_;
/**
*
* fee_pool defines the outstanding rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""];
*/
public java.util.List getOutstandingRewardsList() {
if (outstandingRewardsBuilder_ == null) {
return java.util.Collections.unmodifiableList(outstandingRewards_);
} else {
return outstandingRewardsBuilder_.getMessageList();
}
}
/**
*
* fee_pool defines the outstanding rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""];
*/
public int getOutstandingRewardsCount() {
if (outstandingRewardsBuilder_ == null) {
return outstandingRewards_.size();
} else {
return outstandingRewardsBuilder_.getCount();
}
}
/**
*
* fee_pool defines the outstanding rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""];
*/
public cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord getOutstandingRewards(int index) {
if (outstandingRewardsBuilder_ == null) {
return outstandingRewards_.get(index);
} else {
return outstandingRewardsBuilder_.getMessage(index);
}
}
/**
*
* fee_pool defines the outstanding rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""];
*/
public Builder setOutstandingRewards(
int index, cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord value) {
if (outstandingRewardsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOutstandingRewardsIsMutable();
outstandingRewards_.set(index, value);
onChanged();
} else {
outstandingRewardsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* fee_pool defines the outstanding rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""];
*/
public Builder setOutstandingRewards(
int index, cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord.Builder builderForValue) {
if (outstandingRewardsBuilder_ == null) {
ensureOutstandingRewardsIsMutable();
outstandingRewards_.set(index, builderForValue.build());
onChanged();
} else {
outstandingRewardsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* fee_pool defines the outstanding rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""];
*/
public Builder addOutstandingRewards(cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord value) {
if (outstandingRewardsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOutstandingRewardsIsMutable();
outstandingRewards_.add(value);
onChanged();
} else {
outstandingRewardsBuilder_.addMessage(value);
}
return this;
}
/**
*
* fee_pool defines the outstanding rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""];
*/
public Builder addOutstandingRewards(
int index, cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord value) {
if (outstandingRewardsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOutstandingRewardsIsMutable();
outstandingRewards_.add(index, value);
onChanged();
} else {
outstandingRewardsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* fee_pool defines the outstanding rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""];
*/
public Builder addOutstandingRewards(
cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord.Builder builderForValue) {
if (outstandingRewardsBuilder_ == null) {
ensureOutstandingRewardsIsMutable();
outstandingRewards_.add(builderForValue.build());
onChanged();
} else {
outstandingRewardsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* fee_pool defines the outstanding rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""];
*/
public Builder addOutstandingRewards(
int index, cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord.Builder builderForValue) {
if (outstandingRewardsBuilder_ == null) {
ensureOutstandingRewardsIsMutable();
outstandingRewards_.add(index, builderForValue.build());
onChanged();
} else {
outstandingRewardsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* fee_pool defines the outstanding rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""];
*/
public Builder addAllOutstandingRewards(
java.lang.Iterable extends cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord> values) {
if (outstandingRewardsBuilder_ == null) {
ensureOutstandingRewardsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, outstandingRewards_);
onChanged();
} else {
outstandingRewardsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* fee_pool defines the outstanding rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""];
*/
public Builder clearOutstandingRewards() {
if (outstandingRewardsBuilder_ == null) {
outstandingRewards_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
outstandingRewardsBuilder_.clear();
}
return this;
}
/**
*
* fee_pool defines the outstanding rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""];
*/
public Builder removeOutstandingRewards(int index) {
if (outstandingRewardsBuilder_ == null) {
ensureOutstandingRewardsIsMutable();
outstandingRewards_.remove(index);
onChanged();
} else {
outstandingRewardsBuilder_.remove(index);
}
return this;
}
/**
*
* fee_pool defines the outstanding rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""];
*/
public cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord.Builder getOutstandingRewardsBuilder(
int index) {
return getOutstandingRewardsFieldBuilder().getBuilder(index);
}
/**
*
* fee_pool defines the outstanding rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""];
*/
public cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecordOrBuilder getOutstandingRewardsOrBuilder(
int index) {
if (outstandingRewardsBuilder_ == null) {
return outstandingRewards_.get(index); } else {
return outstandingRewardsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* fee_pool defines the outstanding rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""];
*/
public java.util.List extends cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecordOrBuilder>
getOutstandingRewardsOrBuilderList() {
if (outstandingRewardsBuilder_ != null) {
return outstandingRewardsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(outstandingRewards_);
}
}
/**
*
* fee_pool defines the outstanding rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""];
*/
public cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord.Builder addOutstandingRewardsBuilder() {
return getOutstandingRewardsFieldBuilder().addBuilder(
cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord.getDefaultInstance());
}
/**
*
* fee_pool defines the outstanding rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""];
*/
public cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord.Builder addOutstandingRewardsBuilder(
int index) {
return getOutstandingRewardsFieldBuilder().addBuilder(
index, cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord.getDefaultInstance());
}
/**
*
* fee_pool defines the outstanding rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"outstanding_rewards\""];
*/
public java.util.List
getOutstandingRewardsBuilderList() {
return getOutstandingRewardsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord, cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord.Builder, cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecordOrBuilder>
getOutstandingRewardsFieldBuilder() {
if (outstandingRewardsBuilder_ == null) {
outstandingRewardsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord, cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecord.Builder, cosmos.distribution.v1beta1.Genesis.ValidatorOutstandingRewardsRecordOrBuilder>(
outstandingRewards_,
((bitField0_ & 0x00000010) == 0x00000010),
getParentForChildren(),
isClean());
outstandingRewards_ = null;
}
return outstandingRewardsBuilder_;
}
private java.util.List validatorAccumulatedCommissions_ =
java.util.Collections.emptyList();
private void ensureValidatorAccumulatedCommissionsIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
validatorAccumulatedCommissions_ = new java.util.ArrayList(validatorAccumulatedCommissions_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord, cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord.Builder, cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecordOrBuilder> validatorAccumulatedCommissionsBuilder_;
/**
*
* fee_pool defines the accumulated commisions of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""];
*/
public java.util.List getValidatorAccumulatedCommissionsList() {
if (validatorAccumulatedCommissionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(validatorAccumulatedCommissions_);
} else {
return validatorAccumulatedCommissionsBuilder_.getMessageList();
}
}
/**
*
* fee_pool defines the accumulated commisions of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""];
*/
public int getValidatorAccumulatedCommissionsCount() {
if (validatorAccumulatedCommissionsBuilder_ == null) {
return validatorAccumulatedCommissions_.size();
} else {
return validatorAccumulatedCommissionsBuilder_.getCount();
}
}
/**
*
* fee_pool defines the accumulated commisions of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""];
*/
public cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord getValidatorAccumulatedCommissions(int index) {
if (validatorAccumulatedCommissionsBuilder_ == null) {
return validatorAccumulatedCommissions_.get(index);
} else {
return validatorAccumulatedCommissionsBuilder_.getMessage(index);
}
}
/**
*
* fee_pool defines the accumulated commisions of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""];
*/
public Builder setValidatorAccumulatedCommissions(
int index, cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord value) {
if (validatorAccumulatedCommissionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValidatorAccumulatedCommissionsIsMutable();
validatorAccumulatedCommissions_.set(index, value);
onChanged();
} else {
validatorAccumulatedCommissionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* fee_pool defines the accumulated commisions of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""];
*/
public Builder setValidatorAccumulatedCommissions(
int index, cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord.Builder builderForValue) {
if (validatorAccumulatedCommissionsBuilder_ == null) {
ensureValidatorAccumulatedCommissionsIsMutable();
validatorAccumulatedCommissions_.set(index, builderForValue.build());
onChanged();
} else {
validatorAccumulatedCommissionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* fee_pool defines the accumulated commisions of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""];
*/
public Builder addValidatorAccumulatedCommissions(cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord value) {
if (validatorAccumulatedCommissionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValidatorAccumulatedCommissionsIsMutable();
validatorAccumulatedCommissions_.add(value);
onChanged();
} else {
validatorAccumulatedCommissionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* fee_pool defines the accumulated commisions of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""];
*/
public Builder addValidatorAccumulatedCommissions(
int index, cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord value) {
if (validatorAccumulatedCommissionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValidatorAccumulatedCommissionsIsMutable();
validatorAccumulatedCommissions_.add(index, value);
onChanged();
} else {
validatorAccumulatedCommissionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* fee_pool defines the accumulated commisions of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""];
*/
public Builder addValidatorAccumulatedCommissions(
cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord.Builder builderForValue) {
if (validatorAccumulatedCommissionsBuilder_ == null) {
ensureValidatorAccumulatedCommissionsIsMutable();
validatorAccumulatedCommissions_.add(builderForValue.build());
onChanged();
} else {
validatorAccumulatedCommissionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* fee_pool defines the accumulated commisions of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""];
*/
public Builder addValidatorAccumulatedCommissions(
int index, cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord.Builder builderForValue) {
if (validatorAccumulatedCommissionsBuilder_ == null) {
ensureValidatorAccumulatedCommissionsIsMutable();
validatorAccumulatedCommissions_.add(index, builderForValue.build());
onChanged();
} else {
validatorAccumulatedCommissionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* fee_pool defines the accumulated commisions of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""];
*/
public Builder addAllValidatorAccumulatedCommissions(
java.lang.Iterable extends cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord> values) {
if (validatorAccumulatedCommissionsBuilder_ == null) {
ensureValidatorAccumulatedCommissionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, validatorAccumulatedCommissions_);
onChanged();
} else {
validatorAccumulatedCommissionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* fee_pool defines the accumulated commisions of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""];
*/
public Builder clearValidatorAccumulatedCommissions() {
if (validatorAccumulatedCommissionsBuilder_ == null) {
validatorAccumulatedCommissions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
validatorAccumulatedCommissionsBuilder_.clear();
}
return this;
}
/**
*
* fee_pool defines the accumulated commisions of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""];
*/
public Builder removeValidatorAccumulatedCommissions(int index) {
if (validatorAccumulatedCommissionsBuilder_ == null) {
ensureValidatorAccumulatedCommissionsIsMutable();
validatorAccumulatedCommissions_.remove(index);
onChanged();
} else {
validatorAccumulatedCommissionsBuilder_.remove(index);
}
return this;
}
/**
*
* fee_pool defines the accumulated commisions of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""];
*/
public cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord.Builder getValidatorAccumulatedCommissionsBuilder(
int index) {
return getValidatorAccumulatedCommissionsFieldBuilder().getBuilder(index);
}
/**
*
* fee_pool defines the accumulated commisions of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""];
*/
public cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecordOrBuilder getValidatorAccumulatedCommissionsOrBuilder(
int index) {
if (validatorAccumulatedCommissionsBuilder_ == null) {
return validatorAccumulatedCommissions_.get(index); } else {
return validatorAccumulatedCommissionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* fee_pool defines the accumulated commisions of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""];
*/
public java.util.List extends cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecordOrBuilder>
getValidatorAccumulatedCommissionsOrBuilderList() {
if (validatorAccumulatedCommissionsBuilder_ != null) {
return validatorAccumulatedCommissionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(validatorAccumulatedCommissions_);
}
}
/**
*
* fee_pool defines the accumulated commisions of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""];
*/
public cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord.Builder addValidatorAccumulatedCommissionsBuilder() {
return getValidatorAccumulatedCommissionsFieldBuilder().addBuilder(
cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord.getDefaultInstance());
}
/**
*
* fee_pool defines the accumulated commisions of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""];
*/
public cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord.Builder addValidatorAccumulatedCommissionsBuilder(
int index) {
return getValidatorAccumulatedCommissionsFieldBuilder().addBuilder(
index, cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord.getDefaultInstance());
}
/**
*
* fee_pool defines the accumulated commisions of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""];
*/
public java.util.List
getValidatorAccumulatedCommissionsBuilderList() {
return getValidatorAccumulatedCommissionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord, cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord.Builder, cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecordOrBuilder>
getValidatorAccumulatedCommissionsFieldBuilder() {
if (validatorAccumulatedCommissionsBuilder_ == null) {
validatorAccumulatedCommissionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord, cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecord.Builder, cosmos.distribution.v1beta1.Genesis.ValidatorAccumulatedCommissionRecordOrBuilder>(
validatorAccumulatedCommissions_,
((bitField0_ & 0x00000020) == 0x00000020),
getParentForChildren(),
isClean());
validatorAccumulatedCommissions_ = null;
}
return validatorAccumulatedCommissionsBuilder_;
}
private java.util.List validatorHistoricalRewards_ =
java.util.Collections.emptyList();
private void ensureValidatorHistoricalRewardsIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
validatorHistoricalRewards_ = new java.util.ArrayList(validatorHistoricalRewards_);
bitField0_ |= 0x00000040;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord, cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord.Builder, cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecordOrBuilder> validatorHistoricalRewardsBuilder_;
/**
*
* fee_pool defines the historical rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""];
*/
public java.util.List getValidatorHistoricalRewardsList() {
if (validatorHistoricalRewardsBuilder_ == null) {
return java.util.Collections.unmodifiableList(validatorHistoricalRewards_);
} else {
return validatorHistoricalRewardsBuilder_.getMessageList();
}
}
/**
*
* fee_pool defines the historical rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""];
*/
public int getValidatorHistoricalRewardsCount() {
if (validatorHistoricalRewardsBuilder_ == null) {
return validatorHistoricalRewards_.size();
} else {
return validatorHistoricalRewardsBuilder_.getCount();
}
}
/**
*
* fee_pool defines the historical rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""];
*/
public cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord getValidatorHistoricalRewards(int index) {
if (validatorHistoricalRewardsBuilder_ == null) {
return validatorHistoricalRewards_.get(index);
} else {
return validatorHistoricalRewardsBuilder_.getMessage(index);
}
}
/**
*
* fee_pool defines the historical rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""];
*/
public Builder setValidatorHistoricalRewards(
int index, cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord value) {
if (validatorHistoricalRewardsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValidatorHistoricalRewardsIsMutable();
validatorHistoricalRewards_.set(index, value);
onChanged();
} else {
validatorHistoricalRewardsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* fee_pool defines the historical rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""];
*/
public Builder setValidatorHistoricalRewards(
int index, cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord.Builder builderForValue) {
if (validatorHistoricalRewardsBuilder_ == null) {
ensureValidatorHistoricalRewardsIsMutable();
validatorHistoricalRewards_.set(index, builderForValue.build());
onChanged();
} else {
validatorHistoricalRewardsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* fee_pool defines the historical rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""];
*/
public Builder addValidatorHistoricalRewards(cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord value) {
if (validatorHistoricalRewardsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValidatorHistoricalRewardsIsMutable();
validatorHistoricalRewards_.add(value);
onChanged();
} else {
validatorHistoricalRewardsBuilder_.addMessage(value);
}
return this;
}
/**
*
* fee_pool defines the historical rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""];
*/
public Builder addValidatorHistoricalRewards(
int index, cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord value) {
if (validatorHistoricalRewardsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValidatorHistoricalRewardsIsMutable();
validatorHistoricalRewards_.add(index, value);
onChanged();
} else {
validatorHistoricalRewardsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* fee_pool defines the historical rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""];
*/
public Builder addValidatorHistoricalRewards(
cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord.Builder builderForValue) {
if (validatorHistoricalRewardsBuilder_ == null) {
ensureValidatorHistoricalRewardsIsMutable();
validatorHistoricalRewards_.add(builderForValue.build());
onChanged();
} else {
validatorHistoricalRewardsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* fee_pool defines the historical rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""];
*/
public Builder addValidatorHistoricalRewards(
int index, cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord.Builder builderForValue) {
if (validatorHistoricalRewardsBuilder_ == null) {
ensureValidatorHistoricalRewardsIsMutable();
validatorHistoricalRewards_.add(index, builderForValue.build());
onChanged();
} else {
validatorHistoricalRewardsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* fee_pool defines the historical rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""];
*/
public Builder addAllValidatorHistoricalRewards(
java.lang.Iterable extends cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord> values) {
if (validatorHistoricalRewardsBuilder_ == null) {
ensureValidatorHistoricalRewardsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, validatorHistoricalRewards_);
onChanged();
} else {
validatorHistoricalRewardsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* fee_pool defines the historical rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""];
*/
public Builder clearValidatorHistoricalRewards() {
if (validatorHistoricalRewardsBuilder_ == null) {
validatorHistoricalRewards_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
} else {
validatorHistoricalRewardsBuilder_.clear();
}
return this;
}
/**
*
* fee_pool defines the historical rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""];
*/
public Builder removeValidatorHistoricalRewards(int index) {
if (validatorHistoricalRewardsBuilder_ == null) {
ensureValidatorHistoricalRewardsIsMutable();
validatorHistoricalRewards_.remove(index);
onChanged();
} else {
validatorHistoricalRewardsBuilder_.remove(index);
}
return this;
}
/**
*
* fee_pool defines the historical rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""];
*/
public cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord.Builder getValidatorHistoricalRewardsBuilder(
int index) {
return getValidatorHistoricalRewardsFieldBuilder().getBuilder(index);
}
/**
*
* fee_pool defines the historical rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""];
*/
public cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecordOrBuilder getValidatorHistoricalRewardsOrBuilder(
int index) {
if (validatorHistoricalRewardsBuilder_ == null) {
return validatorHistoricalRewards_.get(index); } else {
return validatorHistoricalRewardsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* fee_pool defines the historical rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""];
*/
public java.util.List extends cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecordOrBuilder>
getValidatorHistoricalRewardsOrBuilderList() {
if (validatorHistoricalRewardsBuilder_ != null) {
return validatorHistoricalRewardsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(validatorHistoricalRewards_);
}
}
/**
*
* fee_pool defines the historical rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""];
*/
public cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord.Builder addValidatorHistoricalRewardsBuilder() {
return getValidatorHistoricalRewardsFieldBuilder().addBuilder(
cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord.getDefaultInstance());
}
/**
*
* fee_pool defines the historical rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""];
*/
public cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord.Builder addValidatorHistoricalRewardsBuilder(
int index) {
return getValidatorHistoricalRewardsFieldBuilder().addBuilder(
index, cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord.getDefaultInstance());
}
/**
*
* fee_pool defines the historical rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_historical_rewards\""];
*/
public java.util.List
getValidatorHistoricalRewardsBuilderList() {
return getValidatorHistoricalRewardsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord, cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord.Builder, cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecordOrBuilder>
getValidatorHistoricalRewardsFieldBuilder() {
if (validatorHistoricalRewardsBuilder_ == null) {
validatorHistoricalRewardsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord, cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecord.Builder, cosmos.distribution.v1beta1.Genesis.ValidatorHistoricalRewardsRecordOrBuilder>(
validatorHistoricalRewards_,
((bitField0_ & 0x00000040) == 0x00000040),
getParentForChildren(),
isClean());
validatorHistoricalRewards_ = null;
}
return validatorHistoricalRewardsBuilder_;
}
private java.util.List validatorCurrentRewards_ =
java.util.Collections.emptyList();
private void ensureValidatorCurrentRewardsIsMutable() {
if (!((bitField0_ & 0x00000080) == 0x00000080)) {
validatorCurrentRewards_ = new java.util.ArrayList(validatorCurrentRewards_);
bitField0_ |= 0x00000080;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord, cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord.Builder, cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecordOrBuilder> validatorCurrentRewardsBuilder_;
/**
*
* fee_pool defines the current rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""];
*/
public java.util.List getValidatorCurrentRewardsList() {
if (validatorCurrentRewardsBuilder_ == null) {
return java.util.Collections.unmodifiableList(validatorCurrentRewards_);
} else {
return validatorCurrentRewardsBuilder_.getMessageList();
}
}
/**
*
* fee_pool defines the current rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""];
*/
public int getValidatorCurrentRewardsCount() {
if (validatorCurrentRewardsBuilder_ == null) {
return validatorCurrentRewards_.size();
} else {
return validatorCurrentRewardsBuilder_.getCount();
}
}
/**
*
* fee_pool defines the current rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""];
*/
public cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord getValidatorCurrentRewards(int index) {
if (validatorCurrentRewardsBuilder_ == null) {
return validatorCurrentRewards_.get(index);
} else {
return validatorCurrentRewardsBuilder_.getMessage(index);
}
}
/**
*
* fee_pool defines the current rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""];
*/
public Builder setValidatorCurrentRewards(
int index, cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord value) {
if (validatorCurrentRewardsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValidatorCurrentRewardsIsMutable();
validatorCurrentRewards_.set(index, value);
onChanged();
} else {
validatorCurrentRewardsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* fee_pool defines the current rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""];
*/
public Builder setValidatorCurrentRewards(
int index, cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord.Builder builderForValue) {
if (validatorCurrentRewardsBuilder_ == null) {
ensureValidatorCurrentRewardsIsMutable();
validatorCurrentRewards_.set(index, builderForValue.build());
onChanged();
} else {
validatorCurrentRewardsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* fee_pool defines the current rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""];
*/
public Builder addValidatorCurrentRewards(cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord value) {
if (validatorCurrentRewardsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValidatorCurrentRewardsIsMutable();
validatorCurrentRewards_.add(value);
onChanged();
} else {
validatorCurrentRewardsBuilder_.addMessage(value);
}
return this;
}
/**
*
* fee_pool defines the current rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""];
*/
public Builder addValidatorCurrentRewards(
int index, cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord value) {
if (validatorCurrentRewardsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValidatorCurrentRewardsIsMutable();
validatorCurrentRewards_.add(index, value);
onChanged();
} else {
validatorCurrentRewardsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* fee_pool defines the current rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""];
*/
public Builder addValidatorCurrentRewards(
cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord.Builder builderForValue) {
if (validatorCurrentRewardsBuilder_ == null) {
ensureValidatorCurrentRewardsIsMutable();
validatorCurrentRewards_.add(builderForValue.build());
onChanged();
} else {
validatorCurrentRewardsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* fee_pool defines the current rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""];
*/
public Builder addValidatorCurrentRewards(
int index, cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord.Builder builderForValue) {
if (validatorCurrentRewardsBuilder_ == null) {
ensureValidatorCurrentRewardsIsMutable();
validatorCurrentRewards_.add(index, builderForValue.build());
onChanged();
} else {
validatorCurrentRewardsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* fee_pool defines the current rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""];
*/
public Builder addAllValidatorCurrentRewards(
java.lang.Iterable extends cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord> values) {
if (validatorCurrentRewardsBuilder_ == null) {
ensureValidatorCurrentRewardsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, validatorCurrentRewards_);
onChanged();
} else {
validatorCurrentRewardsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* fee_pool defines the current rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""];
*/
public Builder clearValidatorCurrentRewards() {
if (validatorCurrentRewardsBuilder_ == null) {
validatorCurrentRewards_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
} else {
validatorCurrentRewardsBuilder_.clear();
}
return this;
}
/**
*
* fee_pool defines the current rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""];
*/
public Builder removeValidatorCurrentRewards(int index) {
if (validatorCurrentRewardsBuilder_ == null) {
ensureValidatorCurrentRewardsIsMutable();
validatorCurrentRewards_.remove(index);
onChanged();
} else {
validatorCurrentRewardsBuilder_.remove(index);
}
return this;
}
/**
*
* fee_pool defines the current rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""];
*/
public cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord.Builder getValidatorCurrentRewardsBuilder(
int index) {
return getValidatorCurrentRewardsFieldBuilder().getBuilder(index);
}
/**
*
* fee_pool defines the current rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""];
*/
public cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecordOrBuilder getValidatorCurrentRewardsOrBuilder(
int index) {
if (validatorCurrentRewardsBuilder_ == null) {
return validatorCurrentRewards_.get(index); } else {
return validatorCurrentRewardsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* fee_pool defines the current rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""];
*/
public java.util.List extends cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecordOrBuilder>
getValidatorCurrentRewardsOrBuilderList() {
if (validatorCurrentRewardsBuilder_ != null) {
return validatorCurrentRewardsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(validatorCurrentRewards_);
}
}
/**
*
* fee_pool defines the current rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""];
*/
public cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord.Builder addValidatorCurrentRewardsBuilder() {
return getValidatorCurrentRewardsFieldBuilder().addBuilder(
cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord.getDefaultInstance());
}
/**
*
* fee_pool defines the current rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""];
*/
public cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord.Builder addValidatorCurrentRewardsBuilder(
int index) {
return getValidatorCurrentRewardsFieldBuilder().addBuilder(
index, cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord.getDefaultInstance());
}
/**
*
* fee_pool defines the current rewards of all validators at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_current_rewards\""];
*/
public java.util.List
getValidatorCurrentRewardsBuilderList() {
return getValidatorCurrentRewardsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord, cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord.Builder, cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecordOrBuilder>
getValidatorCurrentRewardsFieldBuilder() {
if (validatorCurrentRewardsBuilder_ == null) {
validatorCurrentRewardsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord, cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecord.Builder, cosmos.distribution.v1beta1.Genesis.ValidatorCurrentRewardsRecordOrBuilder>(
validatorCurrentRewards_,
((bitField0_ & 0x00000080) == 0x00000080),
getParentForChildren(),
isClean());
validatorCurrentRewards_ = null;
}
return validatorCurrentRewardsBuilder_;
}
private java.util.List delegatorStartingInfos_ =
java.util.Collections.emptyList();
private void ensureDelegatorStartingInfosIsMutable() {
if (!((bitField0_ & 0x00000100) == 0x00000100)) {
delegatorStartingInfos_ = new java.util.ArrayList(delegatorStartingInfos_);
bitField0_ |= 0x00000100;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord, cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord.Builder, cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecordOrBuilder> delegatorStartingInfosBuilder_;
/**
*
* fee_pool defines the delegator starting infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""];
*/
public java.util.List getDelegatorStartingInfosList() {
if (delegatorStartingInfosBuilder_ == null) {
return java.util.Collections.unmodifiableList(delegatorStartingInfos_);
} else {
return delegatorStartingInfosBuilder_.getMessageList();
}
}
/**
*
* fee_pool defines the delegator starting infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""];
*/
public int getDelegatorStartingInfosCount() {
if (delegatorStartingInfosBuilder_ == null) {
return delegatorStartingInfos_.size();
} else {
return delegatorStartingInfosBuilder_.getCount();
}
}
/**
*
* fee_pool defines the delegator starting infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""];
*/
public cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord getDelegatorStartingInfos(int index) {
if (delegatorStartingInfosBuilder_ == null) {
return delegatorStartingInfos_.get(index);
} else {
return delegatorStartingInfosBuilder_.getMessage(index);
}
}
/**
*
* fee_pool defines the delegator starting infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""];
*/
public Builder setDelegatorStartingInfos(
int index, cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord value) {
if (delegatorStartingInfosBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDelegatorStartingInfosIsMutable();
delegatorStartingInfos_.set(index, value);
onChanged();
} else {
delegatorStartingInfosBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* fee_pool defines the delegator starting infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""];
*/
public Builder setDelegatorStartingInfos(
int index, cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord.Builder builderForValue) {
if (delegatorStartingInfosBuilder_ == null) {
ensureDelegatorStartingInfosIsMutable();
delegatorStartingInfos_.set(index, builderForValue.build());
onChanged();
} else {
delegatorStartingInfosBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* fee_pool defines the delegator starting infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""];
*/
public Builder addDelegatorStartingInfos(cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord value) {
if (delegatorStartingInfosBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDelegatorStartingInfosIsMutable();
delegatorStartingInfos_.add(value);
onChanged();
} else {
delegatorStartingInfosBuilder_.addMessage(value);
}
return this;
}
/**
*
* fee_pool defines the delegator starting infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""];
*/
public Builder addDelegatorStartingInfos(
int index, cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord value) {
if (delegatorStartingInfosBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDelegatorStartingInfosIsMutable();
delegatorStartingInfos_.add(index, value);
onChanged();
} else {
delegatorStartingInfosBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* fee_pool defines the delegator starting infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""];
*/
public Builder addDelegatorStartingInfos(
cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord.Builder builderForValue) {
if (delegatorStartingInfosBuilder_ == null) {
ensureDelegatorStartingInfosIsMutable();
delegatorStartingInfos_.add(builderForValue.build());
onChanged();
} else {
delegatorStartingInfosBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* fee_pool defines the delegator starting infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""];
*/
public Builder addDelegatorStartingInfos(
int index, cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord.Builder builderForValue) {
if (delegatorStartingInfosBuilder_ == null) {
ensureDelegatorStartingInfosIsMutable();
delegatorStartingInfos_.add(index, builderForValue.build());
onChanged();
} else {
delegatorStartingInfosBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* fee_pool defines the delegator starting infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""];
*/
public Builder addAllDelegatorStartingInfos(
java.lang.Iterable extends cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord> values) {
if (delegatorStartingInfosBuilder_ == null) {
ensureDelegatorStartingInfosIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, delegatorStartingInfos_);
onChanged();
} else {
delegatorStartingInfosBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* fee_pool defines the delegator starting infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""];
*/
public Builder clearDelegatorStartingInfos() {
if (delegatorStartingInfosBuilder_ == null) {
delegatorStartingInfos_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
} else {
delegatorStartingInfosBuilder_.clear();
}
return this;
}
/**
*
* fee_pool defines the delegator starting infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""];
*/
public Builder removeDelegatorStartingInfos(int index) {
if (delegatorStartingInfosBuilder_ == null) {
ensureDelegatorStartingInfosIsMutable();
delegatorStartingInfos_.remove(index);
onChanged();
} else {
delegatorStartingInfosBuilder_.remove(index);
}
return this;
}
/**
*
* fee_pool defines the delegator starting infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""];
*/
public cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord.Builder getDelegatorStartingInfosBuilder(
int index) {
return getDelegatorStartingInfosFieldBuilder().getBuilder(index);
}
/**
*
* fee_pool defines the delegator starting infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""];
*/
public cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecordOrBuilder getDelegatorStartingInfosOrBuilder(
int index) {
if (delegatorStartingInfosBuilder_ == null) {
return delegatorStartingInfos_.get(index); } else {
return delegatorStartingInfosBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* fee_pool defines the delegator starting infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""];
*/
public java.util.List extends cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecordOrBuilder>
getDelegatorStartingInfosOrBuilderList() {
if (delegatorStartingInfosBuilder_ != null) {
return delegatorStartingInfosBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(delegatorStartingInfos_);
}
}
/**
*
* fee_pool defines the delegator starting infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""];
*/
public cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord.Builder addDelegatorStartingInfosBuilder() {
return getDelegatorStartingInfosFieldBuilder().addBuilder(
cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord.getDefaultInstance());
}
/**
*
* fee_pool defines the delegator starting infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""];
*/
public cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord.Builder addDelegatorStartingInfosBuilder(
int index) {
return getDelegatorStartingInfosFieldBuilder().addBuilder(
index, cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord.getDefaultInstance());
}
/**
*
* fee_pool defines the delegator starting infos at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"delegator_starting_infos\""];
*/
public java.util.List
getDelegatorStartingInfosBuilderList() {
return getDelegatorStartingInfosFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord, cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord.Builder, cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecordOrBuilder>
getDelegatorStartingInfosFieldBuilder() {
if (delegatorStartingInfosBuilder_ == null) {
delegatorStartingInfosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord, cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecord.Builder, cosmos.distribution.v1beta1.Genesis.DelegatorStartingInfoRecordOrBuilder>(
delegatorStartingInfos_,
((bitField0_ & 0x00000100) == 0x00000100),
getParentForChildren(),
isClean());
delegatorStartingInfos_ = null;
}
return delegatorStartingInfosBuilder_;
}
private java.util.List validatorSlashEvents_ =
java.util.Collections.emptyList();
private void ensureValidatorSlashEventsIsMutable() {
if (!((bitField0_ & 0x00000200) == 0x00000200)) {
validatorSlashEvents_ = new java.util.ArrayList(validatorSlashEvents_);
bitField0_ |= 0x00000200;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord, cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord.Builder, cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecordOrBuilder> validatorSlashEventsBuilder_;
/**
*
* fee_pool defines the validator slash events at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""];
*/
public java.util.List getValidatorSlashEventsList() {
if (validatorSlashEventsBuilder_ == null) {
return java.util.Collections.unmodifiableList(validatorSlashEvents_);
} else {
return validatorSlashEventsBuilder_.getMessageList();
}
}
/**
*
* fee_pool defines the validator slash events at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""];
*/
public int getValidatorSlashEventsCount() {
if (validatorSlashEventsBuilder_ == null) {
return validatorSlashEvents_.size();
} else {
return validatorSlashEventsBuilder_.getCount();
}
}
/**
*
* fee_pool defines the validator slash events at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""];
*/
public cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord getValidatorSlashEvents(int index) {
if (validatorSlashEventsBuilder_ == null) {
return validatorSlashEvents_.get(index);
} else {
return validatorSlashEventsBuilder_.getMessage(index);
}
}
/**
*
* fee_pool defines the validator slash events at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""];
*/
public Builder setValidatorSlashEvents(
int index, cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord value) {
if (validatorSlashEventsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValidatorSlashEventsIsMutable();
validatorSlashEvents_.set(index, value);
onChanged();
} else {
validatorSlashEventsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* fee_pool defines the validator slash events at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""];
*/
public Builder setValidatorSlashEvents(
int index, cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord.Builder builderForValue) {
if (validatorSlashEventsBuilder_ == null) {
ensureValidatorSlashEventsIsMutable();
validatorSlashEvents_.set(index, builderForValue.build());
onChanged();
} else {
validatorSlashEventsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* fee_pool defines the validator slash events at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""];
*/
public Builder addValidatorSlashEvents(cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord value) {
if (validatorSlashEventsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValidatorSlashEventsIsMutable();
validatorSlashEvents_.add(value);
onChanged();
} else {
validatorSlashEventsBuilder_.addMessage(value);
}
return this;
}
/**
*
* fee_pool defines the validator slash events at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""];
*/
public Builder addValidatorSlashEvents(
int index, cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord value) {
if (validatorSlashEventsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValidatorSlashEventsIsMutable();
validatorSlashEvents_.add(index, value);
onChanged();
} else {
validatorSlashEventsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* fee_pool defines the validator slash events at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""];
*/
public Builder addValidatorSlashEvents(
cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord.Builder builderForValue) {
if (validatorSlashEventsBuilder_ == null) {
ensureValidatorSlashEventsIsMutable();
validatorSlashEvents_.add(builderForValue.build());
onChanged();
} else {
validatorSlashEventsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* fee_pool defines the validator slash events at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""];
*/
public Builder addValidatorSlashEvents(
int index, cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord.Builder builderForValue) {
if (validatorSlashEventsBuilder_ == null) {
ensureValidatorSlashEventsIsMutable();
validatorSlashEvents_.add(index, builderForValue.build());
onChanged();
} else {
validatorSlashEventsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* fee_pool defines the validator slash events at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""];
*/
public Builder addAllValidatorSlashEvents(
java.lang.Iterable extends cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord> values) {
if (validatorSlashEventsBuilder_ == null) {
ensureValidatorSlashEventsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, validatorSlashEvents_);
onChanged();
} else {
validatorSlashEventsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* fee_pool defines the validator slash events at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""];
*/
public Builder clearValidatorSlashEvents() {
if (validatorSlashEventsBuilder_ == null) {
validatorSlashEvents_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
} else {
validatorSlashEventsBuilder_.clear();
}
return this;
}
/**
*
* fee_pool defines the validator slash events at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""];
*/
public Builder removeValidatorSlashEvents(int index) {
if (validatorSlashEventsBuilder_ == null) {
ensureValidatorSlashEventsIsMutable();
validatorSlashEvents_.remove(index);
onChanged();
} else {
validatorSlashEventsBuilder_.remove(index);
}
return this;
}
/**
*
* fee_pool defines the validator slash events at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""];
*/
public cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord.Builder getValidatorSlashEventsBuilder(
int index) {
return getValidatorSlashEventsFieldBuilder().getBuilder(index);
}
/**
*
* fee_pool defines the validator slash events at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""];
*/
public cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecordOrBuilder getValidatorSlashEventsOrBuilder(
int index) {
if (validatorSlashEventsBuilder_ == null) {
return validatorSlashEvents_.get(index); } else {
return validatorSlashEventsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* fee_pool defines the validator slash events at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""];
*/
public java.util.List extends cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecordOrBuilder>
getValidatorSlashEventsOrBuilderList() {
if (validatorSlashEventsBuilder_ != null) {
return validatorSlashEventsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(validatorSlashEvents_);
}
}
/**
*
* fee_pool defines the validator slash events at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""];
*/
public cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord.Builder addValidatorSlashEventsBuilder() {
return getValidatorSlashEventsFieldBuilder().addBuilder(
cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord.getDefaultInstance());
}
/**
*
* fee_pool defines the validator slash events at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""];
*/
public cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord.Builder addValidatorSlashEventsBuilder(
int index) {
return getValidatorSlashEventsFieldBuilder().addBuilder(
index, cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord.getDefaultInstance());
}
/**
*
* fee_pool defines the validator slash events at genesis.
*
*
* repeated .cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"validator_slash_events\""];
*/
public java.util.List
getValidatorSlashEventsBuilderList() {
return getValidatorSlashEventsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord, cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord.Builder, cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecordOrBuilder>
getValidatorSlashEventsFieldBuilder() {
if (validatorSlashEventsBuilder_ == null) {
validatorSlashEventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord, cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecord.Builder, cosmos.distribution.v1beta1.Genesis.ValidatorSlashEventRecordOrBuilder>(
validatorSlashEvents_,
((bitField0_ & 0x00000200) == 0x00000200),
getParentForChildren(),
isClean());
validatorSlashEvents_ = null;
}
return validatorSlashEventsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cosmos.distribution.v1beta1.GenesisState)
}
// @@protoc_insertion_point(class_scope:cosmos.distribution.v1beta1.GenesisState)
private static final cosmos.distribution.v1beta1.Genesis.GenesisState DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.distribution.v1beta1.Genesis.GenesisState();
}
public static cosmos.distribution.v1beta1.Genesis.GenesisState getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GenesisState parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GenesisState(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cosmos.distribution.v1beta1.Genesis.GenesisState getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_distribution_v1beta1_DelegatorWithdrawInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_distribution_v1beta1_DelegatorWithdrawInfo_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_distribution_v1beta1_ValidatorOutstandingRewardsRecord_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_distribution_v1beta1_ValidatorOutstandingRewardsRecord_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_distribution_v1beta1_ValidatorAccumulatedCommissionRecord_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_distribution_v1beta1_ValidatorAccumulatedCommissionRecord_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_distribution_v1beta1_ValidatorHistoricalRewardsRecord_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_distribution_v1beta1_ValidatorHistoricalRewardsRecord_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_distribution_v1beta1_ValidatorCurrentRewardsRecord_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_distribution_v1beta1_ValidatorCurrentRewardsRecord_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_distribution_v1beta1_DelegatorStartingInfoRecord_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_distribution_v1beta1_DelegatorStartingInfoRecord_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_distribution_v1beta1_ValidatorSlashEventRecord_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_distribution_v1beta1_ValidatorSlashEventRecord_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_distribution_v1beta1_GenesisState_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_distribution_v1beta1_GenesisState_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n)cosmos/distribution/v1beta1/genesis.pr" +
"oto\022\033cosmos.distribution.v1beta1\032\024gogopr" +
"oto/gogo.proto\032\036cosmos/base/v1beta1/coin" +
".proto\032.cosmos/distribution/v1beta1/dist" +
"ribution.proto\"\221\001\n\025DelegatorWithdrawInfo" +
"\0227\n\021delegator_address\030\001 \001(\tB\034\362\336\037\030yaml:\"d" +
"elegator_address\"\0225\n\020withdraw_address\030\002 " +
"\001(\tB\033\362\336\037\027yaml:\"withdraw_address\":\010\350\240\037\000\210\240" +
"\037\000\"\365\001\n!ValidatorOutstandingRewardsRecord" +
"\0227\n\021validator_address\030\001 \001(\tB\034\362\336\037\030yaml:\"v" +
"alidator_address\"\022\214\001\n\023outstanding_reward" +
"s\030\002 \003(\0132\034.cosmos.base.v1beta1.DecCoinBQ\252" +
"\337\037+github.com/cosmos/cosmos-sdk/types.De" +
"cCoins\310\336\037\000\362\336\037\032yaml:\"outstanding_rewards\"" +
":\010\350\240\037\000\210\240\037\000\"\327\001\n$ValidatorAccumulatedCommi" +
"ssionRecord\0227\n\021validator_address\030\001 \001(\tB\034" +
"\362\336\037\030yaml:\"validator_address\"\022l\n\013accumula" +
"ted\030\002 \001(\0132;.cosmos.distribution.v1beta1." +
"ValidatorAccumulatedCommissionB\032\310\336\037\000\362\336\037\022" +
"yaml:\"accumulated\":\010\350\240\037\000\210\240\037\000\"\327\001\n Validat" +
"orHistoricalRewardsRecord\0227\n\021validator_a" +
"ddress\030\001 \001(\tB\034\362\336\037\030yaml:\"validator_addres" +
"s\"\022\016\n\006period\030\002 \001(\004\022`\n\007rewards\030\003 \001(\01327.co" +
"smos.distribution.v1beta1.ValidatorHisto" +
"ricalRewardsB\026\310\336\037\000\362\336\037\016yaml:\"rewards\":\010\350\240" +
"\037\000\210\240\037\000\"\301\001\n\035ValidatorCurrentRewardsRecord" +
"\0227\n\021validator_address\030\001 \001(\tB\034\362\336\037\030yaml:\"v" +
"alidator_address\"\022]\n\007rewards\030\002 \001(\01324.cos" +
"mos.distribution.v1beta1.ValidatorCurren" +
"tRewardsB\026\310\336\037\000\362\336\037\016yaml:\"rewards\":\010\350\240\037\000\210\240" +
"\037\000\"\202\002\n\033DelegatorStartingInfoRecord\0227\n\021de" +
"legator_address\030\001 \001(\tB\034\362\336\037\030yaml:\"delegat" +
"or_address\"\0227\n\021validator_address\030\002 \001(\tB\034" +
"\362\336\037\030yaml:\"validator_address\"\022g\n\rstarting" +
"_info\030\003 \001(\01322.cosmos.distribution.v1beta" +
"1.DelegatorStartingInfoB\034\310\336\037\000\362\336\037\024yaml:\"s" +
"tarting_info\":\010\350\240\037\000\210\240\037\000\"\345\001\n\031ValidatorSla" +
"shEventRecord\0227\n\021validator_address\030\001 \001(\t" +
"B\034\362\336\037\030yaml:\"validator_address\"\022\016\n\006height" +
"\030\002 \001(\004\022\016\n\006period\030\003 \001(\004\022e\n\025validator_slas" +
"h_event\030\004 \001(\01320.cosmos.distribution.v1be" +
"ta1.ValidatorSlashEventB\024\310\336\037\000\362\336\037\014yaml:\"e" +
"vent\":\010\350\240\037\000\210\240\037\000\"\261\t\n\014GenesisState\022J\n\006para" +
"ms\030\001 \001(\0132#.cosmos.distribution.v1beta1.P" +
"aramsB\025\310\336\037\000\362\336\037\ryaml:\"params\"\022O\n\010fee_pool" +
"\030\002 \001(\0132$.cosmos.distribution.v1beta1.Fee" +
"PoolB\027\310\336\037\000\362\336\037\017yaml:\"fee_pool\"\022}\n\030delegat" +
"or_withdraw_infos\030\003 \003(\01322.cosmos.distrib" +
"ution.v1beta1.DelegatorWithdrawInfoB\'\310\336\037" +
"\000\362\336\037\037yaml:\"delegator_withdraw_infos\"\0227\n\021" +
"previous_proposer\030\004 \001(\tB\034\362\336\037\030yaml:\"previ" +
"ous_proposer\"\022\177\n\023outstanding_rewards\030\005 \003" +
"(\0132>.cosmos.distribution.v1beta1.Validat" +
"orOutstandingRewardsRecordB\"\310\336\037\000\362\336\037\032yaml" +
":\"outstanding_rewards\"\022\236\001\n!validator_acc" +
"umulated_commissions\030\006 \003(\0132A.cosmos.dist" +
"ribution.v1beta1.ValidatorAccumulatedCom" +
"missionRecordB0\310\336\037\000\362\336\037(yaml:\"validator_a" +
"ccumulated_commissions\"\022\220\001\n\034validator_hi" +
"storical_rewards\030\007 \003(\0132=.cosmos.distribu" +
"tion.v1beta1.ValidatorHistoricalRewardsR" +
"ecordB+\310\336\037\000\362\336\037#yaml:\"validator_historica" +
"l_rewards\"\022\207\001\n\031validator_current_rewards" +
"\030\010 \003(\0132:.cosmos.distribution.v1beta1.Val" +
"idatorCurrentRewardsRecordB(\310\336\037\000\362\336\037 yaml" +
":\"validator_current_rewards\"\022\203\001\n\030delegat" +
"or_starting_infos\030\t \003(\01328.cosmos.distrib" +
"ution.v1beta1.DelegatorStartingInfoRecor" +
"dB\'\310\336\037\000\362\336\037\037yaml:\"delegator_starting_info" +
"s\"\022}\n\026validator_slash_events\030\n \003(\01326.cos" +
"mos.distribution.v1beta1.ValidatorSlashE" +
"ventRecordB%\310\336\037\000\362\336\037\035yaml:\"validator_slas" +
"h_events\":\010\350\240\037\000\210\240\037\000B7Z1github.com/cosmos" +
"/cosmos-sdk/x/distribution/types\250\342\036\001b\006pr" +
"oto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.GoGoProtos.getDescriptor(),
cosmos.base.v1beta1.CoinOuterClass.getDescriptor(),
cosmos.distribution.v1beta1.Distribution.getDescriptor(),
}, assigner);
internal_static_cosmos_distribution_v1beta1_DelegatorWithdrawInfo_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_cosmos_distribution_v1beta1_DelegatorWithdrawInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_distribution_v1beta1_DelegatorWithdrawInfo_descriptor,
new java.lang.String[] { "DelegatorAddress", "WithdrawAddress", });
internal_static_cosmos_distribution_v1beta1_ValidatorOutstandingRewardsRecord_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_cosmos_distribution_v1beta1_ValidatorOutstandingRewardsRecord_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_distribution_v1beta1_ValidatorOutstandingRewardsRecord_descriptor,
new java.lang.String[] { "ValidatorAddress", "OutstandingRewards", });
internal_static_cosmos_distribution_v1beta1_ValidatorAccumulatedCommissionRecord_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_cosmos_distribution_v1beta1_ValidatorAccumulatedCommissionRecord_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_distribution_v1beta1_ValidatorAccumulatedCommissionRecord_descriptor,
new java.lang.String[] { "ValidatorAddress", "Accumulated", });
internal_static_cosmos_distribution_v1beta1_ValidatorHistoricalRewardsRecord_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_cosmos_distribution_v1beta1_ValidatorHistoricalRewardsRecord_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_distribution_v1beta1_ValidatorHistoricalRewardsRecord_descriptor,
new java.lang.String[] { "ValidatorAddress", "Period", "Rewards", });
internal_static_cosmos_distribution_v1beta1_ValidatorCurrentRewardsRecord_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_cosmos_distribution_v1beta1_ValidatorCurrentRewardsRecord_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_distribution_v1beta1_ValidatorCurrentRewardsRecord_descriptor,
new java.lang.String[] { "ValidatorAddress", "Rewards", });
internal_static_cosmos_distribution_v1beta1_DelegatorStartingInfoRecord_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_cosmos_distribution_v1beta1_DelegatorStartingInfoRecord_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_distribution_v1beta1_DelegatorStartingInfoRecord_descriptor,
new java.lang.String[] { "DelegatorAddress", "ValidatorAddress", "StartingInfo", });
internal_static_cosmos_distribution_v1beta1_ValidatorSlashEventRecord_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_cosmos_distribution_v1beta1_ValidatorSlashEventRecord_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_distribution_v1beta1_ValidatorSlashEventRecord_descriptor,
new java.lang.String[] { "ValidatorAddress", "Height", "Period", "ValidatorSlashEvent", });
internal_static_cosmos_distribution_v1beta1_GenesisState_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_cosmos_distribution_v1beta1_GenesisState_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_distribution_v1beta1_GenesisState_descriptor,
new java.lang.String[] { "Params", "FeePool", "DelegatorWithdrawInfos", "PreviousProposer", "OutstandingRewards", "ValidatorAccumulatedCommissions", "ValidatorHistoricalRewards", "ValidatorCurrentRewards", "DelegatorStartingInfos", "ValidatorSlashEvents", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.protobuf.GoGoProtos.castrepeated);
registry.add(com.google.protobuf.GoGoProtos.equal);
registry.add(com.google.protobuf.GoGoProtos.equalAll);
registry.add(com.google.protobuf.GoGoProtos.goprotoGetters);
registry.add(com.google.protobuf.GoGoProtos.moretags);
registry.add(com.google.protobuf.GoGoProtos.nullable);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.protobuf.GoGoProtos.getDescriptor();
cosmos.base.v1beta1.CoinOuterClass.getDescriptor();
cosmos.distribution.v1beta1.Distribution.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}