Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
ibc.core.connection.v1.Connection Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ibc/core/connection/v1/connection.proto
package ibc.core.connection.v1;
public final class Connection {
private Connection() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
*
* State defines if a connection is in one of the following states:
* INIT, TRYOPEN, OPEN or UNINITIALIZED.
*
*
* Protobuf enum {@code ibc.core.connection.v1.State}
*/
public enum State
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Default State
*
*
* STATE_UNINITIALIZED_UNSPECIFIED = 0 [(.gogoproto.enumvalue_customname) = "UNINITIALIZED"];
*/
STATE_UNINITIALIZED_UNSPECIFIED(0),
/**
*
* A connection end has just started the opening handshake.
*
*
* STATE_INIT = 1 [(.gogoproto.enumvalue_customname) = "INIT"];
*/
STATE_INIT(1),
/**
*
* A connection end has acknowledged the handshake step on the counterparty
* chain.
*
*
* STATE_TRYOPEN = 2 [(.gogoproto.enumvalue_customname) = "TRYOPEN"];
*/
STATE_TRYOPEN(2),
/**
*
* A connection end has completed the handshake.
*
*
* STATE_OPEN = 3 [(.gogoproto.enumvalue_customname) = "OPEN"];
*/
STATE_OPEN(3),
UNRECOGNIZED(-1),
;
/**
*
* Default State
*
*
* STATE_UNINITIALIZED_UNSPECIFIED = 0 [(.gogoproto.enumvalue_customname) = "UNINITIALIZED"];
*/
public static final int STATE_UNINITIALIZED_UNSPECIFIED_VALUE = 0;
/**
*
* A connection end has just started the opening handshake.
*
*
* STATE_INIT = 1 [(.gogoproto.enumvalue_customname) = "INIT"];
*/
public static final int STATE_INIT_VALUE = 1;
/**
*
* A connection end has acknowledged the handshake step on the counterparty
* chain.
*
*
* STATE_TRYOPEN = 2 [(.gogoproto.enumvalue_customname) = "TRYOPEN"];
*/
public static final int STATE_TRYOPEN_VALUE = 2;
/**
*
* A connection end has completed the handshake.
*
*
* STATE_OPEN = 3 [(.gogoproto.enumvalue_customname) = "OPEN"];
*/
public static final int STATE_OPEN_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static State valueOf(int value) {
return forNumber(value);
}
public static State forNumber(int value) {
switch (value) {
case 0: return STATE_UNINITIALIZED_UNSPECIFIED;
case 1: return STATE_INIT;
case 2: return STATE_TRYOPEN;
case 3: return STATE_OPEN;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
State> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public State findValueByNumber(int number) {
return State.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return ibc.core.connection.v1.Connection.getDescriptor().getEnumTypes().get(0);
}
private static final State[] VALUES = values();
public static State valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private State(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:ibc.core.connection.v1.State)
}
public interface ConnectionEndOrBuilder extends
// @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.ConnectionEnd)
com.google.protobuf.MessageOrBuilder {
/**
*
* client associated with this connection.
*
*
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
java.lang.String getClientId();
/**
*
* client associated with this connection.
*
*
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
com.google.protobuf.ByteString
getClientIdBytes();
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection.
*
*
* repeated .ibc.core.connection.v1.Version versions = 2;
*/
java.util.List
getVersionsList();
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection.
*
*
* repeated .ibc.core.connection.v1.Version versions = 2;
*/
ibc.core.connection.v1.Connection.Version getVersions(int index);
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection.
*
*
* repeated .ibc.core.connection.v1.Version versions = 2;
*/
int getVersionsCount();
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection.
*
*
* repeated .ibc.core.connection.v1.Version versions = 2;
*/
java.util.List extends ibc.core.connection.v1.Connection.VersionOrBuilder>
getVersionsOrBuilderList();
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection.
*
*
* repeated .ibc.core.connection.v1.Version versions = 2;
*/
ibc.core.connection.v1.Connection.VersionOrBuilder getVersionsOrBuilder(
int index);
/**
*
* current state of the connection end.
*
*
* .ibc.core.connection.v1.State state = 3;
*/
int getStateValue();
/**
*
* current state of the connection end.
*
*
* .ibc.core.connection.v1.State state = 3;
*/
ibc.core.connection.v1.Connection.State getState();
/**
*
* counterparty chain associated with this connection.
*
*
* .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false];
*/
boolean hasCounterparty();
/**
*
* counterparty chain associated with this connection.
*
*
* .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false];
*/
ibc.core.connection.v1.Connection.Counterparty getCounterparty();
/**
*
* counterparty chain associated with this connection.
*
*
* .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false];
*/
ibc.core.connection.v1.Connection.CounterpartyOrBuilder getCounterpartyOrBuilder();
/**
*
* delay period that must pass before a consensus state can be used for packet-verification
* NOTE: delay period logic is only implemented by some clients.
*
*
* uint64 delay_period = 5 [(.gogoproto.moretags) = "yaml:\"delay_period\""];
*/
long getDelayPeriod();
}
/**
*
* ConnectionEnd defines a stateful object on a chain connected to another
* separate one.
* NOTE: there must only be 2 defined ConnectionEnds to establish
* a connection between two chains.
*
*
* Protobuf type {@code ibc.core.connection.v1.ConnectionEnd}
*/
public static final class ConnectionEnd extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ibc.core.connection.v1.ConnectionEnd)
ConnectionEndOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConnectionEnd.newBuilder() to construct.
private ConnectionEnd(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConnectionEnd() {
clientId_ = "";
versions_ = java.util.Collections.emptyList();
state_ = 0;
delayPeriod_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ConnectionEnd(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
clientId_ = s;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
versions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
versions_.add(
input.readMessage(ibc.core.connection.v1.Connection.Version.parser(), extensionRegistry));
break;
}
case 24: {
int rawValue = input.readEnum();
state_ = rawValue;
break;
}
case 34: {
ibc.core.connection.v1.Connection.Counterparty.Builder subBuilder = null;
if (counterparty_ != null) {
subBuilder = counterparty_.toBuilder();
}
counterparty_ = input.readMessage(ibc.core.connection.v1.Connection.Counterparty.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(counterparty_);
counterparty_ = subBuilder.buildPartial();
}
break;
}
case 40: {
delayPeriod_ = 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_ & 0x00000002) == 0x00000002)) {
versions_ = java.util.Collections.unmodifiableList(versions_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_ConnectionEnd_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_ConnectionEnd_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.connection.v1.Connection.ConnectionEnd.class, ibc.core.connection.v1.Connection.ConnectionEnd.Builder.class);
}
private int bitField0_;
public static final int CLIENT_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object clientId_;
/**
*
* client associated with this connection.
*
*
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public java.lang.String getClientId() {
java.lang.Object ref = clientId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clientId_ = s;
return s;
}
}
/**
*
* client associated with this connection.
*
*
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public com.google.protobuf.ByteString
getClientIdBytes() {
java.lang.Object ref = clientId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clientId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VERSIONS_FIELD_NUMBER = 2;
private java.util.List versions_;
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection.
*
*
* repeated .ibc.core.connection.v1.Version versions = 2;
*/
public java.util.List getVersionsList() {
return versions_;
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection.
*
*
* repeated .ibc.core.connection.v1.Version versions = 2;
*/
public java.util.List extends ibc.core.connection.v1.Connection.VersionOrBuilder>
getVersionsOrBuilderList() {
return versions_;
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection.
*
*
* repeated .ibc.core.connection.v1.Version versions = 2;
*/
public int getVersionsCount() {
return versions_.size();
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection.
*
*
* repeated .ibc.core.connection.v1.Version versions = 2;
*/
public ibc.core.connection.v1.Connection.Version getVersions(int index) {
return versions_.get(index);
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection.
*
*
* repeated .ibc.core.connection.v1.Version versions = 2;
*/
public ibc.core.connection.v1.Connection.VersionOrBuilder getVersionsOrBuilder(
int index) {
return versions_.get(index);
}
public static final int STATE_FIELD_NUMBER = 3;
private int state_;
/**
*
* current state of the connection end.
*
*
* .ibc.core.connection.v1.State state = 3;
*/
public int getStateValue() {
return state_;
}
/**
*
* current state of the connection end.
*
*
* .ibc.core.connection.v1.State state = 3;
*/
public ibc.core.connection.v1.Connection.State getState() {
@SuppressWarnings("deprecation")
ibc.core.connection.v1.Connection.State result = ibc.core.connection.v1.Connection.State.valueOf(state_);
return result == null ? ibc.core.connection.v1.Connection.State.UNRECOGNIZED : result;
}
public static final int COUNTERPARTY_FIELD_NUMBER = 4;
private ibc.core.connection.v1.Connection.Counterparty counterparty_;
/**
*
* counterparty chain associated with this connection.
*
*
* .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false];
*/
public boolean hasCounterparty() {
return counterparty_ != null;
}
/**
*
* counterparty chain associated with this connection.
*
*
* .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false];
*/
public ibc.core.connection.v1.Connection.Counterparty getCounterparty() {
return counterparty_ == null ? ibc.core.connection.v1.Connection.Counterparty.getDefaultInstance() : counterparty_;
}
/**
*
* counterparty chain associated with this connection.
*
*
* .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false];
*/
public ibc.core.connection.v1.Connection.CounterpartyOrBuilder getCounterpartyOrBuilder() {
return getCounterparty();
}
public static final int DELAY_PERIOD_FIELD_NUMBER = 5;
private long delayPeriod_;
/**
*
* delay period that must pass before a consensus state can be used for packet-verification
* NOTE: delay period logic is only implemented by some clients.
*
*
* uint64 delay_period = 5 [(.gogoproto.moretags) = "yaml:\"delay_period\""];
*/
public long getDelayPeriod() {
return delayPeriod_;
}
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 (!getClientIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientId_);
}
for (int i = 0; i < versions_.size(); i++) {
output.writeMessage(2, versions_.get(i));
}
if (state_ != ibc.core.connection.v1.Connection.State.STATE_UNINITIALIZED_UNSPECIFIED.getNumber()) {
output.writeEnum(3, state_);
}
if (counterparty_ != null) {
output.writeMessage(4, getCounterparty());
}
if (delayPeriod_ != 0L) {
output.writeUInt64(5, delayPeriod_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getClientIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientId_);
}
for (int i = 0; i < versions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, versions_.get(i));
}
if (state_ != ibc.core.connection.v1.Connection.State.STATE_UNINITIALIZED_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, state_);
}
if (counterparty_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getCounterparty());
}
if (delayPeriod_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(5, delayPeriod_);
}
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.Connection.ConnectionEnd)) {
return super.equals(obj);
}
ibc.core.connection.v1.Connection.ConnectionEnd other = (ibc.core.connection.v1.Connection.ConnectionEnd) obj;
boolean result = true;
result = result && getClientId()
.equals(other.getClientId());
result = result && getVersionsList()
.equals(other.getVersionsList());
result = result && state_ == other.state_;
result = result && (hasCounterparty() == other.hasCounterparty());
if (hasCounterparty()) {
result = result && getCounterparty()
.equals(other.getCounterparty());
}
result = result && (getDelayPeriod()
== other.getDelayPeriod());
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) + CLIENT_ID_FIELD_NUMBER;
hash = (53 * hash) + getClientId().hashCode();
if (getVersionsCount() > 0) {
hash = (37 * hash) + VERSIONS_FIELD_NUMBER;
hash = (53 * hash) + getVersionsList().hashCode();
}
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + state_;
if (hasCounterparty()) {
hash = (37 * hash) + COUNTERPARTY_FIELD_NUMBER;
hash = (53 * hash) + getCounterparty().hashCode();
}
hash = (37 * hash) + DELAY_PERIOD_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDelayPeriod());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ibc.core.connection.v1.Connection.ConnectionEnd parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Connection.ConnectionEnd 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.Connection.ConnectionEnd parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Connection.ConnectionEnd 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.Connection.ConnectionEnd parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Connection.ConnectionEnd parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.connection.v1.Connection.ConnectionEnd parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Connection.ConnectionEnd 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.Connection.ConnectionEnd parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Connection.ConnectionEnd 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.Connection.ConnectionEnd parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Connection.ConnectionEnd 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.Connection.ConnectionEnd 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;
}
/**
*
* ConnectionEnd defines a stateful object on a chain connected to another
* separate one.
* NOTE: there must only be 2 defined ConnectionEnds to establish
* a connection between two chains.
*
*
* Protobuf type {@code ibc.core.connection.v1.ConnectionEnd}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.ConnectionEnd)
ibc.core.connection.v1.Connection.ConnectionEndOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_ConnectionEnd_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_ConnectionEnd_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.connection.v1.Connection.ConnectionEnd.class, ibc.core.connection.v1.Connection.ConnectionEnd.Builder.class);
}
// Construct using ibc.core.connection.v1.Connection.ConnectionEnd.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getVersionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
clientId_ = "";
if (versionsBuilder_ == null) {
versions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
versionsBuilder_.clear();
}
state_ = 0;
if (counterpartyBuilder_ == null) {
counterparty_ = null;
} else {
counterparty_ = null;
counterpartyBuilder_ = null;
}
delayPeriod_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_ConnectionEnd_descriptor;
}
@java.lang.Override
public ibc.core.connection.v1.Connection.ConnectionEnd getDefaultInstanceForType() {
return ibc.core.connection.v1.Connection.ConnectionEnd.getDefaultInstance();
}
@java.lang.Override
public ibc.core.connection.v1.Connection.ConnectionEnd build() {
ibc.core.connection.v1.Connection.ConnectionEnd result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ibc.core.connection.v1.Connection.ConnectionEnd buildPartial() {
ibc.core.connection.v1.Connection.ConnectionEnd result = new ibc.core.connection.v1.Connection.ConnectionEnd(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.clientId_ = clientId_;
if (versionsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
versions_ = java.util.Collections.unmodifiableList(versions_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.versions_ = versions_;
} else {
result.versions_ = versionsBuilder_.build();
}
result.state_ = state_;
if (counterpartyBuilder_ == null) {
result.counterparty_ = counterparty_;
} else {
result.counterparty_ = counterpartyBuilder_.build();
}
result.delayPeriod_ = delayPeriod_;
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.Connection.ConnectionEnd) {
return mergeFrom((ibc.core.connection.v1.Connection.ConnectionEnd)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ibc.core.connection.v1.Connection.ConnectionEnd other) {
if (other == ibc.core.connection.v1.Connection.ConnectionEnd.getDefaultInstance()) return this;
if (!other.getClientId().isEmpty()) {
clientId_ = other.clientId_;
onChanged();
}
if (versionsBuilder_ == null) {
if (!other.versions_.isEmpty()) {
if (versions_.isEmpty()) {
versions_ = other.versions_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureVersionsIsMutable();
versions_.addAll(other.versions_);
}
onChanged();
}
} else {
if (!other.versions_.isEmpty()) {
if (versionsBuilder_.isEmpty()) {
versionsBuilder_.dispose();
versionsBuilder_ = null;
versions_ = other.versions_;
bitField0_ = (bitField0_ & ~0x00000002);
versionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getVersionsFieldBuilder() : null;
} else {
versionsBuilder_.addAllMessages(other.versions_);
}
}
}
if (other.state_ != 0) {
setStateValue(other.getStateValue());
}
if (other.hasCounterparty()) {
mergeCounterparty(other.getCounterparty());
}
if (other.getDelayPeriod() != 0L) {
setDelayPeriod(other.getDelayPeriod());
}
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.Connection.ConnectionEnd parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ibc.core.connection.v1.Connection.ConnectionEnd) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object clientId_ = "";
/**
*
* client associated with this connection.
*
*
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public java.lang.String getClientId() {
java.lang.Object ref = clientId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clientId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* client associated with this connection.
*
*
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public com.google.protobuf.ByteString
getClientIdBytes() {
java.lang.Object ref = clientId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clientId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* client associated with this connection.
*
*
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public Builder setClientId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
clientId_ = value;
onChanged();
return this;
}
/**
*
* client associated with this connection.
*
*
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public Builder clearClientId() {
clientId_ = getDefaultInstance().getClientId();
onChanged();
return this;
}
/**
*
* client associated with this connection.
*
*
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public Builder setClientIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
clientId_ = value;
onChanged();
return this;
}
private java.util.List versions_ =
java.util.Collections.emptyList();
private void ensureVersionsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
versions_ = new java.util.ArrayList(versions_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ibc.core.connection.v1.Connection.Version, ibc.core.connection.v1.Connection.Version.Builder, ibc.core.connection.v1.Connection.VersionOrBuilder> versionsBuilder_;
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection.
*
*
* repeated .ibc.core.connection.v1.Version versions = 2;
*/
public java.util.List getVersionsList() {
if (versionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(versions_);
} else {
return versionsBuilder_.getMessageList();
}
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection.
*
*
* repeated .ibc.core.connection.v1.Version versions = 2;
*/
public int getVersionsCount() {
if (versionsBuilder_ == null) {
return versions_.size();
} else {
return versionsBuilder_.getCount();
}
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection.
*
*
* repeated .ibc.core.connection.v1.Version versions = 2;
*/
public ibc.core.connection.v1.Connection.Version getVersions(int index) {
if (versionsBuilder_ == null) {
return versions_.get(index);
} else {
return versionsBuilder_.getMessage(index);
}
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection.
*
*
* repeated .ibc.core.connection.v1.Version versions = 2;
*/
public Builder setVersions(
int index, ibc.core.connection.v1.Connection.Version value) {
if (versionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVersionsIsMutable();
versions_.set(index, value);
onChanged();
} else {
versionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection.
*
*
* repeated .ibc.core.connection.v1.Version versions = 2;
*/
public Builder setVersions(
int index, ibc.core.connection.v1.Connection.Version.Builder builderForValue) {
if (versionsBuilder_ == null) {
ensureVersionsIsMutable();
versions_.set(index, builderForValue.build());
onChanged();
} else {
versionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection.
*
*
* repeated .ibc.core.connection.v1.Version versions = 2;
*/
public Builder addVersions(ibc.core.connection.v1.Connection.Version value) {
if (versionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVersionsIsMutable();
versions_.add(value);
onChanged();
} else {
versionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection.
*
*
* repeated .ibc.core.connection.v1.Version versions = 2;
*/
public Builder addVersions(
int index, ibc.core.connection.v1.Connection.Version value) {
if (versionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVersionsIsMutable();
versions_.add(index, value);
onChanged();
} else {
versionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection.
*
*
* repeated .ibc.core.connection.v1.Version versions = 2;
*/
public Builder addVersions(
ibc.core.connection.v1.Connection.Version.Builder builderForValue) {
if (versionsBuilder_ == null) {
ensureVersionsIsMutable();
versions_.add(builderForValue.build());
onChanged();
} else {
versionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection.
*
*
* repeated .ibc.core.connection.v1.Version versions = 2;
*/
public Builder addVersions(
int index, ibc.core.connection.v1.Connection.Version.Builder builderForValue) {
if (versionsBuilder_ == null) {
ensureVersionsIsMutable();
versions_.add(index, builderForValue.build());
onChanged();
} else {
versionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection.
*
*
* repeated .ibc.core.connection.v1.Version versions = 2;
*/
public Builder addAllVersions(
java.lang.Iterable extends ibc.core.connection.v1.Connection.Version> values) {
if (versionsBuilder_ == null) {
ensureVersionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, versions_);
onChanged();
} else {
versionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection.
*
*
* repeated .ibc.core.connection.v1.Version versions = 2;
*/
public Builder clearVersions() {
if (versionsBuilder_ == null) {
versions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
versionsBuilder_.clear();
}
return this;
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection.
*
*
* repeated .ibc.core.connection.v1.Version versions = 2;
*/
public Builder removeVersions(int index) {
if (versionsBuilder_ == null) {
ensureVersionsIsMutable();
versions_.remove(index);
onChanged();
} else {
versionsBuilder_.remove(index);
}
return this;
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection.
*
*
* repeated .ibc.core.connection.v1.Version versions = 2;
*/
public ibc.core.connection.v1.Connection.Version.Builder getVersionsBuilder(
int index) {
return getVersionsFieldBuilder().getBuilder(index);
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection.
*
*
* repeated .ibc.core.connection.v1.Version versions = 2;
*/
public ibc.core.connection.v1.Connection.VersionOrBuilder getVersionsOrBuilder(
int index) {
if (versionsBuilder_ == null) {
return versions_.get(index); } else {
return versionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection.
*
*
* repeated .ibc.core.connection.v1.Version versions = 2;
*/
public java.util.List extends ibc.core.connection.v1.Connection.VersionOrBuilder>
getVersionsOrBuilderList() {
if (versionsBuilder_ != null) {
return versionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(versions_);
}
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection.
*
*
* repeated .ibc.core.connection.v1.Version versions = 2;
*/
public ibc.core.connection.v1.Connection.Version.Builder addVersionsBuilder() {
return getVersionsFieldBuilder().addBuilder(
ibc.core.connection.v1.Connection.Version.getDefaultInstance());
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection.
*
*
* repeated .ibc.core.connection.v1.Version versions = 2;
*/
public ibc.core.connection.v1.Connection.Version.Builder addVersionsBuilder(
int index) {
return getVersionsFieldBuilder().addBuilder(
index, ibc.core.connection.v1.Connection.Version.getDefaultInstance());
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection.
*
*
* repeated .ibc.core.connection.v1.Version versions = 2;
*/
public java.util.List
getVersionsBuilderList() {
return getVersionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ibc.core.connection.v1.Connection.Version, ibc.core.connection.v1.Connection.Version.Builder, ibc.core.connection.v1.Connection.VersionOrBuilder>
getVersionsFieldBuilder() {
if (versionsBuilder_ == null) {
versionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
ibc.core.connection.v1.Connection.Version, ibc.core.connection.v1.Connection.Version.Builder, ibc.core.connection.v1.Connection.VersionOrBuilder>(
versions_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
versions_ = null;
}
return versionsBuilder_;
}
private int state_ = 0;
/**
*
* current state of the connection end.
*
*
* .ibc.core.connection.v1.State state = 3;
*/
public int getStateValue() {
return state_;
}
/**
*
* current state of the connection end.
*
*
* .ibc.core.connection.v1.State state = 3;
*/
public Builder setStateValue(int value) {
state_ = value;
onChanged();
return this;
}
/**
*
* current state of the connection end.
*
*
* .ibc.core.connection.v1.State state = 3;
*/
public ibc.core.connection.v1.Connection.State getState() {
@SuppressWarnings("deprecation")
ibc.core.connection.v1.Connection.State result = ibc.core.connection.v1.Connection.State.valueOf(state_);
return result == null ? ibc.core.connection.v1.Connection.State.UNRECOGNIZED : result;
}
/**
*
* current state of the connection end.
*
*
* .ibc.core.connection.v1.State state = 3;
*/
public Builder setState(ibc.core.connection.v1.Connection.State value) {
if (value == null) {
throw new NullPointerException();
}
state_ = value.getNumber();
onChanged();
return this;
}
/**
*
* current state of the connection end.
*
*
* .ibc.core.connection.v1.State state = 3;
*/
public Builder clearState() {
state_ = 0;
onChanged();
return this;
}
private ibc.core.connection.v1.Connection.Counterparty counterparty_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
ibc.core.connection.v1.Connection.Counterparty, ibc.core.connection.v1.Connection.Counterparty.Builder, ibc.core.connection.v1.Connection.CounterpartyOrBuilder> counterpartyBuilder_;
/**
*
* counterparty chain associated with this connection.
*
*
* .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false];
*/
public boolean hasCounterparty() {
return counterpartyBuilder_ != null || counterparty_ != null;
}
/**
*
* counterparty chain associated with this connection.
*
*
* .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false];
*/
public ibc.core.connection.v1.Connection.Counterparty getCounterparty() {
if (counterpartyBuilder_ == null) {
return counterparty_ == null ? ibc.core.connection.v1.Connection.Counterparty.getDefaultInstance() : counterparty_;
} else {
return counterpartyBuilder_.getMessage();
}
}
/**
*
* counterparty chain associated with this connection.
*
*
* .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false];
*/
public Builder setCounterparty(ibc.core.connection.v1.Connection.Counterparty value) {
if (counterpartyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
counterparty_ = value;
onChanged();
} else {
counterpartyBuilder_.setMessage(value);
}
return this;
}
/**
*
* counterparty chain associated with this connection.
*
*
* .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false];
*/
public Builder setCounterparty(
ibc.core.connection.v1.Connection.Counterparty.Builder builderForValue) {
if (counterpartyBuilder_ == null) {
counterparty_ = builderForValue.build();
onChanged();
} else {
counterpartyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* counterparty chain associated with this connection.
*
*
* .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false];
*/
public Builder mergeCounterparty(ibc.core.connection.v1.Connection.Counterparty value) {
if (counterpartyBuilder_ == null) {
if (counterparty_ != null) {
counterparty_ =
ibc.core.connection.v1.Connection.Counterparty.newBuilder(counterparty_).mergeFrom(value).buildPartial();
} else {
counterparty_ = value;
}
onChanged();
} else {
counterpartyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* counterparty chain associated with this connection.
*
*
* .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false];
*/
public Builder clearCounterparty() {
if (counterpartyBuilder_ == null) {
counterparty_ = null;
onChanged();
} else {
counterparty_ = null;
counterpartyBuilder_ = null;
}
return this;
}
/**
*
* counterparty chain associated with this connection.
*
*
* .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false];
*/
public ibc.core.connection.v1.Connection.Counterparty.Builder getCounterpartyBuilder() {
onChanged();
return getCounterpartyFieldBuilder().getBuilder();
}
/**
*
* counterparty chain associated with this connection.
*
*
* .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false];
*/
public ibc.core.connection.v1.Connection.CounterpartyOrBuilder getCounterpartyOrBuilder() {
if (counterpartyBuilder_ != null) {
return counterpartyBuilder_.getMessageOrBuilder();
} else {
return counterparty_ == null ?
ibc.core.connection.v1.Connection.Counterparty.getDefaultInstance() : counterparty_;
}
}
/**
*
* counterparty chain associated with this connection.
*
*
* .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false];
*/
private com.google.protobuf.SingleFieldBuilderV3<
ibc.core.connection.v1.Connection.Counterparty, ibc.core.connection.v1.Connection.Counterparty.Builder, ibc.core.connection.v1.Connection.CounterpartyOrBuilder>
getCounterpartyFieldBuilder() {
if (counterpartyBuilder_ == null) {
counterpartyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ibc.core.connection.v1.Connection.Counterparty, ibc.core.connection.v1.Connection.Counterparty.Builder, ibc.core.connection.v1.Connection.CounterpartyOrBuilder>(
getCounterparty(),
getParentForChildren(),
isClean());
counterparty_ = null;
}
return counterpartyBuilder_;
}
private long delayPeriod_ ;
/**
*
* delay period that must pass before a consensus state can be used for packet-verification
* NOTE: delay period logic is only implemented by some clients.
*
*
* uint64 delay_period = 5 [(.gogoproto.moretags) = "yaml:\"delay_period\""];
*/
public long getDelayPeriod() {
return delayPeriod_;
}
/**
*
* delay period that must pass before a consensus state can be used for packet-verification
* NOTE: delay period logic is only implemented by some clients.
*
*
* uint64 delay_period = 5 [(.gogoproto.moretags) = "yaml:\"delay_period\""];
*/
public Builder setDelayPeriod(long value) {
delayPeriod_ = value;
onChanged();
return this;
}
/**
*
* delay period that must pass before a consensus state can be used for packet-verification
* NOTE: delay period logic is only implemented by some clients.
*
*
* uint64 delay_period = 5 [(.gogoproto.moretags) = "yaml:\"delay_period\""];
*/
public Builder clearDelayPeriod() {
delayPeriod_ = 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.ConnectionEnd)
}
// @@protoc_insertion_point(class_scope:ibc.core.connection.v1.ConnectionEnd)
private static final ibc.core.connection.v1.Connection.ConnectionEnd DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ibc.core.connection.v1.Connection.ConnectionEnd();
}
public static ibc.core.connection.v1.Connection.ConnectionEnd getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ConnectionEnd parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ConnectionEnd(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.Connection.ConnectionEnd getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IdentifiedConnectionOrBuilder extends
// @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.IdentifiedConnection)
com.google.protobuf.MessageOrBuilder {
/**
*
* connection identifier.
*
*
* string id = 1 [(.gogoproto.moretags) = "yaml:\"id\""];
*/
java.lang.String getId();
/**
*
* connection identifier.
*
*
* string id = 1 [(.gogoproto.moretags) = "yaml:\"id\""];
*/
com.google.protobuf.ByteString
getIdBytes();
/**
*
* client associated with this connection.
*
*
* string client_id = 2 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
java.lang.String getClientId();
/**
*
* client associated with this connection.
*
*
* string client_id = 2 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
com.google.protobuf.ByteString
getClientIdBytes();
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection
*
*
* repeated .ibc.core.connection.v1.Version versions = 3;
*/
java.util.List
getVersionsList();
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection
*
*
* repeated .ibc.core.connection.v1.Version versions = 3;
*/
ibc.core.connection.v1.Connection.Version getVersions(int index);
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection
*
*
* repeated .ibc.core.connection.v1.Version versions = 3;
*/
int getVersionsCount();
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection
*
*
* repeated .ibc.core.connection.v1.Version versions = 3;
*/
java.util.List extends ibc.core.connection.v1.Connection.VersionOrBuilder>
getVersionsOrBuilderList();
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection
*
*
* repeated .ibc.core.connection.v1.Version versions = 3;
*/
ibc.core.connection.v1.Connection.VersionOrBuilder getVersionsOrBuilder(
int index);
/**
*
* current state of the connection end.
*
*
* .ibc.core.connection.v1.State state = 4;
*/
int getStateValue();
/**
*
* current state of the connection end.
*
*
* .ibc.core.connection.v1.State state = 4;
*/
ibc.core.connection.v1.Connection.State getState();
/**
*
* counterparty chain associated with this connection.
*
*
* .ibc.core.connection.v1.Counterparty counterparty = 5 [(.gogoproto.nullable) = false];
*/
boolean hasCounterparty();
/**
*
* counterparty chain associated with this connection.
*
*
* .ibc.core.connection.v1.Counterparty counterparty = 5 [(.gogoproto.nullable) = false];
*/
ibc.core.connection.v1.Connection.Counterparty getCounterparty();
/**
*
* counterparty chain associated with this connection.
*
*
* .ibc.core.connection.v1.Counterparty counterparty = 5 [(.gogoproto.nullable) = false];
*/
ibc.core.connection.v1.Connection.CounterpartyOrBuilder getCounterpartyOrBuilder();
/**
*
* delay period associated with this connection.
*
*
* uint64 delay_period = 6 [(.gogoproto.moretags) = "yaml:\"delay_period\""];
*/
long getDelayPeriod();
}
/**
*
* IdentifiedConnection defines a connection with additional connection
* identifier field.
*
*
* Protobuf type {@code ibc.core.connection.v1.IdentifiedConnection}
*/
public static final class IdentifiedConnection extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ibc.core.connection.v1.IdentifiedConnection)
IdentifiedConnectionOrBuilder {
private static final long serialVersionUID = 0L;
// Use IdentifiedConnection.newBuilder() to construct.
private IdentifiedConnection(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IdentifiedConnection() {
id_ = "";
clientId_ = "";
versions_ = java.util.Collections.emptyList();
state_ = 0;
delayPeriod_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IdentifiedConnection(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
id_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
clientId_ = s;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
versions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
versions_.add(
input.readMessage(ibc.core.connection.v1.Connection.Version.parser(), extensionRegistry));
break;
}
case 32: {
int rawValue = input.readEnum();
state_ = rawValue;
break;
}
case 42: {
ibc.core.connection.v1.Connection.Counterparty.Builder subBuilder = null;
if (counterparty_ != null) {
subBuilder = counterparty_.toBuilder();
}
counterparty_ = input.readMessage(ibc.core.connection.v1.Connection.Counterparty.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(counterparty_);
counterparty_ = subBuilder.buildPartial();
}
break;
}
case 48: {
delayPeriod_ = 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_ & 0x00000004) == 0x00000004)) {
versions_ = java.util.Collections.unmodifiableList(versions_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_IdentifiedConnection_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_IdentifiedConnection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.connection.v1.Connection.IdentifiedConnection.class, ibc.core.connection.v1.Connection.IdentifiedConnection.Builder.class);
}
private int bitField0_;
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* connection identifier.
*
*
* string id = 1 [(.gogoproto.moretags) = "yaml:\"id\""];
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
}
}
/**
*
* connection identifier.
*
*
* string id = 1 [(.gogoproto.moretags) = "yaml:\"id\""];
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CLIENT_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object clientId_;
/**
*
* client associated with this connection.
*
*
* string client_id = 2 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public java.lang.String getClientId() {
java.lang.Object ref = clientId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clientId_ = s;
return s;
}
}
/**
*
* client associated with this connection.
*
*
* string client_id = 2 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public com.google.protobuf.ByteString
getClientIdBytes() {
java.lang.Object ref = clientId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clientId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VERSIONS_FIELD_NUMBER = 3;
private java.util.List versions_;
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection
*
*
* repeated .ibc.core.connection.v1.Version versions = 3;
*/
public java.util.List getVersionsList() {
return versions_;
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection
*
*
* repeated .ibc.core.connection.v1.Version versions = 3;
*/
public java.util.List extends ibc.core.connection.v1.Connection.VersionOrBuilder>
getVersionsOrBuilderList() {
return versions_;
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection
*
*
* repeated .ibc.core.connection.v1.Version versions = 3;
*/
public int getVersionsCount() {
return versions_.size();
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection
*
*
* repeated .ibc.core.connection.v1.Version versions = 3;
*/
public ibc.core.connection.v1.Connection.Version getVersions(int index) {
return versions_.get(index);
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection
*
*
* repeated .ibc.core.connection.v1.Version versions = 3;
*/
public ibc.core.connection.v1.Connection.VersionOrBuilder getVersionsOrBuilder(
int index) {
return versions_.get(index);
}
public static final int STATE_FIELD_NUMBER = 4;
private int state_;
/**
*
* current state of the connection end.
*
*
* .ibc.core.connection.v1.State state = 4;
*/
public int getStateValue() {
return state_;
}
/**
*
* current state of the connection end.
*
*
* .ibc.core.connection.v1.State state = 4;
*/
public ibc.core.connection.v1.Connection.State getState() {
@SuppressWarnings("deprecation")
ibc.core.connection.v1.Connection.State result = ibc.core.connection.v1.Connection.State.valueOf(state_);
return result == null ? ibc.core.connection.v1.Connection.State.UNRECOGNIZED : result;
}
public static final int COUNTERPARTY_FIELD_NUMBER = 5;
private ibc.core.connection.v1.Connection.Counterparty counterparty_;
/**
*
* counterparty chain associated with this connection.
*
*
* .ibc.core.connection.v1.Counterparty counterparty = 5 [(.gogoproto.nullable) = false];
*/
public boolean hasCounterparty() {
return counterparty_ != null;
}
/**
*
* counterparty chain associated with this connection.
*
*
* .ibc.core.connection.v1.Counterparty counterparty = 5 [(.gogoproto.nullable) = false];
*/
public ibc.core.connection.v1.Connection.Counterparty getCounterparty() {
return counterparty_ == null ? ibc.core.connection.v1.Connection.Counterparty.getDefaultInstance() : counterparty_;
}
/**
*
* counterparty chain associated with this connection.
*
*
* .ibc.core.connection.v1.Counterparty counterparty = 5 [(.gogoproto.nullable) = false];
*/
public ibc.core.connection.v1.Connection.CounterpartyOrBuilder getCounterpartyOrBuilder() {
return getCounterparty();
}
public static final int DELAY_PERIOD_FIELD_NUMBER = 6;
private long delayPeriod_;
/**
*
* delay period associated with this connection.
*
*
* uint64 delay_period = 6 [(.gogoproto.moretags) = "yaml:\"delay_period\""];
*/
public long getDelayPeriod() {
return delayPeriod_;
}
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 (!getIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (!getClientIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clientId_);
}
for (int i = 0; i < versions_.size(); i++) {
output.writeMessage(3, versions_.get(i));
}
if (state_ != ibc.core.connection.v1.Connection.State.STATE_UNINITIALIZED_UNSPECIFIED.getNumber()) {
output.writeEnum(4, state_);
}
if (counterparty_ != null) {
output.writeMessage(5, getCounterparty());
}
if (delayPeriod_ != 0L) {
output.writeUInt64(6, delayPeriod_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
if (!getClientIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clientId_);
}
for (int i = 0; i < versions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, versions_.get(i));
}
if (state_ != ibc.core.connection.v1.Connection.State.STATE_UNINITIALIZED_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, state_);
}
if (counterparty_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getCounterparty());
}
if (delayPeriod_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(6, delayPeriod_);
}
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.Connection.IdentifiedConnection)) {
return super.equals(obj);
}
ibc.core.connection.v1.Connection.IdentifiedConnection other = (ibc.core.connection.v1.Connection.IdentifiedConnection) obj;
boolean result = true;
result = result && getId()
.equals(other.getId());
result = result && getClientId()
.equals(other.getClientId());
result = result && getVersionsList()
.equals(other.getVersionsList());
result = result && state_ == other.state_;
result = result && (hasCounterparty() == other.hasCounterparty());
if (hasCounterparty()) {
result = result && getCounterparty()
.equals(other.getCounterparty());
}
result = result && (getDelayPeriod()
== other.getDelayPeriod());
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) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER;
hash = (53 * hash) + getClientId().hashCode();
if (getVersionsCount() > 0) {
hash = (37 * hash) + VERSIONS_FIELD_NUMBER;
hash = (53 * hash) + getVersionsList().hashCode();
}
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + state_;
if (hasCounterparty()) {
hash = (37 * hash) + COUNTERPARTY_FIELD_NUMBER;
hash = (53 * hash) + getCounterparty().hashCode();
}
hash = (37 * hash) + DELAY_PERIOD_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDelayPeriod());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ibc.core.connection.v1.Connection.IdentifiedConnection parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Connection.IdentifiedConnection 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.Connection.IdentifiedConnection parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Connection.IdentifiedConnection 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.Connection.IdentifiedConnection parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Connection.IdentifiedConnection parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.connection.v1.Connection.IdentifiedConnection parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Connection.IdentifiedConnection 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.Connection.IdentifiedConnection parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Connection.IdentifiedConnection 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.Connection.IdentifiedConnection parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Connection.IdentifiedConnection 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.Connection.IdentifiedConnection 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;
}
/**
*
* IdentifiedConnection defines a connection with additional connection
* identifier field.
*
*
* Protobuf type {@code ibc.core.connection.v1.IdentifiedConnection}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.IdentifiedConnection)
ibc.core.connection.v1.Connection.IdentifiedConnectionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_IdentifiedConnection_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_IdentifiedConnection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.connection.v1.Connection.IdentifiedConnection.class, ibc.core.connection.v1.Connection.IdentifiedConnection.Builder.class);
}
// Construct using ibc.core.connection.v1.Connection.IdentifiedConnection.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getVersionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = "";
clientId_ = "";
if (versionsBuilder_ == null) {
versions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
versionsBuilder_.clear();
}
state_ = 0;
if (counterpartyBuilder_ == null) {
counterparty_ = null;
} else {
counterparty_ = null;
counterpartyBuilder_ = null;
}
delayPeriod_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_IdentifiedConnection_descriptor;
}
@java.lang.Override
public ibc.core.connection.v1.Connection.IdentifiedConnection getDefaultInstanceForType() {
return ibc.core.connection.v1.Connection.IdentifiedConnection.getDefaultInstance();
}
@java.lang.Override
public ibc.core.connection.v1.Connection.IdentifiedConnection build() {
ibc.core.connection.v1.Connection.IdentifiedConnection result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ibc.core.connection.v1.Connection.IdentifiedConnection buildPartial() {
ibc.core.connection.v1.Connection.IdentifiedConnection result = new ibc.core.connection.v1.Connection.IdentifiedConnection(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.id_ = id_;
result.clientId_ = clientId_;
if (versionsBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
versions_ = java.util.Collections.unmodifiableList(versions_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.versions_ = versions_;
} else {
result.versions_ = versionsBuilder_.build();
}
result.state_ = state_;
if (counterpartyBuilder_ == null) {
result.counterparty_ = counterparty_;
} else {
result.counterparty_ = counterpartyBuilder_.build();
}
result.delayPeriod_ = delayPeriod_;
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.Connection.IdentifiedConnection) {
return mergeFrom((ibc.core.connection.v1.Connection.IdentifiedConnection)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ibc.core.connection.v1.Connection.IdentifiedConnection other) {
if (other == ibc.core.connection.v1.Connection.IdentifiedConnection.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (!other.getClientId().isEmpty()) {
clientId_ = other.clientId_;
onChanged();
}
if (versionsBuilder_ == null) {
if (!other.versions_.isEmpty()) {
if (versions_.isEmpty()) {
versions_ = other.versions_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureVersionsIsMutable();
versions_.addAll(other.versions_);
}
onChanged();
}
} else {
if (!other.versions_.isEmpty()) {
if (versionsBuilder_.isEmpty()) {
versionsBuilder_.dispose();
versionsBuilder_ = null;
versions_ = other.versions_;
bitField0_ = (bitField0_ & ~0x00000004);
versionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getVersionsFieldBuilder() : null;
} else {
versionsBuilder_.addAllMessages(other.versions_);
}
}
}
if (other.state_ != 0) {
setStateValue(other.getStateValue());
}
if (other.hasCounterparty()) {
mergeCounterparty(other.getCounterparty());
}
if (other.getDelayPeriod() != 0L) {
setDelayPeriod(other.getDelayPeriod());
}
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.Connection.IdentifiedConnection parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ibc.core.connection.v1.Connection.IdentifiedConnection) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object id_ = "";
/**
*
* connection identifier.
*
*
* string id = 1 [(.gogoproto.moretags) = "yaml:\"id\""];
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* connection identifier.
*
*
* string id = 1 [(.gogoproto.moretags) = "yaml:\"id\""];
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* connection identifier.
*
*
* string id = 1 [(.gogoproto.moretags) = "yaml:\"id\""];
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
*
* connection identifier.
*
*
* string id = 1 [(.gogoproto.moretags) = "yaml:\"id\""];
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* connection identifier.
*
*
* string id = 1 [(.gogoproto.moretags) = "yaml:\"id\""];
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private java.lang.Object clientId_ = "";
/**
*
* client associated with this connection.
*
*
* string client_id = 2 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public java.lang.String getClientId() {
java.lang.Object ref = clientId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clientId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* client associated with this connection.
*
*
* string client_id = 2 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public com.google.protobuf.ByteString
getClientIdBytes() {
java.lang.Object ref = clientId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clientId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* client associated with this connection.
*
*
* string client_id = 2 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public Builder setClientId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
clientId_ = value;
onChanged();
return this;
}
/**
*
* client associated with this connection.
*
*
* string client_id = 2 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public Builder clearClientId() {
clientId_ = getDefaultInstance().getClientId();
onChanged();
return this;
}
/**
*
* client associated with this connection.
*
*
* string client_id = 2 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public Builder setClientIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
clientId_ = value;
onChanged();
return this;
}
private java.util.List versions_ =
java.util.Collections.emptyList();
private void ensureVersionsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
versions_ = new java.util.ArrayList(versions_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ibc.core.connection.v1.Connection.Version, ibc.core.connection.v1.Connection.Version.Builder, ibc.core.connection.v1.Connection.VersionOrBuilder> versionsBuilder_;
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection
*
*
* repeated .ibc.core.connection.v1.Version versions = 3;
*/
public java.util.List getVersionsList() {
if (versionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(versions_);
} else {
return versionsBuilder_.getMessageList();
}
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection
*
*
* repeated .ibc.core.connection.v1.Version versions = 3;
*/
public int getVersionsCount() {
if (versionsBuilder_ == null) {
return versions_.size();
} else {
return versionsBuilder_.getCount();
}
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection
*
*
* repeated .ibc.core.connection.v1.Version versions = 3;
*/
public ibc.core.connection.v1.Connection.Version getVersions(int index) {
if (versionsBuilder_ == null) {
return versions_.get(index);
} else {
return versionsBuilder_.getMessage(index);
}
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection
*
*
* repeated .ibc.core.connection.v1.Version versions = 3;
*/
public Builder setVersions(
int index, ibc.core.connection.v1.Connection.Version value) {
if (versionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVersionsIsMutable();
versions_.set(index, value);
onChanged();
} else {
versionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection
*
*
* repeated .ibc.core.connection.v1.Version versions = 3;
*/
public Builder setVersions(
int index, ibc.core.connection.v1.Connection.Version.Builder builderForValue) {
if (versionsBuilder_ == null) {
ensureVersionsIsMutable();
versions_.set(index, builderForValue.build());
onChanged();
} else {
versionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection
*
*
* repeated .ibc.core.connection.v1.Version versions = 3;
*/
public Builder addVersions(ibc.core.connection.v1.Connection.Version value) {
if (versionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVersionsIsMutable();
versions_.add(value);
onChanged();
} else {
versionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection
*
*
* repeated .ibc.core.connection.v1.Version versions = 3;
*/
public Builder addVersions(
int index, ibc.core.connection.v1.Connection.Version value) {
if (versionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVersionsIsMutable();
versions_.add(index, value);
onChanged();
} else {
versionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection
*
*
* repeated .ibc.core.connection.v1.Version versions = 3;
*/
public Builder addVersions(
ibc.core.connection.v1.Connection.Version.Builder builderForValue) {
if (versionsBuilder_ == null) {
ensureVersionsIsMutable();
versions_.add(builderForValue.build());
onChanged();
} else {
versionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection
*
*
* repeated .ibc.core.connection.v1.Version versions = 3;
*/
public Builder addVersions(
int index, ibc.core.connection.v1.Connection.Version.Builder builderForValue) {
if (versionsBuilder_ == null) {
ensureVersionsIsMutable();
versions_.add(index, builderForValue.build());
onChanged();
} else {
versionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection
*
*
* repeated .ibc.core.connection.v1.Version versions = 3;
*/
public Builder addAllVersions(
java.lang.Iterable extends ibc.core.connection.v1.Connection.Version> values) {
if (versionsBuilder_ == null) {
ensureVersionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, versions_);
onChanged();
} else {
versionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection
*
*
* repeated .ibc.core.connection.v1.Version versions = 3;
*/
public Builder clearVersions() {
if (versionsBuilder_ == null) {
versions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
versionsBuilder_.clear();
}
return this;
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection
*
*
* repeated .ibc.core.connection.v1.Version versions = 3;
*/
public Builder removeVersions(int index) {
if (versionsBuilder_ == null) {
ensureVersionsIsMutable();
versions_.remove(index);
onChanged();
} else {
versionsBuilder_.remove(index);
}
return this;
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection
*
*
* repeated .ibc.core.connection.v1.Version versions = 3;
*/
public ibc.core.connection.v1.Connection.Version.Builder getVersionsBuilder(
int index) {
return getVersionsFieldBuilder().getBuilder(index);
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection
*
*
* repeated .ibc.core.connection.v1.Version versions = 3;
*/
public ibc.core.connection.v1.Connection.VersionOrBuilder getVersionsOrBuilder(
int index) {
if (versionsBuilder_ == null) {
return versions_.get(index); } else {
return versionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection
*
*
* repeated .ibc.core.connection.v1.Version versions = 3;
*/
public java.util.List extends ibc.core.connection.v1.Connection.VersionOrBuilder>
getVersionsOrBuilderList() {
if (versionsBuilder_ != null) {
return versionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(versions_);
}
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection
*
*
* repeated .ibc.core.connection.v1.Version versions = 3;
*/
public ibc.core.connection.v1.Connection.Version.Builder addVersionsBuilder() {
return getVersionsFieldBuilder().addBuilder(
ibc.core.connection.v1.Connection.Version.getDefaultInstance());
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection
*
*
* repeated .ibc.core.connection.v1.Version versions = 3;
*/
public ibc.core.connection.v1.Connection.Version.Builder addVersionsBuilder(
int index) {
return getVersionsFieldBuilder().addBuilder(
index, ibc.core.connection.v1.Connection.Version.getDefaultInstance());
}
/**
*
* IBC version which can be utilised to determine encodings or protocols for
* channels or packets utilising this connection
*
*
* repeated .ibc.core.connection.v1.Version versions = 3;
*/
public java.util.List
getVersionsBuilderList() {
return getVersionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ibc.core.connection.v1.Connection.Version, ibc.core.connection.v1.Connection.Version.Builder, ibc.core.connection.v1.Connection.VersionOrBuilder>
getVersionsFieldBuilder() {
if (versionsBuilder_ == null) {
versionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
ibc.core.connection.v1.Connection.Version, ibc.core.connection.v1.Connection.Version.Builder, ibc.core.connection.v1.Connection.VersionOrBuilder>(
versions_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
versions_ = null;
}
return versionsBuilder_;
}
private int state_ = 0;
/**
*
* current state of the connection end.
*
*
* .ibc.core.connection.v1.State state = 4;
*/
public int getStateValue() {
return state_;
}
/**
*
* current state of the connection end.
*
*
* .ibc.core.connection.v1.State state = 4;
*/
public Builder setStateValue(int value) {
state_ = value;
onChanged();
return this;
}
/**
*
* current state of the connection end.
*
*
* .ibc.core.connection.v1.State state = 4;
*/
public ibc.core.connection.v1.Connection.State getState() {
@SuppressWarnings("deprecation")
ibc.core.connection.v1.Connection.State result = ibc.core.connection.v1.Connection.State.valueOf(state_);
return result == null ? ibc.core.connection.v1.Connection.State.UNRECOGNIZED : result;
}
/**
*
* current state of the connection end.
*
*
* .ibc.core.connection.v1.State state = 4;
*/
public Builder setState(ibc.core.connection.v1.Connection.State value) {
if (value == null) {
throw new NullPointerException();
}
state_ = value.getNumber();
onChanged();
return this;
}
/**
*
* current state of the connection end.
*
*
* .ibc.core.connection.v1.State state = 4;
*/
public Builder clearState() {
state_ = 0;
onChanged();
return this;
}
private ibc.core.connection.v1.Connection.Counterparty counterparty_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
ibc.core.connection.v1.Connection.Counterparty, ibc.core.connection.v1.Connection.Counterparty.Builder, ibc.core.connection.v1.Connection.CounterpartyOrBuilder> counterpartyBuilder_;
/**
*
* counterparty chain associated with this connection.
*
*
* .ibc.core.connection.v1.Counterparty counterparty = 5 [(.gogoproto.nullable) = false];
*/
public boolean hasCounterparty() {
return counterpartyBuilder_ != null || counterparty_ != null;
}
/**
*
* counterparty chain associated with this connection.
*
*
* .ibc.core.connection.v1.Counterparty counterparty = 5 [(.gogoproto.nullable) = false];
*/
public ibc.core.connection.v1.Connection.Counterparty getCounterparty() {
if (counterpartyBuilder_ == null) {
return counterparty_ == null ? ibc.core.connection.v1.Connection.Counterparty.getDefaultInstance() : counterparty_;
} else {
return counterpartyBuilder_.getMessage();
}
}
/**
*
* counterparty chain associated with this connection.
*
*
* .ibc.core.connection.v1.Counterparty counterparty = 5 [(.gogoproto.nullable) = false];
*/
public Builder setCounterparty(ibc.core.connection.v1.Connection.Counterparty value) {
if (counterpartyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
counterparty_ = value;
onChanged();
} else {
counterpartyBuilder_.setMessage(value);
}
return this;
}
/**
*
* counterparty chain associated with this connection.
*
*
* .ibc.core.connection.v1.Counterparty counterparty = 5 [(.gogoproto.nullable) = false];
*/
public Builder setCounterparty(
ibc.core.connection.v1.Connection.Counterparty.Builder builderForValue) {
if (counterpartyBuilder_ == null) {
counterparty_ = builderForValue.build();
onChanged();
} else {
counterpartyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* counterparty chain associated with this connection.
*
*
* .ibc.core.connection.v1.Counterparty counterparty = 5 [(.gogoproto.nullable) = false];
*/
public Builder mergeCounterparty(ibc.core.connection.v1.Connection.Counterparty value) {
if (counterpartyBuilder_ == null) {
if (counterparty_ != null) {
counterparty_ =
ibc.core.connection.v1.Connection.Counterparty.newBuilder(counterparty_).mergeFrom(value).buildPartial();
} else {
counterparty_ = value;
}
onChanged();
} else {
counterpartyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* counterparty chain associated with this connection.
*
*
* .ibc.core.connection.v1.Counterparty counterparty = 5 [(.gogoproto.nullable) = false];
*/
public Builder clearCounterparty() {
if (counterpartyBuilder_ == null) {
counterparty_ = null;
onChanged();
} else {
counterparty_ = null;
counterpartyBuilder_ = null;
}
return this;
}
/**
*
* counterparty chain associated with this connection.
*
*
* .ibc.core.connection.v1.Counterparty counterparty = 5 [(.gogoproto.nullable) = false];
*/
public ibc.core.connection.v1.Connection.Counterparty.Builder getCounterpartyBuilder() {
onChanged();
return getCounterpartyFieldBuilder().getBuilder();
}
/**
*
* counterparty chain associated with this connection.
*
*
* .ibc.core.connection.v1.Counterparty counterparty = 5 [(.gogoproto.nullable) = false];
*/
public ibc.core.connection.v1.Connection.CounterpartyOrBuilder getCounterpartyOrBuilder() {
if (counterpartyBuilder_ != null) {
return counterpartyBuilder_.getMessageOrBuilder();
} else {
return counterparty_ == null ?
ibc.core.connection.v1.Connection.Counterparty.getDefaultInstance() : counterparty_;
}
}
/**
*
* counterparty chain associated with this connection.
*
*
* .ibc.core.connection.v1.Counterparty counterparty = 5 [(.gogoproto.nullable) = false];
*/
private com.google.protobuf.SingleFieldBuilderV3<
ibc.core.connection.v1.Connection.Counterparty, ibc.core.connection.v1.Connection.Counterparty.Builder, ibc.core.connection.v1.Connection.CounterpartyOrBuilder>
getCounterpartyFieldBuilder() {
if (counterpartyBuilder_ == null) {
counterpartyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ibc.core.connection.v1.Connection.Counterparty, ibc.core.connection.v1.Connection.Counterparty.Builder, ibc.core.connection.v1.Connection.CounterpartyOrBuilder>(
getCounterparty(),
getParentForChildren(),
isClean());
counterparty_ = null;
}
return counterpartyBuilder_;
}
private long delayPeriod_ ;
/**
*
* delay period associated with this connection.
*
*
* uint64 delay_period = 6 [(.gogoproto.moretags) = "yaml:\"delay_period\""];
*/
public long getDelayPeriod() {
return delayPeriod_;
}
/**
*
* delay period associated with this connection.
*
*
* uint64 delay_period = 6 [(.gogoproto.moretags) = "yaml:\"delay_period\""];
*/
public Builder setDelayPeriod(long value) {
delayPeriod_ = value;
onChanged();
return this;
}
/**
*
* delay period associated with this connection.
*
*
* uint64 delay_period = 6 [(.gogoproto.moretags) = "yaml:\"delay_period\""];
*/
public Builder clearDelayPeriod() {
delayPeriod_ = 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.IdentifiedConnection)
}
// @@protoc_insertion_point(class_scope:ibc.core.connection.v1.IdentifiedConnection)
private static final ibc.core.connection.v1.Connection.IdentifiedConnection DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ibc.core.connection.v1.Connection.IdentifiedConnection();
}
public static ibc.core.connection.v1.Connection.IdentifiedConnection getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IdentifiedConnection parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IdentifiedConnection(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.Connection.IdentifiedConnection getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CounterpartyOrBuilder extends
// @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.Counterparty)
com.google.protobuf.MessageOrBuilder {
/**
*
* identifies the client on the counterparty chain associated with a given
* connection.
*
*
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
java.lang.String getClientId();
/**
*
* identifies the client on the counterparty chain associated with a given
* connection.
*
*
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
com.google.protobuf.ByteString
getClientIdBytes();
/**
*
* identifies the connection end on the counterparty chain associated with a
* given connection.
*
*
* string connection_id = 2 [(.gogoproto.moretags) = "yaml:\"connection_id\""];
*/
java.lang.String getConnectionId();
/**
*
* identifies the connection end on the counterparty chain associated with a
* given connection.
*
*
* string connection_id = 2 [(.gogoproto.moretags) = "yaml:\"connection_id\""];
*/
com.google.protobuf.ByteString
getConnectionIdBytes();
/**
*
* commitment merkle prefix of the counterparty chain.
*
*
* .ibc.core.commitment.v1.MerklePrefix prefix = 3 [(.gogoproto.nullable) = false];
*/
boolean hasPrefix();
/**
*
* commitment merkle prefix of the counterparty chain.
*
*
* .ibc.core.commitment.v1.MerklePrefix prefix = 3 [(.gogoproto.nullable) = false];
*/
ibc.core.commitment.v1.Commitment.MerklePrefix getPrefix();
/**
*
* commitment merkle prefix of the counterparty chain.
*
*
* .ibc.core.commitment.v1.MerklePrefix prefix = 3 [(.gogoproto.nullable) = false];
*/
ibc.core.commitment.v1.Commitment.MerklePrefixOrBuilder getPrefixOrBuilder();
}
/**
*
* Counterparty defines the counterparty chain associated with a connection end.
*
*
* Protobuf type {@code ibc.core.connection.v1.Counterparty}
*/
public static final class Counterparty extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ibc.core.connection.v1.Counterparty)
CounterpartyOrBuilder {
private static final long serialVersionUID = 0L;
// Use Counterparty.newBuilder() to construct.
private Counterparty(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Counterparty() {
clientId_ = "";
connectionId_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Counterparty(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
clientId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
connectionId_ = s;
break;
}
case 26: {
ibc.core.commitment.v1.Commitment.MerklePrefix.Builder subBuilder = null;
if (prefix_ != null) {
subBuilder = prefix_.toBuilder();
}
prefix_ = input.readMessage(ibc.core.commitment.v1.Commitment.MerklePrefix.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(prefix_);
prefix_ = 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 ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_Counterparty_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_Counterparty_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.connection.v1.Connection.Counterparty.class, ibc.core.connection.v1.Connection.Counterparty.Builder.class);
}
public static final int CLIENT_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object clientId_;
/**
*
* identifies the client on the counterparty chain associated with a given
* connection.
*
*
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public java.lang.String getClientId() {
java.lang.Object ref = clientId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clientId_ = s;
return s;
}
}
/**
*
* identifies the client on the counterparty chain associated with a given
* connection.
*
*
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public com.google.protobuf.ByteString
getClientIdBytes() {
java.lang.Object ref = clientId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clientId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONNECTION_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object connectionId_;
/**
*
* identifies the connection end on the counterparty chain associated with a
* given connection.
*
*
* string connection_id = 2 [(.gogoproto.moretags) = "yaml:\"connection_id\""];
*/
public java.lang.String getConnectionId() {
java.lang.Object ref = connectionId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
connectionId_ = s;
return s;
}
}
/**
*
* identifies the connection end on the counterparty chain associated with a
* given connection.
*
*
* string connection_id = 2 [(.gogoproto.moretags) = "yaml:\"connection_id\""];
*/
public com.google.protobuf.ByteString
getConnectionIdBytes() {
java.lang.Object ref = connectionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
connectionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PREFIX_FIELD_NUMBER = 3;
private ibc.core.commitment.v1.Commitment.MerklePrefix prefix_;
/**
*
* commitment merkle prefix of the counterparty chain.
*
*
* .ibc.core.commitment.v1.MerklePrefix prefix = 3 [(.gogoproto.nullable) = false];
*/
public boolean hasPrefix() {
return prefix_ != null;
}
/**
*
* commitment merkle prefix of the counterparty chain.
*
*
* .ibc.core.commitment.v1.MerklePrefix prefix = 3 [(.gogoproto.nullable) = false];
*/
public ibc.core.commitment.v1.Commitment.MerklePrefix getPrefix() {
return prefix_ == null ? ibc.core.commitment.v1.Commitment.MerklePrefix.getDefaultInstance() : prefix_;
}
/**
*
* commitment merkle prefix of the counterparty chain.
*
*
* .ibc.core.commitment.v1.MerklePrefix prefix = 3 [(.gogoproto.nullable) = false];
*/
public ibc.core.commitment.v1.Commitment.MerklePrefixOrBuilder getPrefixOrBuilder() {
return getPrefix();
}
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 (!getClientIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientId_);
}
if (!getConnectionIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, connectionId_);
}
if (prefix_ != null) {
output.writeMessage(3, getPrefix());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getClientIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientId_);
}
if (!getConnectionIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, connectionId_);
}
if (prefix_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getPrefix());
}
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.Connection.Counterparty)) {
return super.equals(obj);
}
ibc.core.connection.v1.Connection.Counterparty other = (ibc.core.connection.v1.Connection.Counterparty) obj;
boolean result = true;
result = result && getClientId()
.equals(other.getClientId());
result = result && getConnectionId()
.equals(other.getConnectionId());
result = result && (hasPrefix() == other.hasPrefix());
if (hasPrefix()) {
result = result && getPrefix()
.equals(other.getPrefix());
}
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) + CLIENT_ID_FIELD_NUMBER;
hash = (53 * hash) + getClientId().hashCode();
hash = (37 * hash) + CONNECTION_ID_FIELD_NUMBER;
hash = (53 * hash) + getConnectionId().hashCode();
if (hasPrefix()) {
hash = (37 * hash) + PREFIX_FIELD_NUMBER;
hash = (53 * hash) + getPrefix().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ibc.core.connection.v1.Connection.Counterparty parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Connection.Counterparty 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.Connection.Counterparty parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Connection.Counterparty 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.Connection.Counterparty parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Connection.Counterparty parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.connection.v1.Connection.Counterparty parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Connection.Counterparty 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.Connection.Counterparty parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Connection.Counterparty 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.Connection.Counterparty parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Connection.Counterparty 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.Connection.Counterparty 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;
}
/**
*
* Counterparty defines the counterparty chain associated with a connection end.
*
*
* Protobuf type {@code ibc.core.connection.v1.Counterparty}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.Counterparty)
ibc.core.connection.v1.Connection.CounterpartyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_Counterparty_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_Counterparty_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.connection.v1.Connection.Counterparty.class, ibc.core.connection.v1.Connection.Counterparty.Builder.class);
}
// Construct using ibc.core.connection.v1.Connection.Counterparty.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();
clientId_ = "";
connectionId_ = "";
if (prefixBuilder_ == null) {
prefix_ = null;
} else {
prefix_ = null;
prefixBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_Counterparty_descriptor;
}
@java.lang.Override
public ibc.core.connection.v1.Connection.Counterparty getDefaultInstanceForType() {
return ibc.core.connection.v1.Connection.Counterparty.getDefaultInstance();
}
@java.lang.Override
public ibc.core.connection.v1.Connection.Counterparty build() {
ibc.core.connection.v1.Connection.Counterparty result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ibc.core.connection.v1.Connection.Counterparty buildPartial() {
ibc.core.connection.v1.Connection.Counterparty result = new ibc.core.connection.v1.Connection.Counterparty(this);
result.clientId_ = clientId_;
result.connectionId_ = connectionId_;
if (prefixBuilder_ == null) {
result.prefix_ = prefix_;
} else {
result.prefix_ = prefixBuilder_.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 ibc.core.connection.v1.Connection.Counterparty) {
return mergeFrom((ibc.core.connection.v1.Connection.Counterparty)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ibc.core.connection.v1.Connection.Counterparty other) {
if (other == ibc.core.connection.v1.Connection.Counterparty.getDefaultInstance()) return this;
if (!other.getClientId().isEmpty()) {
clientId_ = other.clientId_;
onChanged();
}
if (!other.getConnectionId().isEmpty()) {
connectionId_ = other.connectionId_;
onChanged();
}
if (other.hasPrefix()) {
mergePrefix(other.getPrefix());
}
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.Connection.Counterparty parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ibc.core.connection.v1.Connection.Counterparty) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object clientId_ = "";
/**
*
* identifies the client on the counterparty chain associated with a given
* connection.
*
*
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public java.lang.String getClientId() {
java.lang.Object ref = clientId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clientId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* identifies the client on the counterparty chain associated with a given
* connection.
*
*
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public com.google.protobuf.ByteString
getClientIdBytes() {
java.lang.Object ref = clientId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clientId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* identifies the client on the counterparty chain associated with a given
* connection.
*
*
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public Builder setClientId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
clientId_ = value;
onChanged();
return this;
}
/**
*
* identifies the client on the counterparty chain associated with a given
* connection.
*
*
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public Builder clearClientId() {
clientId_ = getDefaultInstance().getClientId();
onChanged();
return this;
}
/**
*
* identifies the client on the counterparty chain associated with a given
* connection.
*
*
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public Builder setClientIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
clientId_ = value;
onChanged();
return this;
}
private java.lang.Object connectionId_ = "";
/**
*
* identifies the connection end on the counterparty chain associated with a
* given connection.
*
*
* string connection_id = 2 [(.gogoproto.moretags) = "yaml:\"connection_id\""];
*/
public java.lang.String getConnectionId() {
java.lang.Object ref = connectionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
connectionId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* identifies the connection end on the counterparty chain associated with a
* given connection.
*
*
* string connection_id = 2 [(.gogoproto.moretags) = "yaml:\"connection_id\""];
*/
public com.google.protobuf.ByteString
getConnectionIdBytes() {
java.lang.Object ref = connectionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
connectionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* identifies the connection end on the counterparty chain associated with a
* given connection.
*
*
* string connection_id = 2 [(.gogoproto.moretags) = "yaml:\"connection_id\""];
*/
public Builder setConnectionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
connectionId_ = value;
onChanged();
return this;
}
/**
*
* identifies the connection end on the counterparty chain associated with a
* given connection.
*
*
* string connection_id = 2 [(.gogoproto.moretags) = "yaml:\"connection_id\""];
*/
public Builder clearConnectionId() {
connectionId_ = getDefaultInstance().getConnectionId();
onChanged();
return this;
}
/**
*
* identifies the connection end on the counterparty chain associated with a
* given connection.
*
*
* string connection_id = 2 [(.gogoproto.moretags) = "yaml:\"connection_id\""];
*/
public Builder setConnectionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
connectionId_ = value;
onChanged();
return this;
}
private ibc.core.commitment.v1.Commitment.MerklePrefix prefix_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
ibc.core.commitment.v1.Commitment.MerklePrefix, ibc.core.commitment.v1.Commitment.MerklePrefix.Builder, ibc.core.commitment.v1.Commitment.MerklePrefixOrBuilder> prefixBuilder_;
/**
*
* commitment merkle prefix of the counterparty chain.
*
*
* .ibc.core.commitment.v1.MerklePrefix prefix = 3 [(.gogoproto.nullable) = false];
*/
public boolean hasPrefix() {
return prefixBuilder_ != null || prefix_ != null;
}
/**
*
* commitment merkle prefix of the counterparty chain.
*
*
* .ibc.core.commitment.v1.MerklePrefix prefix = 3 [(.gogoproto.nullable) = false];
*/
public ibc.core.commitment.v1.Commitment.MerklePrefix getPrefix() {
if (prefixBuilder_ == null) {
return prefix_ == null ? ibc.core.commitment.v1.Commitment.MerklePrefix.getDefaultInstance() : prefix_;
} else {
return prefixBuilder_.getMessage();
}
}
/**
*
* commitment merkle prefix of the counterparty chain.
*
*
* .ibc.core.commitment.v1.MerklePrefix prefix = 3 [(.gogoproto.nullable) = false];
*/
public Builder setPrefix(ibc.core.commitment.v1.Commitment.MerklePrefix value) {
if (prefixBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
prefix_ = value;
onChanged();
} else {
prefixBuilder_.setMessage(value);
}
return this;
}
/**
*
* commitment merkle prefix of the counterparty chain.
*
*
* .ibc.core.commitment.v1.MerklePrefix prefix = 3 [(.gogoproto.nullable) = false];
*/
public Builder setPrefix(
ibc.core.commitment.v1.Commitment.MerklePrefix.Builder builderForValue) {
if (prefixBuilder_ == null) {
prefix_ = builderForValue.build();
onChanged();
} else {
prefixBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* commitment merkle prefix of the counterparty chain.
*
*
* .ibc.core.commitment.v1.MerklePrefix prefix = 3 [(.gogoproto.nullable) = false];
*/
public Builder mergePrefix(ibc.core.commitment.v1.Commitment.MerklePrefix value) {
if (prefixBuilder_ == null) {
if (prefix_ != null) {
prefix_ =
ibc.core.commitment.v1.Commitment.MerklePrefix.newBuilder(prefix_).mergeFrom(value).buildPartial();
} else {
prefix_ = value;
}
onChanged();
} else {
prefixBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* commitment merkle prefix of the counterparty chain.
*
*
* .ibc.core.commitment.v1.MerklePrefix prefix = 3 [(.gogoproto.nullable) = false];
*/
public Builder clearPrefix() {
if (prefixBuilder_ == null) {
prefix_ = null;
onChanged();
} else {
prefix_ = null;
prefixBuilder_ = null;
}
return this;
}
/**
*
* commitment merkle prefix of the counterparty chain.
*
*
* .ibc.core.commitment.v1.MerklePrefix prefix = 3 [(.gogoproto.nullable) = false];
*/
public ibc.core.commitment.v1.Commitment.MerklePrefix.Builder getPrefixBuilder() {
onChanged();
return getPrefixFieldBuilder().getBuilder();
}
/**
*
* commitment merkle prefix of the counterparty chain.
*
*
* .ibc.core.commitment.v1.MerklePrefix prefix = 3 [(.gogoproto.nullable) = false];
*/
public ibc.core.commitment.v1.Commitment.MerklePrefixOrBuilder getPrefixOrBuilder() {
if (prefixBuilder_ != null) {
return prefixBuilder_.getMessageOrBuilder();
} else {
return prefix_ == null ?
ibc.core.commitment.v1.Commitment.MerklePrefix.getDefaultInstance() : prefix_;
}
}
/**
*
* commitment merkle prefix of the counterparty chain.
*
*
* .ibc.core.commitment.v1.MerklePrefix prefix = 3 [(.gogoproto.nullable) = false];
*/
private com.google.protobuf.SingleFieldBuilderV3<
ibc.core.commitment.v1.Commitment.MerklePrefix, ibc.core.commitment.v1.Commitment.MerklePrefix.Builder, ibc.core.commitment.v1.Commitment.MerklePrefixOrBuilder>
getPrefixFieldBuilder() {
if (prefixBuilder_ == null) {
prefixBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ibc.core.commitment.v1.Commitment.MerklePrefix, ibc.core.commitment.v1.Commitment.MerklePrefix.Builder, ibc.core.commitment.v1.Commitment.MerklePrefixOrBuilder>(
getPrefix(),
getParentForChildren(),
isClean());
prefix_ = null;
}
return prefixBuilder_;
}
@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.Counterparty)
}
// @@protoc_insertion_point(class_scope:ibc.core.connection.v1.Counterparty)
private static final ibc.core.connection.v1.Connection.Counterparty DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ibc.core.connection.v1.Connection.Counterparty();
}
public static ibc.core.connection.v1.Connection.Counterparty getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Counterparty parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Counterparty(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.Connection.Counterparty getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ClientPathsOrBuilder extends
// @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.ClientPaths)
com.google.protobuf.MessageOrBuilder {
/**
*
* list of connection paths
*
*
* repeated string paths = 1;
*/
java.util.List
getPathsList();
/**
*
* list of connection paths
*
*
* repeated string paths = 1;
*/
int getPathsCount();
/**
*
* list of connection paths
*
*
* repeated string paths = 1;
*/
java.lang.String getPaths(int index);
/**
*
* list of connection paths
*
*
* repeated string paths = 1;
*/
com.google.protobuf.ByteString
getPathsBytes(int index);
}
/**
*
* ClientPaths define all the connection paths for a client state.
*
*
* Protobuf type {@code ibc.core.connection.v1.ClientPaths}
*/
public static final class ClientPaths extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ibc.core.connection.v1.ClientPaths)
ClientPathsOrBuilder {
private static final long serialVersionUID = 0L;
// Use ClientPaths.newBuilder() to construct.
private ClientPaths(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ClientPaths() {
paths_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ClientPaths(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
paths_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
paths_.add(s);
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
paths_ = paths_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_ClientPaths_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_ClientPaths_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.connection.v1.Connection.ClientPaths.class, ibc.core.connection.v1.Connection.ClientPaths.Builder.class);
}
public static final int PATHS_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList paths_;
/**
*
* list of connection paths
*
*
* repeated string paths = 1;
*/
public com.google.protobuf.ProtocolStringList
getPathsList() {
return paths_;
}
/**
*
* list of connection paths
*
*
* repeated string paths = 1;
*/
public int getPathsCount() {
return paths_.size();
}
/**
*
* list of connection paths
*
*
* repeated string paths = 1;
*/
public java.lang.String getPaths(int index) {
return paths_.get(index);
}
/**
*
* list of connection paths
*
*
* repeated string paths = 1;
*/
public com.google.protobuf.ByteString
getPathsBytes(int index) {
return paths_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < paths_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, paths_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < paths_.size(); i++) {
dataSize += computeStringSizeNoTag(paths_.getRaw(i));
}
size += dataSize;
size += 1 * getPathsList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ibc.core.connection.v1.Connection.ClientPaths)) {
return super.equals(obj);
}
ibc.core.connection.v1.Connection.ClientPaths other = (ibc.core.connection.v1.Connection.ClientPaths) obj;
boolean result = true;
result = result && getPathsList()
.equals(other.getPathsList());
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 (getPathsCount() > 0) {
hash = (37 * hash) + PATHS_FIELD_NUMBER;
hash = (53 * hash) + getPathsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ibc.core.connection.v1.Connection.ClientPaths parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Connection.ClientPaths 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.Connection.ClientPaths parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Connection.ClientPaths 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.Connection.ClientPaths parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Connection.ClientPaths parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.connection.v1.Connection.ClientPaths parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Connection.ClientPaths 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.Connection.ClientPaths parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Connection.ClientPaths 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.Connection.ClientPaths parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Connection.ClientPaths 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.Connection.ClientPaths 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;
}
/**
*
* ClientPaths define all the connection paths for a client state.
*
*
* Protobuf type {@code ibc.core.connection.v1.ClientPaths}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.ClientPaths)
ibc.core.connection.v1.Connection.ClientPathsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_ClientPaths_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_ClientPaths_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.connection.v1.Connection.ClientPaths.class, ibc.core.connection.v1.Connection.ClientPaths.Builder.class);
}
// Construct using ibc.core.connection.v1.Connection.ClientPaths.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();
paths_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_ClientPaths_descriptor;
}
@java.lang.Override
public ibc.core.connection.v1.Connection.ClientPaths getDefaultInstanceForType() {
return ibc.core.connection.v1.Connection.ClientPaths.getDefaultInstance();
}
@java.lang.Override
public ibc.core.connection.v1.Connection.ClientPaths build() {
ibc.core.connection.v1.Connection.ClientPaths result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ibc.core.connection.v1.Connection.ClientPaths buildPartial() {
ibc.core.connection.v1.Connection.ClientPaths result = new ibc.core.connection.v1.Connection.ClientPaths(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
paths_ = paths_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.paths_ = paths_;
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.Connection.ClientPaths) {
return mergeFrom((ibc.core.connection.v1.Connection.ClientPaths)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ibc.core.connection.v1.Connection.ClientPaths other) {
if (other == ibc.core.connection.v1.Connection.ClientPaths.getDefaultInstance()) return this;
if (!other.paths_.isEmpty()) {
if (paths_.isEmpty()) {
paths_ = other.paths_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensurePathsIsMutable();
paths_.addAll(other.paths_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ibc.core.connection.v1.Connection.ClientPaths parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ibc.core.connection.v1.Connection.ClientPaths) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList paths_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensurePathsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
paths_ = new com.google.protobuf.LazyStringArrayList(paths_);
bitField0_ |= 0x00000001;
}
}
/**
*
* list of connection paths
*
*
* repeated string paths = 1;
*/
public com.google.protobuf.ProtocolStringList
getPathsList() {
return paths_.getUnmodifiableView();
}
/**
*
* list of connection paths
*
*
* repeated string paths = 1;
*/
public int getPathsCount() {
return paths_.size();
}
/**
*
* list of connection paths
*
*
* repeated string paths = 1;
*/
public java.lang.String getPaths(int index) {
return paths_.get(index);
}
/**
*
* list of connection paths
*
*
* repeated string paths = 1;
*/
public com.google.protobuf.ByteString
getPathsBytes(int index) {
return paths_.getByteString(index);
}
/**
*
* list of connection paths
*
*
* repeated string paths = 1;
*/
public Builder setPaths(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePathsIsMutable();
paths_.set(index, value);
onChanged();
return this;
}
/**
*
* list of connection paths
*
*
* repeated string paths = 1;
*/
public Builder addPaths(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePathsIsMutable();
paths_.add(value);
onChanged();
return this;
}
/**
*
* list of connection paths
*
*
* repeated string paths = 1;
*/
public Builder addAllPaths(
java.lang.Iterable values) {
ensurePathsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, paths_);
onChanged();
return this;
}
/**
*
* list of connection paths
*
*
* repeated string paths = 1;
*/
public Builder clearPaths() {
paths_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* list of connection paths
*
*
* repeated string paths = 1;
*/
public Builder addPathsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensurePathsIsMutable();
paths_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:ibc.core.connection.v1.ClientPaths)
}
// @@protoc_insertion_point(class_scope:ibc.core.connection.v1.ClientPaths)
private static final ibc.core.connection.v1.Connection.ClientPaths DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ibc.core.connection.v1.Connection.ClientPaths();
}
public static ibc.core.connection.v1.Connection.ClientPaths getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ClientPaths parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ClientPaths(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.Connection.ClientPaths getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConnectionPathsOrBuilder extends
// @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.ConnectionPaths)
com.google.protobuf.MessageOrBuilder {
/**
*
* client state unique identifier
*
*
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
java.lang.String getClientId();
/**
*
* client state unique identifier
*
*
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
com.google.protobuf.ByteString
getClientIdBytes();
/**
*
* list of connection paths
*
*
* repeated string paths = 2;
*/
java.util.List
getPathsList();
/**
*
* list of connection paths
*
*
* repeated string paths = 2;
*/
int getPathsCount();
/**
*
* list of connection paths
*
*
* repeated string paths = 2;
*/
java.lang.String getPaths(int index);
/**
*
* list of connection paths
*
*
* repeated string paths = 2;
*/
com.google.protobuf.ByteString
getPathsBytes(int index);
}
/**
*
* ConnectionPaths define all the connection paths for a given client state.
*
*
* Protobuf type {@code ibc.core.connection.v1.ConnectionPaths}
*/
public static final class ConnectionPaths extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ibc.core.connection.v1.ConnectionPaths)
ConnectionPathsOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConnectionPaths.newBuilder() to construct.
private ConnectionPaths(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConnectionPaths() {
clientId_ = "";
paths_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ConnectionPaths(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
clientId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
paths_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
paths_.add(s);
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
paths_ = paths_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_ConnectionPaths_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_ConnectionPaths_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.connection.v1.Connection.ConnectionPaths.class, ibc.core.connection.v1.Connection.ConnectionPaths.Builder.class);
}
private int bitField0_;
public static final int CLIENT_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object clientId_;
/**
*
* client state unique identifier
*
*
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public java.lang.String getClientId() {
java.lang.Object ref = clientId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clientId_ = s;
return s;
}
}
/**
*
* client state unique identifier
*
*
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public com.google.protobuf.ByteString
getClientIdBytes() {
java.lang.Object ref = clientId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clientId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PATHS_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList paths_;
/**
*
* list of connection paths
*
*
* repeated string paths = 2;
*/
public com.google.protobuf.ProtocolStringList
getPathsList() {
return paths_;
}
/**
*
* list of connection paths
*
*
* repeated string paths = 2;
*/
public int getPathsCount() {
return paths_.size();
}
/**
*
* list of connection paths
*
*
* repeated string paths = 2;
*/
public java.lang.String getPaths(int index) {
return paths_.get(index);
}
/**
*
* list of connection paths
*
*
* repeated string paths = 2;
*/
public com.google.protobuf.ByteString
getPathsBytes(int index) {
return paths_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getClientIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientId_);
}
for (int i = 0; i < paths_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, paths_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getClientIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientId_);
}
{
int dataSize = 0;
for (int i = 0; i < paths_.size(); i++) {
dataSize += computeStringSizeNoTag(paths_.getRaw(i));
}
size += dataSize;
size += 1 * getPathsList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ibc.core.connection.v1.Connection.ConnectionPaths)) {
return super.equals(obj);
}
ibc.core.connection.v1.Connection.ConnectionPaths other = (ibc.core.connection.v1.Connection.ConnectionPaths) obj;
boolean result = true;
result = result && getClientId()
.equals(other.getClientId());
result = result && getPathsList()
.equals(other.getPathsList());
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) + CLIENT_ID_FIELD_NUMBER;
hash = (53 * hash) + getClientId().hashCode();
if (getPathsCount() > 0) {
hash = (37 * hash) + PATHS_FIELD_NUMBER;
hash = (53 * hash) + getPathsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ibc.core.connection.v1.Connection.ConnectionPaths parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Connection.ConnectionPaths 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.Connection.ConnectionPaths parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Connection.ConnectionPaths 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.Connection.ConnectionPaths parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Connection.ConnectionPaths parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.connection.v1.Connection.ConnectionPaths parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Connection.ConnectionPaths 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.Connection.ConnectionPaths parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Connection.ConnectionPaths 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.Connection.ConnectionPaths parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Connection.ConnectionPaths 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.Connection.ConnectionPaths 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;
}
/**
*
* ConnectionPaths define all the connection paths for a given client state.
*
*
* Protobuf type {@code ibc.core.connection.v1.ConnectionPaths}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.ConnectionPaths)
ibc.core.connection.v1.Connection.ConnectionPathsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_ConnectionPaths_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_ConnectionPaths_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.connection.v1.Connection.ConnectionPaths.class, ibc.core.connection.v1.Connection.ConnectionPaths.Builder.class);
}
// Construct using ibc.core.connection.v1.Connection.ConnectionPaths.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();
clientId_ = "";
paths_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_ConnectionPaths_descriptor;
}
@java.lang.Override
public ibc.core.connection.v1.Connection.ConnectionPaths getDefaultInstanceForType() {
return ibc.core.connection.v1.Connection.ConnectionPaths.getDefaultInstance();
}
@java.lang.Override
public ibc.core.connection.v1.Connection.ConnectionPaths build() {
ibc.core.connection.v1.Connection.ConnectionPaths result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ibc.core.connection.v1.Connection.ConnectionPaths buildPartial() {
ibc.core.connection.v1.Connection.ConnectionPaths result = new ibc.core.connection.v1.Connection.ConnectionPaths(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.clientId_ = clientId_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
paths_ = paths_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.paths_ = paths_;
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.Connection.ConnectionPaths) {
return mergeFrom((ibc.core.connection.v1.Connection.ConnectionPaths)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ibc.core.connection.v1.Connection.ConnectionPaths other) {
if (other == ibc.core.connection.v1.Connection.ConnectionPaths.getDefaultInstance()) return this;
if (!other.getClientId().isEmpty()) {
clientId_ = other.clientId_;
onChanged();
}
if (!other.paths_.isEmpty()) {
if (paths_.isEmpty()) {
paths_ = other.paths_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensurePathsIsMutable();
paths_.addAll(other.paths_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ibc.core.connection.v1.Connection.ConnectionPaths parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ibc.core.connection.v1.Connection.ConnectionPaths) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object clientId_ = "";
/**
*
* client state unique identifier
*
*
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public java.lang.String getClientId() {
java.lang.Object ref = clientId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clientId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* client state unique identifier
*
*
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public com.google.protobuf.ByteString
getClientIdBytes() {
java.lang.Object ref = clientId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clientId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* client state unique identifier
*
*
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public Builder setClientId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
clientId_ = value;
onChanged();
return this;
}
/**
*
* client state unique identifier
*
*
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public Builder clearClientId() {
clientId_ = getDefaultInstance().getClientId();
onChanged();
return this;
}
/**
*
* client state unique identifier
*
*
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
*/
public Builder setClientIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
clientId_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList paths_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensurePathsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
paths_ = new com.google.protobuf.LazyStringArrayList(paths_);
bitField0_ |= 0x00000002;
}
}
/**
*
* list of connection paths
*
*
* repeated string paths = 2;
*/
public com.google.protobuf.ProtocolStringList
getPathsList() {
return paths_.getUnmodifiableView();
}
/**
*
* list of connection paths
*
*
* repeated string paths = 2;
*/
public int getPathsCount() {
return paths_.size();
}
/**
*
* list of connection paths
*
*
* repeated string paths = 2;
*/
public java.lang.String getPaths(int index) {
return paths_.get(index);
}
/**
*
* list of connection paths
*
*
* repeated string paths = 2;
*/
public com.google.protobuf.ByteString
getPathsBytes(int index) {
return paths_.getByteString(index);
}
/**
*
* list of connection paths
*
*
* repeated string paths = 2;
*/
public Builder setPaths(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePathsIsMutable();
paths_.set(index, value);
onChanged();
return this;
}
/**
*
* list of connection paths
*
*
* repeated string paths = 2;
*/
public Builder addPaths(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePathsIsMutable();
paths_.add(value);
onChanged();
return this;
}
/**
*
* list of connection paths
*
*
* repeated string paths = 2;
*/
public Builder addAllPaths(
java.lang.Iterable values) {
ensurePathsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, paths_);
onChanged();
return this;
}
/**
*
* list of connection paths
*
*
* repeated string paths = 2;
*/
public Builder clearPaths() {
paths_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* list of connection paths
*
*
* repeated string paths = 2;
*/
public Builder addPathsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensurePathsIsMutable();
paths_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:ibc.core.connection.v1.ConnectionPaths)
}
// @@protoc_insertion_point(class_scope:ibc.core.connection.v1.ConnectionPaths)
private static final ibc.core.connection.v1.Connection.ConnectionPaths DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ibc.core.connection.v1.Connection.ConnectionPaths();
}
public static ibc.core.connection.v1.Connection.ConnectionPaths getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ConnectionPaths parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ConnectionPaths(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.Connection.ConnectionPaths getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface VersionOrBuilder extends
// @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.Version)
com.google.protobuf.MessageOrBuilder {
/**
*
* unique version identifier
*
*
* string identifier = 1;
*/
java.lang.String getIdentifier();
/**
*
* unique version identifier
*
*
* string identifier = 1;
*/
com.google.protobuf.ByteString
getIdentifierBytes();
/**
*
* list of features compatible with the specified identifier
*
*
* repeated string features = 2;
*/
java.util.List
getFeaturesList();
/**
*
* list of features compatible with the specified identifier
*
*
* repeated string features = 2;
*/
int getFeaturesCount();
/**
*
* list of features compatible with the specified identifier
*
*
* repeated string features = 2;
*/
java.lang.String getFeatures(int index);
/**
*
* list of features compatible with the specified identifier
*
*
* repeated string features = 2;
*/
com.google.protobuf.ByteString
getFeaturesBytes(int index);
}
/**
*
* Version defines the versioning scheme used to negotiate the IBC verison in
* the connection handshake.
*
*
* Protobuf type {@code ibc.core.connection.v1.Version}
*/
public static final class Version extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ibc.core.connection.v1.Version)
VersionOrBuilder {
private static final long serialVersionUID = 0L;
// Use Version.newBuilder() to construct.
private Version(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Version() {
identifier_ = "";
features_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Version(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
identifier_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
features_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
features_.add(s);
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
features_ = features_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_Version_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_Version_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.connection.v1.Connection.Version.class, ibc.core.connection.v1.Connection.Version.Builder.class);
}
private int bitField0_;
public static final int IDENTIFIER_FIELD_NUMBER = 1;
private volatile java.lang.Object identifier_;
/**
*
* unique version identifier
*
*
* string identifier = 1;
*/
public java.lang.String getIdentifier() {
java.lang.Object ref = identifier_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
identifier_ = s;
return s;
}
}
/**
*
* unique version identifier
*
*
* string identifier = 1;
*/
public com.google.protobuf.ByteString
getIdentifierBytes() {
java.lang.Object ref = identifier_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
identifier_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FEATURES_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList features_;
/**
*
* list of features compatible with the specified identifier
*
*
* repeated string features = 2;
*/
public com.google.protobuf.ProtocolStringList
getFeaturesList() {
return features_;
}
/**
*
* list of features compatible with the specified identifier
*
*
* repeated string features = 2;
*/
public int getFeaturesCount() {
return features_.size();
}
/**
*
* list of features compatible with the specified identifier
*
*
* repeated string features = 2;
*/
public java.lang.String getFeatures(int index) {
return features_.get(index);
}
/**
*
* list of features compatible with the specified identifier
*
*
* repeated string features = 2;
*/
public com.google.protobuf.ByteString
getFeaturesBytes(int index) {
return features_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getIdentifierBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, identifier_);
}
for (int i = 0; i < features_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, features_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getIdentifierBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, identifier_);
}
{
int dataSize = 0;
for (int i = 0; i < features_.size(); i++) {
dataSize += computeStringSizeNoTag(features_.getRaw(i));
}
size += dataSize;
size += 1 * getFeaturesList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ibc.core.connection.v1.Connection.Version)) {
return super.equals(obj);
}
ibc.core.connection.v1.Connection.Version other = (ibc.core.connection.v1.Connection.Version) obj;
boolean result = true;
result = result && getIdentifier()
.equals(other.getIdentifier());
result = result && getFeaturesList()
.equals(other.getFeaturesList());
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) + IDENTIFIER_FIELD_NUMBER;
hash = (53 * hash) + getIdentifier().hashCode();
if (getFeaturesCount() > 0) {
hash = (37 * hash) + FEATURES_FIELD_NUMBER;
hash = (53 * hash) + getFeaturesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ibc.core.connection.v1.Connection.Version parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Connection.Version 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.Connection.Version parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Connection.Version 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.Connection.Version parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Connection.Version parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.connection.v1.Connection.Version parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Connection.Version 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.Connection.Version parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Connection.Version 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.Connection.Version parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Connection.Version 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.Connection.Version 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;
}
/**
*
* Version defines the versioning scheme used to negotiate the IBC verison in
* the connection handshake.
*
*
* Protobuf type {@code ibc.core.connection.v1.Version}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.Version)
ibc.core.connection.v1.Connection.VersionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_Version_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_Version_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.connection.v1.Connection.Version.class, ibc.core.connection.v1.Connection.Version.Builder.class);
}
// Construct using ibc.core.connection.v1.Connection.Version.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();
identifier_ = "";
features_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ibc.core.connection.v1.Connection.internal_static_ibc_core_connection_v1_Version_descriptor;
}
@java.lang.Override
public ibc.core.connection.v1.Connection.Version getDefaultInstanceForType() {
return ibc.core.connection.v1.Connection.Version.getDefaultInstance();
}
@java.lang.Override
public ibc.core.connection.v1.Connection.Version build() {
ibc.core.connection.v1.Connection.Version result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ibc.core.connection.v1.Connection.Version buildPartial() {
ibc.core.connection.v1.Connection.Version result = new ibc.core.connection.v1.Connection.Version(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.identifier_ = identifier_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
features_ = features_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.features_ = features_;
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.Connection.Version) {
return mergeFrom((ibc.core.connection.v1.Connection.Version)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ibc.core.connection.v1.Connection.Version other) {
if (other == ibc.core.connection.v1.Connection.Version.getDefaultInstance()) return this;
if (!other.getIdentifier().isEmpty()) {
identifier_ = other.identifier_;
onChanged();
}
if (!other.features_.isEmpty()) {
if (features_.isEmpty()) {
features_ = other.features_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureFeaturesIsMutable();
features_.addAll(other.features_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ibc.core.connection.v1.Connection.Version parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ibc.core.connection.v1.Connection.Version) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object identifier_ = "";
/**
*
* unique version identifier
*
*
* string identifier = 1;
*/
public java.lang.String getIdentifier() {
java.lang.Object ref = identifier_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
identifier_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* unique version identifier
*
*
* string identifier = 1;
*/
public com.google.protobuf.ByteString
getIdentifierBytes() {
java.lang.Object ref = identifier_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
identifier_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* unique version identifier
*
*
* string identifier = 1;
*/
public Builder setIdentifier(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
identifier_ = value;
onChanged();
return this;
}
/**
*
* unique version identifier
*
*
* string identifier = 1;
*/
public Builder clearIdentifier() {
identifier_ = getDefaultInstance().getIdentifier();
onChanged();
return this;
}
/**
*
* unique version identifier
*
*
* string identifier = 1;
*/
public Builder setIdentifierBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
identifier_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList features_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureFeaturesIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
features_ = new com.google.protobuf.LazyStringArrayList(features_);
bitField0_ |= 0x00000002;
}
}
/**
*
* list of features compatible with the specified identifier
*
*
* repeated string features = 2;
*/
public com.google.protobuf.ProtocolStringList
getFeaturesList() {
return features_.getUnmodifiableView();
}
/**
*
* list of features compatible with the specified identifier
*
*
* repeated string features = 2;
*/
public int getFeaturesCount() {
return features_.size();
}
/**
*
* list of features compatible with the specified identifier
*
*
* repeated string features = 2;
*/
public java.lang.String getFeatures(int index) {
return features_.get(index);
}
/**
*
* list of features compatible with the specified identifier
*
*
* repeated string features = 2;
*/
public com.google.protobuf.ByteString
getFeaturesBytes(int index) {
return features_.getByteString(index);
}
/**
*
* list of features compatible with the specified identifier
*
*
* repeated string features = 2;
*/
public Builder setFeatures(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureFeaturesIsMutable();
features_.set(index, value);
onChanged();
return this;
}
/**
*
* list of features compatible with the specified identifier
*
*
* repeated string features = 2;
*/
public Builder addFeatures(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureFeaturesIsMutable();
features_.add(value);
onChanged();
return this;
}
/**
*
* list of features compatible with the specified identifier
*
*
* repeated string features = 2;
*/
public Builder addAllFeatures(
java.lang.Iterable values) {
ensureFeaturesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, features_);
onChanged();
return this;
}
/**
*
* list of features compatible with the specified identifier
*
*
* repeated string features = 2;
*/
public Builder clearFeatures() {
features_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* list of features compatible with the specified identifier
*
*
* repeated string features = 2;
*/
public Builder addFeaturesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureFeaturesIsMutable();
features_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:ibc.core.connection.v1.Version)
}
// @@protoc_insertion_point(class_scope:ibc.core.connection.v1.Version)
private static final ibc.core.connection.v1.Connection.Version DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ibc.core.connection.v1.Connection.Version();
}
public static ibc.core.connection.v1.Connection.Version getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Version parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Version(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.Connection.Version getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ibc_core_connection_v1_ConnectionEnd_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ibc_core_connection_v1_ConnectionEnd_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ibc_core_connection_v1_IdentifiedConnection_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ibc_core_connection_v1_IdentifiedConnection_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ibc_core_connection_v1_Counterparty_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ibc_core_connection_v1_Counterparty_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ibc_core_connection_v1_ClientPaths_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ibc_core_connection_v1_ClientPaths_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ibc_core_connection_v1_ConnectionPaths_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ibc_core_connection_v1_ConnectionPaths_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ibc_core_connection_v1_Version_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ibc_core_connection_v1_Version_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/connection.prot" +
"o\022\026ibc.core.connection.v1\032\024gogoproto/gog" +
"o.proto\032\'ibc/core/commitment/v1/commitme" +
"nt.proto\"\220\002\n\rConnectionEnd\022\'\n\tclient_id\030" +
"\001 \001(\tB\024\362\336\037\020yaml:\"client_id\"\0221\n\010versions\030" +
"\002 \003(\0132\037.ibc.core.connection.v1.Version\022," +
"\n\005state\030\003 \001(\0162\035.ibc.core.connection.v1.S" +
"tate\022@\n\014counterparty\030\004 \001(\0132$.ibc.core.co" +
"nnection.v1.CounterpartyB\004\310\336\037\000\022-\n\014delay_" +
"period\030\005 \001(\004B\027\362\336\037\023yaml:\"delay_period\":\004\210" +
"\240\037\000\"\262\002\n\024IdentifiedConnection\022\031\n\002id\030\001 \001(\t" +
"B\r\362\336\037\tyaml:\"id\"\022\'\n\tclient_id\030\002 \001(\tB\024\362\336\037\020" +
"yaml:\"client_id\"\0221\n\010versions\030\003 \003(\0132\037.ibc" +
".core.connection.v1.Version\022,\n\005state\030\004 \001" +
"(\0162\035.ibc.core.connection.v1.State\022@\n\014cou" +
"nterparty\030\005 \001(\0132$.ibc.core.connection.v1" +
".CounterpartyB\004\310\336\037\000\022-\n\014delay_period\030\006 \001(" +
"\004B\027\362\336\037\023yaml:\"delay_period\":\004\210\240\037\000\"\252\001\n\014Cou" +
"nterparty\022\'\n\tclient_id\030\001 \001(\tB\024\362\336\037\020yaml:\"" +
"client_id\"\022/\n\rconnection_id\030\002 \001(\tB\030\362\336\037\024y" +
"aml:\"connection_id\"\022:\n\006prefix\030\003 \001(\0132$.ib" +
"c.core.commitment.v1.MerklePrefixB\004\310\336\037\000:" +
"\004\210\240\037\000\"\034\n\013ClientPaths\022\r\n\005paths\030\001 \003(\t\"I\n\017C" +
"onnectionPaths\022\'\n\tclient_id\030\001 \001(\tB\024\362\336\037\020y" +
"aml:\"client_id\"\022\r\n\005paths\030\002 \003(\t\"5\n\007Versio" +
"n\022\022\n\nidentifier\030\001 \001(\t\022\020\n\010features\030\002 \003(\t:" +
"\004\210\240\037\000*\231\001\n\005State\0226\n\037STATE_UNINITIALIZED_U" +
"NSPECIFIED\020\000\032\021\212\235 \rUNINITIALIZED\022\030\n\nSTATE" +
"_INIT\020\001\032\010\212\235 \004INIT\022\036\n\rSTATE_TRYOPEN\020\002\032\013\212\235" +
" \007TRYOPEN\022\030\n\nSTATE_OPEN\020\003\032\010\212\235 \004OPEN\032\004\210\243\036" +
"\000B=Z;github.com/cosmos/cosmos-sdk/x/ibc/" +
"core/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.commitment.v1.Commitment.getDescriptor(),
}, assigner);
internal_static_ibc_core_connection_v1_ConnectionEnd_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_ibc_core_connection_v1_ConnectionEnd_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ibc_core_connection_v1_ConnectionEnd_descriptor,
new java.lang.String[] { "ClientId", "Versions", "State", "Counterparty", "DelayPeriod", });
internal_static_ibc_core_connection_v1_IdentifiedConnection_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_ibc_core_connection_v1_IdentifiedConnection_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ibc_core_connection_v1_IdentifiedConnection_descriptor,
new java.lang.String[] { "Id", "ClientId", "Versions", "State", "Counterparty", "DelayPeriod", });
internal_static_ibc_core_connection_v1_Counterparty_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_ibc_core_connection_v1_Counterparty_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ibc_core_connection_v1_Counterparty_descriptor,
new java.lang.String[] { "ClientId", "ConnectionId", "Prefix", });
internal_static_ibc_core_connection_v1_ClientPaths_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_ibc_core_connection_v1_ClientPaths_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ibc_core_connection_v1_ClientPaths_descriptor,
new java.lang.String[] { "Paths", });
internal_static_ibc_core_connection_v1_ConnectionPaths_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_ibc_core_connection_v1_ConnectionPaths_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ibc_core_connection_v1_ConnectionPaths_descriptor,
new java.lang.String[] { "ClientId", "Paths", });
internal_static_ibc_core_connection_v1_Version_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_ibc_core_connection_v1_Version_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ibc_core_connection_v1_Version_descriptor,
new java.lang.String[] { "Identifier", "Features", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.protobuf.GoGoProtos.enumvalueCustomname);
registry.add(com.google.protobuf.GoGoProtos.goprotoEnumPrefix);
registry.add(com.google.protobuf.GoGoProtos.goprotoGetters);
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.commitment.v1.Commitment.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}