
ibc.core.connection.v1.Tx Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ibc/core/connection/v1/tx.proto
package ibc.core.connection.v1;
public final class Tx {
private Tx() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface MsgConnectionOpenInitOrBuilder extends
// @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.MsgConnectionOpenInit)
com.google.protobuf.MessageOrBuilder {
/**
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
* @return The clientId.
*/
java.lang.String getClientId();
/**
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
* @return The bytes for clientId.
*/
com.google.protobuf.ByteString
getClientIdBytes();
/**
* .ibc.core.connection.v1.Counterparty counterparty = 2 [(.gogoproto.nullable) = false];
* @return Whether the counterparty field is set.
*/
boolean hasCounterparty();
/**
* .ibc.core.connection.v1.Counterparty counterparty = 2 [(.gogoproto.nullable) = false];
* @return The counterparty.
*/
ibc.core.connection.v1.Connection.Counterparty getCounterparty();
/**
* .ibc.core.connection.v1.Counterparty counterparty = 2 [(.gogoproto.nullable) = false];
*/
ibc.core.connection.v1.Connection.CounterpartyOrBuilder getCounterpartyOrBuilder();
/**
* .ibc.core.connection.v1.Version version = 3;
* @return Whether the version field is set.
*/
boolean hasVersion();
/**
* .ibc.core.connection.v1.Version version = 3;
* @return The version.
*/
ibc.core.connection.v1.Connection.Version getVersion();
/**
* .ibc.core.connection.v1.Version version = 3;
*/
ibc.core.connection.v1.Connection.VersionOrBuilder getVersionOrBuilder();
/**
* uint64 delay_period = 4 [(.gogoproto.moretags) = "yaml:\"delay_period\""];
* @return The delayPeriod.
*/
long getDelayPeriod();
/**
* string signer = 5;
* @return The signer.
*/
java.lang.String getSigner();
/**
* string signer = 5;
* @return The bytes for signer.
*/
com.google.protobuf.ByteString
getSignerBytes();
}
/**
*
* MsgConnectionOpenInit defines the msg sent by an account on Chain A to
* initialize a connection with Chain B.
*
*
* Protobuf type {@code ibc.core.connection.v1.MsgConnectionOpenInit}
*/
public static final class MsgConnectionOpenInit extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ibc.core.connection.v1.MsgConnectionOpenInit)
MsgConnectionOpenInitOrBuilder {
private static final long serialVersionUID = 0L;
// Use MsgConnectionOpenInit.newBuilder() to construct.
private MsgConnectionOpenInit(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MsgConnectionOpenInit() {
clientId_ = "";
signer_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MsgConnectionOpenInit();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MsgConnectionOpenInit(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
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 26: {
ibc.core.connection.v1.Connection.Version.Builder subBuilder = null;
if (version_ != null) {
subBuilder = version_.toBuilder();
}
version_ = input.readMessage(ibc.core.connection.v1.Connection.Version.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(version_);
version_ = subBuilder.buildPartial();
}
break;
}
case 32: {
delayPeriod_ = input.readUInt64();
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
signer_ = s;
break;
}
default: {
if (!parseUnknownField(
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.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenInit_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenInit_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.connection.v1.Tx.MsgConnectionOpenInit.class, ibc.core.connection.v1.Tx.MsgConnectionOpenInit.Builder.class);
}
public static final int CLIENT_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object clientId_;
/**
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
* @return The clientId.
*/
@java.lang.Override
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;
}
}
/**
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
* @return The bytes for clientId.
*/
@java.lang.Override
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 COUNTERPARTY_FIELD_NUMBER = 2;
private ibc.core.connection.v1.Connection.Counterparty counterparty_;
/**
* .ibc.core.connection.v1.Counterparty counterparty = 2 [(.gogoproto.nullable) = false];
* @return Whether the counterparty field is set.
*/
@java.lang.Override
public boolean hasCounterparty() {
return counterparty_ != null;
}
/**
* .ibc.core.connection.v1.Counterparty counterparty = 2 [(.gogoproto.nullable) = false];
* @return The counterparty.
*/
@java.lang.Override
public ibc.core.connection.v1.Connection.Counterparty getCounterparty() {
return counterparty_ == null ? ibc.core.connection.v1.Connection.Counterparty.getDefaultInstance() : counterparty_;
}
/**
* .ibc.core.connection.v1.Counterparty counterparty = 2 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public ibc.core.connection.v1.Connection.CounterpartyOrBuilder getCounterpartyOrBuilder() {
return getCounterparty();
}
public static final int VERSION_FIELD_NUMBER = 3;
private ibc.core.connection.v1.Connection.Version version_;
/**
* .ibc.core.connection.v1.Version version = 3;
* @return Whether the version field is set.
*/
@java.lang.Override
public boolean hasVersion() {
return version_ != null;
}
/**
* .ibc.core.connection.v1.Version version = 3;
* @return The version.
*/
@java.lang.Override
public ibc.core.connection.v1.Connection.Version getVersion() {
return version_ == null ? ibc.core.connection.v1.Connection.Version.getDefaultInstance() : version_;
}
/**
* .ibc.core.connection.v1.Version version = 3;
*/
@java.lang.Override
public ibc.core.connection.v1.Connection.VersionOrBuilder getVersionOrBuilder() {
return getVersion();
}
public static final int DELAY_PERIOD_FIELD_NUMBER = 4;
private long delayPeriod_;
/**
* uint64 delay_period = 4 [(.gogoproto.moretags) = "yaml:\"delay_period\""];
* @return The delayPeriod.
*/
@java.lang.Override
public long getDelayPeriod() {
return delayPeriod_;
}
public static final int SIGNER_FIELD_NUMBER = 5;
private volatile java.lang.Object signer_;
/**
* string signer = 5;
* @return The signer.
*/
@java.lang.Override
public java.lang.String getSigner() {
java.lang.Object ref = signer_;
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();
signer_ = s;
return s;
}
}
/**
* string signer = 5;
* @return The bytes for signer.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSignerBytes() {
java.lang.Object ref = signer_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
signer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientId_);
}
if (counterparty_ != null) {
output.writeMessage(2, getCounterparty());
}
if (version_ != null) {
output.writeMessage(3, getVersion());
}
if (delayPeriod_ != 0L) {
output.writeUInt64(4, delayPeriod_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(signer_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, signer_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientId_);
}
if (counterparty_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getCounterparty());
}
if (version_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getVersion());
}
if (delayPeriod_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(4, delayPeriod_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(signer_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, signer_);
}
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.Tx.MsgConnectionOpenInit)) {
return super.equals(obj);
}
ibc.core.connection.v1.Tx.MsgConnectionOpenInit other = (ibc.core.connection.v1.Tx.MsgConnectionOpenInit) obj;
if (!getClientId()
.equals(other.getClientId())) return false;
if (hasCounterparty() != other.hasCounterparty()) return false;
if (hasCounterparty()) {
if (!getCounterparty()
.equals(other.getCounterparty())) return false;
}
if (hasVersion() != other.hasVersion()) return false;
if (hasVersion()) {
if (!getVersion()
.equals(other.getVersion())) return false;
}
if (getDelayPeriod()
!= other.getDelayPeriod()) return false;
if (!getSigner()
.equals(other.getSigner())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@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 (hasCounterparty()) {
hash = (37 * hash) + COUNTERPARTY_FIELD_NUMBER;
hash = (53 * hash) + getCounterparty().hashCode();
}
if (hasVersion()) {
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion().hashCode();
}
hash = (37 * hash) + DELAY_PERIOD_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDelayPeriod());
hash = (37 * hash) + SIGNER_FIELD_NUMBER;
hash = (53 * hash) + getSigner().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenInit parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenInit 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.Tx.MsgConnectionOpenInit parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenInit 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.Tx.MsgConnectionOpenInit parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenInit parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenInit parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenInit 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.Tx.MsgConnectionOpenInit parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenInit 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.Tx.MsgConnectionOpenInit parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenInit 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.Tx.MsgConnectionOpenInit 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;
}
/**
*
* MsgConnectionOpenInit defines the msg sent by an account on Chain A to
* initialize a connection with Chain B.
*
*
* Protobuf type {@code ibc.core.connection.v1.MsgConnectionOpenInit}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.MsgConnectionOpenInit)
ibc.core.connection.v1.Tx.MsgConnectionOpenInitOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenInit_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenInit_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.connection.v1.Tx.MsgConnectionOpenInit.class, ibc.core.connection.v1.Tx.MsgConnectionOpenInit.Builder.class);
}
// Construct using ibc.core.connection.v1.Tx.MsgConnectionOpenInit.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_ = "";
if (counterpartyBuilder_ == null) {
counterparty_ = null;
} else {
counterparty_ = null;
counterpartyBuilder_ = null;
}
if (versionBuilder_ == null) {
version_ = null;
} else {
version_ = null;
versionBuilder_ = null;
}
delayPeriod_ = 0L;
signer_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenInit_descriptor;
}
@java.lang.Override
public ibc.core.connection.v1.Tx.MsgConnectionOpenInit getDefaultInstanceForType() {
return ibc.core.connection.v1.Tx.MsgConnectionOpenInit.getDefaultInstance();
}
@java.lang.Override
public ibc.core.connection.v1.Tx.MsgConnectionOpenInit build() {
ibc.core.connection.v1.Tx.MsgConnectionOpenInit result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ibc.core.connection.v1.Tx.MsgConnectionOpenInit buildPartial() {
ibc.core.connection.v1.Tx.MsgConnectionOpenInit result = new ibc.core.connection.v1.Tx.MsgConnectionOpenInit(this);
result.clientId_ = clientId_;
if (counterpartyBuilder_ == null) {
result.counterparty_ = counterparty_;
} else {
result.counterparty_ = counterpartyBuilder_.build();
}
if (versionBuilder_ == null) {
result.version_ = version_;
} else {
result.version_ = versionBuilder_.build();
}
result.delayPeriod_ = delayPeriod_;
result.signer_ = signer_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ibc.core.connection.v1.Tx.MsgConnectionOpenInit) {
return mergeFrom((ibc.core.connection.v1.Tx.MsgConnectionOpenInit)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ibc.core.connection.v1.Tx.MsgConnectionOpenInit other) {
if (other == ibc.core.connection.v1.Tx.MsgConnectionOpenInit.getDefaultInstance()) return this;
if (!other.getClientId().isEmpty()) {
clientId_ = other.clientId_;
onChanged();
}
if (other.hasCounterparty()) {
mergeCounterparty(other.getCounterparty());
}
if (other.hasVersion()) {
mergeVersion(other.getVersion());
}
if (other.getDelayPeriod() != 0L) {
setDelayPeriod(other.getDelayPeriod());
}
if (!other.getSigner().isEmpty()) {
signer_ = other.signer_;
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.Tx.MsgConnectionOpenInit parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ibc.core.connection.v1.Tx.MsgConnectionOpenInit) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object clientId_ = "";
/**
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
* @return The clientId.
*/
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;
}
}
/**
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
* @return The bytes for clientId.
*/
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;
}
}
/**
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
* @param value The clientId to set.
* @return This builder for chaining.
*/
public Builder setClientId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
clientId_ = value;
onChanged();
return this;
}
/**
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
* @return This builder for chaining.
*/
public Builder clearClientId() {
clientId_ = getDefaultInstance().getClientId();
onChanged();
return this;
}
/**
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
* @param value The bytes for clientId to set.
* @return This builder for chaining.
*/
public Builder setClientIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
clientId_ = value;
onChanged();
return this;
}
private ibc.core.connection.v1.Connection.Counterparty counterparty_;
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_;
/**
* .ibc.core.connection.v1.Counterparty counterparty = 2 [(.gogoproto.nullable) = false];
* @return Whether the counterparty field is set.
*/
public boolean hasCounterparty() {
return counterpartyBuilder_ != null || counterparty_ != null;
}
/**
* .ibc.core.connection.v1.Counterparty counterparty = 2 [(.gogoproto.nullable) = false];
* @return The counterparty.
*/
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();
}
}
/**
* .ibc.core.connection.v1.Counterparty counterparty = 2 [(.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;
}
/**
* .ibc.core.connection.v1.Counterparty counterparty = 2 [(.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;
}
/**
* .ibc.core.connection.v1.Counterparty counterparty = 2 [(.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;
}
/**
* .ibc.core.connection.v1.Counterparty counterparty = 2 [(.gogoproto.nullable) = false];
*/
public Builder clearCounterparty() {
if (counterpartyBuilder_ == null) {
counterparty_ = null;
onChanged();
} else {
counterparty_ = null;
counterpartyBuilder_ = null;
}
return this;
}
/**
* .ibc.core.connection.v1.Counterparty counterparty = 2 [(.gogoproto.nullable) = false];
*/
public ibc.core.connection.v1.Connection.Counterparty.Builder getCounterpartyBuilder() {
onChanged();
return getCounterpartyFieldBuilder().getBuilder();
}
/**
* .ibc.core.connection.v1.Counterparty counterparty = 2 [(.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_;
}
}
/**
* .ibc.core.connection.v1.Counterparty counterparty = 2 [(.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 ibc.core.connection.v1.Connection.Version version_;
private com.google.protobuf.SingleFieldBuilderV3<
ibc.core.connection.v1.Connection.Version, ibc.core.connection.v1.Connection.Version.Builder, ibc.core.connection.v1.Connection.VersionOrBuilder> versionBuilder_;
/**
* .ibc.core.connection.v1.Version version = 3;
* @return Whether the version field is set.
*/
public boolean hasVersion() {
return versionBuilder_ != null || version_ != null;
}
/**
* .ibc.core.connection.v1.Version version = 3;
* @return The version.
*/
public ibc.core.connection.v1.Connection.Version getVersion() {
if (versionBuilder_ == null) {
return version_ == null ? ibc.core.connection.v1.Connection.Version.getDefaultInstance() : version_;
} else {
return versionBuilder_.getMessage();
}
}
/**
* .ibc.core.connection.v1.Version version = 3;
*/
public Builder setVersion(ibc.core.connection.v1.Connection.Version value) {
if (versionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
version_ = value;
onChanged();
} else {
versionBuilder_.setMessage(value);
}
return this;
}
/**
* .ibc.core.connection.v1.Version version = 3;
*/
public Builder setVersion(
ibc.core.connection.v1.Connection.Version.Builder builderForValue) {
if (versionBuilder_ == null) {
version_ = builderForValue.build();
onChanged();
} else {
versionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .ibc.core.connection.v1.Version version = 3;
*/
public Builder mergeVersion(ibc.core.connection.v1.Connection.Version value) {
if (versionBuilder_ == null) {
if (version_ != null) {
version_ =
ibc.core.connection.v1.Connection.Version.newBuilder(version_).mergeFrom(value).buildPartial();
} else {
version_ = value;
}
onChanged();
} else {
versionBuilder_.mergeFrom(value);
}
return this;
}
/**
* .ibc.core.connection.v1.Version version = 3;
*/
public Builder clearVersion() {
if (versionBuilder_ == null) {
version_ = null;
onChanged();
} else {
version_ = null;
versionBuilder_ = null;
}
return this;
}
/**
* .ibc.core.connection.v1.Version version = 3;
*/
public ibc.core.connection.v1.Connection.Version.Builder getVersionBuilder() {
onChanged();
return getVersionFieldBuilder().getBuilder();
}
/**
* .ibc.core.connection.v1.Version version = 3;
*/
public ibc.core.connection.v1.Connection.VersionOrBuilder getVersionOrBuilder() {
if (versionBuilder_ != null) {
return versionBuilder_.getMessageOrBuilder();
} else {
return version_ == null ?
ibc.core.connection.v1.Connection.Version.getDefaultInstance() : version_;
}
}
/**
* .ibc.core.connection.v1.Version version = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ibc.core.connection.v1.Connection.Version, ibc.core.connection.v1.Connection.Version.Builder, ibc.core.connection.v1.Connection.VersionOrBuilder>
getVersionFieldBuilder() {
if (versionBuilder_ == null) {
versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ibc.core.connection.v1.Connection.Version, ibc.core.connection.v1.Connection.Version.Builder, ibc.core.connection.v1.Connection.VersionOrBuilder>(
getVersion(),
getParentForChildren(),
isClean());
version_ = null;
}
return versionBuilder_;
}
private long delayPeriod_ ;
/**
* uint64 delay_period = 4 [(.gogoproto.moretags) = "yaml:\"delay_period\""];
* @return The delayPeriod.
*/
@java.lang.Override
public long getDelayPeriod() {
return delayPeriod_;
}
/**
* uint64 delay_period = 4 [(.gogoproto.moretags) = "yaml:\"delay_period\""];
* @param value The delayPeriod to set.
* @return This builder for chaining.
*/
public Builder setDelayPeriod(long value) {
delayPeriod_ = value;
onChanged();
return this;
}
/**
* uint64 delay_period = 4 [(.gogoproto.moretags) = "yaml:\"delay_period\""];
* @return This builder for chaining.
*/
public Builder clearDelayPeriod() {
delayPeriod_ = 0L;
onChanged();
return this;
}
private java.lang.Object signer_ = "";
/**
* string signer = 5;
* @return The signer.
*/
public java.lang.String getSigner() {
java.lang.Object ref = signer_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
signer_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string signer = 5;
* @return The bytes for signer.
*/
public com.google.protobuf.ByteString
getSignerBytes() {
java.lang.Object ref = signer_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
signer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string signer = 5;
* @param value The signer to set.
* @return This builder for chaining.
*/
public Builder setSigner(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
signer_ = value;
onChanged();
return this;
}
/**
* string signer = 5;
* @return This builder for chaining.
*/
public Builder clearSigner() {
signer_ = getDefaultInstance().getSigner();
onChanged();
return this;
}
/**
* string signer = 5;
* @param value The bytes for signer to set.
* @return This builder for chaining.
*/
public Builder setSignerBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
signer_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(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.MsgConnectionOpenInit)
}
// @@protoc_insertion_point(class_scope:ibc.core.connection.v1.MsgConnectionOpenInit)
private static final ibc.core.connection.v1.Tx.MsgConnectionOpenInit DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ibc.core.connection.v1.Tx.MsgConnectionOpenInit();
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenInit getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MsgConnectionOpenInit parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MsgConnectionOpenInit(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.Tx.MsgConnectionOpenInit getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MsgConnectionOpenInitResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.MsgConnectionOpenInitResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* MsgConnectionOpenInitResponse defines the Msg/ConnectionOpenInit response
* type.
*
*
* Protobuf type {@code ibc.core.connection.v1.MsgConnectionOpenInitResponse}
*/
public static final class MsgConnectionOpenInitResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ibc.core.connection.v1.MsgConnectionOpenInitResponse)
MsgConnectionOpenInitResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use MsgConnectionOpenInitResponse.newBuilder() to construct.
private MsgConnectionOpenInitResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MsgConnectionOpenInitResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MsgConnectionOpenInitResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MsgConnectionOpenInitResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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;
default: {
if (!parseUnknownField(
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.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenInitResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenInitResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.connection.v1.Tx.MsgConnectionOpenInitResponse.class, ibc.core.connection.v1.Tx.MsgConnectionOpenInitResponse.Builder.class);
}
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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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.Tx.MsgConnectionOpenInitResponse)) {
return super.equals(obj);
}
ibc.core.connection.v1.Tx.MsgConnectionOpenInitResponse other = (ibc.core.connection.v1.Tx.MsgConnectionOpenInitResponse) obj;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenInitResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenInitResponse 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.Tx.MsgConnectionOpenInitResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenInitResponse 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.Tx.MsgConnectionOpenInitResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenInitResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenInitResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenInitResponse 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.Tx.MsgConnectionOpenInitResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenInitResponse 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.Tx.MsgConnectionOpenInitResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenInitResponse 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.Tx.MsgConnectionOpenInitResponse 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;
}
/**
*
* MsgConnectionOpenInitResponse defines the Msg/ConnectionOpenInit response
* type.
*
*
* Protobuf type {@code ibc.core.connection.v1.MsgConnectionOpenInitResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.MsgConnectionOpenInitResponse)
ibc.core.connection.v1.Tx.MsgConnectionOpenInitResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenInitResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenInitResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.connection.v1.Tx.MsgConnectionOpenInitResponse.class, ibc.core.connection.v1.Tx.MsgConnectionOpenInitResponse.Builder.class);
}
// Construct using ibc.core.connection.v1.Tx.MsgConnectionOpenInitResponse.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();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenInitResponse_descriptor;
}
@java.lang.Override
public ibc.core.connection.v1.Tx.MsgConnectionOpenInitResponse getDefaultInstanceForType() {
return ibc.core.connection.v1.Tx.MsgConnectionOpenInitResponse.getDefaultInstance();
}
@java.lang.Override
public ibc.core.connection.v1.Tx.MsgConnectionOpenInitResponse build() {
ibc.core.connection.v1.Tx.MsgConnectionOpenInitResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ibc.core.connection.v1.Tx.MsgConnectionOpenInitResponse buildPartial() {
ibc.core.connection.v1.Tx.MsgConnectionOpenInitResponse result = new ibc.core.connection.v1.Tx.MsgConnectionOpenInitResponse(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ibc.core.connection.v1.Tx.MsgConnectionOpenInitResponse) {
return mergeFrom((ibc.core.connection.v1.Tx.MsgConnectionOpenInitResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ibc.core.connection.v1.Tx.MsgConnectionOpenInitResponse other) {
if (other == ibc.core.connection.v1.Tx.MsgConnectionOpenInitResponse.getDefaultInstance()) return this;
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.Tx.MsgConnectionOpenInitResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ibc.core.connection.v1.Tx.MsgConnectionOpenInitResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(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.MsgConnectionOpenInitResponse)
}
// @@protoc_insertion_point(class_scope:ibc.core.connection.v1.MsgConnectionOpenInitResponse)
private static final ibc.core.connection.v1.Tx.MsgConnectionOpenInitResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ibc.core.connection.v1.Tx.MsgConnectionOpenInitResponse();
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenInitResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MsgConnectionOpenInitResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MsgConnectionOpenInitResponse(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.Tx.MsgConnectionOpenInitResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MsgConnectionOpenTryOrBuilder extends
// @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.MsgConnectionOpenTry)
com.google.protobuf.MessageOrBuilder {
/**
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
* @return The clientId.
*/
java.lang.String getClientId();
/**
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
* @return The bytes for clientId.
*/
com.google.protobuf.ByteString
getClientIdBytes();
/**
*
* in the case of crossing hello's, when both chains call OpenInit, we need
* the connection identifier of the previous connection in state INIT
*
*
* string previous_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"previous_connection_id\""];
* @return The previousConnectionId.
*/
java.lang.String getPreviousConnectionId();
/**
*
* in the case of crossing hello's, when both chains call OpenInit, we need
* the connection identifier of the previous connection in state INIT
*
*
* string previous_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"previous_connection_id\""];
* @return The bytes for previousConnectionId.
*/
com.google.protobuf.ByteString
getPreviousConnectionIdBytes();
/**
* .google.protobuf.Any client_state = 3 [(.gogoproto.moretags) = "yaml:\"client_state\""];
* @return Whether the clientState field is set.
*/
boolean hasClientState();
/**
* .google.protobuf.Any client_state = 3 [(.gogoproto.moretags) = "yaml:\"client_state\""];
* @return The clientState.
*/
com.google.protobuf.Any getClientState();
/**
* .google.protobuf.Any client_state = 3 [(.gogoproto.moretags) = "yaml:\"client_state\""];
*/
com.google.protobuf.AnyOrBuilder getClientStateOrBuilder();
/**
* .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false];
* @return Whether the counterparty field is set.
*/
boolean hasCounterparty();
/**
* .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false];
* @return The counterparty.
*/
ibc.core.connection.v1.Connection.Counterparty getCounterparty();
/**
* .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false];
*/
ibc.core.connection.v1.Connection.CounterpartyOrBuilder getCounterpartyOrBuilder();
/**
* uint64 delay_period = 5 [(.gogoproto.moretags) = "yaml:\"delay_period\""];
* @return The delayPeriod.
*/
long getDelayPeriod();
/**
* repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""];
*/
java.util.List
getCounterpartyVersionsList();
/**
* repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""];
*/
ibc.core.connection.v1.Connection.Version getCounterpartyVersions(int index);
/**
* repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""];
*/
int getCounterpartyVersionsCount();
/**
* repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""];
*/
java.util.List extends ibc.core.connection.v1.Connection.VersionOrBuilder>
getCounterpartyVersionsOrBuilderList();
/**
* repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""];
*/
ibc.core.connection.v1.Connection.VersionOrBuilder getCounterpartyVersionsOrBuilder(
int index);
/**
* .ibc.core.client.v1.Height proof_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
* @return Whether the proofHeight field is set.
*/
boolean hasProofHeight();
/**
* .ibc.core.client.v1.Height proof_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
* @return The proofHeight.
*/
ibc.core.client.v1.Client.Height getProofHeight();
/**
* .ibc.core.client.v1.Height proof_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
*/
ibc.core.client.v1.Client.HeightOrBuilder getProofHeightOrBuilder();
/**
*
* proof of the initialization the connection on Chain A: `UNITIALIZED ->
* INIT`
*
*
* bytes proof_init = 8 [(.gogoproto.moretags) = "yaml:\"proof_init\""];
* @return The proofInit.
*/
com.google.protobuf.ByteString getProofInit();
/**
*
* proof of client state included in message
*
*
* bytes proof_client = 9 [(.gogoproto.moretags) = "yaml:\"proof_client\""];
* @return The proofClient.
*/
com.google.protobuf.ByteString getProofClient();
/**
*
* proof of client consensus state
*
*
* bytes proof_consensus = 10 [(.gogoproto.moretags) = "yaml:\"proof_consensus\""];
* @return The proofConsensus.
*/
com.google.protobuf.ByteString getProofConsensus();
/**
* .ibc.core.client.v1.Height consensus_height = 11 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""];
* @return Whether the consensusHeight field is set.
*/
boolean hasConsensusHeight();
/**
* .ibc.core.client.v1.Height consensus_height = 11 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""];
* @return The consensusHeight.
*/
ibc.core.client.v1.Client.Height getConsensusHeight();
/**
* .ibc.core.client.v1.Height consensus_height = 11 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""];
*/
ibc.core.client.v1.Client.HeightOrBuilder getConsensusHeightOrBuilder();
/**
* string signer = 12;
* @return The signer.
*/
java.lang.String getSigner();
/**
* string signer = 12;
* @return The bytes for signer.
*/
com.google.protobuf.ByteString
getSignerBytes();
}
/**
*
* MsgConnectionOpenTry defines a msg sent by a Relayer to try to open a
* connection on Chain B.
*
*
* Protobuf type {@code ibc.core.connection.v1.MsgConnectionOpenTry}
*/
public static final class MsgConnectionOpenTry extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ibc.core.connection.v1.MsgConnectionOpenTry)
MsgConnectionOpenTryOrBuilder {
private static final long serialVersionUID = 0L;
// Use MsgConnectionOpenTry.newBuilder() to construct.
private MsgConnectionOpenTry(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MsgConnectionOpenTry() {
clientId_ = "";
previousConnectionId_ = "";
counterpartyVersions_ = java.util.Collections.emptyList();
proofInit_ = com.google.protobuf.ByteString.EMPTY;
proofClient_ = com.google.protobuf.ByteString.EMPTY;
proofConsensus_ = com.google.protobuf.ByteString.EMPTY;
signer_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MsgConnectionOpenTry();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MsgConnectionOpenTry(
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();
previousConnectionId_ = s;
break;
}
case 26: {
com.google.protobuf.Any.Builder subBuilder = null;
if (clientState_ != null) {
subBuilder = clientState_.toBuilder();
}
clientState_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(clientState_);
clientState_ = subBuilder.buildPartial();
}
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;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
counterpartyVersions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
counterpartyVersions_.add(
input.readMessage(ibc.core.connection.v1.Connection.Version.parser(), extensionRegistry));
break;
}
case 58: {
ibc.core.client.v1.Client.Height.Builder subBuilder = null;
if (proofHeight_ != null) {
subBuilder = proofHeight_.toBuilder();
}
proofHeight_ = input.readMessage(ibc.core.client.v1.Client.Height.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(proofHeight_);
proofHeight_ = subBuilder.buildPartial();
}
break;
}
case 66: {
proofInit_ = input.readBytes();
break;
}
case 74: {
proofClient_ = input.readBytes();
break;
}
case 82: {
proofConsensus_ = input.readBytes();
break;
}
case 90: {
ibc.core.client.v1.Client.Height.Builder subBuilder = null;
if (consensusHeight_ != null) {
subBuilder = consensusHeight_.toBuilder();
}
consensusHeight_ = input.readMessage(ibc.core.client.v1.Client.Height.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(consensusHeight_);
consensusHeight_ = subBuilder.buildPartial();
}
break;
}
case 98: {
java.lang.String s = input.readStringRequireUtf8();
signer_ = s;
break;
}
default: {
if (!parseUnknownField(
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) != 0)) {
counterpartyVersions_ = java.util.Collections.unmodifiableList(counterpartyVersions_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenTry_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenTry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.connection.v1.Tx.MsgConnectionOpenTry.class, ibc.core.connection.v1.Tx.MsgConnectionOpenTry.Builder.class);
}
public static final int CLIENT_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object clientId_;
/**
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
* @return The clientId.
*/
@java.lang.Override
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;
}
}
/**
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
* @return The bytes for clientId.
*/
@java.lang.Override
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 PREVIOUS_CONNECTION_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object previousConnectionId_;
/**
*
* in the case of crossing hello's, when both chains call OpenInit, we need
* the connection identifier of the previous connection in state INIT
*
*
* string previous_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"previous_connection_id\""];
* @return The previousConnectionId.
*/
@java.lang.Override
public java.lang.String getPreviousConnectionId() {
java.lang.Object ref = previousConnectionId_;
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();
previousConnectionId_ = s;
return s;
}
}
/**
*
* in the case of crossing hello's, when both chains call OpenInit, we need
* the connection identifier of the previous connection in state INIT
*
*
* string previous_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"previous_connection_id\""];
* @return The bytes for previousConnectionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPreviousConnectionIdBytes() {
java.lang.Object ref = previousConnectionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
previousConnectionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CLIENT_STATE_FIELD_NUMBER = 3;
private com.google.protobuf.Any clientState_;
/**
* .google.protobuf.Any client_state = 3 [(.gogoproto.moretags) = "yaml:\"client_state\""];
* @return Whether the clientState field is set.
*/
@java.lang.Override
public boolean hasClientState() {
return clientState_ != null;
}
/**
* .google.protobuf.Any client_state = 3 [(.gogoproto.moretags) = "yaml:\"client_state\""];
* @return The clientState.
*/
@java.lang.Override
public com.google.protobuf.Any getClientState() {
return clientState_ == null ? com.google.protobuf.Any.getDefaultInstance() : clientState_;
}
/**
* .google.protobuf.Any client_state = 3 [(.gogoproto.moretags) = "yaml:\"client_state\""];
*/
@java.lang.Override
public com.google.protobuf.AnyOrBuilder getClientStateOrBuilder() {
return getClientState();
}
public static final int COUNTERPARTY_FIELD_NUMBER = 4;
private ibc.core.connection.v1.Connection.Counterparty counterparty_;
/**
* .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false];
* @return Whether the counterparty field is set.
*/
@java.lang.Override
public boolean hasCounterparty() {
return counterparty_ != null;
}
/**
* .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false];
* @return The counterparty.
*/
@java.lang.Override
public ibc.core.connection.v1.Connection.Counterparty getCounterparty() {
return counterparty_ == null ? ibc.core.connection.v1.Connection.Counterparty.getDefaultInstance() : counterparty_;
}
/**
* .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public ibc.core.connection.v1.Connection.CounterpartyOrBuilder getCounterpartyOrBuilder() {
return getCounterparty();
}
public static final int DELAY_PERIOD_FIELD_NUMBER = 5;
private long delayPeriod_;
/**
* uint64 delay_period = 5 [(.gogoproto.moretags) = "yaml:\"delay_period\""];
* @return The delayPeriod.
*/
@java.lang.Override
public long getDelayPeriod() {
return delayPeriod_;
}
public static final int COUNTERPARTY_VERSIONS_FIELD_NUMBER = 6;
private java.util.List counterpartyVersions_;
/**
* repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""];
*/
@java.lang.Override
public java.util.List getCounterpartyVersionsList() {
return counterpartyVersions_;
}
/**
* repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""];
*/
@java.lang.Override
public java.util.List extends ibc.core.connection.v1.Connection.VersionOrBuilder>
getCounterpartyVersionsOrBuilderList() {
return counterpartyVersions_;
}
/**
* repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""];
*/
@java.lang.Override
public int getCounterpartyVersionsCount() {
return counterpartyVersions_.size();
}
/**
* repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""];
*/
@java.lang.Override
public ibc.core.connection.v1.Connection.Version getCounterpartyVersions(int index) {
return counterpartyVersions_.get(index);
}
/**
* repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""];
*/
@java.lang.Override
public ibc.core.connection.v1.Connection.VersionOrBuilder getCounterpartyVersionsOrBuilder(
int index) {
return counterpartyVersions_.get(index);
}
public static final int PROOF_HEIGHT_FIELD_NUMBER = 7;
private ibc.core.client.v1.Client.Height proofHeight_;
/**
* .ibc.core.client.v1.Height proof_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
* @return Whether the proofHeight field is set.
*/
@java.lang.Override
public boolean hasProofHeight() {
return proofHeight_ != null;
}
/**
* .ibc.core.client.v1.Height proof_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
* @return The proofHeight.
*/
@java.lang.Override
public ibc.core.client.v1.Client.Height getProofHeight() {
return proofHeight_ == null ? ibc.core.client.v1.Client.Height.getDefaultInstance() : proofHeight_;
}
/**
* .ibc.core.client.v1.Height proof_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
*/
@java.lang.Override
public ibc.core.client.v1.Client.HeightOrBuilder getProofHeightOrBuilder() {
return getProofHeight();
}
public static final int PROOF_INIT_FIELD_NUMBER = 8;
private com.google.protobuf.ByteString proofInit_;
/**
*
* proof of the initialization the connection on Chain A: `UNITIALIZED ->
* INIT`
*
*
* bytes proof_init = 8 [(.gogoproto.moretags) = "yaml:\"proof_init\""];
* @return The proofInit.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProofInit() {
return proofInit_;
}
public static final int PROOF_CLIENT_FIELD_NUMBER = 9;
private com.google.protobuf.ByteString proofClient_;
/**
*
* proof of client state included in message
*
*
* bytes proof_client = 9 [(.gogoproto.moretags) = "yaml:\"proof_client\""];
* @return The proofClient.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProofClient() {
return proofClient_;
}
public static final int PROOF_CONSENSUS_FIELD_NUMBER = 10;
private com.google.protobuf.ByteString proofConsensus_;
/**
*
* proof of client consensus state
*
*
* bytes proof_consensus = 10 [(.gogoproto.moretags) = "yaml:\"proof_consensus\""];
* @return The proofConsensus.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProofConsensus() {
return proofConsensus_;
}
public static final int CONSENSUS_HEIGHT_FIELD_NUMBER = 11;
private ibc.core.client.v1.Client.Height consensusHeight_;
/**
* .ibc.core.client.v1.Height consensus_height = 11 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""];
* @return Whether the consensusHeight field is set.
*/
@java.lang.Override
public boolean hasConsensusHeight() {
return consensusHeight_ != null;
}
/**
* .ibc.core.client.v1.Height consensus_height = 11 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""];
* @return The consensusHeight.
*/
@java.lang.Override
public ibc.core.client.v1.Client.Height getConsensusHeight() {
return consensusHeight_ == null ? ibc.core.client.v1.Client.Height.getDefaultInstance() : consensusHeight_;
}
/**
* .ibc.core.client.v1.Height consensus_height = 11 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""];
*/
@java.lang.Override
public ibc.core.client.v1.Client.HeightOrBuilder getConsensusHeightOrBuilder() {
return getConsensusHeight();
}
public static final int SIGNER_FIELD_NUMBER = 12;
private volatile java.lang.Object signer_;
/**
* string signer = 12;
* @return The signer.
*/
@java.lang.Override
public java.lang.String getSigner() {
java.lang.Object ref = signer_;
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();
signer_ = s;
return s;
}
}
/**
* string signer = 12;
* @return The bytes for signer.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSignerBytes() {
java.lang.Object ref = signer_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
signer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(previousConnectionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, previousConnectionId_);
}
if (clientState_ != null) {
output.writeMessage(3, getClientState());
}
if (counterparty_ != null) {
output.writeMessage(4, getCounterparty());
}
if (delayPeriod_ != 0L) {
output.writeUInt64(5, delayPeriod_);
}
for (int i = 0; i < counterpartyVersions_.size(); i++) {
output.writeMessage(6, counterpartyVersions_.get(i));
}
if (proofHeight_ != null) {
output.writeMessage(7, getProofHeight());
}
if (!proofInit_.isEmpty()) {
output.writeBytes(8, proofInit_);
}
if (!proofClient_.isEmpty()) {
output.writeBytes(9, proofClient_);
}
if (!proofConsensus_.isEmpty()) {
output.writeBytes(10, proofConsensus_);
}
if (consensusHeight_ != null) {
output.writeMessage(11, getConsensusHeight());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(signer_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, signer_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(previousConnectionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, previousConnectionId_);
}
if (clientState_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getClientState());
}
if (counterparty_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getCounterparty());
}
if (delayPeriod_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(5, delayPeriod_);
}
for (int i = 0; i < counterpartyVersions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, counterpartyVersions_.get(i));
}
if (proofHeight_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getProofHeight());
}
if (!proofInit_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(8, proofInit_);
}
if (!proofClient_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(9, proofClient_);
}
if (!proofConsensus_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(10, proofConsensus_);
}
if (consensusHeight_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, getConsensusHeight());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(signer_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, signer_);
}
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.Tx.MsgConnectionOpenTry)) {
return super.equals(obj);
}
ibc.core.connection.v1.Tx.MsgConnectionOpenTry other = (ibc.core.connection.v1.Tx.MsgConnectionOpenTry) obj;
if (!getClientId()
.equals(other.getClientId())) return false;
if (!getPreviousConnectionId()
.equals(other.getPreviousConnectionId())) return false;
if (hasClientState() != other.hasClientState()) return false;
if (hasClientState()) {
if (!getClientState()
.equals(other.getClientState())) return false;
}
if (hasCounterparty() != other.hasCounterparty()) return false;
if (hasCounterparty()) {
if (!getCounterparty()
.equals(other.getCounterparty())) return false;
}
if (getDelayPeriod()
!= other.getDelayPeriod()) return false;
if (!getCounterpartyVersionsList()
.equals(other.getCounterpartyVersionsList())) return false;
if (hasProofHeight() != other.hasProofHeight()) return false;
if (hasProofHeight()) {
if (!getProofHeight()
.equals(other.getProofHeight())) return false;
}
if (!getProofInit()
.equals(other.getProofInit())) return false;
if (!getProofClient()
.equals(other.getProofClient())) return false;
if (!getProofConsensus()
.equals(other.getProofConsensus())) return false;
if (hasConsensusHeight() != other.hasConsensusHeight()) return false;
if (hasConsensusHeight()) {
if (!getConsensusHeight()
.equals(other.getConsensusHeight())) return false;
}
if (!getSigner()
.equals(other.getSigner())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@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) + PREVIOUS_CONNECTION_ID_FIELD_NUMBER;
hash = (53 * hash) + getPreviousConnectionId().hashCode();
if (hasClientState()) {
hash = (37 * hash) + CLIENT_STATE_FIELD_NUMBER;
hash = (53 * hash) + getClientState().hashCode();
}
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());
if (getCounterpartyVersionsCount() > 0) {
hash = (37 * hash) + COUNTERPARTY_VERSIONS_FIELD_NUMBER;
hash = (53 * hash) + getCounterpartyVersionsList().hashCode();
}
if (hasProofHeight()) {
hash = (37 * hash) + PROOF_HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + getProofHeight().hashCode();
}
hash = (37 * hash) + PROOF_INIT_FIELD_NUMBER;
hash = (53 * hash) + getProofInit().hashCode();
hash = (37 * hash) + PROOF_CLIENT_FIELD_NUMBER;
hash = (53 * hash) + getProofClient().hashCode();
hash = (37 * hash) + PROOF_CONSENSUS_FIELD_NUMBER;
hash = (53 * hash) + getProofConsensus().hashCode();
if (hasConsensusHeight()) {
hash = (37 * hash) + CONSENSUS_HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + getConsensusHeight().hashCode();
}
hash = (37 * hash) + SIGNER_FIELD_NUMBER;
hash = (53 * hash) + getSigner().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenTry parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenTry 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.Tx.MsgConnectionOpenTry parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenTry 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.Tx.MsgConnectionOpenTry parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenTry parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenTry parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenTry 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.Tx.MsgConnectionOpenTry parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenTry 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.Tx.MsgConnectionOpenTry parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenTry 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.Tx.MsgConnectionOpenTry 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;
}
/**
*
* MsgConnectionOpenTry defines a msg sent by a Relayer to try to open a
* connection on Chain B.
*
*
* Protobuf type {@code ibc.core.connection.v1.MsgConnectionOpenTry}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.MsgConnectionOpenTry)
ibc.core.connection.v1.Tx.MsgConnectionOpenTryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenTry_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenTry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.connection.v1.Tx.MsgConnectionOpenTry.class, ibc.core.connection.v1.Tx.MsgConnectionOpenTry.Builder.class);
}
// Construct using ibc.core.connection.v1.Tx.MsgConnectionOpenTry.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCounterpartyVersionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
clientId_ = "";
previousConnectionId_ = "";
if (clientStateBuilder_ == null) {
clientState_ = null;
} else {
clientState_ = null;
clientStateBuilder_ = null;
}
if (counterpartyBuilder_ == null) {
counterparty_ = null;
} else {
counterparty_ = null;
counterpartyBuilder_ = null;
}
delayPeriod_ = 0L;
if (counterpartyVersionsBuilder_ == null) {
counterpartyVersions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
counterpartyVersionsBuilder_.clear();
}
if (proofHeightBuilder_ == null) {
proofHeight_ = null;
} else {
proofHeight_ = null;
proofHeightBuilder_ = null;
}
proofInit_ = com.google.protobuf.ByteString.EMPTY;
proofClient_ = com.google.protobuf.ByteString.EMPTY;
proofConsensus_ = com.google.protobuf.ByteString.EMPTY;
if (consensusHeightBuilder_ == null) {
consensusHeight_ = null;
} else {
consensusHeight_ = null;
consensusHeightBuilder_ = null;
}
signer_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenTry_descriptor;
}
@java.lang.Override
public ibc.core.connection.v1.Tx.MsgConnectionOpenTry getDefaultInstanceForType() {
return ibc.core.connection.v1.Tx.MsgConnectionOpenTry.getDefaultInstance();
}
@java.lang.Override
public ibc.core.connection.v1.Tx.MsgConnectionOpenTry build() {
ibc.core.connection.v1.Tx.MsgConnectionOpenTry result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ibc.core.connection.v1.Tx.MsgConnectionOpenTry buildPartial() {
ibc.core.connection.v1.Tx.MsgConnectionOpenTry result = new ibc.core.connection.v1.Tx.MsgConnectionOpenTry(this);
int from_bitField0_ = bitField0_;
result.clientId_ = clientId_;
result.previousConnectionId_ = previousConnectionId_;
if (clientStateBuilder_ == null) {
result.clientState_ = clientState_;
} else {
result.clientState_ = clientStateBuilder_.build();
}
if (counterpartyBuilder_ == null) {
result.counterparty_ = counterparty_;
} else {
result.counterparty_ = counterpartyBuilder_.build();
}
result.delayPeriod_ = delayPeriod_;
if (counterpartyVersionsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
counterpartyVersions_ = java.util.Collections.unmodifiableList(counterpartyVersions_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.counterpartyVersions_ = counterpartyVersions_;
} else {
result.counterpartyVersions_ = counterpartyVersionsBuilder_.build();
}
if (proofHeightBuilder_ == null) {
result.proofHeight_ = proofHeight_;
} else {
result.proofHeight_ = proofHeightBuilder_.build();
}
result.proofInit_ = proofInit_;
result.proofClient_ = proofClient_;
result.proofConsensus_ = proofConsensus_;
if (consensusHeightBuilder_ == null) {
result.consensusHeight_ = consensusHeight_;
} else {
result.consensusHeight_ = consensusHeightBuilder_.build();
}
result.signer_ = signer_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ibc.core.connection.v1.Tx.MsgConnectionOpenTry) {
return mergeFrom((ibc.core.connection.v1.Tx.MsgConnectionOpenTry)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ibc.core.connection.v1.Tx.MsgConnectionOpenTry other) {
if (other == ibc.core.connection.v1.Tx.MsgConnectionOpenTry.getDefaultInstance()) return this;
if (!other.getClientId().isEmpty()) {
clientId_ = other.clientId_;
onChanged();
}
if (!other.getPreviousConnectionId().isEmpty()) {
previousConnectionId_ = other.previousConnectionId_;
onChanged();
}
if (other.hasClientState()) {
mergeClientState(other.getClientState());
}
if (other.hasCounterparty()) {
mergeCounterparty(other.getCounterparty());
}
if (other.getDelayPeriod() != 0L) {
setDelayPeriod(other.getDelayPeriod());
}
if (counterpartyVersionsBuilder_ == null) {
if (!other.counterpartyVersions_.isEmpty()) {
if (counterpartyVersions_.isEmpty()) {
counterpartyVersions_ = other.counterpartyVersions_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureCounterpartyVersionsIsMutable();
counterpartyVersions_.addAll(other.counterpartyVersions_);
}
onChanged();
}
} else {
if (!other.counterpartyVersions_.isEmpty()) {
if (counterpartyVersionsBuilder_.isEmpty()) {
counterpartyVersionsBuilder_.dispose();
counterpartyVersionsBuilder_ = null;
counterpartyVersions_ = other.counterpartyVersions_;
bitField0_ = (bitField0_ & ~0x00000001);
counterpartyVersionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCounterpartyVersionsFieldBuilder() : null;
} else {
counterpartyVersionsBuilder_.addAllMessages(other.counterpartyVersions_);
}
}
}
if (other.hasProofHeight()) {
mergeProofHeight(other.getProofHeight());
}
if (other.getProofInit() != com.google.protobuf.ByteString.EMPTY) {
setProofInit(other.getProofInit());
}
if (other.getProofClient() != com.google.protobuf.ByteString.EMPTY) {
setProofClient(other.getProofClient());
}
if (other.getProofConsensus() != com.google.protobuf.ByteString.EMPTY) {
setProofConsensus(other.getProofConsensus());
}
if (other.hasConsensusHeight()) {
mergeConsensusHeight(other.getConsensusHeight());
}
if (!other.getSigner().isEmpty()) {
signer_ = other.signer_;
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.Tx.MsgConnectionOpenTry parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ibc.core.connection.v1.Tx.MsgConnectionOpenTry) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object clientId_ = "";
/**
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
* @return The clientId.
*/
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;
}
}
/**
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
* @return The bytes for clientId.
*/
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;
}
}
/**
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
* @param value The clientId to set.
* @return This builder for chaining.
*/
public Builder setClientId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
clientId_ = value;
onChanged();
return this;
}
/**
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
* @return This builder for chaining.
*/
public Builder clearClientId() {
clientId_ = getDefaultInstance().getClientId();
onChanged();
return this;
}
/**
* string client_id = 1 [(.gogoproto.moretags) = "yaml:\"client_id\""];
* @param value The bytes for clientId to set.
* @return This builder for chaining.
*/
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 previousConnectionId_ = "";
/**
*
* in the case of crossing hello's, when both chains call OpenInit, we need
* the connection identifier of the previous connection in state INIT
*
*
* string previous_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"previous_connection_id\""];
* @return The previousConnectionId.
*/
public java.lang.String getPreviousConnectionId() {
java.lang.Object ref = previousConnectionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
previousConnectionId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* in the case of crossing hello's, when both chains call OpenInit, we need
* the connection identifier of the previous connection in state INIT
*
*
* string previous_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"previous_connection_id\""];
* @return The bytes for previousConnectionId.
*/
public com.google.protobuf.ByteString
getPreviousConnectionIdBytes() {
java.lang.Object ref = previousConnectionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
previousConnectionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* in the case of crossing hello's, when both chains call OpenInit, we need
* the connection identifier of the previous connection in state INIT
*
*
* string previous_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"previous_connection_id\""];
* @param value The previousConnectionId to set.
* @return This builder for chaining.
*/
public Builder setPreviousConnectionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
previousConnectionId_ = value;
onChanged();
return this;
}
/**
*
* in the case of crossing hello's, when both chains call OpenInit, we need
* the connection identifier of the previous connection in state INIT
*
*
* string previous_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"previous_connection_id\""];
* @return This builder for chaining.
*/
public Builder clearPreviousConnectionId() {
previousConnectionId_ = getDefaultInstance().getPreviousConnectionId();
onChanged();
return this;
}
/**
*
* in the case of crossing hello's, when both chains call OpenInit, we need
* the connection identifier of the previous connection in state INIT
*
*
* string previous_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"previous_connection_id\""];
* @param value The bytes for previousConnectionId to set.
* @return This builder for chaining.
*/
public Builder setPreviousConnectionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
previousConnectionId_ = value;
onChanged();
return this;
}
private com.google.protobuf.Any clientState_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> clientStateBuilder_;
/**
* .google.protobuf.Any client_state = 3 [(.gogoproto.moretags) = "yaml:\"client_state\""];
* @return Whether the clientState field is set.
*/
public boolean hasClientState() {
return clientStateBuilder_ != null || clientState_ != null;
}
/**
* .google.protobuf.Any client_state = 3 [(.gogoproto.moretags) = "yaml:\"client_state\""];
* @return The clientState.
*/
public com.google.protobuf.Any getClientState() {
if (clientStateBuilder_ == null) {
return clientState_ == null ? com.google.protobuf.Any.getDefaultInstance() : clientState_;
} else {
return clientStateBuilder_.getMessage();
}
}
/**
* .google.protobuf.Any client_state = 3 [(.gogoproto.moretags) = "yaml:\"client_state\""];
*/
public Builder setClientState(com.google.protobuf.Any value) {
if (clientStateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
clientState_ = value;
onChanged();
} else {
clientStateBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.Any client_state = 3 [(.gogoproto.moretags) = "yaml:\"client_state\""];
*/
public Builder setClientState(
com.google.protobuf.Any.Builder builderForValue) {
if (clientStateBuilder_ == null) {
clientState_ = builderForValue.build();
onChanged();
} else {
clientStateBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.Any client_state = 3 [(.gogoproto.moretags) = "yaml:\"client_state\""];
*/
public Builder mergeClientState(com.google.protobuf.Any value) {
if (clientStateBuilder_ == null) {
if (clientState_ != null) {
clientState_ =
com.google.protobuf.Any.newBuilder(clientState_).mergeFrom(value).buildPartial();
} else {
clientState_ = value;
}
onChanged();
} else {
clientStateBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.Any client_state = 3 [(.gogoproto.moretags) = "yaml:\"client_state\""];
*/
public Builder clearClientState() {
if (clientStateBuilder_ == null) {
clientState_ = null;
onChanged();
} else {
clientState_ = null;
clientStateBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.Any client_state = 3 [(.gogoproto.moretags) = "yaml:\"client_state\""];
*/
public com.google.protobuf.Any.Builder getClientStateBuilder() {
onChanged();
return getClientStateFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Any client_state = 3 [(.gogoproto.moretags) = "yaml:\"client_state\""];
*/
public com.google.protobuf.AnyOrBuilder getClientStateOrBuilder() {
if (clientStateBuilder_ != null) {
return clientStateBuilder_.getMessageOrBuilder();
} else {
return clientState_ == null ?
com.google.protobuf.Any.getDefaultInstance() : clientState_;
}
}
/**
* .google.protobuf.Any client_state = 3 [(.gogoproto.moretags) = "yaml:\"client_state\""];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getClientStateFieldBuilder() {
if (clientStateBuilder_ == null) {
clientStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
getClientState(),
getParentForChildren(),
isClean());
clientState_ = null;
}
return clientStateBuilder_;
}
private ibc.core.connection.v1.Connection.Counterparty counterparty_;
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_;
/**
* .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false];
* @return Whether the counterparty field is set.
*/
public boolean hasCounterparty() {
return counterpartyBuilder_ != null || counterparty_ != null;
}
/**
* .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false];
* @return The counterparty.
*/
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();
}
}
/**
* .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;
}
/**
* .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;
}
/**
* .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;
}
/**
* .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;
}
/**
* .ibc.core.connection.v1.Counterparty counterparty = 4 [(.gogoproto.nullable) = false];
*/
public ibc.core.connection.v1.Connection.Counterparty.Builder getCounterpartyBuilder() {
onChanged();
return getCounterpartyFieldBuilder().getBuilder();
}
/**
* .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_;
}
}
/**
* .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_ ;
/**
* uint64 delay_period = 5 [(.gogoproto.moretags) = "yaml:\"delay_period\""];
* @return The delayPeriod.
*/
@java.lang.Override
public long getDelayPeriod() {
return delayPeriod_;
}
/**
* uint64 delay_period = 5 [(.gogoproto.moretags) = "yaml:\"delay_period\""];
* @param value The delayPeriod to set.
* @return This builder for chaining.
*/
public Builder setDelayPeriod(long value) {
delayPeriod_ = value;
onChanged();
return this;
}
/**
* uint64 delay_period = 5 [(.gogoproto.moretags) = "yaml:\"delay_period\""];
* @return This builder for chaining.
*/
public Builder clearDelayPeriod() {
delayPeriod_ = 0L;
onChanged();
return this;
}
private java.util.List counterpartyVersions_ =
java.util.Collections.emptyList();
private void ensureCounterpartyVersionsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
counterpartyVersions_ = new java.util.ArrayList(counterpartyVersions_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
ibc.core.connection.v1.Connection.Version, ibc.core.connection.v1.Connection.Version.Builder, ibc.core.connection.v1.Connection.VersionOrBuilder> counterpartyVersionsBuilder_;
/**
* repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""];
*/
public java.util.List getCounterpartyVersionsList() {
if (counterpartyVersionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(counterpartyVersions_);
} else {
return counterpartyVersionsBuilder_.getMessageList();
}
}
/**
* repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""];
*/
public int getCounterpartyVersionsCount() {
if (counterpartyVersionsBuilder_ == null) {
return counterpartyVersions_.size();
} else {
return counterpartyVersionsBuilder_.getCount();
}
}
/**
* repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""];
*/
public ibc.core.connection.v1.Connection.Version getCounterpartyVersions(int index) {
if (counterpartyVersionsBuilder_ == null) {
return counterpartyVersions_.get(index);
} else {
return counterpartyVersionsBuilder_.getMessage(index);
}
}
/**
* repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""];
*/
public Builder setCounterpartyVersions(
int index, ibc.core.connection.v1.Connection.Version value) {
if (counterpartyVersionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCounterpartyVersionsIsMutable();
counterpartyVersions_.set(index, value);
onChanged();
} else {
counterpartyVersionsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""];
*/
public Builder setCounterpartyVersions(
int index, ibc.core.connection.v1.Connection.Version.Builder builderForValue) {
if (counterpartyVersionsBuilder_ == null) {
ensureCounterpartyVersionsIsMutable();
counterpartyVersions_.set(index, builderForValue.build());
onChanged();
} else {
counterpartyVersionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""];
*/
public Builder addCounterpartyVersions(ibc.core.connection.v1.Connection.Version value) {
if (counterpartyVersionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCounterpartyVersionsIsMutable();
counterpartyVersions_.add(value);
onChanged();
} else {
counterpartyVersionsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""];
*/
public Builder addCounterpartyVersions(
int index, ibc.core.connection.v1.Connection.Version value) {
if (counterpartyVersionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCounterpartyVersionsIsMutable();
counterpartyVersions_.add(index, value);
onChanged();
} else {
counterpartyVersionsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""];
*/
public Builder addCounterpartyVersions(
ibc.core.connection.v1.Connection.Version.Builder builderForValue) {
if (counterpartyVersionsBuilder_ == null) {
ensureCounterpartyVersionsIsMutable();
counterpartyVersions_.add(builderForValue.build());
onChanged();
} else {
counterpartyVersionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""];
*/
public Builder addCounterpartyVersions(
int index, ibc.core.connection.v1.Connection.Version.Builder builderForValue) {
if (counterpartyVersionsBuilder_ == null) {
ensureCounterpartyVersionsIsMutable();
counterpartyVersions_.add(index, builderForValue.build());
onChanged();
} else {
counterpartyVersionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""];
*/
public Builder addAllCounterpartyVersions(
java.lang.Iterable extends ibc.core.connection.v1.Connection.Version> values) {
if (counterpartyVersionsBuilder_ == null) {
ensureCounterpartyVersionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, counterpartyVersions_);
onChanged();
} else {
counterpartyVersionsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""];
*/
public Builder clearCounterpartyVersions() {
if (counterpartyVersionsBuilder_ == null) {
counterpartyVersions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
counterpartyVersionsBuilder_.clear();
}
return this;
}
/**
* repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""];
*/
public Builder removeCounterpartyVersions(int index) {
if (counterpartyVersionsBuilder_ == null) {
ensureCounterpartyVersionsIsMutable();
counterpartyVersions_.remove(index);
onChanged();
} else {
counterpartyVersionsBuilder_.remove(index);
}
return this;
}
/**
* repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""];
*/
public ibc.core.connection.v1.Connection.Version.Builder getCounterpartyVersionsBuilder(
int index) {
return getCounterpartyVersionsFieldBuilder().getBuilder(index);
}
/**
* repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""];
*/
public ibc.core.connection.v1.Connection.VersionOrBuilder getCounterpartyVersionsOrBuilder(
int index) {
if (counterpartyVersionsBuilder_ == null) {
return counterpartyVersions_.get(index); } else {
return counterpartyVersionsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""];
*/
public java.util.List extends ibc.core.connection.v1.Connection.VersionOrBuilder>
getCounterpartyVersionsOrBuilderList() {
if (counterpartyVersionsBuilder_ != null) {
return counterpartyVersionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(counterpartyVersions_);
}
}
/**
* repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""];
*/
public ibc.core.connection.v1.Connection.Version.Builder addCounterpartyVersionsBuilder() {
return getCounterpartyVersionsFieldBuilder().addBuilder(
ibc.core.connection.v1.Connection.Version.getDefaultInstance());
}
/**
* repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""];
*/
public ibc.core.connection.v1.Connection.Version.Builder addCounterpartyVersionsBuilder(
int index) {
return getCounterpartyVersionsFieldBuilder().addBuilder(
index, ibc.core.connection.v1.Connection.Version.getDefaultInstance());
}
/**
* repeated .ibc.core.connection.v1.Version counterparty_versions = 6 [(.gogoproto.moretags) = "yaml:\"counterparty_versions\""];
*/
public java.util.List
getCounterpartyVersionsBuilderList() {
return getCounterpartyVersionsFieldBuilder().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>
getCounterpartyVersionsFieldBuilder() {
if (counterpartyVersionsBuilder_ == null) {
counterpartyVersionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
ibc.core.connection.v1.Connection.Version, ibc.core.connection.v1.Connection.Version.Builder, ibc.core.connection.v1.Connection.VersionOrBuilder>(
counterpartyVersions_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
counterpartyVersions_ = null;
}
return counterpartyVersionsBuilder_;
}
private ibc.core.client.v1.Client.Height proofHeight_;
private com.google.protobuf.SingleFieldBuilderV3<
ibc.core.client.v1.Client.Height, ibc.core.client.v1.Client.Height.Builder, ibc.core.client.v1.Client.HeightOrBuilder> proofHeightBuilder_;
/**
* .ibc.core.client.v1.Height proof_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
* @return Whether the proofHeight field is set.
*/
public boolean hasProofHeight() {
return proofHeightBuilder_ != null || proofHeight_ != null;
}
/**
* .ibc.core.client.v1.Height proof_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
* @return The proofHeight.
*/
public ibc.core.client.v1.Client.Height getProofHeight() {
if (proofHeightBuilder_ == null) {
return proofHeight_ == null ? ibc.core.client.v1.Client.Height.getDefaultInstance() : proofHeight_;
} else {
return proofHeightBuilder_.getMessage();
}
}
/**
* .ibc.core.client.v1.Height proof_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
*/
public Builder setProofHeight(ibc.core.client.v1.Client.Height value) {
if (proofHeightBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
proofHeight_ = value;
onChanged();
} else {
proofHeightBuilder_.setMessage(value);
}
return this;
}
/**
* .ibc.core.client.v1.Height proof_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
*/
public Builder setProofHeight(
ibc.core.client.v1.Client.Height.Builder builderForValue) {
if (proofHeightBuilder_ == null) {
proofHeight_ = builderForValue.build();
onChanged();
} else {
proofHeightBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .ibc.core.client.v1.Height proof_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
*/
public Builder mergeProofHeight(ibc.core.client.v1.Client.Height value) {
if (proofHeightBuilder_ == null) {
if (proofHeight_ != null) {
proofHeight_ =
ibc.core.client.v1.Client.Height.newBuilder(proofHeight_).mergeFrom(value).buildPartial();
} else {
proofHeight_ = value;
}
onChanged();
} else {
proofHeightBuilder_.mergeFrom(value);
}
return this;
}
/**
* .ibc.core.client.v1.Height proof_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
*/
public Builder clearProofHeight() {
if (proofHeightBuilder_ == null) {
proofHeight_ = null;
onChanged();
} else {
proofHeight_ = null;
proofHeightBuilder_ = null;
}
return this;
}
/**
* .ibc.core.client.v1.Height proof_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
*/
public ibc.core.client.v1.Client.Height.Builder getProofHeightBuilder() {
onChanged();
return getProofHeightFieldBuilder().getBuilder();
}
/**
* .ibc.core.client.v1.Height proof_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
*/
public ibc.core.client.v1.Client.HeightOrBuilder getProofHeightOrBuilder() {
if (proofHeightBuilder_ != null) {
return proofHeightBuilder_.getMessageOrBuilder();
} else {
return proofHeight_ == null ?
ibc.core.client.v1.Client.Height.getDefaultInstance() : proofHeight_;
}
}
/**
* .ibc.core.client.v1.Height proof_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
*/
private com.google.protobuf.SingleFieldBuilderV3<
ibc.core.client.v1.Client.Height, ibc.core.client.v1.Client.Height.Builder, ibc.core.client.v1.Client.HeightOrBuilder>
getProofHeightFieldBuilder() {
if (proofHeightBuilder_ == null) {
proofHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ibc.core.client.v1.Client.Height, ibc.core.client.v1.Client.Height.Builder, ibc.core.client.v1.Client.HeightOrBuilder>(
getProofHeight(),
getParentForChildren(),
isClean());
proofHeight_ = null;
}
return proofHeightBuilder_;
}
private com.google.protobuf.ByteString proofInit_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* proof of the initialization the connection on Chain A: `UNITIALIZED ->
* INIT`
*
*
* bytes proof_init = 8 [(.gogoproto.moretags) = "yaml:\"proof_init\""];
* @return The proofInit.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProofInit() {
return proofInit_;
}
/**
*
* proof of the initialization the connection on Chain A: `UNITIALIZED ->
* INIT`
*
*
* bytes proof_init = 8 [(.gogoproto.moretags) = "yaml:\"proof_init\""];
* @param value The proofInit to set.
* @return This builder for chaining.
*/
public Builder setProofInit(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
proofInit_ = value;
onChanged();
return this;
}
/**
*
* proof of the initialization the connection on Chain A: `UNITIALIZED ->
* INIT`
*
*
* bytes proof_init = 8 [(.gogoproto.moretags) = "yaml:\"proof_init\""];
* @return This builder for chaining.
*/
public Builder clearProofInit() {
proofInit_ = getDefaultInstance().getProofInit();
onChanged();
return this;
}
private com.google.protobuf.ByteString proofClient_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* proof of client state included in message
*
*
* bytes proof_client = 9 [(.gogoproto.moretags) = "yaml:\"proof_client\""];
* @return The proofClient.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProofClient() {
return proofClient_;
}
/**
*
* proof of client state included in message
*
*
* bytes proof_client = 9 [(.gogoproto.moretags) = "yaml:\"proof_client\""];
* @param value The proofClient to set.
* @return This builder for chaining.
*/
public Builder setProofClient(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
proofClient_ = value;
onChanged();
return this;
}
/**
*
* proof of client state included in message
*
*
* bytes proof_client = 9 [(.gogoproto.moretags) = "yaml:\"proof_client\""];
* @return This builder for chaining.
*/
public Builder clearProofClient() {
proofClient_ = getDefaultInstance().getProofClient();
onChanged();
return this;
}
private com.google.protobuf.ByteString proofConsensus_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* proof of client consensus state
*
*
* bytes proof_consensus = 10 [(.gogoproto.moretags) = "yaml:\"proof_consensus\""];
* @return The proofConsensus.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProofConsensus() {
return proofConsensus_;
}
/**
*
* proof of client consensus state
*
*
* bytes proof_consensus = 10 [(.gogoproto.moretags) = "yaml:\"proof_consensus\""];
* @param value The proofConsensus to set.
* @return This builder for chaining.
*/
public Builder setProofConsensus(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
proofConsensus_ = value;
onChanged();
return this;
}
/**
*
* proof of client consensus state
*
*
* bytes proof_consensus = 10 [(.gogoproto.moretags) = "yaml:\"proof_consensus\""];
* @return This builder for chaining.
*/
public Builder clearProofConsensus() {
proofConsensus_ = getDefaultInstance().getProofConsensus();
onChanged();
return this;
}
private ibc.core.client.v1.Client.Height consensusHeight_;
private com.google.protobuf.SingleFieldBuilderV3<
ibc.core.client.v1.Client.Height, ibc.core.client.v1.Client.Height.Builder, ibc.core.client.v1.Client.HeightOrBuilder> consensusHeightBuilder_;
/**
* .ibc.core.client.v1.Height consensus_height = 11 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""];
* @return Whether the consensusHeight field is set.
*/
public boolean hasConsensusHeight() {
return consensusHeightBuilder_ != null || consensusHeight_ != null;
}
/**
* .ibc.core.client.v1.Height consensus_height = 11 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""];
* @return The consensusHeight.
*/
public ibc.core.client.v1.Client.Height getConsensusHeight() {
if (consensusHeightBuilder_ == null) {
return consensusHeight_ == null ? ibc.core.client.v1.Client.Height.getDefaultInstance() : consensusHeight_;
} else {
return consensusHeightBuilder_.getMessage();
}
}
/**
* .ibc.core.client.v1.Height consensus_height = 11 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""];
*/
public Builder setConsensusHeight(ibc.core.client.v1.Client.Height value) {
if (consensusHeightBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
consensusHeight_ = value;
onChanged();
} else {
consensusHeightBuilder_.setMessage(value);
}
return this;
}
/**
* .ibc.core.client.v1.Height consensus_height = 11 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""];
*/
public Builder setConsensusHeight(
ibc.core.client.v1.Client.Height.Builder builderForValue) {
if (consensusHeightBuilder_ == null) {
consensusHeight_ = builderForValue.build();
onChanged();
} else {
consensusHeightBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .ibc.core.client.v1.Height consensus_height = 11 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""];
*/
public Builder mergeConsensusHeight(ibc.core.client.v1.Client.Height value) {
if (consensusHeightBuilder_ == null) {
if (consensusHeight_ != null) {
consensusHeight_ =
ibc.core.client.v1.Client.Height.newBuilder(consensusHeight_).mergeFrom(value).buildPartial();
} else {
consensusHeight_ = value;
}
onChanged();
} else {
consensusHeightBuilder_.mergeFrom(value);
}
return this;
}
/**
* .ibc.core.client.v1.Height consensus_height = 11 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""];
*/
public Builder clearConsensusHeight() {
if (consensusHeightBuilder_ == null) {
consensusHeight_ = null;
onChanged();
} else {
consensusHeight_ = null;
consensusHeightBuilder_ = null;
}
return this;
}
/**
* .ibc.core.client.v1.Height consensus_height = 11 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""];
*/
public ibc.core.client.v1.Client.Height.Builder getConsensusHeightBuilder() {
onChanged();
return getConsensusHeightFieldBuilder().getBuilder();
}
/**
* .ibc.core.client.v1.Height consensus_height = 11 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""];
*/
public ibc.core.client.v1.Client.HeightOrBuilder getConsensusHeightOrBuilder() {
if (consensusHeightBuilder_ != null) {
return consensusHeightBuilder_.getMessageOrBuilder();
} else {
return consensusHeight_ == null ?
ibc.core.client.v1.Client.Height.getDefaultInstance() : consensusHeight_;
}
}
/**
* .ibc.core.client.v1.Height consensus_height = 11 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""];
*/
private com.google.protobuf.SingleFieldBuilderV3<
ibc.core.client.v1.Client.Height, ibc.core.client.v1.Client.Height.Builder, ibc.core.client.v1.Client.HeightOrBuilder>
getConsensusHeightFieldBuilder() {
if (consensusHeightBuilder_ == null) {
consensusHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ibc.core.client.v1.Client.Height, ibc.core.client.v1.Client.Height.Builder, ibc.core.client.v1.Client.HeightOrBuilder>(
getConsensusHeight(),
getParentForChildren(),
isClean());
consensusHeight_ = null;
}
return consensusHeightBuilder_;
}
private java.lang.Object signer_ = "";
/**
* string signer = 12;
* @return The signer.
*/
public java.lang.String getSigner() {
java.lang.Object ref = signer_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
signer_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string signer = 12;
* @return The bytes for signer.
*/
public com.google.protobuf.ByteString
getSignerBytes() {
java.lang.Object ref = signer_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
signer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string signer = 12;
* @param value The signer to set.
* @return This builder for chaining.
*/
public Builder setSigner(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
signer_ = value;
onChanged();
return this;
}
/**
* string signer = 12;
* @return This builder for chaining.
*/
public Builder clearSigner() {
signer_ = getDefaultInstance().getSigner();
onChanged();
return this;
}
/**
* string signer = 12;
* @param value The bytes for signer to set.
* @return This builder for chaining.
*/
public Builder setSignerBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
signer_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(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.MsgConnectionOpenTry)
}
// @@protoc_insertion_point(class_scope:ibc.core.connection.v1.MsgConnectionOpenTry)
private static final ibc.core.connection.v1.Tx.MsgConnectionOpenTry DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ibc.core.connection.v1.Tx.MsgConnectionOpenTry();
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenTry getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MsgConnectionOpenTry parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MsgConnectionOpenTry(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.Tx.MsgConnectionOpenTry getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MsgConnectionOpenTryResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.MsgConnectionOpenTryResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry response type.
*
*
* Protobuf type {@code ibc.core.connection.v1.MsgConnectionOpenTryResponse}
*/
public static final class MsgConnectionOpenTryResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ibc.core.connection.v1.MsgConnectionOpenTryResponse)
MsgConnectionOpenTryResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use MsgConnectionOpenTryResponse.newBuilder() to construct.
private MsgConnectionOpenTryResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MsgConnectionOpenTryResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MsgConnectionOpenTryResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MsgConnectionOpenTryResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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;
default: {
if (!parseUnknownField(
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.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenTryResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenTryResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.connection.v1.Tx.MsgConnectionOpenTryResponse.class, ibc.core.connection.v1.Tx.MsgConnectionOpenTryResponse.Builder.class);
}
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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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.Tx.MsgConnectionOpenTryResponse)) {
return super.equals(obj);
}
ibc.core.connection.v1.Tx.MsgConnectionOpenTryResponse other = (ibc.core.connection.v1.Tx.MsgConnectionOpenTryResponse) obj;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenTryResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenTryResponse 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.Tx.MsgConnectionOpenTryResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenTryResponse 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.Tx.MsgConnectionOpenTryResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenTryResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenTryResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenTryResponse 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.Tx.MsgConnectionOpenTryResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenTryResponse 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.Tx.MsgConnectionOpenTryResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenTryResponse 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.Tx.MsgConnectionOpenTryResponse 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;
}
/**
*
* MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry response type.
*
*
* Protobuf type {@code ibc.core.connection.v1.MsgConnectionOpenTryResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.MsgConnectionOpenTryResponse)
ibc.core.connection.v1.Tx.MsgConnectionOpenTryResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenTryResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenTryResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.connection.v1.Tx.MsgConnectionOpenTryResponse.class, ibc.core.connection.v1.Tx.MsgConnectionOpenTryResponse.Builder.class);
}
// Construct using ibc.core.connection.v1.Tx.MsgConnectionOpenTryResponse.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();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenTryResponse_descriptor;
}
@java.lang.Override
public ibc.core.connection.v1.Tx.MsgConnectionOpenTryResponse getDefaultInstanceForType() {
return ibc.core.connection.v1.Tx.MsgConnectionOpenTryResponse.getDefaultInstance();
}
@java.lang.Override
public ibc.core.connection.v1.Tx.MsgConnectionOpenTryResponse build() {
ibc.core.connection.v1.Tx.MsgConnectionOpenTryResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ibc.core.connection.v1.Tx.MsgConnectionOpenTryResponse buildPartial() {
ibc.core.connection.v1.Tx.MsgConnectionOpenTryResponse result = new ibc.core.connection.v1.Tx.MsgConnectionOpenTryResponse(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ibc.core.connection.v1.Tx.MsgConnectionOpenTryResponse) {
return mergeFrom((ibc.core.connection.v1.Tx.MsgConnectionOpenTryResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ibc.core.connection.v1.Tx.MsgConnectionOpenTryResponse other) {
if (other == ibc.core.connection.v1.Tx.MsgConnectionOpenTryResponse.getDefaultInstance()) return this;
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.Tx.MsgConnectionOpenTryResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ibc.core.connection.v1.Tx.MsgConnectionOpenTryResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(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.MsgConnectionOpenTryResponse)
}
// @@protoc_insertion_point(class_scope:ibc.core.connection.v1.MsgConnectionOpenTryResponse)
private static final ibc.core.connection.v1.Tx.MsgConnectionOpenTryResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ibc.core.connection.v1.Tx.MsgConnectionOpenTryResponse();
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenTryResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MsgConnectionOpenTryResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MsgConnectionOpenTryResponse(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.Tx.MsgConnectionOpenTryResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MsgConnectionOpenAckOrBuilder extends
// @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.MsgConnectionOpenAck)
com.google.protobuf.MessageOrBuilder {
/**
* string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""];
* @return The connectionId.
*/
java.lang.String getConnectionId();
/**
* string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""];
* @return The bytes for connectionId.
*/
com.google.protobuf.ByteString
getConnectionIdBytes();
/**
* string counterparty_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"counterparty_connection_id\""];
* @return The counterpartyConnectionId.
*/
java.lang.String getCounterpartyConnectionId();
/**
* string counterparty_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"counterparty_connection_id\""];
* @return The bytes for counterpartyConnectionId.
*/
com.google.protobuf.ByteString
getCounterpartyConnectionIdBytes();
/**
* .ibc.core.connection.v1.Version version = 3;
* @return Whether the version field is set.
*/
boolean hasVersion();
/**
* .ibc.core.connection.v1.Version version = 3;
* @return The version.
*/
ibc.core.connection.v1.Connection.Version getVersion();
/**
* .ibc.core.connection.v1.Version version = 3;
*/
ibc.core.connection.v1.Connection.VersionOrBuilder getVersionOrBuilder();
/**
* .google.protobuf.Any client_state = 4 [(.gogoproto.moretags) = "yaml:\"client_state\""];
* @return Whether the clientState field is set.
*/
boolean hasClientState();
/**
* .google.protobuf.Any client_state = 4 [(.gogoproto.moretags) = "yaml:\"client_state\""];
* @return The clientState.
*/
com.google.protobuf.Any getClientState();
/**
* .google.protobuf.Any client_state = 4 [(.gogoproto.moretags) = "yaml:\"client_state\""];
*/
com.google.protobuf.AnyOrBuilder getClientStateOrBuilder();
/**
* .ibc.core.client.v1.Height proof_height = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
* @return Whether the proofHeight field is set.
*/
boolean hasProofHeight();
/**
* .ibc.core.client.v1.Height proof_height = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
* @return The proofHeight.
*/
ibc.core.client.v1.Client.Height getProofHeight();
/**
* .ibc.core.client.v1.Height proof_height = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
*/
ibc.core.client.v1.Client.HeightOrBuilder getProofHeightOrBuilder();
/**
*
* proof of the initialization the connection on Chain B: `UNITIALIZED ->
* TRYOPEN`
*
*
* bytes proof_try = 6 [(.gogoproto.moretags) = "yaml:\"proof_try\""];
* @return The proofTry.
*/
com.google.protobuf.ByteString getProofTry();
/**
*
* proof of client state included in message
*
*
* bytes proof_client = 7 [(.gogoproto.moretags) = "yaml:\"proof_client\""];
* @return The proofClient.
*/
com.google.protobuf.ByteString getProofClient();
/**
*
* proof of client consensus state
*
*
* bytes proof_consensus = 8 [(.gogoproto.moretags) = "yaml:\"proof_consensus\""];
* @return The proofConsensus.
*/
com.google.protobuf.ByteString getProofConsensus();
/**
* .ibc.core.client.v1.Height consensus_height = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""];
* @return Whether the consensusHeight field is set.
*/
boolean hasConsensusHeight();
/**
* .ibc.core.client.v1.Height consensus_height = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""];
* @return The consensusHeight.
*/
ibc.core.client.v1.Client.Height getConsensusHeight();
/**
* .ibc.core.client.v1.Height consensus_height = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""];
*/
ibc.core.client.v1.Client.HeightOrBuilder getConsensusHeightOrBuilder();
/**
* string signer = 10;
* @return The signer.
*/
java.lang.String getSigner();
/**
* string signer = 10;
* @return The bytes for signer.
*/
com.google.protobuf.ByteString
getSignerBytes();
}
/**
*
* MsgConnectionOpenAck defines a msg sent by a Relayer to Chain A to
* acknowledge the change of connection state to TRYOPEN on Chain B.
*
*
* Protobuf type {@code ibc.core.connection.v1.MsgConnectionOpenAck}
*/
public static final class MsgConnectionOpenAck extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ibc.core.connection.v1.MsgConnectionOpenAck)
MsgConnectionOpenAckOrBuilder {
private static final long serialVersionUID = 0L;
// Use MsgConnectionOpenAck.newBuilder() to construct.
private MsgConnectionOpenAck(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MsgConnectionOpenAck() {
connectionId_ = "";
counterpartyConnectionId_ = "";
proofTry_ = com.google.protobuf.ByteString.EMPTY;
proofClient_ = com.google.protobuf.ByteString.EMPTY;
proofConsensus_ = com.google.protobuf.ByteString.EMPTY;
signer_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MsgConnectionOpenAck();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MsgConnectionOpenAck(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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();
connectionId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
counterpartyConnectionId_ = s;
break;
}
case 26: {
ibc.core.connection.v1.Connection.Version.Builder subBuilder = null;
if (version_ != null) {
subBuilder = version_.toBuilder();
}
version_ = input.readMessage(ibc.core.connection.v1.Connection.Version.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(version_);
version_ = subBuilder.buildPartial();
}
break;
}
case 34: {
com.google.protobuf.Any.Builder subBuilder = null;
if (clientState_ != null) {
subBuilder = clientState_.toBuilder();
}
clientState_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(clientState_);
clientState_ = subBuilder.buildPartial();
}
break;
}
case 42: {
ibc.core.client.v1.Client.Height.Builder subBuilder = null;
if (proofHeight_ != null) {
subBuilder = proofHeight_.toBuilder();
}
proofHeight_ = input.readMessage(ibc.core.client.v1.Client.Height.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(proofHeight_);
proofHeight_ = subBuilder.buildPartial();
}
break;
}
case 50: {
proofTry_ = input.readBytes();
break;
}
case 58: {
proofClient_ = input.readBytes();
break;
}
case 66: {
proofConsensus_ = input.readBytes();
break;
}
case 74: {
ibc.core.client.v1.Client.Height.Builder subBuilder = null;
if (consensusHeight_ != null) {
subBuilder = consensusHeight_.toBuilder();
}
consensusHeight_ = input.readMessage(ibc.core.client.v1.Client.Height.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(consensusHeight_);
consensusHeight_ = subBuilder.buildPartial();
}
break;
}
case 82: {
java.lang.String s = input.readStringRequireUtf8();
signer_ = s;
break;
}
default: {
if (!parseUnknownField(
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.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenAck_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenAck_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.connection.v1.Tx.MsgConnectionOpenAck.class, ibc.core.connection.v1.Tx.MsgConnectionOpenAck.Builder.class);
}
public static final int CONNECTION_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object connectionId_;
/**
* string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""];
* @return The connectionId.
*/
@java.lang.Override
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;
}
}
/**
* string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""];
* @return The bytes for connectionId.
*/
@java.lang.Override
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 COUNTERPARTY_CONNECTION_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object counterpartyConnectionId_;
/**
* string counterparty_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"counterparty_connection_id\""];
* @return The counterpartyConnectionId.
*/
@java.lang.Override
public java.lang.String getCounterpartyConnectionId() {
java.lang.Object ref = counterpartyConnectionId_;
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();
counterpartyConnectionId_ = s;
return s;
}
}
/**
* string counterparty_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"counterparty_connection_id\""];
* @return The bytes for counterpartyConnectionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCounterpartyConnectionIdBytes() {
java.lang.Object ref = counterpartyConnectionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
counterpartyConnectionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VERSION_FIELD_NUMBER = 3;
private ibc.core.connection.v1.Connection.Version version_;
/**
* .ibc.core.connection.v1.Version version = 3;
* @return Whether the version field is set.
*/
@java.lang.Override
public boolean hasVersion() {
return version_ != null;
}
/**
* .ibc.core.connection.v1.Version version = 3;
* @return The version.
*/
@java.lang.Override
public ibc.core.connection.v1.Connection.Version getVersion() {
return version_ == null ? ibc.core.connection.v1.Connection.Version.getDefaultInstance() : version_;
}
/**
* .ibc.core.connection.v1.Version version = 3;
*/
@java.lang.Override
public ibc.core.connection.v1.Connection.VersionOrBuilder getVersionOrBuilder() {
return getVersion();
}
public static final int CLIENT_STATE_FIELD_NUMBER = 4;
private com.google.protobuf.Any clientState_;
/**
* .google.protobuf.Any client_state = 4 [(.gogoproto.moretags) = "yaml:\"client_state\""];
* @return Whether the clientState field is set.
*/
@java.lang.Override
public boolean hasClientState() {
return clientState_ != null;
}
/**
* .google.protobuf.Any client_state = 4 [(.gogoproto.moretags) = "yaml:\"client_state\""];
* @return The clientState.
*/
@java.lang.Override
public com.google.protobuf.Any getClientState() {
return clientState_ == null ? com.google.protobuf.Any.getDefaultInstance() : clientState_;
}
/**
* .google.protobuf.Any client_state = 4 [(.gogoproto.moretags) = "yaml:\"client_state\""];
*/
@java.lang.Override
public com.google.protobuf.AnyOrBuilder getClientStateOrBuilder() {
return getClientState();
}
public static final int PROOF_HEIGHT_FIELD_NUMBER = 5;
private ibc.core.client.v1.Client.Height proofHeight_;
/**
* .ibc.core.client.v1.Height proof_height = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
* @return Whether the proofHeight field is set.
*/
@java.lang.Override
public boolean hasProofHeight() {
return proofHeight_ != null;
}
/**
* .ibc.core.client.v1.Height proof_height = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
* @return The proofHeight.
*/
@java.lang.Override
public ibc.core.client.v1.Client.Height getProofHeight() {
return proofHeight_ == null ? ibc.core.client.v1.Client.Height.getDefaultInstance() : proofHeight_;
}
/**
* .ibc.core.client.v1.Height proof_height = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
*/
@java.lang.Override
public ibc.core.client.v1.Client.HeightOrBuilder getProofHeightOrBuilder() {
return getProofHeight();
}
public static final int PROOF_TRY_FIELD_NUMBER = 6;
private com.google.protobuf.ByteString proofTry_;
/**
*
* proof of the initialization the connection on Chain B: `UNITIALIZED ->
* TRYOPEN`
*
*
* bytes proof_try = 6 [(.gogoproto.moretags) = "yaml:\"proof_try\""];
* @return The proofTry.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProofTry() {
return proofTry_;
}
public static final int PROOF_CLIENT_FIELD_NUMBER = 7;
private com.google.protobuf.ByteString proofClient_;
/**
*
* proof of client state included in message
*
*
* bytes proof_client = 7 [(.gogoproto.moretags) = "yaml:\"proof_client\""];
* @return The proofClient.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProofClient() {
return proofClient_;
}
public static final int PROOF_CONSENSUS_FIELD_NUMBER = 8;
private com.google.protobuf.ByteString proofConsensus_;
/**
*
* proof of client consensus state
*
*
* bytes proof_consensus = 8 [(.gogoproto.moretags) = "yaml:\"proof_consensus\""];
* @return The proofConsensus.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProofConsensus() {
return proofConsensus_;
}
public static final int CONSENSUS_HEIGHT_FIELD_NUMBER = 9;
private ibc.core.client.v1.Client.Height consensusHeight_;
/**
* .ibc.core.client.v1.Height consensus_height = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""];
* @return Whether the consensusHeight field is set.
*/
@java.lang.Override
public boolean hasConsensusHeight() {
return consensusHeight_ != null;
}
/**
* .ibc.core.client.v1.Height consensus_height = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""];
* @return The consensusHeight.
*/
@java.lang.Override
public ibc.core.client.v1.Client.Height getConsensusHeight() {
return consensusHeight_ == null ? ibc.core.client.v1.Client.Height.getDefaultInstance() : consensusHeight_;
}
/**
* .ibc.core.client.v1.Height consensus_height = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""];
*/
@java.lang.Override
public ibc.core.client.v1.Client.HeightOrBuilder getConsensusHeightOrBuilder() {
return getConsensusHeight();
}
public static final int SIGNER_FIELD_NUMBER = 10;
private volatile java.lang.Object signer_;
/**
* string signer = 10;
* @return The signer.
*/
@java.lang.Override
public java.lang.String getSigner() {
java.lang.Object ref = signer_;
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();
signer_ = s;
return s;
}
}
/**
* string signer = 10;
* @return The bytes for signer.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSignerBytes() {
java.lang.Object ref = signer_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
signer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(connectionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, connectionId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(counterpartyConnectionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, counterpartyConnectionId_);
}
if (version_ != null) {
output.writeMessage(3, getVersion());
}
if (clientState_ != null) {
output.writeMessage(4, getClientState());
}
if (proofHeight_ != null) {
output.writeMessage(5, getProofHeight());
}
if (!proofTry_.isEmpty()) {
output.writeBytes(6, proofTry_);
}
if (!proofClient_.isEmpty()) {
output.writeBytes(7, proofClient_);
}
if (!proofConsensus_.isEmpty()) {
output.writeBytes(8, proofConsensus_);
}
if (consensusHeight_ != null) {
output.writeMessage(9, getConsensusHeight());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(signer_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, signer_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(connectionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, connectionId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(counterpartyConnectionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, counterpartyConnectionId_);
}
if (version_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getVersion());
}
if (clientState_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getClientState());
}
if (proofHeight_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getProofHeight());
}
if (!proofTry_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, proofTry_);
}
if (!proofClient_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(7, proofClient_);
}
if (!proofConsensus_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(8, proofConsensus_);
}
if (consensusHeight_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getConsensusHeight());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(signer_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, signer_);
}
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.Tx.MsgConnectionOpenAck)) {
return super.equals(obj);
}
ibc.core.connection.v1.Tx.MsgConnectionOpenAck other = (ibc.core.connection.v1.Tx.MsgConnectionOpenAck) obj;
if (!getConnectionId()
.equals(other.getConnectionId())) return false;
if (!getCounterpartyConnectionId()
.equals(other.getCounterpartyConnectionId())) return false;
if (hasVersion() != other.hasVersion()) return false;
if (hasVersion()) {
if (!getVersion()
.equals(other.getVersion())) return false;
}
if (hasClientState() != other.hasClientState()) return false;
if (hasClientState()) {
if (!getClientState()
.equals(other.getClientState())) return false;
}
if (hasProofHeight() != other.hasProofHeight()) return false;
if (hasProofHeight()) {
if (!getProofHeight()
.equals(other.getProofHeight())) return false;
}
if (!getProofTry()
.equals(other.getProofTry())) return false;
if (!getProofClient()
.equals(other.getProofClient())) return false;
if (!getProofConsensus()
.equals(other.getProofConsensus())) return false;
if (hasConsensusHeight() != other.hasConsensusHeight()) return false;
if (hasConsensusHeight()) {
if (!getConsensusHeight()
.equals(other.getConsensusHeight())) return false;
}
if (!getSigner()
.equals(other.getSigner())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CONNECTION_ID_FIELD_NUMBER;
hash = (53 * hash) + getConnectionId().hashCode();
hash = (37 * hash) + COUNTERPARTY_CONNECTION_ID_FIELD_NUMBER;
hash = (53 * hash) + getCounterpartyConnectionId().hashCode();
if (hasVersion()) {
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion().hashCode();
}
if (hasClientState()) {
hash = (37 * hash) + CLIENT_STATE_FIELD_NUMBER;
hash = (53 * hash) + getClientState().hashCode();
}
if (hasProofHeight()) {
hash = (37 * hash) + PROOF_HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + getProofHeight().hashCode();
}
hash = (37 * hash) + PROOF_TRY_FIELD_NUMBER;
hash = (53 * hash) + getProofTry().hashCode();
hash = (37 * hash) + PROOF_CLIENT_FIELD_NUMBER;
hash = (53 * hash) + getProofClient().hashCode();
hash = (37 * hash) + PROOF_CONSENSUS_FIELD_NUMBER;
hash = (53 * hash) + getProofConsensus().hashCode();
if (hasConsensusHeight()) {
hash = (37 * hash) + CONSENSUS_HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + getConsensusHeight().hashCode();
}
hash = (37 * hash) + SIGNER_FIELD_NUMBER;
hash = (53 * hash) + getSigner().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenAck parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenAck 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.Tx.MsgConnectionOpenAck parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenAck 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.Tx.MsgConnectionOpenAck parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenAck parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenAck parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenAck 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.Tx.MsgConnectionOpenAck parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenAck 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.Tx.MsgConnectionOpenAck parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenAck 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.Tx.MsgConnectionOpenAck 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;
}
/**
*
* MsgConnectionOpenAck defines a msg sent by a Relayer to Chain A to
* acknowledge the change of connection state to TRYOPEN on Chain B.
*
*
* Protobuf type {@code ibc.core.connection.v1.MsgConnectionOpenAck}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.MsgConnectionOpenAck)
ibc.core.connection.v1.Tx.MsgConnectionOpenAckOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenAck_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenAck_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.connection.v1.Tx.MsgConnectionOpenAck.class, ibc.core.connection.v1.Tx.MsgConnectionOpenAck.Builder.class);
}
// Construct using ibc.core.connection.v1.Tx.MsgConnectionOpenAck.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();
connectionId_ = "";
counterpartyConnectionId_ = "";
if (versionBuilder_ == null) {
version_ = null;
} else {
version_ = null;
versionBuilder_ = null;
}
if (clientStateBuilder_ == null) {
clientState_ = null;
} else {
clientState_ = null;
clientStateBuilder_ = null;
}
if (proofHeightBuilder_ == null) {
proofHeight_ = null;
} else {
proofHeight_ = null;
proofHeightBuilder_ = null;
}
proofTry_ = com.google.protobuf.ByteString.EMPTY;
proofClient_ = com.google.protobuf.ByteString.EMPTY;
proofConsensus_ = com.google.protobuf.ByteString.EMPTY;
if (consensusHeightBuilder_ == null) {
consensusHeight_ = null;
} else {
consensusHeight_ = null;
consensusHeightBuilder_ = null;
}
signer_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenAck_descriptor;
}
@java.lang.Override
public ibc.core.connection.v1.Tx.MsgConnectionOpenAck getDefaultInstanceForType() {
return ibc.core.connection.v1.Tx.MsgConnectionOpenAck.getDefaultInstance();
}
@java.lang.Override
public ibc.core.connection.v1.Tx.MsgConnectionOpenAck build() {
ibc.core.connection.v1.Tx.MsgConnectionOpenAck result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ibc.core.connection.v1.Tx.MsgConnectionOpenAck buildPartial() {
ibc.core.connection.v1.Tx.MsgConnectionOpenAck result = new ibc.core.connection.v1.Tx.MsgConnectionOpenAck(this);
result.connectionId_ = connectionId_;
result.counterpartyConnectionId_ = counterpartyConnectionId_;
if (versionBuilder_ == null) {
result.version_ = version_;
} else {
result.version_ = versionBuilder_.build();
}
if (clientStateBuilder_ == null) {
result.clientState_ = clientState_;
} else {
result.clientState_ = clientStateBuilder_.build();
}
if (proofHeightBuilder_ == null) {
result.proofHeight_ = proofHeight_;
} else {
result.proofHeight_ = proofHeightBuilder_.build();
}
result.proofTry_ = proofTry_;
result.proofClient_ = proofClient_;
result.proofConsensus_ = proofConsensus_;
if (consensusHeightBuilder_ == null) {
result.consensusHeight_ = consensusHeight_;
} else {
result.consensusHeight_ = consensusHeightBuilder_.build();
}
result.signer_ = signer_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ibc.core.connection.v1.Tx.MsgConnectionOpenAck) {
return mergeFrom((ibc.core.connection.v1.Tx.MsgConnectionOpenAck)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ibc.core.connection.v1.Tx.MsgConnectionOpenAck other) {
if (other == ibc.core.connection.v1.Tx.MsgConnectionOpenAck.getDefaultInstance()) return this;
if (!other.getConnectionId().isEmpty()) {
connectionId_ = other.connectionId_;
onChanged();
}
if (!other.getCounterpartyConnectionId().isEmpty()) {
counterpartyConnectionId_ = other.counterpartyConnectionId_;
onChanged();
}
if (other.hasVersion()) {
mergeVersion(other.getVersion());
}
if (other.hasClientState()) {
mergeClientState(other.getClientState());
}
if (other.hasProofHeight()) {
mergeProofHeight(other.getProofHeight());
}
if (other.getProofTry() != com.google.protobuf.ByteString.EMPTY) {
setProofTry(other.getProofTry());
}
if (other.getProofClient() != com.google.protobuf.ByteString.EMPTY) {
setProofClient(other.getProofClient());
}
if (other.getProofConsensus() != com.google.protobuf.ByteString.EMPTY) {
setProofConsensus(other.getProofConsensus());
}
if (other.hasConsensusHeight()) {
mergeConsensusHeight(other.getConsensusHeight());
}
if (!other.getSigner().isEmpty()) {
signer_ = other.signer_;
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.Tx.MsgConnectionOpenAck parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ibc.core.connection.v1.Tx.MsgConnectionOpenAck) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object connectionId_ = "";
/**
* string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""];
* @return The connectionId.
*/
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;
}
}
/**
* string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""];
* @return The bytes for connectionId.
*/
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;
}
}
/**
* string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""];
* @param value The connectionId to set.
* @return This builder for chaining.
*/
public Builder setConnectionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
connectionId_ = value;
onChanged();
return this;
}
/**
* string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""];
* @return This builder for chaining.
*/
public Builder clearConnectionId() {
connectionId_ = getDefaultInstance().getConnectionId();
onChanged();
return this;
}
/**
* string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""];
* @param value The bytes for connectionId to set.
* @return This builder for chaining.
*/
public Builder setConnectionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
connectionId_ = value;
onChanged();
return this;
}
private java.lang.Object counterpartyConnectionId_ = "";
/**
* string counterparty_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"counterparty_connection_id\""];
* @return The counterpartyConnectionId.
*/
public java.lang.String getCounterpartyConnectionId() {
java.lang.Object ref = counterpartyConnectionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
counterpartyConnectionId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string counterparty_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"counterparty_connection_id\""];
* @return The bytes for counterpartyConnectionId.
*/
public com.google.protobuf.ByteString
getCounterpartyConnectionIdBytes() {
java.lang.Object ref = counterpartyConnectionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
counterpartyConnectionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string counterparty_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"counterparty_connection_id\""];
* @param value The counterpartyConnectionId to set.
* @return This builder for chaining.
*/
public Builder setCounterpartyConnectionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
counterpartyConnectionId_ = value;
onChanged();
return this;
}
/**
* string counterparty_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"counterparty_connection_id\""];
* @return This builder for chaining.
*/
public Builder clearCounterpartyConnectionId() {
counterpartyConnectionId_ = getDefaultInstance().getCounterpartyConnectionId();
onChanged();
return this;
}
/**
* string counterparty_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"counterparty_connection_id\""];
* @param value The bytes for counterpartyConnectionId to set.
* @return This builder for chaining.
*/
public Builder setCounterpartyConnectionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
counterpartyConnectionId_ = value;
onChanged();
return this;
}
private ibc.core.connection.v1.Connection.Version version_;
private com.google.protobuf.SingleFieldBuilderV3<
ibc.core.connection.v1.Connection.Version, ibc.core.connection.v1.Connection.Version.Builder, ibc.core.connection.v1.Connection.VersionOrBuilder> versionBuilder_;
/**
* .ibc.core.connection.v1.Version version = 3;
* @return Whether the version field is set.
*/
public boolean hasVersion() {
return versionBuilder_ != null || version_ != null;
}
/**
* .ibc.core.connection.v1.Version version = 3;
* @return The version.
*/
public ibc.core.connection.v1.Connection.Version getVersion() {
if (versionBuilder_ == null) {
return version_ == null ? ibc.core.connection.v1.Connection.Version.getDefaultInstance() : version_;
} else {
return versionBuilder_.getMessage();
}
}
/**
* .ibc.core.connection.v1.Version version = 3;
*/
public Builder setVersion(ibc.core.connection.v1.Connection.Version value) {
if (versionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
version_ = value;
onChanged();
} else {
versionBuilder_.setMessage(value);
}
return this;
}
/**
* .ibc.core.connection.v1.Version version = 3;
*/
public Builder setVersion(
ibc.core.connection.v1.Connection.Version.Builder builderForValue) {
if (versionBuilder_ == null) {
version_ = builderForValue.build();
onChanged();
} else {
versionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .ibc.core.connection.v1.Version version = 3;
*/
public Builder mergeVersion(ibc.core.connection.v1.Connection.Version value) {
if (versionBuilder_ == null) {
if (version_ != null) {
version_ =
ibc.core.connection.v1.Connection.Version.newBuilder(version_).mergeFrom(value).buildPartial();
} else {
version_ = value;
}
onChanged();
} else {
versionBuilder_.mergeFrom(value);
}
return this;
}
/**
* .ibc.core.connection.v1.Version version = 3;
*/
public Builder clearVersion() {
if (versionBuilder_ == null) {
version_ = null;
onChanged();
} else {
version_ = null;
versionBuilder_ = null;
}
return this;
}
/**
* .ibc.core.connection.v1.Version version = 3;
*/
public ibc.core.connection.v1.Connection.Version.Builder getVersionBuilder() {
onChanged();
return getVersionFieldBuilder().getBuilder();
}
/**
* .ibc.core.connection.v1.Version version = 3;
*/
public ibc.core.connection.v1.Connection.VersionOrBuilder getVersionOrBuilder() {
if (versionBuilder_ != null) {
return versionBuilder_.getMessageOrBuilder();
} else {
return version_ == null ?
ibc.core.connection.v1.Connection.Version.getDefaultInstance() : version_;
}
}
/**
* .ibc.core.connection.v1.Version version = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ibc.core.connection.v1.Connection.Version, ibc.core.connection.v1.Connection.Version.Builder, ibc.core.connection.v1.Connection.VersionOrBuilder>
getVersionFieldBuilder() {
if (versionBuilder_ == null) {
versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ibc.core.connection.v1.Connection.Version, ibc.core.connection.v1.Connection.Version.Builder, ibc.core.connection.v1.Connection.VersionOrBuilder>(
getVersion(),
getParentForChildren(),
isClean());
version_ = null;
}
return versionBuilder_;
}
private com.google.protobuf.Any clientState_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> clientStateBuilder_;
/**
* .google.protobuf.Any client_state = 4 [(.gogoproto.moretags) = "yaml:\"client_state\""];
* @return Whether the clientState field is set.
*/
public boolean hasClientState() {
return clientStateBuilder_ != null || clientState_ != null;
}
/**
* .google.protobuf.Any client_state = 4 [(.gogoproto.moretags) = "yaml:\"client_state\""];
* @return The clientState.
*/
public com.google.protobuf.Any getClientState() {
if (clientStateBuilder_ == null) {
return clientState_ == null ? com.google.protobuf.Any.getDefaultInstance() : clientState_;
} else {
return clientStateBuilder_.getMessage();
}
}
/**
* .google.protobuf.Any client_state = 4 [(.gogoproto.moretags) = "yaml:\"client_state\""];
*/
public Builder setClientState(com.google.protobuf.Any value) {
if (clientStateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
clientState_ = value;
onChanged();
} else {
clientStateBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.Any client_state = 4 [(.gogoproto.moretags) = "yaml:\"client_state\""];
*/
public Builder setClientState(
com.google.protobuf.Any.Builder builderForValue) {
if (clientStateBuilder_ == null) {
clientState_ = builderForValue.build();
onChanged();
} else {
clientStateBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.Any client_state = 4 [(.gogoproto.moretags) = "yaml:\"client_state\""];
*/
public Builder mergeClientState(com.google.protobuf.Any value) {
if (clientStateBuilder_ == null) {
if (clientState_ != null) {
clientState_ =
com.google.protobuf.Any.newBuilder(clientState_).mergeFrom(value).buildPartial();
} else {
clientState_ = value;
}
onChanged();
} else {
clientStateBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.Any client_state = 4 [(.gogoproto.moretags) = "yaml:\"client_state\""];
*/
public Builder clearClientState() {
if (clientStateBuilder_ == null) {
clientState_ = null;
onChanged();
} else {
clientState_ = null;
clientStateBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.Any client_state = 4 [(.gogoproto.moretags) = "yaml:\"client_state\""];
*/
public com.google.protobuf.Any.Builder getClientStateBuilder() {
onChanged();
return getClientStateFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Any client_state = 4 [(.gogoproto.moretags) = "yaml:\"client_state\""];
*/
public com.google.protobuf.AnyOrBuilder getClientStateOrBuilder() {
if (clientStateBuilder_ != null) {
return clientStateBuilder_.getMessageOrBuilder();
} else {
return clientState_ == null ?
com.google.protobuf.Any.getDefaultInstance() : clientState_;
}
}
/**
* .google.protobuf.Any client_state = 4 [(.gogoproto.moretags) = "yaml:\"client_state\""];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getClientStateFieldBuilder() {
if (clientStateBuilder_ == null) {
clientStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
getClientState(),
getParentForChildren(),
isClean());
clientState_ = null;
}
return clientStateBuilder_;
}
private ibc.core.client.v1.Client.Height proofHeight_;
private com.google.protobuf.SingleFieldBuilderV3<
ibc.core.client.v1.Client.Height, ibc.core.client.v1.Client.Height.Builder, ibc.core.client.v1.Client.HeightOrBuilder> proofHeightBuilder_;
/**
* .ibc.core.client.v1.Height proof_height = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
* @return Whether the proofHeight field is set.
*/
public boolean hasProofHeight() {
return proofHeightBuilder_ != null || proofHeight_ != null;
}
/**
* .ibc.core.client.v1.Height proof_height = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
* @return The proofHeight.
*/
public ibc.core.client.v1.Client.Height getProofHeight() {
if (proofHeightBuilder_ == null) {
return proofHeight_ == null ? ibc.core.client.v1.Client.Height.getDefaultInstance() : proofHeight_;
} else {
return proofHeightBuilder_.getMessage();
}
}
/**
* .ibc.core.client.v1.Height proof_height = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
*/
public Builder setProofHeight(ibc.core.client.v1.Client.Height value) {
if (proofHeightBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
proofHeight_ = value;
onChanged();
} else {
proofHeightBuilder_.setMessage(value);
}
return this;
}
/**
* .ibc.core.client.v1.Height proof_height = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
*/
public Builder setProofHeight(
ibc.core.client.v1.Client.Height.Builder builderForValue) {
if (proofHeightBuilder_ == null) {
proofHeight_ = builderForValue.build();
onChanged();
} else {
proofHeightBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .ibc.core.client.v1.Height proof_height = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
*/
public Builder mergeProofHeight(ibc.core.client.v1.Client.Height value) {
if (proofHeightBuilder_ == null) {
if (proofHeight_ != null) {
proofHeight_ =
ibc.core.client.v1.Client.Height.newBuilder(proofHeight_).mergeFrom(value).buildPartial();
} else {
proofHeight_ = value;
}
onChanged();
} else {
proofHeightBuilder_.mergeFrom(value);
}
return this;
}
/**
* .ibc.core.client.v1.Height proof_height = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
*/
public Builder clearProofHeight() {
if (proofHeightBuilder_ == null) {
proofHeight_ = null;
onChanged();
} else {
proofHeight_ = null;
proofHeightBuilder_ = null;
}
return this;
}
/**
* .ibc.core.client.v1.Height proof_height = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
*/
public ibc.core.client.v1.Client.Height.Builder getProofHeightBuilder() {
onChanged();
return getProofHeightFieldBuilder().getBuilder();
}
/**
* .ibc.core.client.v1.Height proof_height = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
*/
public ibc.core.client.v1.Client.HeightOrBuilder getProofHeightOrBuilder() {
if (proofHeightBuilder_ != null) {
return proofHeightBuilder_.getMessageOrBuilder();
} else {
return proofHeight_ == null ?
ibc.core.client.v1.Client.Height.getDefaultInstance() : proofHeight_;
}
}
/**
* .ibc.core.client.v1.Height proof_height = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
*/
private com.google.protobuf.SingleFieldBuilderV3<
ibc.core.client.v1.Client.Height, ibc.core.client.v1.Client.Height.Builder, ibc.core.client.v1.Client.HeightOrBuilder>
getProofHeightFieldBuilder() {
if (proofHeightBuilder_ == null) {
proofHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ibc.core.client.v1.Client.Height, ibc.core.client.v1.Client.Height.Builder, ibc.core.client.v1.Client.HeightOrBuilder>(
getProofHeight(),
getParentForChildren(),
isClean());
proofHeight_ = null;
}
return proofHeightBuilder_;
}
private com.google.protobuf.ByteString proofTry_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* proof of the initialization the connection on Chain B: `UNITIALIZED ->
* TRYOPEN`
*
*
* bytes proof_try = 6 [(.gogoproto.moretags) = "yaml:\"proof_try\""];
* @return The proofTry.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProofTry() {
return proofTry_;
}
/**
*
* proof of the initialization the connection on Chain B: `UNITIALIZED ->
* TRYOPEN`
*
*
* bytes proof_try = 6 [(.gogoproto.moretags) = "yaml:\"proof_try\""];
* @param value The proofTry to set.
* @return This builder for chaining.
*/
public Builder setProofTry(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
proofTry_ = value;
onChanged();
return this;
}
/**
*
* proof of the initialization the connection on Chain B: `UNITIALIZED ->
* TRYOPEN`
*
*
* bytes proof_try = 6 [(.gogoproto.moretags) = "yaml:\"proof_try\""];
* @return This builder for chaining.
*/
public Builder clearProofTry() {
proofTry_ = getDefaultInstance().getProofTry();
onChanged();
return this;
}
private com.google.protobuf.ByteString proofClient_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* proof of client state included in message
*
*
* bytes proof_client = 7 [(.gogoproto.moretags) = "yaml:\"proof_client\""];
* @return The proofClient.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProofClient() {
return proofClient_;
}
/**
*
* proof of client state included in message
*
*
* bytes proof_client = 7 [(.gogoproto.moretags) = "yaml:\"proof_client\""];
* @param value The proofClient to set.
* @return This builder for chaining.
*/
public Builder setProofClient(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
proofClient_ = value;
onChanged();
return this;
}
/**
*
* proof of client state included in message
*
*
* bytes proof_client = 7 [(.gogoproto.moretags) = "yaml:\"proof_client\""];
* @return This builder for chaining.
*/
public Builder clearProofClient() {
proofClient_ = getDefaultInstance().getProofClient();
onChanged();
return this;
}
private com.google.protobuf.ByteString proofConsensus_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* proof of client consensus state
*
*
* bytes proof_consensus = 8 [(.gogoproto.moretags) = "yaml:\"proof_consensus\""];
* @return The proofConsensus.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProofConsensus() {
return proofConsensus_;
}
/**
*
* proof of client consensus state
*
*
* bytes proof_consensus = 8 [(.gogoproto.moretags) = "yaml:\"proof_consensus\""];
* @param value The proofConsensus to set.
* @return This builder for chaining.
*/
public Builder setProofConsensus(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
proofConsensus_ = value;
onChanged();
return this;
}
/**
*
* proof of client consensus state
*
*
* bytes proof_consensus = 8 [(.gogoproto.moretags) = "yaml:\"proof_consensus\""];
* @return This builder for chaining.
*/
public Builder clearProofConsensus() {
proofConsensus_ = getDefaultInstance().getProofConsensus();
onChanged();
return this;
}
private ibc.core.client.v1.Client.Height consensusHeight_;
private com.google.protobuf.SingleFieldBuilderV3<
ibc.core.client.v1.Client.Height, ibc.core.client.v1.Client.Height.Builder, ibc.core.client.v1.Client.HeightOrBuilder> consensusHeightBuilder_;
/**
* .ibc.core.client.v1.Height consensus_height = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""];
* @return Whether the consensusHeight field is set.
*/
public boolean hasConsensusHeight() {
return consensusHeightBuilder_ != null || consensusHeight_ != null;
}
/**
* .ibc.core.client.v1.Height consensus_height = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""];
* @return The consensusHeight.
*/
public ibc.core.client.v1.Client.Height getConsensusHeight() {
if (consensusHeightBuilder_ == null) {
return consensusHeight_ == null ? ibc.core.client.v1.Client.Height.getDefaultInstance() : consensusHeight_;
} else {
return consensusHeightBuilder_.getMessage();
}
}
/**
* .ibc.core.client.v1.Height consensus_height = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""];
*/
public Builder setConsensusHeight(ibc.core.client.v1.Client.Height value) {
if (consensusHeightBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
consensusHeight_ = value;
onChanged();
} else {
consensusHeightBuilder_.setMessage(value);
}
return this;
}
/**
* .ibc.core.client.v1.Height consensus_height = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""];
*/
public Builder setConsensusHeight(
ibc.core.client.v1.Client.Height.Builder builderForValue) {
if (consensusHeightBuilder_ == null) {
consensusHeight_ = builderForValue.build();
onChanged();
} else {
consensusHeightBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .ibc.core.client.v1.Height consensus_height = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""];
*/
public Builder mergeConsensusHeight(ibc.core.client.v1.Client.Height value) {
if (consensusHeightBuilder_ == null) {
if (consensusHeight_ != null) {
consensusHeight_ =
ibc.core.client.v1.Client.Height.newBuilder(consensusHeight_).mergeFrom(value).buildPartial();
} else {
consensusHeight_ = value;
}
onChanged();
} else {
consensusHeightBuilder_.mergeFrom(value);
}
return this;
}
/**
* .ibc.core.client.v1.Height consensus_height = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""];
*/
public Builder clearConsensusHeight() {
if (consensusHeightBuilder_ == null) {
consensusHeight_ = null;
onChanged();
} else {
consensusHeight_ = null;
consensusHeightBuilder_ = null;
}
return this;
}
/**
* .ibc.core.client.v1.Height consensus_height = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""];
*/
public ibc.core.client.v1.Client.Height.Builder getConsensusHeightBuilder() {
onChanged();
return getConsensusHeightFieldBuilder().getBuilder();
}
/**
* .ibc.core.client.v1.Height consensus_height = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""];
*/
public ibc.core.client.v1.Client.HeightOrBuilder getConsensusHeightOrBuilder() {
if (consensusHeightBuilder_ != null) {
return consensusHeightBuilder_.getMessageOrBuilder();
} else {
return consensusHeight_ == null ?
ibc.core.client.v1.Client.Height.getDefaultInstance() : consensusHeight_;
}
}
/**
* .ibc.core.client.v1.Height consensus_height = 9 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"consensus_height\""];
*/
private com.google.protobuf.SingleFieldBuilderV3<
ibc.core.client.v1.Client.Height, ibc.core.client.v1.Client.Height.Builder, ibc.core.client.v1.Client.HeightOrBuilder>
getConsensusHeightFieldBuilder() {
if (consensusHeightBuilder_ == null) {
consensusHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ibc.core.client.v1.Client.Height, ibc.core.client.v1.Client.Height.Builder, ibc.core.client.v1.Client.HeightOrBuilder>(
getConsensusHeight(),
getParentForChildren(),
isClean());
consensusHeight_ = null;
}
return consensusHeightBuilder_;
}
private java.lang.Object signer_ = "";
/**
* string signer = 10;
* @return The signer.
*/
public java.lang.String getSigner() {
java.lang.Object ref = signer_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
signer_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string signer = 10;
* @return The bytes for signer.
*/
public com.google.protobuf.ByteString
getSignerBytes() {
java.lang.Object ref = signer_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
signer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string signer = 10;
* @param value The signer to set.
* @return This builder for chaining.
*/
public Builder setSigner(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
signer_ = value;
onChanged();
return this;
}
/**
* string signer = 10;
* @return This builder for chaining.
*/
public Builder clearSigner() {
signer_ = getDefaultInstance().getSigner();
onChanged();
return this;
}
/**
* string signer = 10;
* @param value The bytes for signer to set.
* @return This builder for chaining.
*/
public Builder setSignerBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
signer_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(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.MsgConnectionOpenAck)
}
// @@protoc_insertion_point(class_scope:ibc.core.connection.v1.MsgConnectionOpenAck)
private static final ibc.core.connection.v1.Tx.MsgConnectionOpenAck DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ibc.core.connection.v1.Tx.MsgConnectionOpenAck();
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenAck getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MsgConnectionOpenAck parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MsgConnectionOpenAck(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.Tx.MsgConnectionOpenAck getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MsgConnectionOpenAckResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.MsgConnectionOpenAckResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck response type.
*
*
* Protobuf type {@code ibc.core.connection.v1.MsgConnectionOpenAckResponse}
*/
public static final class MsgConnectionOpenAckResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ibc.core.connection.v1.MsgConnectionOpenAckResponse)
MsgConnectionOpenAckResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use MsgConnectionOpenAckResponse.newBuilder() to construct.
private MsgConnectionOpenAckResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MsgConnectionOpenAckResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MsgConnectionOpenAckResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MsgConnectionOpenAckResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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;
default: {
if (!parseUnknownField(
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.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenAckResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenAckResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.connection.v1.Tx.MsgConnectionOpenAckResponse.class, ibc.core.connection.v1.Tx.MsgConnectionOpenAckResponse.Builder.class);
}
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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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.Tx.MsgConnectionOpenAckResponse)) {
return super.equals(obj);
}
ibc.core.connection.v1.Tx.MsgConnectionOpenAckResponse other = (ibc.core.connection.v1.Tx.MsgConnectionOpenAckResponse) obj;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenAckResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenAckResponse 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.Tx.MsgConnectionOpenAckResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenAckResponse 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.Tx.MsgConnectionOpenAckResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenAckResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenAckResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenAckResponse 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.Tx.MsgConnectionOpenAckResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenAckResponse 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.Tx.MsgConnectionOpenAckResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenAckResponse 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.Tx.MsgConnectionOpenAckResponse 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;
}
/**
*
* MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck response type.
*
*
* Protobuf type {@code ibc.core.connection.v1.MsgConnectionOpenAckResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.MsgConnectionOpenAckResponse)
ibc.core.connection.v1.Tx.MsgConnectionOpenAckResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenAckResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenAckResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.connection.v1.Tx.MsgConnectionOpenAckResponse.class, ibc.core.connection.v1.Tx.MsgConnectionOpenAckResponse.Builder.class);
}
// Construct using ibc.core.connection.v1.Tx.MsgConnectionOpenAckResponse.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();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenAckResponse_descriptor;
}
@java.lang.Override
public ibc.core.connection.v1.Tx.MsgConnectionOpenAckResponse getDefaultInstanceForType() {
return ibc.core.connection.v1.Tx.MsgConnectionOpenAckResponse.getDefaultInstance();
}
@java.lang.Override
public ibc.core.connection.v1.Tx.MsgConnectionOpenAckResponse build() {
ibc.core.connection.v1.Tx.MsgConnectionOpenAckResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ibc.core.connection.v1.Tx.MsgConnectionOpenAckResponse buildPartial() {
ibc.core.connection.v1.Tx.MsgConnectionOpenAckResponse result = new ibc.core.connection.v1.Tx.MsgConnectionOpenAckResponse(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ibc.core.connection.v1.Tx.MsgConnectionOpenAckResponse) {
return mergeFrom((ibc.core.connection.v1.Tx.MsgConnectionOpenAckResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ibc.core.connection.v1.Tx.MsgConnectionOpenAckResponse other) {
if (other == ibc.core.connection.v1.Tx.MsgConnectionOpenAckResponse.getDefaultInstance()) return this;
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.Tx.MsgConnectionOpenAckResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ibc.core.connection.v1.Tx.MsgConnectionOpenAckResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(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.MsgConnectionOpenAckResponse)
}
// @@protoc_insertion_point(class_scope:ibc.core.connection.v1.MsgConnectionOpenAckResponse)
private static final ibc.core.connection.v1.Tx.MsgConnectionOpenAckResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ibc.core.connection.v1.Tx.MsgConnectionOpenAckResponse();
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenAckResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MsgConnectionOpenAckResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MsgConnectionOpenAckResponse(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.Tx.MsgConnectionOpenAckResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MsgConnectionOpenConfirmOrBuilder extends
// @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.MsgConnectionOpenConfirm)
com.google.protobuf.MessageOrBuilder {
/**
* string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""];
* @return The connectionId.
*/
java.lang.String getConnectionId();
/**
* string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""];
* @return The bytes for connectionId.
*/
com.google.protobuf.ByteString
getConnectionIdBytes();
/**
*
* proof for the change of the connection state on Chain A: `INIT -> OPEN`
*
*
* bytes proof_ack = 2 [(.gogoproto.moretags) = "yaml:\"proof_ack\""];
* @return The proofAck.
*/
com.google.protobuf.ByteString getProofAck();
/**
* .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
* @return Whether the proofHeight field is set.
*/
boolean hasProofHeight();
/**
* .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
* @return The proofHeight.
*/
ibc.core.client.v1.Client.Height getProofHeight();
/**
* .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
*/
ibc.core.client.v1.Client.HeightOrBuilder getProofHeightOrBuilder();
/**
* string signer = 4;
* @return The signer.
*/
java.lang.String getSigner();
/**
* string signer = 4;
* @return The bytes for signer.
*/
com.google.protobuf.ByteString
getSignerBytes();
}
/**
*
* MsgConnectionOpenConfirm defines a msg sent by a Relayer to Chain B to
* acknowledge the change of connection state to OPEN on Chain A.
*
*
* Protobuf type {@code ibc.core.connection.v1.MsgConnectionOpenConfirm}
*/
public static final class MsgConnectionOpenConfirm extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ibc.core.connection.v1.MsgConnectionOpenConfirm)
MsgConnectionOpenConfirmOrBuilder {
private static final long serialVersionUID = 0L;
// Use MsgConnectionOpenConfirm.newBuilder() to construct.
private MsgConnectionOpenConfirm(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MsgConnectionOpenConfirm() {
connectionId_ = "";
proofAck_ = com.google.protobuf.ByteString.EMPTY;
signer_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MsgConnectionOpenConfirm();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MsgConnectionOpenConfirm(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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();
connectionId_ = s;
break;
}
case 18: {
proofAck_ = input.readBytes();
break;
}
case 26: {
ibc.core.client.v1.Client.Height.Builder subBuilder = null;
if (proofHeight_ != null) {
subBuilder = proofHeight_.toBuilder();
}
proofHeight_ = input.readMessage(ibc.core.client.v1.Client.Height.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(proofHeight_);
proofHeight_ = subBuilder.buildPartial();
}
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
signer_ = s;
break;
}
default: {
if (!parseUnknownField(
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.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenConfirm_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenConfirm_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm.class, ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm.Builder.class);
}
public static final int CONNECTION_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object connectionId_;
/**
* string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""];
* @return The connectionId.
*/
@java.lang.Override
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;
}
}
/**
* string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""];
* @return The bytes for connectionId.
*/
@java.lang.Override
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 PROOF_ACK_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString proofAck_;
/**
*
* proof for the change of the connection state on Chain A: `INIT -> OPEN`
*
*
* bytes proof_ack = 2 [(.gogoproto.moretags) = "yaml:\"proof_ack\""];
* @return The proofAck.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProofAck() {
return proofAck_;
}
public static final int PROOF_HEIGHT_FIELD_NUMBER = 3;
private ibc.core.client.v1.Client.Height proofHeight_;
/**
* .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
* @return Whether the proofHeight field is set.
*/
@java.lang.Override
public boolean hasProofHeight() {
return proofHeight_ != null;
}
/**
* .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
* @return The proofHeight.
*/
@java.lang.Override
public ibc.core.client.v1.Client.Height getProofHeight() {
return proofHeight_ == null ? ibc.core.client.v1.Client.Height.getDefaultInstance() : proofHeight_;
}
/**
* .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
*/
@java.lang.Override
public ibc.core.client.v1.Client.HeightOrBuilder getProofHeightOrBuilder() {
return getProofHeight();
}
public static final int SIGNER_FIELD_NUMBER = 4;
private volatile java.lang.Object signer_;
/**
* string signer = 4;
* @return The signer.
*/
@java.lang.Override
public java.lang.String getSigner() {
java.lang.Object ref = signer_;
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();
signer_ = s;
return s;
}
}
/**
* string signer = 4;
* @return The bytes for signer.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSignerBytes() {
java.lang.Object ref = signer_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
signer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(connectionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, connectionId_);
}
if (!proofAck_.isEmpty()) {
output.writeBytes(2, proofAck_);
}
if (proofHeight_ != null) {
output.writeMessage(3, getProofHeight());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(signer_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, signer_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(connectionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, connectionId_);
}
if (!proofAck_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, proofAck_);
}
if (proofHeight_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getProofHeight());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(signer_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, signer_);
}
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.Tx.MsgConnectionOpenConfirm)) {
return super.equals(obj);
}
ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm other = (ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm) obj;
if (!getConnectionId()
.equals(other.getConnectionId())) return false;
if (!getProofAck()
.equals(other.getProofAck())) return false;
if (hasProofHeight() != other.hasProofHeight()) return false;
if (hasProofHeight()) {
if (!getProofHeight()
.equals(other.getProofHeight())) return false;
}
if (!getSigner()
.equals(other.getSigner())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CONNECTION_ID_FIELD_NUMBER;
hash = (53 * hash) + getConnectionId().hashCode();
hash = (37 * hash) + PROOF_ACK_FIELD_NUMBER;
hash = (53 * hash) + getProofAck().hashCode();
if (hasProofHeight()) {
hash = (37 * hash) + PROOF_HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + getProofHeight().hashCode();
}
hash = (37 * hash) + SIGNER_FIELD_NUMBER;
hash = (53 * hash) + getSigner().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm 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.Tx.MsgConnectionOpenConfirm parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm 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.Tx.MsgConnectionOpenConfirm parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm 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.Tx.MsgConnectionOpenConfirm parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm 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.Tx.MsgConnectionOpenConfirm parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm 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.Tx.MsgConnectionOpenConfirm 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;
}
/**
*
* MsgConnectionOpenConfirm defines a msg sent by a Relayer to Chain B to
* acknowledge the change of connection state to OPEN on Chain A.
*
*
* Protobuf type {@code ibc.core.connection.v1.MsgConnectionOpenConfirm}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.MsgConnectionOpenConfirm)
ibc.core.connection.v1.Tx.MsgConnectionOpenConfirmOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenConfirm_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenConfirm_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm.class, ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm.Builder.class);
}
// Construct using ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm.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();
connectionId_ = "";
proofAck_ = com.google.protobuf.ByteString.EMPTY;
if (proofHeightBuilder_ == null) {
proofHeight_ = null;
} else {
proofHeight_ = null;
proofHeightBuilder_ = null;
}
signer_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenConfirm_descriptor;
}
@java.lang.Override
public ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm getDefaultInstanceForType() {
return ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm.getDefaultInstance();
}
@java.lang.Override
public ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm build() {
ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm buildPartial() {
ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm result = new ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm(this);
result.connectionId_ = connectionId_;
result.proofAck_ = proofAck_;
if (proofHeightBuilder_ == null) {
result.proofHeight_ = proofHeight_;
} else {
result.proofHeight_ = proofHeightBuilder_.build();
}
result.signer_ = signer_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm) {
return mergeFrom((ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm other) {
if (other == ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm.getDefaultInstance()) return this;
if (!other.getConnectionId().isEmpty()) {
connectionId_ = other.connectionId_;
onChanged();
}
if (other.getProofAck() != com.google.protobuf.ByteString.EMPTY) {
setProofAck(other.getProofAck());
}
if (other.hasProofHeight()) {
mergeProofHeight(other.getProofHeight());
}
if (!other.getSigner().isEmpty()) {
signer_ = other.signer_;
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.Tx.MsgConnectionOpenConfirm parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object connectionId_ = "";
/**
* string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""];
* @return The connectionId.
*/
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;
}
}
/**
* string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""];
* @return The bytes for connectionId.
*/
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;
}
}
/**
* string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""];
* @param value The connectionId to set.
* @return This builder for chaining.
*/
public Builder setConnectionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
connectionId_ = value;
onChanged();
return this;
}
/**
* string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""];
* @return This builder for chaining.
*/
public Builder clearConnectionId() {
connectionId_ = getDefaultInstance().getConnectionId();
onChanged();
return this;
}
/**
* string connection_id = 1 [(.gogoproto.moretags) = "yaml:\"connection_id\""];
* @param value The bytes for connectionId to set.
* @return This builder for chaining.
*/
public Builder setConnectionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
connectionId_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString proofAck_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* proof for the change of the connection state on Chain A: `INIT -> OPEN`
*
*
* bytes proof_ack = 2 [(.gogoproto.moretags) = "yaml:\"proof_ack\""];
* @return The proofAck.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProofAck() {
return proofAck_;
}
/**
*
* proof for the change of the connection state on Chain A: `INIT -> OPEN`
*
*
* bytes proof_ack = 2 [(.gogoproto.moretags) = "yaml:\"proof_ack\""];
* @param value The proofAck to set.
* @return This builder for chaining.
*/
public Builder setProofAck(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
proofAck_ = value;
onChanged();
return this;
}
/**
*
* proof for the change of the connection state on Chain A: `INIT -> OPEN`
*
*
* bytes proof_ack = 2 [(.gogoproto.moretags) = "yaml:\"proof_ack\""];
* @return This builder for chaining.
*/
public Builder clearProofAck() {
proofAck_ = getDefaultInstance().getProofAck();
onChanged();
return this;
}
private ibc.core.client.v1.Client.Height proofHeight_;
private com.google.protobuf.SingleFieldBuilderV3<
ibc.core.client.v1.Client.Height, ibc.core.client.v1.Client.Height.Builder, ibc.core.client.v1.Client.HeightOrBuilder> proofHeightBuilder_;
/**
* .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
* @return Whether the proofHeight field is set.
*/
public boolean hasProofHeight() {
return proofHeightBuilder_ != null || proofHeight_ != null;
}
/**
* .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
* @return The proofHeight.
*/
public ibc.core.client.v1.Client.Height getProofHeight() {
if (proofHeightBuilder_ == null) {
return proofHeight_ == null ? ibc.core.client.v1.Client.Height.getDefaultInstance() : proofHeight_;
} else {
return proofHeightBuilder_.getMessage();
}
}
/**
* .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
*/
public Builder setProofHeight(ibc.core.client.v1.Client.Height value) {
if (proofHeightBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
proofHeight_ = value;
onChanged();
} else {
proofHeightBuilder_.setMessage(value);
}
return this;
}
/**
* .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
*/
public Builder setProofHeight(
ibc.core.client.v1.Client.Height.Builder builderForValue) {
if (proofHeightBuilder_ == null) {
proofHeight_ = builderForValue.build();
onChanged();
} else {
proofHeightBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
*/
public Builder mergeProofHeight(ibc.core.client.v1.Client.Height value) {
if (proofHeightBuilder_ == null) {
if (proofHeight_ != null) {
proofHeight_ =
ibc.core.client.v1.Client.Height.newBuilder(proofHeight_).mergeFrom(value).buildPartial();
} else {
proofHeight_ = value;
}
onChanged();
} else {
proofHeightBuilder_.mergeFrom(value);
}
return this;
}
/**
* .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
*/
public Builder clearProofHeight() {
if (proofHeightBuilder_ == null) {
proofHeight_ = null;
onChanged();
} else {
proofHeight_ = null;
proofHeightBuilder_ = null;
}
return this;
}
/**
* .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
*/
public ibc.core.client.v1.Client.Height.Builder getProofHeightBuilder() {
onChanged();
return getProofHeightFieldBuilder().getBuilder();
}
/**
* .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
*/
public ibc.core.client.v1.Client.HeightOrBuilder getProofHeightOrBuilder() {
if (proofHeightBuilder_ != null) {
return proofHeightBuilder_.getMessageOrBuilder();
} else {
return proofHeight_ == null ?
ibc.core.client.v1.Client.Height.getDefaultInstance() : proofHeight_;
}
}
/**
* .ibc.core.client.v1.Height proof_height = 3 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"proof_height\""];
*/
private com.google.protobuf.SingleFieldBuilderV3<
ibc.core.client.v1.Client.Height, ibc.core.client.v1.Client.Height.Builder, ibc.core.client.v1.Client.HeightOrBuilder>
getProofHeightFieldBuilder() {
if (proofHeightBuilder_ == null) {
proofHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ibc.core.client.v1.Client.Height, ibc.core.client.v1.Client.Height.Builder, ibc.core.client.v1.Client.HeightOrBuilder>(
getProofHeight(),
getParentForChildren(),
isClean());
proofHeight_ = null;
}
return proofHeightBuilder_;
}
private java.lang.Object signer_ = "";
/**
* string signer = 4;
* @return The signer.
*/
public java.lang.String getSigner() {
java.lang.Object ref = signer_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
signer_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string signer = 4;
* @return The bytes for signer.
*/
public com.google.protobuf.ByteString
getSignerBytes() {
java.lang.Object ref = signer_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
signer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string signer = 4;
* @param value The signer to set.
* @return This builder for chaining.
*/
public Builder setSigner(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
signer_ = value;
onChanged();
return this;
}
/**
* string signer = 4;
* @return This builder for chaining.
*/
public Builder clearSigner() {
signer_ = getDefaultInstance().getSigner();
onChanged();
return this;
}
/**
* string signer = 4;
* @param value The bytes for signer to set.
* @return This builder for chaining.
*/
public Builder setSignerBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
signer_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(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.MsgConnectionOpenConfirm)
}
// @@protoc_insertion_point(class_scope:ibc.core.connection.v1.MsgConnectionOpenConfirm)
private static final ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm();
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MsgConnectionOpenConfirm parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MsgConnectionOpenConfirm(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.Tx.MsgConnectionOpenConfirm getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MsgConnectionOpenConfirmResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:ibc.core.connection.v1.MsgConnectionOpenConfirmResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* MsgConnectionOpenConfirmResponse defines the Msg/ConnectionOpenConfirm
* response type.
*
*
* Protobuf type {@code ibc.core.connection.v1.MsgConnectionOpenConfirmResponse}
*/
public static final class MsgConnectionOpenConfirmResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ibc.core.connection.v1.MsgConnectionOpenConfirmResponse)
MsgConnectionOpenConfirmResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use MsgConnectionOpenConfirmResponse.newBuilder() to construct.
private MsgConnectionOpenConfirmResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MsgConnectionOpenConfirmResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MsgConnectionOpenConfirmResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MsgConnectionOpenConfirmResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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;
default: {
if (!parseUnknownField(
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.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenConfirmResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenConfirmResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.connection.v1.Tx.MsgConnectionOpenConfirmResponse.class, ibc.core.connection.v1.Tx.MsgConnectionOpenConfirmResponse.Builder.class);
}
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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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.Tx.MsgConnectionOpenConfirmResponse)) {
return super.equals(obj);
}
ibc.core.connection.v1.Tx.MsgConnectionOpenConfirmResponse other = (ibc.core.connection.v1.Tx.MsgConnectionOpenConfirmResponse) obj;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenConfirmResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenConfirmResponse 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.Tx.MsgConnectionOpenConfirmResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenConfirmResponse 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.Tx.MsgConnectionOpenConfirmResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenConfirmResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenConfirmResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenConfirmResponse 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.Tx.MsgConnectionOpenConfirmResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenConfirmResponse 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.Tx.MsgConnectionOpenConfirmResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenConfirmResponse 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.Tx.MsgConnectionOpenConfirmResponse 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;
}
/**
*
* MsgConnectionOpenConfirmResponse defines the Msg/ConnectionOpenConfirm
* response type.
*
*
* Protobuf type {@code ibc.core.connection.v1.MsgConnectionOpenConfirmResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ibc.core.connection.v1.MsgConnectionOpenConfirmResponse)
ibc.core.connection.v1.Tx.MsgConnectionOpenConfirmResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenConfirmResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenConfirmResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.connection.v1.Tx.MsgConnectionOpenConfirmResponse.class, ibc.core.connection.v1.Tx.MsgConnectionOpenConfirmResponse.Builder.class);
}
// Construct using ibc.core.connection.v1.Tx.MsgConnectionOpenConfirmResponse.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();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ibc.core.connection.v1.Tx.internal_static_ibc_core_connection_v1_MsgConnectionOpenConfirmResponse_descriptor;
}
@java.lang.Override
public ibc.core.connection.v1.Tx.MsgConnectionOpenConfirmResponse getDefaultInstanceForType() {
return ibc.core.connection.v1.Tx.MsgConnectionOpenConfirmResponse.getDefaultInstance();
}
@java.lang.Override
public ibc.core.connection.v1.Tx.MsgConnectionOpenConfirmResponse build() {
ibc.core.connection.v1.Tx.MsgConnectionOpenConfirmResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ibc.core.connection.v1.Tx.MsgConnectionOpenConfirmResponse buildPartial() {
ibc.core.connection.v1.Tx.MsgConnectionOpenConfirmResponse result = new ibc.core.connection.v1.Tx.MsgConnectionOpenConfirmResponse(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ibc.core.connection.v1.Tx.MsgConnectionOpenConfirmResponse) {
return mergeFrom((ibc.core.connection.v1.Tx.MsgConnectionOpenConfirmResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ibc.core.connection.v1.Tx.MsgConnectionOpenConfirmResponse other) {
if (other == ibc.core.connection.v1.Tx.MsgConnectionOpenConfirmResponse.getDefaultInstance()) return this;
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.Tx.MsgConnectionOpenConfirmResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ibc.core.connection.v1.Tx.MsgConnectionOpenConfirmResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(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.MsgConnectionOpenConfirmResponse)
}
// @@protoc_insertion_point(class_scope:ibc.core.connection.v1.MsgConnectionOpenConfirmResponse)
private static final ibc.core.connection.v1.Tx.MsgConnectionOpenConfirmResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ibc.core.connection.v1.Tx.MsgConnectionOpenConfirmResponse();
}
public static ibc.core.connection.v1.Tx.MsgConnectionOpenConfirmResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MsgConnectionOpenConfirmResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MsgConnectionOpenConfirmResponse(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.Tx.MsgConnectionOpenConfirmResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ibc_core_connection_v1_MsgConnectionOpenInit_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ibc_core_connection_v1_MsgConnectionOpenInit_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ibc_core_connection_v1_MsgConnectionOpenInitResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ibc_core_connection_v1_MsgConnectionOpenInitResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ibc_core_connection_v1_MsgConnectionOpenTry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ibc_core_connection_v1_MsgConnectionOpenTry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ibc_core_connection_v1_MsgConnectionOpenTryResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ibc_core_connection_v1_MsgConnectionOpenTryResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ibc_core_connection_v1_MsgConnectionOpenAck_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ibc_core_connection_v1_MsgConnectionOpenAck_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ibc_core_connection_v1_MsgConnectionOpenAckResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ibc_core_connection_v1_MsgConnectionOpenAckResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ibc_core_connection_v1_MsgConnectionOpenConfirm_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ibc_core_connection_v1_MsgConnectionOpenConfirm_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ibc_core_connection_v1_MsgConnectionOpenConfirmResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ibc_core_connection_v1_MsgConnectionOpenConfirmResponse_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\037ibc/core/connection/v1/tx.proto\022\026ibc.c" +
"ore.connection.v1\032\024gogoproto/gogo.proto\032" +
"\031google/protobuf/any.proto\032\037ibc/core/cli" +
"ent/v1/client.proto\032\'ibc/core/connection" +
"/v1/connection.proto\"\375\001\n\025MsgConnectionOp" +
"enInit\022\'\n\tclient_id\030\001 \001(\tB\024\362\336\037\020yaml:\"cli" +
"ent_id\"\022@\n\014counterparty\030\002 \001(\0132$.ibc.core" +
".connection.v1.CounterpartyB\004\310\336\037\000\0220\n\007ver" +
"sion\030\003 \001(\0132\037.ibc.core.connection.v1.Vers" +
"ion\022-\n\014delay_period\030\004 \001(\004B\027\362\336\037\023yaml:\"del" +
"ay_period\"\022\016\n\006signer\030\005 \001(\t:\010\350\240\037\000\210\240\037\000\"\037\n\035" +
"MsgConnectionOpenInitResponse\"\351\005\n\024MsgCon" +
"nectionOpenTry\022\'\n\tclient_id\030\001 \001(\tB\024\362\336\037\020y" +
"aml:\"client_id\"\022A\n\026previous_connection_i" +
"d\030\002 \001(\tB!\362\336\037\035yaml:\"previous_connection_i" +
"d\"\022C\n\014client_state\030\003 \001(\0132\024.google.protob" +
"uf.AnyB\027\362\336\037\023yaml:\"client_state\"\022@\n\014count" +
"erparty\030\004 \001(\0132$.ibc.core.connection.v1.C" +
"ounterpartyB\004\310\336\037\000\022-\n\014delay_period\030\005 \001(\004B" +
"\027\362\336\037\023yaml:\"delay_period\"\022`\n\025counterparty" +
"_versions\030\006 \003(\0132\037.ibc.core.connection.v1" +
".VersionB \362\336\037\034yaml:\"counterparty_version" +
"s\"\022M\n\014proof_height\030\007 \001(\0132\032.ibc.core.clie" +
"nt.v1.HeightB\033\362\336\037\023yaml:\"proof_height\"\310\336\037" +
"\000\022)\n\nproof_init\030\010 \001(\014B\025\362\336\037\021yaml:\"proof_i" +
"nit\"\022-\n\014proof_client\030\t \001(\014B\027\362\336\037\023yaml:\"pr" +
"oof_client\"\0223\n\017proof_consensus\030\n \001(\014B\032\362\336" +
"\037\026yaml:\"proof_consensus\"\022U\n\020consensus_he" +
"ight\030\013 \001(\0132\032.ibc.core.client.v1.HeightB\037" +
"\362\336\037\027yaml:\"consensus_height\"\310\336\037\000\022\016\n\006signe" +
"r\030\014 \001(\t:\010\350\240\037\000\210\240\037\000\"\036\n\034MsgConnectionOpenTr" +
"yResponse\"\326\004\n\024MsgConnectionOpenAck\022/\n\rco" +
"nnection_id\030\001 \001(\tB\030\362\336\037\024yaml:\"connection_" +
"id\"\022I\n\032counterparty_connection_id\030\002 \001(\tB" +
"%\362\336\037!yaml:\"counterparty_connection_id\"\0220" +
"\n\007version\030\003 \001(\0132\037.ibc.core.connection.v1" +
".Version\022C\n\014client_state\030\004 \001(\0132\024.google." +
"protobuf.AnyB\027\362\336\037\023yaml:\"client_state\"\022M\n" +
"\014proof_height\030\005 \001(\0132\032.ibc.core.client.v1" +
".HeightB\033\362\336\037\023yaml:\"proof_height\"\310\336\037\000\022\'\n\t" +
"proof_try\030\006 \001(\014B\024\362\336\037\020yaml:\"proof_try\"\022-\n" +
"\014proof_client\030\007 \001(\014B\027\362\336\037\023yaml:\"proof_cli" +
"ent\"\0223\n\017proof_consensus\030\010 \001(\014B\032\362\336\037\026yaml:" +
"\"proof_consensus\"\022U\n\020consensus_height\030\t " +
"\001(\0132\032.ibc.core.client.v1.HeightB\037\362\336\037\027yam" +
"l:\"consensus_height\"\310\336\037\000\022\016\n\006signer\030\n \001(\t" +
":\010\350\240\037\000\210\240\037\000\"\036\n\034MsgConnectionOpenAckRespon" +
"se\"\335\001\n\030MsgConnectionOpenConfirm\022/\n\rconne" +
"ction_id\030\001 \001(\tB\030\362\336\037\024yaml:\"connection_id\"" +
"\022\'\n\tproof_ack\030\002 \001(\014B\024\362\336\037\020yaml:\"proof_ack" +
"\"\022M\n\014proof_height\030\003 \001(\0132\032.ibc.core.clien" +
"t.v1.HeightB\033\362\336\037\023yaml:\"proof_height\"\310\336\037\000" +
"\022\016\n\006signer\030\004 \001(\t:\010\350\240\037\000\210\240\037\000\"\"\n MsgConnect" +
"ionOpenConfirmResponse2\371\003\n\003Msg\022z\n\022Connec" +
"tionOpenInit\022-.ibc.core.connection.v1.Ms" +
"gConnectionOpenInit\0325.ibc.core.connectio" +
"n.v1.MsgConnectionOpenInitResponse\022w\n\021Co" +
"nnectionOpenTry\022,.ibc.core.connection.v1" +
".MsgConnectionOpenTry\0324.ibc.core.connect" +
"ion.v1.MsgConnectionOpenTryResponse\022w\n\021C" +
"onnectionOpenAck\022,.ibc.core.connection.v" +
"1.MsgConnectionOpenAck\0324.ibc.core.connec" +
"tion.v1.MsgConnectionOpenAckResponse\022\203\001\n" +
"\025ConnectionOpenConfirm\0220.ibc.core.connec" +
"tion.v1.MsgConnectionOpenConfirm\0328.ibc.c" +
"ore.connection.v1.MsgConnectionOpenConfi" +
"rmResponseB>Z
© 2015 - 2025 Weber Informatics LLC | Privacy Policy