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

cosmos.crypto.multisig.Keys Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: cosmos/crypto/multisig/keys.proto

package cosmos.crypto.multisig;

public final class Keys {
  private Keys() {}
  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 LegacyAminoPubKeyOrBuilder extends
      // @@protoc_insertion_point(interface_extends:cosmos.crypto.multisig.LegacyAminoPubKey)
      com.google.protobuf.MessageOrBuilder {

    /**
     * uint32 threshold = 1 [(.gogoproto.moretags) = "yaml:\"threshold\""];
     */
    int getThreshold();

    /**
     * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""];
     */
    java.util.List 
        getPublicKeysList();
    /**
     * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""];
     */
    com.google.protobuf.Any getPublicKeys(int index);
    /**
     * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""];
     */
    int getPublicKeysCount();
    /**
     * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""];
     */
    java.util.List 
        getPublicKeysOrBuilderList();
    /**
     * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""];
     */
    com.google.protobuf.AnyOrBuilder getPublicKeysOrBuilder(
        int index);
  }
  /**
   * 
   * LegacyAminoPubKey specifies a public key type
   * which nests multiple public keys and a threshold,
   * it uses legacy amino address rules.
   * 
* * Protobuf type {@code cosmos.crypto.multisig.LegacyAminoPubKey} */ public static final class LegacyAminoPubKey extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.crypto.multisig.LegacyAminoPubKey) LegacyAminoPubKeyOrBuilder { private static final long serialVersionUID = 0L; // Use LegacyAminoPubKey.newBuilder() to construct. private LegacyAminoPubKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LegacyAminoPubKey() { threshold_ = 0; publicKeys_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LegacyAminoPubKey( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { threshold_ = input.readUInt32(); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { publicKeys_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } publicKeys_.add( input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry)); break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { publicKeys_ = java.util.Collections.unmodifiableList(publicKeys_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.crypto.multisig.Keys.internal_static_cosmos_crypto_multisig_LegacyAminoPubKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.crypto.multisig.Keys.internal_static_cosmos_crypto_multisig_LegacyAminoPubKey_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.crypto.multisig.Keys.LegacyAminoPubKey.class, cosmos.crypto.multisig.Keys.LegacyAminoPubKey.Builder.class); } private int bitField0_; public static final int THRESHOLD_FIELD_NUMBER = 1; private int threshold_; /** * uint32 threshold = 1 [(.gogoproto.moretags) = "yaml:\"threshold\""]; */ public int getThreshold() { return threshold_; } public static final int PUBLIC_KEYS_FIELD_NUMBER = 2; private java.util.List publicKeys_; /** * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; */ public java.util.List getPublicKeysList() { return publicKeys_; } /** * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; */ public java.util.List getPublicKeysOrBuilderList() { return publicKeys_; } /** * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; */ public int getPublicKeysCount() { return publicKeys_.size(); } /** * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; */ public com.google.protobuf.Any getPublicKeys(int index) { return publicKeys_.get(index); } /** * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; */ public com.google.protobuf.AnyOrBuilder getPublicKeysOrBuilder( int index) { return publicKeys_.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 (threshold_ != 0) { output.writeUInt32(1, threshold_); } for (int i = 0; i < publicKeys_.size(); i++) { output.writeMessage(2, publicKeys_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (threshold_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, threshold_); } for (int i = 0; i < publicKeys_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, publicKeys_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cosmos.crypto.multisig.Keys.LegacyAminoPubKey)) { return super.equals(obj); } cosmos.crypto.multisig.Keys.LegacyAminoPubKey other = (cosmos.crypto.multisig.Keys.LegacyAminoPubKey) obj; boolean result = true; result = result && (getThreshold() == other.getThreshold()); result = result && getPublicKeysList() .equals(other.getPublicKeysList()); 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) + THRESHOLD_FIELD_NUMBER; hash = (53 * hash) + getThreshold(); if (getPublicKeysCount() > 0) { hash = (37 * hash) + PUBLIC_KEYS_FIELD_NUMBER; hash = (53 * hash) + getPublicKeysList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.crypto.multisig.Keys.LegacyAminoPubKey parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.crypto.multisig.Keys.LegacyAminoPubKey parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.crypto.multisig.Keys.LegacyAminoPubKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.crypto.multisig.Keys.LegacyAminoPubKey parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.crypto.multisig.Keys.LegacyAminoPubKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.crypto.multisig.Keys.LegacyAminoPubKey parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.crypto.multisig.Keys.LegacyAminoPubKey parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.crypto.multisig.Keys.LegacyAminoPubKey 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.crypto.multisig.Keys.LegacyAminoPubKey parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.crypto.multisig.Keys.LegacyAminoPubKey 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.crypto.multisig.Keys.LegacyAminoPubKey parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.crypto.multisig.Keys.LegacyAminoPubKey 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.crypto.multisig.Keys.LegacyAminoPubKey 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; } /** *
     * LegacyAminoPubKey specifies a public key type
     * which nests multiple public keys and a threshold,
     * it uses legacy amino address rules.
     * 
* * Protobuf type {@code cosmos.crypto.multisig.LegacyAminoPubKey} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.crypto.multisig.LegacyAminoPubKey) cosmos.crypto.multisig.Keys.LegacyAminoPubKeyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.crypto.multisig.Keys.internal_static_cosmos_crypto_multisig_LegacyAminoPubKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.crypto.multisig.Keys.internal_static_cosmos_crypto_multisig_LegacyAminoPubKey_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.crypto.multisig.Keys.LegacyAminoPubKey.class, cosmos.crypto.multisig.Keys.LegacyAminoPubKey.Builder.class); } // Construct using cosmos.crypto.multisig.Keys.LegacyAminoPubKey.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPublicKeysFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); threshold_ = 0; if (publicKeysBuilder_ == null) { publicKeys_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { publicKeysBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.crypto.multisig.Keys.internal_static_cosmos_crypto_multisig_LegacyAminoPubKey_descriptor; } @java.lang.Override public cosmos.crypto.multisig.Keys.LegacyAminoPubKey getDefaultInstanceForType() { return cosmos.crypto.multisig.Keys.LegacyAminoPubKey.getDefaultInstance(); } @java.lang.Override public cosmos.crypto.multisig.Keys.LegacyAminoPubKey build() { cosmos.crypto.multisig.Keys.LegacyAminoPubKey result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.crypto.multisig.Keys.LegacyAminoPubKey buildPartial() { cosmos.crypto.multisig.Keys.LegacyAminoPubKey result = new cosmos.crypto.multisig.Keys.LegacyAminoPubKey(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.threshold_ = threshold_; if (publicKeysBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { publicKeys_ = java.util.Collections.unmodifiableList(publicKeys_); bitField0_ = (bitField0_ & ~0x00000002); } result.publicKeys_ = publicKeys_; } else { result.publicKeys_ = publicKeysBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cosmos.crypto.multisig.Keys.LegacyAminoPubKey) { return mergeFrom((cosmos.crypto.multisig.Keys.LegacyAminoPubKey)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.crypto.multisig.Keys.LegacyAminoPubKey other) { if (other == cosmos.crypto.multisig.Keys.LegacyAminoPubKey.getDefaultInstance()) return this; if (other.getThreshold() != 0) { setThreshold(other.getThreshold()); } if (publicKeysBuilder_ == null) { if (!other.publicKeys_.isEmpty()) { if (publicKeys_.isEmpty()) { publicKeys_ = other.publicKeys_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePublicKeysIsMutable(); publicKeys_.addAll(other.publicKeys_); } onChanged(); } } else { if (!other.publicKeys_.isEmpty()) { if (publicKeysBuilder_.isEmpty()) { publicKeysBuilder_.dispose(); publicKeysBuilder_ = null; publicKeys_ = other.publicKeys_; bitField0_ = (bitField0_ & ~0x00000002); publicKeysBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPublicKeysFieldBuilder() : null; } else { publicKeysBuilder_.addAllMessages(other.publicKeys_); } } } 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.crypto.multisig.Keys.LegacyAminoPubKey parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.crypto.multisig.Keys.LegacyAminoPubKey) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int threshold_ ; /** * uint32 threshold = 1 [(.gogoproto.moretags) = "yaml:\"threshold\""]; */ public int getThreshold() { return threshold_; } /** * uint32 threshold = 1 [(.gogoproto.moretags) = "yaml:\"threshold\""]; */ public Builder setThreshold(int value) { threshold_ = value; onChanged(); return this; } /** * uint32 threshold = 1 [(.gogoproto.moretags) = "yaml:\"threshold\""]; */ public Builder clearThreshold() { threshold_ = 0; onChanged(); return this; } private java.util.List publicKeys_ = java.util.Collections.emptyList(); private void ensurePublicKeysIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { publicKeys_ = new java.util.ArrayList(publicKeys_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> publicKeysBuilder_; /** * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; */ public java.util.List getPublicKeysList() { if (publicKeysBuilder_ == null) { return java.util.Collections.unmodifiableList(publicKeys_); } else { return publicKeysBuilder_.getMessageList(); } } /** * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; */ public int getPublicKeysCount() { if (publicKeysBuilder_ == null) { return publicKeys_.size(); } else { return publicKeysBuilder_.getCount(); } } /** * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; */ public com.google.protobuf.Any getPublicKeys(int index) { if (publicKeysBuilder_ == null) { return publicKeys_.get(index); } else { return publicKeysBuilder_.getMessage(index); } } /** * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; */ public Builder setPublicKeys( int index, com.google.protobuf.Any value) { if (publicKeysBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePublicKeysIsMutable(); publicKeys_.set(index, value); onChanged(); } else { publicKeysBuilder_.setMessage(index, value); } return this; } /** * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; */ public Builder setPublicKeys( int index, com.google.protobuf.Any.Builder builderForValue) { if (publicKeysBuilder_ == null) { ensurePublicKeysIsMutable(); publicKeys_.set(index, builderForValue.build()); onChanged(); } else { publicKeysBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; */ public Builder addPublicKeys(com.google.protobuf.Any value) { if (publicKeysBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePublicKeysIsMutable(); publicKeys_.add(value); onChanged(); } else { publicKeysBuilder_.addMessage(value); } return this; } /** * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; */ public Builder addPublicKeys( int index, com.google.protobuf.Any value) { if (publicKeysBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePublicKeysIsMutable(); publicKeys_.add(index, value); onChanged(); } else { publicKeysBuilder_.addMessage(index, value); } return this; } /** * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; */ public Builder addPublicKeys( com.google.protobuf.Any.Builder builderForValue) { if (publicKeysBuilder_ == null) { ensurePublicKeysIsMutable(); publicKeys_.add(builderForValue.build()); onChanged(); } else { publicKeysBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; */ public Builder addPublicKeys( int index, com.google.protobuf.Any.Builder builderForValue) { if (publicKeysBuilder_ == null) { ensurePublicKeysIsMutable(); publicKeys_.add(index, builderForValue.build()); onChanged(); } else { publicKeysBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; */ public Builder addAllPublicKeys( java.lang.Iterable values) { if (publicKeysBuilder_ == null) { ensurePublicKeysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, publicKeys_); onChanged(); } else { publicKeysBuilder_.addAllMessages(values); } return this; } /** * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; */ public Builder clearPublicKeys() { if (publicKeysBuilder_ == null) { publicKeys_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { publicKeysBuilder_.clear(); } return this; } /** * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; */ public Builder removePublicKeys(int index) { if (publicKeysBuilder_ == null) { ensurePublicKeysIsMutable(); publicKeys_.remove(index); onChanged(); } else { publicKeysBuilder_.remove(index); } return this; } /** * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; */ public com.google.protobuf.Any.Builder getPublicKeysBuilder( int index) { return getPublicKeysFieldBuilder().getBuilder(index); } /** * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; */ public com.google.protobuf.AnyOrBuilder getPublicKeysOrBuilder( int index) { if (publicKeysBuilder_ == null) { return publicKeys_.get(index); } else { return publicKeysBuilder_.getMessageOrBuilder(index); } } /** * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; */ public java.util.List getPublicKeysOrBuilderList() { if (publicKeysBuilder_ != null) { return publicKeysBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(publicKeys_); } } /** * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; */ public com.google.protobuf.Any.Builder addPublicKeysBuilder() { return getPublicKeysFieldBuilder().addBuilder( com.google.protobuf.Any.getDefaultInstance()); } /** * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; */ public com.google.protobuf.Any.Builder addPublicKeysBuilder( int index) { return getPublicKeysFieldBuilder().addBuilder( index, com.google.protobuf.Any.getDefaultInstance()); } /** * repeated .google.protobuf.Any public_keys = 2 [(.gogoproto.customname) = "PubKeys", (.gogoproto.moretags) = "yaml:\"pubkeys\""]; */ public java.util.List getPublicKeysBuilderList() { return getPublicKeysFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> getPublicKeysFieldBuilder() { if (publicKeysBuilder_ == null) { publicKeysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( publicKeys_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); publicKeys_ = null; } return publicKeysBuilder_; } @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.crypto.multisig.LegacyAminoPubKey) } // @@protoc_insertion_point(class_scope:cosmos.crypto.multisig.LegacyAminoPubKey) private static final cosmos.crypto.multisig.Keys.LegacyAminoPubKey DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.crypto.multisig.Keys.LegacyAminoPubKey(); } public static cosmos.crypto.multisig.Keys.LegacyAminoPubKey getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LegacyAminoPubKey parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LegacyAminoPubKey(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.crypto.multisig.Keys.LegacyAminoPubKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_crypto_multisig_LegacyAminoPubKey_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_crypto_multisig_LegacyAminoPubKey_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n!cosmos/crypto/multisig/keys.proto\022\026cos" + "mos.crypto.multisig\032\024gogoproto/gogo.prot" + "o\032\031google/protobuf/any.proto\"\214\001\n\021LegacyA" + "minoPubKey\022\'\n\tthreshold\030\001 \001(\rB\024\362\336\037\020yaml:" + "\"threshold\"\022H\n\013public_keys\030\002 \003(\0132\024.googl" + "e.protobuf.AnyB\035\342\336\037\007PubKeys\362\336\037\016yaml:\"pub" + "keys\":\004\210\240\037\000B3Z1github.com/cosmos/cosmos-" + "sdk/crypto/keys/multisigb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.GoGoProtos.getDescriptor(), com.google.protobuf.AnyProto.getDescriptor(), }, assigner); internal_static_cosmos_crypto_multisig_LegacyAminoPubKey_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_cosmos_crypto_multisig_LegacyAminoPubKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_crypto_multisig_LegacyAminoPubKey_descriptor, new java.lang.String[] { "Threshold", "PublicKeys", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.protobuf.GoGoProtos.customname); registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); registry.add(com.google.protobuf.GoGoProtos.moretags); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.protobuf.GoGoProtos.getDescriptor(); com.google.protobuf.AnyProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy