proto.tibc.core.packet.v1.PacketOuterClass Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of irita-sdk Show documentation
Show all versions of irita-sdk Show documentation
Irita open alliance chain SDK (java)
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tibc/core/packet/v1/packet.proto
package proto.tibc.core.packet.v1;
public final class PacketOuterClass {
private PacketOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface PacketOrBuilder extends
// @@protoc_insertion_point(interface_extends:tibc.core.packet.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 and destination chain.
*
*
* string port = 2;
* @return The port.
*/
java.lang.String getPort();
/**
*
* identifies the port on the sending chain and destination chain.
*
*
* string port = 2;
* @return The bytes for port.
*/
com.google.protobuf.ByteString
getPortBytes();
/**
*
* identifies the chain id of the sending chain.
*
*
* string source_chain = 3 [(.gogoproto.moretags) = "yaml:\"source_chain\""];
* @return The sourceChain.
*/
java.lang.String getSourceChain();
/**
*
* identifies the chain id of the sending chain.
*
*
* string source_chain = 3 [(.gogoproto.moretags) = "yaml:\"source_chain\""];
* @return The bytes for sourceChain.
*/
com.google.protobuf.ByteString
getSourceChainBytes();
/**
*
* identifies the chain id of the receiving chain.
*
*
* string destination_chain = 4 [(.gogoproto.moretags) = "yaml:\"destination_port\""];
* @return The destinationChain.
*/
java.lang.String getDestinationChain();
/**
*
* identifies the chain id of the receiving chain.
*
*
* string destination_chain = 4 [(.gogoproto.moretags) = "yaml:\"destination_port\""];
* @return The bytes for destinationChain.
*/
com.google.protobuf.ByteString
getDestinationChainBytes();
/**
*
* identifies the chain id of the relay chain.
*
*
* string relay_chain = 5 [(.gogoproto.moretags) = "yaml:\"relay_chain\""];
* @return The relayChain.
*/
java.lang.String getRelayChain();
/**
*
* identifies the chain id of the relay chain.
*
*
* string relay_chain = 5 [(.gogoproto.moretags) = "yaml:\"relay_chain\""];
* @return The bytes for relayChain.
*/
com.google.protobuf.ByteString
getRelayChainBytes();
/**
*
* actual opaque bytes transferred directly to the application module
*
*
* bytes data = 6;
* @return The data.
*/
com.google.protobuf.ByteString getData();
}
/**
*
* Packet defines a type that carries data across different chains through TIBC
*
*
* Protobuf type {@code tibc.core.packet.v1.Packet}
*/
public static final class Packet extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tibc.core.packet.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() {
port_ = "";
sourceChain_ = "";
destinationChain_ = "";
relayChain_ = "";
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();
port_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
sourceChain_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
destinationChain_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
relayChain_ = s;
break;
}
case 50: {
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 proto.tibc.core.packet.v1.PacketOuterClass.internal_static_tibc_core_packet_v1_Packet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.packet.v1.PacketOuterClass.internal_static_tibc_core_packet_v1_Packet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.packet.v1.PacketOuterClass.Packet.class, proto.tibc.core.packet.v1.PacketOuterClass.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 PORT_FIELD_NUMBER = 2;
private volatile java.lang.Object port_;
/**
*
* identifies the port on the sending chain and destination chain.
*
*
* string port = 2;
* @return The port.
*/
@java.lang.Override
public java.lang.String getPort() {
java.lang.Object ref = port_;
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();
port_ = s;
return s;
}
}
/**
*
* identifies the port on the sending chain and destination chain.
*
*
* string port = 2;
* @return The bytes for port.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPortBytes() {
java.lang.Object ref = port_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
port_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SOURCE_CHAIN_FIELD_NUMBER = 3;
private volatile java.lang.Object sourceChain_;
/**
*
* identifies the chain id of the sending chain.
*
*
* string source_chain = 3 [(.gogoproto.moretags) = "yaml:\"source_chain\""];
* @return The sourceChain.
*/
@java.lang.Override
public java.lang.String getSourceChain() {
java.lang.Object ref = sourceChain_;
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();
sourceChain_ = s;
return s;
}
}
/**
*
* identifies the chain id of the sending chain.
*
*
* string source_chain = 3 [(.gogoproto.moretags) = "yaml:\"source_chain\""];
* @return The bytes for sourceChain.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSourceChainBytes() {
java.lang.Object ref = sourceChain_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sourceChain_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESTINATION_CHAIN_FIELD_NUMBER = 4;
private volatile java.lang.Object destinationChain_;
/**
*
* identifies the chain id of the receiving chain.
*
*
* string destination_chain = 4 [(.gogoproto.moretags) = "yaml:\"destination_port\""];
* @return The destinationChain.
*/
@java.lang.Override
public java.lang.String getDestinationChain() {
java.lang.Object ref = destinationChain_;
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();
destinationChain_ = s;
return s;
}
}
/**
*
* identifies the chain id of the receiving chain.
*
*
* string destination_chain = 4 [(.gogoproto.moretags) = "yaml:\"destination_port\""];
* @return The bytes for destinationChain.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDestinationChainBytes() {
java.lang.Object ref = destinationChain_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
destinationChain_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RELAY_CHAIN_FIELD_NUMBER = 5;
private volatile java.lang.Object relayChain_;
/**
*
* identifies the chain id of the relay chain.
*
*
* string relay_chain = 5 [(.gogoproto.moretags) = "yaml:\"relay_chain\""];
* @return The relayChain.
*/
@java.lang.Override
public java.lang.String getRelayChain() {
java.lang.Object ref = relayChain_;
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();
relayChain_ = s;
return s;
}
}
/**
*
* identifies the chain id of the relay chain.
*
*
* string relay_chain = 5 [(.gogoproto.moretags) = "yaml:\"relay_chain\""];
* @return The bytes for relayChain.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRelayChainBytes() {
java.lang.Object ref = relayChain_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
relayChain_ = 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_;
}
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 (!getPortBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, port_);
}
if (!getSourceChainBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sourceChain_);
}
if (!getDestinationChainBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, destinationChain_);
}
if (!getRelayChainBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, relayChain_);
}
if (!data_.isEmpty()) {
output.writeBytes(6, data_);
}
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 (!getPortBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, port_);
}
if (!getSourceChainBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sourceChain_);
}
if (!getDestinationChainBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, destinationChain_);
}
if (!getRelayChainBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, relayChain_);
}
if (!data_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, 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 proto.tibc.core.packet.v1.PacketOuterClass.Packet)) {
return super.equals(obj);
}
proto.tibc.core.packet.v1.PacketOuterClass.Packet other = (proto.tibc.core.packet.v1.PacketOuterClass.Packet) obj;
if (getSequence()
!= other.getSequence()) return false;
if (!getPort()
.equals(other.getPort())) return false;
if (!getSourceChain()
.equals(other.getSourceChain())) return false;
if (!getDestinationChain()
.equals(other.getDestinationChain())) return false;
if (!getRelayChain()
.equals(other.getRelayChain())) 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) + SEQUENCE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSequence());
hash = (37 * hash) + PORT_FIELD_NUMBER;
hash = (53 * hash) + getPort().hashCode();
hash = (37 * hash) + SOURCE_CHAIN_FIELD_NUMBER;
hash = (53 * hash) + getSourceChain().hashCode();
hash = (37 * hash) + DESTINATION_CHAIN_FIELD_NUMBER;
hash = (53 * hash) + getDestinationChain().hashCode();
hash = (37 * hash) + RELAY_CHAIN_FIELD_NUMBER;
hash = (53 * hash) + getRelayChain().hashCode();
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static proto.tibc.core.packet.v1.PacketOuterClass.Packet parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.packet.v1.PacketOuterClass.Packet parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.packet.v1.PacketOuterClass.Packet parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.packet.v1.PacketOuterClass.Packet parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.packet.v1.PacketOuterClass.Packet parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.packet.v1.PacketOuterClass.Packet parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.packet.v1.PacketOuterClass.Packet parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.packet.v1.PacketOuterClass.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 proto.tibc.core.packet.v1.PacketOuterClass.Packet parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static proto.tibc.core.packet.v1.PacketOuterClass.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 proto.tibc.core.packet.v1.PacketOuterClass.Packet parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.packet.v1.PacketOuterClass.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(proto.tibc.core.packet.v1.PacketOuterClass.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 TIBC
*
*
* Protobuf type {@code tibc.core.packet.v1.Packet}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tibc.core.packet.v1.Packet)
proto.tibc.core.packet.v1.PacketOuterClass.PacketOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.packet.v1.PacketOuterClass.internal_static_tibc_core_packet_v1_Packet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.packet.v1.PacketOuterClass.internal_static_tibc_core_packet_v1_Packet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.packet.v1.PacketOuterClass.Packet.class, proto.tibc.core.packet.v1.PacketOuterClass.Packet.Builder.class);
}
// Construct using proto.tibc.core.packet.v1.PacketOuterClass.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;
port_ = "";
sourceChain_ = "";
destinationChain_ = "";
relayChain_ = "";
data_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return proto.tibc.core.packet.v1.PacketOuterClass.internal_static_tibc_core_packet_v1_Packet_descriptor;
}
@java.lang.Override
public proto.tibc.core.packet.v1.PacketOuterClass.Packet getDefaultInstanceForType() {
return proto.tibc.core.packet.v1.PacketOuterClass.Packet.getDefaultInstance();
}
@java.lang.Override
public proto.tibc.core.packet.v1.PacketOuterClass.Packet build() {
proto.tibc.core.packet.v1.PacketOuterClass.Packet result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public proto.tibc.core.packet.v1.PacketOuterClass.Packet buildPartial() {
proto.tibc.core.packet.v1.PacketOuterClass.Packet result = new proto.tibc.core.packet.v1.PacketOuterClass.Packet(this);
result.sequence_ = sequence_;
result.port_ = port_;
result.sourceChain_ = sourceChain_;
result.destinationChain_ = destinationChain_;
result.relayChain_ = relayChain_;
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 proto.tibc.core.packet.v1.PacketOuterClass.Packet) {
return mergeFrom((proto.tibc.core.packet.v1.PacketOuterClass.Packet)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(proto.tibc.core.packet.v1.PacketOuterClass.Packet other) {
if (other == proto.tibc.core.packet.v1.PacketOuterClass.Packet.getDefaultInstance()) return this;
if (other.getSequence() != 0L) {
setSequence(other.getSequence());
}
if (!other.getPort().isEmpty()) {
port_ = other.port_;
onChanged();
}
if (!other.getSourceChain().isEmpty()) {
sourceChain_ = other.sourceChain_;
onChanged();
}
if (!other.getDestinationChain().isEmpty()) {
destinationChain_ = other.destinationChain_;
onChanged();
}
if (!other.getRelayChain().isEmpty()) {
relayChain_ = other.relayChain_;
onChanged();
}
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 {
proto.tibc.core.packet.v1.PacketOuterClass.Packet parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (proto.tibc.core.packet.v1.PacketOuterClass.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 port_ = "";
/**
*
* identifies the port on the sending chain and destination chain.
*
*
* string port = 2;
* @return The port.
*/
public java.lang.String getPort() {
java.lang.Object ref = port_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
port_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* identifies the port on the sending chain and destination chain.
*
*
* string port = 2;
* @return The bytes for port.
*/
public com.google.protobuf.ByteString
getPortBytes() {
java.lang.Object ref = port_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
port_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* identifies the port on the sending chain and destination chain.
*
*
* string port = 2;
* @param value The port to set.
* @return This builder for chaining.
*/
public Builder setPort(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
port_ = value;
onChanged();
return this;
}
/**
*
* identifies the port on the sending chain and destination chain.
*
*
* string port = 2;
* @return This builder for chaining.
*/
public Builder clearPort() {
port_ = getDefaultInstance().getPort();
onChanged();
return this;
}
/**
*
* identifies the port on the sending chain and destination chain.
*
*
* string port = 2;
* @param value The bytes for port to set.
* @return This builder for chaining.
*/
public Builder setPortBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
port_ = value;
onChanged();
return this;
}
private java.lang.Object sourceChain_ = "";
/**
*
* identifies the chain id of the sending chain.
*
*
* string source_chain = 3 [(.gogoproto.moretags) = "yaml:\"source_chain\""];
* @return The sourceChain.
*/
public java.lang.String getSourceChain() {
java.lang.Object ref = sourceChain_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sourceChain_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* identifies the chain id of the sending chain.
*
*
* string source_chain = 3 [(.gogoproto.moretags) = "yaml:\"source_chain\""];
* @return The bytes for sourceChain.
*/
public com.google.protobuf.ByteString
getSourceChainBytes() {
java.lang.Object ref = sourceChain_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sourceChain_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* identifies the chain id of the sending chain.
*
*
* string source_chain = 3 [(.gogoproto.moretags) = "yaml:\"source_chain\""];
* @param value The sourceChain to set.
* @return This builder for chaining.
*/
public Builder setSourceChain(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
sourceChain_ = value;
onChanged();
return this;
}
/**
*
* identifies the chain id of the sending chain.
*
*
* string source_chain = 3 [(.gogoproto.moretags) = "yaml:\"source_chain\""];
* @return This builder for chaining.
*/
public Builder clearSourceChain() {
sourceChain_ = getDefaultInstance().getSourceChain();
onChanged();
return this;
}
/**
*
* identifies the chain id of the sending chain.
*
*
* string source_chain = 3 [(.gogoproto.moretags) = "yaml:\"source_chain\""];
* @param value The bytes for sourceChain to set.
* @return This builder for chaining.
*/
public Builder setSourceChainBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
sourceChain_ = value;
onChanged();
return this;
}
private java.lang.Object destinationChain_ = "";
/**
*
* identifies the chain id of the receiving chain.
*
*
* string destination_chain = 4 [(.gogoproto.moretags) = "yaml:\"destination_port\""];
* @return The destinationChain.
*/
public java.lang.String getDestinationChain() {
java.lang.Object ref = destinationChain_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
destinationChain_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* identifies the chain id of the receiving chain.
*
*
* string destination_chain = 4 [(.gogoproto.moretags) = "yaml:\"destination_port\""];
* @return The bytes for destinationChain.
*/
public com.google.protobuf.ByteString
getDestinationChainBytes() {
java.lang.Object ref = destinationChain_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
destinationChain_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* identifies the chain id of the receiving chain.
*
*
* string destination_chain = 4 [(.gogoproto.moretags) = "yaml:\"destination_port\""];
* @param value The destinationChain to set.
* @return This builder for chaining.
*/
public Builder setDestinationChain(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
destinationChain_ = value;
onChanged();
return this;
}
/**
*
* identifies the chain id of the receiving chain.
*
*
* string destination_chain = 4 [(.gogoproto.moretags) = "yaml:\"destination_port\""];
* @return This builder for chaining.
*/
public Builder clearDestinationChain() {
destinationChain_ = getDefaultInstance().getDestinationChain();
onChanged();
return this;
}
/**
*
* identifies the chain id of the receiving chain.
*
*
* string destination_chain = 4 [(.gogoproto.moretags) = "yaml:\"destination_port\""];
* @param value The bytes for destinationChain to set.
* @return This builder for chaining.
*/
public Builder setDestinationChainBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
destinationChain_ = value;
onChanged();
return this;
}
private java.lang.Object relayChain_ = "";
/**
*
* identifies the chain id of the relay chain.
*
*
* string relay_chain = 5 [(.gogoproto.moretags) = "yaml:\"relay_chain\""];
* @return The relayChain.
*/
public java.lang.String getRelayChain() {
java.lang.Object ref = relayChain_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
relayChain_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* identifies the chain id of the relay chain.
*
*
* string relay_chain = 5 [(.gogoproto.moretags) = "yaml:\"relay_chain\""];
* @return The bytes for relayChain.
*/
public com.google.protobuf.ByteString
getRelayChainBytes() {
java.lang.Object ref = relayChain_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
relayChain_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* identifies the chain id of the relay chain.
*
*
* string relay_chain = 5 [(.gogoproto.moretags) = "yaml:\"relay_chain\""];
* @param value The relayChain to set.
* @return This builder for chaining.
*/
public Builder setRelayChain(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
relayChain_ = value;
onChanged();
return this;
}
/**
*
* identifies the chain id of the relay chain.
*
*
* string relay_chain = 5 [(.gogoproto.moretags) = "yaml:\"relay_chain\""];
* @return This builder for chaining.
*/
public Builder clearRelayChain() {
relayChain_ = getDefaultInstance().getRelayChain();
onChanged();
return this;
}
/**
*
* identifies the chain id of the relay chain.
*
*
* string relay_chain = 5 [(.gogoproto.moretags) = "yaml:\"relay_chain\""];
* @param value The bytes for relayChain to set.
* @return This builder for chaining.
*/
public Builder setRelayChainBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
relayChain_ = 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;
}
@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:tibc.core.packet.v1.Packet)
}
// @@protoc_insertion_point(class_scope:tibc.core.packet.v1.Packet)
private static final proto.tibc.core.packet.v1.PacketOuterClass.Packet DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new proto.tibc.core.packet.v1.PacketOuterClass.Packet();
}
public static proto.tibc.core.packet.v1.PacketOuterClass.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 proto.tibc.core.packet.v1.PacketOuterClass.Packet getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CleanPacketOrBuilder extends
// @@protoc_insertion_point(interface_extends:tibc.core.packet.v1.CleanPacket)
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 chain id of the sending chain.
*
*
* string source_chain = 3 [(.gogoproto.moretags) = "yaml:\"source_chain\""];
* @return The sourceChain.
*/
java.lang.String getSourceChain();
/**
*
* identifies the chain id of the sending chain.
*
*
* string source_chain = 3 [(.gogoproto.moretags) = "yaml:\"source_chain\""];
* @return The bytes for sourceChain.
*/
com.google.protobuf.ByteString
getSourceChainBytes();
/**
*
* identifies the chain id of the receiving chain.
*
*
* string destination_chain = 4 [(.gogoproto.moretags) = "yaml:\"destination_port\""];
* @return The destinationChain.
*/
java.lang.String getDestinationChain();
/**
*
* identifies the chain id of the receiving chain.
*
*
* string destination_chain = 4 [(.gogoproto.moretags) = "yaml:\"destination_port\""];
* @return The bytes for destinationChain.
*/
com.google.protobuf.ByteString
getDestinationChainBytes();
/**
*
* identifies the chain id of the relay chain.
*
*
* string relay_chain = 5 [(.gogoproto.moretags) = "yaml:\"relay_chain\""];
* @return The relayChain.
*/
java.lang.String getRelayChain();
/**
*
* identifies the chain id of the relay chain.
*
*
* string relay_chain = 5 [(.gogoproto.moretags) = "yaml:\"relay_chain\""];
* @return The bytes for relayChain.
*/
com.google.protobuf.ByteString
getRelayChainBytes();
}
/**
*
* CleanPacket defines a type that carries data across different chains through TIBC
*
*
* Protobuf type {@code tibc.core.packet.v1.CleanPacket}
*/
public static final class CleanPacket extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tibc.core.packet.v1.CleanPacket)
CleanPacketOrBuilder {
private static final long serialVersionUID = 0L;
// Use CleanPacket.newBuilder() to construct.
private CleanPacket(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CleanPacket() {
sourceChain_ = "";
destinationChain_ = "";
relayChain_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CleanPacket();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CleanPacket(
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 26: {
java.lang.String s = input.readStringRequireUtf8();
sourceChain_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
destinationChain_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
relayChain_ = 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 proto.tibc.core.packet.v1.PacketOuterClass.internal_static_tibc_core_packet_v1_CleanPacket_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.packet.v1.PacketOuterClass.internal_static_tibc_core_packet_v1_CleanPacket_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket.class, proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket.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_CHAIN_FIELD_NUMBER = 3;
private volatile java.lang.Object sourceChain_;
/**
*
* identifies the chain id of the sending chain.
*
*
* string source_chain = 3 [(.gogoproto.moretags) = "yaml:\"source_chain\""];
* @return The sourceChain.
*/
@java.lang.Override
public java.lang.String getSourceChain() {
java.lang.Object ref = sourceChain_;
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();
sourceChain_ = s;
return s;
}
}
/**
*
* identifies the chain id of the sending chain.
*
*
* string source_chain = 3 [(.gogoproto.moretags) = "yaml:\"source_chain\""];
* @return The bytes for sourceChain.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSourceChainBytes() {
java.lang.Object ref = sourceChain_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sourceChain_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESTINATION_CHAIN_FIELD_NUMBER = 4;
private volatile java.lang.Object destinationChain_;
/**
*
* identifies the chain id of the receiving chain.
*
*
* string destination_chain = 4 [(.gogoproto.moretags) = "yaml:\"destination_port\""];
* @return The destinationChain.
*/
@java.lang.Override
public java.lang.String getDestinationChain() {
java.lang.Object ref = destinationChain_;
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();
destinationChain_ = s;
return s;
}
}
/**
*
* identifies the chain id of the receiving chain.
*
*
* string destination_chain = 4 [(.gogoproto.moretags) = "yaml:\"destination_port\""];
* @return The bytes for destinationChain.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDestinationChainBytes() {
java.lang.Object ref = destinationChain_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
destinationChain_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RELAY_CHAIN_FIELD_NUMBER = 5;
private volatile java.lang.Object relayChain_;
/**
*
* identifies the chain id of the relay chain.
*
*
* string relay_chain = 5 [(.gogoproto.moretags) = "yaml:\"relay_chain\""];
* @return The relayChain.
*/
@java.lang.Override
public java.lang.String getRelayChain() {
java.lang.Object ref = relayChain_;
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();
relayChain_ = s;
return s;
}
}
/**
*
* identifies the chain id of the relay chain.
*
*
* string relay_chain = 5 [(.gogoproto.moretags) = "yaml:\"relay_chain\""];
* @return The bytes for relayChain.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRelayChainBytes() {
java.lang.Object ref = relayChain_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
relayChain_ = 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 (sequence_ != 0L) {
output.writeUInt64(1, sequence_);
}
if (!getSourceChainBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sourceChain_);
}
if (!getDestinationChainBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, destinationChain_);
}
if (!getRelayChainBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, relayChain_);
}
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 (!getSourceChainBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sourceChain_);
}
if (!getDestinationChainBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, destinationChain_);
}
if (!getRelayChainBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, relayChain_);
}
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 proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket)) {
return super.equals(obj);
}
proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket other = (proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket) obj;
if (getSequence()
!= other.getSequence()) return false;
if (!getSourceChain()
.equals(other.getSourceChain())) return false;
if (!getDestinationChain()
.equals(other.getDestinationChain())) return false;
if (!getRelayChain()
.equals(other.getRelayChain())) 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_CHAIN_FIELD_NUMBER;
hash = (53 * hash) + getSourceChain().hashCode();
hash = (37 * hash) + DESTINATION_CHAIN_FIELD_NUMBER;
hash = (53 * hash) + getDestinationChain().hashCode();
hash = (37 * hash) + RELAY_CHAIN_FIELD_NUMBER;
hash = (53 * hash) + getRelayChain().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket 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 proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket 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 proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket 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(proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket 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;
}
/**
*
* CleanPacket defines a type that carries data across different chains through TIBC
*
*
* Protobuf type {@code tibc.core.packet.v1.CleanPacket}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tibc.core.packet.v1.CleanPacket)
proto.tibc.core.packet.v1.PacketOuterClass.CleanPacketOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.packet.v1.PacketOuterClass.internal_static_tibc_core_packet_v1_CleanPacket_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.packet.v1.PacketOuterClass.internal_static_tibc_core_packet_v1_CleanPacket_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket.class, proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket.Builder.class);
}
// Construct using proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket.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;
sourceChain_ = "";
destinationChain_ = "";
relayChain_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return proto.tibc.core.packet.v1.PacketOuterClass.internal_static_tibc_core_packet_v1_CleanPacket_descriptor;
}
@java.lang.Override
public proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket getDefaultInstanceForType() {
return proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket.getDefaultInstance();
}
@java.lang.Override
public proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket build() {
proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket buildPartial() {
proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket result = new proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket(this);
result.sequence_ = sequence_;
result.sourceChain_ = sourceChain_;
result.destinationChain_ = destinationChain_;
result.relayChain_ = relayChain_;
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 proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket) {
return mergeFrom((proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket other) {
if (other == proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket.getDefaultInstance()) return this;
if (other.getSequence() != 0L) {
setSequence(other.getSequence());
}
if (!other.getSourceChain().isEmpty()) {
sourceChain_ = other.sourceChain_;
onChanged();
}
if (!other.getDestinationChain().isEmpty()) {
destinationChain_ = other.destinationChain_;
onChanged();
}
if (!other.getRelayChain().isEmpty()) {
relayChain_ = other.relayChain_;
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 {
proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket) 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 sourceChain_ = "";
/**
*
* identifies the chain id of the sending chain.
*
*
* string source_chain = 3 [(.gogoproto.moretags) = "yaml:\"source_chain\""];
* @return The sourceChain.
*/
public java.lang.String getSourceChain() {
java.lang.Object ref = sourceChain_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sourceChain_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* identifies the chain id of the sending chain.
*
*
* string source_chain = 3 [(.gogoproto.moretags) = "yaml:\"source_chain\""];
* @return The bytes for sourceChain.
*/
public com.google.protobuf.ByteString
getSourceChainBytes() {
java.lang.Object ref = sourceChain_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sourceChain_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* identifies the chain id of the sending chain.
*
*
* string source_chain = 3 [(.gogoproto.moretags) = "yaml:\"source_chain\""];
* @param value The sourceChain to set.
* @return This builder for chaining.
*/
public Builder setSourceChain(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
sourceChain_ = value;
onChanged();
return this;
}
/**
*
* identifies the chain id of the sending chain.
*
*
* string source_chain = 3 [(.gogoproto.moretags) = "yaml:\"source_chain\""];
* @return This builder for chaining.
*/
public Builder clearSourceChain() {
sourceChain_ = getDefaultInstance().getSourceChain();
onChanged();
return this;
}
/**
*
* identifies the chain id of the sending chain.
*
*
* string source_chain = 3 [(.gogoproto.moretags) = "yaml:\"source_chain\""];
* @param value The bytes for sourceChain to set.
* @return This builder for chaining.
*/
public Builder setSourceChainBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
sourceChain_ = value;
onChanged();
return this;
}
private java.lang.Object destinationChain_ = "";
/**
*
* identifies the chain id of the receiving chain.
*
*
* string destination_chain = 4 [(.gogoproto.moretags) = "yaml:\"destination_port\""];
* @return The destinationChain.
*/
public java.lang.String getDestinationChain() {
java.lang.Object ref = destinationChain_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
destinationChain_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* identifies the chain id of the receiving chain.
*
*
* string destination_chain = 4 [(.gogoproto.moretags) = "yaml:\"destination_port\""];
* @return The bytes for destinationChain.
*/
public com.google.protobuf.ByteString
getDestinationChainBytes() {
java.lang.Object ref = destinationChain_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
destinationChain_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* identifies the chain id of the receiving chain.
*
*
* string destination_chain = 4 [(.gogoproto.moretags) = "yaml:\"destination_port\""];
* @param value The destinationChain to set.
* @return This builder for chaining.
*/
public Builder setDestinationChain(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
destinationChain_ = value;
onChanged();
return this;
}
/**
*
* identifies the chain id of the receiving chain.
*
*
* string destination_chain = 4 [(.gogoproto.moretags) = "yaml:\"destination_port\""];
* @return This builder for chaining.
*/
public Builder clearDestinationChain() {
destinationChain_ = getDefaultInstance().getDestinationChain();
onChanged();
return this;
}
/**
*
* identifies the chain id of the receiving chain.
*
*
* string destination_chain = 4 [(.gogoproto.moretags) = "yaml:\"destination_port\""];
* @param value The bytes for destinationChain to set.
* @return This builder for chaining.
*/
public Builder setDestinationChainBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
destinationChain_ = value;
onChanged();
return this;
}
private java.lang.Object relayChain_ = "";
/**
*
* identifies the chain id of the relay chain.
*
*
* string relay_chain = 5 [(.gogoproto.moretags) = "yaml:\"relay_chain\""];
* @return The relayChain.
*/
public java.lang.String getRelayChain() {
java.lang.Object ref = relayChain_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
relayChain_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* identifies the chain id of the relay chain.
*
*
* string relay_chain = 5 [(.gogoproto.moretags) = "yaml:\"relay_chain\""];
* @return The bytes for relayChain.
*/
public com.google.protobuf.ByteString
getRelayChainBytes() {
java.lang.Object ref = relayChain_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
relayChain_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* identifies the chain id of the relay chain.
*
*
* string relay_chain = 5 [(.gogoproto.moretags) = "yaml:\"relay_chain\""];
* @param value The relayChain to set.
* @return This builder for chaining.
*/
public Builder setRelayChain(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
relayChain_ = value;
onChanged();
return this;
}
/**
*
* identifies the chain id of the relay chain.
*
*
* string relay_chain = 5 [(.gogoproto.moretags) = "yaml:\"relay_chain\""];
* @return This builder for chaining.
*/
public Builder clearRelayChain() {
relayChain_ = getDefaultInstance().getRelayChain();
onChanged();
return this;
}
/**
*
* identifies the chain id of the relay chain.
*
*
* string relay_chain = 5 [(.gogoproto.moretags) = "yaml:\"relay_chain\""];
* @param value The bytes for relayChain to set.
* @return This builder for chaining.
*/
public Builder setRelayChainBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
relayChain_ = 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:tibc.core.packet.v1.CleanPacket)
}
// @@protoc_insertion_point(class_scope:tibc.core.packet.v1.CleanPacket)
private static final proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket();
}
public static proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CleanPacket parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CleanPacket(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 proto.tibc.core.packet.v1.PacketOuterClass.CleanPacket getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PacketStateOrBuilder extends
// @@protoc_insertion_point(interface_extends:tibc.core.packet.v1.PacketState)
com.google.protobuf.MessageOrBuilder {
/**
*
* the sending chain identifier.
*
*
* string source_chain = 1 [(.gogoproto.moretags) = "yaml:\"source_chain\""];
* @return The sourceChain.
*/
java.lang.String getSourceChain();
/**
*
* the sending chain identifier.
*
*
* string source_chain = 1 [(.gogoproto.moretags) = "yaml:\"source_chain\""];
* @return The bytes for sourceChain.
*/
com.google.protobuf.ByteString
getSourceChainBytes();
/**
*
* the receiving chain identifier.
*
*
* string destination_chain = 2 [(.gogoproto.moretags) = "yaml:\"source_chain\""];
* @return The destinationChain.
*/
java.lang.String getDestinationChain();
/**
*
* the receiving chain identifier.
*
*
* string destination_chain = 2 [(.gogoproto.moretags) = "yaml:\"source_chain\""];
* @return The bytes for destinationChain.
*/
com.google.protobuf.ByteString
getDestinationChainBytes();
/**
*
* 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 tibc.core.packet.v1.PacketState}
*/
public static final class PacketState extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tibc.core.packet.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() {
sourceChain_ = "";
destinationChain_ = "";
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();
sourceChain_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
destinationChain_ = 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 proto.tibc.core.packet.v1.PacketOuterClass.internal_static_tibc_core_packet_v1_PacketState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.packet.v1.PacketOuterClass.internal_static_tibc_core_packet_v1_PacketState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.packet.v1.PacketOuterClass.PacketState.class, proto.tibc.core.packet.v1.PacketOuterClass.PacketState.Builder.class);
}
public static final int SOURCE_CHAIN_FIELD_NUMBER = 1;
private volatile java.lang.Object sourceChain_;
/**
*
* the sending chain identifier.
*
*
* string source_chain = 1 [(.gogoproto.moretags) = "yaml:\"source_chain\""];
* @return The sourceChain.
*/
@java.lang.Override
public java.lang.String getSourceChain() {
java.lang.Object ref = sourceChain_;
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();
sourceChain_ = s;
return s;
}
}
/**
*
* the sending chain identifier.
*
*
* string source_chain = 1 [(.gogoproto.moretags) = "yaml:\"source_chain\""];
* @return The bytes for sourceChain.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSourceChainBytes() {
java.lang.Object ref = sourceChain_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sourceChain_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESTINATION_CHAIN_FIELD_NUMBER = 2;
private volatile java.lang.Object destinationChain_;
/**
*
* the receiving chain identifier.
*
*
* string destination_chain = 2 [(.gogoproto.moretags) = "yaml:\"source_chain\""];
* @return The destinationChain.
*/
@java.lang.Override
public java.lang.String getDestinationChain() {
java.lang.Object ref = destinationChain_;
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();
destinationChain_ = s;
return s;
}
}
/**
*
* the receiving chain identifier.
*
*
* string destination_chain = 2 [(.gogoproto.moretags) = "yaml:\"source_chain\""];
* @return The bytes for destinationChain.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDestinationChainBytes() {
java.lang.Object ref = destinationChain_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
destinationChain_ = 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 (!getSourceChainBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceChain_);
}
if (!getDestinationChainBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, destinationChain_);
}
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 (!getSourceChainBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sourceChain_);
}
if (!getDestinationChainBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, destinationChain_);
}
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 proto.tibc.core.packet.v1.PacketOuterClass.PacketState)) {
return super.equals(obj);
}
proto.tibc.core.packet.v1.PacketOuterClass.PacketState other = (proto.tibc.core.packet.v1.PacketOuterClass.PacketState) obj;
if (!getSourceChain()
.equals(other.getSourceChain())) return false;
if (!getDestinationChain()
.equals(other.getDestinationChain())) 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) + SOURCE_CHAIN_FIELD_NUMBER;
hash = (53 * hash) + getSourceChain().hashCode();
hash = (37 * hash) + DESTINATION_CHAIN_FIELD_NUMBER;
hash = (53 * hash) + getDestinationChain().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 proto.tibc.core.packet.v1.PacketOuterClass.PacketState parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.packet.v1.PacketOuterClass.PacketState parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.packet.v1.PacketOuterClass.PacketState parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.packet.v1.PacketOuterClass.PacketState parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.packet.v1.PacketOuterClass.PacketState parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.packet.v1.PacketOuterClass.PacketState parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.packet.v1.PacketOuterClass.PacketState parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.packet.v1.PacketOuterClass.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 proto.tibc.core.packet.v1.PacketOuterClass.PacketState parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static proto.tibc.core.packet.v1.PacketOuterClass.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 proto.tibc.core.packet.v1.PacketOuterClass.PacketState parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.packet.v1.PacketOuterClass.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(proto.tibc.core.packet.v1.PacketOuterClass.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 tibc.core.packet.v1.PacketState}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tibc.core.packet.v1.PacketState)
proto.tibc.core.packet.v1.PacketOuterClass.PacketStateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.packet.v1.PacketOuterClass.internal_static_tibc_core_packet_v1_PacketState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.packet.v1.PacketOuterClass.internal_static_tibc_core_packet_v1_PacketState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.packet.v1.PacketOuterClass.PacketState.class, proto.tibc.core.packet.v1.PacketOuterClass.PacketState.Builder.class);
}
// Construct using proto.tibc.core.packet.v1.PacketOuterClass.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();
sourceChain_ = "";
destinationChain_ = "";
sequence_ = 0L;
data_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return proto.tibc.core.packet.v1.PacketOuterClass.internal_static_tibc_core_packet_v1_PacketState_descriptor;
}
@java.lang.Override
public proto.tibc.core.packet.v1.PacketOuterClass.PacketState getDefaultInstanceForType() {
return proto.tibc.core.packet.v1.PacketOuterClass.PacketState.getDefaultInstance();
}
@java.lang.Override
public proto.tibc.core.packet.v1.PacketOuterClass.PacketState build() {
proto.tibc.core.packet.v1.PacketOuterClass.PacketState result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public proto.tibc.core.packet.v1.PacketOuterClass.PacketState buildPartial() {
proto.tibc.core.packet.v1.PacketOuterClass.PacketState result = new proto.tibc.core.packet.v1.PacketOuterClass.PacketState(this);
result.sourceChain_ = sourceChain_;
result.destinationChain_ = destinationChain_;
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 proto.tibc.core.packet.v1.PacketOuterClass.PacketState) {
return mergeFrom((proto.tibc.core.packet.v1.PacketOuterClass.PacketState)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(proto.tibc.core.packet.v1.PacketOuterClass.PacketState other) {
if (other == proto.tibc.core.packet.v1.PacketOuterClass.PacketState.getDefaultInstance()) return this;
if (!other.getSourceChain().isEmpty()) {
sourceChain_ = other.sourceChain_;
onChanged();
}
if (!other.getDestinationChain().isEmpty()) {
destinationChain_ = other.destinationChain_;
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 {
proto.tibc.core.packet.v1.PacketOuterClass.PacketState parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (proto.tibc.core.packet.v1.PacketOuterClass.PacketState) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object sourceChain_ = "";
/**
*
* the sending chain identifier.
*
*
* string source_chain = 1 [(.gogoproto.moretags) = "yaml:\"source_chain\""];
* @return The sourceChain.
*/
public java.lang.String getSourceChain() {
java.lang.Object ref = sourceChain_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sourceChain_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* the sending chain identifier.
*
*
* string source_chain = 1 [(.gogoproto.moretags) = "yaml:\"source_chain\""];
* @return The bytes for sourceChain.
*/
public com.google.protobuf.ByteString
getSourceChainBytes() {
java.lang.Object ref = sourceChain_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sourceChain_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* the sending chain identifier.
*
*
* string source_chain = 1 [(.gogoproto.moretags) = "yaml:\"source_chain\""];
* @param value The sourceChain to set.
* @return This builder for chaining.
*/
public Builder setSourceChain(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
sourceChain_ = value;
onChanged();
return this;
}
/**
*
* the sending chain identifier.
*
*
* string source_chain = 1 [(.gogoproto.moretags) = "yaml:\"source_chain\""];
* @return This builder for chaining.
*/
public Builder clearSourceChain() {
sourceChain_ = getDefaultInstance().getSourceChain();
onChanged();
return this;
}
/**
*
* the sending chain identifier.
*
*
* string source_chain = 1 [(.gogoproto.moretags) = "yaml:\"source_chain\""];
* @param value The bytes for sourceChain to set.
* @return This builder for chaining.
*/
public Builder setSourceChainBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
sourceChain_ = value;
onChanged();
return this;
}
private java.lang.Object destinationChain_ = "";
/**
*
* the receiving chain identifier.
*
*
* string destination_chain = 2 [(.gogoproto.moretags) = "yaml:\"source_chain\""];
* @return The destinationChain.
*/
public java.lang.String getDestinationChain() {
java.lang.Object ref = destinationChain_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
destinationChain_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* the receiving chain identifier.
*
*
* string destination_chain = 2 [(.gogoproto.moretags) = "yaml:\"source_chain\""];
* @return The bytes for destinationChain.
*/
public com.google.protobuf.ByteString
getDestinationChainBytes() {
java.lang.Object ref = destinationChain_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
destinationChain_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* the receiving chain identifier.
*
*
* string destination_chain = 2 [(.gogoproto.moretags) = "yaml:\"source_chain\""];
* @param value The destinationChain to set.
* @return This builder for chaining.
*/
public Builder setDestinationChain(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
destinationChain_ = value;
onChanged();
return this;
}
/**
*
* the receiving chain identifier.
*
*
* string destination_chain = 2 [(.gogoproto.moretags) = "yaml:\"source_chain\""];
* @return This builder for chaining.
*/
public Builder clearDestinationChain() {
destinationChain_ = getDefaultInstance().getDestinationChain();
onChanged();
return this;
}
/**
*
* the receiving chain identifier.
*
*
* string destination_chain = 2 [(.gogoproto.moretags) = "yaml:\"source_chain\""];
* @param value The bytes for destinationChain to set.
* @return This builder for chaining.
*/
public Builder setDestinationChainBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
destinationChain_ = 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:tibc.core.packet.v1.PacketState)
}
// @@protoc_insertion_point(class_scope:tibc.core.packet.v1.PacketState)
private static final proto.tibc.core.packet.v1.PacketOuterClass.PacketState DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new proto.tibc.core.packet.v1.PacketOuterClass.PacketState();
}
public static proto.tibc.core.packet.v1.PacketOuterClass.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 proto.tibc.core.packet.v1.PacketOuterClass.PacketState getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AcknowledgementOrBuilder extends
// @@protoc_insertion_point(interface_extends:tibc.core.packet.v1.Acknowledgement)
com.google.protobuf.MessageOrBuilder {
/**
* bytes result = 21;
* @return The result.
*/
com.google.protobuf.ByteString getResult();
/**
* string error = 22;
* @return The error.
*/
java.lang.String getError();
/**
* string error = 22;
* @return The bytes for error.
*/
com.google.protobuf.ByteString
getErrorBytes();
public proto.tibc.core.packet.v1.PacketOuterClass.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 TICS:
* https://github.com/bianjieai/tics/tree/master/spec/tics-004-channel-and-packet-semantics#acknowledgement-envelope
*
*
* Protobuf type {@code tibc.core.packet.v1.Acknowledgement}
*/
public static final class Acknowledgement extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tibc.core.packet.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: {
responseCase_ = 21;
response_ = input.readBytes();
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 proto.tibc.core.packet.v1.PacketOuterClass.internal_static_tibc_core_packet_v1_Acknowledgement_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.packet.v1.PacketOuterClass.internal_static_tibc_core_packet_v1_Acknowledgement_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.packet.v1.PacketOuterClass.Acknowledgement.class, proto.tibc.core.packet.v1.PacketOuterClass.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 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 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 proto.tibc.core.packet.v1.PacketOuterClass.Acknowledgement)) {
return super.equals(obj);
}
proto.tibc.core.packet.v1.PacketOuterClass.Acknowledgement other = (proto.tibc.core.packet.v1.PacketOuterClass.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 proto.tibc.core.packet.v1.PacketOuterClass.Acknowledgement parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.packet.v1.PacketOuterClass.Acknowledgement parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.packet.v1.PacketOuterClass.Acknowledgement parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.packet.v1.PacketOuterClass.Acknowledgement parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.packet.v1.PacketOuterClass.Acknowledgement parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto.tibc.core.packet.v1.PacketOuterClass.Acknowledgement parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto.tibc.core.packet.v1.PacketOuterClass.Acknowledgement parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.packet.v1.PacketOuterClass.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 proto.tibc.core.packet.v1.PacketOuterClass.Acknowledgement parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static proto.tibc.core.packet.v1.PacketOuterClass.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 proto.tibc.core.packet.v1.PacketOuterClass.Acknowledgement parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static proto.tibc.core.packet.v1.PacketOuterClass.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(proto.tibc.core.packet.v1.PacketOuterClass.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 TICS:
* https://github.com/bianjieai/tics/tree/master/spec/tics-004-channel-and-packet-semantics#acknowledgement-envelope
*
*
* Protobuf type {@code tibc.core.packet.v1.Acknowledgement}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tibc.core.packet.v1.Acknowledgement)
proto.tibc.core.packet.v1.PacketOuterClass.AcknowledgementOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto.tibc.core.packet.v1.PacketOuterClass.internal_static_tibc_core_packet_v1_Acknowledgement_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto.tibc.core.packet.v1.PacketOuterClass.internal_static_tibc_core_packet_v1_Acknowledgement_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto.tibc.core.packet.v1.PacketOuterClass.Acknowledgement.class, proto.tibc.core.packet.v1.PacketOuterClass.Acknowledgement.Builder.class);
}
// Construct using proto.tibc.core.packet.v1.PacketOuterClass.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 proto.tibc.core.packet.v1.PacketOuterClass.internal_static_tibc_core_packet_v1_Acknowledgement_descriptor;
}
@java.lang.Override
public proto.tibc.core.packet.v1.PacketOuterClass.Acknowledgement getDefaultInstanceForType() {
return proto.tibc.core.packet.v1.PacketOuterClass.Acknowledgement.getDefaultInstance();
}
@java.lang.Override
public proto.tibc.core.packet.v1.PacketOuterClass.Acknowledgement build() {
proto.tibc.core.packet.v1.PacketOuterClass.Acknowledgement result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public proto.tibc.core.packet.v1.PacketOuterClass.Acknowledgement buildPartial() {
proto.tibc.core.packet.v1.PacketOuterClass.Acknowledgement result = new proto.tibc.core.packet.v1.PacketOuterClass.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 proto.tibc.core.packet.v1.PacketOuterClass.Acknowledgement) {
return mergeFrom((proto.tibc.core.packet.v1.PacketOuterClass.Acknowledgement)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(proto.tibc.core.packet.v1.PacketOuterClass.Acknowledgement other) {
if (other == proto.tibc.core.packet.v1.PacketOuterClass.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 {
proto.tibc.core.packet.v1.PacketOuterClass.Acknowledgement parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (proto.tibc.core.packet.v1.PacketOuterClass.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 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 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:tibc.core.packet.v1.Acknowledgement)
}
// @@protoc_insertion_point(class_scope:tibc.core.packet.v1.Acknowledgement)
private static final proto.tibc.core.packet.v1.PacketOuterClass.Acknowledgement DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new proto.tibc.core.packet.v1.PacketOuterClass.Acknowledgement();
}
public static proto.tibc.core.packet.v1.PacketOuterClass.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 proto.tibc.core.packet.v1.PacketOuterClass.Acknowledgement getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tibc_core_packet_v1_Packet_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tibc_core_packet_v1_Packet_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tibc_core_packet_v1_CleanPacket_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tibc_core_packet_v1_CleanPacket_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tibc_core_packet_v1_PacketState_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tibc_core_packet_v1_PacketState_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tibc_core_packet_v1_Acknowledgement_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tibc_core_packet_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 tibc/core/packet/v1/packet.proto\022\023tibc" +
".core.packet.v1\032\024gogoproto/gogo.proto\"\320\001" +
"\n\006Packet\022\020\n\010sequence\030\001 \001(\004\022\014\n\004port\030\002 \001(\t" +
"\022-\n\014source_chain\030\003 \001(\tB\027\362\336\037\023yaml:\"source" +
"_chain\"\0226\n\021destination_chain\030\004 \001(\tB\033\362\336\037\027" +
"yaml:\"destination_port\"\022+\n\013relay_chain\030\005" +
" \001(\tB\026\362\336\037\022yaml:\"relay_chain\"\022\014\n\004data\030\006 \001" +
"(\014:\004\210\240\037\000\"\271\001\n\013CleanPacket\022\020\n\010sequence\030\001 \001" +
"(\004\022-\n\014source_chain\030\003 \001(\tB\027\362\336\037\023yaml:\"sour" +
"ce_chain\"\0226\n\021destination_chain\030\004 \001(\tB\033\362\336" +
"\037\027yaml:\"destination_port\"\022+\n\013relay_chain" +
"\030\005 \001(\tB\026\362\336\037\022yaml:\"relay_chain\":\004\210\240\037\000\"\226\001\n" +
"\013PacketState\022-\n\014source_chain\030\001 \001(\tB\027\362\336\037\023" +
"yaml:\"source_chain\"\0222\n\021destination_chain" +
"\030\002 \001(\tB\027\362\336\037\023yaml:\"source_chain\"\022\020\n\010seque" +
"nce\030\003 \001(\004\022\014\n\004data\030\004 \001(\014:\004\210\240\037\000\"@\n\017Acknowl" +
"edgement\022\020\n\006result\030\025 \001(\014H\000\022\017\n\005error\030\026 \001(" +
"\tH\000B\n\n\010responseB\033\n\031proto.tibc.core.packe" +
"t.v1b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.GoGoProtos.getDescriptor(),
});
internal_static_tibc_core_packet_v1_Packet_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_tibc_core_packet_v1_Packet_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tibc_core_packet_v1_Packet_descriptor,
new java.lang.String[] { "Sequence", "Port", "SourceChain", "DestinationChain", "RelayChain", "Data", });
internal_static_tibc_core_packet_v1_CleanPacket_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_tibc_core_packet_v1_CleanPacket_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tibc_core_packet_v1_CleanPacket_descriptor,
new java.lang.String[] { "Sequence", "SourceChain", "DestinationChain", "RelayChain", });
internal_static_tibc_core_packet_v1_PacketState_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_tibc_core_packet_v1_PacketState_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tibc_core_packet_v1_PacketState_descriptor,
new java.lang.String[] { "SourceChain", "DestinationChain", "Sequence", "Data", });
internal_static_tibc_core_packet_v1_Acknowledgement_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_tibc_core_packet_v1_Acknowledgement_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tibc_core_packet_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.goprotoGetters);
registry.add(com.google.protobuf.GoGoProtos.moretags);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.protobuf.GoGoProtos.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}