All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ibc.applications.interchain_accounts.v1.MetadataOuterClass Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: ibc/applications/interchain_accounts/v1/metadata.proto

package ibc.applications.interchain_accounts.v1;

public final class MetadataOuterClass {
  private MetadataOuterClass() {}
  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 MetadataOrBuilder extends
      // @@protoc_insertion_point(interface_extends:ibc.applications.interchain_accounts.v1.Metadata)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * version defines the ICS27 protocol version
     * 
* * string version = 1; * @return The version. */ java.lang.String getVersion(); /** *
     * version defines the ICS27 protocol version
     * 
* * string version = 1; * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); /** *
     * controller_connection_id is the connection identifier associated with the controller chain
     * 
* * string controller_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"controller_connection_id\""]; * @return The controllerConnectionId. */ java.lang.String getControllerConnectionId(); /** *
     * controller_connection_id is the connection identifier associated with the controller chain
     * 
* * string controller_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"controller_connection_id\""]; * @return The bytes for controllerConnectionId. */ com.google.protobuf.ByteString getControllerConnectionIdBytes(); /** *
     * host_connection_id is the connection identifier associated with the host chain
     * 
* * string host_connection_id = 3 [(.gogoproto.moretags) = "yaml:\"host_connection_id\""]; * @return The hostConnectionId. */ java.lang.String getHostConnectionId(); /** *
     * host_connection_id is the connection identifier associated with the host chain
     * 
* * string host_connection_id = 3 [(.gogoproto.moretags) = "yaml:\"host_connection_id\""]; * @return The bytes for hostConnectionId. */ com.google.protobuf.ByteString getHostConnectionIdBytes(); /** *
     * address defines the interchain account address to be fulfilled upon the OnChanOpenTry handshake step
     * NOTE: the address field is empty on the OnChanOpenInit handshake step
     * 
* * string address = 4; * @return The address. */ java.lang.String getAddress(); /** *
     * address defines the interchain account address to be fulfilled upon the OnChanOpenTry handshake step
     * NOTE: the address field is empty on the OnChanOpenInit handshake step
     * 
* * string address = 4; * @return The bytes for address. */ com.google.protobuf.ByteString getAddressBytes(); /** *
     * encoding defines the supported codec format
     * 
* * string encoding = 5; * @return The encoding. */ java.lang.String getEncoding(); /** *
     * encoding defines the supported codec format
     * 
* * string encoding = 5; * @return The bytes for encoding. */ com.google.protobuf.ByteString getEncodingBytes(); /** *
     * tx_type defines the type of transactions the interchain account can execute
     * 
* * string tx_type = 6; * @return The txType. */ java.lang.String getTxType(); /** *
     * tx_type defines the type of transactions the interchain account can execute
     * 
* * string tx_type = 6; * @return The bytes for txType. */ com.google.protobuf.ByteString getTxTypeBytes(); } /** *
   * Metadata defines a set of protocol specific data encoded into the ICS27 channel version bytestring
   * See ICS004: https://github.com/cosmos/ibc/tree/master/spec/core/ics-004-channel-and-packet-semantics#Versioning
   * 
* * Protobuf type {@code ibc.applications.interchain_accounts.v1.Metadata} */ public static final class Metadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ibc.applications.interchain_accounts.v1.Metadata) MetadataOrBuilder { private static final long serialVersionUID = 0L; // Use Metadata.newBuilder() to construct. private Metadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Metadata() { version_ = ""; controllerConnectionId_ = ""; hostConnectionId_ = ""; address_ = ""; encoding_ = ""; txType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Metadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Metadata( 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(); version_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); controllerConnectionId_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); hostConnectionId_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); address_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); encoding_ = s; break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); txType_ = 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.MetadataOuterClass.internal_static_ibc_applications_interchain_accounts_v1_Metadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ibc.applications.interchain_accounts.v1.MetadataOuterClass.internal_static_ibc_applications_interchain_accounts_v1_Metadata_fieldAccessorTable .ensureFieldAccessorsInitialized( ibc.applications.interchain_accounts.v1.MetadataOuterClass.Metadata.class, ibc.applications.interchain_accounts.v1.MetadataOuterClass.Metadata.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object version_; /** *
     * version defines the ICS27 protocol version
     * 
* * string version = 1; * @return The version. */ @java.lang.Override public java.lang.String getVersion() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** *
     * version defines the ICS27 protocol version
     * 
* * string version = 1; * @return The bytes for version. */ @java.lang.Override public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONTROLLER_CONNECTION_ID_FIELD_NUMBER = 2; private volatile java.lang.Object controllerConnectionId_; /** *
     * controller_connection_id is the connection identifier associated with the controller chain
     * 
* * string controller_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"controller_connection_id\""]; * @return The controllerConnectionId. */ @java.lang.Override public java.lang.String getControllerConnectionId() { java.lang.Object ref = controllerConnectionId_; 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(); controllerConnectionId_ = s; return s; } } /** *
     * controller_connection_id is the connection identifier associated with the controller chain
     * 
* * string controller_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"controller_connection_id\""]; * @return The bytes for controllerConnectionId. */ @java.lang.Override public com.google.protobuf.ByteString getControllerConnectionIdBytes() { java.lang.Object ref = controllerConnectionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); controllerConnectionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HOST_CONNECTION_ID_FIELD_NUMBER = 3; private volatile java.lang.Object hostConnectionId_; /** *
     * host_connection_id is the connection identifier associated with the host chain
     * 
* * string host_connection_id = 3 [(.gogoproto.moretags) = "yaml:\"host_connection_id\""]; * @return The hostConnectionId. */ @java.lang.Override public java.lang.String getHostConnectionId() { java.lang.Object ref = hostConnectionId_; 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(); hostConnectionId_ = s; return s; } } /** *
     * host_connection_id is the connection identifier associated with the host chain
     * 
* * string host_connection_id = 3 [(.gogoproto.moretags) = "yaml:\"host_connection_id\""]; * @return The bytes for hostConnectionId. */ @java.lang.Override public com.google.protobuf.ByteString getHostConnectionIdBytes() { java.lang.Object ref = hostConnectionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hostConnectionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ADDRESS_FIELD_NUMBER = 4; private volatile java.lang.Object address_; /** *
     * address defines the interchain account address to be fulfilled upon the OnChanOpenTry handshake step
     * NOTE: the address field is empty on the OnChanOpenInit handshake step
     * 
* * string address = 4; * @return The address. */ @java.lang.Override public java.lang.String getAddress() { java.lang.Object ref = address_; 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(); address_ = s; return s; } } /** *
     * address defines the interchain account address to be fulfilled upon the OnChanOpenTry handshake step
     * NOTE: the address field is empty on the OnChanOpenInit handshake step
     * 
* * string address = 4; * @return The bytes for address. */ @java.lang.Override public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENCODING_FIELD_NUMBER = 5; private volatile java.lang.Object encoding_; /** *
     * encoding defines the supported codec format
     * 
* * string encoding = 5; * @return The encoding. */ @java.lang.Override public java.lang.String getEncoding() { java.lang.Object ref = encoding_; 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(); encoding_ = s; return s; } } /** *
     * encoding defines the supported codec format
     * 
* * string encoding = 5; * @return The bytes for encoding. */ @java.lang.Override public com.google.protobuf.ByteString getEncodingBytes() { java.lang.Object ref = encoding_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); encoding_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TX_TYPE_FIELD_NUMBER = 6; private volatile java.lang.Object txType_; /** *
     * tx_type defines the type of transactions the interchain account can execute
     * 
* * string tx_type = 6; * @return The txType. */ @java.lang.Override public java.lang.String getTxType() { java.lang.Object ref = txType_; 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(); txType_ = s; return s; } } /** *
     * tx_type defines the type of transactions the interchain account can execute
     * 
* * string tx_type = 6; * @return The bytes for txType. */ @java.lang.Override public com.google.protobuf.ByteString getTxTypeBytes() { java.lang.Object ref = txType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); txType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(controllerConnectionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, controllerConnectionId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostConnectionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, hostConnectionId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, address_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encoding_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, encoding_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(txType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, txType_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(controllerConnectionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, controllerConnectionId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostConnectionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, hostConnectionId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, address_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encoding_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, encoding_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(txType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, txType_); } 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.MetadataOuterClass.Metadata)) { return super.equals(obj); } ibc.applications.interchain_accounts.v1.MetadataOuterClass.Metadata other = (ibc.applications.interchain_accounts.v1.MetadataOuterClass.Metadata) obj; if (!getVersion() .equals(other.getVersion())) return false; if (!getControllerConnectionId() .equals(other.getControllerConnectionId())) return false; if (!getHostConnectionId() .equals(other.getHostConnectionId())) return false; if (!getAddress() .equals(other.getAddress())) return false; if (!getEncoding() .equals(other.getEncoding())) return false; if (!getTxType() .equals(other.getTxType())) 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) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (37 * hash) + CONTROLLER_CONNECTION_ID_FIELD_NUMBER; hash = (53 * hash) + getControllerConnectionId().hashCode(); hash = (37 * hash) + HOST_CONNECTION_ID_FIELD_NUMBER; hash = (53 * hash) + getHostConnectionId().hashCode(); hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); hash = (37 * hash) + ENCODING_FIELD_NUMBER; hash = (53 * hash) + getEncoding().hashCode(); hash = (37 * hash) + TX_TYPE_FIELD_NUMBER; hash = (53 * hash) + getTxType().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static ibc.applications.interchain_accounts.v1.MetadataOuterClass.Metadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.applications.interchain_accounts.v1.MetadataOuterClass.Metadata 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.MetadataOuterClass.Metadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.applications.interchain_accounts.v1.MetadataOuterClass.Metadata 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.MetadataOuterClass.Metadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ibc.applications.interchain_accounts.v1.MetadataOuterClass.Metadata 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.MetadataOuterClass.Metadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ibc.applications.interchain_accounts.v1.MetadataOuterClass.Metadata 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.MetadataOuterClass.Metadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ibc.applications.interchain_accounts.v1.MetadataOuterClass.Metadata 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.MetadataOuterClass.Metadata 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.MetadataOuterClass.Metadata 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.MetadataOuterClass.Metadata 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; } /** *
     * Metadata defines a set of protocol specific data encoded into the ICS27 channel version bytestring
     * See ICS004: https://github.com/cosmos/ibc/tree/master/spec/core/ics-004-channel-and-packet-semantics#Versioning
     * 
* * Protobuf type {@code ibc.applications.interchain_accounts.v1.Metadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ibc.applications.interchain_accounts.v1.Metadata) ibc.applications.interchain_accounts.v1.MetadataOuterClass.MetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ibc.applications.interchain_accounts.v1.MetadataOuterClass.internal_static_ibc_applications_interchain_accounts_v1_Metadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ibc.applications.interchain_accounts.v1.MetadataOuterClass.internal_static_ibc_applications_interchain_accounts_v1_Metadata_fieldAccessorTable .ensureFieldAccessorsInitialized( ibc.applications.interchain_accounts.v1.MetadataOuterClass.Metadata.class, ibc.applications.interchain_accounts.v1.MetadataOuterClass.Metadata.Builder.class); } // Construct using ibc.applications.interchain_accounts.v1.MetadataOuterClass.Metadata.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(); version_ = ""; controllerConnectionId_ = ""; hostConnectionId_ = ""; address_ = ""; encoding_ = ""; txType_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ibc.applications.interchain_accounts.v1.MetadataOuterClass.internal_static_ibc_applications_interchain_accounts_v1_Metadata_descriptor; } @java.lang.Override public ibc.applications.interchain_accounts.v1.MetadataOuterClass.Metadata getDefaultInstanceForType() { return ibc.applications.interchain_accounts.v1.MetadataOuterClass.Metadata.getDefaultInstance(); } @java.lang.Override public ibc.applications.interchain_accounts.v1.MetadataOuterClass.Metadata build() { ibc.applications.interchain_accounts.v1.MetadataOuterClass.Metadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ibc.applications.interchain_accounts.v1.MetadataOuterClass.Metadata buildPartial() { ibc.applications.interchain_accounts.v1.MetadataOuterClass.Metadata result = new ibc.applications.interchain_accounts.v1.MetadataOuterClass.Metadata(this); result.version_ = version_; result.controllerConnectionId_ = controllerConnectionId_; result.hostConnectionId_ = hostConnectionId_; result.address_ = address_; result.encoding_ = encoding_; result.txType_ = txType_; 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.MetadataOuterClass.Metadata) { return mergeFrom((ibc.applications.interchain_accounts.v1.MetadataOuterClass.Metadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ibc.applications.interchain_accounts.v1.MetadataOuterClass.Metadata other) { if (other == ibc.applications.interchain_accounts.v1.MetadataOuterClass.Metadata.getDefaultInstance()) return this; if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); } if (!other.getControllerConnectionId().isEmpty()) { controllerConnectionId_ = other.controllerConnectionId_; onChanged(); } if (!other.getHostConnectionId().isEmpty()) { hostConnectionId_ = other.hostConnectionId_; onChanged(); } if (!other.getAddress().isEmpty()) { address_ = other.address_; onChanged(); } if (!other.getEncoding().isEmpty()) { encoding_ = other.encoding_; onChanged(); } if (!other.getTxType().isEmpty()) { txType_ = other.txType_; 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.MetadataOuterClass.Metadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ibc.applications.interchain_accounts.v1.MetadataOuterClass.Metadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object version_ = ""; /** *
       * version defines the ICS27 protocol version
       * 
* * string version = 1; * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * version defines the ICS27 protocol version
       * 
* * string version = 1; * @return The bytes for version. */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * version defines the ICS27 protocol version
       * 
* * string version = 1; * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } version_ = value; onChanged(); return this; } /** *
       * version defines the ICS27 protocol version
       * 
* * string version = 1; * @return This builder for chaining. */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** *
       * version defines the ICS27 protocol version
       * 
* * string version = 1; * @param value The bytes for version to set. * @return This builder for chaining. */ public Builder setVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); version_ = value; onChanged(); return this; } private java.lang.Object controllerConnectionId_ = ""; /** *
       * controller_connection_id is the connection identifier associated with the controller chain
       * 
* * string controller_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"controller_connection_id\""]; * @return The controllerConnectionId. */ public java.lang.String getControllerConnectionId() { java.lang.Object ref = controllerConnectionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); controllerConnectionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * controller_connection_id is the connection identifier associated with the controller chain
       * 
* * string controller_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"controller_connection_id\""]; * @return The bytes for controllerConnectionId. */ public com.google.protobuf.ByteString getControllerConnectionIdBytes() { java.lang.Object ref = controllerConnectionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); controllerConnectionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * controller_connection_id is the connection identifier associated with the controller chain
       * 
* * string controller_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"controller_connection_id\""]; * @param value The controllerConnectionId to set. * @return This builder for chaining. */ public Builder setControllerConnectionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } controllerConnectionId_ = value; onChanged(); return this; } /** *
       * controller_connection_id is the connection identifier associated with the controller chain
       * 
* * string controller_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"controller_connection_id\""]; * @return This builder for chaining. */ public Builder clearControllerConnectionId() { controllerConnectionId_ = getDefaultInstance().getControllerConnectionId(); onChanged(); return this; } /** *
       * controller_connection_id is the connection identifier associated with the controller chain
       * 
* * string controller_connection_id = 2 [(.gogoproto.moretags) = "yaml:\"controller_connection_id\""]; * @param value The bytes for controllerConnectionId to set. * @return This builder for chaining. */ public Builder setControllerConnectionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); controllerConnectionId_ = value; onChanged(); return this; } private java.lang.Object hostConnectionId_ = ""; /** *
       * host_connection_id is the connection identifier associated with the host chain
       * 
* * string host_connection_id = 3 [(.gogoproto.moretags) = "yaml:\"host_connection_id\""]; * @return The hostConnectionId. */ public java.lang.String getHostConnectionId() { java.lang.Object ref = hostConnectionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostConnectionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * host_connection_id is the connection identifier associated with the host chain
       * 
* * string host_connection_id = 3 [(.gogoproto.moretags) = "yaml:\"host_connection_id\""]; * @return The bytes for hostConnectionId. */ public com.google.protobuf.ByteString getHostConnectionIdBytes() { java.lang.Object ref = hostConnectionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hostConnectionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * host_connection_id is the connection identifier associated with the host chain
       * 
* * string host_connection_id = 3 [(.gogoproto.moretags) = "yaml:\"host_connection_id\""]; * @param value The hostConnectionId to set. * @return This builder for chaining. */ public Builder setHostConnectionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } hostConnectionId_ = value; onChanged(); return this; } /** *
       * host_connection_id is the connection identifier associated with the host chain
       * 
* * string host_connection_id = 3 [(.gogoproto.moretags) = "yaml:\"host_connection_id\""]; * @return This builder for chaining. */ public Builder clearHostConnectionId() { hostConnectionId_ = getDefaultInstance().getHostConnectionId(); onChanged(); return this; } /** *
       * host_connection_id is the connection identifier associated with the host chain
       * 
* * string host_connection_id = 3 [(.gogoproto.moretags) = "yaml:\"host_connection_id\""]; * @param value The bytes for hostConnectionId to set. * @return This builder for chaining. */ public Builder setHostConnectionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); hostConnectionId_ = value; onChanged(); return this; } private java.lang.Object address_ = ""; /** *
       * address defines the interchain account address to be fulfilled upon the OnChanOpenTry handshake step
       * NOTE: the address field is empty on the OnChanOpenInit handshake step
       * 
* * string address = 4; * @return The address. */ public java.lang.String getAddress() { java.lang.Object ref = address_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); address_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * address defines the interchain account address to be fulfilled upon the OnChanOpenTry handshake step
       * NOTE: the address field is empty on the OnChanOpenInit handshake step
       * 
* * string address = 4; * @return The bytes for address. */ public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * address defines the interchain account address to be fulfilled upon the OnChanOpenTry handshake step
       * NOTE: the address field is empty on the OnChanOpenInit handshake step
       * 
* * string address = 4; * @param value The address to set. * @return This builder for chaining. */ public Builder setAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } address_ = value; onChanged(); return this; } /** *
       * address defines the interchain account address to be fulfilled upon the OnChanOpenTry handshake step
       * NOTE: the address field is empty on the OnChanOpenInit handshake step
       * 
* * string address = 4; * @return This builder for chaining. */ public Builder clearAddress() { address_ = getDefaultInstance().getAddress(); onChanged(); return this; } /** *
       * address defines the interchain account address to be fulfilled upon the OnChanOpenTry handshake step
       * NOTE: the address field is empty on the OnChanOpenInit handshake step
       * 
* * string address = 4; * @param value The bytes for address to set. * @return This builder for chaining. */ public Builder setAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); address_ = value; onChanged(); return this; } private java.lang.Object encoding_ = ""; /** *
       * encoding defines the supported codec format
       * 
* * string encoding = 5; * @return The encoding. */ public java.lang.String getEncoding() { java.lang.Object ref = encoding_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); encoding_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * encoding defines the supported codec format
       * 
* * string encoding = 5; * @return The bytes for encoding. */ public com.google.protobuf.ByteString getEncodingBytes() { java.lang.Object ref = encoding_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); encoding_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * encoding defines the supported codec format
       * 
* * string encoding = 5; * @param value The encoding to set. * @return This builder for chaining. */ public Builder setEncoding( java.lang.String value) { if (value == null) { throw new NullPointerException(); } encoding_ = value; onChanged(); return this; } /** *
       * encoding defines the supported codec format
       * 
* * string encoding = 5; * @return This builder for chaining. */ public Builder clearEncoding() { encoding_ = getDefaultInstance().getEncoding(); onChanged(); return this; } /** *
       * encoding defines the supported codec format
       * 
* * string encoding = 5; * @param value The bytes for encoding to set. * @return This builder for chaining. */ public Builder setEncodingBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); encoding_ = value; onChanged(); return this; } private java.lang.Object txType_ = ""; /** *
       * tx_type defines the type of transactions the interchain account can execute
       * 
* * string tx_type = 6; * @return The txType. */ public java.lang.String getTxType() { java.lang.Object ref = txType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); txType_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * tx_type defines the type of transactions the interchain account can execute
       * 
* * string tx_type = 6; * @return The bytes for txType. */ public com.google.protobuf.ByteString getTxTypeBytes() { java.lang.Object ref = txType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); txType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * tx_type defines the type of transactions the interchain account can execute
       * 
* * string tx_type = 6; * @param value The txType to set. * @return This builder for chaining. */ public Builder setTxType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } txType_ = value; onChanged(); return this; } /** *
       * tx_type defines the type of transactions the interchain account can execute
       * 
* * string tx_type = 6; * @return This builder for chaining. */ public Builder clearTxType() { txType_ = getDefaultInstance().getTxType(); onChanged(); return this; } /** *
       * tx_type defines the type of transactions the interchain account can execute
       * 
* * string tx_type = 6; * @param value The bytes for txType to set. * @return This builder for chaining. */ public Builder setTxTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); txType_ = 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.Metadata) } // @@protoc_insertion_point(class_scope:ibc.applications.interchain_accounts.v1.Metadata) private static final ibc.applications.interchain_accounts.v1.MetadataOuterClass.Metadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ibc.applications.interchain_accounts.v1.MetadataOuterClass.Metadata(); } public static ibc.applications.interchain_accounts.v1.MetadataOuterClass.Metadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Metadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Metadata(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.MetadataOuterClass.Metadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_ibc_applications_interchain_accounts_v1_Metadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ibc_applications_interchain_accounts_v1_Metadata_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n6ibc/applications/interchain_accounts/v" + "1/metadata.proto\022\'ibc.applications.inter" + "chain_accounts.v1\032\024gogoproto/gogo.proto\"" + "\321\001\n\010Metadata\022\017\n\007version\030\001 \001(\t\022E\n\030control" + "ler_connection_id\030\002 \001(\tB#\362\336\037\037yaml:\"contr" + "oller_connection_id\"\0229\n\022host_connection_" + "id\030\003 \001(\tB\035\362\336\037\031yaml:\"host_connection_id\"\022" + "\017\n\007address\030\004 \001(\t\022\020\n\010encoding\030\005 \001(\t\022\017\n\007tx" + "_type\030\006 \001(\tBGZEgithub.com/cosmos/ibc-go/" + "v3/modules/apps/27-interchain-accounts/t" + "ypesb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.GoGoProtos.getDescriptor(), }); internal_static_ibc_applications_interchain_accounts_v1_Metadata_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_ibc_applications_interchain_accounts_v1_Metadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ibc_applications_interchain_accounts_v1_Metadata_descriptor, new java.lang.String[] { "Version", "ControllerConnectionId", "HostConnectionId", "Address", "Encoding", "TxType", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); 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) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy