![JAR search and dependency download from the Maven repository](/logo.png)
cosmos.gov.v1beta1.Genesis Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: cosmos/gov/v1beta1/genesis.proto
package cosmos.gov.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 GenesisStateOrBuilder extends
// @@protoc_insertion_point(interface_extends:cosmos.gov.v1beta1.GenesisState)
com.google.protobuf.MessageOrBuilder {
/**
*
* starting_proposal_id is the ID of the starting proposal.
*
*
* uint64 starting_proposal_id = 1 [(.gogoproto.moretags) = "yaml:\"starting_proposal_id\""];
*/
long getStartingProposalId();
/**
*
* deposits defines all the deposits present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"];
*/
java.util.List
getDepositsList();
/**
*
* deposits defines all the deposits present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"];
*/
cosmos.gov.v1beta1.Gov.Deposit getDeposits(int index);
/**
*
* deposits defines all the deposits present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"];
*/
int getDepositsCount();
/**
*
* deposits defines all the deposits present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"];
*/
java.util.List extends cosmos.gov.v1beta1.Gov.DepositOrBuilder>
getDepositsOrBuilderList();
/**
*
* deposits defines all the deposits present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"];
*/
cosmos.gov.v1beta1.Gov.DepositOrBuilder getDepositsOrBuilder(
int index);
/**
*
* votes defines all the votes present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"];
*/
java.util.List
getVotesList();
/**
*
* votes defines all the votes present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"];
*/
cosmos.gov.v1beta1.Gov.Vote getVotes(int index);
/**
*
* votes defines all the votes present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"];
*/
int getVotesCount();
/**
*
* votes defines all the votes present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"];
*/
java.util.List extends cosmos.gov.v1beta1.Gov.VoteOrBuilder>
getVotesOrBuilderList();
/**
*
* votes defines all the votes present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"];
*/
cosmos.gov.v1beta1.Gov.VoteOrBuilder getVotesOrBuilder(
int index);
/**
*
* proposals defines all the proposals present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"];
*/
java.util.List
getProposalsList();
/**
*
* proposals defines all the proposals present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"];
*/
cosmos.gov.v1beta1.Gov.Proposal getProposals(int index);
/**
*
* proposals defines all the proposals present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"];
*/
int getProposalsCount();
/**
*
* proposals defines all the proposals present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"];
*/
java.util.List extends cosmos.gov.v1beta1.Gov.ProposalOrBuilder>
getProposalsOrBuilderList();
/**
*
* proposals defines all the proposals present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"];
*/
cosmos.gov.v1beta1.Gov.ProposalOrBuilder getProposalsOrBuilder(
int index);
/**
*
* params defines all the paramaters of related to deposit.
*
*
* .cosmos.gov.v1beta1.DepositParams deposit_params = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_params\""];
*/
boolean hasDepositParams();
/**
*
* params defines all the paramaters of related to deposit.
*
*
* .cosmos.gov.v1beta1.DepositParams deposit_params = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_params\""];
*/
cosmos.gov.v1beta1.Gov.DepositParams getDepositParams();
/**
*
* params defines all the paramaters of related to deposit.
*
*
* .cosmos.gov.v1beta1.DepositParams deposit_params = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_params\""];
*/
cosmos.gov.v1beta1.Gov.DepositParamsOrBuilder getDepositParamsOrBuilder();
/**
*
* params defines all the paramaters of related to voting.
*
*
* .cosmos.gov.v1beta1.VotingParams voting_params = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_params\""];
*/
boolean hasVotingParams();
/**
*
* params defines all the paramaters of related to voting.
*
*
* .cosmos.gov.v1beta1.VotingParams voting_params = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_params\""];
*/
cosmos.gov.v1beta1.Gov.VotingParams getVotingParams();
/**
*
* params defines all the paramaters of related to voting.
*
*
* .cosmos.gov.v1beta1.VotingParams voting_params = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_params\""];
*/
cosmos.gov.v1beta1.Gov.VotingParamsOrBuilder getVotingParamsOrBuilder();
/**
*
* params defines all the paramaters of related to tally.
*
*
* .cosmos.gov.v1beta1.TallyParams tally_params = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tally_params\""];
*/
boolean hasTallyParams();
/**
*
* params defines all the paramaters of related to tally.
*
*
* .cosmos.gov.v1beta1.TallyParams tally_params = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tally_params\""];
*/
cosmos.gov.v1beta1.Gov.TallyParams getTallyParams();
/**
*
* params defines all the paramaters of related to tally.
*
*
* .cosmos.gov.v1beta1.TallyParams tally_params = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tally_params\""];
*/
cosmos.gov.v1beta1.Gov.TallyParamsOrBuilder getTallyParamsOrBuilder();
}
/**
*
* GenesisState defines the gov module's genesis state.
*
*
* Protobuf type {@code cosmos.gov.v1beta1.GenesisState}
*/
public static final class GenesisState extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.gov.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() {
startingProposalId_ = 0L;
deposits_ = java.util.Collections.emptyList();
votes_ = java.util.Collections.emptyList();
proposals_ = 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 8: {
startingProposalId_ = input.readUInt64();
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
deposits_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
deposits_.add(
input.readMessage(cosmos.gov.v1beta1.Gov.Deposit.parser(), extensionRegistry));
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
votes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
votes_.add(
input.readMessage(cosmos.gov.v1beta1.Gov.Vote.parser(), extensionRegistry));
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
proposals_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
proposals_.add(
input.readMessage(cosmos.gov.v1beta1.Gov.Proposal.parser(), extensionRegistry));
break;
}
case 42: {
cosmos.gov.v1beta1.Gov.DepositParams.Builder subBuilder = null;
if (depositParams_ != null) {
subBuilder = depositParams_.toBuilder();
}
depositParams_ = input.readMessage(cosmos.gov.v1beta1.Gov.DepositParams.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(depositParams_);
depositParams_ = subBuilder.buildPartial();
}
break;
}
case 50: {
cosmos.gov.v1beta1.Gov.VotingParams.Builder subBuilder = null;
if (votingParams_ != null) {
subBuilder = votingParams_.toBuilder();
}
votingParams_ = input.readMessage(cosmos.gov.v1beta1.Gov.VotingParams.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(votingParams_);
votingParams_ = subBuilder.buildPartial();
}
break;
}
case 58: {
cosmos.gov.v1beta1.Gov.TallyParams.Builder subBuilder = null;
if (tallyParams_ != null) {
subBuilder = tallyParams_.toBuilder();
}
tallyParams_ = input.readMessage(cosmos.gov.v1beta1.Gov.TallyParams.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tallyParams_);
tallyParams_ = 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 {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
deposits_ = java.util.Collections.unmodifiableList(deposits_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
votes_ = java.util.Collections.unmodifiableList(votes_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
proposals_ = java.util.Collections.unmodifiableList(proposals_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.gov.v1beta1.Genesis.internal_static_cosmos_gov_v1beta1_GenesisState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.gov.v1beta1.Genesis.internal_static_cosmos_gov_v1beta1_GenesisState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.gov.v1beta1.Genesis.GenesisState.class, cosmos.gov.v1beta1.Genesis.GenesisState.Builder.class);
}
private int bitField0_;
public static final int STARTING_PROPOSAL_ID_FIELD_NUMBER = 1;
private long startingProposalId_;
/**
*
* starting_proposal_id is the ID of the starting proposal.
*
*
* uint64 starting_proposal_id = 1 [(.gogoproto.moretags) = "yaml:\"starting_proposal_id\""];
*/
public long getStartingProposalId() {
return startingProposalId_;
}
public static final int DEPOSITS_FIELD_NUMBER = 2;
private java.util.List deposits_;
/**
*
* deposits defines all the deposits present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"];
*/
public java.util.List getDepositsList() {
return deposits_;
}
/**
*
* deposits defines all the deposits present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"];
*/
public java.util.List extends cosmos.gov.v1beta1.Gov.DepositOrBuilder>
getDepositsOrBuilderList() {
return deposits_;
}
/**
*
* deposits defines all the deposits present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"];
*/
public int getDepositsCount() {
return deposits_.size();
}
/**
*
* deposits defines all the deposits present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"];
*/
public cosmos.gov.v1beta1.Gov.Deposit getDeposits(int index) {
return deposits_.get(index);
}
/**
*
* deposits defines all the deposits present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"];
*/
public cosmos.gov.v1beta1.Gov.DepositOrBuilder getDepositsOrBuilder(
int index) {
return deposits_.get(index);
}
public static final int VOTES_FIELD_NUMBER = 3;
private java.util.List votes_;
/**
*
* votes defines all the votes present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"];
*/
public java.util.List getVotesList() {
return votes_;
}
/**
*
* votes defines all the votes present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"];
*/
public java.util.List extends cosmos.gov.v1beta1.Gov.VoteOrBuilder>
getVotesOrBuilderList() {
return votes_;
}
/**
*
* votes defines all the votes present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"];
*/
public int getVotesCount() {
return votes_.size();
}
/**
*
* votes defines all the votes present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"];
*/
public cosmos.gov.v1beta1.Gov.Vote getVotes(int index) {
return votes_.get(index);
}
/**
*
* votes defines all the votes present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"];
*/
public cosmos.gov.v1beta1.Gov.VoteOrBuilder getVotesOrBuilder(
int index) {
return votes_.get(index);
}
public static final int PROPOSALS_FIELD_NUMBER = 4;
private java.util.List proposals_;
/**
*
* proposals defines all the proposals present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"];
*/
public java.util.List getProposalsList() {
return proposals_;
}
/**
*
* proposals defines all the proposals present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"];
*/
public java.util.List extends cosmos.gov.v1beta1.Gov.ProposalOrBuilder>
getProposalsOrBuilderList() {
return proposals_;
}
/**
*
* proposals defines all the proposals present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"];
*/
public int getProposalsCount() {
return proposals_.size();
}
/**
*
* proposals defines all the proposals present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"];
*/
public cosmos.gov.v1beta1.Gov.Proposal getProposals(int index) {
return proposals_.get(index);
}
/**
*
* proposals defines all the proposals present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"];
*/
public cosmos.gov.v1beta1.Gov.ProposalOrBuilder getProposalsOrBuilder(
int index) {
return proposals_.get(index);
}
public static final int DEPOSIT_PARAMS_FIELD_NUMBER = 5;
private cosmos.gov.v1beta1.Gov.DepositParams depositParams_;
/**
*
* params defines all the paramaters of related to deposit.
*
*
* .cosmos.gov.v1beta1.DepositParams deposit_params = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_params\""];
*/
public boolean hasDepositParams() {
return depositParams_ != null;
}
/**
*
* params defines all the paramaters of related to deposit.
*
*
* .cosmos.gov.v1beta1.DepositParams deposit_params = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_params\""];
*/
public cosmos.gov.v1beta1.Gov.DepositParams getDepositParams() {
return depositParams_ == null ? cosmos.gov.v1beta1.Gov.DepositParams.getDefaultInstance() : depositParams_;
}
/**
*
* params defines all the paramaters of related to deposit.
*
*
* .cosmos.gov.v1beta1.DepositParams deposit_params = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_params\""];
*/
public cosmos.gov.v1beta1.Gov.DepositParamsOrBuilder getDepositParamsOrBuilder() {
return getDepositParams();
}
public static final int VOTING_PARAMS_FIELD_NUMBER = 6;
private cosmos.gov.v1beta1.Gov.VotingParams votingParams_;
/**
*
* params defines all the paramaters of related to voting.
*
*
* .cosmos.gov.v1beta1.VotingParams voting_params = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_params\""];
*/
public boolean hasVotingParams() {
return votingParams_ != null;
}
/**
*
* params defines all the paramaters of related to voting.
*
*
* .cosmos.gov.v1beta1.VotingParams voting_params = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_params\""];
*/
public cosmos.gov.v1beta1.Gov.VotingParams getVotingParams() {
return votingParams_ == null ? cosmos.gov.v1beta1.Gov.VotingParams.getDefaultInstance() : votingParams_;
}
/**
*
* params defines all the paramaters of related to voting.
*
*
* .cosmos.gov.v1beta1.VotingParams voting_params = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_params\""];
*/
public cosmos.gov.v1beta1.Gov.VotingParamsOrBuilder getVotingParamsOrBuilder() {
return getVotingParams();
}
public static final int TALLY_PARAMS_FIELD_NUMBER = 7;
private cosmos.gov.v1beta1.Gov.TallyParams tallyParams_;
/**
*
* params defines all the paramaters of related to tally.
*
*
* .cosmos.gov.v1beta1.TallyParams tally_params = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tally_params\""];
*/
public boolean hasTallyParams() {
return tallyParams_ != null;
}
/**
*
* params defines all the paramaters of related to tally.
*
*
* .cosmos.gov.v1beta1.TallyParams tally_params = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tally_params\""];
*/
public cosmos.gov.v1beta1.Gov.TallyParams getTallyParams() {
return tallyParams_ == null ? cosmos.gov.v1beta1.Gov.TallyParams.getDefaultInstance() : tallyParams_;
}
/**
*
* params defines all the paramaters of related to tally.
*
*
* .cosmos.gov.v1beta1.TallyParams tally_params = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tally_params\""];
*/
public cosmos.gov.v1beta1.Gov.TallyParamsOrBuilder getTallyParamsOrBuilder() {
return getTallyParams();
}
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 (startingProposalId_ != 0L) {
output.writeUInt64(1, startingProposalId_);
}
for (int i = 0; i < deposits_.size(); i++) {
output.writeMessage(2, deposits_.get(i));
}
for (int i = 0; i < votes_.size(); i++) {
output.writeMessage(3, votes_.get(i));
}
for (int i = 0; i < proposals_.size(); i++) {
output.writeMessage(4, proposals_.get(i));
}
if (depositParams_ != null) {
output.writeMessage(5, getDepositParams());
}
if (votingParams_ != null) {
output.writeMessage(6, getVotingParams());
}
if (tallyParams_ != null) {
output.writeMessage(7, getTallyParams());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (startingProposalId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, startingProposalId_);
}
for (int i = 0; i < deposits_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, deposits_.get(i));
}
for (int i = 0; i < votes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, votes_.get(i));
}
for (int i = 0; i < proposals_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, proposals_.get(i));
}
if (depositParams_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getDepositParams());
}
if (votingParams_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getVotingParams());
}
if (tallyParams_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getTallyParams());
}
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.gov.v1beta1.Genesis.GenesisState)) {
return super.equals(obj);
}
cosmos.gov.v1beta1.Genesis.GenesisState other = (cosmos.gov.v1beta1.Genesis.GenesisState) obj;
boolean result = true;
result = result && (getStartingProposalId()
== other.getStartingProposalId());
result = result && getDepositsList()
.equals(other.getDepositsList());
result = result && getVotesList()
.equals(other.getVotesList());
result = result && getProposalsList()
.equals(other.getProposalsList());
result = result && (hasDepositParams() == other.hasDepositParams());
if (hasDepositParams()) {
result = result && getDepositParams()
.equals(other.getDepositParams());
}
result = result && (hasVotingParams() == other.hasVotingParams());
if (hasVotingParams()) {
result = result && getVotingParams()
.equals(other.getVotingParams());
}
result = result && (hasTallyParams() == other.hasTallyParams());
if (hasTallyParams()) {
result = result && getTallyParams()
.equals(other.getTallyParams());
}
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) + STARTING_PROPOSAL_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartingProposalId());
if (getDepositsCount() > 0) {
hash = (37 * hash) + DEPOSITS_FIELD_NUMBER;
hash = (53 * hash) + getDepositsList().hashCode();
}
if (getVotesCount() > 0) {
hash = (37 * hash) + VOTES_FIELD_NUMBER;
hash = (53 * hash) + getVotesList().hashCode();
}
if (getProposalsCount() > 0) {
hash = (37 * hash) + PROPOSALS_FIELD_NUMBER;
hash = (53 * hash) + getProposalsList().hashCode();
}
if (hasDepositParams()) {
hash = (37 * hash) + DEPOSIT_PARAMS_FIELD_NUMBER;
hash = (53 * hash) + getDepositParams().hashCode();
}
if (hasVotingParams()) {
hash = (37 * hash) + VOTING_PARAMS_FIELD_NUMBER;
hash = (53 * hash) + getVotingParams().hashCode();
}
if (hasTallyParams()) {
hash = (37 * hash) + TALLY_PARAMS_FIELD_NUMBER;
hash = (53 * hash) + getTallyParams().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.gov.v1beta1.Genesis.GenesisState parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.gov.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.gov.v1beta1.Genesis.GenesisState parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.gov.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.gov.v1beta1.Genesis.GenesisState parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.gov.v1beta1.Genesis.GenesisState parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.gov.v1beta1.Genesis.GenesisState parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.gov.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.gov.v1beta1.Genesis.GenesisState parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.gov.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.gov.v1beta1.Genesis.GenesisState parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.gov.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.gov.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 gov module's genesis state.
*
*
* Protobuf type {@code cosmos.gov.v1beta1.GenesisState}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.gov.v1beta1.GenesisState)
cosmos.gov.v1beta1.Genesis.GenesisStateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.gov.v1beta1.Genesis.internal_static_cosmos_gov_v1beta1_GenesisState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.gov.v1beta1.Genesis.internal_static_cosmos_gov_v1beta1_GenesisState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.gov.v1beta1.Genesis.GenesisState.class, cosmos.gov.v1beta1.Genesis.GenesisState.Builder.class);
}
// Construct using cosmos.gov.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) {
getDepositsFieldBuilder();
getVotesFieldBuilder();
getProposalsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
startingProposalId_ = 0L;
if (depositsBuilder_ == null) {
deposits_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
depositsBuilder_.clear();
}
if (votesBuilder_ == null) {
votes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
votesBuilder_.clear();
}
if (proposalsBuilder_ == null) {
proposals_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
proposalsBuilder_.clear();
}
if (depositParamsBuilder_ == null) {
depositParams_ = null;
} else {
depositParams_ = null;
depositParamsBuilder_ = null;
}
if (votingParamsBuilder_ == null) {
votingParams_ = null;
} else {
votingParams_ = null;
votingParamsBuilder_ = null;
}
if (tallyParamsBuilder_ == null) {
tallyParams_ = null;
} else {
tallyParams_ = null;
tallyParamsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.gov.v1beta1.Genesis.internal_static_cosmos_gov_v1beta1_GenesisState_descriptor;
}
@java.lang.Override
public cosmos.gov.v1beta1.Genesis.GenesisState getDefaultInstanceForType() {
return cosmos.gov.v1beta1.Genesis.GenesisState.getDefaultInstance();
}
@java.lang.Override
public cosmos.gov.v1beta1.Genesis.GenesisState build() {
cosmos.gov.v1beta1.Genesis.GenesisState result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.gov.v1beta1.Genesis.GenesisState buildPartial() {
cosmos.gov.v1beta1.Genesis.GenesisState result = new cosmos.gov.v1beta1.Genesis.GenesisState(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.startingProposalId_ = startingProposalId_;
if (depositsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
deposits_ = java.util.Collections.unmodifiableList(deposits_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.deposits_ = deposits_;
} else {
result.deposits_ = depositsBuilder_.build();
}
if (votesBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
votes_ = java.util.Collections.unmodifiableList(votes_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.votes_ = votes_;
} else {
result.votes_ = votesBuilder_.build();
}
if (proposalsBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
proposals_ = java.util.Collections.unmodifiableList(proposals_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.proposals_ = proposals_;
} else {
result.proposals_ = proposalsBuilder_.build();
}
if (depositParamsBuilder_ == null) {
result.depositParams_ = depositParams_;
} else {
result.depositParams_ = depositParamsBuilder_.build();
}
if (votingParamsBuilder_ == null) {
result.votingParams_ = votingParams_;
} else {
result.votingParams_ = votingParamsBuilder_.build();
}
if (tallyParamsBuilder_ == null) {
result.tallyParams_ = tallyParams_;
} else {
result.tallyParams_ = tallyParamsBuilder_.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.gov.v1beta1.Genesis.GenesisState) {
return mergeFrom((cosmos.gov.v1beta1.Genesis.GenesisState)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.gov.v1beta1.Genesis.GenesisState other) {
if (other == cosmos.gov.v1beta1.Genesis.GenesisState.getDefaultInstance()) return this;
if (other.getStartingProposalId() != 0L) {
setStartingProposalId(other.getStartingProposalId());
}
if (depositsBuilder_ == null) {
if (!other.deposits_.isEmpty()) {
if (deposits_.isEmpty()) {
deposits_ = other.deposits_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureDepositsIsMutable();
deposits_.addAll(other.deposits_);
}
onChanged();
}
} else {
if (!other.deposits_.isEmpty()) {
if (depositsBuilder_.isEmpty()) {
depositsBuilder_.dispose();
depositsBuilder_ = null;
deposits_ = other.deposits_;
bitField0_ = (bitField0_ & ~0x00000002);
depositsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDepositsFieldBuilder() : null;
} else {
depositsBuilder_.addAllMessages(other.deposits_);
}
}
}
if (votesBuilder_ == null) {
if (!other.votes_.isEmpty()) {
if (votes_.isEmpty()) {
votes_ = other.votes_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureVotesIsMutable();
votes_.addAll(other.votes_);
}
onChanged();
}
} else {
if (!other.votes_.isEmpty()) {
if (votesBuilder_.isEmpty()) {
votesBuilder_.dispose();
votesBuilder_ = null;
votes_ = other.votes_;
bitField0_ = (bitField0_ & ~0x00000004);
votesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getVotesFieldBuilder() : null;
} else {
votesBuilder_.addAllMessages(other.votes_);
}
}
}
if (proposalsBuilder_ == null) {
if (!other.proposals_.isEmpty()) {
if (proposals_.isEmpty()) {
proposals_ = other.proposals_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureProposalsIsMutable();
proposals_.addAll(other.proposals_);
}
onChanged();
}
} else {
if (!other.proposals_.isEmpty()) {
if (proposalsBuilder_.isEmpty()) {
proposalsBuilder_.dispose();
proposalsBuilder_ = null;
proposals_ = other.proposals_;
bitField0_ = (bitField0_ & ~0x00000008);
proposalsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getProposalsFieldBuilder() : null;
} else {
proposalsBuilder_.addAllMessages(other.proposals_);
}
}
}
if (other.hasDepositParams()) {
mergeDepositParams(other.getDepositParams());
}
if (other.hasVotingParams()) {
mergeVotingParams(other.getVotingParams());
}
if (other.hasTallyParams()) {
mergeTallyParams(other.getTallyParams());
}
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.gov.v1beta1.Genesis.GenesisState parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.gov.v1beta1.Genesis.GenesisState) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long startingProposalId_ ;
/**
*
* starting_proposal_id is the ID of the starting proposal.
*
*
* uint64 starting_proposal_id = 1 [(.gogoproto.moretags) = "yaml:\"starting_proposal_id\""];
*/
public long getStartingProposalId() {
return startingProposalId_;
}
/**
*
* starting_proposal_id is the ID of the starting proposal.
*
*
* uint64 starting_proposal_id = 1 [(.gogoproto.moretags) = "yaml:\"starting_proposal_id\""];
*/
public Builder setStartingProposalId(long value) {
startingProposalId_ = value;
onChanged();
return this;
}
/**
*
* starting_proposal_id is the ID of the starting proposal.
*
*
* uint64 starting_proposal_id = 1 [(.gogoproto.moretags) = "yaml:\"starting_proposal_id\""];
*/
public Builder clearStartingProposalId() {
startingProposalId_ = 0L;
onChanged();
return this;
}
private java.util.List deposits_ =
java.util.Collections.emptyList();
private void ensureDepositsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
deposits_ = new java.util.ArrayList(deposits_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.gov.v1beta1.Gov.Deposit, cosmos.gov.v1beta1.Gov.Deposit.Builder, cosmos.gov.v1beta1.Gov.DepositOrBuilder> depositsBuilder_;
/**
*
* deposits defines all the deposits present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"];
*/
public java.util.List getDepositsList() {
if (depositsBuilder_ == null) {
return java.util.Collections.unmodifiableList(deposits_);
} else {
return depositsBuilder_.getMessageList();
}
}
/**
*
* deposits defines all the deposits present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"];
*/
public int getDepositsCount() {
if (depositsBuilder_ == null) {
return deposits_.size();
} else {
return depositsBuilder_.getCount();
}
}
/**
*
* deposits defines all the deposits present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"];
*/
public cosmos.gov.v1beta1.Gov.Deposit getDeposits(int index) {
if (depositsBuilder_ == null) {
return deposits_.get(index);
} else {
return depositsBuilder_.getMessage(index);
}
}
/**
*
* deposits defines all the deposits present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"];
*/
public Builder setDeposits(
int index, cosmos.gov.v1beta1.Gov.Deposit value) {
if (depositsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDepositsIsMutable();
deposits_.set(index, value);
onChanged();
} else {
depositsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* deposits defines all the deposits present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"];
*/
public Builder setDeposits(
int index, cosmos.gov.v1beta1.Gov.Deposit.Builder builderForValue) {
if (depositsBuilder_ == null) {
ensureDepositsIsMutable();
deposits_.set(index, builderForValue.build());
onChanged();
} else {
depositsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* deposits defines all the deposits present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"];
*/
public Builder addDeposits(cosmos.gov.v1beta1.Gov.Deposit value) {
if (depositsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDepositsIsMutable();
deposits_.add(value);
onChanged();
} else {
depositsBuilder_.addMessage(value);
}
return this;
}
/**
*
* deposits defines all the deposits present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"];
*/
public Builder addDeposits(
int index, cosmos.gov.v1beta1.Gov.Deposit value) {
if (depositsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDepositsIsMutable();
deposits_.add(index, value);
onChanged();
} else {
depositsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* deposits defines all the deposits present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"];
*/
public Builder addDeposits(
cosmos.gov.v1beta1.Gov.Deposit.Builder builderForValue) {
if (depositsBuilder_ == null) {
ensureDepositsIsMutable();
deposits_.add(builderForValue.build());
onChanged();
} else {
depositsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* deposits defines all the deposits present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"];
*/
public Builder addDeposits(
int index, cosmos.gov.v1beta1.Gov.Deposit.Builder builderForValue) {
if (depositsBuilder_ == null) {
ensureDepositsIsMutable();
deposits_.add(index, builderForValue.build());
onChanged();
} else {
depositsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* deposits defines all the deposits present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"];
*/
public Builder addAllDeposits(
java.lang.Iterable extends cosmos.gov.v1beta1.Gov.Deposit> values) {
if (depositsBuilder_ == null) {
ensureDepositsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, deposits_);
onChanged();
} else {
depositsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* deposits defines all the deposits present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"];
*/
public Builder clearDeposits() {
if (depositsBuilder_ == null) {
deposits_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
depositsBuilder_.clear();
}
return this;
}
/**
*
* deposits defines all the deposits present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"];
*/
public Builder removeDeposits(int index) {
if (depositsBuilder_ == null) {
ensureDepositsIsMutable();
deposits_.remove(index);
onChanged();
} else {
depositsBuilder_.remove(index);
}
return this;
}
/**
*
* deposits defines all the deposits present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"];
*/
public cosmos.gov.v1beta1.Gov.Deposit.Builder getDepositsBuilder(
int index) {
return getDepositsFieldBuilder().getBuilder(index);
}
/**
*
* deposits defines all the deposits present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"];
*/
public cosmos.gov.v1beta1.Gov.DepositOrBuilder getDepositsOrBuilder(
int index) {
if (depositsBuilder_ == null) {
return deposits_.get(index); } else {
return depositsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* deposits defines all the deposits present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"];
*/
public java.util.List extends cosmos.gov.v1beta1.Gov.DepositOrBuilder>
getDepositsOrBuilderList() {
if (depositsBuilder_ != null) {
return depositsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(deposits_);
}
}
/**
*
* deposits defines all the deposits present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"];
*/
public cosmos.gov.v1beta1.Gov.Deposit.Builder addDepositsBuilder() {
return getDepositsFieldBuilder().addBuilder(
cosmos.gov.v1beta1.Gov.Deposit.getDefaultInstance());
}
/**
*
* deposits defines all the deposits present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"];
*/
public cosmos.gov.v1beta1.Gov.Deposit.Builder addDepositsBuilder(
int index) {
return getDepositsFieldBuilder().addBuilder(
index, cosmos.gov.v1beta1.Gov.Deposit.getDefaultInstance());
}
/**
*
* deposits defines all the deposits present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Deposit deposits = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Deposits"];
*/
public java.util.List
getDepositsBuilderList() {
return getDepositsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.gov.v1beta1.Gov.Deposit, cosmos.gov.v1beta1.Gov.Deposit.Builder, cosmos.gov.v1beta1.Gov.DepositOrBuilder>
getDepositsFieldBuilder() {
if (depositsBuilder_ == null) {
depositsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.gov.v1beta1.Gov.Deposit, cosmos.gov.v1beta1.Gov.Deposit.Builder, cosmos.gov.v1beta1.Gov.DepositOrBuilder>(
deposits_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
deposits_ = null;
}
return depositsBuilder_;
}
private java.util.List votes_ =
java.util.Collections.emptyList();
private void ensureVotesIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
votes_ = new java.util.ArrayList(votes_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.gov.v1beta1.Gov.Vote, cosmos.gov.v1beta1.Gov.Vote.Builder, cosmos.gov.v1beta1.Gov.VoteOrBuilder> votesBuilder_;
/**
*
* votes defines all the votes present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"];
*/
public java.util.List getVotesList() {
if (votesBuilder_ == null) {
return java.util.Collections.unmodifiableList(votes_);
} else {
return votesBuilder_.getMessageList();
}
}
/**
*
* votes defines all the votes present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"];
*/
public int getVotesCount() {
if (votesBuilder_ == null) {
return votes_.size();
} else {
return votesBuilder_.getCount();
}
}
/**
*
* votes defines all the votes present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"];
*/
public cosmos.gov.v1beta1.Gov.Vote getVotes(int index) {
if (votesBuilder_ == null) {
return votes_.get(index);
} else {
return votesBuilder_.getMessage(index);
}
}
/**
*
* votes defines all the votes present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"];
*/
public Builder setVotes(
int index, cosmos.gov.v1beta1.Gov.Vote value) {
if (votesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVotesIsMutable();
votes_.set(index, value);
onChanged();
} else {
votesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* votes defines all the votes present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"];
*/
public Builder setVotes(
int index, cosmos.gov.v1beta1.Gov.Vote.Builder builderForValue) {
if (votesBuilder_ == null) {
ensureVotesIsMutable();
votes_.set(index, builderForValue.build());
onChanged();
} else {
votesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* votes defines all the votes present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"];
*/
public Builder addVotes(cosmos.gov.v1beta1.Gov.Vote value) {
if (votesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVotesIsMutable();
votes_.add(value);
onChanged();
} else {
votesBuilder_.addMessage(value);
}
return this;
}
/**
*
* votes defines all the votes present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"];
*/
public Builder addVotes(
int index, cosmos.gov.v1beta1.Gov.Vote value) {
if (votesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVotesIsMutable();
votes_.add(index, value);
onChanged();
} else {
votesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* votes defines all the votes present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"];
*/
public Builder addVotes(
cosmos.gov.v1beta1.Gov.Vote.Builder builderForValue) {
if (votesBuilder_ == null) {
ensureVotesIsMutable();
votes_.add(builderForValue.build());
onChanged();
} else {
votesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* votes defines all the votes present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"];
*/
public Builder addVotes(
int index, cosmos.gov.v1beta1.Gov.Vote.Builder builderForValue) {
if (votesBuilder_ == null) {
ensureVotesIsMutable();
votes_.add(index, builderForValue.build());
onChanged();
} else {
votesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* votes defines all the votes present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"];
*/
public Builder addAllVotes(
java.lang.Iterable extends cosmos.gov.v1beta1.Gov.Vote> values) {
if (votesBuilder_ == null) {
ensureVotesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, votes_);
onChanged();
} else {
votesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* votes defines all the votes present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"];
*/
public Builder clearVotes() {
if (votesBuilder_ == null) {
votes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
votesBuilder_.clear();
}
return this;
}
/**
*
* votes defines all the votes present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"];
*/
public Builder removeVotes(int index) {
if (votesBuilder_ == null) {
ensureVotesIsMutable();
votes_.remove(index);
onChanged();
} else {
votesBuilder_.remove(index);
}
return this;
}
/**
*
* votes defines all the votes present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"];
*/
public cosmos.gov.v1beta1.Gov.Vote.Builder getVotesBuilder(
int index) {
return getVotesFieldBuilder().getBuilder(index);
}
/**
*
* votes defines all the votes present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"];
*/
public cosmos.gov.v1beta1.Gov.VoteOrBuilder getVotesOrBuilder(
int index) {
if (votesBuilder_ == null) {
return votes_.get(index); } else {
return votesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* votes defines all the votes present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"];
*/
public java.util.List extends cosmos.gov.v1beta1.Gov.VoteOrBuilder>
getVotesOrBuilderList() {
if (votesBuilder_ != null) {
return votesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(votes_);
}
}
/**
*
* votes defines all the votes present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"];
*/
public cosmos.gov.v1beta1.Gov.Vote.Builder addVotesBuilder() {
return getVotesFieldBuilder().addBuilder(
cosmos.gov.v1beta1.Gov.Vote.getDefaultInstance());
}
/**
*
* votes defines all the votes present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"];
*/
public cosmos.gov.v1beta1.Gov.Vote.Builder addVotesBuilder(
int index) {
return getVotesFieldBuilder().addBuilder(
index, cosmos.gov.v1beta1.Gov.Vote.getDefaultInstance());
}
/**
*
* votes defines all the votes present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Vote votes = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Votes"];
*/
public java.util.List
getVotesBuilderList() {
return getVotesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.gov.v1beta1.Gov.Vote, cosmos.gov.v1beta1.Gov.Vote.Builder, cosmos.gov.v1beta1.Gov.VoteOrBuilder>
getVotesFieldBuilder() {
if (votesBuilder_ == null) {
votesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.gov.v1beta1.Gov.Vote, cosmos.gov.v1beta1.Gov.Vote.Builder, cosmos.gov.v1beta1.Gov.VoteOrBuilder>(
votes_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
votes_ = null;
}
return votesBuilder_;
}
private java.util.List proposals_ =
java.util.Collections.emptyList();
private void ensureProposalsIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
proposals_ = new java.util.ArrayList(proposals_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.gov.v1beta1.Gov.Proposal, cosmos.gov.v1beta1.Gov.Proposal.Builder, cosmos.gov.v1beta1.Gov.ProposalOrBuilder> proposalsBuilder_;
/**
*
* proposals defines all the proposals present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"];
*/
public java.util.List getProposalsList() {
if (proposalsBuilder_ == null) {
return java.util.Collections.unmodifiableList(proposals_);
} else {
return proposalsBuilder_.getMessageList();
}
}
/**
*
* proposals defines all the proposals present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"];
*/
public int getProposalsCount() {
if (proposalsBuilder_ == null) {
return proposals_.size();
} else {
return proposalsBuilder_.getCount();
}
}
/**
*
* proposals defines all the proposals present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"];
*/
public cosmos.gov.v1beta1.Gov.Proposal getProposals(int index) {
if (proposalsBuilder_ == null) {
return proposals_.get(index);
} else {
return proposalsBuilder_.getMessage(index);
}
}
/**
*
* proposals defines all the proposals present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"];
*/
public Builder setProposals(
int index, cosmos.gov.v1beta1.Gov.Proposal value) {
if (proposalsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureProposalsIsMutable();
proposals_.set(index, value);
onChanged();
} else {
proposalsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* proposals defines all the proposals present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"];
*/
public Builder setProposals(
int index, cosmos.gov.v1beta1.Gov.Proposal.Builder builderForValue) {
if (proposalsBuilder_ == null) {
ensureProposalsIsMutable();
proposals_.set(index, builderForValue.build());
onChanged();
} else {
proposalsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* proposals defines all the proposals present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"];
*/
public Builder addProposals(cosmos.gov.v1beta1.Gov.Proposal value) {
if (proposalsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureProposalsIsMutable();
proposals_.add(value);
onChanged();
} else {
proposalsBuilder_.addMessage(value);
}
return this;
}
/**
*
* proposals defines all the proposals present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"];
*/
public Builder addProposals(
int index, cosmos.gov.v1beta1.Gov.Proposal value) {
if (proposalsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureProposalsIsMutable();
proposals_.add(index, value);
onChanged();
} else {
proposalsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* proposals defines all the proposals present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"];
*/
public Builder addProposals(
cosmos.gov.v1beta1.Gov.Proposal.Builder builderForValue) {
if (proposalsBuilder_ == null) {
ensureProposalsIsMutable();
proposals_.add(builderForValue.build());
onChanged();
} else {
proposalsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* proposals defines all the proposals present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"];
*/
public Builder addProposals(
int index, cosmos.gov.v1beta1.Gov.Proposal.Builder builderForValue) {
if (proposalsBuilder_ == null) {
ensureProposalsIsMutable();
proposals_.add(index, builderForValue.build());
onChanged();
} else {
proposalsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* proposals defines all the proposals present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"];
*/
public Builder addAllProposals(
java.lang.Iterable extends cosmos.gov.v1beta1.Gov.Proposal> values) {
if (proposalsBuilder_ == null) {
ensureProposalsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, proposals_);
onChanged();
} else {
proposalsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* proposals defines all the proposals present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"];
*/
public Builder clearProposals() {
if (proposalsBuilder_ == null) {
proposals_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
proposalsBuilder_.clear();
}
return this;
}
/**
*
* proposals defines all the proposals present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"];
*/
public Builder removeProposals(int index) {
if (proposalsBuilder_ == null) {
ensureProposalsIsMutable();
proposals_.remove(index);
onChanged();
} else {
proposalsBuilder_.remove(index);
}
return this;
}
/**
*
* proposals defines all the proposals present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"];
*/
public cosmos.gov.v1beta1.Gov.Proposal.Builder getProposalsBuilder(
int index) {
return getProposalsFieldBuilder().getBuilder(index);
}
/**
*
* proposals defines all the proposals present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"];
*/
public cosmos.gov.v1beta1.Gov.ProposalOrBuilder getProposalsOrBuilder(
int index) {
if (proposalsBuilder_ == null) {
return proposals_.get(index); } else {
return proposalsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* proposals defines all the proposals present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"];
*/
public java.util.List extends cosmos.gov.v1beta1.Gov.ProposalOrBuilder>
getProposalsOrBuilderList() {
if (proposalsBuilder_ != null) {
return proposalsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(proposals_);
}
}
/**
*
* proposals defines all the proposals present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"];
*/
public cosmos.gov.v1beta1.Gov.Proposal.Builder addProposalsBuilder() {
return getProposalsFieldBuilder().addBuilder(
cosmos.gov.v1beta1.Gov.Proposal.getDefaultInstance());
}
/**
*
* proposals defines all the proposals present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"];
*/
public cosmos.gov.v1beta1.Gov.Proposal.Builder addProposalsBuilder(
int index) {
return getProposalsFieldBuilder().addBuilder(
index, cosmos.gov.v1beta1.Gov.Proposal.getDefaultInstance());
}
/**
*
* proposals defines all the proposals present at genesis.
*
*
* repeated .cosmos.gov.v1beta1.Proposal proposals = 4 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "Proposals"];
*/
public java.util.List
getProposalsBuilderList() {
return getProposalsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.gov.v1beta1.Gov.Proposal, cosmos.gov.v1beta1.Gov.Proposal.Builder, cosmos.gov.v1beta1.Gov.ProposalOrBuilder>
getProposalsFieldBuilder() {
if (proposalsBuilder_ == null) {
proposalsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cosmos.gov.v1beta1.Gov.Proposal, cosmos.gov.v1beta1.Gov.Proposal.Builder, cosmos.gov.v1beta1.Gov.ProposalOrBuilder>(
proposals_,
((bitField0_ & 0x00000008) == 0x00000008),
getParentForChildren(),
isClean());
proposals_ = null;
}
return proposalsBuilder_;
}
private cosmos.gov.v1beta1.Gov.DepositParams depositParams_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.gov.v1beta1.Gov.DepositParams, cosmos.gov.v1beta1.Gov.DepositParams.Builder, cosmos.gov.v1beta1.Gov.DepositParamsOrBuilder> depositParamsBuilder_;
/**
*
* params defines all the paramaters of related to deposit.
*
*
* .cosmos.gov.v1beta1.DepositParams deposit_params = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_params\""];
*/
public boolean hasDepositParams() {
return depositParamsBuilder_ != null || depositParams_ != null;
}
/**
*
* params defines all the paramaters of related to deposit.
*
*
* .cosmos.gov.v1beta1.DepositParams deposit_params = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_params\""];
*/
public cosmos.gov.v1beta1.Gov.DepositParams getDepositParams() {
if (depositParamsBuilder_ == null) {
return depositParams_ == null ? cosmos.gov.v1beta1.Gov.DepositParams.getDefaultInstance() : depositParams_;
} else {
return depositParamsBuilder_.getMessage();
}
}
/**
*
* params defines all the paramaters of related to deposit.
*
*
* .cosmos.gov.v1beta1.DepositParams deposit_params = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_params\""];
*/
public Builder setDepositParams(cosmos.gov.v1beta1.Gov.DepositParams value) {
if (depositParamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
depositParams_ = value;
onChanged();
} else {
depositParamsBuilder_.setMessage(value);
}
return this;
}
/**
*
* params defines all the paramaters of related to deposit.
*
*
* .cosmos.gov.v1beta1.DepositParams deposit_params = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_params\""];
*/
public Builder setDepositParams(
cosmos.gov.v1beta1.Gov.DepositParams.Builder builderForValue) {
if (depositParamsBuilder_ == null) {
depositParams_ = builderForValue.build();
onChanged();
} else {
depositParamsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* params defines all the paramaters of related to deposit.
*
*
* .cosmos.gov.v1beta1.DepositParams deposit_params = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_params\""];
*/
public Builder mergeDepositParams(cosmos.gov.v1beta1.Gov.DepositParams value) {
if (depositParamsBuilder_ == null) {
if (depositParams_ != null) {
depositParams_ =
cosmos.gov.v1beta1.Gov.DepositParams.newBuilder(depositParams_).mergeFrom(value).buildPartial();
} else {
depositParams_ = value;
}
onChanged();
} else {
depositParamsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* params defines all the paramaters of related to deposit.
*
*
* .cosmos.gov.v1beta1.DepositParams deposit_params = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_params\""];
*/
public Builder clearDepositParams() {
if (depositParamsBuilder_ == null) {
depositParams_ = null;
onChanged();
} else {
depositParams_ = null;
depositParamsBuilder_ = null;
}
return this;
}
/**
*
* params defines all the paramaters of related to deposit.
*
*
* .cosmos.gov.v1beta1.DepositParams deposit_params = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_params\""];
*/
public cosmos.gov.v1beta1.Gov.DepositParams.Builder getDepositParamsBuilder() {
onChanged();
return getDepositParamsFieldBuilder().getBuilder();
}
/**
*
* params defines all the paramaters of related to deposit.
*
*
* .cosmos.gov.v1beta1.DepositParams deposit_params = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_params\""];
*/
public cosmos.gov.v1beta1.Gov.DepositParamsOrBuilder getDepositParamsOrBuilder() {
if (depositParamsBuilder_ != null) {
return depositParamsBuilder_.getMessageOrBuilder();
} else {
return depositParams_ == null ?
cosmos.gov.v1beta1.Gov.DepositParams.getDefaultInstance() : depositParams_;
}
}
/**
*
* params defines all the paramaters of related to deposit.
*
*
* .cosmos.gov.v1beta1.DepositParams deposit_params = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"deposit_params\""];
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.gov.v1beta1.Gov.DepositParams, cosmos.gov.v1beta1.Gov.DepositParams.Builder, cosmos.gov.v1beta1.Gov.DepositParamsOrBuilder>
getDepositParamsFieldBuilder() {
if (depositParamsBuilder_ == null) {
depositParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmos.gov.v1beta1.Gov.DepositParams, cosmos.gov.v1beta1.Gov.DepositParams.Builder, cosmos.gov.v1beta1.Gov.DepositParamsOrBuilder>(
getDepositParams(),
getParentForChildren(),
isClean());
depositParams_ = null;
}
return depositParamsBuilder_;
}
private cosmos.gov.v1beta1.Gov.VotingParams votingParams_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.gov.v1beta1.Gov.VotingParams, cosmos.gov.v1beta1.Gov.VotingParams.Builder, cosmos.gov.v1beta1.Gov.VotingParamsOrBuilder> votingParamsBuilder_;
/**
*
* params defines all the paramaters of related to voting.
*
*
* .cosmos.gov.v1beta1.VotingParams voting_params = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_params\""];
*/
public boolean hasVotingParams() {
return votingParamsBuilder_ != null || votingParams_ != null;
}
/**
*
* params defines all the paramaters of related to voting.
*
*
* .cosmos.gov.v1beta1.VotingParams voting_params = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_params\""];
*/
public cosmos.gov.v1beta1.Gov.VotingParams getVotingParams() {
if (votingParamsBuilder_ == null) {
return votingParams_ == null ? cosmos.gov.v1beta1.Gov.VotingParams.getDefaultInstance() : votingParams_;
} else {
return votingParamsBuilder_.getMessage();
}
}
/**
*
* params defines all the paramaters of related to voting.
*
*
* .cosmos.gov.v1beta1.VotingParams voting_params = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_params\""];
*/
public Builder setVotingParams(cosmos.gov.v1beta1.Gov.VotingParams value) {
if (votingParamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
votingParams_ = value;
onChanged();
} else {
votingParamsBuilder_.setMessage(value);
}
return this;
}
/**
*
* params defines all the paramaters of related to voting.
*
*
* .cosmos.gov.v1beta1.VotingParams voting_params = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_params\""];
*/
public Builder setVotingParams(
cosmos.gov.v1beta1.Gov.VotingParams.Builder builderForValue) {
if (votingParamsBuilder_ == null) {
votingParams_ = builderForValue.build();
onChanged();
} else {
votingParamsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* params defines all the paramaters of related to voting.
*
*
* .cosmos.gov.v1beta1.VotingParams voting_params = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_params\""];
*/
public Builder mergeVotingParams(cosmos.gov.v1beta1.Gov.VotingParams value) {
if (votingParamsBuilder_ == null) {
if (votingParams_ != null) {
votingParams_ =
cosmos.gov.v1beta1.Gov.VotingParams.newBuilder(votingParams_).mergeFrom(value).buildPartial();
} else {
votingParams_ = value;
}
onChanged();
} else {
votingParamsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* params defines all the paramaters of related to voting.
*
*
* .cosmos.gov.v1beta1.VotingParams voting_params = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_params\""];
*/
public Builder clearVotingParams() {
if (votingParamsBuilder_ == null) {
votingParams_ = null;
onChanged();
} else {
votingParams_ = null;
votingParamsBuilder_ = null;
}
return this;
}
/**
*
* params defines all the paramaters of related to voting.
*
*
* .cosmos.gov.v1beta1.VotingParams voting_params = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_params\""];
*/
public cosmos.gov.v1beta1.Gov.VotingParams.Builder getVotingParamsBuilder() {
onChanged();
return getVotingParamsFieldBuilder().getBuilder();
}
/**
*
* params defines all the paramaters of related to voting.
*
*
* .cosmos.gov.v1beta1.VotingParams voting_params = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_params\""];
*/
public cosmos.gov.v1beta1.Gov.VotingParamsOrBuilder getVotingParamsOrBuilder() {
if (votingParamsBuilder_ != null) {
return votingParamsBuilder_.getMessageOrBuilder();
} else {
return votingParams_ == null ?
cosmos.gov.v1beta1.Gov.VotingParams.getDefaultInstance() : votingParams_;
}
}
/**
*
* params defines all the paramaters of related to voting.
*
*
* .cosmos.gov.v1beta1.VotingParams voting_params = 6 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"voting_params\""];
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.gov.v1beta1.Gov.VotingParams, cosmos.gov.v1beta1.Gov.VotingParams.Builder, cosmos.gov.v1beta1.Gov.VotingParamsOrBuilder>
getVotingParamsFieldBuilder() {
if (votingParamsBuilder_ == null) {
votingParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmos.gov.v1beta1.Gov.VotingParams, cosmos.gov.v1beta1.Gov.VotingParams.Builder, cosmos.gov.v1beta1.Gov.VotingParamsOrBuilder>(
getVotingParams(),
getParentForChildren(),
isClean());
votingParams_ = null;
}
return votingParamsBuilder_;
}
private cosmos.gov.v1beta1.Gov.TallyParams tallyParams_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.gov.v1beta1.Gov.TallyParams, cosmos.gov.v1beta1.Gov.TallyParams.Builder, cosmos.gov.v1beta1.Gov.TallyParamsOrBuilder> tallyParamsBuilder_;
/**
*
* params defines all the paramaters of related to tally.
*
*
* .cosmos.gov.v1beta1.TallyParams tally_params = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tally_params\""];
*/
public boolean hasTallyParams() {
return tallyParamsBuilder_ != null || tallyParams_ != null;
}
/**
*
* params defines all the paramaters of related to tally.
*
*
* .cosmos.gov.v1beta1.TallyParams tally_params = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tally_params\""];
*/
public cosmos.gov.v1beta1.Gov.TallyParams getTallyParams() {
if (tallyParamsBuilder_ == null) {
return tallyParams_ == null ? cosmos.gov.v1beta1.Gov.TallyParams.getDefaultInstance() : tallyParams_;
} else {
return tallyParamsBuilder_.getMessage();
}
}
/**
*
* params defines all the paramaters of related to tally.
*
*
* .cosmos.gov.v1beta1.TallyParams tally_params = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tally_params\""];
*/
public Builder setTallyParams(cosmos.gov.v1beta1.Gov.TallyParams value) {
if (tallyParamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tallyParams_ = value;
onChanged();
} else {
tallyParamsBuilder_.setMessage(value);
}
return this;
}
/**
*
* params defines all the paramaters of related to tally.
*
*
* .cosmos.gov.v1beta1.TallyParams tally_params = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tally_params\""];
*/
public Builder setTallyParams(
cosmos.gov.v1beta1.Gov.TallyParams.Builder builderForValue) {
if (tallyParamsBuilder_ == null) {
tallyParams_ = builderForValue.build();
onChanged();
} else {
tallyParamsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* params defines all the paramaters of related to tally.
*
*
* .cosmos.gov.v1beta1.TallyParams tally_params = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tally_params\""];
*/
public Builder mergeTallyParams(cosmos.gov.v1beta1.Gov.TallyParams value) {
if (tallyParamsBuilder_ == null) {
if (tallyParams_ != null) {
tallyParams_ =
cosmos.gov.v1beta1.Gov.TallyParams.newBuilder(tallyParams_).mergeFrom(value).buildPartial();
} else {
tallyParams_ = value;
}
onChanged();
} else {
tallyParamsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* params defines all the paramaters of related to tally.
*
*
* .cosmos.gov.v1beta1.TallyParams tally_params = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tally_params\""];
*/
public Builder clearTallyParams() {
if (tallyParamsBuilder_ == null) {
tallyParams_ = null;
onChanged();
} else {
tallyParams_ = null;
tallyParamsBuilder_ = null;
}
return this;
}
/**
*
* params defines all the paramaters of related to tally.
*
*
* .cosmos.gov.v1beta1.TallyParams tally_params = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tally_params\""];
*/
public cosmos.gov.v1beta1.Gov.TallyParams.Builder getTallyParamsBuilder() {
onChanged();
return getTallyParamsFieldBuilder().getBuilder();
}
/**
*
* params defines all the paramaters of related to tally.
*
*
* .cosmos.gov.v1beta1.TallyParams tally_params = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tally_params\""];
*/
public cosmos.gov.v1beta1.Gov.TallyParamsOrBuilder getTallyParamsOrBuilder() {
if (tallyParamsBuilder_ != null) {
return tallyParamsBuilder_.getMessageOrBuilder();
} else {
return tallyParams_ == null ?
cosmos.gov.v1beta1.Gov.TallyParams.getDefaultInstance() : tallyParams_;
}
}
/**
*
* params defines all the paramaters of related to tally.
*
*
* .cosmos.gov.v1beta1.TallyParams tally_params = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"tally_params\""];
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.gov.v1beta1.Gov.TallyParams, cosmos.gov.v1beta1.Gov.TallyParams.Builder, cosmos.gov.v1beta1.Gov.TallyParamsOrBuilder>
getTallyParamsFieldBuilder() {
if (tallyParamsBuilder_ == null) {
tallyParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmos.gov.v1beta1.Gov.TallyParams, cosmos.gov.v1beta1.Gov.TallyParams.Builder, cosmos.gov.v1beta1.Gov.TallyParamsOrBuilder>(
getTallyParams(),
getParentForChildren(),
isClean());
tallyParams_ = null;
}
return tallyParamsBuilder_;
}
@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.gov.v1beta1.GenesisState)
}
// @@protoc_insertion_point(class_scope:cosmos.gov.v1beta1.GenesisState)
private static final cosmos.gov.v1beta1.Genesis.GenesisState DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.gov.v1beta1.Genesis.GenesisState();
}
public static cosmos.gov.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.gov.v1beta1.Genesis.GenesisState getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_gov_v1beta1_GenesisState_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_gov_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/gov/v1beta1/genesis.proto\022\022cosm" +
"os.gov.v1beta1\032\024gogoproto/gogo.proto\032\034co" +
"smos/gov/v1beta1/gov.proto\"\217\004\n\014GenesisSt" +
"ate\022=\n\024starting_proposal_id\030\001 \001(\004B\037\362\336\037\033y" +
"aml:\"starting_proposal_id\"\022?\n\010deposits\030\002" +
" \003(\0132\033.cosmos.gov.v1beta1.DepositB\020\252\337\037\010D" +
"eposits\310\336\037\000\0226\n\005votes\030\003 \003(\0132\030.cosmos.gov." +
"v1beta1.VoteB\r\252\337\037\005Votes\310\336\037\000\022B\n\tproposals" +
"\030\004 \003(\0132\034.cosmos.gov.v1beta1.ProposalB\021\252\337" +
"\037\tProposals\310\336\037\000\022X\n\016deposit_params\030\005 \001(\0132" +
"!.cosmos.gov.v1beta1.DepositParamsB\035\310\336\037\000" +
"\362\336\037\025yaml:\"deposit_params\"\022U\n\rvoting_para" +
"ms\030\006 \001(\0132 .cosmos.gov.v1beta1.VotingPara" +
"msB\034\310\336\037\000\362\336\037\024yaml:\"voting_params\"\022R\n\014tall" +
"y_params\030\007 \001(\0132\037.cosmos.gov.v1beta1.Tall" +
"yParamsB\033\310\336\037\000\362\336\037\023yaml:\"tally_params\"B*Z(" +
"github.com/cosmos/cosmos-sdk/x/gov/types" +
"b\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.GoGoProtos.getDescriptor(),
cosmos.gov.v1beta1.Gov.getDescriptor(),
}, assigner);
internal_static_cosmos_gov_v1beta1_GenesisState_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_cosmos_gov_v1beta1_GenesisState_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_gov_v1beta1_GenesisState_descriptor,
new java.lang.String[] { "StartingProposalId", "Deposits", "Votes", "Proposals", "DepositParams", "VotingParams", "TallyParams", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.protobuf.GoGoProtos.castrepeated);
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.gov.v1beta1.Gov.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy