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

ibc.core.connection.v1.Genesis Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: ibc/core/connection/v1/genesis.proto

package ibc.core.connection.v1;

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

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface GenesisStateOrBuilder extends
      // @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.GenesisState)
      com.google.protobuf.MessageOrBuilder {

    /**
     * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false];
     */
    java.util.List 
        getConnectionsList();
    /**
     * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false];
     */
    ibc.core.connection.v1.Connection.IdentifiedConnection getConnections(int index);
    /**
     * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false];
     */
    int getConnectionsCount();
    /**
     * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false];
     */
    java.util.List 
        getConnectionsOrBuilderList();
    /**
     * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false];
     */
    ibc.core.connection.v1.Connection.IdentifiedConnectionOrBuilder getConnectionsOrBuilder(
        int index);

    /**
     * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""];
     */
    java.util.List 
        getClientConnectionPathsList();
    /**
     * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""];
     */
    ibc.core.connection.v1.Connection.ConnectionPaths getClientConnectionPaths(int index);
    /**
     * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""];
     */
    int getClientConnectionPathsCount();
    /**
     * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""];
     */
    java.util.List 
        getClientConnectionPathsOrBuilderList();
    /**
     * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""];
     */
    ibc.core.connection.v1.Connection.ConnectionPathsOrBuilder getClientConnectionPathsOrBuilder(
        int index);

    /**
     * 
     * the sequence for the next generated connection identifier
     * 
* * uint64 next_connection_sequence = 3 [(.gogoproto.moretags) = "yaml:\"next_connection_sequence\""]; */ long getNextConnectionSequence(); } /** *
   * GenesisState defines the ibc connection submodule's genesis state.
   * 
* * Protobuf type {@code ibc.core.connection.v1.GenesisState} */ public static final class GenesisState extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ibc.core.connection.v1.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() { connections_ = java.util.Collections.emptyList(); clientConnectionPaths_ = java.util.Collections.emptyList(); nextConnectionSequence_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GenesisState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { connections_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } connections_.add( input.readMessage(ibc.core.connection.v1.Connection.IdentifiedConnection.parser(), extensionRegistry)); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { clientConnectionPaths_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } clientConnectionPaths_.add( input.readMessage(ibc.core.connection.v1.Connection.ConnectionPaths.parser(), extensionRegistry)); break; } case 24: { nextConnectionSequence_ = input.readUInt64(); 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_ & 0x00000001) == 0x00000001)) { connections_ = java.util.Collections.unmodifiableList(connections_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { clientConnectionPaths_ = java.util.Collections.unmodifiableList(clientConnectionPaths_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ibc.core.connection.v1.Genesis.internal_static_ibc_core_connection_v1_GenesisState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ibc.core.connection.v1.Genesis.internal_static_ibc_core_connection_v1_GenesisState_fieldAccessorTable .ensureFieldAccessorsInitialized( ibc.core.connection.v1.Genesis.GenesisState.class, ibc.core.connection.v1.Genesis.GenesisState.Builder.class); } private int bitField0_; public static final int CONNECTIONS_FIELD_NUMBER = 1; private java.util.List connections_; /** * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getConnectionsList() { return connections_; } /** * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getConnectionsOrBuilderList() { return connections_; } /** * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; */ public int getConnectionsCount() { return connections_.size(); } /** * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; */ public ibc.core.connection.v1.Connection.IdentifiedConnection getConnections(int index) { return connections_.get(index); } /** * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; */ public ibc.core.connection.v1.Connection.IdentifiedConnectionOrBuilder getConnectionsOrBuilder( int index) { return connections_.get(index); } public static final int CLIENT_CONNECTION_PATHS_FIELD_NUMBER = 2; private java.util.List clientConnectionPaths_; /** * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; */ public java.util.List getClientConnectionPathsList() { return clientConnectionPaths_; } /** * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; */ public java.util.List getClientConnectionPathsOrBuilderList() { return clientConnectionPaths_; } /** * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; */ public int getClientConnectionPathsCount() { return clientConnectionPaths_.size(); } /** * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; */ public ibc.core.connection.v1.Connection.ConnectionPaths getClientConnectionPaths(int index) { return clientConnectionPaths_.get(index); } /** * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; */ public ibc.core.connection.v1.Connection.ConnectionPathsOrBuilder getClientConnectionPathsOrBuilder( int index) { return clientConnectionPaths_.get(index); } public static final int NEXT_CONNECTION_SEQUENCE_FIELD_NUMBER = 3; private long nextConnectionSequence_; /** *
     * the sequence for the next generated connection identifier
     * 
* * uint64 next_connection_sequence = 3 [(.gogoproto.moretags) = "yaml:\"next_connection_sequence\""]; */ public long getNextConnectionSequence() { return nextConnectionSequence_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < connections_.size(); i++) { output.writeMessage(1, connections_.get(i)); } for (int i = 0; i < clientConnectionPaths_.size(); i++) { output.writeMessage(2, clientConnectionPaths_.get(i)); } if (nextConnectionSequence_ != 0L) { output.writeUInt64(3, nextConnectionSequence_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < connections_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, connections_.get(i)); } for (int i = 0; i < clientConnectionPaths_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, clientConnectionPaths_.get(i)); } if (nextConnectionSequence_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, nextConnectionSequence_); } 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 ibc.core.connection.v1.Genesis.GenesisState)) { return super.equals(obj); } ibc.core.connection.v1.Genesis.GenesisState other = (ibc.core.connection.v1.Genesis.GenesisState) obj; boolean result = true; result = result && getConnectionsList() .equals(other.getConnectionsList()); result = result && getClientConnectionPathsList() .equals(other.getClientConnectionPathsList()); result = result && (getNextConnectionSequence() == other.getNextConnectionSequence()); 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(); if (getConnectionsCount() > 0) { hash = (37 * hash) + CONNECTIONS_FIELD_NUMBER; hash = (53 * hash) + getConnectionsList().hashCode(); } if (getClientConnectionPathsCount() > 0) { hash = (37 * hash) + CLIENT_CONNECTION_PATHS_FIELD_NUMBER; hash = (53 * hash) + getClientConnectionPathsList().hashCode(); } hash = (37 * hash) + NEXT_CONNECTION_SEQUENCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNextConnectionSequence()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ibc.core.connection.v1.Genesis.GenesisState parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.core.connection.v1.Genesis.GenesisState parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ibc.core.connection.v1.Genesis.GenesisState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.core.connection.v1.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 ibc.core.connection.v1.Genesis.GenesisState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.core.connection.v1.Genesis.GenesisState parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ibc.core.connection.v1.Genesis.GenesisState parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ibc.core.connection.v1.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 ibc.core.connection.v1.Genesis.GenesisState parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ibc.core.connection.v1.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 ibc.core.connection.v1.Genesis.GenesisState parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ibc.core.connection.v1.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(ibc.core.connection.v1.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 ibc connection submodule's genesis state.
     * 
* * Protobuf type {@code ibc.core.connection.v1.GenesisState} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.GenesisState) ibc.core.connection.v1.Genesis.GenesisStateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ibc.core.connection.v1.Genesis.internal_static_ibc_core_connection_v1_GenesisState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ibc.core.connection.v1.Genesis.internal_static_ibc_core_connection_v1_GenesisState_fieldAccessorTable .ensureFieldAccessorsInitialized( ibc.core.connection.v1.Genesis.GenesisState.class, ibc.core.connection.v1.Genesis.GenesisState.Builder.class); } // Construct using ibc.core.connection.v1.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) { getConnectionsFieldBuilder(); getClientConnectionPathsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (connectionsBuilder_ == null) { connections_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { connectionsBuilder_.clear(); } if (clientConnectionPathsBuilder_ == null) { clientConnectionPaths_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { clientConnectionPathsBuilder_.clear(); } nextConnectionSequence_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ibc.core.connection.v1.Genesis.internal_static_ibc_core_connection_v1_GenesisState_descriptor; } @java.lang.Override public ibc.core.connection.v1.Genesis.GenesisState getDefaultInstanceForType() { return ibc.core.connection.v1.Genesis.GenesisState.getDefaultInstance(); } @java.lang.Override public ibc.core.connection.v1.Genesis.GenesisState build() { ibc.core.connection.v1.Genesis.GenesisState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ibc.core.connection.v1.Genesis.GenesisState buildPartial() { ibc.core.connection.v1.Genesis.GenesisState result = new ibc.core.connection.v1.Genesis.GenesisState(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (connectionsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { connections_ = java.util.Collections.unmodifiableList(connections_); bitField0_ = (bitField0_ & ~0x00000001); } result.connections_ = connections_; } else { result.connections_ = connectionsBuilder_.build(); } if (clientConnectionPathsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { clientConnectionPaths_ = java.util.Collections.unmodifiableList(clientConnectionPaths_); bitField0_ = (bitField0_ & ~0x00000002); } result.clientConnectionPaths_ = clientConnectionPaths_; } else { result.clientConnectionPaths_ = clientConnectionPathsBuilder_.build(); } result.nextConnectionSequence_ = nextConnectionSequence_; 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 ibc.core.connection.v1.Genesis.GenesisState) { return mergeFrom((ibc.core.connection.v1.Genesis.GenesisState)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ibc.core.connection.v1.Genesis.GenesisState other) { if (other == ibc.core.connection.v1.Genesis.GenesisState.getDefaultInstance()) return this; if (connectionsBuilder_ == null) { if (!other.connections_.isEmpty()) { if (connections_.isEmpty()) { connections_ = other.connections_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureConnectionsIsMutable(); connections_.addAll(other.connections_); } onChanged(); } } else { if (!other.connections_.isEmpty()) { if (connectionsBuilder_.isEmpty()) { connectionsBuilder_.dispose(); connectionsBuilder_ = null; connections_ = other.connections_; bitField0_ = (bitField0_ & ~0x00000001); connectionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getConnectionsFieldBuilder() : null; } else { connectionsBuilder_.addAllMessages(other.connections_); } } } if (clientConnectionPathsBuilder_ == null) { if (!other.clientConnectionPaths_.isEmpty()) { if (clientConnectionPaths_.isEmpty()) { clientConnectionPaths_ = other.clientConnectionPaths_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureClientConnectionPathsIsMutable(); clientConnectionPaths_.addAll(other.clientConnectionPaths_); } onChanged(); } } else { if (!other.clientConnectionPaths_.isEmpty()) { if (clientConnectionPathsBuilder_.isEmpty()) { clientConnectionPathsBuilder_.dispose(); clientConnectionPathsBuilder_ = null; clientConnectionPaths_ = other.clientConnectionPaths_; bitField0_ = (bitField0_ & ~0x00000002); clientConnectionPathsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getClientConnectionPathsFieldBuilder() : null; } else { clientConnectionPathsBuilder_.addAllMessages(other.clientConnectionPaths_); } } } if (other.getNextConnectionSequence() != 0L) { setNextConnectionSequence(other.getNextConnectionSequence()); } 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 { ibc.core.connection.v1.Genesis.GenesisState parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ibc.core.connection.v1.Genesis.GenesisState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List connections_ = java.util.Collections.emptyList(); private void ensureConnectionsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { connections_ = new java.util.ArrayList(connections_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< ibc.core.connection.v1.Connection.IdentifiedConnection, ibc.core.connection.v1.Connection.IdentifiedConnection.Builder, ibc.core.connection.v1.Connection.IdentifiedConnectionOrBuilder> connectionsBuilder_; /** * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getConnectionsList() { if (connectionsBuilder_ == null) { return java.util.Collections.unmodifiableList(connections_); } else { return connectionsBuilder_.getMessageList(); } } /** * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; */ public int getConnectionsCount() { if (connectionsBuilder_ == null) { return connections_.size(); } else { return connectionsBuilder_.getCount(); } } /** * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; */ public ibc.core.connection.v1.Connection.IdentifiedConnection getConnections(int index) { if (connectionsBuilder_ == null) { return connections_.get(index); } else { return connectionsBuilder_.getMessage(index); } } /** * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; */ public Builder setConnections( int index, ibc.core.connection.v1.Connection.IdentifiedConnection value) { if (connectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConnectionsIsMutable(); connections_.set(index, value); onChanged(); } else { connectionsBuilder_.setMessage(index, value); } return this; } /** * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; */ public Builder setConnections( int index, ibc.core.connection.v1.Connection.IdentifiedConnection.Builder builderForValue) { if (connectionsBuilder_ == null) { ensureConnectionsIsMutable(); connections_.set(index, builderForValue.build()); onChanged(); } else { connectionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; */ public Builder addConnections(ibc.core.connection.v1.Connection.IdentifiedConnection value) { if (connectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConnectionsIsMutable(); connections_.add(value); onChanged(); } else { connectionsBuilder_.addMessage(value); } return this; } /** * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; */ public Builder addConnections( int index, ibc.core.connection.v1.Connection.IdentifiedConnection value) { if (connectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConnectionsIsMutable(); connections_.add(index, value); onChanged(); } else { connectionsBuilder_.addMessage(index, value); } return this; } /** * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; */ public Builder addConnections( ibc.core.connection.v1.Connection.IdentifiedConnection.Builder builderForValue) { if (connectionsBuilder_ == null) { ensureConnectionsIsMutable(); connections_.add(builderForValue.build()); onChanged(); } else { connectionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; */ public Builder addConnections( int index, ibc.core.connection.v1.Connection.IdentifiedConnection.Builder builderForValue) { if (connectionsBuilder_ == null) { ensureConnectionsIsMutable(); connections_.add(index, builderForValue.build()); onChanged(); } else { connectionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; */ public Builder addAllConnections( java.lang.Iterable values) { if (connectionsBuilder_ == null) { ensureConnectionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, connections_); onChanged(); } else { connectionsBuilder_.addAllMessages(values); } return this; } /** * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; */ public Builder clearConnections() { if (connectionsBuilder_ == null) { connections_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { connectionsBuilder_.clear(); } return this; } /** * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; */ public Builder removeConnections(int index) { if (connectionsBuilder_ == null) { ensureConnectionsIsMutable(); connections_.remove(index); onChanged(); } else { connectionsBuilder_.remove(index); } return this; } /** * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; */ public ibc.core.connection.v1.Connection.IdentifiedConnection.Builder getConnectionsBuilder( int index) { return getConnectionsFieldBuilder().getBuilder(index); } /** * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; */ public ibc.core.connection.v1.Connection.IdentifiedConnectionOrBuilder getConnectionsOrBuilder( int index) { if (connectionsBuilder_ == null) { return connections_.get(index); } else { return connectionsBuilder_.getMessageOrBuilder(index); } } /** * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getConnectionsOrBuilderList() { if (connectionsBuilder_ != null) { return connectionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(connections_); } } /** * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; */ public ibc.core.connection.v1.Connection.IdentifiedConnection.Builder addConnectionsBuilder() { return getConnectionsFieldBuilder().addBuilder( ibc.core.connection.v1.Connection.IdentifiedConnection.getDefaultInstance()); } /** * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; */ public ibc.core.connection.v1.Connection.IdentifiedConnection.Builder addConnectionsBuilder( int index) { return getConnectionsFieldBuilder().addBuilder( index, ibc.core.connection.v1.Connection.IdentifiedConnection.getDefaultInstance()); } /** * repeated .ibc.core.connection.v1.IdentifiedConnection connections = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getConnectionsBuilderList() { return getConnectionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ibc.core.connection.v1.Connection.IdentifiedConnection, ibc.core.connection.v1.Connection.IdentifiedConnection.Builder, ibc.core.connection.v1.Connection.IdentifiedConnectionOrBuilder> getConnectionsFieldBuilder() { if (connectionsBuilder_ == null) { connectionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ibc.core.connection.v1.Connection.IdentifiedConnection, ibc.core.connection.v1.Connection.IdentifiedConnection.Builder, ibc.core.connection.v1.Connection.IdentifiedConnectionOrBuilder>( connections_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); connections_ = null; } return connectionsBuilder_; } private java.util.List clientConnectionPaths_ = java.util.Collections.emptyList(); private void ensureClientConnectionPathsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { clientConnectionPaths_ = new java.util.ArrayList(clientConnectionPaths_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< ibc.core.connection.v1.Connection.ConnectionPaths, ibc.core.connection.v1.Connection.ConnectionPaths.Builder, ibc.core.connection.v1.Connection.ConnectionPathsOrBuilder> clientConnectionPathsBuilder_; /** * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; */ public java.util.List getClientConnectionPathsList() { if (clientConnectionPathsBuilder_ == null) { return java.util.Collections.unmodifiableList(clientConnectionPaths_); } else { return clientConnectionPathsBuilder_.getMessageList(); } } /** * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; */ public int getClientConnectionPathsCount() { if (clientConnectionPathsBuilder_ == null) { return clientConnectionPaths_.size(); } else { return clientConnectionPathsBuilder_.getCount(); } } /** * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; */ public ibc.core.connection.v1.Connection.ConnectionPaths getClientConnectionPaths(int index) { if (clientConnectionPathsBuilder_ == null) { return clientConnectionPaths_.get(index); } else { return clientConnectionPathsBuilder_.getMessage(index); } } /** * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; */ public Builder setClientConnectionPaths( int index, ibc.core.connection.v1.Connection.ConnectionPaths value) { if (clientConnectionPathsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureClientConnectionPathsIsMutable(); clientConnectionPaths_.set(index, value); onChanged(); } else { clientConnectionPathsBuilder_.setMessage(index, value); } return this; } /** * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; */ public Builder setClientConnectionPaths( int index, ibc.core.connection.v1.Connection.ConnectionPaths.Builder builderForValue) { if (clientConnectionPathsBuilder_ == null) { ensureClientConnectionPathsIsMutable(); clientConnectionPaths_.set(index, builderForValue.build()); onChanged(); } else { clientConnectionPathsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; */ public Builder addClientConnectionPaths(ibc.core.connection.v1.Connection.ConnectionPaths value) { if (clientConnectionPathsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureClientConnectionPathsIsMutable(); clientConnectionPaths_.add(value); onChanged(); } else { clientConnectionPathsBuilder_.addMessage(value); } return this; } /** * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; */ public Builder addClientConnectionPaths( int index, ibc.core.connection.v1.Connection.ConnectionPaths value) { if (clientConnectionPathsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureClientConnectionPathsIsMutable(); clientConnectionPaths_.add(index, value); onChanged(); } else { clientConnectionPathsBuilder_.addMessage(index, value); } return this; } /** * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; */ public Builder addClientConnectionPaths( ibc.core.connection.v1.Connection.ConnectionPaths.Builder builderForValue) { if (clientConnectionPathsBuilder_ == null) { ensureClientConnectionPathsIsMutable(); clientConnectionPaths_.add(builderForValue.build()); onChanged(); } else { clientConnectionPathsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; */ public Builder addClientConnectionPaths( int index, ibc.core.connection.v1.Connection.ConnectionPaths.Builder builderForValue) { if (clientConnectionPathsBuilder_ == null) { ensureClientConnectionPathsIsMutable(); clientConnectionPaths_.add(index, builderForValue.build()); onChanged(); } else { clientConnectionPathsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; */ public Builder addAllClientConnectionPaths( java.lang.Iterable values) { if (clientConnectionPathsBuilder_ == null) { ensureClientConnectionPathsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, clientConnectionPaths_); onChanged(); } else { clientConnectionPathsBuilder_.addAllMessages(values); } return this; } /** * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; */ public Builder clearClientConnectionPaths() { if (clientConnectionPathsBuilder_ == null) { clientConnectionPaths_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { clientConnectionPathsBuilder_.clear(); } return this; } /** * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; */ public Builder removeClientConnectionPaths(int index) { if (clientConnectionPathsBuilder_ == null) { ensureClientConnectionPathsIsMutable(); clientConnectionPaths_.remove(index); onChanged(); } else { clientConnectionPathsBuilder_.remove(index); } return this; } /** * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; */ public ibc.core.connection.v1.Connection.ConnectionPaths.Builder getClientConnectionPathsBuilder( int index) { return getClientConnectionPathsFieldBuilder().getBuilder(index); } /** * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; */ public ibc.core.connection.v1.Connection.ConnectionPathsOrBuilder getClientConnectionPathsOrBuilder( int index) { if (clientConnectionPathsBuilder_ == null) { return clientConnectionPaths_.get(index); } else { return clientConnectionPathsBuilder_.getMessageOrBuilder(index); } } /** * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; */ public java.util.List getClientConnectionPathsOrBuilderList() { if (clientConnectionPathsBuilder_ != null) { return clientConnectionPathsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(clientConnectionPaths_); } } /** * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; */ public ibc.core.connection.v1.Connection.ConnectionPaths.Builder addClientConnectionPathsBuilder() { return getClientConnectionPathsFieldBuilder().addBuilder( ibc.core.connection.v1.Connection.ConnectionPaths.getDefaultInstance()); } /** * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; */ public ibc.core.connection.v1.Connection.ConnectionPaths.Builder addClientConnectionPathsBuilder( int index) { return getClientConnectionPathsFieldBuilder().addBuilder( index, ibc.core.connection.v1.Connection.ConnectionPaths.getDefaultInstance()); } /** * repeated .ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"client_connection_paths\""]; */ public java.util.List getClientConnectionPathsBuilderList() { return getClientConnectionPathsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< ibc.core.connection.v1.Connection.ConnectionPaths, ibc.core.connection.v1.Connection.ConnectionPaths.Builder, ibc.core.connection.v1.Connection.ConnectionPathsOrBuilder> getClientConnectionPathsFieldBuilder() { if (clientConnectionPathsBuilder_ == null) { clientConnectionPathsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< ibc.core.connection.v1.Connection.ConnectionPaths, ibc.core.connection.v1.Connection.ConnectionPaths.Builder, ibc.core.connection.v1.Connection.ConnectionPathsOrBuilder>( clientConnectionPaths_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); clientConnectionPaths_ = null; } return clientConnectionPathsBuilder_; } private long nextConnectionSequence_ ; /** *
       * the sequence for the next generated connection identifier
       * 
* * uint64 next_connection_sequence = 3 [(.gogoproto.moretags) = "yaml:\"next_connection_sequence\""]; */ public long getNextConnectionSequence() { return nextConnectionSequence_; } /** *
       * the sequence for the next generated connection identifier
       * 
* * uint64 next_connection_sequence = 3 [(.gogoproto.moretags) = "yaml:\"next_connection_sequence\""]; */ public Builder setNextConnectionSequence(long value) { nextConnectionSequence_ = value; onChanged(); return this; } /** *
       * the sequence for the next generated connection identifier
       * 
* * uint64 next_connection_sequence = 3 [(.gogoproto.moretags) = "yaml:\"next_connection_sequence\""]; */ public Builder clearNextConnectionSequence() { nextConnectionSequence_ = 0L; 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:ibc.core.connection.v1.GenesisState) } // @@protoc_insertion_point(class_scope:ibc.core.connection.v1.GenesisState) private static final ibc.core.connection.v1.Genesis.GenesisState DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ibc.core.connection.v1.Genesis.GenesisState(); } public static ibc.core.connection.v1.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 ibc.core.connection.v1.Genesis.GenesisState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_ibc_core_connection_v1_GenesisState_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ibc_core_connection_v1_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$ibc/core/connection/v1/genesis.proto\022\026" + "ibc.core.connection.v1\032\024gogoproto/gogo.p" + "roto\032\'ibc/core/connection/v1/connection." + "proto\"\220\002\n\014GenesisState\022G\n\013connections\030\001 " + "\003(\0132,.ibc.core.connection.v1.IdentifiedC" + "onnectionB\004\310\336\037\000\022p\n\027client_connection_pat" + "hs\030\002 \003(\0132\'.ibc.core.connection.v1.Connec" + "tionPathsB&\310\336\037\000\362\336\037\036yaml:\"client_connecti" + "on_paths\"\022E\n\030next_connection_sequence\030\003 " + "\001(\004B#\362\336\037\037yaml:\"next_connection_sequence\"" + "B=Z;github.com/cosmos/cosmos-sdk/x/ibc/c" + "ore/03-connection/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(), ibc.core.connection.v1.Connection.getDescriptor(), }, assigner); internal_static_ibc_core_connection_v1_GenesisState_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_ibc_core_connection_v1_GenesisState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ibc_core_connection_v1_GenesisState_descriptor, new java.lang.String[] { "Connections", "ClientConnectionPaths", "NextConnectionSequence", }); 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(); ibc.core.connection.v1.Connection.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy