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

cosmwasm.wasm.v1beta1.Ibc Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: x/wasm/internal/types/ibc.proto

package cosmwasm.wasm.v1beta1;

public final class Ibc {
  private Ibc() {}
  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 MsgIBCSendOrBuilder extends
      // @@protoc_insertion_point(interface_extends:cosmwasm.wasm.v1beta1.MsgIBCSend)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * the channel by which the packet will be sent
     * 
* * string channel = 2 [(.gogoproto.moretags) = "yaml:\"source_channel\""]; */ java.lang.String getChannel(); /** *
     * the channel by which the packet will be sent
     * 
* * string channel = 2 [(.gogoproto.moretags) = "yaml:\"source_channel\""]; */ com.google.protobuf.ByteString getChannelBytes(); /** *
     * Timeout height relative to the current block height.
     * The timeout is disabled when set to 0.
     * 
* * uint64 timeout_height = 4 [(.gogoproto.moretags) = "yaml:\"timeout_height\""]; */ long getTimeoutHeight(); /** *
     * Timeout timestamp (in nanoseconds) relative to the current block timestamp.
     * The timeout is disabled when set to 0.
     * 
* * uint64 timeout_timestamp = 5 [(.gogoproto.moretags) = "yaml:\"timeout_timestamp\""]; */ long getTimeoutTimestamp(); /** *
     * data is the payload to transfer
     * 
* * bytes data = 6 [(.gogoproto.casttype) = "encoding/json.RawMessage"]; */ com.google.protobuf.ByteString getData(); } /** *
   * MsgIBCSend
   * 
* * Protobuf type {@code cosmwasm.wasm.v1beta1.MsgIBCSend} */ public static final class MsgIBCSend extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmwasm.wasm.v1beta1.MsgIBCSend) MsgIBCSendOrBuilder { private static final long serialVersionUID = 0L; // Use MsgIBCSend.newBuilder() to construct. private MsgIBCSend(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MsgIBCSend() { channel_ = ""; timeoutHeight_ = 0L; timeoutTimestamp_ = 0L; data_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MsgIBCSend( 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 18: { java.lang.String s = input.readStringRequireUtf8(); channel_ = s; break; } case 32: { timeoutHeight_ = input.readUInt64(); break; } case 40: { timeoutTimestamp_ = input.readUInt64(); break; } case 50: { data_ = input.readBytes(); break; } default: { if (!parseUnknownFieldProto3( 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 cosmwasm.wasm.v1beta1.Ibc.internal_static_cosmwasm_wasm_v1beta1_MsgIBCSend_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmwasm.wasm.v1beta1.Ibc.internal_static_cosmwasm_wasm_v1beta1_MsgIBCSend_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend.class, cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend.Builder.class); } public static final int CHANNEL_FIELD_NUMBER = 2; private volatile java.lang.Object channel_; /** *
     * the channel by which the packet will be sent
     * 
* * string channel = 2 [(.gogoproto.moretags) = "yaml:\"source_channel\""]; */ public java.lang.String getChannel() { java.lang.Object ref = channel_; 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(); channel_ = s; return s; } } /** *
     * the channel by which the packet will be sent
     * 
* * string channel = 2 [(.gogoproto.moretags) = "yaml:\"source_channel\""]; */ public com.google.protobuf.ByteString getChannelBytes() { java.lang.Object ref = channel_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); channel_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TIMEOUT_HEIGHT_FIELD_NUMBER = 4; private long timeoutHeight_; /** *
     * Timeout height relative to the current block height.
     * The timeout is disabled when set to 0.
     * 
* * uint64 timeout_height = 4 [(.gogoproto.moretags) = "yaml:\"timeout_height\""]; */ public long getTimeoutHeight() { return timeoutHeight_; } public static final int TIMEOUT_TIMESTAMP_FIELD_NUMBER = 5; private long timeoutTimestamp_; /** *
     * Timeout timestamp (in nanoseconds) relative to the current block timestamp.
     * The timeout is disabled when set to 0.
     * 
* * uint64 timeout_timestamp = 5 [(.gogoproto.moretags) = "yaml:\"timeout_timestamp\""]; */ public long getTimeoutTimestamp() { return timeoutTimestamp_; } public static final int DATA_FIELD_NUMBER = 6; private com.google.protobuf.ByteString data_; /** *
     * data is the payload to transfer
     * 
* * bytes data = 6 [(.gogoproto.casttype) = "encoding/json.RawMessage"]; */ public com.google.protobuf.ByteString getData() { return data_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getChannelBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, channel_); } if (timeoutHeight_ != 0L) { output.writeUInt64(4, timeoutHeight_); } if (timeoutTimestamp_ != 0L) { output.writeUInt64(5, timeoutTimestamp_); } if (!data_.isEmpty()) { output.writeBytes(6, data_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getChannelBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, channel_); } if (timeoutHeight_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, timeoutHeight_); } if (timeoutTimestamp_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, timeoutTimestamp_); } if (!data_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, data_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend)) { return super.equals(obj); } cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend other = (cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend) obj; boolean result = true; result = result && getChannel() .equals(other.getChannel()); result = result && (getTimeoutHeight() == other.getTimeoutHeight()); result = result && (getTimeoutTimestamp() == other.getTimeoutTimestamp()); result = result && getData() .equals(other.getData()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CHANNEL_FIELD_NUMBER; hash = (53 * hash) + getChannel().hashCode(); hash = (37 * hash) + TIMEOUT_HEIGHT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimeoutHeight()); hash = (37 * hash) + TIMEOUT_TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimeoutTimestamp()); hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend 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 cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend 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 cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend 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(cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend 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; } /** *
     * MsgIBCSend
     * 
* * Protobuf type {@code cosmwasm.wasm.v1beta1.MsgIBCSend} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmwasm.wasm.v1beta1.MsgIBCSend) cosmwasm.wasm.v1beta1.Ibc.MsgIBCSendOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmwasm.wasm.v1beta1.Ibc.internal_static_cosmwasm_wasm_v1beta1_MsgIBCSend_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmwasm.wasm.v1beta1.Ibc.internal_static_cosmwasm_wasm_v1beta1_MsgIBCSend_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend.class, cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend.Builder.class); } // Construct using cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend.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(); channel_ = ""; timeoutHeight_ = 0L; timeoutTimestamp_ = 0L; data_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmwasm.wasm.v1beta1.Ibc.internal_static_cosmwasm_wasm_v1beta1_MsgIBCSend_descriptor; } @java.lang.Override public cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend getDefaultInstanceForType() { return cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend.getDefaultInstance(); } @java.lang.Override public cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend build() { cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend buildPartial() { cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend result = new cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend(this); result.channel_ = channel_; result.timeoutHeight_ = timeoutHeight_; result.timeoutTimestamp_ = timeoutTimestamp_; result.data_ = data_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend) { return mergeFrom((cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend other) { if (other == cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend.getDefaultInstance()) return this; if (!other.getChannel().isEmpty()) { channel_ = other.channel_; onChanged(); } if (other.getTimeoutHeight() != 0L) { setTimeoutHeight(other.getTimeoutHeight()); } if (other.getTimeoutTimestamp() != 0L) { setTimeoutTimestamp(other.getTimeoutTimestamp()); } if (other.getData() != com.google.protobuf.ByteString.EMPTY) { setData(other.getData()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object channel_ = ""; /** *
       * the channel by which the packet will be sent
       * 
* * string channel = 2 [(.gogoproto.moretags) = "yaml:\"source_channel\""]; */ public java.lang.String getChannel() { java.lang.Object ref = channel_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); channel_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * the channel by which the packet will be sent
       * 
* * string channel = 2 [(.gogoproto.moretags) = "yaml:\"source_channel\""]; */ public com.google.protobuf.ByteString getChannelBytes() { java.lang.Object ref = channel_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); channel_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * the channel by which the packet will be sent
       * 
* * string channel = 2 [(.gogoproto.moretags) = "yaml:\"source_channel\""]; */ public Builder setChannel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } channel_ = value; onChanged(); return this; } /** *
       * the channel by which the packet will be sent
       * 
* * string channel = 2 [(.gogoproto.moretags) = "yaml:\"source_channel\""]; */ public Builder clearChannel() { channel_ = getDefaultInstance().getChannel(); onChanged(); return this; } /** *
       * the channel by which the packet will be sent
       * 
* * string channel = 2 [(.gogoproto.moretags) = "yaml:\"source_channel\""]; */ public Builder setChannelBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); channel_ = value; onChanged(); return this; } private long timeoutHeight_ ; /** *
       * Timeout height relative to the current block height.
       * The timeout is disabled when set to 0.
       * 
* * uint64 timeout_height = 4 [(.gogoproto.moretags) = "yaml:\"timeout_height\""]; */ public long getTimeoutHeight() { return timeoutHeight_; } /** *
       * Timeout height relative to the current block height.
       * The timeout is disabled when set to 0.
       * 
* * uint64 timeout_height = 4 [(.gogoproto.moretags) = "yaml:\"timeout_height\""]; */ public Builder setTimeoutHeight(long value) { timeoutHeight_ = value; onChanged(); return this; } /** *
       * Timeout height relative to the current block height.
       * The timeout is disabled when set to 0.
       * 
* * uint64 timeout_height = 4 [(.gogoproto.moretags) = "yaml:\"timeout_height\""]; */ public Builder clearTimeoutHeight() { timeoutHeight_ = 0L; onChanged(); return this; } private long timeoutTimestamp_ ; /** *
       * Timeout timestamp (in nanoseconds) relative to the current block timestamp.
       * The timeout is disabled when set to 0.
       * 
* * uint64 timeout_timestamp = 5 [(.gogoproto.moretags) = "yaml:\"timeout_timestamp\""]; */ public long getTimeoutTimestamp() { return timeoutTimestamp_; } /** *
       * Timeout timestamp (in nanoseconds) relative to the current block timestamp.
       * The timeout is disabled when set to 0.
       * 
* * uint64 timeout_timestamp = 5 [(.gogoproto.moretags) = "yaml:\"timeout_timestamp\""]; */ public Builder setTimeoutTimestamp(long value) { timeoutTimestamp_ = value; onChanged(); return this; } /** *
       * Timeout timestamp (in nanoseconds) relative to the current block timestamp.
       * The timeout is disabled when set to 0.
       * 
* * uint64 timeout_timestamp = 5 [(.gogoproto.moretags) = "yaml:\"timeout_timestamp\""]; */ public Builder clearTimeoutTimestamp() { timeoutTimestamp_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** *
       * data is the payload to transfer
       * 
* * bytes data = 6 [(.gogoproto.casttype) = "encoding/json.RawMessage"]; */ public com.google.protobuf.ByteString getData() { return data_; } /** *
       * data is the payload to transfer
       * 
* * bytes data = 6 [(.gogoproto.casttype) = "encoding/json.RawMessage"]; */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); return this; } /** *
       * data is the payload to transfer
       * 
* * bytes data = 6 [(.gogoproto.casttype) = "encoding/json.RawMessage"]; */ public Builder clearData() { data_ = getDefaultInstance().getData(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cosmwasm.wasm.v1beta1.MsgIBCSend) } // @@protoc_insertion_point(class_scope:cosmwasm.wasm.v1beta1.MsgIBCSend) private static final cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend(); } public static cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MsgIBCSend parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MsgIBCSend(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 cosmwasm.wasm.v1beta1.Ibc.MsgIBCSend getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MsgIBCCloseChannelOrBuilder extends // @@protoc_insertion_point(interface_extends:cosmwasm.wasm.v1beta1.MsgIBCCloseChannel) com.google.protobuf.MessageOrBuilder { /** * string channel = 2 [(.gogoproto.moretags) = "yaml:\"source_channel\""]; */ java.lang.String getChannel(); /** * string channel = 2 [(.gogoproto.moretags) = "yaml:\"source_channel\""]; */ com.google.protobuf.ByteString getChannelBytes(); } /** *
   * MsgIBCCloseChannel port and channel need to be owned by the contract
   * 
* * Protobuf type {@code cosmwasm.wasm.v1beta1.MsgIBCCloseChannel} */ public static final class MsgIBCCloseChannel extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cosmwasm.wasm.v1beta1.MsgIBCCloseChannel) MsgIBCCloseChannelOrBuilder { private static final long serialVersionUID = 0L; // Use MsgIBCCloseChannel.newBuilder() to construct. private MsgIBCCloseChannel(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MsgIBCCloseChannel() { channel_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MsgIBCCloseChannel( 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 18: { java.lang.String s = input.readStringRequireUtf8(); channel_ = s; break; } default: { if (!parseUnknownFieldProto3( 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 cosmwasm.wasm.v1beta1.Ibc.internal_static_cosmwasm_wasm_v1beta1_MsgIBCCloseChannel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmwasm.wasm.v1beta1.Ibc.internal_static_cosmwasm_wasm_v1beta1_MsgIBCCloseChannel_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel.class, cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel.Builder.class); } public static final int CHANNEL_FIELD_NUMBER = 2; private volatile java.lang.Object channel_; /** * string channel = 2 [(.gogoproto.moretags) = "yaml:\"source_channel\""]; */ public java.lang.String getChannel() { java.lang.Object ref = channel_; 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(); channel_ = s; return s; } } /** * string channel = 2 [(.gogoproto.moretags) = "yaml:\"source_channel\""]; */ public com.google.protobuf.ByteString getChannelBytes() { java.lang.Object ref = channel_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); channel_ = 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 (!getChannelBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, channel_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getChannelBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, channel_); } 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 cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel)) { return super.equals(obj); } cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel other = (cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel) obj; boolean result = true; result = result && getChannel() .equals(other.getChannel()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CHANNEL_FIELD_NUMBER; hash = (53 * hash) + getChannel().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel 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 cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel 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 cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel 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(cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel 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; } /** *
     * MsgIBCCloseChannel port and channel need to be owned by the contract
     * 
* * Protobuf type {@code cosmwasm.wasm.v1beta1.MsgIBCCloseChannel} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cosmwasm.wasm.v1beta1.MsgIBCCloseChannel) cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannelOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cosmwasm.wasm.v1beta1.Ibc.internal_static_cosmwasm_wasm_v1beta1_MsgIBCCloseChannel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cosmwasm.wasm.v1beta1.Ibc.internal_static_cosmwasm_wasm_v1beta1_MsgIBCCloseChannel_fieldAccessorTable .ensureFieldAccessorsInitialized( cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel.class, cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel.Builder.class); } // Construct using cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel.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(); channel_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cosmwasm.wasm.v1beta1.Ibc.internal_static_cosmwasm_wasm_v1beta1_MsgIBCCloseChannel_descriptor; } @java.lang.Override public cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel getDefaultInstanceForType() { return cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel.getDefaultInstance(); } @java.lang.Override public cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel build() { cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel buildPartial() { cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel result = new cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel(this); result.channel_ = channel_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel) { return mergeFrom((cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel other) { if (other == cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel.getDefaultInstance()) return this; if (!other.getChannel().isEmpty()) { channel_ = other.channel_; 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 { cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object channel_ = ""; /** * string channel = 2 [(.gogoproto.moretags) = "yaml:\"source_channel\""]; */ public java.lang.String getChannel() { java.lang.Object ref = channel_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); channel_ = s; return s; } else { return (java.lang.String) ref; } } /** * string channel = 2 [(.gogoproto.moretags) = "yaml:\"source_channel\""]; */ public com.google.protobuf.ByteString getChannelBytes() { java.lang.Object ref = channel_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); channel_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string channel = 2 [(.gogoproto.moretags) = "yaml:\"source_channel\""]; */ public Builder setChannel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } channel_ = value; onChanged(); return this; } /** * string channel = 2 [(.gogoproto.moretags) = "yaml:\"source_channel\""]; */ public Builder clearChannel() { channel_ = getDefaultInstance().getChannel(); onChanged(); return this; } /** * string channel = 2 [(.gogoproto.moretags) = "yaml:\"source_channel\""]; */ public Builder setChannelBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); channel_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cosmwasm.wasm.v1beta1.MsgIBCCloseChannel) } // @@protoc_insertion_point(class_scope:cosmwasm.wasm.v1beta1.MsgIBCCloseChannel) private static final cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel(); } public static cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MsgIBCCloseChannel parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MsgIBCCloseChannel(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 cosmwasm.wasm.v1beta1.Ibc.MsgIBCCloseChannel getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmwasm_wasm_v1beta1_MsgIBCSend_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmwasm_wasm_v1beta1_MsgIBCSend_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cosmwasm_wasm_v1beta1_MsgIBCCloseChannel_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cosmwasm_wasm_v1beta1_MsgIBCCloseChannel_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\037x/wasm/internal/types/ibc.proto\022\025cosmw" + "asm.wasm.v1beta1\032\024gogoproto/gogo.proto\"\320" + "\001\n\nMsgIBCSend\022*\n\007channel\030\002 \001(\tB\031\362\336\037\025yaml" + ":\"source_channel\"\0221\n\016timeout_height\030\004 \001(" + "\004B\031\362\336\037\025yaml:\"timeout_height\"\0227\n\021timeout_" + "timestamp\030\005 \001(\004B\034\362\336\037\030yaml:\"timeout_times" + "tamp\"\022*\n\004data\030\006 \001(\014B\034\372\336\037\030encoding/json.R" + "awMessage\"@\n\022MsgIBCCloseChannel\022*\n\007chann" + "el\030\002 \001(\tB\031\362\336\037\025yaml:\"source_channel\"B6Z0g" + "ithub.com/CosmWasm/wasmd/x/wasmd/interna" + "l/types\310\341\036\000b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.GoGoProtos.getDescriptor(), }, assigner); internal_static_cosmwasm_wasm_v1beta1_MsgIBCSend_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_cosmwasm_wasm_v1beta1_MsgIBCSend_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmwasm_wasm_v1beta1_MsgIBCSend_descriptor, new java.lang.String[] { "Channel", "TimeoutHeight", "TimeoutTimestamp", "Data", }); internal_static_cosmwasm_wasm_v1beta1_MsgIBCCloseChannel_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_cosmwasm_wasm_v1beta1_MsgIBCCloseChannel_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cosmwasm_wasm_v1beta1_MsgIBCCloseChannel_descriptor, new java.lang.String[] { "Channel", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.protobuf.GoGoProtos.casttype); registry.add(com.google.protobuf.GoGoProtos.goprotoGettersAll); 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 - 2024 Weber Informatics LLC | Privacy Policy