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

proto.cosmos.bank.v1beta1.Bank 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/bank.proto

package proto.cosmos.bank.v1beta1;

public final class Bank {
  private Bank() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface ParamsOrBuilder extends
      // @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.Params)
      com.google.protobuf.MessageOrBuilder {

    /**
     * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""];
     */
    java.util.List 
        getSendEnabledList();
    /**
     * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""];
     */
    proto.cosmos.bank.v1beta1.Bank.SendEnabled getSendEnabled(int index);
    /**
     * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""];
     */
    int getSendEnabledCount();
    /**
     * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""];
     */
    java.util.List 
        getSendEnabledOrBuilderList();
    /**
     * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""];
     */
    proto.cosmos.bank.v1beta1.Bank.SendEnabledOrBuilder getSendEnabledOrBuilder(
        int index);

    /**
     * bool default_send_enabled = 2 [(.gogoproto.moretags) = "yaml:\"default_send_enabled,omitempty\""];
     * @return The defaultSendEnabled.
     */
    boolean getDefaultSendEnabled();

    /**
     * bool unrestricted_token_transfer = 3 [(.gogoproto.moretags) = "yaml:\"unrestricted_token_transfer,omitempty\""];
     * @return The unrestrictedTokenTransfer.
     */
    boolean getUnrestrictedTokenTransfer();
  }
  /**
   * 
   * Params defines the parameters for the bank module.
   * 
* * Protobuf type {@code cosmos.bank.v1beta1.Params} */ public static final class Params extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.Params) ParamsOrBuilder { private static final long serialVersionUID = 0L; // Use Params.newBuilder() to construct. private Params(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Params() { sendEnabled_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Params(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Params( 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: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { sendEnabled_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } sendEnabled_.add( input.readMessage(proto.cosmos.bank.v1beta1.Bank.SendEnabled.parser(), extensionRegistry)); break; } case 16: { defaultSendEnabled_ = input.readBool(); break; } case 24: { unrestrictedTokenTransfer_ = input.readBool(); 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)) { sendEnabled_ = java.util.Collections.unmodifiableList(sendEnabled_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Params_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Params_fieldAccessorTable .ensureFieldAccessorsInitialized( proto.cosmos.bank.v1beta1.Bank.Params.class, proto.cosmos.bank.v1beta1.Bank.Params.Builder.class); } public static final int SEND_ENABLED_FIELD_NUMBER = 1; private java.util.List sendEnabled_; /** * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; */ @java.lang.Override public java.util.List getSendEnabledList() { return sendEnabled_; } /** * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; */ @java.lang.Override public java.util.List getSendEnabledOrBuilderList() { return sendEnabled_; } /** * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; */ @java.lang.Override public int getSendEnabledCount() { return sendEnabled_.size(); } /** * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; */ @java.lang.Override public proto.cosmos.bank.v1beta1.Bank.SendEnabled getSendEnabled(int index) { return sendEnabled_.get(index); } /** * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; */ @java.lang.Override public proto.cosmos.bank.v1beta1.Bank.SendEnabledOrBuilder getSendEnabledOrBuilder( int index) { return sendEnabled_.get(index); } public static final int DEFAULT_SEND_ENABLED_FIELD_NUMBER = 2; private boolean defaultSendEnabled_; /** * bool default_send_enabled = 2 [(.gogoproto.moretags) = "yaml:\"default_send_enabled,omitempty\""]; * @return The defaultSendEnabled. */ @java.lang.Override public boolean getDefaultSendEnabled() { return defaultSendEnabled_; } public static final int UNRESTRICTED_TOKEN_TRANSFER_FIELD_NUMBER = 3; private boolean unrestrictedTokenTransfer_; /** * bool unrestricted_token_transfer = 3 [(.gogoproto.moretags) = "yaml:\"unrestricted_token_transfer,omitempty\""]; * @return The unrestrictedTokenTransfer. */ @java.lang.Override public boolean getUnrestrictedTokenTransfer() { return unrestrictedTokenTransfer_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < sendEnabled_.size(); i++) { output.writeMessage(1, sendEnabled_.get(i)); } if (defaultSendEnabled_ != false) { output.writeBool(2, defaultSendEnabled_); } if (unrestrictedTokenTransfer_ != false) { output.writeBool(3, unrestrictedTokenTransfer_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < sendEnabled_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, sendEnabled_.get(i)); } if (defaultSendEnabled_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, defaultSendEnabled_); } if (unrestrictedTokenTransfer_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, unrestrictedTokenTransfer_); } 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.Bank.Params)) { return super.equals(obj); } proto.cosmos.bank.v1beta1.Bank.Params other = (proto.cosmos.bank.v1beta1.Bank.Params) obj; if (!getSendEnabledList() .equals(other.getSendEnabledList())) return false; if (getDefaultSendEnabled() != other.getDefaultSendEnabled()) return false; if (getUnrestrictedTokenTransfer() != other.getUnrestrictedTokenTransfer()) 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 (getSendEnabledCount() > 0) { hash = (37 * hash) + SEND_ENABLED_FIELD_NUMBER; hash = (53 * hash) + getSendEnabledList().hashCode(); } hash = (37 * hash) + DEFAULT_SEND_ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDefaultSendEnabled()); hash = (37 * hash) + UNRESTRICTED_TOKEN_TRANSFER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getUnrestrictedTokenTransfer()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static proto.cosmos.bank.v1beta1.Bank.Params parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.cosmos.bank.v1beta1.Bank.Params 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.Bank.Params parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.cosmos.bank.v1beta1.Bank.Params 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.Bank.Params parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.cosmos.bank.v1beta1.Bank.Params parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto.cosmos.bank.v1beta1.Bank.Params parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto.cosmos.bank.v1beta1.Bank.Params parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static proto.cosmos.bank.v1beta1.Bank.Params parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static proto.cosmos.bank.v1beta1.Bank.Params parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static proto.cosmos.bank.v1beta1.Bank.Params parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto.cosmos.bank.v1beta1.Bank.Params parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(proto.cosmos.bank.v1beta1.Bank.Params prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Params defines the parameters for the bank module.
     * 
* * Protobuf type {@code cosmos.bank.v1beta1.Params} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.Params) proto.cosmos.bank.v1beta1.Bank.ParamsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Params_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Params_fieldAccessorTable .ensureFieldAccessorsInitialized( proto.cosmos.bank.v1beta1.Bank.Params.class, proto.cosmos.bank.v1beta1.Bank.Params.Builder.class); } // Construct using proto.cosmos.bank.v1beta1.Bank.Params.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSendEnabledFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (sendEnabledBuilder_ == null) { sendEnabled_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { sendEnabledBuilder_.clear(); } defaultSendEnabled_ = false; unrestrictedTokenTransfer_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Params_descriptor; } @java.lang.Override public proto.cosmos.bank.v1beta1.Bank.Params getDefaultInstanceForType() { return proto.cosmos.bank.v1beta1.Bank.Params.getDefaultInstance(); } @java.lang.Override public proto.cosmos.bank.v1beta1.Bank.Params build() { proto.cosmos.bank.v1beta1.Bank.Params result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public proto.cosmos.bank.v1beta1.Bank.Params buildPartial() { proto.cosmos.bank.v1beta1.Bank.Params result = new proto.cosmos.bank.v1beta1.Bank.Params(this); int from_bitField0_ = bitField0_; if (sendEnabledBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { sendEnabled_ = java.util.Collections.unmodifiableList(sendEnabled_); bitField0_ = (bitField0_ & ~0x00000001); } result.sendEnabled_ = sendEnabled_; } else { result.sendEnabled_ = sendEnabledBuilder_.build(); } result.defaultSendEnabled_ = defaultSendEnabled_; result.unrestrictedTokenTransfer_ = unrestrictedTokenTransfer_; 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.Bank.Params) { return mergeFrom((proto.cosmos.bank.v1beta1.Bank.Params)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(proto.cosmos.bank.v1beta1.Bank.Params other) { if (other == proto.cosmos.bank.v1beta1.Bank.Params.getDefaultInstance()) return this; if (sendEnabledBuilder_ == null) { if (!other.sendEnabled_.isEmpty()) { if (sendEnabled_.isEmpty()) { sendEnabled_ = other.sendEnabled_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSendEnabledIsMutable(); sendEnabled_.addAll(other.sendEnabled_); } onChanged(); } } else { if (!other.sendEnabled_.isEmpty()) { if (sendEnabledBuilder_.isEmpty()) { sendEnabledBuilder_.dispose(); sendEnabledBuilder_ = null; sendEnabled_ = other.sendEnabled_; bitField0_ = (bitField0_ & ~0x00000001); sendEnabledBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSendEnabledFieldBuilder() : null; } else { sendEnabledBuilder_.addAllMessages(other.sendEnabled_); } } } if (other.getDefaultSendEnabled() != false) { setDefaultSendEnabled(other.getDefaultSendEnabled()); } if (other.getUnrestrictedTokenTransfer() != false) { setUnrestrictedTokenTransfer(other.getUnrestrictedTokenTransfer()); } 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.Bank.Params parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (proto.cosmos.bank.v1beta1.Bank.Params) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List sendEnabled_ = java.util.Collections.emptyList(); private void ensureSendEnabledIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { sendEnabled_ = new java.util.ArrayList(sendEnabled_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< proto.cosmos.bank.v1beta1.Bank.SendEnabled, proto.cosmos.bank.v1beta1.Bank.SendEnabled.Builder, proto.cosmos.bank.v1beta1.Bank.SendEnabledOrBuilder> sendEnabledBuilder_; /** * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; */ public java.util.List getSendEnabledList() { if (sendEnabledBuilder_ == null) { return java.util.Collections.unmodifiableList(sendEnabled_); } else { return sendEnabledBuilder_.getMessageList(); } } /** * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; */ public int getSendEnabledCount() { if (sendEnabledBuilder_ == null) { return sendEnabled_.size(); } else { return sendEnabledBuilder_.getCount(); } } /** * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; */ public proto.cosmos.bank.v1beta1.Bank.SendEnabled getSendEnabled(int index) { if (sendEnabledBuilder_ == null) { return sendEnabled_.get(index); } else { return sendEnabledBuilder_.getMessage(index); } } /** * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; */ public Builder setSendEnabled( int index, proto.cosmos.bank.v1beta1.Bank.SendEnabled value) { if (sendEnabledBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSendEnabledIsMutable(); sendEnabled_.set(index, value); onChanged(); } else { sendEnabledBuilder_.setMessage(index, value); } return this; } /** * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; */ public Builder setSendEnabled( int index, proto.cosmos.bank.v1beta1.Bank.SendEnabled.Builder builderForValue) { if (sendEnabledBuilder_ == null) { ensureSendEnabledIsMutable(); sendEnabled_.set(index, builderForValue.build()); onChanged(); } else { sendEnabledBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; */ public Builder addSendEnabled(proto.cosmos.bank.v1beta1.Bank.SendEnabled value) { if (sendEnabledBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSendEnabledIsMutable(); sendEnabled_.add(value); onChanged(); } else { sendEnabledBuilder_.addMessage(value); } return this; } /** * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; */ public Builder addSendEnabled( int index, proto.cosmos.bank.v1beta1.Bank.SendEnabled value) { if (sendEnabledBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSendEnabledIsMutable(); sendEnabled_.add(index, value); onChanged(); } else { sendEnabledBuilder_.addMessage(index, value); } return this; } /** * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; */ public Builder addSendEnabled( proto.cosmos.bank.v1beta1.Bank.SendEnabled.Builder builderForValue) { if (sendEnabledBuilder_ == null) { ensureSendEnabledIsMutable(); sendEnabled_.add(builderForValue.build()); onChanged(); } else { sendEnabledBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; */ public Builder addSendEnabled( int index, proto.cosmos.bank.v1beta1.Bank.SendEnabled.Builder builderForValue) { if (sendEnabledBuilder_ == null) { ensureSendEnabledIsMutable(); sendEnabled_.add(index, builderForValue.build()); onChanged(); } else { sendEnabledBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; */ public Builder addAllSendEnabled( java.lang.Iterable values) { if (sendEnabledBuilder_ == null) { ensureSendEnabledIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, sendEnabled_); onChanged(); } else { sendEnabledBuilder_.addAllMessages(values); } return this; } /** * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; */ public Builder clearSendEnabled() { if (sendEnabledBuilder_ == null) { sendEnabled_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { sendEnabledBuilder_.clear(); } return this; } /** * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; */ public Builder removeSendEnabled(int index) { if (sendEnabledBuilder_ == null) { ensureSendEnabledIsMutable(); sendEnabled_.remove(index); onChanged(); } else { sendEnabledBuilder_.remove(index); } return this; } /** * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; */ public proto.cosmos.bank.v1beta1.Bank.SendEnabled.Builder getSendEnabledBuilder( int index) { return getSendEnabledFieldBuilder().getBuilder(index); } /** * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; */ public proto.cosmos.bank.v1beta1.Bank.SendEnabledOrBuilder getSendEnabledOrBuilder( int index) { if (sendEnabledBuilder_ == null) { return sendEnabled_.get(index); } else { return sendEnabledBuilder_.getMessageOrBuilder(index); } } /** * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; */ public java.util.List getSendEnabledOrBuilderList() { if (sendEnabledBuilder_ != null) { return sendEnabledBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(sendEnabled_); } } /** * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; */ public proto.cosmos.bank.v1beta1.Bank.SendEnabled.Builder addSendEnabledBuilder() { return getSendEnabledFieldBuilder().addBuilder( proto.cosmos.bank.v1beta1.Bank.SendEnabled.getDefaultInstance()); } /** * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; */ public proto.cosmos.bank.v1beta1.Bank.SendEnabled.Builder addSendEnabledBuilder( int index) { return getSendEnabledFieldBuilder().addBuilder( index, proto.cosmos.bank.v1beta1.Bank.SendEnabled.getDefaultInstance()); } /** * repeated .cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [(.gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; */ public java.util.List getSendEnabledBuilderList() { return getSendEnabledFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< proto.cosmos.bank.v1beta1.Bank.SendEnabled, proto.cosmos.bank.v1beta1.Bank.SendEnabled.Builder, proto.cosmos.bank.v1beta1.Bank.SendEnabledOrBuilder> getSendEnabledFieldBuilder() { if (sendEnabledBuilder_ == null) { sendEnabledBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< proto.cosmos.bank.v1beta1.Bank.SendEnabled, proto.cosmos.bank.v1beta1.Bank.SendEnabled.Builder, proto.cosmos.bank.v1beta1.Bank.SendEnabledOrBuilder>( sendEnabled_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); sendEnabled_ = null; } return sendEnabledBuilder_; } private boolean defaultSendEnabled_ ; /** * bool default_send_enabled = 2 [(.gogoproto.moretags) = "yaml:\"default_send_enabled,omitempty\""]; * @return The defaultSendEnabled. */ @java.lang.Override public boolean getDefaultSendEnabled() { return defaultSendEnabled_; } /** * bool default_send_enabled = 2 [(.gogoproto.moretags) = "yaml:\"default_send_enabled,omitempty\""]; * @param value The defaultSendEnabled to set. * @return This builder for chaining. */ public Builder setDefaultSendEnabled(boolean value) { defaultSendEnabled_ = value; onChanged(); return this; } /** * bool default_send_enabled = 2 [(.gogoproto.moretags) = "yaml:\"default_send_enabled,omitempty\""]; * @return This builder for chaining. */ public Builder clearDefaultSendEnabled() { defaultSendEnabled_ = false; onChanged(); return this; } private boolean unrestrictedTokenTransfer_ ; /** * bool unrestricted_token_transfer = 3 [(.gogoproto.moretags) = "yaml:\"unrestricted_token_transfer,omitempty\""]; * @return The unrestrictedTokenTransfer. */ @java.lang.Override public boolean getUnrestrictedTokenTransfer() { return unrestrictedTokenTransfer_; } /** * bool unrestricted_token_transfer = 3 [(.gogoproto.moretags) = "yaml:\"unrestricted_token_transfer,omitempty\""]; * @param value The unrestrictedTokenTransfer to set. * @return This builder for chaining. */ public Builder setUnrestrictedTokenTransfer(boolean value) { unrestrictedTokenTransfer_ = value; onChanged(); return this; } /** * bool unrestricted_token_transfer = 3 [(.gogoproto.moretags) = "yaml:\"unrestricted_token_transfer,omitempty\""]; * @return This builder for chaining. */ public Builder clearUnrestrictedTokenTransfer() { unrestrictedTokenTransfer_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cosmos.bank.v1beta1.Params) } // @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.Params) private static final proto.cosmos.bank.v1beta1.Bank.Params DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new proto.cosmos.bank.v1beta1.Bank.Params(); } public static proto.cosmos.bank.v1beta1.Bank.Params getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Params parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Params(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.Bank.Params getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SendEnabledOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.SendEnabled) com.google.protobuf.MessageOrBuilder { /** * string denom = 1; * @return The denom. */ java.lang.String getDenom(); /** * string denom = 1; * @return The bytes for denom. */ com.google.protobuf.ByteString getDenomBytes(); /** * bool enabled = 2; * @return The enabled. */ boolean getEnabled(); } /** *
   * SendEnabled maps coin denom to a send_enabled status (whether a denom is
   * sendable).
   * 
* * Protobuf type {@code cosmos.bank.v1beta1.SendEnabled} */ public static final class SendEnabled extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.SendEnabled) SendEnabledOrBuilder { private static final long serialVersionUID = 0L; // Use SendEnabled.newBuilder() to construct. private SendEnabled(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SendEnabled() { denom_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SendEnabled(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SendEnabled( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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(); denom_ = s; break; } case 16: { enabled_ = input.readBool(); 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_SendEnabled_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_SendEnabled_fieldAccessorTable .ensureFieldAccessorsInitialized( proto.cosmos.bank.v1beta1.Bank.SendEnabled.class, proto.cosmos.bank.v1beta1.Bank.SendEnabled.Builder.class); } public static final int DENOM_FIELD_NUMBER = 1; private volatile java.lang.Object denom_; /** * string denom = 1; * @return The denom. */ @java.lang.Override public java.lang.String getDenom() { java.lang.Object ref = denom_; 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(); denom_ = s; return s; } } /** * string denom = 1; * @return The bytes for denom. */ @java.lang.Override public com.google.protobuf.ByteString getDenomBytes() { java.lang.Object ref = denom_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); denom_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENABLED_FIELD_NUMBER = 2; private boolean enabled_; /** * bool enabled = 2; * @return The enabled. */ @java.lang.Override public boolean getEnabled() { return enabled_; } 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 (!getDenomBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, denom_); } if (enabled_ != false) { output.writeBool(2, enabled_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getDenomBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, denom_); } if (enabled_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, enabled_); } 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.Bank.SendEnabled)) { return super.equals(obj); } proto.cosmos.bank.v1beta1.Bank.SendEnabled other = (proto.cosmos.bank.v1beta1.Bank.SendEnabled) obj; if (!getDenom() .equals(other.getDenom())) return false; if (getEnabled() != other.getEnabled()) 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) + DENOM_FIELD_NUMBER; hash = (53 * hash) + getDenom().hashCode(); hash = (37 * hash) + ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEnabled()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static proto.cosmos.bank.v1beta1.Bank.SendEnabled parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.cosmos.bank.v1beta1.Bank.SendEnabled 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.Bank.SendEnabled parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.cosmos.bank.v1beta1.Bank.SendEnabled 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.Bank.SendEnabled parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.cosmos.bank.v1beta1.Bank.SendEnabled parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto.cosmos.bank.v1beta1.Bank.SendEnabled parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto.cosmos.bank.v1beta1.Bank.SendEnabled 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.Bank.SendEnabled parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static proto.cosmos.bank.v1beta1.Bank.SendEnabled 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.Bank.SendEnabled parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto.cosmos.bank.v1beta1.Bank.SendEnabled 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.Bank.SendEnabled 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; } /** *
     * SendEnabled maps coin denom to a send_enabled status (whether a denom is
     * sendable).
     * 
* * Protobuf type {@code cosmos.bank.v1beta1.SendEnabled} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.SendEnabled) proto.cosmos.bank.v1beta1.Bank.SendEnabledOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_SendEnabled_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_SendEnabled_fieldAccessorTable .ensureFieldAccessorsInitialized( proto.cosmos.bank.v1beta1.Bank.SendEnabled.class, proto.cosmos.bank.v1beta1.Bank.SendEnabled.Builder.class); } // Construct using proto.cosmos.bank.v1beta1.Bank.SendEnabled.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); denom_ = ""; enabled_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_SendEnabled_descriptor; } @java.lang.Override public proto.cosmos.bank.v1beta1.Bank.SendEnabled getDefaultInstanceForType() { return proto.cosmos.bank.v1beta1.Bank.SendEnabled.getDefaultInstance(); } @java.lang.Override public proto.cosmos.bank.v1beta1.Bank.SendEnabled build() { proto.cosmos.bank.v1beta1.Bank.SendEnabled result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public proto.cosmos.bank.v1beta1.Bank.SendEnabled buildPartial() { proto.cosmos.bank.v1beta1.Bank.SendEnabled result = new proto.cosmos.bank.v1beta1.Bank.SendEnabled(this); result.denom_ = denom_; result.enabled_ = enabled_; 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.Bank.SendEnabled) { return mergeFrom((proto.cosmos.bank.v1beta1.Bank.SendEnabled)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(proto.cosmos.bank.v1beta1.Bank.SendEnabled other) { if (other == proto.cosmos.bank.v1beta1.Bank.SendEnabled.getDefaultInstance()) return this; if (!other.getDenom().isEmpty()) { denom_ = other.denom_; onChanged(); } if (other.getEnabled() != false) { setEnabled(other.getEnabled()); } 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.Bank.SendEnabled parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (proto.cosmos.bank.v1beta1.Bank.SendEnabled) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object denom_ = ""; /** * string denom = 1; * @return The denom. */ public java.lang.String getDenom() { java.lang.Object ref = denom_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); denom_ = s; return s; } else { return (java.lang.String) ref; } } /** * string denom = 1; * @return The bytes for denom. */ public com.google.protobuf.ByteString getDenomBytes() { java.lang.Object ref = denom_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); denom_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string denom = 1; * @param value The denom to set. * @return This builder for chaining. */ public Builder setDenom( java.lang.String value) { if (value == null) { throw new NullPointerException(); } denom_ = value; onChanged(); return this; } /** * string denom = 1; * @return This builder for chaining. */ public Builder clearDenom() { denom_ = getDefaultInstance().getDenom(); onChanged(); return this; } /** * string denom = 1; * @param value The bytes for denom to set. * @return This builder for chaining. */ public Builder setDenomBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); denom_ = value; onChanged(); return this; } private boolean enabled_ ; /** * bool enabled = 2; * @return The enabled. */ @java.lang.Override public boolean getEnabled() { return enabled_; } /** * bool enabled = 2; * @param value The enabled to set. * @return This builder for chaining. */ public Builder setEnabled(boolean value) { enabled_ = value; onChanged(); return this; } /** * bool enabled = 2; * @return This builder for chaining. */ public Builder clearEnabled() { enabled_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cosmos.bank.v1beta1.SendEnabled) } // @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.SendEnabled) private static final proto.cosmos.bank.v1beta1.Bank.SendEnabled DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new proto.cosmos.bank.v1beta1.Bank.SendEnabled(); } public static proto.cosmos.bank.v1beta1.Bank.SendEnabled getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SendEnabled parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SendEnabled(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.Bank.SendEnabled getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface InputOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.Input) com.google.protobuf.MessageOrBuilder { /** * string address = 1; * @return The address. */ java.lang.String getAddress(); /** * string address = 1; * @return The bytes for address. */ com.google.protobuf.ByteString getAddressBytes(); /** * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ java.util.List getCoinsList(); /** * 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); /** * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ int getCoinsCount(); /** * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ java.util.List getCoinsOrBuilderList(); /** * 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); } /** *
   * Input models transaction input.
   * 
* * Protobuf type {@code cosmos.bank.v1beta1.Input} */ public static final class Input extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.Input) InputOrBuilder { private static final long serialVersionUID = 0L; // Use Input.newBuilder() to construct. private Input(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Input() { address_ = ""; coins_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Input(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Input( 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.Bank.internal_static_cosmos_bank_v1beta1_Input_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Input_fieldAccessorTable .ensureFieldAccessorsInitialized( proto.cosmos.bank.v1beta1.Bank.Input.class, proto.cosmos.bank.v1beta1.Bank.Input.Builder.class); } public static final int ADDRESS_FIELD_NUMBER = 1; private volatile java.lang.Object address_; /** * 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; } } /** * 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_; /** * 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_; } /** * 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_; } /** * 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(); } /** * 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); } /** * 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.Bank.Input)) { return super.equals(obj); } proto.cosmos.bank.v1beta1.Bank.Input other = (proto.cosmos.bank.v1beta1.Bank.Input) 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.Bank.Input parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.cosmos.bank.v1beta1.Bank.Input 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.Bank.Input parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.cosmos.bank.v1beta1.Bank.Input 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.Bank.Input parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.cosmos.bank.v1beta1.Bank.Input parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto.cosmos.bank.v1beta1.Bank.Input parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto.cosmos.bank.v1beta1.Bank.Input 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.Bank.Input parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static proto.cosmos.bank.v1beta1.Bank.Input 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.Bank.Input parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto.cosmos.bank.v1beta1.Bank.Input 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.Bank.Input 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; } /** *
     * Input models transaction input.
     * 
* * Protobuf type {@code cosmos.bank.v1beta1.Input} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.Input) proto.cosmos.bank.v1beta1.Bank.InputOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Input_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Input_fieldAccessorTable .ensureFieldAccessorsInitialized( proto.cosmos.bank.v1beta1.Bank.Input.class, proto.cosmos.bank.v1beta1.Bank.Input.Builder.class); } // Construct using proto.cosmos.bank.v1beta1.Bank.Input.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.Bank.internal_static_cosmos_bank_v1beta1_Input_descriptor; } @java.lang.Override public proto.cosmos.bank.v1beta1.Bank.Input getDefaultInstanceForType() { return proto.cosmos.bank.v1beta1.Bank.Input.getDefaultInstance(); } @java.lang.Override public proto.cosmos.bank.v1beta1.Bank.Input build() { proto.cosmos.bank.v1beta1.Bank.Input result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public proto.cosmos.bank.v1beta1.Bank.Input buildPartial() { proto.cosmos.bank.v1beta1.Bank.Input result = new proto.cosmos.bank.v1beta1.Bank.Input(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.Bank.Input) { return mergeFrom((proto.cosmos.bank.v1beta1.Bank.Input)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(proto.cosmos.bank.v1beta1.Bank.Input other) { if (other == proto.cosmos.bank.v1beta1.Bank.Input.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.Bank.Input parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (proto.cosmos.bank.v1beta1.Bank.Input) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object address_ = ""; /** * 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; } } /** * 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; } } /** * 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; } /** * string address = 1; * @return This builder for chaining. */ public Builder clearAddress() { address_ = getDefaultInstance().getAddress(); onChanged(); return this; } /** * 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_; /** * 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(); } } /** * 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(); } } /** * 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); } } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * 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); } /** * 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); } } /** * 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_); } } /** * 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()); } /** * 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()); } /** * 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.Input) } // @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.Input) private static final proto.cosmos.bank.v1beta1.Bank.Input DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new proto.cosmos.bank.v1beta1.Bank.Input(); } public static proto.cosmos.bank.v1beta1.Bank.Input getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Input parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Input(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.Bank.Input getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OutputOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.Output) com.google.protobuf.MessageOrBuilder { /** * string address = 1; * @return The address. */ java.lang.String getAddress(); /** * string address = 1; * @return The bytes for address. */ com.google.protobuf.ByteString getAddressBytes(); /** * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ java.util.List getCoinsList(); /** * 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); /** * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ int getCoinsCount(); /** * repeated .cosmos.base.v1beta1.Coin coins = 2 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ java.util.List getCoinsOrBuilderList(); /** * 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); } /** *
   * Output models transaction outputs.
   * 
* * Protobuf type {@code cosmos.bank.v1beta1.Output} */ public static final class Output extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.Output) OutputOrBuilder { private static final long serialVersionUID = 0L; // Use Output.newBuilder() to construct. private Output(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Output() { address_ = ""; coins_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Output(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Output( 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.Bank.internal_static_cosmos_bank_v1beta1_Output_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Output_fieldAccessorTable .ensureFieldAccessorsInitialized( proto.cosmos.bank.v1beta1.Bank.Output.class, proto.cosmos.bank.v1beta1.Bank.Output.Builder.class); } public static final int ADDRESS_FIELD_NUMBER = 1; private volatile java.lang.Object address_; /** * 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; } } /** * 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_; /** * 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_; } /** * 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_; } /** * 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(); } /** * 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); } /** * 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.Bank.Output)) { return super.equals(obj); } proto.cosmos.bank.v1beta1.Bank.Output other = (proto.cosmos.bank.v1beta1.Bank.Output) 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.Bank.Output parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.cosmos.bank.v1beta1.Bank.Output 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.Bank.Output parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.cosmos.bank.v1beta1.Bank.Output 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.Bank.Output parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.cosmos.bank.v1beta1.Bank.Output parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto.cosmos.bank.v1beta1.Bank.Output parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto.cosmos.bank.v1beta1.Bank.Output 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.Bank.Output parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static proto.cosmos.bank.v1beta1.Bank.Output 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.Bank.Output parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto.cosmos.bank.v1beta1.Bank.Output 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.Bank.Output 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; } /** *
     * Output models transaction outputs.
     * 
* * Protobuf type {@code cosmos.bank.v1beta1.Output} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.Output) proto.cosmos.bank.v1beta1.Bank.OutputOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Output_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Output_fieldAccessorTable .ensureFieldAccessorsInitialized( proto.cosmos.bank.v1beta1.Bank.Output.class, proto.cosmos.bank.v1beta1.Bank.Output.Builder.class); } // Construct using proto.cosmos.bank.v1beta1.Bank.Output.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.Bank.internal_static_cosmos_bank_v1beta1_Output_descriptor; } @java.lang.Override public proto.cosmos.bank.v1beta1.Bank.Output getDefaultInstanceForType() { return proto.cosmos.bank.v1beta1.Bank.Output.getDefaultInstance(); } @java.lang.Override public proto.cosmos.bank.v1beta1.Bank.Output build() { proto.cosmos.bank.v1beta1.Bank.Output result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public proto.cosmos.bank.v1beta1.Bank.Output buildPartial() { proto.cosmos.bank.v1beta1.Bank.Output result = new proto.cosmos.bank.v1beta1.Bank.Output(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.Bank.Output) { return mergeFrom((proto.cosmos.bank.v1beta1.Bank.Output)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(proto.cosmos.bank.v1beta1.Bank.Output other) { if (other == proto.cosmos.bank.v1beta1.Bank.Output.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.Bank.Output parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (proto.cosmos.bank.v1beta1.Bank.Output) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object address_ = ""; /** * 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; } } /** * 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; } } /** * 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; } /** * string address = 1; * @return This builder for chaining. */ public Builder clearAddress() { address_ = getDefaultInstance().getAddress(); onChanged(); return this; } /** * 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_; /** * 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(); } } /** * 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(); } } /** * 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); } } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * 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); } /** * 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); } } /** * 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_); } } /** * 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()); } /** * 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()); } /** * 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.Output) } // @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.Output) private static final proto.cosmos.bank.v1beta1.Bank.Output DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new proto.cosmos.bank.v1beta1.Bank.Output(); } public static proto.cosmos.bank.v1beta1.Bank.Output getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Output parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Output(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.Bank.Output getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SupplyOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.Supply) com.google.protobuf.MessageOrBuilder { /** * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ java.util.List getTotalList(); /** * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ proto.cosmos.base.v1beta1.CoinOuterClass.Coin getTotal(int index); /** * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ int getTotalCount(); /** * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ java.util.List getTotalOrBuilderList(); /** * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ proto.cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getTotalOrBuilder( int index); } /** *
   * Supply represents a struct that passively keeps track of the total supply
   * amounts in the network.
   * 
* * Protobuf type {@code cosmos.bank.v1beta1.Supply} */ public static final class Supply extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.Supply) SupplyOrBuilder { private static final long serialVersionUID = 0L; // Use Supply.newBuilder() to construct. private Supply(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Supply() { total_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Supply(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Supply( 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: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { total_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } total_.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)) { total_ = java.util.Collections.unmodifiableList(total_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Supply_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Supply_fieldAccessorTable .ensureFieldAccessorsInitialized( proto.cosmos.bank.v1beta1.Bank.Supply.class, proto.cosmos.bank.v1beta1.Bank.Supply.Builder.class); } public static final int TOTAL_FIELD_NUMBER = 1; private java.util.List total_; /** * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ @java.lang.Override public java.util.List getTotalList() { return total_; } /** * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ @java.lang.Override public java.util.List getTotalOrBuilderList() { return total_; } /** * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ @java.lang.Override public int getTotalCount() { return total_.size(); } /** * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ @java.lang.Override public proto.cosmos.base.v1beta1.CoinOuterClass.Coin getTotal(int index) { return total_.get(index); } /** * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ @java.lang.Override public proto.cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getTotalOrBuilder( int index) { return total_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < total_.size(); i++) { output.writeMessage(1, total_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < total_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, total_.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.Bank.Supply)) { return super.equals(obj); } proto.cosmos.bank.v1beta1.Bank.Supply other = (proto.cosmos.bank.v1beta1.Bank.Supply) obj; if (!getTotalList() .equals(other.getTotalList())) 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 (getTotalCount() > 0) { hash = (37 * hash) + TOTAL_FIELD_NUMBER; hash = (53 * hash) + getTotalList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static proto.cosmos.bank.v1beta1.Bank.Supply parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.cosmos.bank.v1beta1.Bank.Supply 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.Bank.Supply parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.cosmos.bank.v1beta1.Bank.Supply 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.Bank.Supply parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.cosmos.bank.v1beta1.Bank.Supply parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto.cosmos.bank.v1beta1.Bank.Supply parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto.cosmos.bank.v1beta1.Bank.Supply 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.Bank.Supply parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static proto.cosmos.bank.v1beta1.Bank.Supply 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.Bank.Supply parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto.cosmos.bank.v1beta1.Bank.Supply 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.Bank.Supply 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; } /** *
     * Supply represents a struct that passively keeps track of the total supply
     * amounts in the network.
     * 
* * Protobuf type {@code cosmos.bank.v1beta1.Supply} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.Supply) proto.cosmos.bank.v1beta1.Bank.SupplyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Supply_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Supply_fieldAccessorTable .ensureFieldAccessorsInitialized( proto.cosmos.bank.v1beta1.Bank.Supply.class, proto.cosmos.bank.v1beta1.Bank.Supply.Builder.class); } // Construct using proto.cosmos.bank.v1beta1.Bank.Supply.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTotalFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (totalBuilder_ == null) { total_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { totalBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Supply_descriptor; } @java.lang.Override public proto.cosmos.bank.v1beta1.Bank.Supply getDefaultInstanceForType() { return proto.cosmos.bank.v1beta1.Bank.Supply.getDefaultInstance(); } @java.lang.Override public proto.cosmos.bank.v1beta1.Bank.Supply build() { proto.cosmos.bank.v1beta1.Bank.Supply result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public proto.cosmos.bank.v1beta1.Bank.Supply buildPartial() { proto.cosmos.bank.v1beta1.Bank.Supply result = new proto.cosmos.bank.v1beta1.Bank.Supply(this); int from_bitField0_ = bitField0_; if (totalBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { total_ = java.util.Collections.unmodifiableList(total_); bitField0_ = (bitField0_ & ~0x00000001); } result.total_ = total_; } else { result.total_ = totalBuilder_.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.Bank.Supply) { return mergeFrom((proto.cosmos.bank.v1beta1.Bank.Supply)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(proto.cosmos.bank.v1beta1.Bank.Supply other) { if (other == proto.cosmos.bank.v1beta1.Bank.Supply.getDefaultInstance()) return this; if (totalBuilder_ == null) { if (!other.total_.isEmpty()) { if (total_.isEmpty()) { total_ = other.total_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTotalIsMutable(); total_.addAll(other.total_); } onChanged(); } } else { if (!other.total_.isEmpty()) { if (totalBuilder_.isEmpty()) { totalBuilder_.dispose(); totalBuilder_ = null; total_ = other.total_; bitField0_ = (bitField0_ & ~0x00000001); totalBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTotalFieldBuilder() : null; } else { totalBuilder_.addAllMessages(other.total_); } } } 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.Bank.Supply parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (proto.cosmos.bank.v1beta1.Bank.Supply) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List total_ = java.util.Collections.emptyList(); private void ensureTotalIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { total_ = new java.util.ArrayList(total_); 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> totalBuilder_; /** * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public java.util.List getTotalList() { if (totalBuilder_ == null) { return java.util.Collections.unmodifiableList(total_); } else { return totalBuilder_.getMessageList(); } } /** * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public int getTotalCount() { if (totalBuilder_ == null) { return total_.size(); } else { return totalBuilder_.getCount(); } } /** * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public proto.cosmos.base.v1beta1.CoinOuterClass.Coin getTotal(int index) { if (totalBuilder_ == null) { return total_.get(index); } else { return totalBuilder_.getMessage(index); } } /** * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder setTotal( int index, proto.cosmos.base.v1beta1.CoinOuterClass.Coin value) { if (totalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTotalIsMutable(); total_.set(index, value); onChanged(); } else { totalBuilder_.setMessage(index, value); } return this; } /** * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder setTotal( int index, proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) { if (totalBuilder_ == null) { ensureTotalIsMutable(); total_.set(index, builderForValue.build()); onChanged(); } else { totalBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder addTotal(proto.cosmos.base.v1beta1.CoinOuterClass.Coin value) { if (totalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTotalIsMutable(); total_.add(value); onChanged(); } else { totalBuilder_.addMessage(value); } return this; } /** * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder addTotal( int index, proto.cosmos.base.v1beta1.CoinOuterClass.Coin value) { if (totalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTotalIsMutable(); total_.add(index, value); onChanged(); } else { totalBuilder_.addMessage(index, value); } return this; } /** * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder addTotal( proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) { if (totalBuilder_ == null) { ensureTotalIsMutable(); total_.add(builderForValue.build()); onChanged(); } else { totalBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder addTotal( int index, proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) { if (totalBuilder_ == null) { ensureTotalIsMutable(); total_.add(index, builderForValue.build()); onChanged(); } else { totalBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder addAllTotal( java.lang.Iterable values) { if (totalBuilder_ == null) { ensureTotalIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, total_); onChanged(); } else { totalBuilder_.addAllMessages(values); } return this; } /** * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder clearTotal() { if (totalBuilder_ == null) { total_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { totalBuilder_.clear(); } return this; } /** * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder removeTotal(int index) { if (totalBuilder_ == null) { ensureTotalIsMutable(); total_.remove(index); onChanged(); } else { totalBuilder_.remove(index); } return this; } /** * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder getTotalBuilder( int index) { return getTotalFieldBuilder().getBuilder(index); } /** * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public proto.cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getTotalOrBuilder( int index) { if (totalBuilder_ == null) { return total_.get(index); } else { return totalBuilder_.getMessageOrBuilder(index); } } /** * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public java.util.List getTotalOrBuilderList() { if (totalBuilder_ != null) { return totalBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(total_); } } /** * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder addTotalBuilder() { return getTotalFieldBuilder().addBuilder( proto.cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance()); } /** * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder addTotalBuilder( int index) { return getTotalFieldBuilder().addBuilder( index, proto.cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance()); } /** * repeated .cosmos.base.v1beta1.Coin total = 1 [(.gogoproto.nullable) = false, (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public java.util.List getTotalBuilderList() { return getTotalFieldBuilder().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> getTotalFieldBuilder() { if (totalBuilder_ == null) { totalBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< proto.cosmos.base.v1beta1.CoinOuterClass.Coin, proto.cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, proto.cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>( total_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); total_ = null; } return totalBuilder_; } @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.Supply) } // @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.Supply) private static final proto.cosmos.bank.v1beta1.Bank.Supply DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new proto.cosmos.bank.v1beta1.Bank.Supply(); } public static proto.cosmos.bank.v1beta1.Bank.Supply getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Supply parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Supply(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.Bank.Supply getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DenomUnitOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.DenomUnit) com.google.protobuf.MessageOrBuilder { /** *
     * denom represents the string name of the given denom unit (e.g uatom).
     * 
* * string denom = 1; * @return The denom. */ java.lang.String getDenom(); /** *
     * denom represents the string name of the given denom unit (e.g uatom).
     * 
* * string denom = 1; * @return The bytes for denom. */ com.google.protobuf.ByteString getDenomBytes(); /** *
     * exponent represents power of 10 exponent that one must
     * raise the base_denom to in order to equal the given DenomUnit's denom
     * 1 denom = 1^exponent base_denom
     * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with
     * exponent = 6, thus: 1 atom = 10^6 uatom).
     * 
* * uint32 exponent = 2; * @return The exponent. */ int getExponent(); /** *
     * aliases is a list of string aliases for the given denom
     * 
* * repeated string aliases = 3; * @return A list containing the aliases. */ java.util.List getAliasesList(); /** *
     * aliases is a list of string aliases for the given denom
     * 
* * repeated string aliases = 3; * @return The count of aliases. */ int getAliasesCount(); /** *
     * aliases is a list of string aliases for the given denom
     * 
* * repeated string aliases = 3; * @param index The index of the element to return. * @return The aliases at the given index. */ java.lang.String getAliases(int index); /** *
     * aliases is a list of string aliases for the given denom
     * 
* * repeated string aliases = 3; * @param index The index of the value to return. * @return The bytes of the aliases at the given index. */ com.google.protobuf.ByteString getAliasesBytes(int index); } /** *
   * DenomUnit represents a struct that describes a given
   * denomination unit of the basic token.
   * 
* * Protobuf type {@code cosmos.bank.v1beta1.DenomUnit} */ public static final class DenomUnit extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.DenomUnit) DenomUnitOrBuilder { private static final long serialVersionUID = 0L; // Use DenomUnit.newBuilder() to construct. private DenomUnit(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DenomUnit() { denom_ = ""; aliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DenomUnit(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DenomUnit( 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(); denom_ = s; break; } case 16: { exponent_ = input.readUInt32(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { aliases_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } aliases_.add(s); 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)) { aliases_ = aliases_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_DenomUnit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_DenomUnit_fieldAccessorTable .ensureFieldAccessorsInitialized( proto.cosmos.bank.v1beta1.Bank.DenomUnit.class, proto.cosmos.bank.v1beta1.Bank.DenomUnit.Builder.class); } public static final int DENOM_FIELD_NUMBER = 1; private volatile java.lang.Object denom_; /** *
     * denom represents the string name of the given denom unit (e.g uatom).
     * 
* * string denom = 1; * @return The denom. */ @java.lang.Override public java.lang.String getDenom() { java.lang.Object ref = denom_; 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(); denom_ = s; return s; } } /** *
     * denom represents the string name of the given denom unit (e.g uatom).
     * 
* * string denom = 1; * @return The bytes for denom. */ @java.lang.Override public com.google.protobuf.ByteString getDenomBytes() { java.lang.Object ref = denom_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); denom_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EXPONENT_FIELD_NUMBER = 2; private int exponent_; /** *
     * exponent represents power of 10 exponent that one must
     * raise the base_denom to in order to equal the given DenomUnit's denom
     * 1 denom = 1^exponent base_denom
     * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with
     * exponent = 6, thus: 1 atom = 10^6 uatom).
     * 
* * uint32 exponent = 2; * @return The exponent. */ @java.lang.Override public int getExponent() { return exponent_; } public static final int ALIASES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList aliases_; /** *
     * aliases is a list of string aliases for the given denom
     * 
* * repeated string aliases = 3; * @return A list containing the aliases. */ public com.google.protobuf.ProtocolStringList getAliasesList() { return aliases_; } /** *
     * aliases is a list of string aliases for the given denom
     * 
* * repeated string aliases = 3; * @return The count of aliases. */ public int getAliasesCount() { return aliases_.size(); } /** *
     * aliases is a list of string aliases for the given denom
     * 
* * repeated string aliases = 3; * @param index The index of the element to return. * @return The aliases at the given index. */ public java.lang.String getAliases(int index) { return aliases_.get(index); } /** *
     * aliases is a list of string aliases for the given denom
     * 
* * repeated string aliases = 3; * @param index The index of the value to return. * @return The bytes of the aliases at the given index. */ public com.google.protobuf.ByteString getAliasesBytes(int index) { return aliases_.getByteString(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 (!getDenomBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, denom_); } if (exponent_ != 0) { output.writeUInt32(2, exponent_); } for (int i = 0; i < aliases_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, aliases_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getDenomBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, denom_); } if (exponent_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, exponent_); } { int dataSize = 0; for (int i = 0; i < aliases_.size(); i++) { dataSize += computeStringSizeNoTag(aliases_.getRaw(i)); } size += dataSize; size += 1 * getAliasesList().size(); } 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.Bank.DenomUnit)) { return super.equals(obj); } proto.cosmos.bank.v1beta1.Bank.DenomUnit other = (proto.cosmos.bank.v1beta1.Bank.DenomUnit) obj; if (!getDenom() .equals(other.getDenom())) return false; if (getExponent() != other.getExponent()) return false; if (!getAliasesList() .equals(other.getAliasesList())) 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) + DENOM_FIELD_NUMBER; hash = (53 * hash) + getDenom().hashCode(); hash = (37 * hash) + EXPONENT_FIELD_NUMBER; hash = (53 * hash) + getExponent(); if (getAliasesCount() > 0) { hash = (37 * hash) + ALIASES_FIELD_NUMBER; hash = (53 * hash) + getAliasesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static proto.cosmos.bank.v1beta1.Bank.DenomUnit parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.cosmos.bank.v1beta1.Bank.DenomUnit 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.Bank.DenomUnit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.cosmos.bank.v1beta1.Bank.DenomUnit 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.Bank.DenomUnit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.cosmos.bank.v1beta1.Bank.DenomUnit parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto.cosmos.bank.v1beta1.Bank.DenomUnit parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto.cosmos.bank.v1beta1.Bank.DenomUnit 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.Bank.DenomUnit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static proto.cosmos.bank.v1beta1.Bank.DenomUnit 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.Bank.DenomUnit parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto.cosmos.bank.v1beta1.Bank.DenomUnit 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.Bank.DenomUnit 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; } /** *
     * DenomUnit represents a struct that describes a given
     * denomination unit of the basic token.
     * 
* * Protobuf type {@code cosmos.bank.v1beta1.DenomUnit} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.DenomUnit) proto.cosmos.bank.v1beta1.Bank.DenomUnitOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_DenomUnit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_DenomUnit_fieldAccessorTable .ensureFieldAccessorsInitialized( proto.cosmos.bank.v1beta1.Bank.DenomUnit.class, proto.cosmos.bank.v1beta1.Bank.DenomUnit.Builder.class); } // Construct using proto.cosmos.bank.v1beta1.Bank.DenomUnit.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); denom_ = ""; exponent_ = 0; aliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_DenomUnit_descriptor; } @java.lang.Override public proto.cosmos.bank.v1beta1.Bank.DenomUnit getDefaultInstanceForType() { return proto.cosmos.bank.v1beta1.Bank.DenomUnit.getDefaultInstance(); } @java.lang.Override public proto.cosmos.bank.v1beta1.Bank.DenomUnit build() { proto.cosmos.bank.v1beta1.Bank.DenomUnit result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public proto.cosmos.bank.v1beta1.Bank.DenomUnit buildPartial() { proto.cosmos.bank.v1beta1.Bank.DenomUnit result = new proto.cosmos.bank.v1beta1.Bank.DenomUnit(this); int from_bitField0_ = bitField0_; result.denom_ = denom_; result.exponent_ = exponent_; if (((bitField0_ & 0x00000001) != 0)) { aliases_ = aliases_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.aliases_ = aliases_; 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.Bank.DenomUnit) { return mergeFrom((proto.cosmos.bank.v1beta1.Bank.DenomUnit)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(proto.cosmos.bank.v1beta1.Bank.DenomUnit other) { if (other == proto.cosmos.bank.v1beta1.Bank.DenomUnit.getDefaultInstance()) return this; if (!other.getDenom().isEmpty()) { denom_ = other.denom_; onChanged(); } if (other.getExponent() != 0) { setExponent(other.getExponent()); } if (!other.aliases_.isEmpty()) { if (aliases_.isEmpty()) { aliases_ = other.aliases_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAliasesIsMutable(); aliases_.addAll(other.aliases_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { proto.cosmos.bank.v1beta1.Bank.DenomUnit parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (proto.cosmos.bank.v1beta1.Bank.DenomUnit) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object denom_ = ""; /** *
       * denom represents the string name of the given denom unit (e.g uatom).
       * 
* * string denom = 1; * @return The denom. */ public java.lang.String getDenom() { java.lang.Object ref = denom_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); denom_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * denom represents the string name of the given denom unit (e.g uatom).
       * 
* * string denom = 1; * @return The bytes for denom. */ public com.google.protobuf.ByteString getDenomBytes() { java.lang.Object ref = denom_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); denom_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * denom represents the string name of the given denom unit (e.g uatom).
       * 
* * string denom = 1; * @param value The denom to set. * @return This builder for chaining. */ public Builder setDenom( java.lang.String value) { if (value == null) { throw new NullPointerException(); } denom_ = value; onChanged(); return this; } /** *
       * denom represents the string name of the given denom unit (e.g uatom).
       * 
* * string denom = 1; * @return This builder for chaining. */ public Builder clearDenom() { denom_ = getDefaultInstance().getDenom(); onChanged(); return this; } /** *
       * denom represents the string name of the given denom unit (e.g uatom).
       * 
* * string denom = 1; * @param value The bytes for denom to set. * @return This builder for chaining. */ public Builder setDenomBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); denom_ = value; onChanged(); return this; } private int exponent_ ; /** *
       * exponent represents power of 10 exponent that one must
       * raise the base_denom to in order to equal the given DenomUnit's denom
       * 1 denom = 1^exponent base_denom
       * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with
       * exponent = 6, thus: 1 atom = 10^6 uatom).
       * 
* * uint32 exponent = 2; * @return The exponent. */ @java.lang.Override public int getExponent() { return exponent_; } /** *
       * exponent represents power of 10 exponent that one must
       * raise the base_denom to in order to equal the given DenomUnit's denom
       * 1 denom = 1^exponent base_denom
       * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with
       * exponent = 6, thus: 1 atom = 10^6 uatom).
       * 
* * uint32 exponent = 2; * @param value The exponent to set. * @return This builder for chaining. */ public Builder setExponent(int value) { exponent_ = value; onChanged(); return this; } /** *
       * exponent represents power of 10 exponent that one must
       * raise the base_denom to in order to equal the given DenomUnit's denom
       * 1 denom = 1^exponent base_denom
       * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with
       * exponent = 6, thus: 1 atom = 10^6 uatom).
       * 
* * uint32 exponent = 2; * @return This builder for chaining. */ public Builder clearExponent() { exponent_ = 0; onChanged(); return this; } private com.google.protobuf.LazyStringList aliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAliasesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { aliases_ = new com.google.protobuf.LazyStringArrayList(aliases_); bitField0_ |= 0x00000001; } } /** *
       * aliases is a list of string aliases for the given denom
       * 
* * repeated string aliases = 3; * @return A list containing the aliases. */ public com.google.protobuf.ProtocolStringList getAliasesList() { return aliases_.getUnmodifiableView(); } /** *
       * aliases is a list of string aliases for the given denom
       * 
* * repeated string aliases = 3; * @return The count of aliases. */ public int getAliasesCount() { return aliases_.size(); } /** *
       * aliases is a list of string aliases for the given denom
       * 
* * repeated string aliases = 3; * @param index The index of the element to return. * @return The aliases at the given index. */ public java.lang.String getAliases(int index) { return aliases_.get(index); } /** *
       * aliases is a list of string aliases for the given denom
       * 
* * repeated string aliases = 3; * @param index The index of the value to return. * @return The bytes of the aliases at the given index. */ public com.google.protobuf.ByteString getAliasesBytes(int index) { return aliases_.getByteString(index); } /** *
       * aliases is a list of string aliases for the given denom
       * 
* * repeated string aliases = 3; * @param index The index to set the value at. * @param value The aliases to set. * @return This builder for chaining. */ public Builder setAliases( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAliasesIsMutable(); aliases_.set(index, value); onChanged(); return this; } /** *
       * aliases is a list of string aliases for the given denom
       * 
* * repeated string aliases = 3; * @param value The aliases to add. * @return This builder for chaining. */ public Builder addAliases( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAliasesIsMutable(); aliases_.add(value); onChanged(); return this; } /** *
       * aliases is a list of string aliases for the given denom
       * 
* * repeated string aliases = 3; * @param values The aliases to add. * @return This builder for chaining. */ public Builder addAllAliases( java.lang.Iterable values) { ensureAliasesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, aliases_); onChanged(); return this; } /** *
       * aliases is a list of string aliases for the given denom
       * 
* * repeated string aliases = 3; * @return This builder for chaining. */ public Builder clearAliases() { aliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * aliases is a list of string aliases for the given denom
       * 
* * repeated string aliases = 3; * @param value The bytes of the aliases to add. * @return This builder for chaining. */ public Builder addAliasesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureAliasesIsMutable(); aliases_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cosmos.bank.v1beta1.DenomUnit) } // @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.DenomUnit) private static final proto.cosmos.bank.v1beta1.Bank.DenomUnit DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new proto.cosmos.bank.v1beta1.Bank.DenomUnit(); } public static proto.cosmos.bank.v1beta1.Bank.DenomUnit getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DenomUnit parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DenomUnit(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.Bank.DenomUnit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.bank.v1beta1.Metadata) com.google.protobuf.MessageOrBuilder { /** * string description = 1; * @return The description. */ java.lang.String getDescription(); /** * string description = 1; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * denom_units represents the list of DenomUnit's for a given coin
     * 
* * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; */ java.util.List getDenomUnitsList(); /** *
     * denom_units represents the list of DenomUnit's for a given coin
     * 
* * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; */ proto.cosmos.bank.v1beta1.Bank.DenomUnit getDenomUnits(int index); /** *
     * denom_units represents the list of DenomUnit's for a given coin
     * 
* * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; */ int getDenomUnitsCount(); /** *
     * denom_units represents the list of DenomUnit's for a given coin
     * 
* * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; */ java.util.List getDenomUnitsOrBuilderList(); /** *
     * denom_units represents the list of DenomUnit's for a given coin
     * 
* * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; */ proto.cosmos.bank.v1beta1.Bank.DenomUnitOrBuilder getDenomUnitsOrBuilder( int index); /** *
     * base represents the base denom (should be the DenomUnit with exponent = 0).
     * 
* * string base = 3; * @return The base. */ java.lang.String getBase(); /** *
     * base represents the base denom (should be the DenomUnit with exponent = 0).
     * 
* * string base = 3; * @return The bytes for base. */ com.google.protobuf.ByteString getBaseBytes(); /** *
     * display indicates the suggested denom that should be
     * displayed in clients.
     * 
* * string display = 4; * @return The display. */ java.lang.String getDisplay(); /** *
     * display indicates the suggested denom that should be
     * displayed in clients.
     * 
* * string display = 4; * @return The bytes for display. */ com.google.protobuf.ByteString getDisplayBytes(); } /** *
   * Metadata represents a struct that describes
   * a basic token.
   * 
* * Protobuf type {@code cosmos.bank.v1beta1.Metadata} */ public static final class Metadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.bank.v1beta1.Metadata) MetadataOrBuilder { private static final long serialVersionUID = 0L; // Use Metadata.newBuilder() to construct. private Metadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Metadata() { description_ = ""; denomUnits_ = java.util.Collections.emptyList(); base_ = ""; display_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Metadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Metadata( 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(); description_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { denomUnits_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } denomUnits_.add( input.readMessage(proto.cosmos.bank.v1beta1.Bank.DenomUnit.parser(), extensionRegistry)); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); base_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); display_ = s; 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)) { denomUnits_ = java.util.Collections.unmodifiableList(denomUnits_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Metadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Metadata_fieldAccessorTable .ensureFieldAccessorsInitialized( proto.cosmos.bank.v1beta1.Bank.Metadata.class, proto.cosmos.bank.v1beta1.Bank.Metadata.Builder.class); } public static final int DESCRIPTION_FIELD_NUMBER = 1; private volatile java.lang.Object description_; /** * string description = 1; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; 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(); description_ = s; return s; } } /** * string description = 1; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DENOM_UNITS_FIELD_NUMBER = 2; private java.util.List denomUnits_; /** *
     * denom_units represents the list of DenomUnit's for a given coin
     * 
* * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; */ @java.lang.Override public java.util.List getDenomUnitsList() { return denomUnits_; } /** *
     * denom_units represents the list of DenomUnit's for a given coin
     * 
* * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; */ @java.lang.Override public java.util.List getDenomUnitsOrBuilderList() { return denomUnits_; } /** *
     * denom_units represents the list of DenomUnit's for a given coin
     * 
* * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; */ @java.lang.Override public int getDenomUnitsCount() { return denomUnits_.size(); } /** *
     * denom_units represents the list of DenomUnit's for a given coin
     * 
* * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; */ @java.lang.Override public proto.cosmos.bank.v1beta1.Bank.DenomUnit getDenomUnits(int index) { return denomUnits_.get(index); } /** *
     * denom_units represents the list of DenomUnit's for a given coin
     * 
* * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; */ @java.lang.Override public proto.cosmos.bank.v1beta1.Bank.DenomUnitOrBuilder getDenomUnitsOrBuilder( int index) { return denomUnits_.get(index); } public static final int BASE_FIELD_NUMBER = 3; private volatile java.lang.Object base_; /** *
     * base represents the base denom (should be the DenomUnit with exponent = 0).
     * 
* * string base = 3; * @return The base. */ @java.lang.Override public java.lang.String getBase() { java.lang.Object ref = base_; 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(); base_ = s; return s; } } /** *
     * base represents the base denom (should be the DenomUnit with exponent = 0).
     * 
* * string base = 3; * @return The bytes for base. */ @java.lang.Override public com.google.protobuf.ByteString getBaseBytes() { java.lang.Object ref = base_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); base_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DISPLAY_FIELD_NUMBER = 4; private volatile java.lang.Object display_; /** *
     * display indicates the suggested denom that should be
     * displayed in clients.
     * 
* * string display = 4; * @return The display. */ @java.lang.Override public java.lang.String getDisplay() { java.lang.Object ref = display_; 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(); display_ = s; return s; } } /** *
     * display indicates the suggested denom that should be
     * displayed in clients.
     * 
* * string display = 4; * @return The bytes for display. */ @java.lang.Override public com.google.protobuf.ByteString getDisplayBytes() { java.lang.Object ref = display_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); display_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getDescriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); } for (int i = 0; i < denomUnits_.size(); i++) { output.writeMessage(2, denomUnits_.get(i)); } if (!getBaseBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, base_); } if (!getDisplayBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, display_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getDescriptionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_); } for (int i = 0; i < denomUnits_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, denomUnits_.get(i)); } if (!getBaseBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, base_); } if (!getDisplayBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, display_); } 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.Bank.Metadata)) { return super.equals(obj); } proto.cosmos.bank.v1beta1.Bank.Metadata other = (proto.cosmos.bank.v1beta1.Bank.Metadata) obj; if (!getDescription() .equals(other.getDescription())) return false; if (!getDenomUnitsList() .equals(other.getDenomUnitsList())) return false; if (!getBase() .equals(other.getBase())) return false; if (!getDisplay() .equals(other.getDisplay())) 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) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (getDenomUnitsCount() > 0) { hash = (37 * hash) + DENOM_UNITS_FIELD_NUMBER; hash = (53 * hash) + getDenomUnitsList().hashCode(); } hash = (37 * hash) + BASE_FIELD_NUMBER; hash = (53 * hash) + getBase().hashCode(); hash = (37 * hash) + DISPLAY_FIELD_NUMBER; hash = (53 * hash) + getDisplay().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static proto.cosmos.bank.v1beta1.Bank.Metadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.cosmos.bank.v1beta1.Bank.Metadata 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.Bank.Metadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.cosmos.bank.v1beta1.Bank.Metadata 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.Bank.Metadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static proto.cosmos.bank.v1beta1.Bank.Metadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static proto.cosmos.bank.v1beta1.Bank.Metadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto.cosmos.bank.v1beta1.Bank.Metadata 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.Bank.Metadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static proto.cosmos.bank.v1beta1.Bank.Metadata 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.Bank.Metadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static proto.cosmos.bank.v1beta1.Bank.Metadata 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.Bank.Metadata 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; } /** *
     * Metadata represents a struct that describes
     * a basic token.
     * 
* * Protobuf type {@code cosmos.bank.v1beta1.Metadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.bank.v1beta1.Metadata) proto.cosmos.bank.v1beta1.Bank.MetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Metadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Metadata_fieldAccessorTable .ensureFieldAccessorsInitialized( proto.cosmos.bank.v1beta1.Bank.Metadata.class, proto.cosmos.bank.v1beta1.Bank.Metadata.Builder.class); } // Construct using proto.cosmos.bank.v1beta1.Bank.Metadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDenomUnitsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); description_ = ""; if (denomUnitsBuilder_ == null) { denomUnits_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { denomUnitsBuilder_.clear(); } base_ = ""; display_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return proto.cosmos.bank.v1beta1.Bank.internal_static_cosmos_bank_v1beta1_Metadata_descriptor; } @java.lang.Override public proto.cosmos.bank.v1beta1.Bank.Metadata getDefaultInstanceForType() { return proto.cosmos.bank.v1beta1.Bank.Metadata.getDefaultInstance(); } @java.lang.Override public proto.cosmos.bank.v1beta1.Bank.Metadata build() { proto.cosmos.bank.v1beta1.Bank.Metadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public proto.cosmos.bank.v1beta1.Bank.Metadata buildPartial() { proto.cosmos.bank.v1beta1.Bank.Metadata result = new proto.cosmos.bank.v1beta1.Bank.Metadata(this); int from_bitField0_ = bitField0_; result.description_ = description_; if (denomUnitsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { denomUnits_ = java.util.Collections.unmodifiableList(denomUnits_); bitField0_ = (bitField0_ & ~0x00000001); } result.denomUnits_ = denomUnits_; } else { result.denomUnits_ = denomUnitsBuilder_.build(); } result.base_ = base_; result.display_ = display_; 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.Bank.Metadata) { return mergeFrom((proto.cosmos.bank.v1beta1.Bank.Metadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(proto.cosmos.bank.v1beta1.Bank.Metadata other) { if (other == proto.cosmos.bank.v1beta1.Bank.Metadata.getDefaultInstance()) return this; if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (denomUnitsBuilder_ == null) { if (!other.denomUnits_.isEmpty()) { if (denomUnits_.isEmpty()) { denomUnits_ = other.denomUnits_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDenomUnitsIsMutable(); denomUnits_.addAll(other.denomUnits_); } onChanged(); } } else { if (!other.denomUnits_.isEmpty()) { if (denomUnitsBuilder_.isEmpty()) { denomUnitsBuilder_.dispose(); denomUnitsBuilder_ = null; denomUnits_ = other.denomUnits_; bitField0_ = (bitField0_ & ~0x00000001); denomUnitsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDenomUnitsFieldBuilder() : null; } else { denomUnitsBuilder_.addAllMessages(other.denomUnits_); } } } if (!other.getBase().isEmpty()) { base_ = other.base_; onChanged(); } if (!other.getDisplay().isEmpty()) { display_ = other.display_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { proto.cosmos.bank.v1beta1.Bank.Metadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (proto.cosmos.bank.v1beta1.Bank.Metadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object description_ = ""; /** * string description = 1; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** * string description = 1; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string description = 1; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** * string description = 1; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** * string description = 1; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private java.util.List denomUnits_ = java.util.Collections.emptyList(); private void ensureDenomUnitsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { denomUnits_ = new java.util.ArrayList(denomUnits_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< proto.cosmos.bank.v1beta1.Bank.DenomUnit, proto.cosmos.bank.v1beta1.Bank.DenomUnit.Builder, proto.cosmos.bank.v1beta1.Bank.DenomUnitOrBuilder> denomUnitsBuilder_; /** *
       * denom_units represents the list of DenomUnit's for a given coin
       * 
* * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; */ public java.util.List getDenomUnitsList() { if (denomUnitsBuilder_ == null) { return java.util.Collections.unmodifiableList(denomUnits_); } else { return denomUnitsBuilder_.getMessageList(); } } /** *
       * denom_units represents the list of DenomUnit's for a given coin
       * 
* * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; */ public int getDenomUnitsCount() { if (denomUnitsBuilder_ == null) { return denomUnits_.size(); } else { return denomUnitsBuilder_.getCount(); } } /** *
       * denom_units represents the list of DenomUnit's for a given coin
       * 
* * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; */ public proto.cosmos.bank.v1beta1.Bank.DenomUnit getDenomUnits(int index) { if (denomUnitsBuilder_ == null) { return denomUnits_.get(index); } else { return denomUnitsBuilder_.getMessage(index); } } /** *
       * denom_units represents the list of DenomUnit's for a given coin
       * 
* * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; */ public Builder setDenomUnits( int index, proto.cosmos.bank.v1beta1.Bank.DenomUnit value) { if (denomUnitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDenomUnitsIsMutable(); denomUnits_.set(index, value); onChanged(); } else { denomUnitsBuilder_.setMessage(index, value); } return this; } /** *
       * denom_units represents the list of DenomUnit's for a given coin
       * 
* * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; */ public Builder setDenomUnits( int index, proto.cosmos.bank.v1beta1.Bank.DenomUnit.Builder builderForValue) { if (denomUnitsBuilder_ == null) { ensureDenomUnitsIsMutable(); denomUnits_.set(index, builderForValue.build()); onChanged(); } else { denomUnitsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * denom_units represents the list of DenomUnit's for a given coin
       * 
* * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; */ public Builder addDenomUnits(proto.cosmos.bank.v1beta1.Bank.DenomUnit value) { if (denomUnitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDenomUnitsIsMutable(); denomUnits_.add(value); onChanged(); } else { denomUnitsBuilder_.addMessage(value); } return this; } /** *
       * denom_units represents the list of DenomUnit's for a given coin
       * 
* * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; */ public Builder addDenomUnits( int index, proto.cosmos.bank.v1beta1.Bank.DenomUnit value) { if (denomUnitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDenomUnitsIsMutable(); denomUnits_.add(index, value); onChanged(); } else { denomUnitsBuilder_.addMessage(index, value); } return this; } /** *
       * denom_units represents the list of DenomUnit's for a given coin
       * 
* * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; */ public Builder addDenomUnits( proto.cosmos.bank.v1beta1.Bank.DenomUnit.Builder builderForValue) { if (denomUnitsBuilder_ == null) { ensureDenomUnitsIsMutable(); denomUnits_.add(builderForValue.build()); onChanged(); } else { denomUnitsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * denom_units represents the list of DenomUnit's for a given coin
       * 
* * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; */ public Builder addDenomUnits( int index, proto.cosmos.bank.v1beta1.Bank.DenomUnit.Builder builderForValue) { if (denomUnitsBuilder_ == null) { ensureDenomUnitsIsMutable(); denomUnits_.add(index, builderForValue.build()); onChanged(); } else { denomUnitsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * denom_units represents the list of DenomUnit's for a given coin
       * 
* * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; */ public Builder addAllDenomUnits( java.lang.Iterable values) { if (denomUnitsBuilder_ == null) { ensureDenomUnitsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, denomUnits_); onChanged(); } else { denomUnitsBuilder_.addAllMessages(values); } return this; } /** *
       * denom_units represents the list of DenomUnit's for a given coin
       * 
* * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; */ public Builder clearDenomUnits() { if (denomUnitsBuilder_ == null) { denomUnits_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { denomUnitsBuilder_.clear(); } return this; } /** *
       * denom_units represents the list of DenomUnit's for a given coin
       * 
* * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; */ public Builder removeDenomUnits(int index) { if (denomUnitsBuilder_ == null) { ensureDenomUnitsIsMutable(); denomUnits_.remove(index); onChanged(); } else { denomUnitsBuilder_.remove(index); } return this; } /** *
       * denom_units represents the list of DenomUnit's for a given coin
       * 
* * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; */ public proto.cosmos.bank.v1beta1.Bank.DenomUnit.Builder getDenomUnitsBuilder( int index) { return getDenomUnitsFieldBuilder().getBuilder(index); } /** *
       * denom_units represents the list of DenomUnit's for a given coin
       * 
* * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; */ public proto.cosmos.bank.v1beta1.Bank.DenomUnitOrBuilder getDenomUnitsOrBuilder( int index) { if (denomUnitsBuilder_ == null) { return denomUnits_.get(index); } else { return denomUnitsBuilder_.getMessageOrBuilder(index); } } /** *
       * denom_units represents the list of DenomUnit's for a given coin
       * 
* * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; */ public java.util.List getDenomUnitsOrBuilderList() { if (denomUnitsBuilder_ != null) { return denomUnitsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(denomUnits_); } } /** *
       * denom_units represents the list of DenomUnit's for a given coin
       * 
* * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; */ public proto.cosmos.bank.v1beta1.Bank.DenomUnit.Builder addDenomUnitsBuilder() { return getDenomUnitsFieldBuilder().addBuilder( proto.cosmos.bank.v1beta1.Bank.DenomUnit.getDefaultInstance()); } /** *
       * denom_units represents the list of DenomUnit's for a given coin
       * 
* * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; */ public proto.cosmos.bank.v1beta1.Bank.DenomUnit.Builder addDenomUnitsBuilder( int index) { return getDenomUnitsFieldBuilder().addBuilder( index, proto.cosmos.bank.v1beta1.Bank.DenomUnit.getDefaultInstance()); } /** *
       * denom_units represents the list of DenomUnit's for a given coin
       * 
* * repeated .cosmos.bank.v1beta1.DenomUnit denom_units = 2; */ public java.util.List getDenomUnitsBuilderList() { return getDenomUnitsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< proto.cosmos.bank.v1beta1.Bank.DenomUnit, proto.cosmos.bank.v1beta1.Bank.DenomUnit.Builder, proto.cosmos.bank.v1beta1.Bank.DenomUnitOrBuilder> getDenomUnitsFieldBuilder() { if (denomUnitsBuilder_ == null) { denomUnitsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< proto.cosmos.bank.v1beta1.Bank.DenomUnit, proto.cosmos.bank.v1beta1.Bank.DenomUnit.Builder, proto.cosmos.bank.v1beta1.Bank.DenomUnitOrBuilder>( denomUnits_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); denomUnits_ = null; } return denomUnitsBuilder_; } private java.lang.Object base_ = ""; /** *
       * base represents the base denom (should be the DenomUnit with exponent = 0).
       * 
* * string base = 3; * @return The base. */ public java.lang.String getBase() { java.lang.Object ref = base_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); base_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * base represents the base denom (should be the DenomUnit with exponent = 0).
       * 
* * string base = 3; * @return The bytes for base. */ public com.google.protobuf.ByteString getBaseBytes() { java.lang.Object ref = base_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); base_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * base represents the base denom (should be the DenomUnit with exponent = 0).
       * 
* * string base = 3; * @param value The base to set. * @return This builder for chaining. */ public Builder setBase( java.lang.String value) { if (value == null) { throw new NullPointerException(); } base_ = value; onChanged(); return this; } /** *
       * base represents the base denom (should be the DenomUnit with exponent = 0).
       * 
* * string base = 3; * @return This builder for chaining. */ public Builder clearBase() { base_ = getDefaultInstance().getBase(); onChanged(); return this; } /** *
       * base represents the base denom (should be the DenomUnit with exponent = 0).
       * 
* * string base = 3; * @param value The bytes for base to set. * @return This builder for chaining. */ public Builder setBaseBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); base_ = value; onChanged(); return this; } private java.lang.Object display_ = ""; /** *
       * display indicates the suggested denom that should be
       * displayed in clients.
       * 
* * string display = 4; * @return The display. */ public java.lang.String getDisplay() { java.lang.Object ref = display_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); display_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * display indicates the suggested denom that should be
       * displayed in clients.
       * 
* * string display = 4; * @return The bytes for display. */ public com.google.protobuf.ByteString getDisplayBytes() { java.lang.Object ref = display_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); display_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * display indicates the suggested denom that should be
       * displayed in clients.
       * 
* * string display = 4; * @param value The display to set. * @return This builder for chaining. */ public Builder setDisplay( java.lang.String value) { if (value == null) { throw new NullPointerException(); } display_ = value; onChanged(); return this; } /** *
       * display indicates the suggested denom that should be
       * displayed in clients.
       * 
* * string display = 4; * @return This builder for chaining. */ public Builder clearDisplay() { display_ = getDefaultInstance().getDisplay(); onChanged(); return this; } /** *
       * display indicates the suggested denom that should be
       * displayed in clients.
       * 
* * string display = 4; * @param value The bytes for display to set. * @return This builder for chaining. */ public Builder setDisplayBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); display_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cosmos.bank.v1beta1.Metadata) } // @@protoc_insertion_point(class_scope:cosmos.bank.v1beta1.Metadata) private static final proto.cosmos.bank.v1beta1.Bank.Metadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new proto.cosmos.bank.v1beta1.Bank.Metadata(); } public static proto.cosmos.bank.v1beta1.Bank.Metadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Metadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Metadata(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.Bank.Metadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_bank_v1beta1_Params_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_bank_v1beta1_Params_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_bank_v1beta1_SendEnabled_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_bank_v1beta1_SendEnabled_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_bank_v1beta1_Input_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_bank_v1beta1_Input_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_bank_v1beta1_Output_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_bank_v1beta1_Output_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_bank_v1beta1_Supply_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_bank_v1beta1_Supply_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_bank_v1beta1_DenomUnit_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_bank_v1beta1_DenomUnit_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_bank_v1beta1_Metadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_bank_v1beta1_Metadata_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\036cosmos/bank/v1beta1/bank.proto\022\023cosmos" + ".bank.v1beta1\032\024gogoproto/gogo.proto\032\031cos" + "mos_proto/cosmos.proto\032\036cosmos/base/v1be" + "ta1/coin.proto\"\211\002\n\006Params\022Y\n\014send_enable" + "d\030\001 \003(\0132 .cosmos.bank.v1beta1.SendEnable" + "dB!\362\336\037\035yaml:\"send_enabled,omitempty\"\022G\n\024" + "default_send_enabled\030\002 \001(\010B)\362\336\037%yaml:\"de" + "fault_send_enabled,omitempty\"\022U\n\033unrestr" + "icted_token_transfer\030\003 \001(\010B0\362\336\037,yaml:\"un" + "restricted_token_transfer,omitempty\":\004\230\240" + "\037\000\"7\n\013SendEnabled\022\r\n\005denom\030\001 \001(\t\022\017\n\007enab" + "led\030\002 \001(\010:\010\350\240\037\001\230\240\037\000\"~\n\005Input\022\017\n\007address\030" + "\001 \001(\t\022Z\n\005coins\030\002 \003(\0132\031.cosmos.base.v1bet" + "a1.CoinB0\310\336\037\000\252\337\037(github.com/cosmos/cosmo" + "s-sdk/types.Coins:\010\350\240\037\000\210\240\037\000\"\177\n\006Output\022\017\n" + "\007address\030\001 \001(\t\022Z\n\005coins\030\002 \003(\0132\031.cosmos.b" + "ase.v1beta1.CoinB0\310\336\037\000\252\337\037(github.com/cos" + "mos/cosmos-sdk/types.Coins:\010\350\240\037\000\210\240\037\000\"\253\001\n" + "\006Supply\022Z\n\005total\030\001 \003(\0132\031.cosmos.base.v1b" + "eta1.CoinB0\310\336\037\000\252\337\037(github.com/cosmos/cos" + "mos-sdk/types.Coins:E\350\240\037\001\210\240\037\000\230\240\037\000\322\264-5*gi" + "thub.com/cosmos/cosmos-sdk/x/bank/export" + "ed.SupplyI\"=\n\tDenomUnit\022\r\n\005denom\030\001 \001(\t\022\020" + "\n\010exponent\030\002 \001(\r\022\017\n\007aliases\030\003 \003(\t\"s\n\010Met" + "adata\022\023\n\013description\030\001 \001(\t\0223\n\013denom_unit" + "s\030\002 \003(\0132\036.cosmos.bank.v1beta1.DenomUnit\022" + "\014\n\004base\030\003 \001(\t\022\017\n\007display\030\004 \001(\tB\033\n\031proto." + "cosmos.bank.v1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.GoGoProtos.getDescriptor(), proto.cosmos_proto.Cosmos.getDescriptor(), proto.cosmos.base.v1beta1.CoinOuterClass.getDescriptor(), }); internal_static_cosmos_bank_v1beta1_Params_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_cosmos_bank_v1beta1_Params_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_bank_v1beta1_Params_descriptor, new java.lang.String[] { "SendEnabled", "DefaultSendEnabled", "UnrestrictedTokenTransfer", }); internal_static_cosmos_bank_v1beta1_SendEnabled_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_cosmos_bank_v1beta1_SendEnabled_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_bank_v1beta1_SendEnabled_descriptor, new java.lang.String[] { "Denom", "Enabled", }); internal_static_cosmos_bank_v1beta1_Input_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_cosmos_bank_v1beta1_Input_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_bank_v1beta1_Input_descriptor, new java.lang.String[] { "Address", "Coins", }); internal_static_cosmos_bank_v1beta1_Output_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_cosmos_bank_v1beta1_Output_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_bank_v1beta1_Output_descriptor, new java.lang.String[] { "Address", "Coins", }); internal_static_cosmos_bank_v1beta1_Supply_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_cosmos_bank_v1beta1_Supply_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_bank_v1beta1_Supply_descriptor, new java.lang.String[] { "Total", }); internal_static_cosmos_bank_v1beta1_DenomUnit_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_cosmos_bank_v1beta1_DenomUnit_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_bank_v1beta1_DenomUnit_descriptor, new java.lang.String[] { "Denom", "Exponent", "Aliases", }); internal_static_cosmos_bank_v1beta1_Metadata_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_cosmos_bank_v1beta1_Metadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_bank_v1beta1_Metadata_descriptor, new java.lang.String[] { "Description", "DenomUnits", "Base", "Display", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(proto.cosmos_proto.Cosmos.implementsInterface); 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.goprotoStringer); 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_proto.Cosmos.getDescriptor(); proto.cosmos.base.v1beta1.CoinOuterClass.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy