All Downloads are FREE. Search and download functionalities are using the official Maven repository.

proto.cosmos.bank.v1beta1.Genesis Maven / Gradle / Ivy

There is a newer version: 0.13
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: cosmos/bank/v1beta1/genesis.proto

package proto.cosmos.bank.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.bank.v1beta1.GenesisState)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * params defines all the paramaters of the module.
     * 
* * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; * @return Whether the params field is set. */ boolean hasParams(); /** *
     * params defines all the paramaters of the module.
     * 
* * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; * @return The params. */ proto.cosmos.bank.v1beta1.Bank.Params getParams(); /** *
     * params defines all the paramaters of the module.
     * 
* * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ proto.cosmos.bank.v1beta1.Bank.ParamsOrBuilder getParamsOrBuilder(); /** *
     * balances is an array containing the balances of all the accounts.
     * 
* * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; */ java.util.List getBalancesList(); /** *
     * balances is an array containing the balances of all the accounts.
     * 
* * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; */ proto.cosmos.bank.v1beta1.Genesis.Balance getBalances(int index); /** *
     * balances is an array containing the balances of all the accounts.
     * 
* * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; */ int getBalancesCount(); /** *
     * balances is an array containing the balances of all the accounts.
     * 
* * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; */ java.util.List getBalancesOrBuilderList(); /** *
     * balances is an array containing the balances of all the accounts.
     * 
* * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; */ proto.cosmos.bank.v1beta1.Genesis.BalanceOrBuilder getBalancesOrBuilder( int index); /** *
     * supply represents the total supply.
     * 
* * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ java.util.List getSupplyList(); /** *
     * supply represents the total supply.
     * 
* * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ proto.cosmos.base.v1beta1.CoinOuterClass.Coin getSupply(int index); /** *
     * supply represents the total supply.
     * 
* * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ int getSupplyCount(); /** *
     * supply represents the total supply.
     * 
* * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ java.util.List getSupplyOrBuilderList(); /** *
     * supply represents the total supply.
     * 
* * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ proto.cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getSupplyOrBuilder( int index); /** *
     * denom_metadata defines the metadata of the differents coins.
     * 
* * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; */ java.util.List getDenomMetadataList(); /** *
     * denom_metadata defines the metadata of the differents coins.
     * 
* * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; */ proto.cosmos.bank.v1beta1.Bank.Metadata getDenomMetadata(int index); /** *
     * denom_metadata defines the metadata of the differents coins.
     * 
* * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; */ int getDenomMetadataCount(); /** *
     * denom_metadata defines the metadata of the differents coins.
     * 
* * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; */ java.util.List getDenomMetadataOrBuilderList(); /** *
     * denom_metadata defines the metadata of the differents coins.
     * 
* * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; */ proto.cosmos.bank.v1beta1.Bank.MetadataOrBuilder getDenomMetadataOrBuilder( int index); } /** *
   * GenesisState defines the bank module's genesis state.
   * 
* * Protobuf type {@code cosmos.bank.v1beta1.GenesisState} */ public static final class GenesisState extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.bank.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() { balances_ = java.util.Collections.emptyList(); supply_ = java.util.Collections.emptyList(); denomMetadata_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GenesisState(); } @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: { proto.cosmos.bank.v1beta1.Bank.Params.Builder subBuilder = null; if (params_ != null) { subBuilder = params_.toBuilder(); } params_ = input.readMessage(proto.cosmos.bank.v1beta1.Bank.Params.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(params_); params_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { balances_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } balances_.add( input.readMessage(proto.cosmos.bank.v1beta1.Genesis.Balance.parser(), extensionRegistry)); break; } case 26: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { supply_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } supply_.add( input.readMessage(proto.cosmos.base.v1beta1.CoinOuterClass.Coin.parser(), extensionRegistry)); break; } case 34: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { denomMetadata_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } denomMetadata_.add( input.readMessage(proto.cosmos.bank.v1beta1.Bank.Metadata.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( 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_ & 0x00000001) != 0)) { balances_ = java.util.Collections.unmodifiableList(balances_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { supply_ = java.util.Collections.unmodifiableList(supply_); } if (((mutable_bitField0_ & 0x00000004) != 0)) { denomMetadata_ = java.util.Collections.unmodifiableList(denomMetadata_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto.cosmos.bank.v1beta1.Genesis.internal_static_cosmos_bank_v1beta1_GenesisState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto.cosmos.bank.v1beta1.Genesis.internal_static_cosmos_bank_v1beta1_GenesisState_fieldAccessorTable .ensureFieldAccessorsInitialized( proto.cosmos.bank.v1beta1.Genesis.GenesisState.class, proto.cosmos.bank.v1beta1.Genesis.GenesisState.Builder.class); } public static final int PARAMS_FIELD_NUMBER = 1; private proto.cosmos.bank.v1beta1.Bank.Params params_; /** *
     * params defines all the paramaters of the module.
     * 
* * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; * @return Whether the params field is set. */ @java.lang.Override public boolean hasParams() { return params_ != null; } /** *
     * params defines all the paramaters of the module.
     * 
* * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; * @return The params. */ @java.lang.Override public proto.cosmos.bank.v1beta1.Bank.Params getParams() { return params_ == null ? proto.cosmos.bank.v1beta1.Bank.Params.getDefaultInstance() : params_; } /** *
     * params defines all the paramaters of the module.
     * 
* * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ @java.lang.Override public proto.cosmos.bank.v1beta1.Bank.ParamsOrBuilder getParamsOrBuilder() { return getParams(); } public static final int BALANCES_FIELD_NUMBER = 2; private java.util.List balances_; /** *
     * balances is an array containing the balances of all the accounts.
     * 
* * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; */ @java.lang.Override public java.util.List getBalancesList() { return balances_; } /** *
     * balances is an array containing the balances of all the accounts.
     * 
* * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; */ @java.lang.Override public java.util.List getBalancesOrBuilderList() { return balances_; } /** *
     * balances is an array containing the balances of all the accounts.
     * 
* * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; */ @java.lang.Override public int getBalancesCount() { return balances_.size(); } /** *
     * balances is an array containing the balances of all the accounts.
     * 
* * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; */ @java.lang.Override public proto.cosmos.bank.v1beta1.Genesis.Balance getBalances(int index) { return balances_.get(index); } /** *
     * balances is an array containing the balances of all the accounts.
     * 
* * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; */ @java.lang.Override public proto.cosmos.bank.v1beta1.Genesis.BalanceOrBuilder getBalancesOrBuilder( int index) { return balances_.get(index); } public static final int SUPPLY_FIELD_NUMBER = 3; private java.util.List supply_; /** *
     * supply represents the total supply.
     * 
* * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ @java.lang.Override public java.util.List getSupplyList() { return supply_; } /** *
     * supply represents the total supply.
     * 
* * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ @java.lang.Override public java.util.List getSupplyOrBuilderList() { return supply_; } /** *
     * supply represents the total supply.
     * 
* * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ @java.lang.Override public int getSupplyCount() { return supply_.size(); } /** *
     * supply represents the total supply.
     * 
* * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ @java.lang.Override public proto.cosmos.base.v1beta1.CoinOuterClass.Coin getSupply(int index) { return supply_.get(index); } /** *
     * supply represents the total supply.
     * 
* * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ @java.lang.Override public proto.cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getSupplyOrBuilder( int index) { return supply_.get(index); } public static final int DENOM_METADATA_FIELD_NUMBER = 4; private java.util.List denomMetadata_; /** *
     * denom_metadata defines the metadata of the differents coins.
     * 
* * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; */ @java.lang.Override public java.util.List getDenomMetadataList() { return denomMetadata_; } /** *
     * denom_metadata defines the metadata of the differents coins.
     * 
* * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; */ @java.lang.Override public java.util.List getDenomMetadataOrBuilderList() { return denomMetadata_; } /** *
     * denom_metadata defines the metadata of the differents coins.
     * 
* * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; */ @java.lang.Override public int getDenomMetadataCount() { return denomMetadata_.size(); } /** *
     * denom_metadata defines the metadata of the differents coins.
     * 
* * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; */ @java.lang.Override public proto.cosmos.bank.v1beta1.Bank.Metadata getDenomMetadata(int index) { return denomMetadata_.get(index); } /** *
     * denom_metadata defines the metadata of the differents coins.
     * 
* * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; */ @java.lang.Override public proto.cosmos.bank.v1beta1.Bank.MetadataOrBuilder getDenomMetadataOrBuilder( int index) { return denomMetadata_.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 < balances_.size(); i++) { output.writeMessage(2, balances_.get(i)); } for (int i = 0; i < supply_.size(); i++) { output.writeMessage(3, supply_.get(i)); } for (int i = 0; i < denomMetadata_.size(); i++) { output.writeMessage(4, denomMetadata_.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 < balances_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, balances_.get(i)); } for (int i = 0; i < supply_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, supply_.get(i)); } for (int i = 0; i < denomMetadata_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, denomMetadata_.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 proto.cosmos.bank.v1beta1.Genesis.GenesisState)) { return super.equals(obj); } proto.cosmos.bank.v1beta1.Genesis.GenesisState other = (proto.cosmos.bank.v1beta1.Genesis.GenesisState) obj; if (hasParams() != other.hasParams()) return false; if (hasParams()) { if (!getParams() .equals(other.getParams())) return false; } if (!getBalancesList() .equals(other.getBalancesList())) return false; if (!getSupplyList() .equals(other.getSupplyList())) return false; if (!getDenomMetadataList() .equals(other.getDenomMetadataList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @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 (getBalancesCount() > 0) { hash = (37 * hash) + BALANCES_FIELD_NUMBER; hash = (53 * hash) + getBalancesList().hashCode(); } if (getSupplyCount() > 0) { hash = (37 * hash) + SUPPLY_FIELD_NUMBER; hash = (53 * hash) + getSupplyList().hashCode(); } if (getDenomMetadataCount() > 0) { hash = (37 * hash) + DENOM_METADATA_FIELD_NUMBER; hash = (53 * hash) + getDenomMetadataList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static proto.cosmos.bank.v1beta1.Genesis.GenesisState parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.cosmos.bank.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 proto.cosmos.bank.v1beta1.Genesis.GenesisState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.cosmos.bank.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 proto.cosmos.bank.v1beta1.Genesis.GenesisState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.cosmos.bank.v1beta1.Genesis.GenesisState parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto.cosmos.bank.v1beta1.Genesis.GenesisState parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto.cosmos.bank.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 proto.cosmos.bank.v1beta1.Genesis.GenesisState parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static proto.cosmos.bank.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 proto.cosmos.bank.v1beta1.Genesis.GenesisState parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto.cosmos.bank.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(proto.cosmos.bank.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 bank module's genesis state.
     * 
* * Protobuf type {@code cosmos.bank.v1beta1.GenesisState} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.GenesisState) proto.cosmos.bank.v1beta1.Genesis.GenesisStateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto.cosmos.bank.v1beta1.Genesis.internal_static_cosmos_bank_v1beta1_GenesisState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto.cosmos.bank.v1beta1.Genesis.internal_static_cosmos_bank_v1beta1_GenesisState_fieldAccessorTable .ensureFieldAccessorsInitialized( proto.cosmos.bank.v1beta1.Genesis.GenesisState.class, proto.cosmos.bank.v1beta1.Genesis.GenesisState.Builder.class); } // Construct using proto.cosmos.bank.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) { getBalancesFieldBuilder(); getSupplyFieldBuilder(); getDenomMetadataFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (paramsBuilder_ == null) { params_ = null; } else { params_ = null; paramsBuilder_ = null; } if (balancesBuilder_ == null) { balances_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { balancesBuilder_.clear(); } if (supplyBuilder_ == null) { supply_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { supplyBuilder_.clear(); } if (denomMetadataBuilder_ == null) { denomMetadata_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { denomMetadataBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return proto.cosmos.bank.v1beta1.Genesis.internal_static_cosmos_bank_v1beta1_GenesisState_descriptor; } @java.lang.Override public proto.cosmos.bank.v1beta1.Genesis.GenesisState getDefaultInstanceForType() { return proto.cosmos.bank.v1beta1.Genesis.GenesisState.getDefaultInstance(); } @java.lang.Override public proto.cosmos.bank.v1beta1.Genesis.GenesisState build() { proto.cosmos.bank.v1beta1.Genesis.GenesisState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public proto.cosmos.bank.v1beta1.Genesis.GenesisState buildPartial() { proto.cosmos.bank.v1beta1.Genesis.GenesisState result = new proto.cosmos.bank.v1beta1.Genesis.GenesisState(this); int from_bitField0_ = bitField0_; if (paramsBuilder_ == null) { result.params_ = params_; } else { result.params_ = paramsBuilder_.build(); } if (balancesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { balances_ = java.util.Collections.unmodifiableList(balances_); bitField0_ = (bitField0_ & ~0x00000001); } result.balances_ = balances_; } else { result.balances_ = balancesBuilder_.build(); } if (supplyBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { supply_ = java.util.Collections.unmodifiableList(supply_); bitField0_ = (bitField0_ & ~0x00000002); } result.supply_ = supply_; } else { result.supply_ = supplyBuilder_.build(); } if (denomMetadataBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { denomMetadata_ = java.util.Collections.unmodifiableList(denomMetadata_); bitField0_ = (bitField0_ & ~0x00000004); } result.denomMetadata_ = denomMetadata_; } else { result.denomMetadata_ = denomMetadataBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof proto.cosmos.bank.v1beta1.Genesis.GenesisState) { return mergeFrom((proto.cosmos.bank.v1beta1.Genesis.GenesisState)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(proto.cosmos.bank.v1beta1.Genesis.GenesisState other) { if (other == proto.cosmos.bank.v1beta1.Genesis.GenesisState.getDefaultInstance()) return this; if (other.hasParams()) { mergeParams(other.getParams()); } if (balancesBuilder_ == null) { if (!other.balances_.isEmpty()) { if (balances_.isEmpty()) { balances_ = other.balances_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureBalancesIsMutable(); balances_.addAll(other.balances_); } onChanged(); } } else { if (!other.balances_.isEmpty()) { if (balancesBuilder_.isEmpty()) { balancesBuilder_.dispose(); balancesBuilder_ = null; balances_ = other.balances_; bitField0_ = (bitField0_ & ~0x00000001); balancesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getBalancesFieldBuilder() : null; } else { balancesBuilder_.addAllMessages(other.balances_); } } } if (supplyBuilder_ == null) { if (!other.supply_.isEmpty()) { if (supply_.isEmpty()) { supply_ = other.supply_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSupplyIsMutable(); supply_.addAll(other.supply_); } onChanged(); } } else { if (!other.supply_.isEmpty()) { if (supplyBuilder_.isEmpty()) { supplyBuilder_.dispose(); supplyBuilder_ = null; supply_ = other.supply_; bitField0_ = (bitField0_ & ~0x00000002); supplyBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSupplyFieldBuilder() : null; } else { supplyBuilder_.addAllMessages(other.supply_); } } } if (denomMetadataBuilder_ == null) { if (!other.denomMetadata_.isEmpty()) { if (denomMetadata_.isEmpty()) { denomMetadata_ = other.denomMetadata_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureDenomMetadataIsMutable(); denomMetadata_.addAll(other.denomMetadata_); } onChanged(); } } else { if (!other.denomMetadata_.isEmpty()) { if (denomMetadataBuilder_.isEmpty()) { denomMetadataBuilder_.dispose(); denomMetadataBuilder_ = null; denomMetadata_ = other.denomMetadata_; bitField0_ = (bitField0_ & ~0x00000004); denomMetadataBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDenomMetadataFieldBuilder() : null; } else { denomMetadataBuilder_.addAllMessages(other.denomMetadata_); } } } 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 { proto.cosmos.bank.v1beta1.Genesis.GenesisState parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (proto.cosmos.bank.v1beta1.Genesis.GenesisState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private proto.cosmos.bank.v1beta1.Bank.Params params_; private com.google.protobuf.SingleFieldBuilderV3< proto.cosmos.bank.v1beta1.Bank.Params, proto.cosmos.bank.v1beta1.Bank.Params.Builder, proto.cosmos.bank.v1beta1.Bank.ParamsOrBuilder> paramsBuilder_; /** *
       * params defines all the paramaters of the module.
       * 
* * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; * @return Whether the params field is set. */ public boolean hasParams() { return paramsBuilder_ != null || params_ != null; } /** *
       * params defines all the paramaters of the module.
       * 
* * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; * @return The params. */ public proto.cosmos.bank.v1beta1.Bank.Params getParams() { if (paramsBuilder_ == null) { return params_ == null ? proto.cosmos.bank.v1beta1.Bank.Params.getDefaultInstance() : params_; } else { return paramsBuilder_.getMessage(); } } /** *
       * params defines all the paramaters of the module.
       * 
* * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public Builder setParams(proto.cosmos.bank.v1beta1.Bank.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.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public Builder setParams( proto.cosmos.bank.v1beta1.Bank.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.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public Builder mergeParams(proto.cosmos.bank.v1beta1.Bank.Params value) { if (paramsBuilder_ == null) { if (params_ != null) { params_ = proto.cosmos.bank.v1beta1.Bank.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.bank.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.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public proto.cosmos.bank.v1beta1.Bank.Params.Builder getParamsBuilder() { onChanged(); return getParamsFieldBuilder().getBuilder(); } /** *
       * params defines all the paramaters of the module.
       * 
* * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ public proto.cosmos.bank.v1beta1.Bank.ParamsOrBuilder getParamsOrBuilder() { if (paramsBuilder_ != null) { return paramsBuilder_.getMessageOrBuilder(); } else { return params_ == null ? proto.cosmos.bank.v1beta1.Bank.Params.getDefaultInstance() : params_; } } /** *
       * params defines all the paramaters of the module.
       * 
* * .cosmos.bank.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; */ private com.google.protobuf.SingleFieldBuilderV3< proto.cosmos.bank.v1beta1.Bank.Params, proto.cosmos.bank.v1beta1.Bank.Params.Builder, proto.cosmos.bank.v1beta1.Bank.ParamsOrBuilder> getParamsFieldBuilder() { if (paramsBuilder_ == null) { paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< proto.cosmos.bank.v1beta1.Bank.Params, proto.cosmos.bank.v1beta1.Bank.Params.Builder, proto.cosmos.bank.v1beta1.Bank.ParamsOrBuilder>( getParams(), getParentForChildren(), isClean()); params_ = null; } return paramsBuilder_; } private java.util.List balances_ = java.util.Collections.emptyList(); private void ensureBalancesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { balances_ = new java.util.ArrayList(balances_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< proto.cosmos.bank.v1beta1.Genesis.Balance, proto.cosmos.bank.v1beta1.Genesis.Balance.Builder, proto.cosmos.bank.v1beta1.Genesis.BalanceOrBuilder> balancesBuilder_; /** *
       * balances is an array containing the balances of all the accounts.
       * 
* * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; */ public java.util.List getBalancesList() { if (balancesBuilder_ == null) { return java.util.Collections.unmodifiableList(balances_); } else { return balancesBuilder_.getMessageList(); } } /** *
       * balances is an array containing the balances of all the accounts.
       * 
* * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; */ public int getBalancesCount() { if (balancesBuilder_ == null) { return balances_.size(); } else { return balancesBuilder_.getCount(); } } /** *
       * balances is an array containing the balances of all the accounts.
       * 
* * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; */ public proto.cosmos.bank.v1beta1.Genesis.Balance getBalances(int index) { if (balancesBuilder_ == null) { return balances_.get(index); } else { return balancesBuilder_.getMessage(index); } } /** *
       * balances is an array containing the balances of all the accounts.
       * 
* * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; */ public Builder setBalances( int index, proto.cosmos.bank.v1beta1.Genesis.Balance value) { if (balancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBalancesIsMutable(); balances_.set(index, value); onChanged(); } else { balancesBuilder_.setMessage(index, value); } return this; } /** *
       * balances is an array containing the balances of all the accounts.
       * 
* * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; */ public Builder setBalances( int index, proto.cosmos.bank.v1beta1.Genesis.Balance.Builder builderForValue) { if (balancesBuilder_ == null) { ensureBalancesIsMutable(); balances_.set(index, builderForValue.build()); onChanged(); } else { balancesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * balances is an array containing the balances of all the accounts.
       * 
* * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; */ public Builder addBalances(proto.cosmos.bank.v1beta1.Genesis.Balance value) { if (balancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBalancesIsMutable(); balances_.add(value); onChanged(); } else { balancesBuilder_.addMessage(value); } return this; } /** *
       * balances is an array containing the balances of all the accounts.
       * 
* * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; */ public Builder addBalances( int index, proto.cosmos.bank.v1beta1.Genesis.Balance value) { if (balancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBalancesIsMutable(); balances_.add(index, value); onChanged(); } else { balancesBuilder_.addMessage(index, value); } return this; } /** *
       * balances is an array containing the balances of all the accounts.
       * 
* * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; */ public Builder addBalances( proto.cosmos.bank.v1beta1.Genesis.Balance.Builder builderForValue) { if (balancesBuilder_ == null) { ensureBalancesIsMutable(); balances_.add(builderForValue.build()); onChanged(); } else { balancesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * balances is an array containing the balances of all the accounts.
       * 
* * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; */ public Builder addBalances( int index, proto.cosmos.bank.v1beta1.Genesis.Balance.Builder builderForValue) { if (balancesBuilder_ == null) { ensureBalancesIsMutable(); balances_.add(index, builderForValue.build()); onChanged(); } else { balancesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * balances is an array containing the balances of all the accounts.
       * 
* * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; */ public Builder addAllBalances( java.lang.Iterable values) { if (balancesBuilder_ == null) { ensureBalancesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, balances_); onChanged(); } else { balancesBuilder_.addAllMessages(values); } return this; } /** *
       * balances is an array containing the balances of all the accounts.
       * 
* * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; */ public Builder clearBalances() { if (balancesBuilder_ == null) { balances_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { balancesBuilder_.clear(); } return this; } /** *
       * balances is an array containing the balances of all the accounts.
       * 
* * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; */ public Builder removeBalances(int index) { if (balancesBuilder_ == null) { ensureBalancesIsMutable(); balances_.remove(index); onChanged(); } else { balancesBuilder_.remove(index); } return this; } /** *
       * balances is an array containing the balances of all the accounts.
       * 
* * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; */ public proto.cosmos.bank.v1beta1.Genesis.Balance.Builder getBalancesBuilder( int index) { return getBalancesFieldBuilder().getBuilder(index); } /** *
       * balances is an array containing the balances of all the accounts.
       * 
* * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; */ public proto.cosmos.bank.v1beta1.Genesis.BalanceOrBuilder getBalancesOrBuilder( int index) { if (balancesBuilder_ == null) { return balances_.get(index); } else { return balancesBuilder_.getMessageOrBuilder(index); } } /** *
       * balances is an array containing the balances of all the accounts.
       * 
* * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; */ public java.util.List getBalancesOrBuilderList() { if (balancesBuilder_ != null) { return balancesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(balances_); } } /** *
       * balances is an array containing the balances of all the accounts.
       * 
* * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; */ public proto.cosmos.bank.v1beta1.Genesis.Balance.Builder addBalancesBuilder() { return getBalancesFieldBuilder().addBuilder( proto.cosmos.bank.v1beta1.Genesis.Balance.getDefaultInstance()); } /** *
       * balances is an array containing the balances of all the accounts.
       * 
* * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; */ public proto.cosmos.bank.v1beta1.Genesis.Balance.Builder addBalancesBuilder( int index) { return getBalancesFieldBuilder().addBuilder( index, proto.cosmos.bank.v1beta1.Genesis.Balance.getDefaultInstance()); } /** *
       * balances is an array containing the balances of all the accounts.
       * 
* * repeated .cosmos.bank.v1beta1.Balance balances = 2 [(.gogoproto.nullable) = false]; */ public java.util.List getBalancesBuilderList() { return getBalancesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< proto.cosmos.bank.v1beta1.Genesis.Balance, proto.cosmos.bank.v1beta1.Genesis.Balance.Builder, proto.cosmos.bank.v1beta1.Genesis.BalanceOrBuilder> getBalancesFieldBuilder() { if (balancesBuilder_ == null) { balancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< proto.cosmos.bank.v1beta1.Genesis.Balance, proto.cosmos.bank.v1beta1.Genesis.Balance.Builder, proto.cosmos.bank.v1beta1.Genesis.BalanceOrBuilder>( balances_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); balances_ = null; } return balancesBuilder_; } private java.util.List supply_ = java.util.Collections.emptyList(); private void ensureSupplyIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { supply_ = new java.util.ArrayList(supply_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< proto.cosmos.base.v1beta1.CoinOuterClass.Coin, proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, proto.cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder> supplyBuilder_; /** *
       * supply represents the total supply.
       * 
* * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public java.util.List getSupplyList() { if (supplyBuilder_ == null) { return java.util.Collections.unmodifiableList(supply_); } else { return supplyBuilder_.getMessageList(); } } /** *
       * supply represents the total supply.
       * 
* * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public int getSupplyCount() { if (supplyBuilder_ == null) { return supply_.size(); } else { return supplyBuilder_.getCount(); } } /** *
       * supply represents the total supply.
       * 
* * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public proto.cosmos.base.v1beta1.CoinOuterClass.Coin getSupply(int index) { if (supplyBuilder_ == null) { return supply_.get(index); } else { return supplyBuilder_.getMessage(index); } } /** *
       * supply represents the total supply.
       * 
* * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder setSupply( int index, proto.cosmos.base.v1beta1.CoinOuterClass.Coin value) { if (supplyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSupplyIsMutable(); supply_.set(index, value); onChanged(); } else { supplyBuilder_.setMessage(index, value); } return this; } /** *
       * supply represents the total supply.
       * 
* * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder setSupply( int index, proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) { if (supplyBuilder_ == null) { ensureSupplyIsMutable(); supply_.set(index, builderForValue.build()); onChanged(); } else { supplyBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * supply represents the total supply.
       * 
* * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder addSupply(proto.cosmos.base.v1beta1.CoinOuterClass.Coin value) { if (supplyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSupplyIsMutable(); supply_.add(value); onChanged(); } else { supplyBuilder_.addMessage(value); } return this; } /** *
       * supply represents the total supply.
       * 
* * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder addSupply( int index, proto.cosmos.base.v1beta1.CoinOuterClass.Coin value) { if (supplyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSupplyIsMutable(); supply_.add(index, value); onChanged(); } else { supplyBuilder_.addMessage(index, value); } return this; } /** *
       * supply represents the total supply.
       * 
* * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder addSupply( proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) { if (supplyBuilder_ == null) { ensureSupplyIsMutable(); supply_.add(builderForValue.build()); onChanged(); } else { supplyBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * supply represents the total supply.
       * 
* * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder addSupply( int index, proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) { if (supplyBuilder_ == null) { ensureSupplyIsMutable(); supply_.add(index, builderForValue.build()); onChanged(); } else { supplyBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * supply represents the total supply.
       * 
* * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder addAllSupply( java.lang.Iterable values) { if (supplyBuilder_ == null) { ensureSupplyIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, supply_); onChanged(); } else { supplyBuilder_.addAllMessages(values); } return this; } /** *
       * supply represents the total supply.
       * 
* * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder clearSupply() { if (supplyBuilder_ == null) { supply_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { supplyBuilder_.clear(); } return this; } /** *
       * supply represents the total supply.
       * 
* * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder removeSupply(int index) { if (supplyBuilder_ == null) { ensureSupplyIsMutable(); supply_.remove(index); onChanged(); } else { supplyBuilder_.remove(index); } return this; } /** *
       * supply represents the total supply.
       * 
* * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder getSupplyBuilder( int index) { return getSupplyFieldBuilder().getBuilder(index); } /** *
       * supply represents the total supply.
       * 
* * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public proto.cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getSupplyOrBuilder( int index) { if (supplyBuilder_ == null) { return supply_.get(index); } else { return supplyBuilder_.getMessageOrBuilder(index); } } /** *
       * supply represents the total supply.
       * 
* * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public java.util.List getSupplyOrBuilderList() { if (supplyBuilder_ != null) { return supplyBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(supply_); } } /** *
       * supply represents the total supply.
       * 
* * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder addSupplyBuilder() { return getSupplyFieldBuilder().addBuilder( proto.cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance()); } /** *
       * supply represents the total supply.
       * 
* * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder addSupplyBuilder( int index) { return getSupplyFieldBuilder().addBuilder( index, proto.cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance()); } /** *
       * supply represents the total supply.
       * 
* * repeated .cosmos.base.v1beta1.Coin supply = 3 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public java.util.List getSupplyBuilderList() { return getSupplyFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< proto.cosmos.base.v1beta1.CoinOuterClass.Coin, proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, proto.cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder> getSupplyFieldBuilder() { if (supplyBuilder_ == null) { supplyBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< proto.cosmos.base.v1beta1.CoinOuterClass.Coin, proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, proto.cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>( supply_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); supply_ = null; } return supplyBuilder_; } private java.util.List denomMetadata_ = java.util.Collections.emptyList(); private void ensureDenomMetadataIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { denomMetadata_ = new java.util.ArrayList(denomMetadata_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< proto.cosmos.bank.v1beta1.Bank.Metadata, proto.cosmos.bank.v1beta1.Bank.Metadata.Builder, proto.cosmos.bank.v1beta1.Bank.MetadataOrBuilder> denomMetadataBuilder_; /** *
       * denom_metadata defines the metadata of the differents coins.
       * 
* * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; */ public java.util.List getDenomMetadataList() { if (denomMetadataBuilder_ == null) { return java.util.Collections.unmodifiableList(denomMetadata_); } else { return denomMetadataBuilder_.getMessageList(); } } /** *
       * denom_metadata defines the metadata of the differents coins.
       * 
* * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; */ public int getDenomMetadataCount() { if (denomMetadataBuilder_ == null) { return denomMetadata_.size(); } else { return denomMetadataBuilder_.getCount(); } } /** *
       * denom_metadata defines the metadata of the differents coins.
       * 
* * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; */ public proto.cosmos.bank.v1beta1.Bank.Metadata getDenomMetadata(int index) { if (denomMetadataBuilder_ == null) { return denomMetadata_.get(index); } else { return denomMetadataBuilder_.getMessage(index); } } /** *
       * denom_metadata defines the metadata of the differents coins.
       * 
* * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; */ public Builder setDenomMetadata( int index, proto.cosmos.bank.v1beta1.Bank.Metadata value) { if (denomMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDenomMetadataIsMutable(); denomMetadata_.set(index, value); onChanged(); } else { denomMetadataBuilder_.setMessage(index, value); } return this; } /** *
       * denom_metadata defines the metadata of the differents coins.
       * 
* * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; */ public Builder setDenomMetadata( int index, proto.cosmos.bank.v1beta1.Bank.Metadata.Builder builderForValue) { if (denomMetadataBuilder_ == null) { ensureDenomMetadataIsMutable(); denomMetadata_.set(index, builderForValue.build()); onChanged(); } else { denomMetadataBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * denom_metadata defines the metadata of the differents coins.
       * 
* * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; */ public Builder addDenomMetadata(proto.cosmos.bank.v1beta1.Bank.Metadata value) { if (denomMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDenomMetadataIsMutable(); denomMetadata_.add(value); onChanged(); } else { denomMetadataBuilder_.addMessage(value); } return this; } /** *
       * denom_metadata defines the metadata of the differents coins.
       * 
* * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; */ public Builder addDenomMetadata( int index, proto.cosmos.bank.v1beta1.Bank.Metadata value) { if (denomMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDenomMetadataIsMutable(); denomMetadata_.add(index, value); onChanged(); } else { denomMetadataBuilder_.addMessage(index, value); } return this; } /** *
       * denom_metadata defines the metadata of the differents coins.
       * 
* * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; */ public Builder addDenomMetadata( proto.cosmos.bank.v1beta1.Bank.Metadata.Builder builderForValue) { if (denomMetadataBuilder_ == null) { ensureDenomMetadataIsMutable(); denomMetadata_.add(builderForValue.build()); onChanged(); } else { denomMetadataBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * denom_metadata defines the metadata of the differents coins.
       * 
* * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; */ public Builder addDenomMetadata( int index, proto.cosmos.bank.v1beta1.Bank.Metadata.Builder builderForValue) { if (denomMetadataBuilder_ == null) { ensureDenomMetadataIsMutable(); denomMetadata_.add(index, builderForValue.build()); onChanged(); } else { denomMetadataBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * denom_metadata defines the metadata of the differents coins.
       * 
* * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; */ public Builder addAllDenomMetadata( java.lang.Iterable values) { if (denomMetadataBuilder_ == null) { ensureDenomMetadataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, denomMetadata_); onChanged(); } else { denomMetadataBuilder_.addAllMessages(values); } return this; } /** *
       * denom_metadata defines the metadata of the differents coins.
       * 
* * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; */ public Builder clearDenomMetadata() { if (denomMetadataBuilder_ == null) { denomMetadata_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { denomMetadataBuilder_.clear(); } return this; } /** *
       * denom_metadata defines the metadata of the differents coins.
       * 
* * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; */ public Builder removeDenomMetadata(int index) { if (denomMetadataBuilder_ == null) { ensureDenomMetadataIsMutable(); denomMetadata_.remove(index); onChanged(); } else { denomMetadataBuilder_.remove(index); } return this; } /** *
       * denom_metadata defines the metadata of the differents coins.
       * 
* * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; */ public proto.cosmos.bank.v1beta1.Bank.Metadata.Builder getDenomMetadataBuilder( int index) { return getDenomMetadataFieldBuilder().getBuilder(index); } /** *
       * denom_metadata defines the metadata of the differents coins.
       * 
* * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; */ public proto.cosmos.bank.v1beta1.Bank.MetadataOrBuilder getDenomMetadataOrBuilder( int index) { if (denomMetadataBuilder_ == null) { return denomMetadata_.get(index); } else { return denomMetadataBuilder_.getMessageOrBuilder(index); } } /** *
       * denom_metadata defines the metadata of the differents coins.
       * 
* * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; */ public java.util.List getDenomMetadataOrBuilderList() { if (denomMetadataBuilder_ != null) { return denomMetadataBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(denomMetadata_); } } /** *
       * denom_metadata defines the metadata of the differents coins.
       * 
* * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; */ public proto.cosmos.bank.v1beta1.Bank.Metadata.Builder addDenomMetadataBuilder() { return getDenomMetadataFieldBuilder().addBuilder( proto.cosmos.bank.v1beta1.Bank.Metadata.getDefaultInstance()); } /** *
       * denom_metadata defines the metadata of the differents coins.
       * 
* * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; */ public proto.cosmos.bank.v1beta1.Bank.Metadata.Builder addDenomMetadataBuilder( int index) { return getDenomMetadataFieldBuilder().addBuilder( index, proto.cosmos.bank.v1beta1.Bank.Metadata.getDefaultInstance()); } /** *
       * denom_metadata defines the metadata of the differents coins.
       * 
* * repeated .cosmos.bank.v1beta1.Metadata denom_metadata = 4 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"denom_metadata\""]; */ public java.util.List getDenomMetadataBuilderList() { return getDenomMetadataFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< proto.cosmos.bank.v1beta1.Bank.Metadata, proto.cosmos.bank.v1beta1.Bank.Metadata.Builder, proto.cosmos.bank.v1beta1.Bank.MetadataOrBuilder> getDenomMetadataFieldBuilder() { if (denomMetadataBuilder_ == null) { denomMetadataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< proto.cosmos.bank.v1beta1.Bank.Metadata, proto.cosmos.bank.v1beta1.Bank.Metadata.Builder, proto.cosmos.bank.v1beta1.Bank.MetadataOrBuilder>( denomMetadata_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); denomMetadata_ = null; } return denomMetadataBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cosmos.bank.v1beta1.GenesisState) } // @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.GenesisState) private static final proto.cosmos.bank.v1beta1.Genesis.GenesisState DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new proto.cosmos.bank.v1beta1.Genesis.GenesisState(); } public static proto.cosmos.bank.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 proto.cosmos.bank.v1beta1.Genesis.GenesisState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BalanceOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.Balance) com.google.protobuf.MessageOrBuilder { /** *
     * address is the address of the balance holder.
     * 
* * string address = 1; * @return The address. */ java.lang.String getAddress(); /** *
     * address is the address of the balance holder.
     * 
* * string address = 1; * @return The bytes for address. */ com.google.protobuf.ByteString getAddressBytes(); /** *
     * coins defines the different coins this balance holds.
     * 
* * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ java.util.List getCoinsList(); /** *
     * coins defines the different coins this balance holds.
     * 
* * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ proto.cosmos.base.v1beta1.CoinOuterClass.Coin getCoins(int index); /** *
     * coins defines the different coins this balance holds.
     * 
* * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ int getCoinsCount(); /** *
     * coins defines the different coins this balance holds.
     * 
* * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ java.util.List getCoinsOrBuilderList(); /** *
     * coins defines the different coins this balance holds.
     * 
* * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ proto.cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getCoinsOrBuilder( int index); } /** *
   * Balance defines an account address and balance pair used in the bank module's
   * genesis state.
   * 
* * Protobuf type {@code cosmos.bank.v1beta1.Balance} */ public static final class Balance extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.Balance) BalanceOrBuilder { private static final long serialVersionUID = 0L; // Use Balance.newBuilder() to construct. private Balance(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Balance() { address_ = ""; coins_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Balance(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Balance( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); address_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { coins_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } coins_.add( input.readMessage(proto.cosmos.base.v1beta1.CoinOuterClass.Coin.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( 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_ & 0x00000001) != 0)) { coins_ = java.util.Collections.unmodifiableList(coins_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto.cosmos.bank.v1beta1.Genesis.internal_static_cosmos_bank_v1beta1_Balance_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto.cosmos.bank.v1beta1.Genesis.internal_static_cosmos_bank_v1beta1_Balance_fieldAccessorTable .ensureFieldAccessorsInitialized( proto.cosmos.bank.v1beta1.Genesis.Balance.class, proto.cosmos.bank.v1beta1.Genesis.Balance.Builder.class); } public static final int ADDRESS_FIELD_NUMBER = 1; private volatile java.lang.Object address_; /** *
     * address is the address of the balance holder.
     * 
* * string address = 1; * @return The address. */ @java.lang.Override public java.lang.String getAddress() { java.lang.Object ref = address_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); address_ = s; return s; } } /** *
     * address is the address of the balance holder.
     * 
* * string address = 1; * @return The bytes for address. */ @java.lang.Override public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COINS_FIELD_NUMBER = 2; private java.util.List coins_; /** *
     * coins defines the different coins this balance holds.
     * 
* * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ @java.lang.Override public java.util.List getCoinsList() { return coins_; } /** *
     * coins defines the different coins this balance holds.
     * 
* * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ @java.lang.Override public java.util.List getCoinsOrBuilderList() { return coins_; } /** *
     * coins defines the different coins this balance holds.
     * 
* * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ @java.lang.Override public int getCoinsCount() { return coins_.size(); } /** *
     * coins defines the different coins this balance holds.
     * 
* * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ @java.lang.Override public proto.cosmos.base.v1beta1.CoinOuterClass.Coin getCoins(int index) { return coins_.get(index); } /** *
     * coins defines the different coins this balance holds.
     * 
* * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ @java.lang.Override public proto.cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getCoinsOrBuilder( int index) { return coins_.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 (!getAddressBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); } for (int i = 0; i < coins_.size(); i++) { output.writeMessage(2, coins_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getAddressBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); } for (int i = 0; i < coins_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, coins_.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 proto.cosmos.bank.v1beta1.Genesis.Balance)) { return super.equals(obj); } proto.cosmos.bank.v1beta1.Genesis.Balance other = (proto.cosmos.bank.v1beta1.Genesis.Balance) obj; if (!getAddress() .equals(other.getAddress())) return false; if (!getCoinsList() .equals(other.getCoinsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); if (getCoinsCount() > 0) { hash = (37 * hash) + COINS_FIELD_NUMBER; hash = (53 * hash) + getCoinsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static proto.cosmos.bank.v1beta1.Genesis.Balance parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.cosmos.bank.v1beta1.Genesis.Balance parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto.cosmos.bank.v1beta1.Genesis.Balance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.cosmos.bank.v1beta1.Genesis.Balance parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto.cosmos.bank.v1beta1.Genesis.Balance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.cosmos.bank.v1beta1.Genesis.Balance parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto.cosmos.bank.v1beta1.Genesis.Balance parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto.cosmos.bank.v1beta1.Genesis.Balance 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 proto.cosmos.bank.v1beta1.Genesis.Balance parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static proto.cosmos.bank.v1beta1.Genesis.Balance 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 proto.cosmos.bank.v1beta1.Genesis.Balance parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto.cosmos.bank.v1beta1.Genesis.Balance 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(proto.cosmos.bank.v1beta1.Genesis.Balance 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; } /** *
     * Balance defines an account address and balance pair used in the bank module's
     * genesis state.
     * 
* * Protobuf type {@code cosmos.bank.v1beta1.Balance} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.Balance) proto.cosmos.bank.v1beta1.Genesis.BalanceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto.cosmos.bank.v1beta1.Genesis.internal_static_cosmos_bank_v1beta1_Balance_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto.cosmos.bank.v1beta1.Genesis.internal_static_cosmos_bank_v1beta1_Balance_fieldAccessorTable .ensureFieldAccessorsInitialized( proto.cosmos.bank.v1beta1.Genesis.Balance.class, proto.cosmos.bank.v1beta1.Genesis.Balance.Builder.class); } // Construct using proto.cosmos.bank.v1beta1.Genesis.Balance.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCoinsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); address_ = ""; if (coinsBuilder_ == null) { coins_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { coinsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return proto.cosmos.bank.v1beta1.Genesis.internal_static_cosmos_bank_v1beta1_Balance_descriptor; } @java.lang.Override public proto.cosmos.bank.v1beta1.Genesis.Balance getDefaultInstanceForType() { return proto.cosmos.bank.v1beta1.Genesis.Balance.getDefaultInstance(); } @java.lang.Override public proto.cosmos.bank.v1beta1.Genesis.Balance build() { proto.cosmos.bank.v1beta1.Genesis.Balance result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public proto.cosmos.bank.v1beta1.Genesis.Balance buildPartial() { proto.cosmos.bank.v1beta1.Genesis.Balance result = new proto.cosmos.bank.v1beta1.Genesis.Balance(this); int from_bitField0_ = bitField0_; result.address_ = address_; if (coinsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { coins_ = java.util.Collections.unmodifiableList(coins_); bitField0_ = (bitField0_ & ~0x00000001); } result.coins_ = coins_; } else { result.coins_ = coinsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof proto.cosmos.bank.v1beta1.Genesis.Balance) { return mergeFrom((proto.cosmos.bank.v1beta1.Genesis.Balance)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(proto.cosmos.bank.v1beta1.Genesis.Balance other) { if (other == proto.cosmos.bank.v1beta1.Genesis.Balance.getDefaultInstance()) return this; if (!other.getAddress().isEmpty()) { address_ = other.address_; onChanged(); } if (coinsBuilder_ == null) { if (!other.coins_.isEmpty()) { if (coins_.isEmpty()) { coins_ = other.coins_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureCoinsIsMutable(); coins_.addAll(other.coins_); } onChanged(); } } else { if (!other.coins_.isEmpty()) { if (coinsBuilder_.isEmpty()) { coinsBuilder_.dispose(); coinsBuilder_ = null; coins_ = other.coins_; bitField0_ = (bitField0_ & ~0x00000001); coinsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCoinsFieldBuilder() : null; } else { coinsBuilder_.addAllMessages(other.coins_); } } } 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 { proto.cosmos.bank.v1beta1.Genesis.Balance parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (proto.cosmos.bank.v1beta1.Genesis.Balance) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object address_ = ""; /** *
       * address is the address of the balance holder.
       * 
* * string address = 1; * @return The address. */ public java.lang.String getAddress() { java.lang.Object ref = address_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); address_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * address is the address of the balance holder.
       * 
* * string address = 1; * @return The bytes for address. */ public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * address is the address of the balance holder.
       * 
* * string address = 1; * @param value The address to set. * @return This builder for chaining. */ public Builder setAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } address_ = value; onChanged(); return this; } /** *
       * address is the address of the balance holder.
       * 
* * string address = 1; * @return This builder for chaining. */ public Builder clearAddress() { address_ = getDefaultInstance().getAddress(); onChanged(); return this; } /** *
       * address is the address of the balance holder.
       * 
* * string address = 1; * @param value The bytes for address to set. * @return This builder for chaining. */ public Builder setAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); address_ = value; onChanged(); return this; } private java.util.List coins_ = java.util.Collections.emptyList(); private void ensureCoinsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { coins_ = new java.util.ArrayList(coins_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< proto.cosmos.base.v1beta1.CoinOuterClass.Coin, proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, proto.cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder> coinsBuilder_; /** *
       * coins defines the different coins this balance holds.
       * 
* * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public java.util.List getCoinsList() { if (coinsBuilder_ == null) { return java.util.Collections.unmodifiableList(coins_); } else { return coinsBuilder_.getMessageList(); } } /** *
       * coins defines the different coins this balance holds.
       * 
* * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public int getCoinsCount() { if (coinsBuilder_ == null) { return coins_.size(); } else { return coinsBuilder_.getCount(); } } /** *
       * coins defines the different coins this balance holds.
       * 
* * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public proto.cosmos.base.v1beta1.CoinOuterClass.Coin getCoins(int index) { if (coinsBuilder_ == null) { return coins_.get(index); } else { return coinsBuilder_.getMessage(index); } } /** *
       * coins defines the different coins this balance holds.
       * 
* * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder setCoins( int index, proto.cosmos.base.v1beta1.CoinOuterClass.Coin value) { if (coinsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCoinsIsMutable(); coins_.set(index, value); onChanged(); } else { coinsBuilder_.setMessage(index, value); } return this; } /** *
       * coins defines the different coins this balance holds.
       * 
* * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder setCoins( int index, proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) { if (coinsBuilder_ == null) { ensureCoinsIsMutable(); coins_.set(index, builderForValue.build()); onChanged(); } else { coinsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * coins defines the different coins this balance holds.
       * 
* * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder addCoins(proto.cosmos.base.v1beta1.CoinOuterClass.Coin value) { if (coinsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCoinsIsMutable(); coins_.add(value); onChanged(); } else { coinsBuilder_.addMessage(value); } return this; } /** *
       * coins defines the different coins this balance holds.
       * 
* * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder addCoins( int index, proto.cosmos.base.v1beta1.CoinOuterClass.Coin value) { if (coinsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCoinsIsMutable(); coins_.add(index, value); onChanged(); } else { coinsBuilder_.addMessage(index, value); } return this; } /** *
       * coins defines the different coins this balance holds.
       * 
* * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder addCoins( proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) { if (coinsBuilder_ == null) { ensureCoinsIsMutable(); coins_.add(builderForValue.build()); onChanged(); } else { coinsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * coins defines the different coins this balance holds.
       * 
* * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder addCoins( int index, proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) { if (coinsBuilder_ == null) { ensureCoinsIsMutable(); coins_.add(index, builderForValue.build()); onChanged(); } else { coinsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * coins defines the different coins this balance holds.
       * 
* * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder addAllCoins( java.lang.Iterable values) { if (coinsBuilder_ == null) { ensureCoinsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, coins_); onChanged(); } else { coinsBuilder_.addAllMessages(values); } return this; } /** *
       * coins defines the different coins this balance holds.
       * 
* * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder clearCoins() { if (coinsBuilder_ == null) { coins_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { coinsBuilder_.clear(); } return this; } /** *
       * coins defines the different coins this balance holds.
       * 
* * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder removeCoins(int index) { if (coinsBuilder_ == null) { ensureCoinsIsMutable(); coins_.remove(index); onChanged(); } else { coinsBuilder_.remove(index); } return this; } /** *
       * coins defines the different coins this balance holds.
       * 
* * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder getCoinsBuilder( int index) { return getCoinsFieldBuilder().getBuilder(index); } /** *
       * coins defines the different coins this balance holds.
       * 
* * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public proto.cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getCoinsOrBuilder( int index) { if (coinsBuilder_ == null) { return coins_.get(index); } else { return coinsBuilder_.getMessageOrBuilder(index); } } /** *
       * coins defines the different coins this balance holds.
       * 
* * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public java.util.List getCoinsOrBuilderList() { if (coinsBuilder_ != null) { return coinsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(coins_); } } /** *
       * coins defines the different coins this balance holds.
       * 
* * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder addCoinsBuilder() { return getCoinsFieldBuilder().addBuilder( proto.cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance()); } /** *
       * coins defines the different coins this balance holds.
       * 
* * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder addCoinsBuilder( int index) { return getCoinsFieldBuilder().addBuilder( index, proto.cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance()); } /** *
       * coins defines the different coins this balance holds.
       * 
* * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public java.util.List getCoinsBuilderList() { return getCoinsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< proto.cosmos.base.v1beta1.CoinOuterClass.Coin, proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, proto.cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder> getCoinsFieldBuilder() { if (coinsBuilder_ == null) { coinsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< proto.cosmos.base.v1beta1.CoinOuterClass.Coin, proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, proto.cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>( coins_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); coins_ = null; } return coinsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cosmos.bank.v1beta1.Balance) } // @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.Balance) private static final proto.cosmos.bank.v1beta1.Genesis.Balance DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new proto.cosmos.bank.v1beta1.Genesis.Balance(); } public static proto.cosmos.bank.v1beta1.Genesis.Balance getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Balance parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Balance(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 proto.cosmos.bank.v1beta1.Genesis.Balance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_bank_v1beta1_GenesisState_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_bank_v1beta1_GenesisState_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_bank_v1beta1_Balance_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_bank_v1beta1_Balance_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/bank/v1beta1/genesis.proto\022\023cos" + "mos.bank.v1beta1\032\024gogoproto/gogo.proto\032\036" + "cosmos/base/v1beta1/coin.proto\032\036cosmos/b" + "ank/v1beta1/bank.proto\"\252\002\n\014GenesisState\022" + "1\n\006params\030\001 \001(\0132\033.cosmos.bank.v1beta1.Pa" + "ramsB\004\310\336\037\000\0224\n\010balances\030\002 \003(\0132\034.cosmos.ba" + "nk.v1beta1.BalanceB\004\310\336\037\000\022[\n\006supply\030\003 \003(\013" + "2\031.cosmos.base.v1beta1.CoinB0\252\337\037(github." + "com/cosmos/cosmos-sdk/types.Coins\310\336\037\000\022T\n" + "\016denom_metadata\030\004 \003(\0132\035.cosmos.bank.v1be" + "ta1.MetadataB\035\362\336\037\025yaml:\"denom_metadata\"\310" + "\336\037\000\"\200\001\n\007Balance\022\017\n\007address\030\001 \001(\t\022Z\n\005coin" + "s\030\002 \003(\0132\031.cosmos.base.v1beta1.CoinB0\252\337\037(" + "github.com/cosmos/cosmos-sdk/types.Coins" + "\310\336\037\000:\010\350\240\037\000\210\240\037\000B\033\n\031proto.cosmos.bank.v1be" + "ta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.GoGoProtos.getDescriptor(), proto.cosmos.base.v1beta1.CoinOuterClass.getDescriptor(), proto.cosmos.bank.v1beta1.Bank.getDescriptor(), }); internal_static_cosmos_bank_v1beta1_GenesisState_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_cosmos_bank_v1beta1_GenesisState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_bank_v1beta1_GenesisState_descriptor, new java.lang.String[] { "Params", "Balances", "Supply", "DenomMetadata", }); internal_static_cosmos_bank_v1beta1_Balance_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_cosmos_bank_v1beta1_Balance_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_bank_v1beta1_Balance_descriptor, new java.lang.String[] { "Address", "Coins", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.protobuf.GoGoProtos.castrepeated); registry.add(com.google.protobuf.GoGoProtos.equal); registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); registry.add(com.google.protobuf.GoGoProtos.moretags); registry.add(com.google.protobuf.GoGoProtos.nullable); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.protobuf.GoGoProtos.getDescriptor(); proto.cosmos.base.v1beta1.CoinOuterClass.getDescriptor(); proto.cosmos.bank.v1beta1.Bank.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy