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

cosmos.base.v1beta1.CoinOuterClass Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: cosmos/base/v1beta1/coin.proto

package cosmos.base.v1beta1;

public final class CoinOuterClass {
  private CoinOuterClass() {}
  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 CoinOrBuilder extends
      // @@protoc_insertion_point(interface_extends:cosmos.base.v1beta1.Coin)
      com.google.protobuf.MessageOrBuilder {

    /**
     * string denom = 1;
     */
    java.lang.String getDenom();
    /**
     * string denom = 1;
     */
    com.google.protobuf.ByteString
        getDenomBytes();

    /**
     * string amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Int"];
     */
    java.lang.String getAmount();
    /**
     * string amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Int"];
     */
    com.google.protobuf.ByteString
        getAmountBytes();
  }
  /**
   * 
   * Coin defines a token with a denomination and an amount.
   * NOTE: The amount field is an Int which implements the custom method
   * signatures required by gogoproto.
   * 
* * Protobuf type {@code cosmos.base.v1beta1.Coin} */ public static final class Coin extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.base.v1beta1.Coin) CoinOrBuilder { private static final long serialVersionUID = 0L; // Use Coin.newBuilder() to construct. private Coin(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Coin() { denom_ = ""; amount_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Coin( 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 18: { java.lang.String s = input.readStringRequireUtf8(); amount_ = s; break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_Coin_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_Coin_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.base.v1beta1.CoinOuterClass.Coin.class, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder.class); } public static final int DENOM_FIELD_NUMBER = 1; private volatile java.lang.Object denom_; /** * string denom = 1; */ 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; */ 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 AMOUNT_FIELD_NUMBER = 2; private volatile java.lang.Object amount_; /** * string amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Int"]; */ public java.lang.String getAmount() { java.lang.Object ref = amount_; 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(); amount_ = s; return s; } } /** * string amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Int"]; */ public com.google.protobuf.ByteString getAmountBytes() { java.lang.Object ref = amount_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); amount_ = 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 (!getDenomBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, denom_); } if (!getAmountBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, amount_); } 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 (!getAmountBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, amount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cosmos.base.v1beta1.CoinOuterClass.Coin)) { return super.equals(obj); } cosmos.base.v1beta1.CoinOuterClass.Coin other = (cosmos.base.v1beta1.CoinOuterClass.Coin) obj; boolean result = true; result = result && getDenom() .equals(other.getDenom()); result = result && getAmount() .equals(other.getAmount()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DENOM_FIELD_NUMBER; hash = (53 * hash) + getDenom().hashCode(); hash = (37 * hash) + AMOUNT_FIELD_NUMBER; hash = (53 * hash) + getAmount().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.base.v1beta1.CoinOuterClass.Coin parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.base.v1beta1.CoinOuterClass.Coin parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.base.v1beta1.CoinOuterClass.Coin parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.base.v1beta1.CoinOuterClass.Coin parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.base.v1beta1.CoinOuterClass.Coin parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.base.v1beta1.CoinOuterClass.Coin parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.base.v1beta1.CoinOuterClass.Coin parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.base.v1beta1.CoinOuterClass.Coin parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cosmos.base.v1beta1.CoinOuterClass.Coin parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.base.v1beta1.CoinOuterClass.Coin parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cosmos.base.v1beta1.CoinOuterClass.Coin parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.base.v1beta1.CoinOuterClass.Coin parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cosmos.base.v1beta1.CoinOuterClass.Coin 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; } /** *
     * Coin defines a token with a denomination and an amount.
     * NOTE: The amount field is an Int which implements the custom method
     * signatures required by gogoproto.
     * 
* * Protobuf type {@code cosmos.base.v1beta1.Coin} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.base.v1beta1.Coin) cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_Coin_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_Coin_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.base.v1beta1.CoinOuterClass.Coin.class, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder.class); } // Construct using cosmos.base.v1beta1.CoinOuterClass.Coin.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_ = ""; amount_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_Coin_descriptor; } @java.lang.Override public cosmos.base.v1beta1.CoinOuterClass.Coin getDefaultInstanceForType() { return cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance(); } @java.lang.Override public cosmos.base.v1beta1.CoinOuterClass.Coin build() { cosmos.base.v1beta1.CoinOuterClass.Coin result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.base.v1beta1.CoinOuterClass.Coin buildPartial() { cosmos.base.v1beta1.CoinOuterClass.Coin result = new cosmos.base.v1beta1.CoinOuterClass.Coin(this); result.denom_ = denom_; result.amount_ = amount_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cosmos.base.v1beta1.CoinOuterClass.Coin) { return mergeFrom((cosmos.base.v1beta1.CoinOuterClass.Coin)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.base.v1beta1.CoinOuterClass.Coin other) { if (other == cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance()) return this; if (!other.getDenom().isEmpty()) { denom_ = other.denom_; onChanged(); } if (!other.getAmount().isEmpty()) { amount_ = other.amount_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cosmos.base.v1beta1.CoinOuterClass.Coin parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.base.v1beta1.CoinOuterClass.Coin) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object denom_ = ""; /** * string denom = 1; */ 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; */ 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; */ public Builder setDenom( java.lang.String value) { if (value == null) { throw new NullPointerException(); } denom_ = value; onChanged(); return this; } /** * string denom = 1; */ public Builder clearDenom() { denom_ = getDefaultInstance().getDenom(); onChanged(); return this; } /** * string denom = 1; */ public Builder setDenomBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); denom_ = value; onChanged(); return this; } private java.lang.Object amount_ = ""; /** * string amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Int"]; */ public java.lang.String getAmount() { java.lang.Object ref = amount_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); amount_ = s; return s; } else { return (java.lang.String) ref; } } /** * string amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Int"]; */ public com.google.protobuf.ByteString getAmountBytes() { java.lang.Object ref = amount_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); amount_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Int"]; */ public Builder setAmount( java.lang.String value) { if (value == null) { throw new NullPointerException(); } amount_ = value; onChanged(); return this; } /** * string amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Int"]; */ public Builder clearAmount() { amount_ = getDefaultInstance().getAmount(); onChanged(); return this; } /** * string amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Int"]; */ public Builder setAmountBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); amount_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cosmos.base.v1beta1.Coin) } // @@protoc_insertion_point(class_scope:cosmos.base.v1beta1.Coin) private static final cosmos.base.v1beta1.CoinOuterClass.Coin DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.base.v1beta1.CoinOuterClass.Coin(); } public static cosmos.base.v1beta1.CoinOuterClass.Coin getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Coin parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Coin(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cosmos.base.v1beta1.CoinOuterClass.Coin getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DecCoinOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.base.v1beta1.DecCoin) com.google.protobuf.MessageOrBuilder { /** * string denom = 1; */ java.lang.String getDenom(); /** * string denom = 1; */ com.google.protobuf.ByteString getDenomBytes(); /** * string amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Dec"]; */ java.lang.String getAmount(); /** * string amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Dec"]; */ com.google.protobuf.ByteString getAmountBytes(); } /** *
   * DecCoin defines a token with a denomination and a decimal amount.
   * NOTE: The amount field is an Dec which implements the custom method
   * signatures required by gogoproto.
   * 
* * Protobuf type {@code cosmos.base.v1beta1.DecCoin} */ public static final class DecCoin extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.base.v1beta1.DecCoin) DecCoinOrBuilder { private static final long serialVersionUID = 0L; // Use DecCoin.newBuilder() to construct. private DecCoin(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DecCoin() { denom_ = ""; amount_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DecCoin( 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 18: { java.lang.String s = input.readStringRequireUtf8(); amount_ = s; break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_DecCoin_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_DecCoin_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.base.v1beta1.CoinOuterClass.DecCoin.class, cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder.class); } public static final int DENOM_FIELD_NUMBER = 1; private volatile java.lang.Object denom_; /** * string denom = 1; */ 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; */ 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 AMOUNT_FIELD_NUMBER = 2; private volatile java.lang.Object amount_; /** * string amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Dec"]; */ public java.lang.String getAmount() { java.lang.Object ref = amount_; 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(); amount_ = s; return s; } } /** * string amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Dec"]; */ public com.google.protobuf.ByteString getAmountBytes() { java.lang.Object ref = amount_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); amount_ = 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 (!getDenomBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, denom_); } if (!getAmountBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, amount_); } 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 (!getAmountBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, amount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cosmos.base.v1beta1.CoinOuterClass.DecCoin)) { return super.equals(obj); } cosmos.base.v1beta1.CoinOuterClass.DecCoin other = (cosmos.base.v1beta1.CoinOuterClass.DecCoin) obj; boolean result = true; result = result && getDenom() .equals(other.getDenom()); result = result && getAmount() .equals(other.getAmount()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DENOM_FIELD_NUMBER; hash = (53 * hash) + getDenom().hashCode(); hash = (37 * hash) + AMOUNT_FIELD_NUMBER; hash = (53 * hash) + getAmount().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.base.v1beta1.CoinOuterClass.DecCoin parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.base.v1beta1.CoinOuterClass.DecCoin parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.base.v1beta1.CoinOuterClass.DecCoin parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.base.v1beta1.CoinOuterClass.DecCoin parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.base.v1beta1.CoinOuterClass.DecCoin parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.base.v1beta1.CoinOuterClass.DecCoin parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.base.v1beta1.CoinOuterClass.DecCoin parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.base.v1beta1.CoinOuterClass.DecCoin parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cosmos.base.v1beta1.CoinOuterClass.DecCoin parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.base.v1beta1.CoinOuterClass.DecCoin parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cosmos.base.v1beta1.CoinOuterClass.DecCoin parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.base.v1beta1.CoinOuterClass.DecCoin parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cosmos.base.v1beta1.CoinOuterClass.DecCoin 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; } /** *
     * DecCoin defines a token with a denomination and a decimal amount.
     * NOTE: The amount field is an Dec which implements the custom method
     * signatures required by gogoproto.
     * 
* * Protobuf type {@code cosmos.base.v1beta1.DecCoin} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.base.v1beta1.DecCoin) cosmos.base.v1beta1.CoinOuterClass.DecCoinOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_DecCoin_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_DecCoin_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.base.v1beta1.CoinOuterClass.DecCoin.class, cosmos.base.v1beta1.CoinOuterClass.DecCoin.Builder.class); } // Construct using cosmos.base.v1beta1.CoinOuterClass.DecCoin.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_ = ""; amount_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_DecCoin_descriptor; } @java.lang.Override public cosmos.base.v1beta1.CoinOuterClass.DecCoin getDefaultInstanceForType() { return cosmos.base.v1beta1.CoinOuterClass.DecCoin.getDefaultInstance(); } @java.lang.Override public cosmos.base.v1beta1.CoinOuterClass.DecCoin build() { cosmos.base.v1beta1.CoinOuterClass.DecCoin result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.base.v1beta1.CoinOuterClass.DecCoin buildPartial() { cosmos.base.v1beta1.CoinOuterClass.DecCoin result = new cosmos.base.v1beta1.CoinOuterClass.DecCoin(this); result.denom_ = denom_; result.amount_ = amount_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cosmos.base.v1beta1.CoinOuterClass.DecCoin) { return mergeFrom((cosmos.base.v1beta1.CoinOuterClass.DecCoin)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.base.v1beta1.CoinOuterClass.DecCoin other) { if (other == cosmos.base.v1beta1.CoinOuterClass.DecCoin.getDefaultInstance()) return this; if (!other.getDenom().isEmpty()) { denom_ = other.denom_; onChanged(); } if (!other.getAmount().isEmpty()) { amount_ = other.amount_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cosmos.base.v1beta1.CoinOuterClass.DecCoin parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.base.v1beta1.CoinOuterClass.DecCoin) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object denom_ = ""; /** * string denom = 1; */ 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; */ 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; */ public Builder setDenom( java.lang.String value) { if (value == null) { throw new NullPointerException(); } denom_ = value; onChanged(); return this; } /** * string denom = 1; */ public Builder clearDenom() { denom_ = getDefaultInstance().getDenom(); onChanged(); return this; } /** * string denom = 1; */ public Builder setDenomBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); denom_ = value; onChanged(); return this; } private java.lang.Object amount_ = ""; /** * string amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Dec"]; */ public java.lang.String getAmount() { java.lang.Object ref = amount_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); amount_ = s; return s; } else { return (java.lang.String) ref; } } /** * string amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Dec"]; */ public com.google.protobuf.ByteString getAmountBytes() { java.lang.Object ref = amount_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); amount_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Dec"]; */ public Builder setAmount( java.lang.String value) { if (value == null) { throw new NullPointerException(); } amount_ = value; onChanged(); return this; } /** * string amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Dec"]; */ public Builder clearAmount() { amount_ = getDefaultInstance().getAmount(); onChanged(); return this; } /** * string amount = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Dec"]; */ public Builder setAmountBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); amount_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cosmos.base.v1beta1.DecCoin) } // @@protoc_insertion_point(class_scope:cosmos.base.v1beta1.DecCoin) private static final cosmos.base.v1beta1.CoinOuterClass.DecCoin DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.base.v1beta1.CoinOuterClass.DecCoin(); } public static cosmos.base.v1beta1.CoinOuterClass.DecCoin getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DecCoin parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DecCoin(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cosmos.base.v1beta1.CoinOuterClass.DecCoin getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IntProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.base.v1beta1.IntProto) com.google.protobuf.MessageOrBuilder { /** * string int = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Int"]; */ java.lang.String getInt(); /** * string int = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Int"]; */ com.google.protobuf.ByteString getIntBytes(); } /** *
   * IntProto defines a Protobuf wrapper around an Int object.
   * 
* * Protobuf type {@code cosmos.base.v1beta1.IntProto} */ public static final class IntProto extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.base.v1beta1.IntProto) IntProtoOrBuilder { private static final long serialVersionUID = 0L; // Use IntProto.newBuilder() to construct. private IntProto(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IntProto() { int_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private IntProto( 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(); int_ = s; break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_IntProto_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_IntProto_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.base.v1beta1.CoinOuterClass.IntProto.class, cosmos.base.v1beta1.CoinOuterClass.IntProto.Builder.class); } public static final int INT_FIELD_NUMBER = 1; private volatile java.lang.Object int_; /** * string int = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Int"]; */ public java.lang.String getInt() { java.lang.Object ref = int_; 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(); int_ = s; return s; } } /** * string int = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Int"]; */ public com.google.protobuf.ByteString getIntBytes() { java.lang.Object ref = int_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); int_ = 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 (!getIntBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, int_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getIntBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, int_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cosmos.base.v1beta1.CoinOuterClass.IntProto)) { return super.equals(obj); } cosmos.base.v1beta1.CoinOuterClass.IntProto other = (cosmos.base.v1beta1.CoinOuterClass.IntProto) obj; boolean result = true; result = result && getInt() .equals(other.getInt()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + INT_FIELD_NUMBER; hash = (53 * hash) + getInt().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.base.v1beta1.CoinOuterClass.IntProto parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.base.v1beta1.CoinOuterClass.IntProto parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.base.v1beta1.CoinOuterClass.IntProto parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.base.v1beta1.CoinOuterClass.IntProto parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.base.v1beta1.CoinOuterClass.IntProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.base.v1beta1.CoinOuterClass.IntProto parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.base.v1beta1.CoinOuterClass.IntProto parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.base.v1beta1.CoinOuterClass.IntProto parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cosmos.base.v1beta1.CoinOuterClass.IntProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.base.v1beta1.CoinOuterClass.IntProto parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cosmos.base.v1beta1.CoinOuterClass.IntProto parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.base.v1beta1.CoinOuterClass.IntProto parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cosmos.base.v1beta1.CoinOuterClass.IntProto 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; } /** *
     * IntProto defines a Protobuf wrapper around an Int object.
     * 
* * Protobuf type {@code cosmos.base.v1beta1.IntProto} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.base.v1beta1.IntProto) cosmos.base.v1beta1.CoinOuterClass.IntProtoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_IntProto_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_IntProto_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.base.v1beta1.CoinOuterClass.IntProto.class, cosmos.base.v1beta1.CoinOuterClass.IntProto.Builder.class); } // Construct using cosmos.base.v1beta1.CoinOuterClass.IntProto.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(); int_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_IntProto_descriptor; } @java.lang.Override public cosmos.base.v1beta1.CoinOuterClass.IntProto getDefaultInstanceForType() { return cosmos.base.v1beta1.CoinOuterClass.IntProto.getDefaultInstance(); } @java.lang.Override public cosmos.base.v1beta1.CoinOuterClass.IntProto build() { cosmos.base.v1beta1.CoinOuterClass.IntProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.base.v1beta1.CoinOuterClass.IntProto buildPartial() { cosmos.base.v1beta1.CoinOuterClass.IntProto result = new cosmos.base.v1beta1.CoinOuterClass.IntProto(this); result.int_ = int_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cosmos.base.v1beta1.CoinOuterClass.IntProto) { return mergeFrom((cosmos.base.v1beta1.CoinOuterClass.IntProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.base.v1beta1.CoinOuterClass.IntProto other) { if (other == cosmos.base.v1beta1.CoinOuterClass.IntProto.getDefaultInstance()) return this; if (!other.getInt().isEmpty()) { int_ = other.int_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cosmos.base.v1beta1.CoinOuterClass.IntProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.base.v1beta1.CoinOuterClass.IntProto) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object int_ = ""; /** * string int = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Int"]; */ public java.lang.String getInt() { java.lang.Object ref = int_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); int_ = s; return s; } else { return (java.lang.String) ref; } } /** * string int = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Int"]; */ public com.google.protobuf.ByteString getIntBytes() { java.lang.Object ref = int_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); int_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string int = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Int"]; */ public Builder setInt( java.lang.String value) { if (value == null) { throw new NullPointerException(); } int_ = value; onChanged(); return this; } /** * string int = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Int"]; */ public Builder clearInt() { int_ = getDefaultInstance().getInt(); onChanged(); return this; } /** * string int = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Int"]; */ public Builder setIntBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); int_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cosmos.base.v1beta1.IntProto) } // @@protoc_insertion_point(class_scope:cosmos.base.v1beta1.IntProto) private static final cosmos.base.v1beta1.CoinOuterClass.IntProto DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.base.v1beta1.CoinOuterClass.IntProto(); } public static cosmos.base.v1beta1.CoinOuterClass.IntProto getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IntProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new IntProto(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cosmos.base.v1beta1.CoinOuterClass.IntProto getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DecProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.base.v1beta1.DecProto) com.google.protobuf.MessageOrBuilder { /** * string dec = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Dec"]; */ java.lang.String getDec(); /** * string dec = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Dec"]; */ com.google.protobuf.ByteString getDecBytes(); } /** *
   * DecProto defines a Protobuf wrapper around a Dec object.
   * 
* * Protobuf type {@code cosmos.base.v1beta1.DecProto} */ public static final class DecProto extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.base.v1beta1.DecProto) DecProtoOrBuilder { private static final long serialVersionUID = 0L; // Use DecProto.newBuilder() to construct. private DecProto(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DecProto() { dec_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DecProto( 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(); dec_ = s; break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_DecProto_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_DecProto_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.base.v1beta1.CoinOuterClass.DecProto.class, cosmos.base.v1beta1.CoinOuterClass.DecProto.Builder.class); } public static final int DEC_FIELD_NUMBER = 1; private volatile java.lang.Object dec_; /** * string dec = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Dec"]; */ public java.lang.String getDec() { java.lang.Object ref = dec_; 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(); dec_ = s; return s; } } /** * string dec = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Dec"]; */ public com.google.protobuf.ByteString getDecBytes() { java.lang.Object ref = dec_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dec_ = 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 (!getDecBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dec_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getDecBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dec_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cosmos.base.v1beta1.CoinOuterClass.DecProto)) { return super.equals(obj); } cosmos.base.v1beta1.CoinOuterClass.DecProto other = (cosmos.base.v1beta1.CoinOuterClass.DecProto) obj; boolean result = true; result = result && getDec() .equals(other.getDec()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DEC_FIELD_NUMBER; hash = (53 * hash) + getDec().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.base.v1beta1.CoinOuterClass.DecProto parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.base.v1beta1.CoinOuterClass.DecProto parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.base.v1beta1.CoinOuterClass.DecProto parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.base.v1beta1.CoinOuterClass.DecProto parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.base.v1beta1.CoinOuterClass.DecProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.base.v1beta1.CoinOuterClass.DecProto parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.base.v1beta1.CoinOuterClass.DecProto parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.base.v1beta1.CoinOuterClass.DecProto parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cosmos.base.v1beta1.CoinOuterClass.DecProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.base.v1beta1.CoinOuterClass.DecProto parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cosmos.base.v1beta1.CoinOuterClass.DecProto parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.base.v1beta1.CoinOuterClass.DecProto parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cosmos.base.v1beta1.CoinOuterClass.DecProto 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; } /** *
     * DecProto defines a Protobuf wrapper around a Dec object.
     * 
* * Protobuf type {@code cosmos.base.v1beta1.DecProto} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.base.v1beta1.DecProto) cosmos.base.v1beta1.CoinOuterClass.DecProtoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_DecProto_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_DecProto_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.base.v1beta1.CoinOuterClass.DecProto.class, cosmos.base.v1beta1.CoinOuterClass.DecProto.Builder.class); } // Construct using cosmos.base.v1beta1.CoinOuterClass.DecProto.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(); dec_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.base.v1beta1.CoinOuterClass.internal_static_cosmos_base_v1beta1_DecProto_descriptor; } @java.lang.Override public cosmos.base.v1beta1.CoinOuterClass.DecProto getDefaultInstanceForType() { return cosmos.base.v1beta1.CoinOuterClass.DecProto.getDefaultInstance(); } @java.lang.Override public cosmos.base.v1beta1.CoinOuterClass.DecProto build() { cosmos.base.v1beta1.CoinOuterClass.DecProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.base.v1beta1.CoinOuterClass.DecProto buildPartial() { cosmos.base.v1beta1.CoinOuterClass.DecProto result = new cosmos.base.v1beta1.CoinOuterClass.DecProto(this); result.dec_ = dec_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cosmos.base.v1beta1.CoinOuterClass.DecProto) { return mergeFrom((cosmos.base.v1beta1.CoinOuterClass.DecProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.base.v1beta1.CoinOuterClass.DecProto other) { if (other == cosmos.base.v1beta1.CoinOuterClass.DecProto.getDefaultInstance()) return this; if (!other.getDec().isEmpty()) { dec_ = other.dec_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cosmos.base.v1beta1.CoinOuterClass.DecProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.base.v1beta1.CoinOuterClass.DecProto) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object dec_ = ""; /** * string dec = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Dec"]; */ public java.lang.String getDec() { java.lang.Object ref = dec_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dec_ = s; return s; } else { return (java.lang.String) ref; } } /** * string dec = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Dec"]; */ public com.google.protobuf.ByteString getDecBytes() { java.lang.Object ref = dec_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dec_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string dec = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Dec"]; */ public Builder setDec( java.lang.String value) { if (value == null) { throw new NullPointerException(); } dec_ = value; onChanged(); return this; } /** * string dec = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Dec"]; */ public Builder clearDec() { dec_ = getDefaultInstance().getDec(); onChanged(); return this; } /** * string dec = 1 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "Dec"]; */ public Builder setDecBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dec_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cosmos.base.v1beta1.DecProto) } // @@protoc_insertion_point(class_scope:cosmos.base.v1beta1.DecProto) private static final cosmos.base.v1beta1.CoinOuterClass.DecProto DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.base.v1beta1.CoinOuterClass.DecProto(); } public static cosmos.base.v1beta1.CoinOuterClass.DecProto getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DecProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DecProto(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cosmos.base.v1beta1.CoinOuterClass.DecProto getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_base_v1beta1_Coin_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_base_v1beta1_Coin_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_base_v1beta1_DecCoin_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_base_v1beta1_DecCoin_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_base_v1beta1_IntProto_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_base_v1beta1_IntProto_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_base_v1beta1_DecProto_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_base_v1beta1_DecProto_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/base/v1beta1/coin.proto\022\023cosmos" + ".base.v1beta1\032\024gogoproto/gogo.proto\"8\n\004C" + "oin\022\r\n\005denom\030\001 \001(\t\022\033\n\006amount\030\002 \001(\tB\013\332\336\037\003" + "Int\310\336\037\000:\004\350\240\037\001\";\n\007DecCoin\022\r\n\005denom\030\001 \001(\t\022" + "\033\n\006amount\030\002 \001(\tB\013\332\336\037\003Dec\310\336\037\000:\004\350\240\037\001\"$\n\010In" + "tProto\022\030\n\003int\030\001 \001(\tB\013\332\336\037\003Int\310\336\037\000\"$\n\010DecP" + "roto\022\030\n\003dec\030\001 \001(\tB\013\332\336\037\003Dec\310\336\037\000B,Z\"github" + ".com/cosmos/cosmos-sdk/types\330\341\036\000\200\342\036\000b\006pr" + "oto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.GoGoProtos.getDescriptor(), }, assigner); internal_static_cosmos_base_v1beta1_Coin_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_cosmos_base_v1beta1_Coin_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_base_v1beta1_Coin_descriptor, new java.lang.String[] { "Denom", "Amount", }); internal_static_cosmos_base_v1beta1_DecCoin_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_cosmos_base_v1beta1_DecCoin_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_base_v1beta1_DecCoin_descriptor, new java.lang.String[] { "Denom", "Amount", }); internal_static_cosmos_base_v1beta1_IntProto_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_cosmos_base_v1beta1_IntProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_base_v1beta1_IntProto_descriptor, new java.lang.String[] { "Int", }); internal_static_cosmos_base_v1beta1_DecProto_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_cosmos_base_v1beta1_DecProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_base_v1beta1_DecProto_descriptor, new java.lang.String[] { "Dec", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.protobuf.GoGoProtos.customtype); registry.add(com.google.protobuf.GoGoProtos.equal); registry.add(com.google.protobuf.GoGoProtos.goprotoStringerAll); registry.add(com.google.protobuf.GoGoProtos.nullable); registry.add(com.google.protobuf.GoGoProtos.stringerAll); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.protobuf.GoGoProtos.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy