![JAR search and dependency download from the Maven repository](/logo.png)
cosmos.auth.v1beta1.Genesis Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: cosmos/auth/v1beta1/genesis.proto
package cosmos.auth.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.auth.v1beta1.GenesisState)
com.google.protobuf.MessageOrBuilder {
/**
*
* params defines all the paramaters of the module.
*
*
* .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false];
*/
boolean hasParams();
/**
*
* params defines all the paramaters of the module.
*
*
* .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false];
*/
cosmos.auth.v1beta1.Auth.Params getParams();
/**
*
* params defines all the paramaters of the module.
*
*
* .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false];
*/
cosmos.auth.v1beta1.Auth.ParamsOrBuilder getParamsOrBuilder();
/**
*
* accounts are the accounts present at genesis.
*
*
* repeated .google.protobuf.Any accounts = 2;
*/
java.util.List
getAccountsList();
/**
*
* accounts are the accounts present at genesis.
*
*
* repeated .google.protobuf.Any accounts = 2;
*/
com.google.protobuf.Any getAccounts(int index);
/**
*
* accounts are the accounts present at genesis.
*
*
* repeated .google.protobuf.Any accounts = 2;
*/
int getAccountsCount();
/**
*
* accounts are the accounts present at genesis.
*
*
* repeated .google.protobuf.Any accounts = 2;
*/
java.util.List extends com.google.protobuf.AnyOrBuilder>
getAccountsOrBuilderList();
/**
*
* accounts are the accounts present at genesis.
*
*
* repeated .google.protobuf.Any accounts = 2;
*/
com.google.protobuf.AnyOrBuilder getAccountsOrBuilder(
int index);
}
/**
*
* GenesisState defines the auth module's genesis state.
*
*
* Protobuf type {@code cosmos.auth.v1beta1.GenesisState}
*/
public static final class GenesisState extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cosmos.auth.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() {
accounts_ = 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.auth.v1beta1.Auth.Params.Builder subBuilder = null;
if (params_ != null) {
subBuilder = params_.toBuilder();
}
params_ = input.readMessage(cosmos.auth.v1beta1.Auth.Params.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(params_);
params_ = subBuilder.buildPartial();
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
accounts_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
accounts_.add(
input.readMessage(com.google.protobuf.Any.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)) {
accounts_ = java.util.Collections.unmodifiableList(accounts_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.auth.v1beta1.Genesis.internal_static_cosmos_auth_v1beta1_GenesisState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.auth.v1beta1.Genesis.internal_static_cosmos_auth_v1beta1_GenesisState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.auth.v1beta1.Genesis.GenesisState.class, cosmos.auth.v1beta1.Genesis.GenesisState.Builder.class);
}
private int bitField0_;
public static final int PARAMS_FIELD_NUMBER = 1;
private cosmos.auth.v1beta1.Auth.Params params_;
/**
*
* params defines all the paramaters of the module.
*
*
* .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false];
*/
public boolean hasParams() {
return params_ != null;
}
/**
*
* params defines all the paramaters of the module.
*
*
* .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false];
*/
public cosmos.auth.v1beta1.Auth.Params getParams() {
return params_ == null ? cosmos.auth.v1beta1.Auth.Params.getDefaultInstance() : params_;
}
/**
*
* params defines all the paramaters of the module.
*
*
* .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false];
*/
public cosmos.auth.v1beta1.Auth.ParamsOrBuilder getParamsOrBuilder() {
return getParams();
}
public static final int ACCOUNTS_FIELD_NUMBER = 2;
private java.util.List accounts_;
/**
*
* accounts are the accounts present at genesis.
*
*
* repeated .google.protobuf.Any accounts = 2;
*/
public java.util.List getAccountsList() {
return accounts_;
}
/**
*
* accounts are the accounts present at genesis.
*
*
* repeated .google.protobuf.Any accounts = 2;
*/
public java.util.List extends com.google.protobuf.AnyOrBuilder>
getAccountsOrBuilderList() {
return accounts_;
}
/**
*
* accounts are the accounts present at genesis.
*
*
* repeated .google.protobuf.Any accounts = 2;
*/
public int getAccountsCount() {
return accounts_.size();
}
/**
*
* accounts are the accounts present at genesis.
*
*
* repeated .google.protobuf.Any accounts = 2;
*/
public com.google.protobuf.Any getAccounts(int index) {
return accounts_.get(index);
}
/**
*
* accounts are the accounts present at genesis.
*
*
* repeated .google.protobuf.Any accounts = 2;
*/
public com.google.protobuf.AnyOrBuilder getAccountsOrBuilder(
int index) {
return accounts_.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());
}
for (int i = 0; i < accounts_.size(); i++) {
output.writeMessage(2, accounts_.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());
}
for (int i = 0; i < accounts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, accounts_.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.auth.v1beta1.Genesis.GenesisState)) {
return super.equals(obj);
}
cosmos.auth.v1beta1.Genesis.GenesisState other = (cosmos.auth.v1beta1.Genesis.GenesisState) obj;
boolean result = true;
result = result && (hasParams() == other.hasParams());
if (hasParams()) {
result = result && getParams()
.equals(other.getParams());
}
result = result && getAccountsList()
.equals(other.getAccountsList());
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 (getAccountsCount() > 0) {
hash = (37 * hash) + ACCOUNTS_FIELD_NUMBER;
hash = (53 * hash) + getAccountsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cosmos.auth.v1beta1.Genesis.GenesisState parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.auth.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.auth.v1beta1.Genesis.GenesisState parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.auth.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.auth.v1beta1.Genesis.GenesisState parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cosmos.auth.v1beta1.Genesis.GenesisState parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cosmos.auth.v1beta1.Genesis.GenesisState parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.auth.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.auth.v1beta1.Genesis.GenesisState parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cosmos.auth.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.auth.v1beta1.Genesis.GenesisState parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cosmos.auth.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.auth.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 auth module's genesis state.
*
*
* Protobuf type {@code cosmos.auth.v1beta1.GenesisState}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cosmos.auth.v1beta1.GenesisState)
cosmos.auth.v1beta1.Genesis.GenesisStateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cosmos.auth.v1beta1.Genesis.internal_static_cosmos_auth_v1beta1_GenesisState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cosmos.auth.v1beta1.Genesis.internal_static_cosmos_auth_v1beta1_GenesisState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cosmos.auth.v1beta1.Genesis.GenesisState.class, cosmos.auth.v1beta1.Genesis.GenesisState.Builder.class);
}
// Construct using cosmos.auth.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) {
getAccountsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (paramsBuilder_ == null) {
params_ = null;
} else {
params_ = null;
paramsBuilder_ = null;
}
if (accountsBuilder_ == null) {
accounts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
accountsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cosmos.auth.v1beta1.Genesis.internal_static_cosmos_auth_v1beta1_GenesisState_descriptor;
}
@java.lang.Override
public cosmos.auth.v1beta1.Genesis.GenesisState getDefaultInstanceForType() {
return cosmos.auth.v1beta1.Genesis.GenesisState.getDefaultInstance();
}
@java.lang.Override
public cosmos.auth.v1beta1.Genesis.GenesisState build() {
cosmos.auth.v1beta1.Genesis.GenesisState result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cosmos.auth.v1beta1.Genesis.GenesisState buildPartial() {
cosmos.auth.v1beta1.Genesis.GenesisState result = new cosmos.auth.v1beta1.Genesis.GenesisState(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (paramsBuilder_ == null) {
result.params_ = params_;
} else {
result.params_ = paramsBuilder_.build();
}
if (accountsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
accounts_ = java.util.Collections.unmodifiableList(accounts_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.accounts_ = accounts_;
} else {
result.accounts_ = accountsBuilder_.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.auth.v1beta1.Genesis.GenesisState) {
return mergeFrom((cosmos.auth.v1beta1.Genesis.GenesisState)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cosmos.auth.v1beta1.Genesis.GenesisState other) {
if (other == cosmos.auth.v1beta1.Genesis.GenesisState.getDefaultInstance()) return this;
if (other.hasParams()) {
mergeParams(other.getParams());
}
if (accountsBuilder_ == null) {
if (!other.accounts_.isEmpty()) {
if (accounts_.isEmpty()) {
accounts_ = other.accounts_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureAccountsIsMutable();
accounts_.addAll(other.accounts_);
}
onChanged();
}
} else {
if (!other.accounts_.isEmpty()) {
if (accountsBuilder_.isEmpty()) {
accountsBuilder_.dispose();
accountsBuilder_ = null;
accounts_ = other.accounts_;
bitField0_ = (bitField0_ & ~0x00000002);
accountsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAccountsFieldBuilder() : null;
} else {
accountsBuilder_.addAllMessages(other.accounts_);
}
}
}
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.auth.v1beta1.Genesis.GenesisState parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cosmos.auth.v1beta1.Genesis.GenesisState) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private cosmos.auth.v1beta1.Auth.Params params_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.auth.v1beta1.Auth.Params, cosmos.auth.v1beta1.Auth.Params.Builder, cosmos.auth.v1beta1.Auth.ParamsOrBuilder> paramsBuilder_;
/**
*
* params defines all the paramaters of the module.
*
*
* .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false];
*/
public boolean hasParams() {
return paramsBuilder_ != null || params_ != null;
}
/**
*
* params defines all the paramaters of the module.
*
*
* .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false];
*/
public cosmos.auth.v1beta1.Auth.Params getParams() {
if (paramsBuilder_ == null) {
return params_ == null ? cosmos.auth.v1beta1.Auth.Params.getDefaultInstance() : params_;
} else {
return paramsBuilder_.getMessage();
}
}
/**
*
* params defines all the paramaters of the module.
*
*
* .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false];
*/
public Builder setParams(cosmos.auth.v1beta1.Auth.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.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false];
*/
public Builder setParams(
cosmos.auth.v1beta1.Auth.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.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false];
*/
public Builder mergeParams(cosmos.auth.v1beta1.Auth.Params value) {
if (paramsBuilder_ == null) {
if (params_ != null) {
params_ =
cosmos.auth.v1beta1.Auth.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.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false];
*/
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.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false];
*/
public cosmos.auth.v1beta1.Auth.Params.Builder getParamsBuilder() {
onChanged();
return getParamsFieldBuilder().getBuilder();
}
/**
*
* params defines all the paramaters of the module.
*
*
* .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false];
*/
public cosmos.auth.v1beta1.Auth.ParamsOrBuilder getParamsOrBuilder() {
if (paramsBuilder_ != null) {
return paramsBuilder_.getMessageOrBuilder();
} else {
return params_ == null ?
cosmos.auth.v1beta1.Auth.Params.getDefaultInstance() : params_;
}
}
/**
*
* params defines all the paramaters of the module.
*
*
* .cosmos.auth.v1beta1.Params params = 1 [(.gogoproto.nullable) = false];
*/
private com.google.protobuf.SingleFieldBuilderV3<
cosmos.auth.v1beta1.Auth.Params, cosmos.auth.v1beta1.Auth.Params.Builder, cosmos.auth.v1beta1.Auth.ParamsOrBuilder>
getParamsFieldBuilder() {
if (paramsBuilder_ == null) {
paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmos.auth.v1beta1.Auth.Params, cosmos.auth.v1beta1.Auth.Params.Builder, cosmos.auth.v1beta1.Auth.ParamsOrBuilder>(
getParams(),
getParentForChildren(),
isClean());
params_ = null;
}
return paramsBuilder_;
}
private java.util.List accounts_ =
java.util.Collections.emptyList();
private void ensureAccountsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
accounts_ = new java.util.ArrayList(accounts_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> accountsBuilder_;
/**
*
* accounts are the accounts present at genesis.
*
*
* repeated .google.protobuf.Any accounts = 2;
*/
public java.util.List getAccountsList() {
if (accountsBuilder_ == null) {
return java.util.Collections.unmodifiableList(accounts_);
} else {
return accountsBuilder_.getMessageList();
}
}
/**
*
* accounts are the accounts present at genesis.
*
*
* repeated .google.protobuf.Any accounts = 2;
*/
public int getAccountsCount() {
if (accountsBuilder_ == null) {
return accounts_.size();
} else {
return accountsBuilder_.getCount();
}
}
/**
*
* accounts are the accounts present at genesis.
*
*
* repeated .google.protobuf.Any accounts = 2;
*/
public com.google.protobuf.Any getAccounts(int index) {
if (accountsBuilder_ == null) {
return accounts_.get(index);
} else {
return accountsBuilder_.getMessage(index);
}
}
/**
*
* accounts are the accounts present at genesis.
*
*
* repeated .google.protobuf.Any accounts = 2;
*/
public Builder setAccounts(
int index, com.google.protobuf.Any value) {
if (accountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAccountsIsMutable();
accounts_.set(index, value);
onChanged();
} else {
accountsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* accounts are the accounts present at genesis.
*
*
* repeated .google.protobuf.Any accounts = 2;
*/
public Builder setAccounts(
int index, com.google.protobuf.Any.Builder builderForValue) {
if (accountsBuilder_ == null) {
ensureAccountsIsMutable();
accounts_.set(index, builderForValue.build());
onChanged();
} else {
accountsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* accounts are the accounts present at genesis.
*
*
* repeated .google.protobuf.Any accounts = 2;
*/
public Builder addAccounts(com.google.protobuf.Any value) {
if (accountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAccountsIsMutable();
accounts_.add(value);
onChanged();
} else {
accountsBuilder_.addMessage(value);
}
return this;
}
/**
*
* accounts are the accounts present at genesis.
*
*
* repeated .google.protobuf.Any accounts = 2;
*/
public Builder addAccounts(
int index, com.google.protobuf.Any value) {
if (accountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAccountsIsMutable();
accounts_.add(index, value);
onChanged();
} else {
accountsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* accounts are the accounts present at genesis.
*
*
* repeated .google.protobuf.Any accounts = 2;
*/
public Builder addAccounts(
com.google.protobuf.Any.Builder builderForValue) {
if (accountsBuilder_ == null) {
ensureAccountsIsMutable();
accounts_.add(builderForValue.build());
onChanged();
} else {
accountsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* accounts are the accounts present at genesis.
*
*
* repeated .google.protobuf.Any accounts = 2;
*/
public Builder addAccounts(
int index, com.google.protobuf.Any.Builder builderForValue) {
if (accountsBuilder_ == null) {
ensureAccountsIsMutable();
accounts_.add(index, builderForValue.build());
onChanged();
} else {
accountsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* accounts are the accounts present at genesis.
*
*
* repeated .google.protobuf.Any accounts = 2;
*/
public Builder addAllAccounts(
java.lang.Iterable extends com.google.protobuf.Any> values) {
if (accountsBuilder_ == null) {
ensureAccountsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, accounts_);
onChanged();
} else {
accountsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* accounts are the accounts present at genesis.
*
*
* repeated .google.protobuf.Any accounts = 2;
*/
public Builder clearAccounts() {
if (accountsBuilder_ == null) {
accounts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
accountsBuilder_.clear();
}
return this;
}
/**
*
* accounts are the accounts present at genesis.
*
*
* repeated .google.protobuf.Any accounts = 2;
*/
public Builder removeAccounts(int index) {
if (accountsBuilder_ == null) {
ensureAccountsIsMutable();
accounts_.remove(index);
onChanged();
} else {
accountsBuilder_.remove(index);
}
return this;
}
/**
*
* accounts are the accounts present at genesis.
*
*
* repeated .google.protobuf.Any accounts = 2;
*/
public com.google.protobuf.Any.Builder getAccountsBuilder(
int index) {
return getAccountsFieldBuilder().getBuilder(index);
}
/**
*
* accounts are the accounts present at genesis.
*
*
* repeated .google.protobuf.Any accounts = 2;
*/
public com.google.protobuf.AnyOrBuilder getAccountsOrBuilder(
int index) {
if (accountsBuilder_ == null) {
return accounts_.get(index); } else {
return accountsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* accounts are the accounts present at genesis.
*
*
* repeated .google.protobuf.Any accounts = 2;
*/
public java.util.List extends com.google.protobuf.AnyOrBuilder>
getAccountsOrBuilderList() {
if (accountsBuilder_ != null) {
return accountsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(accounts_);
}
}
/**
*
* accounts are the accounts present at genesis.
*
*
* repeated .google.protobuf.Any accounts = 2;
*/
public com.google.protobuf.Any.Builder addAccountsBuilder() {
return getAccountsFieldBuilder().addBuilder(
com.google.protobuf.Any.getDefaultInstance());
}
/**
*
* accounts are the accounts present at genesis.
*
*
* repeated .google.protobuf.Any accounts = 2;
*/
public com.google.protobuf.Any.Builder addAccountsBuilder(
int index) {
return getAccountsFieldBuilder().addBuilder(
index, com.google.protobuf.Any.getDefaultInstance());
}
/**
*
* accounts are the accounts present at genesis.
*
*
* repeated .google.protobuf.Any accounts = 2;
*/
public java.util.List
getAccountsBuilderList() {
return getAccountsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getAccountsFieldBuilder() {
if (accountsBuilder_ == null) {
accountsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
accounts_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
accounts_ = null;
}
return accountsBuilder_;
}
@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.auth.v1beta1.GenesisState)
}
// @@protoc_insertion_point(class_scope:cosmos.auth.v1beta1.GenesisState)
private static final cosmos.auth.v1beta1.Genesis.GenesisState DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cosmos.auth.v1beta1.Genesis.GenesisState();
}
public static cosmos.auth.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.auth.v1beta1.Genesis.GenesisState getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cosmos_auth_v1beta1_GenesisState_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cosmos_auth_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/auth/v1beta1/genesis.proto\022\023cos" +
"mos.auth.v1beta1\032\031google/protobuf/any.pr" +
"oto\032\024gogoproto/gogo.proto\032\036cosmos/auth/v" +
"1beta1/auth.proto\"i\n\014GenesisState\0221\n\006par" +
"ams\030\001 \001(\0132\033.cosmos.auth.v1beta1.ParamsB\004" +
"\310\336\037\000\022&\n\010accounts\030\002 \003(\0132\024.google.protobuf" +
".AnyB+Z)github.com/cosmos/cosmos-sdk/x/a" +
"uth/typesb\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.AnyProto.getDescriptor(),
com.google.protobuf.GoGoProtos.getDescriptor(),
cosmos.auth.v1beta1.Auth.getDescriptor(),
}, assigner);
internal_static_cosmos_auth_v1beta1_GenesisState_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_cosmos_auth_v1beta1_GenesisState_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cosmos_auth_v1beta1_GenesisState_descriptor,
new java.lang.String[] { "Params", "Accounts", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.protobuf.GoGoProtos.nullable);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.protobuf.AnyProto.getDescriptor();
com.google.protobuf.GoGoProtos.getDescriptor();
cosmos.auth.v1beta1.Auth.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy