
ibc.applications.interchain_accounts.v1.Packet Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ibc/applications/interchain_accounts/v1/packet.proto
package ibc.applications.interchain_accounts.v1;
public final class Packet {
private Packet() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
*
* Type defines a classification of message issued from a controller chain to its associated interchain accounts
* host
*
*
* Protobuf enum {@code ibc.applications.interchain_accounts.v1.Type}
*/
public enum Type
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Default zero value enumeration
*
*
* TYPE_UNSPECIFIED = 0 [(.gogoproto.enumvalue_customname) = "UNSPECIFIED"];
*/
TYPE_UNSPECIFIED(0),
/**
*
* Execute a transaction on an interchain accounts host chain
*
*
* TYPE_EXECUTE_TX = 1 [(.gogoproto.enumvalue_customname) = "EXECUTE_TX"];
*/
TYPE_EXECUTE_TX(1),
UNRECOGNIZED(-1),
;
/**
*
* Default zero value enumeration
*
*
* TYPE_UNSPECIFIED = 0 [(.gogoproto.enumvalue_customname) = "UNSPECIFIED"];
*/
public static final int TYPE_UNSPECIFIED_VALUE = 0;
/**
*
* Execute a transaction on an interchain accounts host chain
*
*
* TYPE_EXECUTE_TX = 1 [(.gogoproto.enumvalue_customname) = "EXECUTE_TX"];
*/
public static final int TYPE_EXECUTE_TX_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Type valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Type forNumber(int value) {
switch (value) {
case 0: return TYPE_UNSPECIFIED;
case 1: return TYPE_EXECUTE_TX;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Type> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Type findValueByNumber(int number) {
return Type.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return ibc.applications.interchain_accounts.v1.Packet.getDescriptor().getEnumTypes().get(0);
}
private static final Type[] VALUES = values();
public static Type valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Type(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:ibc.applications.interchain_accounts.v1.Type)
}
public interface InterchainAccountPacketDataOrBuilder extends
// @@protoc_insertion_point(interface_extends:ibc.applications.interchain_accounts.v1.InterchainAccountPacketData)
com.google.protobuf.MessageOrBuilder {
/**
* .ibc.applications.interchain_accounts.v1.Type type = 1;
* @return The enum numeric value on the wire for type.
*/
int getTypeValue();
/**
* .ibc.applications.interchain_accounts.v1.Type type = 1;
* @return The type.
*/
ibc.applications.interchain_accounts.v1.Packet.Type getType();
/**
* bytes data = 2;
* @return The data.
*/
com.google.protobuf.ByteString getData();
/**
* string memo = 3;
* @return The memo.
*/
java.lang.String getMemo();
/**
* string memo = 3;
* @return The bytes for memo.
*/
com.google.protobuf.ByteString
getMemoBytes();
}
/**
*
* InterchainAccountPacketData is comprised of a raw transaction, type of transaction and optional memo field.
*
*
* Protobuf type {@code ibc.applications.interchain_accounts.v1.InterchainAccountPacketData}
*/
public static final class InterchainAccountPacketData extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ibc.applications.interchain_accounts.v1.InterchainAccountPacketData)
InterchainAccountPacketDataOrBuilder {
private static final long serialVersionUID = 0L;
// Use InterchainAccountPacketData.newBuilder() to construct.
private InterchainAccountPacketData(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private InterchainAccountPacketData() {
type_ = 0;
data_ = com.google.protobuf.ByteString.EMPTY;
memo_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new InterchainAccountPacketData();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private InterchainAccountPacketData(
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: {
int rawValue = input.readEnum();
type_ = rawValue;
break;
}
case 18: {
data_ = input.readBytes();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
memo_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.applications.interchain_accounts.v1.Packet.internal_static_ibc_applications_interchain_accounts_v1_InterchainAccountPacketData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.applications.interchain_accounts.v1.Packet.internal_static_ibc_applications_interchain_accounts_v1_InterchainAccountPacketData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData.class, ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData.Builder.class);
}
public static final int TYPE_FIELD_NUMBER = 1;
private int type_;
/**
* .ibc.applications.interchain_accounts.v1.Type type = 1;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .ibc.applications.interchain_accounts.v1.Type type = 1;
* @return The type.
*/
@java.lang.Override public ibc.applications.interchain_accounts.v1.Packet.Type getType() {
@SuppressWarnings("deprecation")
ibc.applications.interchain_accounts.v1.Packet.Type result = ibc.applications.interchain_accounts.v1.Packet.Type.valueOf(type_);
return result == null ? ibc.applications.interchain_accounts.v1.Packet.Type.UNRECOGNIZED : result;
}
public static final int DATA_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString data_;
/**
* bytes data = 2;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
public static final int MEMO_FIELD_NUMBER = 3;
private volatile java.lang.Object memo_;
/**
* string memo = 3;
* @return The memo.
*/
@java.lang.Override
public java.lang.String getMemo() {
java.lang.Object ref = memo_;
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();
memo_ = s;
return s;
}
}
/**
* string memo = 3;
* @return The bytes for memo.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMemoBytes() {
java.lang.Object ref = memo_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
memo_ = 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 (type_ != ibc.applications.interchain_accounts.v1.Packet.Type.TYPE_UNSPECIFIED.getNumber()) {
output.writeEnum(1, type_);
}
if (!data_.isEmpty()) {
output.writeBytes(2, data_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memo_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, memo_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (type_ != ibc.applications.interchain_accounts.v1.Packet.Type.TYPE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, type_);
}
if (!data_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, data_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memo_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, memo_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData)) {
return super.equals(obj);
}
ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData other = (ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData) obj;
if (type_ != other.type_) return false;
if (!getData()
.equals(other.getData())) return false;
if (!getMemo()
.equals(other.getMemo())) 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) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
hash = (37 * hash) + MEMO_FIELD_NUMBER;
hash = (53 * hash) + getMemo().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData 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;
}
/**
*
* InterchainAccountPacketData is comprised of a raw transaction, type of transaction and optional memo field.
*
*
* Protobuf type {@code ibc.applications.interchain_accounts.v1.InterchainAccountPacketData}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ibc.applications.interchain_accounts.v1.InterchainAccountPacketData)
ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketDataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.applications.interchain_accounts.v1.Packet.internal_static_ibc_applications_interchain_accounts_v1_InterchainAccountPacketData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.applications.interchain_accounts.v1.Packet.internal_static_ibc_applications_interchain_accounts_v1_InterchainAccountPacketData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData.class, ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData.Builder.class);
}
// Construct using ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData.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();
type_ = 0;
data_ = com.google.protobuf.ByteString.EMPTY;
memo_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ibc.applications.interchain_accounts.v1.Packet.internal_static_ibc_applications_interchain_accounts_v1_InterchainAccountPacketData_descriptor;
}
@java.lang.Override
public ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData getDefaultInstanceForType() {
return ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData.getDefaultInstance();
}
@java.lang.Override
public ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData build() {
ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData buildPartial() {
ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData result = new ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData(this);
result.type_ = type_;
result.data_ = data_;
result.memo_ = memo_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData) {
return mergeFrom((ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData other) {
if (other == ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData.getDefaultInstance()) return this;
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
setData(other.getData());
}
if (!other.getMemo().isEmpty()) {
memo_ = other.memo_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int type_ = 0;
/**
* .ibc.applications.interchain_accounts.v1.Type type = 1;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .ibc.applications.interchain_accounts.v1.Type type = 1;
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
onChanged();
return this;
}
/**
* .ibc.applications.interchain_accounts.v1.Type type = 1;
* @return The type.
*/
@java.lang.Override
public ibc.applications.interchain_accounts.v1.Packet.Type getType() {
@SuppressWarnings("deprecation")
ibc.applications.interchain_accounts.v1.Packet.Type result = ibc.applications.interchain_accounts.v1.Packet.Type.valueOf(type_);
return result == null ? ibc.applications.interchain_accounts.v1.Packet.Type.UNRECOGNIZED : result;
}
/**
* .ibc.applications.interchain_accounts.v1.Type type = 1;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(ibc.applications.interchain_accounts.v1.Packet.Type value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
* .ibc.applications.interchain_accounts.v1.Type type = 1;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes data = 2;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
* bytes data = 2;
* @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;
}
/**
* bytes data = 2;
* @return This builder for chaining.
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
private java.lang.Object memo_ = "";
/**
* string memo = 3;
* @return The memo.
*/
public java.lang.String getMemo() {
java.lang.Object ref = memo_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
memo_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string memo = 3;
* @return The bytes for memo.
*/
public com.google.protobuf.ByteString
getMemoBytes() {
java.lang.Object ref = memo_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
memo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string memo = 3;
* @param value The memo to set.
* @return This builder for chaining.
*/
public Builder setMemo(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
memo_ = value;
onChanged();
return this;
}
/**
* string memo = 3;
* @return This builder for chaining.
*/
public Builder clearMemo() {
memo_ = getDefaultInstance().getMemo();
onChanged();
return this;
}
/**
* string memo = 3;
* @param value The bytes for memo to set.
* @return This builder for chaining.
*/
public Builder setMemoBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
memo_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:ibc.applications.interchain_accounts.v1.InterchainAccountPacketData)
}
// @@protoc_insertion_point(class_scope:ibc.applications.interchain_accounts.v1.InterchainAccountPacketData)
private static final ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData();
}
public static ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public InterchainAccountPacketData parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new InterchainAccountPacketData(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public ibc.applications.interchain_accounts.v1.Packet.InterchainAccountPacketData getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CosmosTxOrBuilder extends
// @@protoc_insertion_point(interface_extends:ibc.applications.interchain_accounts.v1.CosmosTx)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .google.protobuf.Any messages = 1;
*/
java.util.List
getMessagesList();
/**
* repeated .google.protobuf.Any messages = 1;
*/
com.google.protobuf.Any getMessages(int index);
/**
* repeated .google.protobuf.Any messages = 1;
*/
int getMessagesCount();
/**
* repeated .google.protobuf.Any messages = 1;
*/
java.util.List extends com.google.protobuf.AnyOrBuilder>
getMessagesOrBuilderList();
/**
* repeated .google.protobuf.Any messages = 1;
*/
com.google.protobuf.AnyOrBuilder getMessagesOrBuilder(
int index);
}
/**
*
* CosmosTx contains a list of sdk.Msg's. It should be used when sending transactions to an SDK host chain.
*
*
* Protobuf type {@code ibc.applications.interchain_accounts.v1.CosmosTx}
*/
public static final class CosmosTx extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ibc.applications.interchain_accounts.v1.CosmosTx)
CosmosTxOrBuilder {
private static final long serialVersionUID = 0L;
// Use CosmosTx.newBuilder() to construct.
private CosmosTx(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CosmosTx() {
messages_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CosmosTx();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CosmosTx(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
messages_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
messages_.add(
input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
messages_ = java.util.Collections.unmodifiableList(messages_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.applications.interchain_accounts.v1.Packet.internal_static_ibc_applications_interchain_accounts_v1_CosmosTx_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.applications.interchain_accounts.v1.Packet.internal_static_ibc_applications_interchain_accounts_v1_CosmosTx_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.applications.interchain_accounts.v1.Packet.CosmosTx.class, ibc.applications.interchain_accounts.v1.Packet.CosmosTx.Builder.class);
}
public static final int MESSAGES_FIELD_NUMBER = 1;
private java.util.List messages_;
/**
* repeated .google.protobuf.Any messages = 1;
*/
@java.lang.Override
public java.util.List getMessagesList() {
return messages_;
}
/**
* repeated .google.protobuf.Any messages = 1;
*/
@java.lang.Override
public java.util.List extends com.google.protobuf.AnyOrBuilder>
getMessagesOrBuilderList() {
return messages_;
}
/**
* repeated .google.protobuf.Any messages = 1;
*/
@java.lang.Override
public int getMessagesCount() {
return messages_.size();
}
/**
* repeated .google.protobuf.Any messages = 1;
*/
@java.lang.Override
public com.google.protobuf.Any getMessages(int index) {
return messages_.get(index);
}
/**
* repeated .google.protobuf.Any messages = 1;
*/
@java.lang.Override
public com.google.protobuf.AnyOrBuilder getMessagesOrBuilder(
int index) {
return messages_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < messages_.size(); i++) {
output.writeMessage(1, messages_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < messages_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, messages_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ibc.applications.interchain_accounts.v1.Packet.CosmosTx)) {
return super.equals(obj);
}
ibc.applications.interchain_accounts.v1.Packet.CosmosTx other = (ibc.applications.interchain_accounts.v1.Packet.CosmosTx) obj;
if (!getMessagesList()
.equals(other.getMessagesList())) 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();
if (getMessagesCount() > 0) {
hash = (37 * hash) + MESSAGES_FIELD_NUMBER;
hash = (53 * hash) + getMessagesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ibc.applications.interchain_accounts.v1.Packet.CosmosTx parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.applications.interchain_accounts.v1.Packet.CosmosTx parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.applications.interchain_accounts.v1.Packet.CosmosTx parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.applications.interchain_accounts.v1.Packet.CosmosTx parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.applications.interchain_accounts.v1.Packet.CosmosTx parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ibc.applications.interchain_accounts.v1.Packet.CosmosTx parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ibc.applications.interchain_accounts.v1.Packet.CosmosTx parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.applications.interchain_accounts.v1.Packet.CosmosTx parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static ibc.applications.interchain_accounts.v1.Packet.CosmosTx parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ibc.applications.interchain_accounts.v1.Packet.CosmosTx parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static ibc.applications.interchain_accounts.v1.Packet.CosmosTx parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ibc.applications.interchain_accounts.v1.Packet.CosmosTx parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ibc.applications.interchain_accounts.v1.Packet.CosmosTx 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;
}
/**
*
* CosmosTx contains a list of sdk.Msg's. It should be used when sending transactions to an SDK host chain.
*
*
* Protobuf type {@code ibc.applications.interchain_accounts.v1.CosmosTx}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ibc.applications.interchain_accounts.v1.CosmosTx)
ibc.applications.interchain_accounts.v1.Packet.CosmosTxOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ibc.applications.interchain_accounts.v1.Packet.internal_static_ibc_applications_interchain_accounts_v1_CosmosTx_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ibc.applications.interchain_accounts.v1.Packet.internal_static_ibc_applications_interchain_accounts_v1_CosmosTx_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ibc.applications.interchain_accounts.v1.Packet.CosmosTx.class, ibc.applications.interchain_accounts.v1.Packet.CosmosTx.Builder.class);
}
// Construct using ibc.applications.interchain_accounts.v1.Packet.CosmosTx.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMessagesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (messagesBuilder_ == null) {
messages_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
messagesBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ibc.applications.interchain_accounts.v1.Packet.internal_static_ibc_applications_interchain_accounts_v1_CosmosTx_descriptor;
}
@java.lang.Override
public ibc.applications.interchain_accounts.v1.Packet.CosmosTx getDefaultInstanceForType() {
return ibc.applications.interchain_accounts.v1.Packet.CosmosTx.getDefaultInstance();
}
@java.lang.Override
public ibc.applications.interchain_accounts.v1.Packet.CosmosTx build() {
ibc.applications.interchain_accounts.v1.Packet.CosmosTx result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ibc.applications.interchain_accounts.v1.Packet.CosmosTx buildPartial() {
ibc.applications.interchain_accounts.v1.Packet.CosmosTx result = new ibc.applications.interchain_accounts.v1.Packet.CosmosTx(this);
int from_bitField0_ = bitField0_;
if (messagesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
messages_ = java.util.Collections.unmodifiableList(messages_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.messages_ = messages_;
} else {
result.messages_ = messagesBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ibc.applications.interchain_accounts.v1.Packet.CosmosTx) {
return mergeFrom((ibc.applications.interchain_accounts.v1.Packet.CosmosTx)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ibc.applications.interchain_accounts.v1.Packet.CosmosTx other) {
if (other == ibc.applications.interchain_accounts.v1.Packet.CosmosTx.getDefaultInstance()) return this;
if (messagesBuilder_ == null) {
if (!other.messages_.isEmpty()) {
if (messages_.isEmpty()) {
messages_ = other.messages_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureMessagesIsMutable();
messages_.addAll(other.messages_);
}
onChanged();
}
} else {
if (!other.messages_.isEmpty()) {
if (messagesBuilder_.isEmpty()) {
messagesBuilder_.dispose();
messagesBuilder_ = null;
messages_ = other.messages_;
bitField0_ = (bitField0_ & ~0x00000001);
messagesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getMessagesFieldBuilder() : null;
} else {
messagesBuilder_.addAllMessages(other.messages_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ibc.applications.interchain_accounts.v1.Packet.CosmosTx parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ibc.applications.interchain_accounts.v1.Packet.CosmosTx) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List messages_ =
java.util.Collections.emptyList();
private void ensureMessagesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
messages_ = new java.util.ArrayList(messages_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> messagesBuilder_;
/**
* repeated .google.protobuf.Any messages = 1;
*/
public java.util.List getMessagesList() {
if (messagesBuilder_ == null) {
return java.util.Collections.unmodifiableList(messages_);
} else {
return messagesBuilder_.getMessageList();
}
}
/**
* repeated .google.protobuf.Any messages = 1;
*/
public int getMessagesCount() {
if (messagesBuilder_ == null) {
return messages_.size();
} else {
return messagesBuilder_.getCount();
}
}
/**
* repeated .google.protobuf.Any messages = 1;
*/
public com.google.protobuf.Any getMessages(int index) {
if (messagesBuilder_ == null) {
return messages_.get(index);
} else {
return messagesBuilder_.getMessage(index);
}
}
/**
* repeated .google.protobuf.Any messages = 1;
*/
public Builder setMessages(
int index, com.google.protobuf.Any value) {
if (messagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMessagesIsMutable();
messages_.set(index, value);
onChanged();
} else {
messagesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .google.protobuf.Any messages = 1;
*/
public Builder setMessages(
int index, com.google.protobuf.Any.Builder builderForValue) {
if (messagesBuilder_ == null) {
ensureMessagesIsMutable();
messages_.set(index, builderForValue.build());
onChanged();
} else {
messagesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .google.protobuf.Any messages = 1;
*/
public Builder addMessages(com.google.protobuf.Any value) {
if (messagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMessagesIsMutable();
messages_.add(value);
onChanged();
} else {
messagesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .google.protobuf.Any messages = 1;
*/
public Builder addMessages(
int index, com.google.protobuf.Any value) {
if (messagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMessagesIsMutable();
messages_.add(index, value);
onChanged();
} else {
messagesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .google.protobuf.Any messages = 1;
*/
public Builder addMessages(
com.google.protobuf.Any.Builder builderForValue) {
if (messagesBuilder_ == null) {
ensureMessagesIsMutable();
messages_.add(builderForValue.build());
onChanged();
} else {
messagesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .google.protobuf.Any messages = 1;
*/
public Builder addMessages(
int index, com.google.protobuf.Any.Builder builderForValue) {
if (messagesBuilder_ == null) {
ensureMessagesIsMutable();
messages_.add(index, builderForValue.build());
onChanged();
} else {
messagesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .google.protobuf.Any messages = 1;
*/
public Builder addAllMessages(
java.lang.Iterable extends com.google.protobuf.Any> values) {
if (messagesBuilder_ == null) {
ensureMessagesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, messages_);
onChanged();
} else {
messagesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .google.protobuf.Any messages = 1;
*/
public Builder clearMessages() {
if (messagesBuilder_ == null) {
messages_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
messagesBuilder_.clear();
}
return this;
}
/**
* repeated .google.protobuf.Any messages = 1;
*/
public Builder removeMessages(int index) {
if (messagesBuilder_ == null) {
ensureMessagesIsMutable();
messages_.remove(index);
onChanged();
} else {
messagesBuilder_.remove(index);
}
return this;
}
/**
* repeated .google.protobuf.Any messages = 1;
*/
public com.google.protobuf.Any.Builder getMessagesBuilder(
int index) {
return getMessagesFieldBuilder().getBuilder(index);
}
/**
* repeated .google.protobuf.Any messages = 1;
*/
public com.google.protobuf.AnyOrBuilder getMessagesOrBuilder(
int index) {
if (messagesBuilder_ == null) {
return messages_.get(index); } else {
return messagesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .google.protobuf.Any messages = 1;
*/
public java.util.List extends com.google.protobuf.AnyOrBuilder>
getMessagesOrBuilderList() {
if (messagesBuilder_ != null) {
return messagesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(messages_);
}
}
/**
* repeated .google.protobuf.Any messages = 1;
*/
public com.google.protobuf.Any.Builder addMessagesBuilder() {
return getMessagesFieldBuilder().addBuilder(
com.google.protobuf.Any.getDefaultInstance());
}
/**
* repeated .google.protobuf.Any messages = 1;
*/
public com.google.protobuf.Any.Builder addMessagesBuilder(
int index) {
return getMessagesFieldBuilder().addBuilder(
index, com.google.protobuf.Any.getDefaultInstance());
}
/**
* repeated .google.protobuf.Any messages = 1;
*/
public java.util.List
getMessagesBuilderList() {
return getMessagesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getMessagesFieldBuilder() {
if (messagesBuilder_ == null) {
messagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
messages_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
messages_ = null;
}
return messagesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:ibc.applications.interchain_accounts.v1.CosmosTx)
}
// @@protoc_insertion_point(class_scope:ibc.applications.interchain_accounts.v1.CosmosTx)
private static final ibc.applications.interchain_accounts.v1.Packet.CosmosTx DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ibc.applications.interchain_accounts.v1.Packet.CosmosTx();
}
public static ibc.applications.interchain_accounts.v1.Packet.CosmosTx getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CosmosTx parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CosmosTx(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public ibc.applications.interchain_accounts.v1.Packet.CosmosTx getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ibc_applications_interchain_accounts_v1_InterchainAccountPacketData_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ibc_applications_interchain_accounts_v1_InterchainAccountPacketData_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ibc_applications_interchain_accounts_v1_CosmosTx_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ibc_applications_interchain_accounts_v1_CosmosTx_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n4ibc/applications/interchain_accounts/v" +
"1/packet.proto\022\'ibc.applications.interch" +
"ain_accounts.v1\032\031google/protobuf/any.pro" +
"to\032\024gogoproto/gogo.proto\"v\n\033InterchainAc" +
"countPacketData\022;\n\004type\030\001 \001(\0162-.ibc.appl" +
"ications.interchain_accounts.v1.Type\022\014\n\004" +
"data\030\002 \001(\014\022\014\n\004memo\030\003 \001(\t\"2\n\010CosmosTx\022&\n\010" +
"messages\030\001 \003(\0132\024.google.protobuf.Any*X\n\004" +
"Type\022%\n\020TYPE_UNSPECIFIED\020\000\032\017\212\235 \013UNSPECIF" +
"IED\022#\n\017TYPE_EXECUTE_TX\020\001\032\016\212\235 \nEXECUTE_TX" +
"\032\004\210\243\036\000BGZEgithub.com/cosmos/ibc-go/v3/mo" +
"dules/apps/27-interchain-accounts/typesb" +
"\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.AnyProto.getDescriptor(),
com.google.protobuf.GoGoProtos.getDescriptor(),
});
internal_static_ibc_applications_interchain_accounts_v1_InterchainAccountPacketData_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_ibc_applications_interchain_accounts_v1_InterchainAccountPacketData_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ibc_applications_interchain_accounts_v1_InterchainAccountPacketData_descriptor,
new java.lang.String[] { "Type", "Data", "Memo", });
internal_static_ibc_applications_interchain_accounts_v1_CosmosTx_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_ibc_applications_interchain_accounts_v1_CosmosTx_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ibc_applications_interchain_accounts_v1_CosmosTx_descriptor,
new java.lang.String[] { "Messages", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.protobuf.GoGoProtos.enumvalueCustomname);
registry.add(com.google.protobuf.GoGoProtos.goprotoEnumPrefix);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.protobuf.AnyProto.getDescriptor();
com.google.protobuf.GoGoProtos.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy