
ibc.core.channel.v1.ChannelOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ibc/core/channel/v1/channel.proto
package ibc.core.channel.v1;
public final class ChannelOuterClass {
private ChannelOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
*
* State defines if a channel is in one of the following states:
* CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED.
*
*
* Protobuf enum {@code ibc.core.channel.v1.State}
*/
public enum State
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Default State
*
*
* STATE_UNINITIALIZED_UNSPECIFIED = 0 [(.gogoproto.enumvalue_customname) = "UNINITIALIZED"];
*/
STATE_UNINITIALIZED_UNSPECIFIED(0),
/**
*
* A channel has just started the opening handshake.
*
*
* STATE_INIT = 1 [(.gogoproto.enumvalue_customname) = "INIT"];
*/
STATE_INIT(1),
/**
*
* A channel has acknowledged the handshake step on the counterparty chain.
*
*
* STATE_TRYOPEN = 2 [(.gogoproto.enumvalue_customname) = "TRYOPEN"];
*/
STATE_TRYOPEN(2),
/**
*
* A channel has completed the handshake. Open channels are
* ready to send and receive packets.
*
*
* STATE_OPEN = 3 [(.gogoproto.enumvalue_customname) = "OPEN"];
*/
STATE_OPEN(3),
/**
*
* A channel has been closed and can no longer be used to send or receive
* packets.
*
*
* STATE_CLOSED = 4 [(.gogoproto.enumvalue_customname) = "CLOSED"];
*/
STATE_CLOSED(4),
UNRECOGNIZED(-1),
;
/**
*
* Default State
*
*
* STATE_UNINITIALIZED_UNSPECIFIED = 0 [(.gogoproto.enumvalue_customname) = "UNINITIALIZED"];
*/
public static final int STATE_UNINITIALIZED_UNSPECIFIED_VALUE = 0;
/**
*
* A channel has just started the opening handshake.
*
*
* STATE_INIT = 1 [(.gogoproto.enumvalue_customname) = "INIT"];
*/
public static final int STATE_INIT_VALUE = 1;
/**
*
* A channel has acknowledged the handshake step on the counterparty chain.
*
*
* STATE_TRYOPEN = 2 [(.gogoproto.enumvalue_customname) = "TRYOPEN"];
*/
public static final int STATE_TRYOPEN_VALUE = 2;
/**
*
* A channel has completed the handshake. Open channels are
* ready to send and receive packets.
*
*
* STATE_OPEN = 3 [(.gogoproto.enumvalue_customname) = "OPEN"];
*/
public static final int STATE_OPEN_VALUE = 3;
/**
*
* A channel has been closed and can no longer be used to send or receive
* packets.
*
*
* STATE_CLOSED = 4 [(.gogoproto.enumvalue_customname) = "CLOSED"];
*/
public static final int STATE_CLOSED_VALUE = 4;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static State valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static State forNumber(int value) {
switch (value) {
case 0: return STATE_UNINITIALIZED_UNSPECIFIED;
case 1: return STATE_INIT;
case 2: return STATE_TRYOPEN;
case 3: return STATE_OPEN;
case 4: return STATE_CLOSED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
State> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public State findValueByNumber(int number) {
return State.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return ibc.core.channel.v1.ChannelOuterClass.getDescriptor().getEnumTypes().get(0);
}
private static final State[] VALUES = values();
public static State valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private State(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:ibc.core.channel.v1.State)
}
/**
*
* Order defines if a channel is ORDERED or UNORDERED
*
*
* Protobuf enum {@code ibc.core.channel.v1.Order}
*/
public enum Order
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* zero-value for channel ordering
*
*
* ORDER_NONE_UNSPECIFIED = 0 [(.gogoproto.enumvalue_customname) = "NONE"];
*/
ORDER_NONE_UNSPECIFIED(0),
/**
*
* packets can be delivered in any order, which may differ from the order in
* which they were sent.
*
*
* ORDER_UNORDERED = 1 [(.gogoproto.enumvalue_customname) = "UNORDERED"];
*/
ORDER_UNORDERED(1),
/**
*
* packets are delivered exactly in the order which they were sent
*
*
* ORDER_ORDERED = 2 [(.gogoproto.enumvalue_customname) = "ORDERED"];
*/
ORDER_ORDERED(2),
UNRECOGNIZED(-1),
;
/**
*
* zero-value for channel ordering
*
*
* ORDER_NONE_UNSPECIFIED = 0 [(.gogoproto.enumvalue_customname) = "NONE"];
*/
public static final int ORDER_NONE_UNSPECIFIED_VALUE = 0;
/**
*
* packets can be delivered in any order, which may differ from the order in
* which they were sent.
*
*
* ORDER_UNORDERED = 1 [(.gogoproto.enumvalue_customname) = "UNORDERED"];
*/
public static final int ORDER_UNORDERED_VALUE = 1;
/**
*
* packets are delivered exactly in the order which they were sent
*
*
* ORDER_ORDERED = 2 [(.gogoproto.enumvalue_customname) = "ORDERED"];
*/
public static final int ORDER_ORDERED_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Order valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Order forNumber(int value) {
switch (value) {
case 0: return ORDER_NONE_UNSPECIFIED;
case 1: return ORDER_UNORDERED;
case 2: return ORDER_ORDERED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Order> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Order findValueByNumber(int number) {
return Order.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return ibc.core.channel.v1.ChannelOuterClass.getDescriptor().getEnumTypes().get(1);
}
private static final Order[] VALUES = values();
public static Order valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Order(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:ibc.core.channel.v1.Order)
}
public interface ChannelOrBuilder extends
// @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.Channel)
com.google.protobuf.MessageOrBuilder {
/**
*
* current state of the channel end
*
*
* .ibc.core.channel.v1.State state = 1;
* @return The enum numeric value on the wire for state.
*/
int getStateValue();
/**
*
* current state of the channel end
*
*
* .ibc.core.channel.v1.State state = 1;
* @return The state.
*/
ibc.core.channel.v1.ChannelOuterClass.State getState();
/**
*
* whether the channel is ordered or unordered
*
*
* .ibc.core.channel.v1.Order ordering = 2;
* @return The enum numeric value on the wire for ordering.
*/
int getOrderingValue();
/**
*
* whether the channel is ordered or unordered
*
*
* .ibc.core.channel.v1.Order ordering = 2;
* @return The ordering.
*/
ibc.core.channel.v1.ChannelOuterClass.Order getOrdering();
/**
*
* counterparty channel end
*
*
* .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false];
* @return Whether the counterparty field is set.
*/
boolean hasCounterparty();
/**
*
* counterparty channel end
*
*
* .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false];
* @return The counterparty.
*/
ibc.core.channel.v1.ChannelOuterClass.Counterparty getCounterparty();
/**
*
* counterparty channel end
*
*
* .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false];
*/
ibc.core.channel.v1.ChannelOuterClass.CounterpartyOrBuilder getCounterpartyOrBuilder();
/**
*
* list of connection identifiers, in order, along which packets sent on
* this channel will travel
*
*
* repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""];
* @return A list containing the connectionHops.
*/
java.util.List
getConnectionHopsList();
/**
*
* list of connection identifiers, in order, along which packets sent on
* this channel will travel
*
*
* repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""];
* @return The count of connectionHops.
*/
int getConnectionHopsCount();
/**
*
* list of connection identifiers, in order, along which packets sent on
* this channel will travel
*
*
* repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""];
* @param index The index of the element to return.
* @return The connectionHops at the given index.
*/
java.lang.String getConnectionHops(int index);
/**
*
* list of connection identifiers, in order, along which packets sent on
* this channel will travel
*
*
* repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""];
* @param index The index of the value to return.
* @return The bytes of the connectionHops at the given index.
*/
com.google.protobuf.ByteString
getConnectionHopsBytes(int index);
/**
*
* opaque channel version, which is agreed upon during the handshake
*
*
* string version = 5;
* @return The version.
*/
java.lang.String getVersion();
/**
*
* opaque channel version, which is agreed upon during the handshake
*
*
* string version = 5;
* @return The bytes for version.
*/
com.google.protobuf.ByteString
getVersionBytes();
}
/**
*
* Channel defines pipeline for exactly-once packet delivery between specific
* modules on separate blockchains, which has at least one end capable of
* sending packets and one end capable of receiving packets.
*
*
* Protobuf type {@code ibc.core.channel.v1.Channel}
*/
public static final class Channel extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ibc.core.channel.v1.Channel)
ChannelOrBuilder {
private static final long serialVersionUID = 0L;
// Use Channel.newBuilder() to construct.
private Channel(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Channel() {
state_ = 0;
ordering_ = 0;
connectionHops_ = com.google.protobuf.LazyStringArrayList.EMPTY;
version_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Channel();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Channel(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
state_ = rawValue;
break;
}
case 16: {
int rawValue = input.readEnum();
ordering_ = rawValue;
break;
}
case 26: {
ibc.core.channel.v1.ChannelOuterClass.Counterparty.Builder subBuilder = null;
if (counterparty_ != null) {
subBuilder = counterparty_.toBuilder();
}
counterparty_ = input.readMessage(ibc.core.channel.v1.ChannelOuterClass.Counterparty.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(counterparty_);
counterparty_ = subBuilder.buildPartial();
}
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
connectionHops_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
connectionHops_.add(s);
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
version_ = 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)) {
connectionHops_ = connectionHops_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Channel_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Channel_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.channel.v1.ChannelOuterClass.Channel.class, ibc.core.channel.v1.ChannelOuterClass.Channel.Builder.class);
}
public static final int STATE_FIELD_NUMBER = 1;
private int state_;
/**
*
* current state of the channel end
*
*
* .ibc.core.channel.v1.State state = 1;
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override public int getStateValue() {
return state_;
}
/**
*
* current state of the channel end
*
*
* .ibc.core.channel.v1.State state = 1;
* @return The state.
*/
@java.lang.Override public ibc.core.channel.v1.ChannelOuterClass.State getState() {
@SuppressWarnings("deprecation")
ibc.core.channel.v1.ChannelOuterClass.State result = ibc.core.channel.v1.ChannelOuterClass.State.valueOf(state_);
return result == null ? ibc.core.channel.v1.ChannelOuterClass.State.UNRECOGNIZED : result;
}
public static final int ORDERING_FIELD_NUMBER = 2;
private int ordering_;
/**
*
* whether the channel is ordered or unordered
*
*
* .ibc.core.channel.v1.Order ordering = 2;
* @return The enum numeric value on the wire for ordering.
*/
@java.lang.Override public int getOrderingValue() {
return ordering_;
}
/**
*
* whether the channel is ordered or unordered
*
*
* .ibc.core.channel.v1.Order ordering = 2;
* @return The ordering.
*/
@java.lang.Override public ibc.core.channel.v1.ChannelOuterClass.Order getOrdering() {
@SuppressWarnings("deprecation")
ibc.core.channel.v1.ChannelOuterClass.Order result = ibc.core.channel.v1.ChannelOuterClass.Order.valueOf(ordering_);
return result == null ? ibc.core.channel.v1.ChannelOuterClass.Order.UNRECOGNIZED : result;
}
public static final int COUNTERPARTY_FIELD_NUMBER = 3;
private ibc.core.channel.v1.ChannelOuterClass.Counterparty counterparty_;
/**
*
* counterparty channel end
*
*
* .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false];
* @return Whether the counterparty field is set.
*/
@java.lang.Override
public boolean hasCounterparty() {
return counterparty_ != null;
}
/**
*
* counterparty channel end
*
*
* .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false];
* @return The counterparty.
*/
@java.lang.Override
public ibc.core.channel.v1.ChannelOuterClass.Counterparty getCounterparty() {
return counterparty_ == null ? ibc.core.channel.v1.ChannelOuterClass.Counterparty.getDefaultInstance() : counterparty_;
}
/**
*
* counterparty channel end
*
*
* .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public ibc.core.channel.v1.ChannelOuterClass.CounterpartyOrBuilder getCounterpartyOrBuilder() {
return getCounterparty();
}
public static final int CONNECTION_HOPS_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList connectionHops_;
/**
*
* list of connection identifiers, in order, along which packets sent on
* this channel will travel
*
*
* repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""];
* @return A list containing the connectionHops.
*/
public com.google.protobuf.ProtocolStringList
getConnectionHopsList() {
return connectionHops_;
}
/**
*
* list of connection identifiers, in order, along which packets sent on
* this channel will travel
*
*
* repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""];
* @return The count of connectionHops.
*/
public int getConnectionHopsCount() {
return connectionHops_.size();
}
/**
*
* list of connection identifiers, in order, along which packets sent on
* this channel will travel
*
*
* repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""];
* @param index The index of the element to return.
* @return The connectionHops at the given index.
*/
public java.lang.String getConnectionHops(int index) {
return connectionHops_.get(index);
}
/**
*
* list of connection identifiers, in order, along which packets sent on
* this channel will travel
*
*
* repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""];
* @param index The index of the value to return.
* @return The bytes of the connectionHops at the given index.
*/
public com.google.protobuf.ByteString
getConnectionHopsBytes(int index) {
return connectionHops_.getByteString(index);
}
public static final int VERSION_FIELD_NUMBER = 5;
private volatile java.lang.Object version_;
/**
*
* opaque channel version, which is agreed upon during the handshake
*
*
* string version = 5;
* @return The version.
*/
@java.lang.Override
public java.lang.String getVersion() {
java.lang.Object ref = version_;
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();
version_ = s;
return s;
}
}
/**
*
* opaque channel version, which is agreed upon during the handshake
*
*
* string version = 5;
* @return The bytes for version.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = 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 (state_ != ibc.core.channel.v1.ChannelOuterClass.State.STATE_UNINITIALIZED_UNSPECIFIED.getNumber()) {
output.writeEnum(1, state_);
}
if (ordering_ != ibc.core.channel.v1.ChannelOuterClass.Order.ORDER_NONE_UNSPECIFIED.getNumber()) {
output.writeEnum(2, ordering_);
}
if (counterparty_ != null) {
output.writeMessage(3, getCounterparty());
}
for (int i = 0; i < connectionHops_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, connectionHops_.getRaw(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, version_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (state_ != ibc.core.channel.v1.ChannelOuterClass.State.STATE_UNINITIALIZED_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, state_);
}
if (ordering_ != ibc.core.channel.v1.ChannelOuterClass.Order.ORDER_NONE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, ordering_);
}
if (counterparty_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getCounterparty());
}
{
int dataSize = 0;
for (int i = 0; i < connectionHops_.size(); i++) {
dataSize += computeStringSizeNoTag(connectionHops_.getRaw(i));
}
size += dataSize;
size += 1 * getConnectionHopsList().size();
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, version_);
}
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.channel.v1.ChannelOuterClass.Channel)) {
return super.equals(obj);
}
ibc.core.channel.v1.ChannelOuterClass.Channel other = (ibc.core.channel.v1.ChannelOuterClass.Channel) obj;
if (state_ != other.state_) return false;
if (ordering_ != other.ordering_) return false;
if (hasCounterparty() != other.hasCounterparty()) return false;
if (hasCounterparty()) {
if (!getCounterparty()
.equals(other.getCounterparty())) return false;
}
if (!getConnectionHopsList()
.equals(other.getConnectionHopsList())) return false;
if (!getVersion()
.equals(other.getVersion())) 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) + STATE_FIELD_NUMBER;
hash = (53 * hash) + state_;
hash = (37 * hash) + ORDERING_FIELD_NUMBER;
hash = (53 * hash) + ordering_;
if (hasCounterparty()) {
hash = (37 * hash) + COUNTERPARTY_FIELD_NUMBER;
hash = (53 * hash) + getCounterparty().hashCode();
}
if (getConnectionHopsCount() > 0) {
hash = (37 * hash) + CONNECTION_HOPS_FIELD_NUMBER;
hash = (53 * hash) + getConnectionHopsList().hashCode();
}
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ibc.core.channel.v1.ChannelOuterClass.Channel parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.channel.v1.ChannelOuterClass.Channel parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.channel.v1.ChannelOuterClass.Channel parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.channel.v1.ChannelOuterClass.Channel 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.channel.v1.ChannelOuterClass.Channel parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.channel.v1.ChannelOuterClass.Channel parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.channel.v1.ChannelOuterClass.Channel parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.channel.v1.ChannelOuterClass.Channel 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.channel.v1.ChannelOuterClass.Channel parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ibc.core.channel.v1.ChannelOuterClass.Channel 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.channel.v1.ChannelOuterClass.Channel parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.channel.v1.ChannelOuterClass.Channel 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.channel.v1.ChannelOuterClass.Channel 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;
}
/**
*
* Channel defines pipeline for exactly-once packet delivery between specific
* modules on separate blockchains, which has at least one end capable of
* sending packets and one end capable of receiving packets.
*
*
* Protobuf type {@code ibc.core.channel.v1.Channel}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.Channel)
ibc.core.channel.v1.ChannelOuterClass.ChannelOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Channel_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Channel_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.channel.v1.ChannelOuterClass.Channel.class, ibc.core.channel.v1.ChannelOuterClass.Channel.Builder.class);
}
// Construct using ibc.core.channel.v1.ChannelOuterClass.Channel.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();
state_ = 0;
ordering_ = 0;
if (counterpartyBuilder_ == null) {
counterparty_ = null;
} else {
counterparty_ = null;
counterpartyBuilder_ = null;
}
connectionHops_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
version_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Channel_descriptor;
}
@java.lang.Override
public ibc.core.channel.v1.ChannelOuterClass.Channel getDefaultInstanceForType() {
return ibc.core.channel.v1.ChannelOuterClass.Channel.getDefaultInstance();
}
@java.lang.Override
public ibc.core.channel.v1.ChannelOuterClass.Channel build() {
ibc.core.channel.v1.ChannelOuterClass.Channel result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ibc.core.channel.v1.ChannelOuterClass.Channel buildPartial() {
ibc.core.channel.v1.ChannelOuterClass.Channel result = new ibc.core.channel.v1.ChannelOuterClass.Channel(this);
int from_bitField0_ = bitField0_;
result.state_ = state_;
result.ordering_ = ordering_;
if (counterpartyBuilder_ == null) {
result.counterparty_ = counterparty_;
} else {
result.counterparty_ = counterpartyBuilder_.build();
}
if (((bitField0_ & 0x00000001) != 0)) {
connectionHops_ = connectionHops_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.connectionHops_ = connectionHops_;
result.version_ = version_;
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.channel.v1.ChannelOuterClass.Channel) {
return mergeFrom((ibc.core.channel.v1.ChannelOuterClass.Channel)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ibc.core.channel.v1.ChannelOuterClass.Channel other) {
if (other == ibc.core.channel.v1.ChannelOuterClass.Channel.getDefaultInstance()) return this;
if (other.state_ != 0) {
setStateValue(other.getStateValue());
}
if (other.ordering_ != 0) {
setOrderingValue(other.getOrderingValue());
}
if (other.hasCounterparty()) {
mergeCounterparty(other.getCounterparty());
}
if (!other.connectionHops_.isEmpty()) {
if (connectionHops_.isEmpty()) {
connectionHops_ = other.connectionHops_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureConnectionHopsIsMutable();
connectionHops_.addAll(other.connectionHops_);
}
onChanged();
}
if (!other.getVersion().isEmpty()) {
version_ = other.version_;
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.channel.v1.ChannelOuterClass.Channel parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ibc.core.channel.v1.ChannelOuterClass.Channel) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int state_ = 0;
/**
*
* current state of the channel end
*
*
* .ibc.core.channel.v1.State state = 1;
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override public int getStateValue() {
return state_;
}
/**
*
* current state of the channel end
*
*
* .ibc.core.channel.v1.State state = 1;
* @param value The enum numeric value on the wire for state to set.
* @return This builder for chaining.
*/
public Builder setStateValue(int value) {
state_ = value;
onChanged();
return this;
}
/**
*
* current state of the channel end
*
*
* .ibc.core.channel.v1.State state = 1;
* @return The state.
*/
@java.lang.Override
public ibc.core.channel.v1.ChannelOuterClass.State getState() {
@SuppressWarnings("deprecation")
ibc.core.channel.v1.ChannelOuterClass.State result = ibc.core.channel.v1.ChannelOuterClass.State.valueOf(state_);
return result == null ? ibc.core.channel.v1.ChannelOuterClass.State.UNRECOGNIZED : result;
}
/**
*
* current state of the channel end
*
*
* .ibc.core.channel.v1.State state = 1;
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(ibc.core.channel.v1.ChannelOuterClass.State value) {
if (value == null) {
throw new NullPointerException();
}
state_ = value.getNumber();
onChanged();
return this;
}
/**
*
* current state of the channel end
*
*
* .ibc.core.channel.v1.State state = 1;
* @return This builder for chaining.
*/
public Builder clearState() {
state_ = 0;
onChanged();
return this;
}
private int ordering_ = 0;
/**
*
* whether the channel is ordered or unordered
*
*
* .ibc.core.channel.v1.Order ordering = 2;
* @return The enum numeric value on the wire for ordering.
*/
@java.lang.Override public int getOrderingValue() {
return ordering_;
}
/**
*
* whether the channel is ordered or unordered
*
*
* .ibc.core.channel.v1.Order ordering = 2;
* @param value The enum numeric value on the wire for ordering to set.
* @return This builder for chaining.
*/
public Builder setOrderingValue(int value) {
ordering_ = value;
onChanged();
return this;
}
/**
*
* whether the channel is ordered or unordered
*
*
* .ibc.core.channel.v1.Order ordering = 2;
* @return The ordering.
*/
@java.lang.Override
public ibc.core.channel.v1.ChannelOuterClass.Order getOrdering() {
@SuppressWarnings("deprecation")
ibc.core.channel.v1.ChannelOuterClass.Order result = ibc.core.channel.v1.ChannelOuterClass.Order.valueOf(ordering_);
return result == null ? ibc.core.channel.v1.ChannelOuterClass.Order.UNRECOGNIZED : result;
}
/**
*
* whether the channel is ordered or unordered
*
*
* .ibc.core.channel.v1.Order ordering = 2;
* @param value The ordering to set.
* @return This builder for chaining.
*/
public Builder setOrdering(ibc.core.channel.v1.ChannelOuterClass.Order value) {
if (value == null) {
throw new NullPointerException();
}
ordering_ = value.getNumber();
onChanged();
return this;
}
/**
*
* whether the channel is ordered or unordered
*
*
* .ibc.core.channel.v1.Order ordering = 2;
* @return This builder for chaining.
*/
public Builder clearOrdering() {
ordering_ = 0;
onChanged();
return this;
}
private ibc.core.channel.v1.ChannelOuterClass.Counterparty counterparty_;
private com.google.protobuf.SingleFieldBuilderV3<
ibc.core.channel.v1.ChannelOuterClass.Counterparty, ibc.core.channel.v1.ChannelOuterClass.Counterparty.Builder, ibc.core.channel.v1.ChannelOuterClass.CounterpartyOrBuilder> counterpartyBuilder_;
/**
*
* counterparty channel end
*
*
* .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false];
* @return Whether the counterparty field is set.
*/
public boolean hasCounterparty() {
return counterpartyBuilder_ != null || counterparty_ != null;
}
/**
*
* counterparty channel end
*
*
* .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false];
* @return The counterparty.
*/
public ibc.core.channel.v1.ChannelOuterClass.Counterparty getCounterparty() {
if (counterpartyBuilder_ == null) {
return counterparty_ == null ? ibc.core.channel.v1.ChannelOuterClass.Counterparty.getDefaultInstance() : counterparty_;
} else {
return counterpartyBuilder_.getMessage();
}
}
/**
*
* counterparty channel end
*
*
* .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false];
*/
public Builder setCounterparty(ibc.core.channel.v1.ChannelOuterClass.Counterparty value) {
if (counterpartyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
counterparty_ = value;
onChanged();
} else {
counterpartyBuilder_.setMessage(value);
}
return this;
}
/**
*
* counterparty channel end
*
*
* .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false];
*/
public Builder setCounterparty(
ibc.core.channel.v1.ChannelOuterClass.Counterparty.Builder builderForValue) {
if (counterpartyBuilder_ == null) {
counterparty_ = builderForValue.build();
onChanged();
} else {
counterpartyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* counterparty channel end
*
*
* .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false];
*/
public Builder mergeCounterparty(ibc.core.channel.v1.ChannelOuterClass.Counterparty value) {
if (counterpartyBuilder_ == null) {
if (counterparty_ != null) {
counterparty_ =
ibc.core.channel.v1.ChannelOuterClass.Counterparty.newBuilder(counterparty_).mergeFrom(value).buildPartial();
} else {
counterparty_ = value;
}
onChanged();
} else {
counterpartyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* counterparty channel end
*
*
* .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false];
*/
public Builder clearCounterparty() {
if (counterpartyBuilder_ == null) {
counterparty_ = null;
onChanged();
} else {
counterparty_ = null;
counterpartyBuilder_ = null;
}
return this;
}
/**
*
* counterparty channel end
*
*
* .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false];
*/
public ibc.core.channel.v1.ChannelOuterClass.Counterparty.Builder getCounterpartyBuilder() {
onChanged();
return getCounterpartyFieldBuilder().getBuilder();
}
/**
*
* counterparty channel end
*
*
* .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false];
*/
public ibc.core.channel.v1.ChannelOuterClass.CounterpartyOrBuilder getCounterpartyOrBuilder() {
if (counterpartyBuilder_ != null) {
return counterpartyBuilder_.getMessageOrBuilder();
} else {
return counterparty_ == null ?
ibc.core.channel.v1.ChannelOuterClass.Counterparty.getDefaultInstance() : counterparty_;
}
}
/**
*
* counterparty channel end
*
*
* .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false];
*/
private com.google.protobuf.SingleFieldBuilderV3<
ibc.core.channel.v1.ChannelOuterClass.Counterparty, ibc.core.channel.v1.ChannelOuterClass.Counterparty.Builder, ibc.core.channel.v1.ChannelOuterClass.CounterpartyOrBuilder>
getCounterpartyFieldBuilder() {
if (counterpartyBuilder_ == null) {
counterpartyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ibc.core.channel.v1.ChannelOuterClass.Counterparty, ibc.core.channel.v1.ChannelOuterClass.Counterparty.Builder, ibc.core.channel.v1.ChannelOuterClass.CounterpartyOrBuilder>(
getCounterparty(),
getParentForChildren(),
isClean());
counterparty_ = null;
}
return counterpartyBuilder_;
}
private com.google.protobuf.LazyStringList connectionHops_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureConnectionHopsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
connectionHops_ = new com.google.protobuf.LazyStringArrayList(connectionHops_);
bitField0_ |= 0x00000001;
}
}
/**
*
* list of connection identifiers, in order, along which packets sent on
* this channel will travel
*
*
* repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""];
* @return A list containing the connectionHops.
*/
public com.google.protobuf.ProtocolStringList
getConnectionHopsList() {
return connectionHops_.getUnmodifiableView();
}
/**
*
* list of connection identifiers, in order, along which packets sent on
* this channel will travel
*
*
* repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""];
* @return The count of connectionHops.
*/
public int getConnectionHopsCount() {
return connectionHops_.size();
}
/**
*
* list of connection identifiers, in order, along which packets sent on
* this channel will travel
*
*
* repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""];
* @param index The index of the element to return.
* @return The connectionHops at the given index.
*/
public java.lang.String getConnectionHops(int index) {
return connectionHops_.get(index);
}
/**
*
* list of connection identifiers, in order, along which packets sent on
* this channel will travel
*
*
* repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""];
* @param index The index of the value to return.
* @return The bytes of the connectionHops at the given index.
*/
public com.google.protobuf.ByteString
getConnectionHopsBytes(int index) {
return connectionHops_.getByteString(index);
}
/**
*
* list of connection identifiers, in order, along which packets sent on
* this channel will travel
*
*
* repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""];
* @param index The index to set the value at.
* @param value The connectionHops to set.
* @return This builder for chaining.
*/
public Builder setConnectionHops(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureConnectionHopsIsMutable();
connectionHops_.set(index, value);
onChanged();
return this;
}
/**
*
* list of connection identifiers, in order, along which packets sent on
* this channel will travel
*
*
* repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""];
* @param value The connectionHops to add.
* @return This builder for chaining.
*/
public Builder addConnectionHops(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureConnectionHopsIsMutable();
connectionHops_.add(value);
onChanged();
return this;
}
/**
*
* list of connection identifiers, in order, along which packets sent on
* this channel will travel
*
*
* repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""];
* @param values The connectionHops to add.
* @return This builder for chaining.
*/
public Builder addAllConnectionHops(
java.lang.Iterable values) {
ensureConnectionHopsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, connectionHops_);
onChanged();
return this;
}
/**
*
* list of connection identifiers, in order, along which packets sent on
* this channel will travel
*
*
* repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""];
* @return This builder for chaining.
*/
public Builder clearConnectionHops() {
connectionHops_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* list of connection identifiers, in order, along which packets sent on
* this channel will travel
*
*
* repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""];
* @param value The bytes of the connectionHops to add.
* @return This builder for chaining.
*/
public Builder addConnectionHopsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureConnectionHopsIsMutable();
connectionHops_.add(value);
onChanged();
return this;
}
private java.lang.Object version_ = "";
/**
*
* opaque channel version, which is agreed upon during the handshake
*
*
* string version = 5;
* @return The version.
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
version_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* opaque channel version, which is agreed upon during the handshake
*
*
* string version = 5;
* @return The bytes for version.
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* opaque channel version, which is agreed upon during the handshake
*
*
* string version = 5;
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
version_ = value;
onChanged();
return this;
}
/**
*
* opaque channel version, which is agreed upon during the handshake
*
*
* string version = 5;
* @return This builder for chaining.
*/
public Builder clearVersion() {
version_ = getDefaultInstance().getVersion();
onChanged();
return this;
}
/**
*
* opaque channel version, which is agreed upon during the handshake
*
*
* string version = 5;
* @param value The bytes for version to set.
* @return This builder for chaining.
*/
public Builder setVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
version_ = 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.channel.v1.Channel)
}
// @@protoc_insertion_point(class_scope:ibc.core.channel.v1.Channel)
private static final ibc.core.channel.v1.ChannelOuterClass.Channel DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ibc.core.channel.v1.ChannelOuterClass.Channel();
}
public static ibc.core.channel.v1.ChannelOuterClass.Channel getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Channel parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Channel(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.channel.v1.ChannelOuterClass.Channel getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IdentifiedChannelOrBuilder extends
// @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.IdentifiedChannel)
com.google.protobuf.MessageOrBuilder {
/**
*
* current state of the channel end
*
*
* .ibc.core.channel.v1.State state = 1;
* @return The enum numeric value on the wire for state.
*/
int getStateValue();
/**
*
* current state of the channel end
*
*
* .ibc.core.channel.v1.State state = 1;
* @return The state.
*/
ibc.core.channel.v1.ChannelOuterClass.State getState();
/**
*
* whether the channel is ordered or unordered
*
*
* .ibc.core.channel.v1.Order ordering = 2;
* @return The enum numeric value on the wire for ordering.
*/
int getOrderingValue();
/**
*
* whether the channel is ordered or unordered
*
*
* .ibc.core.channel.v1.Order ordering = 2;
* @return The ordering.
*/
ibc.core.channel.v1.ChannelOuterClass.Order getOrdering();
/**
*
* counterparty channel end
*
*
* .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false];
* @return Whether the counterparty field is set.
*/
boolean hasCounterparty();
/**
*
* counterparty channel end
*
*
* .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false];
* @return The counterparty.
*/
ibc.core.channel.v1.ChannelOuterClass.Counterparty getCounterparty();
/**
*
* counterparty channel end
*
*
* .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false];
*/
ibc.core.channel.v1.ChannelOuterClass.CounterpartyOrBuilder getCounterpartyOrBuilder();
/**
*
* list of connection identifiers, in order, along which packets sent on
* this channel will travel
*
*
* repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""];
* @return A list containing the connectionHops.
*/
java.util.List
getConnectionHopsList();
/**
*
* list of connection identifiers, in order, along which packets sent on
* this channel will travel
*
*
* repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""];
* @return The count of connectionHops.
*/
int getConnectionHopsCount();
/**
*
* list of connection identifiers, in order, along which packets sent on
* this channel will travel
*
*
* repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""];
* @param index The index of the element to return.
* @return The connectionHops at the given index.
*/
java.lang.String getConnectionHops(int index);
/**
*
* list of connection identifiers, in order, along which packets sent on
* this channel will travel
*
*
* repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""];
* @param index The index of the value to return.
* @return The bytes of the connectionHops at the given index.
*/
com.google.protobuf.ByteString
getConnectionHopsBytes(int index);
/**
*
* opaque channel version, which is agreed upon during the handshake
*
*
* string version = 5;
* @return The version.
*/
java.lang.String getVersion();
/**
*
* opaque channel version, which is agreed upon during the handshake
*
*
* string version = 5;
* @return The bytes for version.
*/
com.google.protobuf.ByteString
getVersionBytes();
/**
*
* port identifier
*
*
* string port_id = 6;
* @return The portId.
*/
java.lang.String getPortId();
/**
*
* port identifier
*
*
* string port_id = 6;
* @return The bytes for portId.
*/
com.google.protobuf.ByteString
getPortIdBytes();
/**
*
* channel identifier
*
*
* string channel_id = 7;
* @return The channelId.
*/
java.lang.String getChannelId();
/**
*
* channel identifier
*
*
* string channel_id = 7;
* @return The bytes for channelId.
*/
com.google.protobuf.ByteString
getChannelIdBytes();
}
/**
*
* IdentifiedChannel defines a channel with additional port and channel
* identifier fields.
*
*
* Protobuf type {@code ibc.core.channel.v1.IdentifiedChannel}
*/
public static final class IdentifiedChannel extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ibc.core.channel.v1.IdentifiedChannel)
IdentifiedChannelOrBuilder {
private static final long serialVersionUID = 0L;
// Use IdentifiedChannel.newBuilder() to construct.
private IdentifiedChannel(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IdentifiedChannel() {
state_ = 0;
ordering_ = 0;
connectionHops_ = com.google.protobuf.LazyStringArrayList.EMPTY;
version_ = "";
portId_ = "";
channelId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IdentifiedChannel();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IdentifiedChannel(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
state_ = rawValue;
break;
}
case 16: {
int rawValue = input.readEnum();
ordering_ = rawValue;
break;
}
case 26: {
ibc.core.channel.v1.ChannelOuterClass.Counterparty.Builder subBuilder = null;
if (counterparty_ != null) {
subBuilder = counterparty_.toBuilder();
}
counterparty_ = input.readMessage(ibc.core.channel.v1.ChannelOuterClass.Counterparty.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(counterparty_);
counterparty_ = subBuilder.buildPartial();
}
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
connectionHops_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
connectionHops_.add(s);
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
version_ = s;
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
portId_ = s;
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
channelId_ = 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)) {
connectionHops_ = connectionHops_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_IdentifiedChannel_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_IdentifiedChannel_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.channel.v1.ChannelOuterClass.IdentifiedChannel.class, ibc.core.channel.v1.ChannelOuterClass.IdentifiedChannel.Builder.class);
}
public static final int STATE_FIELD_NUMBER = 1;
private int state_;
/**
*
* current state of the channel end
*
*
* .ibc.core.channel.v1.State state = 1;
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override public int getStateValue() {
return state_;
}
/**
*
* current state of the channel end
*
*
* .ibc.core.channel.v1.State state = 1;
* @return The state.
*/
@java.lang.Override public ibc.core.channel.v1.ChannelOuterClass.State getState() {
@SuppressWarnings("deprecation")
ibc.core.channel.v1.ChannelOuterClass.State result = ibc.core.channel.v1.ChannelOuterClass.State.valueOf(state_);
return result == null ? ibc.core.channel.v1.ChannelOuterClass.State.UNRECOGNIZED : result;
}
public static final int ORDERING_FIELD_NUMBER = 2;
private int ordering_;
/**
*
* whether the channel is ordered or unordered
*
*
* .ibc.core.channel.v1.Order ordering = 2;
* @return The enum numeric value on the wire for ordering.
*/
@java.lang.Override public int getOrderingValue() {
return ordering_;
}
/**
*
* whether the channel is ordered or unordered
*
*
* .ibc.core.channel.v1.Order ordering = 2;
* @return The ordering.
*/
@java.lang.Override public ibc.core.channel.v1.ChannelOuterClass.Order getOrdering() {
@SuppressWarnings("deprecation")
ibc.core.channel.v1.ChannelOuterClass.Order result = ibc.core.channel.v1.ChannelOuterClass.Order.valueOf(ordering_);
return result == null ? ibc.core.channel.v1.ChannelOuterClass.Order.UNRECOGNIZED : result;
}
public static final int COUNTERPARTY_FIELD_NUMBER = 3;
private ibc.core.channel.v1.ChannelOuterClass.Counterparty counterparty_;
/**
*
* counterparty channel end
*
*
* .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false];
* @return Whether the counterparty field is set.
*/
@java.lang.Override
public boolean hasCounterparty() {
return counterparty_ != null;
}
/**
*
* counterparty channel end
*
*
* .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false];
* @return The counterparty.
*/
@java.lang.Override
public ibc.core.channel.v1.ChannelOuterClass.Counterparty getCounterparty() {
return counterparty_ == null ? ibc.core.channel.v1.ChannelOuterClass.Counterparty.getDefaultInstance() : counterparty_;
}
/**
*
* counterparty channel end
*
*
* .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false];
*/
@java.lang.Override
public ibc.core.channel.v1.ChannelOuterClass.CounterpartyOrBuilder getCounterpartyOrBuilder() {
return getCounterparty();
}
public static final int CONNECTION_HOPS_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList connectionHops_;
/**
*
* list of connection identifiers, in order, along which packets sent on
* this channel will travel
*
*
* repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""];
* @return A list containing the connectionHops.
*/
public com.google.protobuf.ProtocolStringList
getConnectionHopsList() {
return connectionHops_;
}
/**
*
* list of connection identifiers, in order, along which packets sent on
* this channel will travel
*
*
* repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""];
* @return The count of connectionHops.
*/
public int getConnectionHopsCount() {
return connectionHops_.size();
}
/**
*
* list of connection identifiers, in order, along which packets sent on
* this channel will travel
*
*
* repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""];
* @param index The index of the element to return.
* @return The connectionHops at the given index.
*/
public java.lang.String getConnectionHops(int index) {
return connectionHops_.get(index);
}
/**
*
* list of connection identifiers, in order, along which packets sent on
* this channel will travel
*
*
* repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""];
* @param index The index of the value to return.
* @return The bytes of the connectionHops at the given index.
*/
public com.google.protobuf.ByteString
getConnectionHopsBytes(int index) {
return connectionHops_.getByteString(index);
}
public static final int VERSION_FIELD_NUMBER = 5;
private volatile java.lang.Object version_;
/**
*
* opaque channel version, which is agreed upon during the handshake
*
*
* string version = 5;
* @return The version.
*/
@java.lang.Override
public java.lang.String getVersion() {
java.lang.Object ref = version_;
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();
version_ = s;
return s;
}
}
/**
*
* opaque channel version, which is agreed upon during the handshake
*
*
* string version = 5;
* @return The bytes for version.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PORT_ID_FIELD_NUMBER = 6;
private volatile java.lang.Object portId_;
/**
*
* port identifier
*
*
* string port_id = 6;
* @return The portId.
*/
@java.lang.Override
public java.lang.String getPortId() {
java.lang.Object ref = portId_;
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();
portId_ = s;
return s;
}
}
/**
*
* port identifier
*
*
* string port_id = 6;
* @return The bytes for portId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPortIdBytes() {
java.lang.Object ref = portId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
portId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CHANNEL_ID_FIELD_NUMBER = 7;
private volatile java.lang.Object channelId_;
/**
*
* channel identifier
*
*
* string channel_id = 7;
* @return The channelId.
*/
@java.lang.Override
public java.lang.String getChannelId() {
java.lang.Object ref = channelId_;
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();
channelId_ = s;
return s;
}
}
/**
*
* channel identifier
*
*
* string channel_id = 7;
* @return The bytes for channelId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getChannelIdBytes() {
java.lang.Object ref = channelId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
channelId_ = 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 (state_ != ibc.core.channel.v1.ChannelOuterClass.State.STATE_UNINITIALIZED_UNSPECIFIED.getNumber()) {
output.writeEnum(1, state_);
}
if (ordering_ != ibc.core.channel.v1.ChannelOuterClass.Order.ORDER_NONE_UNSPECIFIED.getNumber()) {
output.writeEnum(2, ordering_);
}
if (counterparty_ != null) {
output.writeMessage(3, getCounterparty());
}
for (int i = 0; i < connectionHops_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, connectionHops_.getRaw(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, version_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(portId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, portId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channelId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, channelId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (state_ != ibc.core.channel.v1.ChannelOuterClass.State.STATE_UNINITIALIZED_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, state_);
}
if (ordering_ != ibc.core.channel.v1.ChannelOuterClass.Order.ORDER_NONE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, ordering_);
}
if (counterparty_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getCounterparty());
}
{
int dataSize = 0;
for (int i = 0; i < connectionHops_.size(); i++) {
dataSize += computeStringSizeNoTag(connectionHops_.getRaw(i));
}
size += dataSize;
size += 1 * getConnectionHopsList().size();
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, version_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(portId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, portId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channelId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, channelId_);
}
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.channel.v1.ChannelOuterClass.IdentifiedChannel)) {
return super.equals(obj);
}
ibc.core.channel.v1.ChannelOuterClass.IdentifiedChannel other = (ibc.core.channel.v1.ChannelOuterClass.IdentifiedChannel) obj;
if (state_ != other.state_) return false;
if (ordering_ != other.ordering_) return false;
if (hasCounterparty() != other.hasCounterparty()) return false;
if (hasCounterparty()) {
if (!getCounterparty()
.equals(other.getCounterparty())) return false;
}
if (!getConnectionHopsList()
.equals(other.getConnectionHopsList())) return false;
if (!getVersion()
.equals(other.getVersion())) return false;
if (!getPortId()
.equals(other.getPortId())) return false;
if (!getChannelId()
.equals(other.getChannelId())) 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) + STATE_FIELD_NUMBER;
hash = (53 * hash) + state_;
hash = (37 * hash) + ORDERING_FIELD_NUMBER;
hash = (53 * hash) + ordering_;
if (hasCounterparty()) {
hash = (37 * hash) + COUNTERPARTY_FIELD_NUMBER;
hash = (53 * hash) + getCounterparty().hashCode();
}
if (getConnectionHopsCount() > 0) {
hash = (37 * hash) + CONNECTION_HOPS_FIELD_NUMBER;
hash = (53 * hash) + getConnectionHopsList().hashCode();
}
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion().hashCode();
hash = (37 * hash) + PORT_ID_FIELD_NUMBER;
hash = (53 * hash) + getPortId().hashCode();
hash = (37 * hash) + CHANNEL_ID_FIELD_NUMBER;
hash = (53 * hash) + getChannelId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ibc.core.channel.v1.ChannelOuterClass.IdentifiedChannel parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.channel.v1.ChannelOuterClass.IdentifiedChannel parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.channel.v1.ChannelOuterClass.IdentifiedChannel parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.channel.v1.ChannelOuterClass.IdentifiedChannel 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.channel.v1.ChannelOuterClass.IdentifiedChannel parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.channel.v1.ChannelOuterClass.IdentifiedChannel parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.channel.v1.ChannelOuterClass.IdentifiedChannel parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.channel.v1.ChannelOuterClass.IdentifiedChannel 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.channel.v1.ChannelOuterClass.IdentifiedChannel parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ibc.core.channel.v1.ChannelOuterClass.IdentifiedChannel 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.channel.v1.ChannelOuterClass.IdentifiedChannel parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.channel.v1.ChannelOuterClass.IdentifiedChannel 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.channel.v1.ChannelOuterClass.IdentifiedChannel 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;
}
/**
*
* IdentifiedChannel defines a channel with additional port and channel
* identifier fields.
*
*
* Protobuf type {@code ibc.core.channel.v1.IdentifiedChannel}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.IdentifiedChannel)
ibc.core.channel.v1.ChannelOuterClass.IdentifiedChannelOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_IdentifiedChannel_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_IdentifiedChannel_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.channel.v1.ChannelOuterClass.IdentifiedChannel.class, ibc.core.channel.v1.ChannelOuterClass.IdentifiedChannel.Builder.class);
}
// Construct using ibc.core.channel.v1.ChannelOuterClass.IdentifiedChannel.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();
state_ = 0;
ordering_ = 0;
if (counterpartyBuilder_ == null) {
counterparty_ = null;
} else {
counterparty_ = null;
counterpartyBuilder_ = null;
}
connectionHops_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
version_ = "";
portId_ = "";
channelId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_IdentifiedChannel_descriptor;
}
@java.lang.Override
public ibc.core.channel.v1.ChannelOuterClass.IdentifiedChannel getDefaultInstanceForType() {
return ibc.core.channel.v1.ChannelOuterClass.IdentifiedChannel.getDefaultInstance();
}
@java.lang.Override
public ibc.core.channel.v1.ChannelOuterClass.IdentifiedChannel build() {
ibc.core.channel.v1.ChannelOuterClass.IdentifiedChannel result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ibc.core.channel.v1.ChannelOuterClass.IdentifiedChannel buildPartial() {
ibc.core.channel.v1.ChannelOuterClass.IdentifiedChannel result = new ibc.core.channel.v1.ChannelOuterClass.IdentifiedChannel(this);
int from_bitField0_ = bitField0_;
result.state_ = state_;
result.ordering_ = ordering_;
if (counterpartyBuilder_ == null) {
result.counterparty_ = counterparty_;
} else {
result.counterparty_ = counterpartyBuilder_.build();
}
if (((bitField0_ & 0x00000001) != 0)) {
connectionHops_ = connectionHops_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.connectionHops_ = connectionHops_;
result.version_ = version_;
result.portId_ = portId_;
result.channelId_ = channelId_;
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.channel.v1.ChannelOuterClass.IdentifiedChannel) {
return mergeFrom((ibc.core.channel.v1.ChannelOuterClass.IdentifiedChannel)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ibc.core.channel.v1.ChannelOuterClass.IdentifiedChannel other) {
if (other == ibc.core.channel.v1.ChannelOuterClass.IdentifiedChannel.getDefaultInstance()) return this;
if (other.state_ != 0) {
setStateValue(other.getStateValue());
}
if (other.ordering_ != 0) {
setOrderingValue(other.getOrderingValue());
}
if (other.hasCounterparty()) {
mergeCounterparty(other.getCounterparty());
}
if (!other.connectionHops_.isEmpty()) {
if (connectionHops_.isEmpty()) {
connectionHops_ = other.connectionHops_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureConnectionHopsIsMutable();
connectionHops_.addAll(other.connectionHops_);
}
onChanged();
}
if (!other.getVersion().isEmpty()) {
version_ = other.version_;
onChanged();
}
if (!other.getPortId().isEmpty()) {
portId_ = other.portId_;
onChanged();
}
if (!other.getChannelId().isEmpty()) {
channelId_ = other.channelId_;
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.channel.v1.ChannelOuterClass.IdentifiedChannel parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ibc.core.channel.v1.ChannelOuterClass.IdentifiedChannel) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int state_ = 0;
/**
*
* current state of the channel end
*
*
* .ibc.core.channel.v1.State state = 1;
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override public int getStateValue() {
return state_;
}
/**
*
* current state of the channel end
*
*
* .ibc.core.channel.v1.State state = 1;
* @param value The enum numeric value on the wire for state to set.
* @return This builder for chaining.
*/
public Builder setStateValue(int value) {
state_ = value;
onChanged();
return this;
}
/**
*
* current state of the channel end
*
*
* .ibc.core.channel.v1.State state = 1;
* @return The state.
*/
@java.lang.Override
public ibc.core.channel.v1.ChannelOuterClass.State getState() {
@SuppressWarnings("deprecation")
ibc.core.channel.v1.ChannelOuterClass.State result = ibc.core.channel.v1.ChannelOuterClass.State.valueOf(state_);
return result == null ? ibc.core.channel.v1.ChannelOuterClass.State.UNRECOGNIZED : result;
}
/**
*
* current state of the channel end
*
*
* .ibc.core.channel.v1.State state = 1;
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(ibc.core.channel.v1.ChannelOuterClass.State value) {
if (value == null) {
throw new NullPointerException();
}
state_ = value.getNumber();
onChanged();
return this;
}
/**
*
* current state of the channel end
*
*
* .ibc.core.channel.v1.State state = 1;
* @return This builder for chaining.
*/
public Builder clearState() {
state_ = 0;
onChanged();
return this;
}
private int ordering_ = 0;
/**
*
* whether the channel is ordered or unordered
*
*
* .ibc.core.channel.v1.Order ordering = 2;
* @return The enum numeric value on the wire for ordering.
*/
@java.lang.Override public int getOrderingValue() {
return ordering_;
}
/**
*
* whether the channel is ordered or unordered
*
*
* .ibc.core.channel.v1.Order ordering = 2;
* @param value The enum numeric value on the wire for ordering to set.
* @return This builder for chaining.
*/
public Builder setOrderingValue(int value) {
ordering_ = value;
onChanged();
return this;
}
/**
*
* whether the channel is ordered or unordered
*
*
* .ibc.core.channel.v1.Order ordering = 2;
* @return The ordering.
*/
@java.lang.Override
public ibc.core.channel.v1.ChannelOuterClass.Order getOrdering() {
@SuppressWarnings("deprecation")
ibc.core.channel.v1.ChannelOuterClass.Order result = ibc.core.channel.v1.ChannelOuterClass.Order.valueOf(ordering_);
return result == null ? ibc.core.channel.v1.ChannelOuterClass.Order.UNRECOGNIZED : result;
}
/**
*
* whether the channel is ordered or unordered
*
*
* .ibc.core.channel.v1.Order ordering = 2;
* @param value The ordering to set.
* @return This builder for chaining.
*/
public Builder setOrdering(ibc.core.channel.v1.ChannelOuterClass.Order value) {
if (value == null) {
throw new NullPointerException();
}
ordering_ = value.getNumber();
onChanged();
return this;
}
/**
*
* whether the channel is ordered or unordered
*
*
* .ibc.core.channel.v1.Order ordering = 2;
* @return This builder for chaining.
*/
public Builder clearOrdering() {
ordering_ = 0;
onChanged();
return this;
}
private ibc.core.channel.v1.ChannelOuterClass.Counterparty counterparty_;
private com.google.protobuf.SingleFieldBuilderV3<
ibc.core.channel.v1.ChannelOuterClass.Counterparty, ibc.core.channel.v1.ChannelOuterClass.Counterparty.Builder, ibc.core.channel.v1.ChannelOuterClass.CounterpartyOrBuilder> counterpartyBuilder_;
/**
*
* counterparty channel end
*
*
* .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false];
* @return Whether the counterparty field is set.
*/
public boolean hasCounterparty() {
return counterpartyBuilder_ != null || counterparty_ != null;
}
/**
*
* counterparty channel end
*
*
* .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false];
* @return The counterparty.
*/
public ibc.core.channel.v1.ChannelOuterClass.Counterparty getCounterparty() {
if (counterpartyBuilder_ == null) {
return counterparty_ == null ? ibc.core.channel.v1.ChannelOuterClass.Counterparty.getDefaultInstance() : counterparty_;
} else {
return counterpartyBuilder_.getMessage();
}
}
/**
*
* counterparty channel end
*
*
* .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false];
*/
public Builder setCounterparty(ibc.core.channel.v1.ChannelOuterClass.Counterparty value) {
if (counterpartyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
counterparty_ = value;
onChanged();
} else {
counterpartyBuilder_.setMessage(value);
}
return this;
}
/**
*
* counterparty channel end
*
*
* .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false];
*/
public Builder setCounterparty(
ibc.core.channel.v1.ChannelOuterClass.Counterparty.Builder builderForValue) {
if (counterpartyBuilder_ == null) {
counterparty_ = builderForValue.build();
onChanged();
} else {
counterpartyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* counterparty channel end
*
*
* .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false];
*/
public Builder mergeCounterparty(ibc.core.channel.v1.ChannelOuterClass.Counterparty value) {
if (counterpartyBuilder_ == null) {
if (counterparty_ != null) {
counterparty_ =
ibc.core.channel.v1.ChannelOuterClass.Counterparty.newBuilder(counterparty_).mergeFrom(value).buildPartial();
} else {
counterparty_ = value;
}
onChanged();
} else {
counterpartyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* counterparty channel end
*
*
* .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false];
*/
public Builder clearCounterparty() {
if (counterpartyBuilder_ == null) {
counterparty_ = null;
onChanged();
} else {
counterparty_ = null;
counterpartyBuilder_ = null;
}
return this;
}
/**
*
* counterparty channel end
*
*
* .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false];
*/
public ibc.core.channel.v1.ChannelOuterClass.Counterparty.Builder getCounterpartyBuilder() {
onChanged();
return getCounterpartyFieldBuilder().getBuilder();
}
/**
*
* counterparty channel end
*
*
* .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false];
*/
public ibc.core.channel.v1.ChannelOuterClass.CounterpartyOrBuilder getCounterpartyOrBuilder() {
if (counterpartyBuilder_ != null) {
return counterpartyBuilder_.getMessageOrBuilder();
} else {
return counterparty_ == null ?
ibc.core.channel.v1.ChannelOuterClass.Counterparty.getDefaultInstance() : counterparty_;
}
}
/**
*
* counterparty channel end
*
*
* .ibc.core.channel.v1.Counterparty counterparty = 3 [(.gogoproto.nullable) = false];
*/
private com.google.protobuf.SingleFieldBuilderV3<
ibc.core.channel.v1.ChannelOuterClass.Counterparty, ibc.core.channel.v1.ChannelOuterClass.Counterparty.Builder, ibc.core.channel.v1.ChannelOuterClass.CounterpartyOrBuilder>
getCounterpartyFieldBuilder() {
if (counterpartyBuilder_ == null) {
counterpartyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ibc.core.channel.v1.ChannelOuterClass.Counterparty, ibc.core.channel.v1.ChannelOuterClass.Counterparty.Builder, ibc.core.channel.v1.ChannelOuterClass.CounterpartyOrBuilder>(
getCounterparty(),
getParentForChildren(),
isClean());
counterparty_ = null;
}
return counterpartyBuilder_;
}
private com.google.protobuf.LazyStringList connectionHops_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureConnectionHopsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
connectionHops_ = new com.google.protobuf.LazyStringArrayList(connectionHops_);
bitField0_ |= 0x00000001;
}
}
/**
*
* list of connection identifiers, in order, along which packets sent on
* this channel will travel
*
*
* repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""];
* @return A list containing the connectionHops.
*/
public com.google.protobuf.ProtocolStringList
getConnectionHopsList() {
return connectionHops_.getUnmodifiableView();
}
/**
*
* list of connection identifiers, in order, along which packets sent on
* this channel will travel
*
*
* repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""];
* @return The count of connectionHops.
*/
public int getConnectionHopsCount() {
return connectionHops_.size();
}
/**
*
* list of connection identifiers, in order, along which packets sent on
* this channel will travel
*
*
* repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""];
* @param index The index of the element to return.
* @return The connectionHops at the given index.
*/
public java.lang.String getConnectionHops(int index) {
return connectionHops_.get(index);
}
/**
*
* list of connection identifiers, in order, along which packets sent on
* this channel will travel
*
*
* repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""];
* @param index The index of the value to return.
* @return The bytes of the connectionHops at the given index.
*/
public com.google.protobuf.ByteString
getConnectionHopsBytes(int index) {
return connectionHops_.getByteString(index);
}
/**
*
* list of connection identifiers, in order, along which packets sent on
* this channel will travel
*
*
* repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""];
* @param index The index to set the value at.
* @param value The connectionHops to set.
* @return This builder for chaining.
*/
public Builder setConnectionHops(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureConnectionHopsIsMutable();
connectionHops_.set(index, value);
onChanged();
return this;
}
/**
*
* list of connection identifiers, in order, along which packets sent on
* this channel will travel
*
*
* repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""];
* @param value The connectionHops to add.
* @return This builder for chaining.
*/
public Builder addConnectionHops(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureConnectionHopsIsMutable();
connectionHops_.add(value);
onChanged();
return this;
}
/**
*
* list of connection identifiers, in order, along which packets sent on
* this channel will travel
*
*
* repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""];
* @param values The connectionHops to add.
* @return This builder for chaining.
*/
public Builder addAllConnectionHops(
java.lang.Iterable values) {
ensureConnectionHopsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, connectionHops_);
onChanged();
return this;
}
/**
*
* list of connection identifiers, in order, along which packets sent on
* this channel will travel
*
*
* repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""];
* @return This builder for chaining.
*/
public Builder clearConnectionHops() {
connectionHops_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* list of connection identifiers, in order, along which packets sent on
* this channel will travel
*
*
* repeated string connection_hops = 4 [(.gogoproto.moretags) = "yaml:\"connection_hops\""];
* @param value The bytes of the connectionHops to add.
* @return This builder for chaining.
*/
public Builder addConnectionHopsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureConnectionHopsIsMutable();
connectionHops_.add(value);
onChanged();
return this;
}
private java.lang.Object version_ = "";
/**
*
* opaque channel version, which is agreed upon during the handshake
*
*
* string version = 5;
* @return The version.
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
version_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* opaque channel version, which is agreed upon during the handshake
*
*
* string version = 5;
* @return The bytes for version.
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* opaque channel version, which is agreed upon during the handshake
*
*
* string version = 5;
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
version_ = value;
onChanged();
return this;
}
/**
*
* opaque channel version, which is agreed upon during the handshake
*
*
* string version = 5;
* @return This builder for chaining.
*/
public Builder clearVersion() {
version_ = getDefaultInstance().getVersion();
onChanged();
return this;
}
/**
*
* opaque channel version, which is agreed upon during the handshake
*
*
* string version = 5;
* @param value The bytes for version to set.
* @return This builder for chaining.
*/
public Builder setVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
version_ = value;
onChanged();
return this;
}
private java.lang.Object portId_ = "";
/**
*
* port identifier
*
*
* string port_id = 6;
* @return The portId.
*/
public java.lang.String getPortId() {
java.lang.Object ref = portId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
portId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* port identifier
*
*
* string port_id = 6;
* @return The bytes for portId.
*/
public com.google.protobuf.ByteString
getPortIdBytes() {
java.lang.Object ref = portId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
portId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* port identifier
*
*
* string port_id = 6;
* @param value The portId to set.
* @return This builder for chaining.
*/
public Builder setPortId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
portId_ = value;
onChanged();
return this;
}
/**
*
* port identifier
*
*
* string port_id = 6;
* @return This builder for chaining.
*/
public Builder clearPortId() {
portId_ = getDefaultInstance().getPortId();
onChanged();
return this;
}
/**
*
* port identifier
*
*
* string port_id = 6;
* @param value The bytes for portId to set.
* @return This builder for chaining.
*/
public Builder setPortIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
portId_ = value;
onChanged();
return this;
}
private java.lang.Object channelId_ = "";
/**
*
* channel identifier
*
*
* string channel_id = 7;
* @return The channelId.
*/
public java.lang.String getChannelId() {
java.lang.Object ref = channelId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
channelId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* channel identifier
*
*
* string channel_id = 7;
* @return The bytes for channelId.
*/
public com.google.protobuf.ByteString
getChannelIdBytes() {
java.lang.Object ref = channelId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
channelId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* channel identifier
*
*
* string channel_id = 7;
* @param value The channelId to set.
* @return This builder for chaining.
*/
public Builder setChannelId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
channelId_ = value;
onChanged();
return this;
}
/**
*
* channel identifier
*
*
* string channel_id = 7;
* @return This builder for chaining.
*/
public Builder clearChannelId() {
channelId_ = getDefaultInstance().getChannelId();
onChanged();
return this;
}
/**
*
* channel identifier
*
*
* string channel_id = 7;
* @param value The bytes for channelId to set.
* @return This builder for chaining.
*/
public Builder setChannelIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
channelId_ = 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.channel.v1.IdentifiedChannel)
}
// @@protoc_insertion_point(class_scope:ibc.core.channel.v1.IdentifiedChannel)
private static final ibc.core.channel.v1.ChannelOuterClass.IdentifiedChannel DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ibc.core.channel.v1.ChannelOuterClass.IdentifiedChannel();
}
public static ibc.core.channel.v1.ChannelOuterClass.IdentifiedChannel getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IdentifiedChannel parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IdentifiedChannel(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.channel.v1.ChannelOuterClass.IdentifiedChannel getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CounterpartyOrBuilder extends
// @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.Counterparty)
com.google.protobuf.MessageOrBuilder {
/**
*
* port on the counterparty chain which owns the other end of the channel.
*
*
* string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""];
* @return The portId.
*/
java.lang.String getPortId();
/**
*
* port on the counterparty chain which owns the other end of the channel.
*
*
* string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""];
* @return The bytes for portId.
*/
com.google.protobuf.ByteString
getPortIdBytes();
/**
*
* channel end on the counterparty chain
*
*
* string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""];
* @return The channelId.
*/
java.lang.String getChannelId();
/**
*
* channel end on the counterparty chain
*
*
* string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""];
* @return The bytes for channelId.
*/
com.google.protobuf.ByteString
getChannelIdBytes();
}
/**
*
* Counterparty defines a channel end counterparty
*
*
* Protobuf type {@code ibc.core.channel.v1.Counterparty}
*/
public static final class Counterparty extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ibc.core.channel.v1.Counterparty)
CounterpartyOrBuilder {
private static final long serialVersionUID = 0L;
// Use Counterparty.newBuilder() to construct.
private Counterparty(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Counterparty() {
portId_ = "";
channelId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Counterparty();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Counterparty(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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();
portId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
channelId_ = 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.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Counterparty_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Counterparty_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.channel.v1.ChannelOuterClass.Counterparty.class, ibc.core.channel.v1.ChannelOuterClass.Counterparty.Builder.class);
}
public static final int PORT_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object portId_;
/**
*
* port on the counterparty chain which owns the other end of the channel.
*
*
* string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""];
* @return The portId.
*/
@java.lang.Override
public java.lang.String getPortId() {
java.lang.Object ref = portId_;
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();
portId_ = s;
return s;
}
}
/**
*
* port on the counterparty chain which owns the other end of the channel.
*
*
* string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""];
* @return The bytes for portId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPortIdBytes() {
java.lang.Object ref = portId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
portId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CHANNEL_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object channelId_;
/**
*
* channel end on the counterparty chain
*
*
* string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""];
* @return The channelId.
*/
@java.lang.Override
public java.lang.String getChannelId() {
java.lang.Object ref = channelId_;
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();
channelId_ = s;
return s;
}
}
/**
*
* channel end on the counterparty chain
*
*
* string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""];
* @return The bytes for channelId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getChannelIdBytes() {
java.lang.Object ref = channelId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
channelId_ = 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(portId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, portId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channelId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, channelId_);
}
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(portId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, portId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channelId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, channelId_);
}
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.channel.v1.ChannelOuterClass.Counterparty)) {
return super.equals(obj);
}
ibc.core.channel.v1.ChannelOuterClass.Counterparty other = (ibc.core.channel.v1.ChannelOuterClass.Counterparty) obj;
if (!getPortId()
.equals(other.getPortId())) return false;
if (!getChannelId()
.equals(other.getChannelId())) 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) + PORT_ID_FIELD_NUMBER;
hash = (53 * hash) + getPortId().hashCode();
hash = (37 * hash) + CHANNEL_ID_FIELD_NUMBER;
hash = (53 * hash) + getChannelId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ibc.core.channel.v1.ChannelOuterClass.Counterparty parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.channel.v1.ChannelOuterClass.Counterparty parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.channel.v1.ChannelOuterClass.Counterparty parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.channel.v1.ChannelOuterClass.Counterparty parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.channel.v1.ChannelOuterClass.Counterparty parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.channel.v1.ChannelOuterClass.Counterparty parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.channel.v1.ChannelOuterClass.Counterparty parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.channel.v1.ChannelOuterClass.Counterparty parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static ibc.core.channel.v1.ChannelOuterClass.Counterparty parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ibc.core.channel.v1.ChannelOuterClass.Counterparty parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static ibc.core.channel.v1.ChannelOuterClass.Counterparty parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.channel.v1.ChannelOuterClass.Counterparty parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ibc.core.channel.v1.ChannelOuterClass.Counterparty prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Counterparty defines a channel end counterparty
*
*
* Protobuf type {@code ibc.core.channel.v1.Counterparty}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.Counterparty)
ibc.core.channel.v1.ChannelOuterClass.CounterpartyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Counterparty_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Counterparty_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.channel.v1.ChannelOuterClass.Counterparty.class, ibc.core.channel.v1.ChannelOuterClass.Counterparty.Builder.class);
}
// Construct using ibc.core.channel.v1.ChannelOuterClass.Counterparty.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
portId_ = "";
channelId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Counterparty_descriptor;
}
@java.lang.Override
public ibc.core.channel.v1.ChannelOuterClass.Counterparty getDefaultInstanceForType() {
return ibc.core.channel.v1.ChannelOuterClass.Counterparty.getDefaultInstance();
}
@java.lang.Override
public ibc.core.channel.v1.ChannelOuterClass.Counterparty build() {
ibc.core.channel.v1.ChannelOuterClass.Counterparty result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ibc.core.channel.v1.ChannelOuterClass.Counterparty buildPartial() {
ibc.core.channel.v1.ChannelOuterClass.Counterparty result = new ibc.core.channel.v1.ChannelOuterClass.Counterparty(this);
result.portId_ = portId_;
result.channelId_ = channelId_;
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.channel.v1.ChannelOuterClass.Counterparty) {
return mergeFrom((ibc.core.channel.v1.ChannelOuterClass.Counterparty)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ibc.core.channel.v1.ChannelOuterClass.Counterparty other) {
if (other == ibc.core.channel.v1.ChannelOuterClass.Counterparty.getDefaultInstance()) return this;
if (!other.getPortId().isEmpty()) {
portId_ = other.portId_;
onChanged();
}
if (!other.getChannelId().isEmpty()) {
channelId_ = other.channelId_;
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.channel.v1.ChannelOuterClass.Counterparty parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ibc.core.channel.v1.ChannelOuterClass.Counterparty) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object portId_ = "";
/**
*
* port on the counterparty chain which owns the other end of the channel.
*
*
* string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""];
* @return The portId.
*/
public java.lang.String getPortId() {
java.lang.Object ref = portId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
portId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* port on the counterparty chain which owns the other end of the channel.
*
*
* string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""];
* @return The bytes for portId.
*/
public com.google.protobuf.ByteString
getPortIdBytes() {
java.lang.Object ref = portId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
portId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* port on the counterparty chain which owns the other end of the channel.
*
*
* string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""];
* @param value The portId to set.
* @return This builder for chaining.
*/
public Builder setPortId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
portId_ = value;
onChanged();
return this;
}
/**
*
* port on the counterparty chain which owns the other end of the channel.
*
*
* string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""];
* @return This builder for chaining.
*/
public Builder clearPortId() {
portId_ = getDefaultInstance().getPortId();
onChanged();
return this;
}
/**
*
* port on the counterparty chain which owns the other end of the channel.
*
*
* string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""];
* @param value The bytes for portId to set.
* @return This builder for chaining.
*/
public Builder setPortIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
portId_ = value;
onChanged();
return this;
}
private java.lang.Object channelId_ = "";
/**
*
* channel end on the counterparty chain
*
*
* string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""];
* @return The channelId.
*/
public java.lang.String getChannelId() {
java.lang.Object ref = channelId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
channelId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* channel end on the counterparty chain
*
*
* string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""];
* @return The bytes for channelId.
*/
public com.google.protobuf.ByteString
getChannelIdBytes() {
java.lang.Object ref = channelId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
channelId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* channel end on the counterparty chain
*
*
* string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""];
* @param value The channelId to set.
* @return This builder for chaining.
*/
public Builder setChannelId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
channelId_ = value;
onChanged();
return this;
}
/**
*
* channel end on the counterparty chain
*
*
* string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""];
* @return This builder for chaining.
*/
public Builder clearChannelId() {
channelId_ = getDefaultInstance().getChannelId();
onChanged();
return this;
}
/**
*
* channel end on the counterparty chain
*
*
* string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""];
* @param value The bytes for channelId to set.
* @return This builder for chaining.
*/
public Builder setChannelIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
channelId_ = 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.channel.v1.Counterparty)
}
// @@protoc_insertion_point(class_scope:ibc.core.channel.v1.Counterparty)
private static final ibc.core.channel.v1.ChannelOuterClass.Counterparty DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ibc.core.channel.v1.ChannelOuterClass.Counterparty();
}
public static ibc.core.channel.v1.ChannelOuterClass.Counterparty getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Counterparty parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Counterparty(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public ibc.core.channel.v1.ChannelOuterClass.Counterparty getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PacketOrBuilder extends
// @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.Packet)
com.google.protobuf.MessageOrBuilder {
/**
*
* number corresponds to the order of sends and receives, where a Packet
* with an earlier sequence number must be sent and received before a Packet
* with a later sequence number.
*
*
* uint64 sequence = 1;
* @return The sequence.
*/
long getSequence();
/**
*
* identifies the port on the sending chain.
*
*
* string source_port = 2 [(.gogoproto.moretags) = "yaml:\"source_port\""];
* @return The sourcePort.
*/
java.lang.String getSourcePort();
/**
*
* identifies the port on the sending chain.
*
*
* string source_port = 2 [(.gogoproto.moretags) = "yaml:\"source_port\""];
* @return The bytes for sourcePort.
*/
com.google.protobuf.ByteString
getSourcePortBytes();
/**
*
* identifies the channel end on the sending chain.
*
*
* string source_channel = 3 [(.gogoproto.moretags) = "yaml:\"source_channel\""];
* @return The sourceChannel.
*/
java.lang.String getSourceChannel();
/**
*
* identifies the channel end on the sending chain.
*
*
* string source_channel = 3 [(.gogoproto.moretags) = "yaml:\"source_channel\""];
* @return The bytes for sourceChannel.
*/
com.google.protobuf.ByteString
getSourceChannelBytes();
/**
*
* identifies the port on the receiving chain.
*
*
* string destination_port = 4 [(.gogoproto.moretags) = "yaml:\"destination_port\""];
* @return The destinationPort.
*/
java.lang.String getDestinationPort();
/**
*
* identifies the port on the receiving chain.
*
*
* string destination_port = 4 [(.gogoproto.moretags) = "yaml:\"destination_port\""];
* @return The bytes for destinationPort.
*/
com.google.protobuf.ByteString
getDestinationPortBytes();
/**
*
* identifies the channel end on the receiving chain.
*
*
* string destination_channel = 5 [(.gogoproto.moretags) = "yaml:\"destination_channel\""];
* @return The destinationChannel.
*/
java.lang.String getDestinationChannel();
/**
*
* identifies the channel end on the receiving chain.
*
*
* string destination_channel = 5 [(.gogoproto.moretags) = "yaml:\"destination_channel\""];
* @return The bytes for destinationChannel.
*/
com.google.protobuf.ByteString
getDestinationChannelBytes();
/**
*
* actual opaque bytes transferred directly to the application module
*
*
* bytes data = 6;
* @return The data.
*/
com.google.protobuf.ByteString getData();
/**
*
* block height after which the packet times out
*
*
* .ibc.core.client.v1.Height timeout_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""];
* @return Whether the timeoutHeight field is set.
*/
boolean hasTimeoutHeight();
/**
*
* block height after which the packet times out
*
*
* .ibc.core.client.v1.Height timeout_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""];
* @return The timeoutHeight.
*/
ibc.core.client.v1.Client.Height getTimeoutHeight();
/**
*
* block height after which the packet times out
*
*
* .ibc.core.client.v1.Height timeout_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""];
*/
ibc.core.client.v1.Client.HeightOrBuilder getTimeoutHeightOrBuilder();
/**
*
* block timestamp (in nanoseconds) after which the packet times out
*
*
* uint64 timeout_timestamp = 8 [(.gogoproto.moretags) = "yaml:\"timeout_timestamp\""];
* @return The timeoutTimestamp.
*/
long getTimeoutTimestamp();
}
/**
*
* Packet defines a type that carries data across different chains through IBC
*
*
* Protobuf type {@code ibc.core.channel.v1.Packet}
*/
public static final class Packet extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ibc.core.channel.v1.Packet)
PacketOrBuilder {
private static final long serialVersionUID = 0L;
// Use Packet.newBuilder() to construct.
private Packet(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Packet() {
sourcePort_ = "";
sourceChannel_ = "";
destinationPort_ = "";
destinationChannel_ = "";
data_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Packet();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Packet(
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 8: {
sequence_ = input.readUInt64();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
sourcePort_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
sourceChannel_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
destinationPort_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
destinationChannel_ = s;
break;
}
case 50: {
data_ = input.readBytes();
break;
}
case 58: {
ibc.core.client.v1.Client.Height.Builder subBuilder = null;
if (timeoutHeight_ != null) {
subBuilder = timeoutHeight_.toBuilder();
}
timeoutHeight_ = input.readMessage(ibc.core.client.v1.Client.Height.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(timeoutHeight_);
timeoutHeight_ = subBuilder.buildPartial();
}
break;
}
case 64: {
timeoutTimestamp_ = input.readUInt64();
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.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Packet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Packet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.channel.v1.ChannelOuterClass.Packet.class, ibc.core.channel.v1.ChannelOuterClass.Packet.Builder.class);
}
public static final int SEQUENCE_FIELD_NUMBER = 1;
private long sequence_;
/**
*
* number corresponds to the order of sends and receives, where a Packet
* with an earlier sequence number must be sent and received before a Packet
* with a later sequence number.
*
*
* uint64 sequence = 1;
* @return The sequence.
*/
@java.lang.Override
public long getSequence() {
return sequence_;
}
public static final int SOURCE_PORT_FIELD_NUMBER = 2;
private volatile java.lang.Object sourcePort_;
/**
*
* identifies the port on the sending chain.
*
*
* string source_port = 2 [(.gogoproto.moretags) = "yaml:\"source_port\""];
* @return The sourcePort.
*/
@java.lang.Override
public java.lang.String getSourcePort() {
java.lang.Object ref = sourcePort_;
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();
sourcePort_ = s;
return s;
}
}
/**
*
* identifies the port on the sending chain.
*
*
* string source_port = 2 [(.gogoproto.moretags) = "yaml:\"source_port\""];
* @return The bytes for sourcePort.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSourcePortBytes() {
java.lang.Object ref = sourcePort_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sourcePort_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SOURCE_CHANNEL_FIELD_NUMBER = 3;
private volatile java.lang.Object sourceChannel_;
/**
*
* identifies the channel end on the sending chain.
*
*
* string source_channel = 3 [(.gogoproto.moretags) = "yaml:\"source_channel\""];
* @return The sourceChannel.
*/
@java.lang.Override
public java.lang.String getSourceChannel() {
java.lang.Object ref = sourceChannel_;
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();
sourceChannel_ = s;
return s;
}
}
/**
*
* identifies the channel end on the sending chain.
*
*
* string source_channel = 3 [(.gogoproto.moretags) = "yaml:\"source_channel\""];
* @return The bytes for sourceChannel.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSourceChannelBytes() {
java.lang.Object ref = sourceChannel_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sourceChannel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESTINATION_PORT_FIELD_NUMBER = 4;
private volatile java.lang.Object destinationPort_;
/**
*
* identifies the port on the receiving chain.
*
*
* string destination_port = 4 [(.gogoproto.moretags) = "yaml:\"destination_port\""];
* @return The destinationPort.
*/
@java.lang.Override
public java.lang.String getDestinationPort() {
java.lang.Object ref = destinationPort_;
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();
destinationPort_ = s;
return s;
}
}
/**
*
* identifies the port on the receiving chain.
*
*
* string destination_port = 4 [(.gogoproto.moretags) = "yaml:\"destination_port\""];
* @return The bytes for destinationPort.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDestinationPortBytes() {
java.lang.Object ref = destinationPort_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
destinationPort_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESTINATION_CHANNEL_FIELD_NUMBER = 5;
private volatile java.lang.Object destinationChannel_;
/**
*
* identifies the channel end on the receiving chain.
*
*
* string destination_channel = 5 [(.gogoproto.moretags) = "yaml:\"destination_channel\""];
* @return The destinationChannel.
*/
@java.lang.Override
public java.lang.String getDestinationChannel() {
java.lang.Object ref = destinationChannel_;
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();
destinationChannel_ = s;
return s;
}
}
/**
*
* identifies the channel end on the receiving chain.
*
*
* string destination_channel = 5 [(.gogoproto.moretags) = "yaml:\"destination_channel\""];
* @return The bytes for destinationChannel.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDestinationChannelBytes() {
java.lang.Object ref = destinationChannel_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
destinationChannel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DATA_FIELD_NUMBER = 6;
private com.google.protobuf.ByteString data_;
/**
*
* actual opaque bytes transferred directly to the application module
*
*
* bytes data = 6;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
public static final int TIMEOUT_HEIGHT_FIELD_NUMBER = 7;
private ibc.core.client.v1.Client.Height timeoutHeight_;
/**
*
* block height after which the packet times out
*
*
* .ibc.core.client.v1.Height timeout_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""];
* @return Whether the timeoutHeight field is set.
*/
@java.lang.Override
public boolean hasTimeoutHeight() {
return timeoutHeight_ != null;
}
/**
*
* block height after which the packet times out
*
*
* .ibc.core.client.v1.Height timeout_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""];
* @return The timeoutHeight.
*/
@java.lang.Override
public ibc.core.client.v1.Client.Height getTimeoutHeight() {
return timeoutHeight_ == null ? ibc.core.client.v1.Client.Height.getDefaultInstance() : timeoutHeight_;
}
/**
*
* block height after which the packet times out
*
*
* .ibc.core.client.v1.Height timeout_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""];
*/
@java.lang.Override
public ibc.core.client.v1.Client.HeightOrBuilder getTimeoutHeightOrBuilder() {
return getTimeoutHeight();
}
public static final int TIMEOUT_TIMESTAMP_FIELD_NUMBER = 8;
private long timeoutTimestamp_;
/**
*
* block timestamp (in nanoseconds) after which the packet times out
*
*
* uint64 timeout_timestamp = 8 [(.gogoproto.moretags) = "yaml:\"timeout_timestamp\""];
* @return The timeoutTimestamp.
*/
@java.lang.Override
public long getTimeoutTimestamp() {
return timeoutTimestamp_;
}
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 (sequence_ != 0L) {
output.writeUInt64(1, sequence_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourcePort_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sourcePort_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceChannel_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sourceChannel_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationPort_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, destinationPort_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationChannel_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, destinationChannel_);
}
if (!data_.isEmpty()) {
output.writeBytes(6, data_);
}
if (timeoutHeight_ != null) {
output.writeMessage(7, getTimeoutHeight());
}
if (timeoutTimestamp_ != 0L) {
output.writeUInt64(8, timeoutTimestamp_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (sequence_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, sequence_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourcePort_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourcePort_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceChannel_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sourceChannel_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationPort_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, destinationPort_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationChannel_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, destinationChannel_);
}
if (!data_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, data_);
}
if (timeoutHeight_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getTimeoutHeight());
}
if (timeoutTimestamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(8, timeoutTimestamp_);
}
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.channel.v1.ChannelOuterClass.Packet)) {
return super.equals(obj);
}
ibc.core.channel.v1.ChannelOuterClass.Packet other = (ibc.core.channel.v1.ChannelOuterClass.Packet) obj;
if (getSequence()
!= other.getSequence()) return false;
if (!getSourcePort()
.equals(other.getSourcePort())) return false;
if (!getSourceChannel()
.equals(other.getSourceChannel())) return false;
if (!getDestinationPort()
.equals(other.getDestinationPort())) return false;
if (!getDestinationChannel()
.equals(other.getDestinationChannel())) return false;
if (!getData()
.equals(other.getData())) return false;
if (hasTimeoutHeight() != other.hasTimeoutHeight()) return false;
if (hasTimeoutHeight()) {
if (!getTimeoutHeight()
.equals(other.getTimeoutHeight())) return false;
}
if (getTimeoutTimestamp()
!= other.getTimeoutTimestamp()) 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) + SEQUENCE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSequence());
hash = (37 * hash) + SOURCE_PORT_FIELD_NUMBER;
hash = (53 * hash) + getSourcePort().hashCode();
hash = (37 * hash) + SOURCE_CHANNEL_FIELD_NUMBER;
hash = (53 * hash) + getSourceChannel().hashCode();
hash = (37 * hash) + DESTINATION_PORT_FIELD_NUMBER;
hash = (53 * hash) + getDestinationPort().hashCode();
hash = (37 * hash) + DESTINATION_CHANNEL_FIELD_NUMBER;
hash = (53 * hash) + getDestinationChannel().hashCode();
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
if (hasTimeoutHeight()) {
hash = (37 * hash) + TIMEOUT_HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + getTimeoutHeight().hashCode();
}
hash = (37 * hash) + TIMEOUT_TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTimeoutTimestamp());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ibc.core.channel.v1.ChannelOuterClass.Packet parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.channel.v1.ChannelOuterClass.Packet parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.channel.v1.ChannelOuterClass.Packet parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.channel.v1.ChannelOuterClass.Packet 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.channel.v1.ChannelOuterClass.Packet parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.channel.v1.ChannelOuterClass.Packet parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.channel.v1.ChannelOuterClass.Packet parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.channel.v1.ChannelOuterClass.Packet 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.channel.v1.ChannelOuterClass.Packet parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ibc.core.channel.v1.ChannelOuterClass.Packet 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.channel.v1.ChannelOuterClass.Packet parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.channel.v1.ChannelOuterClass.Packet 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.channel.v1.ChannelOuterClass.Packet 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;
}
/**
*
* Packet defines a type that carries data across different chains through IBC
*
*
* Protobuf type {@code ibc.core.channel.v1.Packet}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.Packet)
ibc.core.channel.v1.ChannelOuterClass.PacketOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Packet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Packet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.channel.v1.ChannelOuterClass.Packet.class, ibc.core.channel.v1.ChannelOuterClass.Packet.Builder.class);
}
// Construct using ibc.core.channel.v1.ChannelOuterClass.Packet.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();
sequence_ = 0L;
sourcePort_ = "";
sourceChannel_ = "";
destinationPort_ = "";
destinationChannel_ = "";
data_ = com.google.protobuf.ByteString.EMPTY;
if (timeoutHeightBuilder_ == null) {
timeoutHeight_ = null;
} else {
timeoutHeight_ = null;
timeoutHeightBuilder_ = null;
}
timeoutTimestamp_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Packet_descriptor;
}
@java.lang.Override
public ibc.core.channel.v1.ChannelOuterClass.Packet getDefaultInstanceForType() {
return ibc.core.channel.v1.ChannelOuterClass.Packet.getDefaultInstance();
}
@java.lang.Override
public ibc.core.channel.v1.ChannelOuterClass.Packet build() {
ibc.core.channel.v1.ChannelOuterClass.Packet result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ibc.core.channel.v1.ChannelOuterClass.Packet buildPartial() {
ibc.core.channel.v1.ChannelOuterClass.Packet result = new ibc.core.channel.v1.ChannelOuterClass.Packet(this);
result.sequence_ = sequence_;
result.sourcePort_ = sourcePort_;
result.sourceChannel_ = sourceChannel_;
result.destinationPort_ = destinationPort_;
result.destinationChannel_ = destinationChannel_;
result.data_ = data_;
if (timeoutHeightBuilder_ == null) {
result.timeoutHeight_ = timeoutHeight_;
} else {
result.timeoutHeight_ = timeoutHeightBuilder_.build();
}
result.timeoutTimestamp_ = timeoutTimestamp_;
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.channel.v1.ChannelOuterClass.Packet) {
return mergeFrom((ibc.core.channel.v1.ChannelOuterClass.Packet)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ibc.core.channel.v1.ChannelOuterClass.Packet other) {
if (other == ibc.core.channel.v1.ChannelOuterClass.Packet.getDefaultInstance()) return this;
if (other.getSequence() != 0L) {
setSequence(other.getSequence());
}
if (!other.getSourcePort().isEmpty()) {
sourcePort_ = other.sourcePort_;
onChanged();
}
if (!other.getSourceChannel().isEmpty()) {
sourceChannel_ = other.sourceChannel_;
onChanged();
}
if (!other.getDestinationPort().isEmpty()) {
destinationPort_ = other.destinationPort_;
onChanged();
}
if (!other.getDestinationChannel().isEmpty()) {
destinationChannel_ = other.destinationChannel_;
onChanged();
}
if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
setData(other.getData());
}
if (other.hasTimeoutHeight()) {
mergeTimeoutHeight(other.getTimeoutHeight());
}
if (other.getTimeoutTimestamp() != 0L) {
setTimeoutTimestamp(other.getTimeoutTimestamp());
}
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.channel.v1.ChannelOuterClass.Packet parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ibc.core.channel.v1.ChannelOuterClass.Packet) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long sequence_ ;
/**
*
* number corresponds to the order of sends and receives, where a Packet
* with an earlier sequence number must be sent and received before a Packet
* with a later sequence number.
*
*
* uint64 sequence = 1;
* @return The sequence.
*/
@java.lang.Override
public long getSequence() {
return sequence_;
}
/**
*
* number corresponds to the order of sends and receives, where a Packet
* with an earlier sequence number must be sent and received before a Packet
* with a later sequence number.
*
*
* uint64 sequence = 1;
* @param value The sequence to set.
* @return This builder for chaining.
*/
public Builder setSequence(long value) {
sequence_ = value;
onChanged();
return this;
}
/**
*
* number corresponds to the order of sends and receives, where a Packet
* with an earlier sequence number must be sent and received before a Packet
* with a later sequence number.
*
*
* uint64 sequence = 1;
* @return This builder for chaining.
*/
public Builder clearSequence() {
sequence_ = 0L;
onChanged();
return this;
}
private java.lang.Object sourcePort_ = "";
/**
*
* identifies the port on the sending chain.
*
*
* string source_port = 2 [(.gogoproto.moretags) = "yaml:\"source_port\""];
* @return The sourcePort.
*/
public java.lang.String getSourcePort() {
java.lang.Object ref = sourcePort_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sourcePort_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* identifies the port on the sending chain.
*
*
* string source_port = 2 [(.gogoproto.moretags) = "yaml:\"source_port\""];
* @return The bytes for sourcePort.
*/
public com.google.protobuf.ByteString
getSourcePortBytes() {
java.lang.Object ref = sourcePort_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sourcePort_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* identifies the port on the sending chain.
*
*
* string source_port = 2 [(.gogoproto.moretags) = "yaml:\"source_port\""];
* @param value The sourcePort to set.
* @return This builder for chaining.
*/
public Builder setSourcePort(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
sourcePort_ = value;
onChanged();
return this;
}
/**
*
* identifies the port on the sending chain.
*
*
* string source_port = 2 [(.gogoproto.moretags) = "yaml:\"source_port\""];
* @return This builder for chaining.
*/
public Builder clearSourcePort() {
sourcePort_ = getDefaultInstance().getSourcePort();
onChanged();
return this;
}
/**
*
* identifies the port on the sending chain.
*
*
* string source_port = 2 [(.gogoproto.moretags) = "yaml:\"source_port\""];
* @param value The bytes for sourcePort to set.
* @return This builder for chaining.
*/
public Builder setSourcePortBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
sourcePort_ = value;
onChanged();
return this;
}
private java.lang.Object sourceChannel_ = "";
/**
*
* identifies the channel end on the sending chain.
*
*
* string source_channel = 3 [(.gogoproto.moretags) = "yaml:\"source_channel\""];
* @return The sourceChannel.
*/
public java.lang.String getSourceChannel() {
java.lang.Object ref = sourceChannel_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sourceChannel_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* identifies the channel end on the sending chain.
*
*
* string source_channel = 3 [(.gogoproto.moretags) = "yaml:\"source_channel\""];
* @return The bytes for sourceChannel.
*/
public com.google.protobuf.ByteString
getSourceChannelBytes() {
java.lang.Object ref = sourceChannel_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sourceChannel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* identifies the channel end on the sending chain.
*
*
* string source_channel = 3 [(.gogoproto.moretags) = "yaml:\"source_channel\""];
* @param value The sourceChannel to set.
* @return This builder for chaining.
*/
public Builder setSourceChannel(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
sourceChannel_ = value;
onChanged();
return this;
}
/**
*
* identifies the channel end on the sending chain.
*
*
* string source_channel = 3 [(.gogoproto.moretags) = "yaml:\"source_channel\""];
* @return This builder for chaining.
*/
public Builder clearSourceChannel() {
sourceChannel_ = getDefaultInstance().getSourceChannel();
onChanged();
return this;
}
/**
*
* identifies the channel end on the sending chain.
*
*
* string source_channel = 3 [(.gogoproto.moretags) = "yaml:\"source_channel\""];
* @param value The bytes for sourceChannel to set.
* @return This builder for chaining.
*/
public Builder setSourceChannelBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
sourceChannel_ = value;
onChanged();
return this;
}
private java.lang.Object destinationPort_ = "";
/**
*
* identifies the port on the receiving chain.
*
*
* string destination_port = 4 [(.gogoproto.moretags) = "yaml:\"destination_port\""];
* @return The destinationPort.
*/
public java.lang.String getDestinationPort() {
java.lang.Object ref = destinationPort_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
destinationPort_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* identifies the port on the receiving chain.
*
*
* string destination_port = 4 [(.gogoproto.moretags) = "yaml:\"destination_port\""];
* @return The bytes for destinationPort.
*/
public com.google.protobuf.ByteString
getDestinationPortBytes() {
java.lang.Object ref = destinationPort_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
destinationPort_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* identifies the port on the receiving chain.
*
*
* string destination_port = 4 [(.gogoproto.moretags) = "yaml:\"destination_port\""];
* @param value The destinationPort to set.
* @return This builder for chaining.
*/
public Builder setDestinationPort(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
destinationPort_ = value;
onChanged();
return this;
}
/**
*
* identifies the port on the receiving chain.
*
*
* string destination_port = 4 [(.gogoproto.moretags) = "yaml:\"destination_port\""];
* @return This builder for chaining.
*/
public Builder clearDestinationPort() {
destinationPort_ = getDefaultInstance().getDestinationPort();
onChanged();
return this;
}
/**
*
* identifies the port on the receiving chain.
*
*
* string destination_port = 4 [(.gogoproto.moretags) = "yaml:\"destination_port\""];
* @param value The bytes for destinationPort to set.
* @return This builder for chaining.
*/
public Builder setDestinationPortBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
destinationPort_ = value;
onChanged();
return this;
}
private java.lang.Object destinationChannel_ = "";
/**
*
* identifies the channel end on the receiving chain.
*
*
* string destination_channel = 5 [(.gogoproto.moretags) = "yaml:\"destination_channel\""];
* @return The destinationChannel.
*/
public java.lang.String getDestinationChannel() {
java.lang.Object ref = destinationChannel_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
destinationChannel_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* identifies the channel end on the receiving chain.
*
*
* string destination_channel = 5 [(.gogoproto.moretags) = "yaml:\"destination_channel\""];
* @return The bytes for destinationChannel.
*/
public com.google.protobuf.ByteString
getDestinationChannelBytes() {
java.lang.Object ref = destinationChannel_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
destinationChannel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* identifies the channel end on the receiving chain.
*
*
* string destination_channel = 5 [(.gogoproto.moretags) = "yaml:\"destination_channel\""];
* @param value The destinationChannel to set.
* @return This builder for chaining.
*/
public Builder setDestinationChannel(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
destinationChannel_ = value;
onChanged();
return this;
}
/**
*
* identifies the channel end on the receiving chain.
*
*
* string destination_channel = 5 [(.gogoproto.moretags) = "yaml:\"destination_channel\""];
* @return This builder for chaining.
*/
public Builder clearDestinationChannel() {
destinationChannel_ = getDefaultInstance().getDestinationChannel();
onChanged();
return this;
}
/**
*
* identifies the channel end on the receiving chain.
*
*
* string destination_channel = 5 [(.gogoproto.moretags) = "yaml:\"destination_channel\""];
* @param value The bytes for destinationChannel to set.
* @return This builder for chaining.
*/
public Builder setDestinationChannelBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
destinationChannel_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* actual opaque bytes transferred directly to the application module
*
*
* bytes data = 6;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
*
* actual opaque bytes transferred directly to the application module
*
*
* bytes data = 6;
* @param value The data to set.
* @return This builder for chaining.
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
*
* actual opaque bytes transferred directly to the application module
*
*
* bytes data = 6;
* @return This builder for chaining.
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
private ibc.core.client.v1.Client.Height timeoutHeight_;
private com.google.protobuf.SingleFieldBuilderV3<
ibc.core.client.v1.Client.Height, ibc.core.client.v1.Client.Height.Builder, ibc.core.client.v1.Client.HeightOrBuilder> timeoutHeightBuilder_;
/**
*
* block height after which the packet times out
*
*
* .ibc.core.client.v1.Height timeout_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""];
* @return Whether the timeoutHeight field is set.
*/
public boolean hasTimeoutHeight() {
return timeoutHeightBuilder_ != null || timeoutHeight_ != null;
}
/**
*
* block height after which the packet times out
*
*
* .ibc.core.client.v1.Height timeout_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""];
* @return The timeoutHeight.
*/
public ibc.core.client.v1.Client.Height getTimeoutHeight() {
if (timeoutHeightBuilder_ == null) {
return timeoutHeight_ == null ? ibc.core.client.v1.Client.Height.getDefaultInstance() : timeoutHeight_;
} else {
return timeoutHeightBuilder_.getMessage();
}
}
/**
*
* block height after which the packet times out
*
*
* .ibc.core.client.v1.Height timeout_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""];
*/
public Builder setTimeoutHeight(ibc.core.client.v1.Client.Height value) {
if (timeoutHeightBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
timeoutHeight_ = value;
onChanged();
} else {
timeoutHeightBuilder_.setMessage(value);
}
return this;
}
/**
*
* block height after which the packet times out
*
*
* .ibc.core.client.v1.Height timeout_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""];
*/
public Builder setTimeoutHeight(
ibc.core.client.v1.Client.Height.Builder builderForValue) {
if (timeoutHeightBuilder_ == null) {
timeoutHeight_ = builderForValue.build();
onChanged();
} else {
timeoutHeightBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* block height after which the packet times out
*
*
* .ibc.core.client.v1.Height timeout_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""];
*/
public Builder mergeTimeoutHeight(ibc.core.client.v1.Client.Height value) {
if (timeoutHeightBuilder_ == null) {
if (timeoutHeight_ != null) {
timeoutHeight_ =
ibc.core.client.v1.Client.Height.newBuilder(timeoutHeight_).mergeFrom(value).buildPartial();
} else {
timeoutHeight_ = value;
}
onChanged();
} else {
timeoutHeightBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* block height after which the packet times out
*
*
* .ibc.core.client.v1.Height timeout_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""];
*/
public Builder clearTimeoutHeight() {
if (timeoutHeightBuilder_ == null) {
timeoutHeight_ = null;
onChanged();
} else {
timeoutHeight_ = null;
timeoutHeightBuilder_ = null;
}
return this;
}
/**
*
* block height after which the packet times out
*
*
* .ibc.core.client.v1.Height timeout_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""];
*/
public ibc.core.client.v1.Client.Height.Builder getTimeoutHeightBuilder() {
onChanged();
return getTimeoutHeightFieldBuilder().getBuilder();
}
/**
*
* block height after which the packet times out
*
*
* .ibc.core.client.v1.Height timeout_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_height\""];
*/
public ibc.core.client.v1.Client.HeightOrBuilder getTimeoutHeightOrBuilder() {
if (timeoutHeightBuilder_ != null) {
return timeoutHeightBuilder_.getMessageOrBuilder();
} else {
return timeoutHeight_ == null ?
ibc.core.client.v1.Client.Height.getDefaultInstance() : timeoutHeight_;
}
}
/**
*
* block height after which the packet times out
*
*
* .ibc.core.client.v1.Height timeout_height = 7 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"timeout_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>
getTimeoutHeightFieldBuilder() {
if (timeoutHeightBuilder_ == null) {
timeoutHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ibc.core.client.v1.Client.Height, ibc.core.client.v1.Client.Height.Builder, ibc.core.client.v1.Client.HeightOrBuilder>(
getTimeoutHeight(),
getParentForChildren(),
isClean());
timeoutHeight_ = null;
}
return timeoutHeightBuilder_;
}
private long timeoutTimestamp_ ;
/**
*
* block timestamp (in nanoseconds) after which the packet times out
*
*
* uint64 timeout_timestamp = 8 [(.gogoproto.moretags) = "yaml:\"timeout_timestamp\""];
* @return The timeoutTimestamp.
*/
@java.lang.Override
public long getTimeoutTimestamp() {
return timeoutTimestamp_;
}
/**
*
* block timestamp (in nanoseconds) after which the packet times out
*
*
* uint64 timeout_timestamp = 8 [(.gogoproto.moretags) = "yaml:\"timeout_timestamp\""];
* @param value The timeoutTimestamp to set.
* @return This builder for chaining.
*/
public Builder setTimeoutTimestamp(long value) {
timeoutTimestamp_ = value;
onChanged();
return this;
}
/**
*
* block timestamp (in nanoseconds) after which the packet times out
*
*
* uint64 timeout_timestamp = 8 [(.gogoproto.moretags) = "yaml:\"timeout_timestamp\""];
* @return This builder for chaining.
*/
public Builder clearTimeoutTimestamp() {
timeoutTimestamp_ = 0L;
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.channel.v1.Packet)
}
// @@protoc_insertion_point(class_scope:ibc.core.channel.v1.Packet)
private static final ibc.core.channel.v1.ChannelOuterClass.Packet DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ibc.core.channel.v1.ChannelOuterClass.Packet();
}
public static ibc.core.channel.v1.ChannelOuterClass.Packet getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Packet parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Packet(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.channel.v1.ChannelOuterClass.Packet getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PacketStateOrBuilder extends
// @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.PacketState)
com.google.protobuf.MessageOrBuilder {
/**
*
* channel port identifier.
*
*
* string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""];
* @return The portId.
*/
java.lang.String getPortId();
/**
*
* channel port identifier.
*
*
* string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""];
* @return The bytes for portId.
*/
com.google.protobuf.ByteString
getPortIdBytes();
/**
*
* channel unique identifier.
*
*
* string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""];
* @return The channelId.
*/
java.lang.String getChannelId();
/**
*
* channel unique identifier.
*
*
* string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""];
* @return The bytes for channelId.
*/
com.google.protobuf.ByteString
getChannelIdBytes();
/**
*
* packet sequence.
*
*
* uint64 sequence = 3;
* @return The sequence.
*/
long getSequence();
/**
*
* embedded data that represents packet state.
*
*
* bytes data = 4;
* @return The data.
*/
com.google.protobuf.ByteString getData();
}
/**
*
* PacketState defines the generic type necessary to retrieve and store
* packet commitments, acknowledgements, and receipts.
* Caller is responsible for knowing the context necessary to interpret this
* state as a commitment, acknowledgement, or a receipt.
*
*
* Protobuf type {@code ibc.core.channel.v1.PacketState}
*/
public static final class PacketState extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ibc.core.channel.v1.PacketState)
PacketStateOrBuilder {
private static final long serialVersionUID = 0L;
// Use PacketState.newBuilder() to construct.
private PacketState(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PacketState() {
portId_ = "";
channelId_ = "";
data_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PacketState();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PacketState(
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();
portId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
channelId_ = s;
break;
}
case 24: {
sequence_ = input.readUInt64();
break;
}
case 34: {
data_ = input.readBytes();
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.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_PacketState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_PacketState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.channel.v1.ChannelOuterClass.PacketState.class, ibc.core.channel.v1.ChannelOuterClass.PacketState.Builder.class);
}
public static final int PORT_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object portId_;
/**
*
* channel port identifier.
*
*
* string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""];
* @return The portId.
*/
@java.lang.Override
public java.lang.String getPortId() {
java.lang.Object ref = portId_;
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();
portId_ = s;
return s;
}
}
/**
*
* channel port identifier.
*
*
* string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""];
* @return The bytes for portId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPortIdBytes() {
java.lang.Object ref = portId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
portId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CHANNEL_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object channelId_;
/**
*
* channel unique identifier.
*
*
* string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""];
* @return The channelId.
*/
@java.lang.Override
public java.lang.String getChannelId() {
java.lang.Object ref = channelId_;
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();
channelId_ = s;
return s;
}
}
/**
*
* channel unique identifier.
*
*
* string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""];
* @return The bytes for channelId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getChannelIdBytes() {
java.lang.Object ref = channelId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
channelId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SEQUENCE_FIELD_NUMBER = 3;
private long sequence_;
/**
*
* packet sequence.
*
*
* uint64 sequence = 3;
* @return The sequence.
*/
@java.lang.Override
public long getSequence() {
return sequence_;
}
public static final int DATA_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString data_;
/**
*
* embedded data that represents packet state.
*
*
* bytes data = 4;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
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(portId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, portId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channelId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, channelId_);
}
if (sequence_ != 0L) {
output.writeUInt64(3, sequence_);
}
if (!data_.isEmpty()) {
output.writeBytes(4, data_);
}
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(portId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, portId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channelId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, channelId_);
}
if (sequence_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, sequence_);
}
if (!data_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, data_);
}
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.channel.v1.ChannelOuterClass.PacketState)) {
return super.equals(obj);
}
ibc.core.channel.v1.ChannelOuterClass.PacketState other = (ibc.core.channel.v1.ChannelOuterClass.PacketState) obj;
if (!getPortId()
.equals(other.getPortId())) return false;
if (!getChannelId()
.equals(other.getChannelId())) return false;
if (getSequence()
!= other.getSequence()) return false;
if (!getData()
.equals(other.getData())) 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) + PORT_ID_FIELD_NUMBER;
hash = (53 * hash) + getPortId().hashCode();
hash = (37 * hash) + CHANNEL_ID_FIELD_NUMBER;
hash = (53 * hash) + getChannelId().hashCode();
hash = (37 * hash) + SEQUENCE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSequence());
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ibc.core.channel.v1.ChannelOuterClass.PacketState parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.channel.v1.ChannelOuterClass.PacketState parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.channel.v1.ChannelOuterClass.PacketState parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.channel.v1.ChannelOuterClass.PacketState 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.channel.v1.ChannelOuterClass.PacketState parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.channel.v1.ChannelOuterClass.PacketState parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.channel.v1.ChannelOuterClass.PacketState parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.channel.v1.ChannelOuterClass.PacketState 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.channel.v1.ChannelOuterClass.PacketState parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ibc.core.channel.v1.ChannelOuterClass.PacketState 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.channel.v1.ChannelOuterClass.PacketState parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.channel.v1.ChannelOuterClass.PacketState 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.channel.v1.ChannelOuterClass.PacketState 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;
}
/**
*
* PacketState defines the generic type necessary to retrieve and store
* packet commitments, acknowledgements, and receipts.
* Caller is responsible for knowing the context necessary to interpret this
* state as a commitment, acknowledgement, or a receipt.
*
*
* Protobuf type {@code ibc.core.channel.v1.PacketState}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.PacketState)
ibc.core.channel.v1.ChannelOuterClass.PacketStateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_PacketState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_PacketState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.channel.v1.ChannelOuterClass.PacketState.class, ibc.core.channel.v1.ChannelOuterClass.PacketState.Builder.class);
}
// Construct using ibc.core.channel.v1.ChannelOuterClass.PacketState.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();
portId_ = "";
channelId_ = "";
sequence_ = 0L;
data_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_PacketState_descriptor;
}
@java.lang.Override
public ibc.core.channel.v1.ChannelOuterClass.PacketState getDefaultInstanceForType() {
return ibc.core.channel.v1.ChannelOuterClass.PacketState.getDefaultInstance();
}
@java.lang.Override
public ibc.core.channel.v1.ChannelOuterClass.PacketState build() {
ibc.core.channel.v1.ChannelOuterClass.PacketState result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ibc.core.channel.v1.ChannelOuterClass.PacketState buildPartial() {
ibc.core.channel.v1.ChannelOuterClass.PacketState result = new ibc.core.channel.v1.ChannelOuterClass.PacketState(this);
result.portId_ = portId_;
result.channelId_ = channelId_;
result.sequence_ = sequence_;
result.data_ = data_;
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.channel.v1.ChannelOuterClass.PacketState) {
return mergeFrom((ibc.core.channel.v1.ChannelOuterClass.PacketState)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ibc.core.channel.v1.ChannelOuterClass.PacketState other) {
if (other == ibc.core.channel.v1.ChannelOuterClass.PacketState.getDefaultInstance()) return this;
if (!other.getPortId().isEmpty()) {
portId_ = other.portId_;
onChanged();
}
if (!other.getChannelId().isEmpty()) {
channelId_ = other.channelId_;
onChanged();
}
if (other.getSequence() != 0L) {
setSequence(other.getSequence());
}
if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
setData(other.getData());
}
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.channel.v1.ChannelOuterClass.PacketState parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ibc.core.channel.v1.ChannelOuterClass.PacketState) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object portId_ = "";
/**
*
* channel port identifier.
*
*
* string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""];
* @return The portId.
*/
public java.lang.String getPortId() {
java.lang.Object ref = portId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
portId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* channel port identifier.
*
*
* string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""];
* @return The bytes for portId.
*/
public com.google.protobuf.ByteString
getPortIdBytes() {
java.lang.Object ref = portId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
portId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* channel port identifier.
*
*
* string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""];
* @param value The portId to set.
* @return This builder for chaining.
*/
public Builder setPortId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
portId_ = value;
onChanged();
return this;
}
/**
*
* channel port identifier.
*
*
* string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""];
* @return This builder for chaining.
*/
public Builder clearPortId() {
portId_ = getDefaultInstance().getPortId();
onChanged();
return this;
}
/**
*
* channel port identifier.
*
*
* string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""];
* @param value The bytes for portId to set.
* @return This builder for chaining.
*/
public Builder setPortIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
portId_ = value;
onChanged();
return this;
}
private java.lang.Object channelId_ = "";
/**
*
* channel unique identifier.
*
*
* string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""];
* @return The channelId.
*/
public java.lang.String getChannelId() {
java.lang.Object ref = channelId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
channelId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* channel unique identifier.
*
*
* string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""];
* @return The bytes for channelId.
*/
public com.google.protobuf.ByteString
getChannelIdBytes() {
java.lang.Object ref = channelId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
channelId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* channel unique identifier.
*
*
* string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""];
* @param value The channelId to set.
* @return This builder for chaining.
*/
public Builder setChannelId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
channelId_ = value;
onChanged();
return this;
}
/**
*
* channel unique identifier.
*
*
* string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""];
* @return This builder for chaining.
*/
public Builder clearChannelId() {
channelId_ = getDefaultInstance().getChannelId();
onChanged();
return this;
}
/**
*
* channel unique identifier.
*
*
* string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""];
* @param value The bytes for channelId to set.
* @return This builder for chaining.
*/
public Builder setChannelIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
channelId_ = value;
onChanged();
return this;
}
private long sequence_ ;
/**
*
* packet sequence.
*
*
* uint64 sequence = 3;
* @return The sequence.
*/
@java.lang.Override
public long getSequence() {
return sequence_;
}
/**
*
* packet sequence.
*
*
* uint64 sequence = 3;
* @param value The sequence to set.
* @return This builder for chaining.
*/
public Builder setSequence(long value) {
sequence_ = value;
onChanged();
return this;
}
/**
*
* packet sequence.
*
*
* uint64 sequence = 3;
* @return This builder for chaining.
*/
public Builder clearSequence() {
sequence_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* embedded data that represents packet state.
*
*
* bytes data = 4;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
*
* embedded data that represents packet state.
*
*
* bytes data = 4;
* @param value The data to set.
* @return This builder for chaining.
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
*
* embedded data that represents packet state.
*
*
* bytes data = 4;
* @return This builder for chaining.
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
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.channel.v1.PacketState)
}
// @@protoc_insertion_point(class_scope:ibc.core.channel.v1.PacketState)
private static final ibc.core.channel.v1.ChannelOuterClass.PacketState DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ibc.core.channel.v1.ChannelOuterClass.PacketState();
}
public static ibc.core.channel.v1.ChannelOuterClass.PacketState getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PacketState parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PacketState(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.channel.v1.ChannelOuterClass.PacketState getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PacketIdOrBuilder extends
// @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.PacketId)
com.google.protobuf.MessageOrBuilder {
/**
*
* channel port identifier
*
*
* string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""];
* @return The portId.
*/
java.lang.String getPortId();
/**
*
* channel port identifier
*
*
* string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""];
* @return The bytes for portId.
*/
com.google.protobuf.ByteString
getPortIdBytes();
/**
*
* channel unique identifier
*
*
* string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""];
* @return The channelId.
*/
java.lang.String getChannelId();
/**
*
* channel unique identifier
*
*
* string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""];
* @return The bytes for channelId.
*/
com.google.protobuf.ByteString
getChannelIdBytes();
/**
*
* packet sequence
*
*
* uint64 sequence = 3;
* @return The sequence.
*/
long getSequence();
}
/**
*
* PacketId is an identifer for a unique Packet
* Source chains refer to packets by source port/channel
* Destination chains refer to packets by destination port/channel
*
*
* Protobuf type {@code ibc.core.channel.v1.PacketId}
*/
public static final class PacketId extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ibc.core.channel.v1.PacketId)
PacketIdOrBuilder {
private static final long serialVersionUID = 0L;
// Use PacketId.newBuilder() to construct.
private PacketId(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PacketId() {
portId_ = "";
channelId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PacketId();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PacketId(
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();
portId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
channelId_ = s;
break;
}
case 24: {
sequence_ = input.readUInt64();
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.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_PacketId_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_PacketId_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.channel.v1.ChannelOuterClass.PacketId.class, ibc.core.channel.v1.ChannelOuterClass.PacketId.Builder.class);
}
public static final int PORT_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object portId_;
/**
*
* channel port identifier
*
*
* string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""];
* @return The portId.
*/
@java.lang.Override
public java.lang.String getPortId() {
java.lang.Object ref = portId_;
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();
portId_ = s;
return s;
}
}
/**
*
* channel port identifier
*
*
* string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""];
* @return The bytes for portId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPortIdBytes() {
java.lang.Object ref = portId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
portId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CHANNEL_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object channelId_;
/**
*
* channel unique identifier
*
*
* string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""];
* @return The channelId.
*/
@java.lang.Override
public java.lang.String getChannelId() {
java.lang.Object ref = channelId_;
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();
channelId_ = s;
return s;
}
}
/**
*
* channel unique identifier
*
*
* string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""];
* @return The bytes for channelId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getChannelIdBytes() {
java.lang.Object ref = channelId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
channelId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SEQUENCE_FIELD_NUMBER = 3;
private long sequence_;
/**
*
* packet sequence
*
*
* uint64 sequence = 3;
* @return The sequence.
*/
@java.lang.Override
public long getSequence() {
return sequence_;
}
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(portId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, portId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channelId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, channelId_);
}
if (sequence_ != 0L) {
output.writeUInt64(3, sequence_);
}
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(portId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, portId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channelId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, channelId_);
}
if (sequence_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, sequence_);
}
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.channel.v1.ChannelOuterClass.PacketId)) {
return super.equals(obj);
}
ibc.core.channel.v1.ChannelOuterClass.PacketId other = (ibc.core.channel.v1.ChannelOuterClass.PacketId) obj;
if (!getPortId()
.equals(other.getPortId())) return false;
if (!getChannelId()
.equals(other.getChannelId())) return false;
if (getSequence()
!= other.getSequence()) 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) + PORT_ID_FIELD_NUMBER;
hash = (53 * hash) + getPortId().hashCode();
hash = (37 * hash) + CHANNEL_ID_FIELD_NUMBER;
hash = (53 * hash) + getChannelId().hashCode();
hash = (37 * hash) + SEQUENCE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSequence());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ibc.core.channel.v1.ChannelOuterClass.PacketId parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.channel.v1.ChannelOuterClass.PacketId parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.channel.v1.ChannelOuterClass.PacketId parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.channel.v1.ChannelOuterClass.PacketId 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.channel.v1.ChannelOuterClass.PacketId parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.channel.v1.ChannelOuterClass.PacketId parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.channel.v1.ChannelOuterClass.PacketId parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.channel.v1.ChannelOuterClass.PacketId 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.channel.v1.ChannelOuterClass.PacketId parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ibc.core.channel.v1.ChannelOuterClass.PacketId 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.channel.v1.ChannelOuterClass.PacketId parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.channel.v1.ChannelOuterClass.PacketId 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.channel.v1.ChannelOuterClass.PacketId 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;
}
/**
*
* PacketId is an identifer for a unique Packet
* Source chains refer to packets by source port/channel
* Destination chains refer to packets by destination port/channel
*
*
* Protobuf type {@code ibc.core.channel.v1.PacketId}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.PacketId)
ibc.core.channel.v1.ChannelOuterClass.PacketIdOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_PacketId_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_PacketId_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.channel.v1.ChannelOuterClass.PacketId.class, ibc.core.channel.v1.ChannelOuterClass.PacketId.Builder.class);
}
// Construct using ibc.core.channel.v1.ChannelOuterClass.PacketId.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();
portId_ = "";
channelId_ = "";
sequence_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_PacketId_descriptor;
}
@java.lang.Override
public ibc.core.channel.v1.ChannelOuterClass.PacketId getDefaultInstanceForType() {
return ibc.core.channel.v1.ChannelOuterClass.PacketId.getDefaultInstance();
}
@java.lang.Override
public ibc.core.channel.v1.ChannelOuterClass.PacketId build() {
ibc.core.channel.v1.ChannelOuterClass.PacketId result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ibc.core.channel.v1.ChannelOuterClass.PacketId buildPartial() {
ibc.core.channel.v1.ChannelOuterClass.PacketId result = new ibc.core.channel.v1.ChannelOuterClass.PacketId(this);
result.portId_ = portId_;
result.channelId_ = channelId_;
result.sequence_ = sequence_;
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.channel.v1.ChannelOuterClass.PacketId) {
return mergeFrom((ibc.core.channel.v1.ChannelOuterClass.PacketId)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ibc.core.channel.v1.ChannelOuterClass.PacketId other) {
if (other == ibc.core.channel.v1.ChannelOuterClass.PacketId.getDefaultInstance()) return this;
if (!other.getPortId().isEmpty()) {
portId_ = other.portId_;
onChanged();
}
if (!other.getChannelId().isEmpty()) {
channelId_ = other.channelId_;
onChanged();
}
if (other.getSequence() != 0L) {
setSequence(other.getSequence());
}
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.channel.v1.ChannelOuterClass.PacketId parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ibc.core.channel.v1.ChannelOuterClass.PacketId) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object portId_ = "";
/**
*
* channel port identifier
*
*
* string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""];
* @return The portId.
*/
public java.lang.String getPortId() {
java.lang.Object ref = portId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
portId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* channel port identifier
*
*
* string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""];
* @return The bytes for portId.
*/
public com.google.protobuf.ByteString
getPortIdBytes() {
java.lang.Object ref = portId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
portId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* channel port identifier
*
*
* string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""];
* @param value The portId to set.
* @return This builder for chaining.
*/
public Builder setPortId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
portId_ = value;
onChanged();
return this;
}
/**
*
* channel port identifier
*
*
* string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""];
* @return This builder for chaining.
*/
public Builder clearPortId() {
portId_ = getDefaultInstance().getPortId();
onChanged();
return this;
}
/**
*
* channel port identifier
*
*
* string port_id = 1 [(.gogoproto.moretags) = "yaml:\"port_id\""];
* @param value The bytes for portId to set.
* @return This builder for chaining.
*/
public Builder setPortIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
portId_ = value;
onChanged();
return this;
}
private java.lang.Object channelId_ = "";
/**
*
* channel unique identifier
*
*
* string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""];
* @return The channelId.
*/
public java.lang.String getChannelId() {
java.lang.Object ref = channelId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
channelId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* channel unique identifier
*
*
* string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""];
* @return The bytes for channelId.
*/
public com.google.protobuf.ByteString
getChannelIdBytes() {
java.lang.Object ref = channelId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
channelId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* channel unique identifier
*
*
* string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""];
* @param value The channelId to set.
* @return This builder for chaining.
*/
public Builder setChannelId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
channelId_ = value;
onChanged();
return this;
}
/**
*
* channel unique identifier
*
*
* string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""];
* @return This builder for chaining.
*/
public Builder clearChannelId() {
channelId_ = getDefaultInstance().getChannelId();
onChanged();
return this;
}
/**
*
* channel unique identifier
*
*
* string channel_id = 2 [(.gogoproto.moretags) = "yaml:\"channel_id\""];
* @param value The bytes for channelId to set.
* @return This builder for chaining.
*/
public Builder setChannelIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
channelId_ = value;
onChanged();
return this;
}
private long sequence_ ;
/**
*
* packet sequence
*
*
* uint64 sequence = 3;
* @return The sequence.
*/
@java.lang.Override
public long getSequence() {
return sequence_;
}
/**
*
* packet sequence
*
*
* uint64 sequence = 3;
* @param value The sequence to set.
* @return This builder for chaining.
*/
public Builder setSequence(long value) {
sequence_ = value;
onChanged();
return this;
}
/**
*
* packet sequence
*
*
* uint64 sequence = 3;
* @return This builder for chaining.
*/
public Builder clearSequence() {
sequence_ = 0L;
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.channel.v1.PacketId)
}
// @@protoc_insertion_point(class_scope:ibc.core.channel.v1.PacketId)
private static final ibc.core.channel.v1.ChannelOuterClass.PacketId DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ibc.core.channel.v1.ChannelOuterClass.PacketId();
}
public static ibc.core.channel.v1.ChannelOuterClass.PacketId getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PacketId parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PacketId(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.channel.v1.ChannelOuterClass.PacketId getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AcknowledgementOrBuilder extends
// @@protoc_insertion_point(interface_extends:ibc.core.channel.v1.Acknowledgement)
com.google.protobuf.MessageOrBuilder {
/**
* bytes result = 21;
* @return Whether the result field is set.
*/
boolean hasResult();
/**
* bytes result = 21;
* @return The result.
*/
com.google.protobuf.ByteString getResult();
/**
* string error = 22;
* @return Whether the error field is set.
*/
boolean hasError();
/**
* string error = 22;
* @return The error.
*/
java.lang.String getError();
/**
* string error = 22;
* @return The bytes for error.
*/
com.google.protobuf.ByteString
getErrorBytes();
public ibc.core.channel.v1.ChannelOuterClass.Acknowledgement.ResponseCase getResponseCase();
}
/**
*
* Acknowledgement is the recommended acknowledgement format to be used by
* app-specific protocols.
* NOTE: The field numbers 21 and 22 were explicitly chosen to avoid accidental
* conflicts with other protobuf message formats used for acknowledgements.
* The first byte of any message with this format will be the non-ASCII values
* `0xaa` (result) or `0xb2` (error). Implemented as defined by ICS:
* https://github.com/cosmos/ibc/tree/master/spec/core/ics-004-channel-and-packet-semantics#acknowledgement-envelope
*
*
* Protobuf type {@code ibc.core.channel.v1.Acknowledgement}
*/
public static final class Acknowledgement extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ibc.core.channel.v1.Acknowledgement)
AcknowledgementOrBuilder {
private static final long serialVersionUID = 0L;
// Use Acknowledgement.newBuilder() to construct.
private Acknowledgement(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Acknowledgement() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Acknowledgement();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Acknowledgement(
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 170: {
response_ = input.readBytes();
responseCase_ = 21;
break;
}
case 178: {
java.lang.String s = input.readStringRequireUtf8();
responseCase_ = 22;
response_ = 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.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Acknowledgement_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Acknowledgement_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.channel.v1.ChannelOuterClass.Acknowledgement.class, ibc.core.channel.v1.ChannelOuterClass.Acknowledgement.Builder.class);
}
private int responseCase_ = 0;
private java.lang.Object response_;
public enum ResponseCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
RESULT(21),
ERROR(22),
RESPONSE_NOT_SET(0);
private final int value;
private ResponseCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ResponseCase valueOf(int value) {
return forNumber(value);
}
public static ResponseCase forNumber(int value) {
switch (value) {
case 21: return RESULT;
case 22: return ERROR;
case 0: return RESPONSE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ResponseCase
getResponseCase() {
return ResponseCase.forNumber(
responseCase_);
}
public static final int RESULT_FIELD_NUMBER = 21;
/**
* bytes result = 21;
* @return Whether the result field is set.
*/
@java.lang.Override
public boolean hasResult() {
return responseCase_ == 21;
}
/**
* bytes result = 21;
* @return The result.
*/
@java.lang.Override
public com.google.protobuf.ByteString getResult() {
if (responseCase_ == 21) {
return (com.google.protobuf.ByteString) response_;
}
return com.google.protobuf.ByteString.EMPTY;
}
public static final int ERROR_FIELD_NUMBER = 22;
/**
* string error = 22;
* @return Whether the error field is set.
*/
public boolean hasError() {
return responseCase_ == 22;
}
/**
* string error = 22;
* @return The error.
*/
public java.lang.String getError() {
java.lang.Object ref = "";
if (responseCase_ == 22) {
ref = response_;
}
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();
if (responseCase_ == 22) {
response_ = s;
}
return s;
}
}
/**
* string error = 22;
* @return The bytes for error.
*/
public com.google.protobuf.ByteString
getErrorBytes() {
java.lang.Object ref = "";
if (responseCase_ == 22) {
ref = response_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (responseCase_ == 22) {
response_ = 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 (responseCase_ == 21) {
output.writeBytes(
21, (com.google.protobuf.ByteString) response_);
}
if (responseCase_ == 22) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 22, response_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (responseCase_ == 21) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(
21, (com.google.protobuf.ByteString) response_);
}
if (responseCase_ == 22) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, response_);
}
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.channel.v1.ChannelOuterClass.Acknowledgement)) {
return super.equals(obj);
}
ibc.core.channel.v1.ChannelOuterClass.Acknowledgement other = (ibc.core.channel.v1.ChannelOuterClass.Acknowledgement) obj;
if (!getResponseCase().equals(other.getResponseCase())) return false;
switch (responseCase_) {
case 21:
if (!getResult()
.equals(other.getResult())) return false;
break;
case 22:
if (!getError()
.equals(other.getError())) return false;
break;
case 0:
default:
}
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();
switch (responseCase_) {
case 21:
hash = (37 * hash) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + getResult().hashCode();
break;
case 22:
hash = (37 * hash) + ERROR_FIELD_NUMBER;
hash = (53 * hash) + getError().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ibc.core.channel.v1.ChannelOuterClass.Acknowledgement parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.channel.v1.ChannelOuterClass.Acknowledgement parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.channel.v1.ChannelOuterClass.Acknowledgement parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.channel.v1.ChannelOuterClass.Acknowledgement 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.channel.v1.ChannelOuterClass.Acknowledgement parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.core.channel.v1.ChannelOuterClass.Acknowledgement parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.core.channel.v1.ChannelOuterClass.Acknowledgement parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.channel.v1.ChannelOuterClass.Acknowledgement 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.channel.v1.ChannelOuterClass.Acknowledgement parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ibc.core.channel.v1.ChannelOuterClass.Acknowledgement 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.channel.v1.ChannelOuterClass.Acknowledgement parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.core.channel.v1.ChannelOuterClass.Acknowledgement 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.channel.v1.ChannelOuterClass.Acknowledgement 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;
}
/**
*
* Acknowledgement is the recommended acknowledgement format to be used by
* app-specific protocols.
* NOTE: The field numbers 21 and 22 were explicitly chosen to avoid accidental
* conflicts with other protobuf message formats used for acknowledgements.
* The first byte of any message with this format will be the non-ASCII values
* `0xaa` (result) or `0xb2` (error). Implemented as defined by ICS:
* https://github.com/cosmos/ibc/tree/master/spec/core/ics-004-channel-and-packet-semantics#acknowledgement-envelope
*
*
* Protobuf type {@code ibc.core.channel.v1.Acknowledgement}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ibc.core.channel.v1.Acknowledgement)
ibc.core.channel.v1.ChannelOuterClass.AcknowledgementOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Acknowledgement_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Acknowledgement_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.core.channel.v1.ChannelOuterClass.Acknowledgement.class, ibc.core.channel.v1.ChannelOuterClass.Acknowledgement.Builder.class);
}
// Construct using ibc.core.channel.v1.ChannelOuterClass.Acknowledgement.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();
responseCase_ = 0;
response_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ibc.core.channel.v1.ChannelOuterClass.internal_static_ibc_core_channel_v1_Acknowledgement_descriptor;
}
@java.lang.Override
public ibc.core.channel.v1.ChannelOuterClass.Acknowledgement getDefaultInstanceForType() {
return ibc.core.channel.v1.ChannelOuterClass.Acknowledgement.getDefaultInstance();
}
@java.lang.Override
public ibc.core.channel.v1.ChannelOuterClass.Acknowledgement build() {
ibc.core.channel.v1.ChannelOuterClass.Acknowledgement result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ibc.core.channel.v1.ChannelOuterClass.Acknowledgement buildPartial() {
ibc.core.channel.v1.ChannelOuterClass.Acknowledgement result = new ibc.core.channel.v1.ChannelOuterClass.Acknowledgement(this);
if (responseCase_ == 21) {
result.response_ = response_;
}
if (responseCase_ == 22) {
result.response_ = response_;
}
result.responseCase_ = responseCase_;
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.channel.v1.ChannelOuterClass.Acknowledgement) {
return mergeFrom((ibc.core.channel.v1.ChannelOuterClass.Acknowledgement)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ibc.core.channel.v1.ChannelOuterClass.Acknowledgement other) {
if (other == ibc.core.channel.v1.ChannelOuterClass.Acknowledgement.getDefaultInstance()) return this;
switch (other.getResponseCase()) {
case RESULT: {
setResult(other.getResult());
break;
}
case ERROR: {
responseCase_ = 22;
response_ = other.response_;
onChanged();
break;
}
case RESPONSE_NOT_SET: {
break;
}
}
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.channel.v1.ChannelOuterClass.Acknowledgement parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ibc.core.channel.v1.ChannelOuterClass.Acknowledgement) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int responseCase_ = 0;
private java.lang.Object response_;
public ResponseCase
getResponseCase() {
return ResponseCase.forNumber(
responseCase_);
}
public Builder clearResponse() {
responseCase_ = 0;
response_ = null;
onChanged();
return this;
}
/**
* bytes result = 21;
* @return Whether the result field is set.
*/
public boolean hasResult() {
return responseCase_ == 21;
}
/**
* bytes result = 21;
* @return The result.
*/
public com.google.protobuf.ByteString getResult() {
if (responseCase_ == 21) {
return (com.google.protobuf.ByteString) response_;
}
return com.google.protobuf.ByteString.EMPTY;
}
/**
* bytes result = 21;
* @param value The result to set.
* @return This builder for chaining.
*/
public Builder setResult(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
responseCase_ = 21;
response_ = value;
onChanged();
return this;
}
/**
* bytes result = 21;
* @return This builder for chaining.
*/
public Builder clearResult() {
if (responseCase_ == 21) {
responseCase_ = 0;
response_ = null;
onChanged();
}
return this;
}
/**
* string error = 22;
* @return Whether the error field is set.
*/
@java.lang.Override
public boolean hasError() {
return responseCase_ == 22;
}
/**
* string error = 22;
* @return The error.
*/
@java.lang.Override
public java.lang.String getError() {
java.lang.Object ref = "";
if (responseCase_ == 22) {
ref = response_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (responseCase_ == 22) {
response_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string error = 22;
* @return The bytes for error.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getErrorBytes() {
java.lang.Object ref = "";
if (responseCase_ == 22) {
ref = response_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (responseCase_ == 22) {
response_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string error = 22;
* @param value The error to set.
* @return This builder for chaining.
*/
public Builder setError(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
responseCase_ = 22;
response_ = value;
onChanged();
return this;
}
/**
* string error = 22;
* @return This builder for chaining.
*/
public Builder clearError() {
if (responseCase_ == 22) {
responseCase_ = 0;
response_ = null;
onChanged();
}
return this;
}
/**
* string error = 22;
* @param value The bytes for error to set.
* @return This builder for chaining.
*/
public Builder setErrorBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
responseCase_ = 22;
response_ = 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.channel.v1.Acknowledgement)
}
// @@protoc_insertion_point(class_scope:ibc.core.channel.v1.Acknowledgement)
private static final ibc.core.channel.v1.ChannelOuterClass.Acknowledgement DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ibc.core.channel.v1.ChannelOuterClass.Acknowledgement();
}
public static ibc.core.channel.v1.ChannelOuterClass.Acknowledgement getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Acknowledgement parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Acknowledgement(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.channel.v1.ChannelOuterClass.Acknowledgement getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ibc_core_channel_v1_Channel_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ibc_core_channel_v1_Channel_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ibc_core_channel_v1_IdentifiedChannel_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ibc_core_channel_v1_IdentifiedChannel_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ibc_core_channel_v1_Counterparty_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ibc_core_channel_v1_Counterparty_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ibc_core_channel_v1_Packet_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ibc_core_channel_v1_Packet_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ibc_core_channel_v1_PacketState_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ibc_core_channel_v1_PacketState_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ibc_core_channel_v1_PacketId_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ibc_core_channel_v1_PacketId_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ibc_core_channel_v1_Acknowledgement_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ibc_core_channel_v1_Acknowledgement_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n!ibc/core/channel/v1/channel.proto\022\023ibc" +
".core.channel.v1\032\024gogoproto/gogo.proto\032\037" +
"ibc/core/client/v1/client.proto\"\355\001\n\007Chan" +
"nel\022)\n\005state\030\001 \001(\0162\032.ibc.core.channel.v1" +
".State\022,\n\010ordering\030\002 \001(\0162\032.ibc.core.chan" +
"nel.v1.Order\022=\n\014counterparty\030\003 \001(\0132!.ibc" +
".core.channel.v1.CounterpartyB\004\310\336\037\000\0223\n\017c" +
"onnection_hops\030\004 \003(\tB\032\362\336\037\026yaml:\"connecti" +
"on_hops\"\022\017\n\007version\030\005 \001(\t:\004\210\240\037\000\"\234\002\n\021Iden" +
"tifiedChannel\022)\n\005state\030\001 \001(\0162\032.ibc.core." +
"channel.v1.State\022,\n\010ordering\030\002 \001(\0162\032.ibc" +
".core.channel.v1.Order\022=\n\014counterparty\030\003" +
" \001(\0132!.ibc.core.channel.v1.CounterpartyB" +
"\004\310\336\037\000\0223\n\017connection_hops\030\004 \003(\tB\032\362\336\037\026yaml" +
":\"connection_hops\"\022\017\n\007version\030\005 \001(\t\022\017\n\007p" +
"ort_id\030\006 \001(\t\022\022\n\nchannel_id\030\007 \001(\t:\004\210\240\037\000\"d" +
"\n\014Counterparty\022#\n\007port_id\030\001 \001(\tB\022\362\336\037\016yam" +
"l:\"port_id\"\022)\n\nchannel_id\030\002 \001(\tB\025\362\336\037\021yam" +
"l:\"channel_id\":\004\210\240\037\000\"\216\003\n\006Packet\022\020\n\010seque" +
"nce\030\001 \001(\004\022+\n\013source_port\030\002 \001(\tB\026\362\336\037\022yaml" +
":\"source_port\"\0221\n\016source_channel\030\003 \001(\tB\031" +
"\362\336\037\025yaml:\"source_channel\"\0225\n\020destination" +
"_port\030\004 \001(\tB\033\362\336\037\027yaml:\"destination_port\"" +
"\022;\n\023destination_channel\030\005 \001(\tB\036\362\336\037\032yaml:" +
"\"destination_channel\"\022\014\n\004data\030\006 \001(\014\022Q\n\016t" +
"imeout_height\030\007 \001(\0132\032.ibc.core.client.v1" +
".HeightB\035\362\336\037\025yaml:\"timeout_height\"\310\336\037\000\0227" +
"\n\021timeout_timestamp\030\010 \001(\004B\034\362\336\037\030yaml:\"tim" +
"eout_timestamp\":\004\210\240\037\000\"\203\001\n\013PacketState\022#\n" +
"\007port_id\030\001 \001(\tB\022\362\336\037\016yaml:\"port_id\"\022)\n\nch" +
"annel_id\030\002 \001(\tB\025\362\336\037\021yaml:\"channel_id\"\022\020\n" +
"\010sequence\030\003 \001(\004\022\014\n\004data\030\004 \001(\014:\004\210\240\037\000\"r\n\010P" +
"acketId\022#\n\007port_id\030\001 \001(\tB\022\362\336\037\016yaml:\"port" +
"_id\"\022)\n\nchannel_id\030\002 \001(\tB\025\362\336\037\021yaml:\"chan" +
"nel_id\"\022\020\n\010sequence\030\003 \001(\004:\004\210\240\037\000\"@\n\017Ackno" +
"wledgement\022\020\n\006result\030\025 \001(\014H\000\022\017\n\005error\030\026 " +
"\001(\tH\000B\n\n\010response*\267\001\n\005State\0226\n\037STATE_UNI" +
"NITIALIZED_UNSPECIFIED\020\000\032\021\212\235 \rUNINITIALI" +
"ZED\022\030\n\nSTATE_INIT\020\001\032\010\212\235 \004INIT\022\036\n\rSTATE_T" +
"RYOPEN\020\002\032\013\212\235 \007TRYOPEN\022\030\n\nSTATE_OPEN\020\003\032\010\212" +
"\235 \004OPEN\022\034\n\014STATE_CLOSED\020\004\032\n\212\235 \006CLOSED\032\004\210" +
"\243\036\000*w\n\005Order\022$\n\026ORDER_NONE_UNSPECIFIED\020\000" +
"\032\010\212\235 \004NONE\022\"\n\017ORDER_UNORDERED\020\001\032\r\212\235 \tUNO" +
"RDERED\022\036\n\rORDER_ORDERED\020\002\032\013\212\235 \007ORDERED\032\004" +
"\210\243\036\000B;Z9github.com/cosmos/ibc-go/v3/modu" +
"les/core/04-channel/typesb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.GoGoProtos.getDescriptor(),
ibc.core.client.v1.Client.getDescriptor(),
});
internal_static_ibc_core_channel_v1_Channel_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_ibc_core_channel_v1_Channel_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ibc_core_channel_v1_Channel_descriptor,
new java.lang.String[] { "State", "Ordering", "Counterparty", "ConnectionHops", "Version", });
internal_static_ibc_core_channel_v1_IdentifiedChannel_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_ibc_core_channel_v1_IdentifiedChannel_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ibc_core_channel_v1_IdentifiedChannel_descriptor,
new java.lang.String[] { "State", "Ordering", "Counterparty", "ConnectionHops", "Version", "PortId", "ChannelId", });
internal_static_ibc_core_channel_v1_Counterparty_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_ibc_core_channel_v1_Counterparty_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ibc_core_channel_v1_Counterparty_descriptor,
new java.lang.String[] { "PortId", "ChannelId", });
internal_static_ibc_core_channel_v1_Packet_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_ibc_core_channel_v1_Packet_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ibc_core_channel_v1_Packet_descriptor,
new java.lang.String[] { "Sequence", "SourcePort", "SourceChannel", "DestinationPort", "DestinationChannel", "Data", "TimeoutHeight", "TimeoutTimestamp", });
internal_static_ibc_core_channel_v1_PacketState_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_ibc_core_channel_v1_PacketState_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ibc_core_channel_v1_PacketState_descriptor,
new java.lang.String[] { "PortId", "ChannelId", "Sequence", "Data", });
internal_static_ibc_core_channel_v1_PacketId_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_ibc_core_channel_v1_PacketId_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ibc_core_channel_v1_PacketId_descriptor,
new java.lang.String[] { "PortId", "ChannelId", "Sequence", });
internal_static_ibc_core_channel_v1_Acknowledgement_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_ibc_core_channel_v1_Acknowledgement_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ibc_core_channel_v1_Acknowledgement_descriptor,
new java.lang.String[] { "Result", "Error", "Response", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.protobuf.GoGoProtos.enumvalueCustomname);
registry.add(com.google.protobuf.GoGoProtos.goprotoEnumPrefix);
registry.add(com.google.protobuf.GoGoProtos.goprotoGetters);
registry.add(com.google.protobuf.GoGoProtos.moretags);
registry.add(com.google.protobuf.GoGoProtos.nullable);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.protobuf.GoGoProtos.getDescriptor();
ibc.core.client.v1.Client.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy