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

cosmos.capability.v1beta1.Genesis Maven / Gradle / Ivy

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

package cosmos.capability.v1beta1;

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

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

    /**
     * 
     * index is the index of the capability owner.
     * 
* * uint64 index = 1; */ long getIndex(); /** *
     * index_owners are the owners at the given index.
     * 
* * .cosmos.capability.v1beta1.CapabilityOwners index_owners = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"index_owners\""]; */ boolean hasIndexOwners(); /** *
     * index_owners are the owners at the given index.
     * 
* * .cosmos.capability.v1beta1.CapabilityOwners index_owners = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"index_owners\""]; */ cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners getIndexOwners(); /** *
     * index_owners are the owners at the given index.
     * 
* * .cosmos.capability.v1beta1.CapabilityOwners index_owners = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"index_owners\""]; */ cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwnersOrBuilder getIndexOwnersOrBuilder(); } /** *
   * GenesisOwners defines the capability owners with their corresponding index.
   * 
* * Protobuf type {@code cosmos.capability.v1beta1.GenesisOwners} */ public static final class GenesisOwners extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.capability.v1beta1.GenesisOwners) GenesisOwnersOrBuilder { private static final long serialVersionUID = 0L; // Use GenesisOwners.newBuilder() to construct. private GenesisOwners(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GenesisOwners() { index_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GenesisOwners( 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: { index_ = input.readUInt64(); break; } case 18: { cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners.Builder subBuilder = null; if (indexOwners_ != null) { subBuilder = indexOwners_.toBuilder(); } indexOwners_ = input.readMessage(cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(indexOwners_); indexOwners_ = subBuilder.buildPartial(); } 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.capability.v1beta1.Genesis.internal_static_cosmos_capability_v1beta1_GenesisOwners_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.capability.v1beta1.Genesis.internal_static_cosmos_capability_v1beta1_GenesisOwners_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.capability.v1beta1.Genesis.GenesisOwners.class, cosmos.capability.v1beta1.Genesis.GenesisOwners.Builder.class); } public static final int INDEX_FIELD_NUMBER = 1; private long index_; /** *
     * index is the index of the capability owner.
     * 
* * uint64 index = 1; */ public long getIndex() { return index_; } public static final int INDEX_OWNERS_FIELD_NUMBER = 2; private cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners indexOwners_; /** *
     * index_owners are the owners at the given index.
     * 
* * .cosmos.capability.v1beta1.CapabilityOwners index_owners = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"index_owners\""]; */ public boolean hasIndexOwners() { return indexOwners_ != null; } /** *
     * index_owners are the owners at the given index.
     * 
* * .cosmos.capability.v1beta1.CapabilityOwners index_owners = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"index_owners\""]; */ public cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners getIndexOwners() { return indexOwners_ == null ? cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners.getDefaultInstance() : indexOwners_; } /** *
     * index_owners are the owners at the given index.
     * 
* * .cosmos.capability.v1beta1.CapabilityOwners index_owners = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"index_owners\""]; */ public cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwnersOrBuilder getIndexOwnersOrBuilder() { return getIndexOwners(); } 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 (index_ != 0L) { output.writeUInt64(1, index_); } if (indexOwners_ != null) { output.writeMessage(2, getIndexOwners()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (index_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, index_); } if (indexOwners_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getIndexOwners()); } 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.capability.v1beta1.Genesis.GenesisOwners)) { return super.equals(obj); } cosmos.capability.v1beta1.Genesis.GenesisOwners other = (cosmos.capability.v1beta1.Genesis.GenesisOwners) obj; boolean result = true; result = result && (getIndex() == other.getIndex()); result = result && (hasIndexOwners() == other.hasIndexOwners()); if (hasIndexOwners()) { result = result && getIndexOwners() .equals(other.getIndexOwners()); } 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) + INDEX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getIndex()); if (hasIndexOwners()) { hash = (37 * hash) + INDEX_OWNERS_FIELD_NUMBER; hash = (53 * hash) + getIndexOwners().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.capability.v1beta1.Genesis.GenesisOwners parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.capability.v1beta1.Genesis.GenesisOwners parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.capability.v1beta1.Genesis.GenesisOwners parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.capability.v1beta1.Genesis.GenesisOwners parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.capability.v1beta1.Genesis.GenesisOwners parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.capability.v1beta1.Genesis.GenesisOwners parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.capability.v1beta1.Genesis.GenesisOwners parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.capability.v1beta1.Genesis.GenesisOwners 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.capability.v1beta1.Genesis.GenesisOwners parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.capability.v1beta1.Genesis.GenesisOwners 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.capability.v1beta1.Genesis.GenesisOwners parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.capability.v1beta1.Genesis.GenesisOwners 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.capability.v1beta1.Genesis.GenesisOwners 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; } /** *
     * GenesisOwners defines the capability owners with their corresponding index.
     * 
* * Protobuf type {@code cosmos.capability.v1beta1.GenesisOwners} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.capability.v1beta1.GenesisOwners) cosmos.capability.v1beta1.Genesis.GenesisOwnersOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.capability.v1beta1.Genesis.internal_static_cosmos_capability_v1beta1_GenesisOwners_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.capability.v1beta1.Genesis.internal_static_cosmos_capability_v1beta1_GenesisOwners_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.capability.v1beta1.Genesis.GenesisOwners.class, cosmos.capability.v1beta1.Genesis.GenesisOwners.Builder.class); } // Construct using cosmos.capability.v1beta1.Genesis.GenesisOwners.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(); index_ = 0L; if (indexOwnersBuilder_ == null) { indexOwners_ = null; } else { indexOwners_ = null; indexOwnersBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.capability.v1beta1.Genesis.internal_static_cosmos_capability_v1beta1_GenesisOwners_descriptor; } @java.lang.Override public cosmos.capability.v1beta1.Genesis.GenesisOwners getDefaultInstanceForType() { return cosmos.capability.v1beta1.Genesis.GenesisOwners.getDefaultInstance(); } @java.lang.Override public cosmos.capability.v1beta1.Genesis.GenesisOwners build() { cosmos.capability.v1beta1.Genesis.GenesisOwners result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.capability.v1beta1.Genesis.GenesisOwners buildPartial() { cosmos.capability.v1beta1.Genesis.GenesisOwners result = new cosmos.capability.v1beta1.Genesis.GenesisOwners(this); result.index_ = index_; if (indexOwnersBuilder_ == null) { result.indexOwners_ = indexOwners_; } else { result.indexOwners_ = indexOwnersBuilder_.build(); } 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.capability.v1beta1.Genesis.GenesisOwners) { return mergeFrom((cosmos.capability.v1beta1.Genesis.GenesisOwners)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.capability.v1beta1.Genesis.GenesisOwners other) { if (other == cosmos.capability.v1beta1.Genesis.GenesisOwners.getDefaultInstance()) return this; if (other.getIndex() != 0L) { setIndex(other.getIndex()); } if (other.hasIndexOwners()) { mergeIndexOwners(other.getIndexOwners()); } 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.capability.v1beta1.Genesis.GenesisOwners parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.capability.v1beta1.Genesis.GenesisOwners) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long index_ ; /** *
       * index is the index of the capability owner.
       * 
* * uint64 index = 1; */ public long getIndex() { return index_; } /** *
       * index is the index of the capability owner.
       * 
* * uint64 index = 1; */ public Builder setIndex(long value) { index_ = value; onChanged(); return this; } /** *
       * index is the index of the capability owner.
       * 
* * uint64 index = 1; */ public Builder clearIndex() { index_ = 0L; onChanged(); return this; } private cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners indexOwners_ = null; private com.google.protobuf.SingleFieldBuilderV3< cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners, cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners.Builder, cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwnersOrBuilder> indexOwnersBuilder_; /** *
       * index_owners are the owners at the given index.
       * 
* * .cosmos.capability.v1beta1.CapabilityOwners index_owners = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"index_owners\""]; */ public boolean hasIndexOwners() { return indexOwnersBuilder_ != null || indexOwners_ != null; } /** *
       * index_owners are the owners at the given index.
       * 
* * .cosmos.capability.v1beta1.CapabilityOwners index_owners = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"index_owners\""]; */ public cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners getIndexOwners() { if (indexOwnersBuilder_ == null) { return indexOwners_ == null ? cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners.getDefaultInstance() : indexOwners_; } else { return indexOwnersBuilder_.getMessage(); } } /** *
       * index_owners are the owners at the given index.
       * 
* * .cosmos.capability.v1beta1.CapabilityOwners index_owners = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"index_owners\""]; */ public Builder setIndexOwners(cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners value) { if (indexOwnersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } indexOwners_ = value; onChanged(); } else { indexOwnersBuilder_.setMessage(value); } return this; } /** *
       * index_owners are the owners at the given index.
       * 
* * .cosmos.capability.v1beta1.CapabilityOwners index_owners = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"index_owners\""]; */ public Builder setIndexOwners( cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners.Builder builderForValue) { if (indexOwnersBuilder_ == null) { indexOwners_ = builderForValue.build(); onChanged(); } else { indexOwnersBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * index_owners are the owners at the given index.
       * 
* * .cosmos.capability.v1beta1.CapabilityOwners index_owners = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"index_owners\""]; */ public Builder mergeIndexOwners(cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners value) { if (indexOwnersBuilder_ == null) { if (indexOwners_ != null) { indexOwners_ = cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners.newBuilder(indexOwners_).mergeFrom(value).buildPartial(); } else { indexOwners_ = value; } onChanged(); } else { indexOwnersBuilder_.mergeFrom(value); } return this; } /** *
       * index_owners are the owners at the given index.
       * 
* * .cosmos.capability.v1beta1.CapabilityOwners index_owners = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"index_owners\""]; */ public Builder clearIndexOwners() { if (indexOwnersBuilder_ == null) { indexOwners_ = null; onChanged(); } else { indexOwners_ = null; indexOwnersBuilder_ = null; } return this; } /** *
       * index_owners are the owners at the given index.
       * 
* * .cosmos.capability.v1beta1.CapabilityOwners index_owners = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"index_owners\""]; */ public cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners.Builder getIndexOwnersBuilder() { onChanged(); return getIndexOwnersFieldBuilder().getBuilder(); } /** *
       * index_owners are the owners at the given index.
       * 
* * .cosmos.capability.v1beta1.CapabilityOwners index_owners = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"index_owners\""]; */ public cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwnersOrBuilder getIndexOwnersOrBuilder() { if (indexOwnersBuilder_ != null) { return indexOwnersBuilder_.getMessageOrBuilder(); } else { return indexOwners_ == null ? cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners.getDefaultInstance() : indexOwners_; } } /** *
       * index_owners are the owners at the given index.
       * 
* * .cosmos.capability.v1beta1.CapabilityOwners index_owners = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"index_owners\""]; */ private com.google.protobuf.SingleFieldBuilderV3< cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners, cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners.Builder, cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwnersOrBuilder> getIndexOwnersFieldBuilder() { if (indexOwnersBuilder_ == null) { indexOwnersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners, cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwners.Builder, cosmos.capability.v1beta1.CapabilityOuterClass.CapabilityOwnersOrBuilder>( getIndexOwners(), getParentForChildren(), isClean()); indexOwners_ = null; } return indexOwnersBuilder_; } @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.capability.v1beta1.GenesisOwners) } // @@protoc_insertion_point(class_scope:cosmos.capability.v1beta1.GenesisOwners) private static final cosmos.capability.v1beta1.Genesis.GenesisOwners DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.capability.v1beta1.Genesis.GenesisOwners(); } public static cosmos.capability.v1beta1.Genesis.GenesisOwners getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GenesisOwners parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GenesisOwners(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.capability.v1beta1.Genesis.GenesisOwners getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GenesisStateOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmos.capability.v1beta1.GenesisState) com.google.protobuf.MessageOrBuilder { /** *
     * index is the capability global index.
     * 
* * uint64 index = 1; */ long getIndex(); /** *
     * owners represents a map from index to owners of the capability index
     * index key is string to allow amino marshalling.
     * 
* * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; */ java.util.List getOwnersList(); /** *
     * owners represents a map from index to owners of the capability index
     * index key is string to allow amino marshalling.
     * 
* * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; */ cosmos.capability.v1beta1.Genesis.GenesisOwners getOwners(int index); /** *
     * owners represents a map from index to owners of the capability index
     * index key is string to allow amino marshalling.
     * 
* * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; */ int getOwnersCount(); /** *
     * owners represents a map from index to owners of the capability index
     * index key is string to allow amino marshalling.
     * 
* * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; */ java.util.List getOwnersOrBuilderList(); /** *
     * owners represents a map from index to owners of the capability index
     * index key is string to allow amino marshalling.
     * 
* * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; */ cosmos.capability.v1beta1.Genesis.GenesisOwnersOrBuilder getOwnersOrBuilder( int index); } /** *
   * GenesisState defines the capability module's genesis state.
   * 
* * Protobuf type {@code cosmos.capability.v1beta1.GenesisState} */ public static final class GenesisState extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmos.capability.v1beta1.GenesisState) GenesisStateOrBuilder { private static final long serialVersionUID = 0L; // Use GenesisState.newBuilder() to construct. private GenesisState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GenesisState() { index_ = 0L; owners_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GenesisState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { index_ = input.readUInt64(); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { owners_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } owners_.add( input.readMessage(cosmos.capability.v1beta1.Genesis.GenesisOwners.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)) { owners_ = java.util.Collections.unmodifiableList(owners_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.capability.v1beta1.Genesis.internal_static_cosmos_capability_v1beta1_GenesisState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.capability.v1beta1.Genesis.internal_static_cosmos_capability_v1beta1_GenesisState_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.capability.v1beta1.Genesis.GenesisState.class, cosmos.capability.v1beta1.Genesis.GenesisState.Builder.class); } private int bitField0_; public static final int INDEX_FIELD_NUMBER = 1; private long index_; /** *
     * index is the capability global index.
     * 
* * uint64 index = 1; */ public long getIndex() { return index_; } public static final int OWNERS_FIELD_NUMBER = 2; private java.util.List owners_; /** *
     * owners represents a map from index to owners of the capability index
     * index key is string to allow amino marshalling.
     * 
* * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; */ public java.util.List getOwnersList() { return owners_; } /** *
     * owners represents a map from index to owners of the capability index
     * index key is string to allow amino marshalling.
     * 
* * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; */ public java.util.List getOwnersOrBuilderList() { return owners_; } /** *
     * owners represents a map from index to owners of the capability index
     * index key is string to allow amino marshalling.
     * 
* * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; */ public int getOwnersCount() { return owners_.size(); } /** *
     * owners represents a map from index to owners of the capability index
     * index key is string to allow amino marshalling.
     * 
* * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; */ public cosmos.capability.v1beta1.Genesis.GenesisOwners getOwners(int index) { return owners_.get(index); } /** *
     * owners represents a map from index to owners of the capability index
     * index key is string to allow amino marshalling.
     * 
* * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; */ public cosmos.capability.v1beta1.Genesis.GenesisOwnersOrBuilder getOwnersOrBuilder( int index) { return owners_.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 (index_ != 0L) { output.writeUInt64(1, index_); } for (int i = 0; i < owners_.size(); i++) { output.writeMessage(2, owners_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (index_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, index_); } for (int i = 0; i < owners_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, owners_.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.capability.v1beta1.Genesis.GenesisState)) { return super.equals(obj); } cosmos.capability.v1beta1.Genesis.GenesisState other = (cosmos.capability.v1beta1.Genesis.GenesisState) obj; boolean result = true; result = result && (getIndex() == other.getIndex()); result = result && getOwnersList() .equals(other.getOwnersList()); 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) + INDEX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getIndex()); if (getOwnersCount() > 0) { hash = (37 * hash) + OWNERS_FIELD_NUMBER; hash = (53 * hash) + getOwnersList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmos.capability.v1beta1.Genesis.GenesisState parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.capability.v1beta1.Genesis.GenesisState parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.capability.v1beta1.Genesis.GenesisState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.capability.v1beta1.Genesis.GenesisState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.capability.v1beta1.Genesis.GenesisState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmos.capability.v1beta1.Genesis.GenesisState parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmos.capability.v1beta1.Genesis.GenesisState parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.capability.v1beta1.Genesis.GenesisState parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cosmos.capability.v1beta1.Genesis.GenesisState parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmos.capability.v1beta1.Genesis.GenesisState parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cosmos.capability.v1beta1.Genesis.GenesisState parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmos.capability.v1beta1.Genesis.GenesisState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cosmos.capability.v1beta1.Genesis.GenesisState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * GenesisState defines the capability module's genesis state.
     * 
* * Protobuf type {@code cosmos.capability.v1beta1.GenesisState} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmos.capability.v1beta1.GenesisState) cosmos.capability.v1beta1.Genesis.GenesisStateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmos.capability.v1beta1.Genesis.internal_static_cosmos_capability_v1beta1_GenesisState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmos.capability.v1beta1.Genesis.internal_static_cosmos_capability_v1beta1_GenesisState_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmos.capability.v1beta1.Genesis.GenesisState.class, cosmos.capability.v1beta1.Genesis.GenesisState.Builder.class); } // Construct using cosmos.capability.v1beta1.Genesis.GenesisState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOwnersFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); index_ = 0L; if (ownersBuilder_ == null) { owners_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { ownersBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmos.capability.v1beta1.Genesis.internal_static_cosmos_capability_v1beta1_GenesisState_descriptor; } @java.lang.Override public cosmos.capability.v1beta1.Genesis.GenesisState getDefaultInstanceForType() { return cosmos.capability.v1beta1.Genesis.GenesisState.getDefaultInstance(); } @java.lang.Override public cosmos.capability.v1beta1.Genesis.GenesisState build() { cosmos.capability.v1beta1.Genesis.GenesisState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmos.capability.v1beta1.Genesis.GenesisState buildPartial() { cosmos.capability.v1beta1.Genesis.GenesisState result = new cosmos.capability.v1beta1.Genesis.GenesisState(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.index_ = index_; if (ownersBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { owners_ = java.util.Collections.unmodifiableList(owners_); bitField0_ = (bitField0_ & ~0x00000002); } result.owners_ = owners_; } else { result.owners_ = ownersBuilder_.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.capability.v1beta1.Genesis.GenesisState) { return mergeFrom((cosmos.capability.v1beta1.Genesis.GenesisState)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmos.capability.v1beta1.Genesis.GenesisState other) { if (other == cosmos.capability.v1beta1.Genesis.GenesisState.getDefaultInstance()) return this; if (other.getIndex() != 0L) { setIndex(other.getIndex()); } if (ownersBuilder_ == null) { if (!other.owners_.isEmpty()) { if (owners_.isEmpty()) { owners_ = other.owners_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureOwnersIsMutable(); owners_.addAll(other.owners_); } onChanged(); } } else { if (!other.owners_.isEmpty()) { if (ownersBuilder_.isEmpty()) { ownersBuilder_.dispose(); ownersBuilder_ = null; owners_ = other.owners_; bitField0_ = (bitField0_ & ~0x00000002); ownersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOwnersFieldBuilder() : null; } else { ownersBuilder_.addAllMessages(other.owners_); } } } 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.capability.v1beta1.Genesis.GenesisState parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmos.capability.v1beta1.Genesis.GenesisState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long index_ ; /** *
       * index is the capability global index.
       * 
* * uint64 index = 1; */ public long getIndex() { return index_; } /** *
       * index is the capability global index.
       * 
* * uint64 index = 1; */ public Builder setIndex(long value) { index_ = value; onChanged(); return this; } /** *
       * index is the capability global index.
       * 
* * uint64 index = 1; */ public Builder clearIndex() { index_ = 0L; onChanged(); return this; } private java.util.List owners_ = java.util.Collections.emptyList(); private void ensureOwnersIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { owners_ = new java.util.ArrayList(owners_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< cosmos.capability.v1beta1.Genesis.GenesisOwners, cosmos.capability.v1beta1.Genesis.GenesisOwners.Builder, cosmos.capability.v1beta1.Genesis.GenesisOwnersOrBuilder> ownersBuilder_; /** *
       * owners represents a map from index to owners of the capability index
       * index key is string to allow amino marshalling.
       * 
* * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; */ public java.util.List getOwnersList() { if (ownersBuilder_ == null) { return java.util.Collections.unmodifiableList(owners_); } else { return ownersBuilder_.getMessageList(); } } /** *
       * owners represents a map from index to owners of the capability index
       * index key is string to allow amino marshalling.
       * 
* * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; */ public int getOwnersCount() { if (ownersBuilder_ == null) { return owners_.size(); } else { return ownersBuilder_.getCount(); } } /** *
       * owners represents a map from index to owners of the capability index
       * index key is string to allow amino marshalling.
       * 
* * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; */ public cosmos.capability.v1beta1.Genesis.GenesisOwners getOwners(int index) { if (ownersBuilder_ == null) { return owners_.get(index); } else { return ownersBuilder_.getMessage(index); } } /** *
       * owners represents a map from index to owners of the capability index
       * index key is string to allow amino marshalling.
       * 
* * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; */ public Builder setOwners( int index, cosmos.capability.v1beta1.Genesis.GenesisOwners value) { if (ownersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOwnersIsMutable(); owners_.set(index, value); onChanged(); } else { ownersBuilder_.setMessage(index, value); } return this; } /** *
       * owners represents a map from index to owners of the capability index
       * index key is string to allow amino marshalling.
       * 
* * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; */ public Builder setOwners( int index, cosmos.capability.v1beta1.Genesis.GenesisOwners.Builder builderForValue) { if (ownersBuilder_ == null) { ensureOwnersIsMutable(); owners_.set(index, builderForValue.build()); onChanged(); } else { ownersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * owners represents a map from index to owners of the capability index
       * index key is string to allow amino marshalling.
       * 
* * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; */ public Builder addOwners(cosmos.capability.v1beta1.Genesis.GenesisOwners value) { if (ownersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOwnersIsMutable(); owners_.add(value); onChanged(); } else { ownersBuilder_.addMessage(value); } return this; } /** *
       * owners represents a map from index to owners of the capability index
       * index key is string to allow amino marshalling.
       * 
* * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; */ public Builder addOwners( int index, cosmos.capability.v1beta1.Genesis.GenesisOwners value) { if (ownersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOwnersIsMutable(); owners_.add(index, value); onChanged(); } else { ownersBuilder_.addMessage(index, value); } return this; } /** *
       * owners represents a map from index to owners of the capability index
       * index key is string to allow amino marshalling.
       * 
* * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; */ public Builder addOwners( cosmos.capability.v1beta1.Genesis.GenesisOwners.Builder builderForValue) { if (ownersBuilder_ == null) { ensureOwnersIsMutable(); owners_.add(builderForValue.build()); onChanged(); } else { ownersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * owners represents a map from index to owners of the capability index
       * index key is string to allow amino marshalling.
       * 
* * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; */ public Builder addOwners( int index, cosmos.capability.v1beta1.Genesis.GenesisOwners.Builder builderForValue) { if (ownersBuilder_ == null) { ensureOwnersIsMutable(); owners_.add(index, builderForValue.build()); onChanged(); } else { ownersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * owners represents a map from index to owners of the capability index
       * index key is string to allow amino marshalling.
       * 
* * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; */ public Builder addAllOwners( java.lang.Iterable values) { if (ownersBuilder_ == null) { ensureOwnersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, owners_); onChanged(); } else { ownersBuilder_.addAllMessages(values); } return this; } /** *
       * owners represents a map from index to owners of the capability index
       * index key is string to allow amino marshalling.
       * 
* * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; */ public Builder clearOwners() { if (ownersBuilder_ == null) { owners_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { ownersBuilder_.clear(); } return this; } /** *
       * owners represents a map from index to owners of the capability index
       * index key is string to allow amino marshalling.
       * 
* * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; */ public Builder removeOwners(int index) { if (ownersBuilder_ == null) { ensureOwnersIsMutable(); owners_.remove(index); onChanged(); } else { ownersBuilder_.remove(index); } return this; } /** *
       * owners represents a map from index to owners of the capability index
       * index key is string to allow amino marshalling.
       * 
* * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; */ public cosmos.capability.v1beta1.Genesis.GenesisOwners.Builder getOwnersBuilder( int index) { return getOwnersFieldBuilder().getBuilder(index); } /** *
       * owners represents a map from index to owners of the capability index
       * index key is string to allow amino marshalling.
       * 
* * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; */ public cosmos.capability.v1beta1.Genesis.GenesisOwnersOrBuilder getOwnersOrBuilder( int index) { if (ownersBuilder_ == null) { return owners_.get(index); } else { return ownersBuilder_.getMessageOrBuilder(index); } } /** *
       * owners represents a map from index to owners of the capability index
       * index key is string to allow amino marshalling.
       * 
* * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; */ public java.util.List getOwnersOrBuilderList() { if (ownersBuilder_ != null) { return ownersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(owners_); } } /** *
       * owners represents a map from index to owners of the capability index
       * index key is string to allow amino marshalling.
       * 
* * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; */ public cosmos.capability.v1beta1.Genesis.GenesisOwners.Builder addOwnersBuilder() { return getOwnersFieldBuilder().addBuilder( cosmos.capability.v1beta1.Genesis.GenesisOwners.getDefaultInstance()); } /** *
       * owners represents a map from index to owners of the capability index
       * index key is string to allow amino marshalling.
       * 
* * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; */ public cosmos.capability.v1beta1.Genesis.GenesisOwners.Builder addOwnersBuilder( int index) { return getOwnersFieldBuilder().addBuilder( index, cosmos.capability.v1beta1.Genesis.GenesisOwners.getDefaultInstance()); } /** *
       * owners represents a map from index to owners of the capability index
       * index key is string to allow amino marshalling.
       * 
* * repeated .cosmos.capability.v1beta1.GenesisOwners owners = 2 [(.gogoproto.nullable) = false]; */ public java.util.List getOwnersBuilderList() { return getOwnersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< cosmos.capability.v1beta1.Genesis.GenesisOwners, cosmos.capability.v1beta1.Genesis.GenesisOwners.Builder, cosmos.capability.v1beta1.Genesis.GenesisOwnersOrBuilder> getOwnersFieldBuilder() { if (ownersBuilder_ == null) { ownersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< cosmos.capability.v1beta1.Genesis.GenesisOwners, cosmos.capability.v1beta1.Genesis.GenesisOwners.Builder, cosmos.capability.v1beta1.Genesis.GenesisOwnersOrBuilder>( owners_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); owners_ = null; } return ownersBuilder_; } @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.capability.v1beta1.GenesisState) } // @@protoc_insertion_point(class_scope:cosmos.capability.v1beta1.GenesisState) private static final cosmos.capability.v1beta1.Genesis.GenesisState DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmos.capability.v1beta1.Genesis.GenesisState(); } public static cosmos.capability.v1beta1.Genesis.GenesisState getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GenesisState parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GenesisState(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cosmos.capability.v1beta1.Genesis.GenesisState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_capability_v1beta1_GenesisOwners_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_capability_v1beta1_GenesisOwners_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmos_capability_v1beta1_GenesisState_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmos_capability_v1beta1_GenesisState_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\'cosmos/capability/v1beta1/genesis.prot" + "o\022\031cosmos.capability.v1beta1\032\024gogoproto/" + "gogo.proto\032*cosmos/capability/v1beta1/ca" + "pability.proto\"~\n\rGenesisOwners\022\r\n\005index" + "\030\001 \001(\004\022^\n\014index_owners\030\002 \001(\0132+.cosmos.ca" + "pability.v1beta1.CapabilityOwnersB\033\310\336\037\000\362" + "\336\037\023yaml:\"index_owners\"\"]\n\014GenesisState\022\r" + "\n\005index\030\001 \001(\004\022>\n\006owners\030\002 \003(\0132(.cosmos.c" + "apability.v1beta1.GenesisOwnersB\004\310\336\037\000B1Z" + "/github.com/cosmos/cosmos-sdk/x/capabili" + "ty/typesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.GoGoProtos.getDescriptor(), cosmos.capability.v1beta1.CapabilityOuterClass.getDescriptor(), }, assigner); internal_static_cosmos_capability_v1beta1_GenesisOwners_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_cosmos_capability_v1beta1_GenesisOwners_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_capability_v1beta1_GenesisOwners_descriptor, new java.lang.String[] { "Index", "IndexOwners", }); internal_static_cosmos_capability_v1beta1_GenesisState_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_cosmos_capability_v1beta1_GenesisState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmos_capability_v1beta1_GenesisState_descriptor, new java.lang.String[] { "Index", "Owners", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.protobuf.GoGoProtos.moretags); registry.add(com.google.protobuf.GoGoProtos.nullable); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.protobuf.GoGoProtos.getDescriptor(); cosmos.capability.v1beta1.CapabilityOuterClass.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy