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

jvmMain.terra.wasm.v1beta1.Tx Maven / Gradle / Ivy

There is a newer version: 3.1.6-4
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: terra/wasm/v1beta1/tx.proto

// Protobuf Java Version: 3.25.3
package terra.wasm.v1beta1;

public final class Tx {
  private Tx() {}
  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 MsgStoreCodeOrBuilder extends
      // @@protoc_insertion_point(interface_extends:terra.wasm.v1beta1.MsgStoreCode)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * Sender is the that actor that signed the messages
     * 
* * string sender = 1 [(.gogoproto.moretags) = "yaml:\"sender\""]; * @return The sender. */ java.lang.String getSender(); /** *
     * Sender is the that actor that signed the messages
     * 
* * string sender = 1 [(.gogoproto.moretags) = "yaml:\"sender\""]; * @return The bytes for sender. */ com.google.protobuf.ByteString getSenderBytes(); /** *
     * WASMByteCode can be raw or gzip compressed
     * 
* * bytes wasm_byte_code = 2 [(.gogoproto.customname) = "WASMByteCode", (.gogoproto.moretags) = "yaml:\"wasm_byte_code\""]; * @return The wasmByteCode. */ com.google.protobuf.ByteString getWasmByteCode(); } /** *
   * MsgStoreCode represents a message to submit
   * Wasm code to the system
   * 
* * Protobuf type {@code terra.wasm.v1beta1.MsgStoreCode} */ public static final class MsgStoreCode extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:terra.wasm.v1beta1.MsgStoreCode) MsgStoreCodeOrBuilder { private static final long serialVersionUID = 0L; // Use MsgStoreCode.newBuilder() to construct. private MsgStoreCode(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MsgStoreCode() { sender_ = ""; wasmByteCode_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MsgStoreCode(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgStoreCode_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgStoreCode_fieldAccessorTable .ensureFieldAccessorsInitialized( terra.wasm.v1beta1.Tx.MsgStoreCode.class, terra.wasm.v1beta1.Tx.MsgStoreCode.Builder.class); } public static final int SENDER_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object sender_ = ""; /** *
     * Sender is the that actor that signed the messages
     * 
* * string sender = 1 [(.gogoproto.moretags) = "yaml:\"sender\""]; * @return The sender. */ @java.lang.Override public java.lang.String getSender() { java.lang.Object ref = sender_; 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(); sender_ = s; return s; } } /** *
     * Sender is the that actor that signed the messages
     * 
* * string sender = 1 [(.gogoproto.moretags) = "yaml:\"sender\""]; * @return The bytes for sender. */ @java.lang.Override public com.google.protobuf.ByteString getSenderBytes() { java.lang.Object ref = sender_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sender_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int WASM_BYTE_CODE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString wasmByteCode_ = com.google.protobuf.ByteString.EMPTY; /** *
     * WASMByteCode can be raw or gzip compressed
     * 
* * bytes wasm_byte_code = 2 [(.gogoproto.customname) = "WASMByteCode", (.gogoproto.moretags) = "yaml:\"wasm_byte_code\""]; * @return The wasmByteCode. */ @java.lang.Override public com.google.protobuf.ByteString getWasmByteCode() { return wasmByteCode_; } 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(sender_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sender_); } if (!wasmByteCode_.isEmpty()) { output.writeBytes(2, wasmByteCode_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sender_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sender_); } if (!wasmByteCode_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, wasmByteCode_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof terra.wasm.v1beta1.Tx.MsgStoreCode)) { return super.equals(obj); } terra.wasm.v1beta1.Tx.MsgStoreCode other = (terra.wasm.v1beta1.Tx.MsgStoreCode) obj; if (!getSender() .equals(other.getSender())) return false; if (!getWasmByteCode() .equals(other.getWasmByteCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + SENDER_FIELD_NUMBER; hash = (53 * hash) + getSender().hashCode(); hash = (37 * hash) + WASM_BYTE_CODE_FIELD_NUMBER; hash = (53 * hash) + getWasmByteCode().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static terra.wasm.v1beta1.Tx.MsgStoreCode parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgStoreCode parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgStoreCode parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgStoreCode parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgStoreCode parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgStoreCode parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgStoreCode parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgStoreCode 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 terra.wasm.v1beta1.Tx.MsgStoreCode parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgStoreCode 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 terra.wasm.v1beta1.Tx.MsgStoreCode parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgStoreCode 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(terra.wasm.v1beta1.Tx.MsgStoreCode 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; } /** *
     * MsgStoreCode represents a message to submit
     * Wasm code to the system
     * 
* * Protobuf type {@code terra.wasm.v1beta1.MsgStoreCode} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:terra.wasm.v1beta1.MsgStoreCode) terra.wasm.v1beta1.Tx.MsgStoreCodeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgStoreCode_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgStoreCode_fieldAccessorTable .ensureFieldAccessorsInitialized( terra.wasm.v1beta1.Tx.MsgStoreCode.class, terra.wasm.v1beta1.Tx.MsgStoreCode.Builder.class); } // Construct using terra.wasm.v1beta1.Tx.MsgStoreCode.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; sender_ = ""; wasmByteCode_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgStoreCode_descriptor; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgStoreCode getDefaultInstanceForType() { return terra.wasm.v1beta1.Tx.MsgStoreCode.getDefaultInstance(); } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgStoreCode build() { terra.wasm.v1beta1.Tx.MsgStoreCode result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgStoreCode buildPartial() { terra.wasm.v1beta1.Tx.MsgStoreCode result = new terra.wasm.v1beta1.Tx.MsgStoreCode(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(terra.wasm.v1beta1.Tx.MsgStoreCode result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.sender_ = sender_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.wasmByteCode_ = wasmByteCode_; } } @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 terra.wasm.v1beta1.Tx.MsgStoreCode) { return mergeFrom((terra.wasm.v1beta1.Tx.MsgStoreCode)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(terra.wasm.v1beta1.Tx.MsgStoreCode other) { if (other == terra.wasm.v1beta1.Tx.MsgStoreCode.getDefaultInstance()) return this; if (!other.getSender().isEmpty()) { sender_ = other.sender_; bitField0_ |= 0x00000001; onChanged(); } if (other.getWasmByteCode() != com.google.protobuf.ByteString.EMPTY) { setWasmByteCode(other.getWasmByteCode()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { sender_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { wasmByteCode_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object sender_ = ""; /** *
       * Sender is the that actor that signed the messages
       * 
* * string sender = 1 [(.gogoproto.moretags) = "yaml:\"sender\""]; * @return The sender. */ public java.lang.String getSender() { java.lang.Object ref = sender_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sender_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Sender is the that actor that signed the messages
       * 
* * string sender = 1 [(.gogoproto.moretags) = "yaml:\"sender\""]; * @return The bytes for sender. */ public com.google.protobuf.ByteString getSenderBytes() { java.lang.Object ref = sender_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sender_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Sender is the that actor that signed the messages
       * 
* * string sender = 1 [(.gogoproto.moretags) = "yaml:\"sender\""]; * @param value The sender to set. * @return This builder for chaining. */ public Builder setSender( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sender_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Sender is the that actor that signed the messages
       * 
* * string sender = 1 [(.gogoproto.moretags) = "yaml:\"sender\""]; * @return This builder for chaining. */ public Builder clearSender() { sender_ = getDefaultInstance().getSender(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Sender is the that actor that signed the messages
       * 
* * string sender = 1 [(.gogoproto.moretags) = "yaml:\"sender\""]; * @param value The bytes for sender to set. * @return This builder for chaining. */ public Builder setSenderBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sender_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.ByteString wasmByteCode_ = com.google.protobuf.ByteString.EMPTY; /** *
       * WASMByteCode can be raw or gzip compressed
       * 
* * bytes wasm_byte_code = 2 [(.gogoproto.customname) = "WASMByteCode", (.gogoproto.moretags) = "yaml:\"wasm_byte_code\""]; * @return The wasmByteCode. */ @java.lang.Override public com.google.protobuf.ByteString getWasmByteCode() { return wasmByteCode_; } /** *
       * WASMByteCode can be raw or gzip compressed
       * 
* * bytes wasm_byte_code = 2 [(.gogoproto.customname) = "WASMByteCode", (.gogoproto.moretags) = "yaml:\"wasm_byte_code\""]; * @param value The wasmByteCode to set. * @return This builder for chaining. */ public Builder setWasmByteCode(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } wasmByteCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * WASMByteCode can be raw or gzip compressed
       * 
* * bytes wasm_byte_code = 2 [(.gogoproto.customname) = "WASMByteCode", (.gogoproto.moretags) = "yaml:\"wasm_byte_code\""]; * @return This builder for chaining. */ public Builder clearWasmByteCode() { bitField0_ = (bitField0_ & ~0x00000002); wasmByteCode_ = getDefaultInstance().getWasmByteCode(); 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:terra.wasm.v1beta1.MsgStoreCode) } // @@protoc_insertion_point(class_scope:terra.wasm.v1beta1.MsgStoreCode) private static final terra.wasm.v1beta1.Tx.MsgStoreCode DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new terra.wasm.v1beta1.Tx.MsgStoreCode(); } public static terra.wasm.v1beta1.Tx.MsgStoreCode getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MsgStoreCode parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgStoreCode getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MsgStoreCodeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:terra.wasm.v1beta1.MsgStoreCodeResponse) com.google.protobuf.MessageOrBuilder { /** *
     * CodeID is the reference to the stored WASM code
     * 
* * uint64 code_id = 1 [(.gogoproto.customname) = "CodeID", (.gogoproto.moretags) = "yaml:\"code_id\""]; * @return The codeId. */ long getCodeId(); } /** *
   * MsgStoreCodeResponse defines the Msg/StoreCode response type.
   * 
* * Protobuf type {@code terra.wasm.v1beta1.MsgStoreCodeResponse} */ public static final class MsgStoreCodeResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:terra.wasm.v1beta1.MsgStoreCodeResponse) MsgStoreCodeResponseOrBuilder { private static final long serialVersionUID = 0L; // Use MsgStoreCodeResponse.newBuilder() to construct. private MsgStoreCodeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MsgStoreCodeResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MsgStoreCodeResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgStoreCodeResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgStoreCodeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( terra.wasm.v1beta1.Tx.MsgStoreCodeResponse.class, terra.wasm.v1beta1.Tx.MsgStoreCodeResponse.Builder.class); } public static final int CODE_ID_FIELD_NUMBER = 1; private long codeId_ = 0L; /** *
     * CodeID is the reference to the stored WASM code
     * 
* * uint64 code_id = 1 [(.gogoproto.customname) = "CodeID", (.gogoproto.moretags) = "yaml:\"code_id\""]; * @return The codeId. */ @java.lang.Override public long getCodeId() { return codeId_; } 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 (codeId_ != 0L) { output.writeUInt64(1, codeId_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (codeId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, codeId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof terra.wasm.v1beta1.Tx.MsgStoreCodeResponse)) { return super.equals(obj); } terra.wasm.v1beta1.Tx.MsgStoreCodeResponse other = (terra.wasm.v1beta1.Tx.MsgStoreCodeResponse) obj; if (getCodeId() != other.getCodeId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + CODE_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCodeId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static terra.wasm.v1beta1.Tx.MsgStoreCodeResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgStoreCodeResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgStoreCodeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgStoreCodeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgStoreCodeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgStoreCodeResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgStoreCodeResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgStoreCodeResponse 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 terra.wasm.v1beta1.Tx.MsgStoreCodeResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgStoreCodeResponse 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 terra.wasm.v1beta1.Tx.MsgStoreCodeResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgStoreCodeResponse 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(terra.wasm.v1beta1.Tx.MsgStoreCodeResponse 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; } /** *
     * MsgStoreCodeResponse defines the Msg/StoreCode response type.
     * 
* * Protobuf type {@code terra.wasm.v1beta1.MsgStoreCodeResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:terra.wasm.v1beta1.MsgStoreCodeResponse) terra.wasm.v1beta1.Tx.MsgStoreCodeResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgStoreCodeResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgStoreCodeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( terra.wasm.v1beta1.Tx.MsgStoreCodeResponse.class, terra.wasm.v1beta1.Tx.MsgStoreCodeResponse.Builder.class); } // Construct using terra.wasm.v1beta1.Tx.MsgStoreCodeResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; codeId_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgStoreCodeResponse_descriptor; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgStoreCodeResponse getDefaultInstanceForType() { return terra.wasm.v1beta1.Tx.MsgStoreCodeResponse.getDefaultInstance(); } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgStoreCodeResponse build() { terra.wasm.v1beta1.Tx.MsgStoreCodeResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgStoreCodeResponse buildPartial() { terra.wasm.v1beta1.Tx.MsgStoreCodeResponse result = new terra.wasm.v1beta1.Tx.MsgStoreCodeResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(terra.wasm.v1beta1.Tx.MsgStoreCodeResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.codeId_ = codeId_; } } @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 terra.wasm.v1beta1.Tx.MsgStoreCodeResponse) { return mergeFrom((terra.wasm.v1beta1.Tx.MsgStoreCodeResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(terra.wasm.v1beta1.Tx.MsgStoreCodeResponse other) { if (other == terra.wasm.v1beta1.Tx.MsgStoreCodeResponse.getDefaultInstance()) return this; if (other.getCodeId() != 0L) { setCodeId(other.getCodeId()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { codeId_ = input.readUInt64(); bitField0_ |= 0x00000001; break; } // case 8 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long codeId_ ; /** *
       * CodeID is the reference to the stored WASM code
       * 
* * uint64 code_id = 1 [(.gogoproto.customname) = "CodeID", (.gogoproto.moretags) = "yaml:\"code_id\""]; * @return The codeId. */ @java.lang.Override public long getCodeId() { return codeId_; } /** *
       * CodeID is the reference to the stored WASM code
       * 
* * uint64 code_id = 1 [(.gogoproto.customname) = "CodeID", (.gogoproto.moretags) = "yaml:\"code_id\""]; * @param value The codeId to set. * @return This builder for chaining. */ public Builder setCodeId(long value) { codeId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * CodeID is the reference to the stored WASM code
       * 
* * uint64 code_id = 1 [(.gogoproto.customname) = "CodeID", (.gogoproto.moretags) = "yaml:\"code_id\""]; * @return This builder for chaining. */ public Builder clearCodeId() { bitField0_ = (bitField0_ & ~0x00000001); codeId_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:terra.wasm.v1beta1.MsgStoreCodeResponse) } // @@protoc_insertion_point(class_scope:terra.wasm.v1beta1.MsgStoreCodeResponse) private static final terra.wasm.v1beta1.Tx.MsgStoreCodeResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new terra.wasm.v1beta1.Tx.MsgStoreCodeResponse(); } public static terra.wasm.v1beta1.Tx.MsgStoreCodeResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MsgStoreCodeResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgStoreCodeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MsgMigrateCodeOrBuilder extends // @@protoc_insertion_point(interface_extends:terra.wasm.v1beta1.MsgMigrateCode) com.google.protobuf.MessageOrBuilder { /** *
     * CodeID is the migration target code id
     * 
* * uint64 code_id = 1 [(.gogoproto.customname) = "CodeID", (.gogoproto.moretags) = "yaml:\"code_id\""]; * @return The codeId. */ long getCodeId(); /** *
     * Sender is the that actor that signed the messages
     * 
* * string sender = 2 [(.gogoproto.moretags) = "yaml:\"sender\""]; * @return The sender. */ java.lang.String getSender(); /** *
     * Sender is the that actor that signed the messages
     * 
* * string sender = 2 [(.gogoproto.moretags) = "yaml:\"sender\""]; * @return The bytes for sender. */ com.google.protobuf.ByteString getSenderBytes(); /** *
     * WASMByteCode can be raw or gzip compressed
     * 
* * bytes wasm_byte_code = 3 [(.gogoproto.customname) = "WASMByteCode", (.gogoproto.moretags) = "yaml:\"wasm_byte_code\""]; * @return The wasmByteCode. */ com.google.protobuf.ByteString getWasmByteCode(); } /** *
   * MsgMigrateCode represents a message to submit
   * Wasm code to the system
   * 
* * Protobuf type {@code terra.wasm.v1beta1.MsgMigrateCode} */ public static final class MsgMigrateCode extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:terra.wasm.v1beta1.MsgMigrateCode) MsgMigrateCodeOrBuilder { private static final long serialVersionUID = 0L; // Use MsgMigrateCode.newBuilder() to construct. private MsgMigrateCode(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MsgMigrateCode() { sender_ = ""; wasmByteCode_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MsgMigrateCode(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgMigrateCode_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgMigrateCode_fieldAccessorTable .ensureFieldAccessorsInitialized( terra.wasm.v1beta1.Tx.MsgMigrateCode.class, terra.wasm.v1beta1.Tx.MsgMigrateCode.Builder.class); } public static final int CODE_ID_FIELD_NUMBER = 1; private long codeId_ = 0L; /** *
     * CodeID is the migration target code id
     * 
* * uint64 code_id = 1 [(.gogoproto.customname) = "CodeID", (.gogoproto.moretags) = "yaml:\"code_id\""]; * @return The codeId. */ @java.lang.Override public long getCodeId() { return codeId_; } public static final int SENDER_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object sender_ = ""; /** *
     * Sender is the that actor that signed the messages
     * 
* * string sender = 2 [(.gogoproto.moretags) = "yaml:\"sender\""]; * @return The sender. */ @java.lang.Override public java.lang.String getSender() { java.lang.Object ref = sender_; 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(); sender_ = s; return s; } } /** *
     * Sender is the that actor that signed the messages
     * 
* * string sender = 2 [(.gogoproto.moretags) = "yaml:\"sender\""]; * @return The bytes for sender. */ @java.lang.Override public com.google.protobuf.ByteString getSenderBytes() { java.lang.Object ref = sender_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sender_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int WASM_BYTE_CODE_FIELD_NUMBER = 3; private com.google.protobuf.ByteString wasmByteCode_ = com.google.protobuf.ByteString.EMPTY; /** *
     * WASMByteCode can be raw or gzip compressed
     * 
* * bytes wasm_byte_code = 3 [(.gogoproto.customname) = "WASMByteCode", (.gogoproto.moretags) = "yaml:\"wasm_byte_code\""]; * @return The wasmByteCode. */ @java.lang.Override public com.google.protobuf.ByteString getWasmByteCode() { return wasmByteCode_; } 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 (codeId_ != 0L) { output.writeUInt64(1, codeId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sender_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sender_); } if (!wasmByteCode_.isEmpty()) { output.writeBytes(3, wasmByteCode_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (codeId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, codeId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sender_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sender_); } if (!wasmByteCode_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, wasmByteCode_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof terra.wasm.v1beta1.Tx.MsgMigrateCode)) { return super.equals(obj); } terra.wasm.v1beta1.Tx.MsgMigrateCode other = (terra.wasm.v1beta1.Tx.MsgMigrateCode) obj; if (getCodeId() != other.getCodeId()) return false; if (!getSender() .equals(other.getSender())) return false; if (!getWasmByteCode() .equals(other.getWasmByteCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + CODE_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCodeId()); hash = (37 * hash) + SENDER_FIELD_NUMBER; hash = (53 * hash) + getSender().hashCode(); hash = (37 * hash) + WASM_BYTE_CODE_FIELD_NUMBER; hash = (53 * hash) + getWasmByteCode().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static terra.wasm.v1beta1.Tx.MsgMigrateCode parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgMigrateCode parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgMigrateCode parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgMigrateCode parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgMigrateCode parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgMigrateCode parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgMigrateCode parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgMigrateCode 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 terra.wasm.v1beta1.Tx.MsgMigrateCode parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgMigrateCode 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 terra.wasm.v1beta1.Tx.MsgMigrateCode parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgMigrateCode 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(terra.wasm.v1beta1.Tx.MsgMigrateCode 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; } /** *
     * MsgMigrateCode represents a message to submit
     * Wasm code to the system
     * 
* * Protobuf type {@code terra.wasm.v1beta1.MsgMigrateCode} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:terra.wasm.v1beta1.MsgMigrateCode) terra.wasm.v1beta1.Tx.MsgMigrateCodeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgMigrateCode_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgMigrateCode_fieldAccessorTable .ensureFieldAccessorsInitialized( terra.wasm.v1beta1.Tx.MsgMigrateCode.class, terra.wasm.v1beta1.Tx.MsgMigrateCode.Builder.class); } // Construct using terra.wasm.v1beta1.Tx.MsgMigrateCode.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; codeId_ = 0L; sender_ = ""; wasmByteCode_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgMigrateCode_descriptor; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgMigrateCode getDefaultInstanceForType() { return terra.wasm.v1beta1.Tx.MsgMigrateCode.getDefaultInstance(); } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgMigrateCode build() { terra.wasm.v1beta1.Tx.MsgMigrateCode result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgMigrateCode buildPartial() { terra.wasm.v1beta1.Tx.MsgMigrateCode result = new terra.wasm.v1beta1.Tx.MsgMigrateCode(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(terra.wasm.v1beta1.Tx.MsgMigrateCode result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.codeId_ = codeId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.sender_ = sender_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.wasmByteCode_ = wasmByteCode_; } } @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 terra.wasm.v1beta1.Tx.MsgMigrateCode) { return mergeFrom((terra.wasm.v1beta1.Tx.MsgMigrateCode)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(terra.wasm.v1beta1.Tx.MsgMigrateCode other) { if (other == terra.wasm.v1beta1.Tx.MsgMigrateCode.getDefaultInstance()) return this; if (other.getCodeId() != 0L) { setCodeId(other.getCodeId()); } if (!other.getSender().isEmpty()) { sender_ = other.sender_; bitField0_ |= 0x00000002; onChanged(); } if (other.getWasmByteCode() != com.google.protobuf.ByteString.EMPTY) { setWasmByteCode(other.getWasmByteCode()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { codeId_ = input.readUInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { sender_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { wasmByteCode_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long codeId_ ; /** *
       * CodeID is the migration target code id
       * 
* * uint64 code_id = 1 [(.gogoproto.customname) = "CodeID", (.gogoproto.moretags) = "yaml:\"code_id\""]; * @return The codeId. */ @java.lang.Override public long getCodeId() { return codeId_; } /** *
       * CodeID is the migration target code id
       * 
* * uint64 code_id = 1 [(.gogoproto.customname) = "CodeID", (.gogoproto.moretags) = "yaml:\"code_id\""]; * @param value The codeId to set. * @return This builder for chaining. */ public Builder setCodeId(long value) { codeId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * CodeID is the migration target code id
       * 
* * uint64 code_id = 1 [(.gogoproto.customname) = "CodeID", (.gogoproto.moretags) = "yaml:\"code_id\""]; * @return This builder for chaining. */ public Builder clearCodeId() { bitField0_ = (bitField0_ & ~0x00000001); codeId_ = 0L; onChanged(); return this; } private java.lang.Object sender_ = ""; /** *
       * Sender is the that actor that signed the messages
       * 
* * string sender = 2 [(.gogoproto.moretags) = "yaml:\"sender\""]; * @return The sender. */ public java.lang.String getSender() { java.lang.Object ref = sender_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sender_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Sender is the that actor that signed the messages
       * 
* * string sender = 2 [(.gogoproto.moretags) = "yaml:\"sender\""]; * @return The bytes for sender. */ public com.google.protobuf.ByteString getSenderBytes() { java.lang.Object ref = sender_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sender_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Sender is the that actor that signed the messages
       * 
* * string sender = 2 [(.gogoproto.moretags) = "yaml:\"sender\""]; * @param value The sender to set. * @return This builder for chaining. */ public Builder setSender( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sender_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Sender is the that actor that signed the messages
       * 
* * string sender = 2 [(.gogoproto.moretags) = "yaml:\"sender\""]; * @return This builder for chaining. */ public Builder clearSender() { sender_ = getDefaultInstance().getSender(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Sender is the that actor that signed the messages
       * 
* * string sender = 2 [(.gogoproto.moretags) = "yaml:\"sender\""]; * @param value The bytes for sender to set. * @return This builder for chaining. */ public Builder setSenderBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sender_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private com.google.protobuf.ByteString wasmByteCode_ = com.google.protobuf.ByteString.EMPTY; /** *
       * WASMByteCode can be raw or gzip compressed
       * 
* * bytes wasm_byte_code = 3 [(.gogoproto.customname) = "WASMByteCode", (.gogoproto.moretags) = "yaml:\"wasm_byte_code\""]; * @return The wasmByteCode. */ @java.lang.Override public com.google.protobuf.ByteString getWasmByteCode() { return wasmByteCode_; } /** *
       * WASMByteCode can be raw or gzip compressed
       * 
* * bytes wasm_byte_code = 3 [(.gogoproto.customname) = "WASMByteCode", (.gogoproto.moretags) = "yaml:\"wasm_byte_code\""]; * @param value The wasmByteCode to set. * @return This builder for chaining. */ public Builder setWasmByteCode(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } wasmByteCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * WASMByteCode can be raw or gzip compressed
       * 
* * bytes wasm_byte_code = 3 [(.gogoproto.customname) = "WASMByteCode", (.gogoproto.moretags) = "yaml:\"wasm_byte_code\""]; * @return This builder for chaining. */ public Builder clearWasmByteCode() { bitField0_ = (bitField0_ & ~0x00000004); wasmByteCode_ = getDefaultInstance().getWasmByteCode(); 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:terra.wasm.v1beta1.MsgMigrateCode) } // @@protoc_insertion_point(class_scope:terra.wasm.v1beta1.MsgMigrateCode) private static final terra.wasm.v1beta1.Tx.MsgMigrateCode DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new terra.wasm.v1beta1.Tx.MsgMigrateCode(); } public static terra.wasm.v1beta1.Tx.MsgMigrateCode getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MsgMigrateCode parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgMigrateCode getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MsgMigrateCodeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:terra.wasm.v1beta1.MsgMigrateCodeResponse) com.google.protobuf.MessageOrBuilder { } /** *
   * MsgMigrateCodeResponse defines the Msg/MigrateCode response type.
   * 
* * Protobuf type {@code terra.wasm.v1beta1.MsgMigrateCodeResponse} */ public static final class MsgMigrateCodeResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:terra.wasm.v1beta1.MsgMigrateCodeResponse) MsgMigrateCodeResponseOrBuilder { private static final long serialVersionUID = 0L; // Use MsgMigrateCodeResponse.newBuilder() to construct. private MsgMigrateCodeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MsgMigrateCodeResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MsgMigrateCodeResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgMigrateCodeResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgMigrateCodeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( terra.wasm.v1beta1.Tx.MsgMigrateCodeResponse.class, terra.wasm.v1beta1.Tx.MsgMigrateCodeResponse.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof terra.wasm.v1beta1.Tx.MsgMigrateCodeResponse)) { return super.equals(obj); } terra.wasm.v1beta1.Tx.MsgMigrateCodeResponse other = (terra.wasm.v1beta1.Tx.MsgMigrateCodeResponse) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static terra.wasm.v1beta1.Tx.MsgMigrateCodeResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgMigrateCodeResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgMigrateCodeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgMigrateCodeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgMigrateCodeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgMigrateCodeResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgMigrateCodeResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgMigrateCodeResponse 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 terra.wasm.v1beta1.Tx.MsgMigrateCodeResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgMigrateCodeResponse 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 terra.wasm.v1beta1.Tx.MsgMigrateCodeResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgMigrateCodeResponse 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(terra.wasm.v1beta1.Tx.MsgMigrateCodeResponse 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; } /** *
     * MsgMigrateCodeResponse defines the Msg/MigrateCode response type.
     * 
* * Protobuf type {@code terra.wasm.v1beta1.MsgMigrateCodeResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:terra.wasm.v1beta1.MsgMigrateCodeResponse) terra.wasm.v1beta1.Tx.MsgMigrateCodeResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgMigrateCodeResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgMigrateCodeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( terra.wasm.v1beta1.Tx.MsgMigrateCodeResponse.class, terra.wasm.v1beta1.Tx.MsgMigrateCodeResponse.Builder.class); } // Construct using terra.wasm.v1beta1.Tx.MsgMigrateCodeResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgMigrateCodeResponse_descriptor; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgMigrateCodeResponse getDefaultInstanceForType() { return terra.wasm.v1beta1.Tx.MsgMigrateCodeResponse.getDefaultInstance(); } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgMigrateCodeResponse build() { terra.wasm.v1beta1.Tx.MsgMigrateCodeResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgMigrateCodeResponse buildPartial() { terra.wasm.v1beta1.Tx.MsgMigrateCodeResponse result = new terra.wasm.v1beta1.Tx.MsgMigrateCodeResponse(this); 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 terra.wasm.v1beta1.Tx.MsgMigrateCodeResponse) { return mergeFrom((terra.wasm.v1beta1.Tx.MsgMigrateCodeResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(terra.wasm.v1beta1.Tx.MsgMigrateCodeResponse other) { if (other == terra.wasm.v1beta1.Tx.MsgMigrateCodeResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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:terra.wasm.v1beta1.MsgMigrateCodeResponse) } // @@protoc_insertion_point(class_scope:terra.wasm.v1beta1.MsgMigrateCodeResponse) private static final terra.wasm.v1beta1.Tx.MsgMigrateCodeResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new terra.wasm.v1beta1.Tx.MsgMigrateCodeResponse(); } public static terra.wasm.v1beta1.Tx.MsgMigrateCodeResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MsgMigrateCodeResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgMigrateCodeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MsgInstantiateContractOrBuilder extends // @@protoc_insertion_point(interface_extends:terra.wasm.v1beta1.MsgInstantiateContract) com.google.protobuf.MessageOrBuilder { /** *
     * Sender is an sender address
     * 
* * string sender = 1 [(.gogoproto.moretags) = "yaml:\"sender\""]; * @return The sender. */ java.lang.String getSender(); /** *
     * Sender is an sender address
     * 
* * string sender = 1 [(.gogoproto.moretags) = "yaml:\"sender\""]; * @return The bytes for sender. */ com.google.protobuf.ByteString getSenderBytes(); /** *
     * Admin is an optional admin address who can migrate the contract
     * 
* * string admin = 2 [(.gogoproto.moretags) = "yaml:\"admin\""]; * @return The admin. */ java.lang.String getAdmin(); /** *
     * Admin is an optional admin address who can migrate the contract
     * 
* * string admin = 2 [(.gogoproto.moretags) = "yaml:\"admin\""]; * @return The bytes for admin. */ com.google.protobuf.ByteString getAdminBytes(); /** *
     * CodeID is the reference to the stored WASM code
     * 
* * uint64 code_id = 3 [(.gogoproto.customname) = "CodeID", (.gogoproto.moretags) = "yaml:\"code_id\""]; * @return The codeId. */ long getCodeId(); /** *
     * InitMsg json encoded message to be passed to the contract on instantiation
     * 
* * bytes init_msg = 4 [(.gogoproto.moretags) = "yaml:\"init_msg\"", (.gogoproto.casttype) = "encoding/json.RawMessage"]; * @return The initMsg. */ com.google.protobuf.ByteString getInitMsg(); /** *
     * InitCoins that are transferred to the contract on execution
     * 
* * repeated .cosmos.base.v1beta1.Coin init_coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"init_coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ java.util.List getInitCoinsList(); /** *
     * InitCoins that are transferred to the contract on execution
     * 
* * repeated .cosmos.base.v1beta1.Coin init_coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"init_coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ cosmos.base.v1beta1.CoinOuterClass.Coin getInitCoins(int index); /** *
     * InitCoins that are transferred to the contract on execution
     * 
* * repeated .cosmos.base.v1beta1.Coin init_coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"init_coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ int getInitCoinsCount(); /** *
     * InitCoins that are transferred to the contract on execution
     * 
* * repeated .cosmos.base.v1beta1.Coin init_coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"init_coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ java.util.List getInitCoinsOrBuilderList(); /** *
     * InitCoins that are transferred to the contract on execution
     * 
* * repeated .cosmos.base.v1beta1.Coin init_coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"init_coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getInitCoinsOrBuilder( int index); } /** *
   * MsgInstantiateContract represents a message to create
   * a new smart contract instance for the given
   * code id.
   * 
* * Protobuf type {@code terra.wasm.v1beta1.MsgInstantiateContract} */ public static final class MsgInstantiateContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:terra.wasm.v1beta1.MsgInstantiateContract) MsgInstantiateContractOrBuilder { private static final long serialVersionUID = 0L; // Use MsgInstantiateContract.newBuilder() to construct. private MsgInstantiateContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MsgInstantiateContract() { sender_ = ""; admin_ = ""; initMsg_ = com.google.protobuf.ByteString.EMPTY; initCoins_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MsgInstantiateContract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgInstantiateContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgInstantiateContract_fieldAccessorTable .ensureFieldAccessorsInitialized( terra.wasm.v1beta1.Tx.MsgInstantiateContract.class, terra.wasm.v1beta1.Tx.MsgInstantiateContract.Builder.class); } public static final int SENDER_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object sender_ = ""; /** *
     * Sender is an sender address
     * 
* * string sender = 1 [(.gogoproto.moretags) = "yaml:\"sender\""]; * @return The sender. */ @java.lang.Override public java.lang.String getSender() { java.lang.Object ref = sender_; 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(); sender_ = s; return s; } } /** *
     * Sender is an sender address
     * 
* * string sender = 1 [(.gogoproto.moretags) = "yaml:\"sender\""]; * @return The bytes for sender. */ @java.lang.Override public com.google.protobuf.ByteString getSenderBytes() { java.lang.Object ref = sender_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sender_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ADMIN_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object admin_ = ""; /** *
     * Admin is an optional admin address who can migrate the contract
     * 
* * string admin = 2 [(.gogoproto.moretags) = "yaml:\"admin\""]; * @return The admin. */ @java.lang.Override public java.lang.String getAdmin() { java.lang.Object ref = admin_; 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(); admin_ = s; return s; } } /** *
     * Admin is an optional admin address who can migrate the contract
     * 
* * string admin = 2 [(.gogoproto.moretags) = "yaml:\"admin\""]; * @return The bytes for admin. */ @java.lang.Override public com.google.protobuf.ByteString getAdminBytes() { java.lang.Object ref = admin_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); admin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CODE_ID_FIELD_NUMBER = 3; private long codeId_ = 0L; /** *
     * CodeID is the reference to the stored WASM code
     * 
* * uint64 code_id = 3 [(.gogoproto.customname) = "CodeID", (.gogoproto.moretags) = "yaml:\"code_id\""]; * @return The codeId. */ @java.lang.Override public long getCodeId() { return codeId_; } public static final int INIT_MSG_FIELD_NUMBER = 4; private com.google.protobuf.ByteString initMsg_ = com.google.protobuf.ByteString.EMPTY; /** *
     * InitMsg json encoded message to be passed to the contract on instantiation
     * 
* * bytes init_msg = 4 [(.gogoproto.moretags) = "yaml:\"init_msg\"", (.gogoproto.casttype) = "encoding/json.RawMessage"]; * @return The initMsg. */ @java.lang.Override public com.google.protobuf.ByteString getInitMsg() { return initMsg_; } public static final int INIT_COINS_FIELD_NUMBER = 5; @SuppressWarnings("serial") private java.util.List initCoins_; /** *
     * InitCoins that are transferred to the contract on execution
     * 
* * repeated .cosmos.base.v1beta1.Coin init_coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"init_coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ @java.lang.Override public java.util.List getInitCoinsList() { return initCoins_; } /** *
     * InitCoins that are transferred to the contract on execution
     * 
* * repeated .cosmos.base.v1beta1.Coin init_coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"init_coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ @java.lang.Override public java.util.List getInitCoinsOrBuilderList() { return initCoins_; } /** *
     * InitCoins that are transferred to the contract on execution
     * 
* * repeated .cosmos.base.v1beta1.Coin init_coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"init_coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ @java.lang.Override public int getInitCoinsCount() { return initCoins_.size(); } /** *
     * InitCoins that are transferred to the contract on execution
     * 
* * repeated .cosmos.base.v1beta1.Coin init_coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"init_coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ @java.lang.Override public cosmos.base.v1beta1.CoinOuterClass.Coin getInitCoins(int index) { return initCoins_.get(index); } /** *
     * InitCoins that are transferred to the contract on execution
     * 
* * repeated .cosmos.base.v1beta1.Coin init_coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"init_coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ @java.lang.Override public cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getInitCoinsOrBuilder( int index) { return initCoins_.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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sender_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sender_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(admin_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, admin_); } if (codeId_ != 0L) { output.writeUInt64(3, codeId_); } if (!initMsg_.isEmpty()) { output.writeBytes(4, initMsg_); } for (int i = 0; i < initCoins_.size(); i++) { output.writeMessage(5, initCoins_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sender_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sender_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(admin_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, admin_); } if (codeId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, codeId_); } if (!initMsg_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, initMsg_); } for (int i = 0; i < initCoins_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, initCoins_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof terra.wasm.v1beta1.Tx.MsgInstantiateContract)) { return super.equals(obj); } terra.wasm.v1beta1.Tx.MsgInstantiateContract other = (terra.wasm.v1beta1.Tx.MsgInstantiateContract) obj; if (!getSender() .equals(other.getSender())) return false; if (!getAdmin() .equals(other.getAdmin())) return false; if (getCodeId() != other.getCodeId()) return false; if (!getInitMsg() .equals(other.getInitMsg())) return false; if (!getInitCoinsList() .equals(other.getInitCoinsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + SENDER_FIELD_NUMBER; hash = (53 * hash) + getSender().hashCode(); hash = (37 * hash) + ADMIN_FIELD_NUMBER; hash = (53 * hash) + getAdmin().hashCode(); hash = (37 * hash) + CODE_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCodeId()); hash = (37 * hash) + INIT_MSG_FIELD_NUMBER; hash = (53 * hash) + getInitMsg().hashCode(); if (getInitCoinsCount() > 0) { hash = (37 * hash) + INIT_COINS_FIELD_NUMBER; hash = (53 * hash) + getInitCoinsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static terra.wasm.v1beta1.Tx.MsgInstantiateContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgInstantiateContract parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgInstantiateContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgInstantiateContract parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgInstantiateContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgInstantiateContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgInstantiateContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgInstantiateContract 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 terra.wasm.v1beta1.Tx.MsgInstantiateContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgInstantiateContract 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 terra.wasm.v1beta1.Tx.MsgInstantiateContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgInstantiateContract 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(terra.wasm.v1beta1.Tx.MsgInstantiateContract 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; } /** *
     * MsgInstantiateContract represents a message to create
     * a new smart contract instance for the given
     * code id.
     * 
* * Protobuf type {@code terra.wasm.v1beta1.MsgInstantiateContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:terra.wasm.v1beta1.MsgInstantiateContract) terra.wasm.v1beta1.Tx.MsgInstantiateContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgInstantiateContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgInstantiateContract_fieldAccessorTable .ensureFieldAccessorsInitialized( terra.wasm.v1beta1.Tx.MsgInstantiateContract.class, terra.wasm.v1beta1.Tx.MsgInstantiateContract.Builder.class); } // Construct using terra.wasm.v1beta1.Tx.MsgInstantiateContract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; sender_ = ""; admin_ = ""; codeId_ = 0L; initMsg_ = com.google.protobuf.ByteString.EMPTY; if (initCoinsBuilder_ == null) { initCoins_ = java.util.Collections.emptyList(); } else { initCoins_ = null; initCoinsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgInstantiateContract_descriptor; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgInstantiateContract getDefaultInstanceForType() { return terra.wasm.v1beta1.Tx.MsgInstantiateContract.getDefaultInstance(); } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgInstantiateContract build() { terra.wasm.v1beta1.Tx.MsgInstantiateContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgInstantiateContract buildPartial() { terra.wasm.v1beta1.Tx.MsgInstantiateContract result = new terra.wasm.v1beta1.Tx.MsgInstantiateContract(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(terra.wasm.v1beta1.Tx.MsgInstantiateContract result) { if (initCoinsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { initCoins_ = java.util.Collections.unmodifiableList(initCoins_); bitField0_ = (bitField0_ & ~0x00000010); } result.initCoins_ = initCoins_; } else { result.initCoins_ = initCoinsBuilder_.build(); } } private void buildPartial0(terra.wasm.v1beta1.Tx.MsgInstantiateContract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.sender_ = sender_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.admin_ = admin_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.codeId_ = codeId_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.initMsg_ = initMsg_; } } @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 terra.wasm.v1beta1.Tx.MsgInstantiateContract) { return mergeFrom((terra.wasm.v1beta1.Tx.MsgInstantiateContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(terra.wasm.v1beta1.Tx.MsgInstantiateContract other) { if (other == terra.wasm.v1beta1.Tx.MsgInstantiateContract.getDefaultInstance()) return this; if (!other.getSender().isEmpty()) { sender_ = other.sender_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getAdmin().isEmpty()) { admin_ = other.admin_; bitField0_ |= 0x00000002; onChanged(); } if (other.getCodeId() != 0L) { setCodeId(other.getCodeId()); } if (other.getInitMsg() != com.google.protobuf.ByteString.EMPTY) { setInitMsg(other.getInitMsg()); } if (initCoinsBuilder_ == null) { if (!other.initCoins_.isEmpty()) { if (initCoins_.isEmpty()) { initCoins_ = other.initCoins_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureInitCoinsIsMutable(); initCoins_.addAll(other.initCoins_); } onChanged(); } } else { if (!other.initCoins_.isEmpty()) { if (initCoinsBuilder_.isEmpty()) { initCoinsBuilder_.dispose(); initCoinsBuilder_ = null; initCoins_ = other.initCoins_; bitField0_ = (bitField0_ & ~0x00000010); initCoinsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInitCoinsFieldBuilder() : null; } else { initCoinsBuilder_.addAllMessages(other.initCoins_); } } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { sender_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { admin_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { codeId_ = input.readUInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { initMsg_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { cosmos.base.v1beta1.CoinOuterClass.Coin m = input.readMessage( cosmos.base.v1beta1.CoinOuterClass.Coin.parser(), extensionRegistry); if (initCoinsBuilder_ == null) { ensureInitCoinsIsMutable(); initCoins_.add(m); } else { initCoinsBuilder_.addMessage(m); } break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object sender_ = ""; /** *
       * Sender is an sender address
       * 
* * string sender = 1 [(.gogoproto.moretags) = "yaml:\"sender\""]; * @return The sender. */ public java.lang.String getSender() { java.lang.Object ref = sender_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sender_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Sender is an sender address
       * 
* * string sender = 1 [(.gogoproto.moretags) = "yaml:\"sender\""]; * @return The bytes for sender. */ public com.google.protobuf.ByteString getSenderBytes() { java.lang.Object ref = sender_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sender_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Sender is an sender address
       * 
* * string sender = 1 [(.gogoproto.moretags) = "yaml:\"sender\""]; * @param value The sender to set. * @return This builder for chaining. */ public Builder setSender( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sender_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Sender is an sender address
       * 
* * string sender = 1 [(.gogoproto.moretags) = "yaml:\"sender\""]; * @return This builder for chaining. */ public Builder clearSender() { sender_ = getDefaultInstance().getSender(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Sender is an sender address
       * 
* * string sender = 1 [(.gogoproto.moretags) = "yaml:\"sender\""]; * @param value The bytes for sender to set. * @return This builder for chaining. */ public Builder setSenderBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sender_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object admin_ = ""; /** *
       * Admin is an optional admin address who can migrate the contract
       * 
* * string admin = 2 [(.gogoproto.moretags) = "yaml:\"admin\""]; * @return The admin. */ public java.lang.String getAdmin() { java.lang.Object ref = admin_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); admin_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Admin is an optional admin address who can migrate the contract
       * 
* * string admin = 2 [(.gogoproto.moretags) = "yaml:\"admin\""]; * @return The bytes for admin. */ public com.google.protobuf.ByteString getAdminBytes() { java.lang.Object ref = admin_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); admin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Admin is an optional admin address who can migrate the contract
       * 
* * string admin = 2 [(.gogoproto.moretags) = "yaml:\"admin\""]; * @param value The admin to set. * @return This builder for chaining. */ public Builder setAdmin( java.lang.String value) { if (value == null) { throw new NullPointerException(); } admin_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Admin is an optional admin address who can migrate the contract
       * 
* * string admin = 2 [(.gogoproto.moretags) = "yaml:\"admin\""]; * @return This builder for chaining. */ public Builder clearAdmin() { admin_ = getDefaultInstance().getAdmin(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Admin is an optional admin address who can migrate the contract
       * 
* * string admin = 2 [(.gogoproto.moretags) = "yaml:\"admin\""]; * @param value The bytes for admin to set. * @return This builder for chaining. */ public Builder setAdminBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); admin_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private long codeId_ ; /** *
       * CodeID is the reference to the stored WASM code
       * 
* * uint64 code_id = 3 [(.gogoproto.customname) = "CodeID", (.gogoproto.moretags) = "yaml:\"code_id\""]; * @return The codeId. */ @java.lang.Override public long getCodeId() { return codeId_; } /** *
       * CodeID is the reference to the stored WASM code
       * 
* * uint64 code_id = 3 [(.gogoproto.customname) = "CodeID", (.gogoproto.moretags) = "yaml:\"code_id\""]; * @param value The codeId to set. * @return This builder for chaining. */ public Builder setCodeId(long value) { codeId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * CodeID is the reference to the stored WASM code
       * 
* * uint64 code_id = 3 [(.gogoproto.customname) = "CodeID", (.gogoproto.moretags) = "yaml:\"code_id\""]; * @return This builder for chaining. */ public Builder clearCodeId() { bitField0_ = (bitField0_ & ~0x00000004); codeId_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString initMsg_ = com.google.protobuf.ByteString.EMPTY; /** *
       * InitMsg json encoded message to be passed to the contract on instantiation
       * 
* * bytes init_msg = 4 [(.gogoproto.moretags) = "yaml:\"init_msg\"", (.gogoproto.casttype) = "encoding/json.RawMessage"]; * @return The initMsg. */ @java.lang.Override public com.google.protobuf.ByteString getInitMsg() { return initMsg_; } /** *
       * InitMsg json encoded message to be passed to the contract on instantiation
       * 
* * bytes init_msg = 4 [(.gogoproto.moretags) = "yaml:\"init_msg\"", (.gogoproto.casttype) = "encoding/json.RawMessage"]; * @param value The initMsg to set. * @return This builder for chaining. */ public Builder setInitMsg(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } initMsg_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * InitMsg json encoded message to be passed to the contract on instantiation
       * 
* * bytes init_msg = 4 [(.gogoproto.moretags) = "yaml:\"init_msg\"", (.gogoproto.casttype) = "encoding/json.RawMessage"]; * @return This builder for chaining. */ public Builder clearInitMsg() { bitField0_ = (bitField0_ & ~0x00000008); initMsg_ = getDefaultInstance().getInitMsg(); onChanged(); return this; } private java.util.List initCoins_ = java.util.Collections.emptyList(); private void ensureInitCoinsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { initCoins_ = new java.util.ArrayList(initCoins_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< cosmos.base.v1beta1.CoinOuterClass.Coin, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder> initCoinsBuilder_; /** *
       * InitCoins that are transferred to the contract on execution
       * 
* * repeated .cosmos.base.v1beta1.Coin init_coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"init_coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public java.util.List getInitCoinsList() { if (initCoinsBuilder_ == null) { return java.util.Collections.unmodifiableList(initCoins_); } else { return initCoinsBuilder_.getMessageList(); } } /** *
       * InitCoins that are transferred to the contract on execution
       * 
* * repeated .cosmos.base.v1beta1.Coin init_coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"init_coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public int getInitCoinsCount() { if (initCoinsBuilder_ == null) { return initCoins_.size(); } else { return initCoinsBuilder_.getCount(); } } /** *
       * InitCoins that are transferred to the contract on execution
       * 
* * repeated .cosmos.base.v1beta1.Coin init_coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"init_coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public cosmos.base.v1beta1.CoinOuterClass.Coin getInitCoins(int index) { if (initCoinsBuilder_ == null) { return initCoins_.get(index); } else { return initCoinsBuilder_.getMessage(index); } } /** *
       * InitCoins that are transferred to the contract on execution
       * 
* * repeated .cosmos.base.v1beta1.Coin init_coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"init_coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder setInitCoins( int index, cosmos.base.v1beta1.CoinOuterClass.Coin value) { if (initCoinsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInitCoinsIsMutable(); initCoins_.set(index, value); onChanged(); } else { initCoinsBuilder_.setMessage(index, value); } return this; } /** *
       * InitCoins that are transferred to the contract on execution
       * 
* * repeated .cosmos.base.v1beta1.Coin init_coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"init_coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder setInitCoins( int index, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) { if (initCoinsBuilder_ == null) { ensureInitCoinsIsMutable(); initCoins_.set(index, builderForValue.build()); onChanged(); } else { initCoinsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * InitCoins that are transferred to the contract on execution
       * 
* * repeated .cosmos.base.v1beta1.Coin init_coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"init_coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder addInitCoins(cosmos.base.v1beta1.CoinOuterClass.Coin value) { if (initCoinsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInitCoinsIsMutable(); initCoins_.add(value); onChanged(); } else { initCoinsBuilder_.addMessage(value); } return this; } /** *
       * InitCoins that are transferred to the contract on execution
       * 
* * repeated .cosmos.base.v1beta1.Coin init_coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"init_coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder addInitCoins( int index, cosmos.base.v1beta1.CoinOuterClass.Coin value) { if (initCoinsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInitCoinsIsMutable(); initCoins_.add(index, value); onChanged(); } else { initCoinsBuilder_.addMessage(index, value); } return this; } /** *
       * InitCoins that are transferred to the contract on execution
       * 
* * repeated .cosmos.base.v1beta1.Coin init_coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"init_coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder addInitCoins( cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) { if (initCoinsBuilder_ == null) { ensureInitCoinsIsMutable(); initCoins_.add(builderForValue.build()); onChanged(); } else { initCoinsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * InitCoins that are transferred to the contract on execution
       * 
* * repeated .cosmos.base.v1beta1.Coin init_coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"init_coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder addInitCoins( int index, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) { if (initCoinsBuilder_ == null) { ensureInitCoinsIsMutable(); initCoins_.add(index, builderForValue.build()); onChanged(); } else { initCoinsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * InitCoins that are transferred to the contract on execution
       * 
* * repeated .cosmos.base.v1beta1.Coin init_coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"init_coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder addAllInitCoins( java.lang.Iterable values) { if (initCoinsBuilder_ == null) { ensureInitCoinsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, initCoins_); onChanged(); } else { initCoinsBuilder_.addAllMessages(values); } return this; } /** *
       * InitCoins that are transferred to the contract on execution
       * 
* * repeated .cosmos.base.v1beta1.Coin init_coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"init_coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder clearInitCoins() { if (initCoinsBuilder_ == null) { initCoins_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { initCoinsBuilder_.clear(); } return this; } /** *
       * InitCoins that are transferred to the contract on execution
       * 
* * repeated .cosmos.base.v1beta1.Coin init_coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"init_coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder removeInitCoins(int index) { if (initCoinsBuilder_ == null) { ensureInitCoinsIsMutable(); initCoins_.remove(index); onChanged(); } else { initCoinsBuilder_.remove(index); } return this; } /** *
       * InitCoins that are transferred to the contract on execution
       * 
* * repeated .cosmos.base.v1beta1.Coin init_coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"init_coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public cosmos.base.v1beta1.CoinOuterClass.Coin.Builder getInitCoinsBuilder( int index) { return getInitCoinsFieldBuilder().getBuilder(index); } /** *
       * InitCoins that are transferred to the contract on execution
       * 
* * repeated .cosmos.base.v1beta1.Coin init_coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"init_coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getInitCoinsOrBuilder( int index) { if (initCoinsBuilder_ == null) { return initCoins_.get(index); } else { return initCoinsBuilder_.getMessageOrBuilder(index); } } /** *
       * InitCoins that are transferred to the contract on execution
       * 
* * repeated .cosmos.base.v1beta1.Coin init_coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"init_coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public java.util.List getInitCoinsOrBuilderList() { if (initCoinsBuilder_ != null) { return initCoinsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(initCoins_); } } /** *
       * InitCoins that are transferred to the contract on execution
       * 
* * repeated .cosmos.base.v1beta1.Coin init_coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"init_coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public cosmos.base.v1beta1.CoinOuterClass.Coin.Builder addInitCoinsBuilder() { return getInitCoinsFieldBuilder().addBuilder( cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance()); } /** *
       * InitCoins that are transferred to the contract on execution
       * 
* * repeated .cosmos.base.v1beta1.Coin init_coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"init_coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public cosmos.base.v1beta1.CoinOuterClass.Coin.Builder addInitCoinsBuilder( int index) { return getInitCoinsFieldBuilder().addBuilder( index, cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance()); } /** *
       * InitCoins that are transferred to the contract on execution
       * 
* * repeated .cosmos.base.v1beta1.Coin init_coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"init_coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public java.util.List getInitCoinsBuilderList() { return getInitCoinsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< cosmos.base.v1beta1.CoinOuterClass.Coin, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder> getInitCoinsFieldBuilder() { if (initCoinsBuilder_ == null) { initCoinsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< cosmos.base.v1beta1.CoinOuterClass.Coin, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>( initCoins_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); initCoins_ = null; } return initCoinsBuilder_; } @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:terra.wasm.v1beta1.MsgInstantiateContract) } // @@protoc_insertion_point(class_scope:terra.wasm.v1beta1.MsgInstantiateContract) private static final terra.wasm.v1beta1.Tx.MsgInstantiateContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new terra.wasm.v1beta1.Tx.MsgInstantiateContract(); } public static terra.wasm.v1beta1.Tx.MsgInstantiateContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MsgInstantiateContract parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgInstantiateContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MsgInstantiateContractResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:terra.wasm.v1beta1.MsgInstantiateContractResponse) com.google.protobuf.MessageOrBuilder { /** *
     * ContractAddress is the bech32 address of the new contract instance.
     * 
* * string contract_address = 1 [(.gogoproto.moretags) = "yaml:\"contract_address\""]; * @return The contractAddress. */ java.lang.String getContractAddress(); /** *
     * ContractAddress is the bech32 address of the new contract instance.
     * 
* * string contract_address = 1 [(.gogoproto.moretags) = "yaml:\"contract_address\""]; * @return The bytes for contractAddress. */ com.google.protobuf.ByteString getContractAddressBytes(); /** *
     * Data contains base64-encoded bytes to returned from the contract
     * 
* * bytes data = 2 [(.gogoproto.moretags) = "yaml:\"data\""]; * @return The data. */ com.google.protobuf.ByteString getData(); } /** *
   * MsgInstantiateContractResponse defines the Msg/InstantiateContract response type.
   * 
* * Protobuf type {@code terra.wasm.v1beta1.MsgInstantiateContractResponse} */ public static final class MsgInstantiateContractResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:terra.wasm.v1beta1.MsgInstantiateContractResponse) MsgInstantiateContractResponseOrBuilder { private static final long serialVersionUID = 0L; // Use MsgInstantiateContractResponse.newBuilder() to construct. private MsgInstantiateContractResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MsgInstantiateContractResponse() { contractAddress_ = ""; data_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MsgInstantiateContractResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgInstantiateContractResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgInstantiateContractResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( terra.wasm.v1beta1.Tx.MsgInstantiateContractResponse.class, terra.wasm.v1beta1.Tx.MsgInstantiateContractResponse.Builder.class); } public static final int CONTRACT_ADDRESS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object contractAddress_ = ""; /** *
     * ContractAddress is the bech32 address of the new contract instance.
     * 
* * string contract_address = 1 [(.gogoproto.moretags) = "yaml:\"contract_address\""]; * @return The contractAddress. */ @java.lang.Override public java.lang.String getContractAddress() { java.lang.Object ref = contractAddress_; 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(); contractAddress_ = s; return s; } } /** *
     * ContractAddress is the bech32 address of the new contract instance.
     * 
* * string contract_address = 1 [(.gogoproto.moretags) = "yaml:\"contract_address\""]; * @return The bytes for contractAddress. */ @java.lang.Override public com.google.protobuf.ByteString getContractAddressBytes() { java.lang.Object ref = contractAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); contractAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DATA_FIELD_NUMBER = 2; private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** *
     * Data contains base64-encoded bytes to returned from the contract
     * 
* * bytes data = 2 [(.gogoproto.moretags) = "yaml:\"data\""]; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contractAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contractAddress_); } if (!data_.isEmpty()) { output.writeBytes(2, data_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contractAddress_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, contractAddress_); } if (!data_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, data_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof terra.wasm.v1beta1.Tx.MsgInstantiateContractResponse)) { return super.equals(obj); } terra.wasm.v1beta1.Tx.MsgInstantiateContractResponse other = (terra.wasm.v1beta1.Tx.MsgInstantiateContractResponse) obj; if (!getContractAddress() .equals(other.getContractAddress())) return false; if (!getData() .equals(other.getData())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + CONTRACT_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getContractAddress().hashCode(); hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static terra.wasm.v1beta1.Tx.MsgInstantiateContractResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgInstantiateContractResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgInstantiateContractResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgInstantiateContractResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgInstantiateContractResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgInstantiateContractResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgInstantiateContractResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgInstantiateContractResponse 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 terra.wasm.v1beta1.Tx.MsgInstantiateContractResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgInstantiateContractResponse 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 terra.wasm.v1beta1.Tx.MsgInstantiateContractResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgInstantiateContractResponse 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(terra.wasm.v1beta1.Tx.MsgInstantiateContractResponse 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; } /** *
     * MsgInstantiateContractResponse defines the Msg/InstantiateContract response type.
     * 
* * Protobuf type {@code terra.wasm.v1beta1.MsgInstantiateContractResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:terra.wasm.v1beta1.MsgInstantiateContractResponse) terra.wasm.v1beta1.Tx.MsgInstantiateContractResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgInstantiateContractResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgInstantiateContractResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( terra.wasm.v1beta1.Tx.MsgInstantiateContractResponse.class, terra.wasm.v1beta1.Tx.MsgInstantiateContractResponse.Builder.class); } // Construct using terra.wasm.v1beta1.Tx.MsgInstantiateContractResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; contractAddress_ = ""; data_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgInstantiateContractResponse_descriptor; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgInstantiateContractResponse getDefaultInstanceForType() { return terra.wasm.v1beta1.Tx.MsgInstantiateContractResponse.getDefaultInstance(); } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgInstantiateContractResponse build() { terra.wasm.v1beta1.Tx.MsgInstantiateContractResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgInstantiateContractResponse buildPartial() { terra.wasm.v1beta1.Tx.MsgInstantiateContractResponse result = new terra.wasm.v1beta1.Tx.MsgInstantiateContractResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(terra.wasm.v1beta1.Tx.MsgInstantiateContractResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.contractAddress_ = contractAddress_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.data_ = data_; } } @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 terra.wasm.v1beta1.Tx.MsgInstantiateContractResponse) { return mergeFrom((terra.wasm.v1beta1.Tx.MsgInstantiateContractResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(terra.wasm.v1beta1.Tx.MsgInstantiateContractResponse other) { if (other == terra.wasm.v1beta1.Tx.MsgInstantiateContractResponse.getDefaultInstance()) return this; if (!other.getContractAddress().isEmpty()) { contractAddress_ = other.contractAddress_; bitField0_ |= 0x00000001; onChanged(); } if (other.getData() != com.google.protobuf.ByteString.EMPTY) { setData(other.getData()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { contractAddress_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { data_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object contractAddress_ = ""; /** *
       * ContractAddress is the bech32 address of the new contract instance.
       * 
* * string contract_address = 1 [(.gogoproto.moretags) = "yaml:\"contract_address\""]; * @return The contractAddress. */ public java.lang.String getContractAddress() { java.lang.Object ref = contractAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contractAddress_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ContractAddress is the bech32 address of the new contract instance.
       * 
* * string contract_address = 1 [(.gogoproto.moretags) = "yaml:\"contract_address\""]; * @return The bytes for contractAddress. */ public com.google.protobuf.ByteString getContractAddressBytes() { java.lang.Object ref = contractAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); contractAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ContractAddress is the bech32 address of the new contract instance.
       * 
* * string contract_address = 1 [(.gogoproto.moretags) = "yaml:\"contract_address\""]; * @param value The contractAddress to set. * @return This builder for chaining. */ public Builder setContractAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } contractAddress_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * ContractAddress is the bech32 address of the new contract instance.
       * 
* * string contract_address = 1 [(.gogoproto.moretags) = "yaml:\"contract_address\""]; * @return This builder for chaining. */ public Builder clearContractAddress() { contractAddress_ = getDefaultInstance().getContractAddress(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * ContractAddress is the bech32 address of the new contract instance.
       * 
* * string contract_address = 1 [(.gogoproto.moretags) = "yaml:\"contract_address\""]; * @param value The bytes for contractAddress to set. * @return This builder for chaining. */ public Builder setContractAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); contractAddress_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Data contains base64-encoded bytes to returned from the contract
       * 
* * bytes data = 2 [(.gogoproto.moretags) = "yaml:\"data\""]; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } /** *
       * Data contains base64-encoded bytes to returned from the contract
       * 
* * bytes data = 2 [(.gogoproto.moretags) = "yaml:\"data\""]; * @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; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Data contains base64-encoded bytes to returned from the contract
       * 
* * bytes data = 2 [(.gogoproto.moretags) = "yaml:\"data\""]; * @return This builder for chaining. */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000002); data_ = getDefaultInstance().getData(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:terra.wasm.v1beta1.MsgInstantiateContractResponse) } // @@protoc_insertion_point(class_scope:terra.wasm.v1beta1.MsgInstantiateContractResponse) private static final terra.wasm.v1beta1.Tx.MsgInstantiateContractResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new terra.wasm.v1beta1.Tx.MsgInstantiateContractResponse(); } public static terra.wasm.v1beta1.Tx.MsgInstantiateContractResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MsgInstantiateContractResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgInstantiateContractResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MsgExecuteContractOrBuilder extends // @@protoc_insertion_point(interface_extends:terra.wasm.v1beta1.MsgExecuteContract) com.google.protobuf.MessageOrBuilder { /** *
     * Sender is the that actor that signed the messages
     * 
* * string sender = 1 [(.gogoproto.moretags) = "yaml:\"sender\""]; * @return The sender. */ java.lang.String getSender(); /** *
     * Sender is the that actor that signed the messages
     * 
* * string sender = 1 [(.gogoproto.moretags) = "yaml:\"sender\""]; * @return The bytes for sender. */ com.google.protobuf.ByteString getSenderBytes(); /** *
     * Contract is the address of the smart contract
     * 
* * string contract = 2 [(.gogoproto.moretags) = "yaml:\"contract\""]; * @return The contract. */ java.lang.String getContract(); /** *
     * Contract is the address of the smart contract
     * 
* * string contract = 2 [(.gogoproto.moretags) = "yaml:\"contract\""]; * @return The bytes for contract. */ com.google.protobuf.ByteString getContractBytes(); /** *
     * ExecuteMsg json encoded message to be passed to the contract
     * 
* * bytes execute_msg = 3 [(.gogoproto.moretags) = "yaml:\"execute_msg\"", (.gogoproto.casttype) = "encoding/json.RawMessage"]; * @return The executeMsg. */ com.google.protobuf.ByteString getExecuteMsg(); /** *
     * Coins that are transferred to the contract on execution
     * 
* * repeated .cosmos.base.v1beta1.Coin coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ java.util.List getCoinsList(); /** *
     * Coins that are transferred to the contract on execution
     * 
* * repeated .cosmos.base.v1beta1.Coin coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ cosmos.base.v1beta1.CoinOuterClass.Coin getCoins(int index); /** *
     * Coins that are transferred to the contract on execution
     * 
* * repeated .cosmos.base.v1beta1.Coin coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ int getCoinsCount(); /** *
     * Coins that are transferred to the contract on execution
     * 
* * repeated .cosmos.base.v1beta1.Coin coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ java.util.List getCoinsOrBuilderList(); /** *
     * Coins that are transferred to the contract on execution
     * 
* * repeated .cosmos.base.v1beta1.Coin coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getCoinsOrBuilder( int index); } /** *
   * MsgExecuteContract represents a message to
   * submits the given message data to a smart contract.
   * 
* * Protobuf type {@code terra.wasm.v1beta1.MsgExecuteContract} */ public static final class MsgExecuteContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:terra.wasm.v1beta1.MsgExecuteContract) MsgExecuteContractOrBuilder { private static final long serialVersionUID = 0L; // Use MsgExecuteContract.newBuilder() to construct. private MsgExecuteContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MsgExecuteContract() { sender_ = ""; contract_ = ""; executeMsg_ = com.google.protobuf.ByteString.EMPTY; coins_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MsgExecuteContract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgExecuteContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgExecuteContract_fieldAccessorTable .ensureFieldAccessorsInitialized( terra.wasm.v1beta1.Tx.MsgExecuteContract.class, terra.wasm.v1beta1.Tx.MsgExecuteContract.Builder.class); } public static final int SENDER_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object sender_ = ""; /** *
     * Sender is the that actor that signed the messages
     * 
* * string sender = 1 [(.gogoproto.moretags) = "yaml:\"sender\""]; * @return The sender. */ @java.lang.Override public java.lang.String getSender() { java.lang.Object ref = sender_; 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(); sender_ = s; return s; } } /** *
     * Sender is the that actor that signed the messages
     * 
* * string sender = 1 [(.gogoproto.moretags) = "yaml:\"sender\""]; * @return The bytes for sender. */ @java.lang.Override public com.google.protobuf.ByteString getSenderBytes() { java.lang.Object ref = sender_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sender_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONTRACT_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object contract_ = ""; /** *
     * Contract is the address of the smart contract
     * 
* * string contract = 2 [(.gogoproto.moretags) = "yaml:\"contract\""]; * @return The contract. */ @java.lang.Override public java.lang.String getContract() { java.lang.Object ref = contract_; 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(); contract_ = s; return s; } } /** *
     * Contract is the address of the smart contract
     * 
* * string contract = 2 [(.gogoproto.moretags) = "yaml:\"contract\""]; * @return The bytes for contract. */ @java.lang.Override public com.google.protobuf.ByteString getContractBytes() { java.lang.Object ref = contract_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); contract_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EXECUTE_MSG_FIELD_NUMBER = 3; private com.google.protobuf.ByteString executeMsg_ = com.google.protobuf.ByteString.EMPTY; /** *
     * ExecuteMsg json encoded message to be passed to the contract
     * 
* * bytes execute_msg = 3 [(.gogoproto.moretags) = "yaml:\"execute_msg\"", (.gogoproto.casttype) = "encoding/json.RawMessage"]; * @return The executeMsg. */ @java.lang.Override public com.google.protobuf.ByteString getExecuteMsg() { return executeMsg_; } public static final int COINS_FIELD_NUMBER = 5; @SuppressWarnings("serial") private java.util.List coins_; /** *
     * Coins that are transferred to the contract on execution
     * 
* * repeated .cosmos.base.v1beta1.Coin coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ @java.lang.Override public java.util.List getCoinsList() { return coins_; } /** *
     * Coins that are transferred to the contract on execution
     * 
* * repeated .cosmos.base.v1beta1.Coin coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ @java.lang.Override public java.util.List getCoinsOrBuilderList() { return coins_; } /** *
     * Coins that are transferred to the contract on execution
     * 
* * repeated .cosmos.base.v1beta1.Coin coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ @java.lang.Override public int getCoinsCount() { return coins_.size(); } /** *
     * Coins that are transferred to the contract on execution
     * 
* * repeated .cosmos.base.v1beta1.Coin coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ @java.lang.Override public cosmos.base.v1beta1.CoinOuterClass.Coin getCoins(int index) { return coins_.get(index); } /** *
     * Coins that are transferred to the contract on execution
     * 
* * repeated .cosmos.base.v1beta1.Coin coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ @java.lang.Override public cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getCoinsOrBuilder( int index) { return coins_.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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sender_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sender_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contract_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, contract_); } if (!executeMsg_.isEmpty()) { output.writeBytes(3, executeMsg_); } for (int i = 0; i < coins_.size(); i++) { output.writeMessage(5, coins_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sender_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sender_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contract_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, contract_); } if (!executeMsg_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, executeMsg_); } for (int i = 0; i < coins_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, coins_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof terra.wasm.v1beta1.Tx.MsgExecuteContract)) { return super.equals(obj); } terra.wasm.v1beta1.Tx.MsgExecuteContract other = (terra.wasm.v1beta1.Tx.MsgExecuteContract) obj; if (!getSender() .equals(other.getSender())) return false; if (!getContract() .equals(other.getContract())) return false; if (!getExecuteMsg() .equals(other.getExecuteMsg())) return false; if (!getCoinsList() .equals(other.getCoinsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + SENDER_FIELD_NUMBER; hash = (53 * hash) + getSender().hashCode(); hash = (37 * hash) + CONTRACT_FIELD_NUMBER; hash = (53 * hash) + getContract().hashCode(); hash = (37 * hash) + EXECUTE_MSG_FIELD_NUMBER; hash = (53 * hash) + getExecuteMsg().hashCode(); if (getCoinsCount() > 0) { hash = (37 * hash) + COINS_FIELD_NUMBER; hash = (53 * hash) + getCoinsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static terra.wasm.v1beta1.Tx.MsgExecuteContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgExecuteContract parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgExecuteContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgExecuteContract parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgExecuteContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgExecuteContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgExecuteContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgExecuteContract 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 terra.wasm.v1beta1.Tx.MsgExecuteContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgExecuteContract 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 terra.wasm.v1beta1.Tx.MsgExecuteContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgExecuteContract 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(terra.wasm.v1beta1.Tx.MsgExecuteContract 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; } /** *
     * MsgExecuteContract represents a message to
     * submits the given message data to a smart contract.
     * 
* * Protobuf type {@code terra.wasm.v1beta1.MsgExecuteContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:terra.wasm.v1beta1.MsgExecuteContract) terra.wasm.v1beta1.Tx.MsgExecuteContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgExecuteContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgExecuteContract_fieldAccessorTable .ensureFieldAccessorsInitialized( terra.wasm.v1beta1.Tx.MsgExecuteContract.class, terra.wasm.v1beta1.Tx.MsgExecuteContract.Builder.class); } // Construct using terra.wasm.v1beta1.Tx.MsgExecuteContract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; sender_ = ""; contract_ = ""; executeMsg_ = com.google.protobuf.ByteString.EMPTY; if (coinsBuilder_ == null) { coins_ = java.util.Collections.emptyList(); } else { coins_ = null; coinsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgExecuteContract_descriptor; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgExecuteContract getDefaultInstanceForType() { return terra.wasm.v1beta1.Tx.MsgExecuteContract.getDefaultInstance(); } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgExecuteContract build() { terra.wasm.v1beta1.Tx.MsgExecuteContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgExecuteContract buildPartial() { terra.wasm.v1beta1.Tx.MsgExecuteContract result = new terra.wasm.v1beta1.Tx.MsgExecuteContract(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(terra.wasm.v1beta1.Tx.MsgExecuteContract result) { if (coinsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { coins_ = java.util.Collections.unmodifiableList(coins_); bitField0_ = (bitField0_ & ~0x00000008); } result.coins_ = coins_; } else { result.coins_ = coinsBuilder_.build(); } } private void buildPartial0(terra.wasm.v1beta1.Tx.MsgExecuteContract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.sender_ = sender_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.contract_ = contract_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.executeMsg_ = executeMsg_; } } @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 terra.wasm.v1beta1.Tx.MsgExecuteContract) { return mergeFrom((terra.wasm.v1beta1.Tx.MsgExecuteContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(terra.wasm.v1beta1.Tx.MsgExecuteContract other) { if (other == terra.wasm.v1beta1.Tx.MsgExecuteContract.getDefaultInstance()) return this; if (!other.getSender().isEmpty()) { sender_ = other.sender_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getContract().isEmpty()) { contract_ = other.contract_; bitField0_ |= 0x00000002; onChanged(); } if (other.getExecuteMsg() != com.google.protobuf.ByteString.EMPTY) { setExecuteMsg(other.getExecuteMsg()); } if (coinsBuilder_ == null) { if (!other.coins_.isEmpty()) { if (coins_.isEmpty()) { coins_ = other.coins_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureCoinsIsMutable(); coins_.addAll(other.coins_); } onChanged(); } } else { if (!other.coins_.isEmpty()) { if (coinsBuilder_.isEmpty()) { coinsBuilder_.dispose(); coinsBuilder_ = null; coins_ = other.coins_; bitField0_ = (bitField0_ & ~0x00000008); coinsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCoinsFieldBuilder() : null; } else { coinsBuilder_.addAllMessages(other.coins_); } } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { sender_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { contract_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { executeMsg_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 case 42: { cosmos.base.v1beta1.CoinOuterClass.Coin m = input.readMessage( cosmos.base.v1beta1.CoinOuterClass.Coin.parser(), extensionRegistry); if (coinsBuilder_ == null) { ensureCoinsIsMutable(); coins_.add(m); } else { coinsBuilder_.addMessage(m); } break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object sender_ = ""; /** *
       * Sender is the that actor that signed the messages
       * 
* * string sender = 1 [(.gogoproto.moretags) = "yaml:\"sender\""]; * @return The sender. */ public java.lang.String getSender() { java.lang.Object ref = sender_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sender_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Sender is the that actor that signed the messages
       * 
* * string sender = 1 [(.gogoproto.moretags) = "yaml:\"sender\""]; * @return The bytes for sender. */ public com.google.protobuf.ByteString getSenderBytes() { java.lang.Object ref = sender_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sender_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Sender is the that actor that signed the messages
       * 
* * string sender = 1 [(.gogoproto.moretags) = "yaml:\"sender\""]; * @param value The sender to set. * @return This builder for chaining. */ public Builder setSender( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sender_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Sender is the that actor that signed the messages
       * 
* * string sender = 1 [(.gogoproto.moretags) = "yaml:\"sender\""]; * @return This builder for chaining. */ public Builder clearSender() { sender_ = getDefaultInstance().getSender(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Sender is the that actor that signed the messages
       * 
* * string sender = 1 [(.gogoproto.moretags) = "yaml:\"sender\""]; * @param value The bytes for sender to set. * @return This builder for chaining. */ public Builder setSenderBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sender_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object contract_ = ""; /** *
       * Contract is the address of the smart contract
       * 
* * string contract = 2 [(.gogoproto.moretags) = "yaml:\"contract\""]; * @return The contract. */ public java.lang.String getContract() { java.lang.Object ref = contract_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contract_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Contract is the address of the smart contract
       * 
* * string contract = 2 [(.gogoproto.moretags) = "yaml:\"contract\""]; * @return The bytes for contract. */ public com.google.protobuf.ByteString getContractBytes() { java.lang.Object ref = contract_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); contract_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Contract is the address of the smart contract
       * 
* * string contract = 2 [(.gogoproto.moretags) = "yaml:\"contract\""]; * @param value The contract to set. * @return This builder for chaining. */ public Builder setContract( java.lang.String value) { if (value == null) { throw new NullPointerException(); } contract_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Contract is the address of the smart contract
       * 
* * string contract = 2 [(.gogoproto.moretags) = "yaml:\"contract\""]; * @return This builder for chaining. */ public Builder clearContract() { contract_ = getDefaultInstance().getContract(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Contract is the address of the smart contract
       * 
* * string contract = 2 [(.gogoproto.moretags) = "yaml:\"contract\""]; * @param value The bytes for contract to set. * @return This builder for chaining. */ public Builder setContractBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); contract_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private com.google.protobuf.ByteString executeMsg_ = com.google.protobuf.ByteString.EMPTY; /** *
       * ExecuteMsg json encoded message to be passed to the contract
       * 
* * bytes execute_msg = 3 [(.gogoproto.moretags) = "yaml:\"execute_msg\"", (.gogoproto.casttype) = "encoding/json.RawMessage"]; * @return The executeMsg. */ @java.lang.Override public com.google.protobuf.ByteString getExecuteMsg() { return executeMsg_; } /** *
       * ExecuteMsg json encoded message to be passed to the contract
       * 
* * bytes execute_msg = 3 [(.gogoproto.moretags) = "yaml:\"execute_msg\"", (.gogoproto.casttype) = "encoding/json.RawMessage"]; * @param value The executeMsg to set. * @return This builder for chaining. */ public Builder setExecuteMsg(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } executeMsg_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * ExecuteMsg json encoded message to be passed to the contract
       * 
* * bytes execute_msg = 3 [(.gogoproto.moretags) = "yaml:\"execute_msg\"", (.gogoproto.casttype) = "encoding/json.RawMessage"]; * @return This builder for chaining. */ public Builder clearExecuteMsg() { bitField0_ = (bitField0_ & ~0x00000004); executeMsg_ = getDefaultInstance().getExecuteMsg(); onChanged(); return this; } private java.util.List coins_ = java.util.Collections.emptyList(); private void ensureCoinsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { coins_ = new java.util.ArrayList(coins_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< cosmos.base.v1beta1.CoinOuterClass.Coin, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder> coinsBuilder_; /** *
       * Coins that are transferred to the contract on execution
       * 
* * repeated .cosmos.base.v1beta1.Coin coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public java.util.List getCoinsList() { if (coinsBuilder_ == null) { return java.util.Collections.unmodifiableList(coins_); } else { return coinsBuilder_.getMessageList(); } } /** *
       * Coins that are transferred to the contract on execution
       * 
* * repeated .cosmos.base.v1beta1.Coin coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public int getCoinsCount() { if (coinsBuilder_ == null) { return coins_.size(); } else { return coinsBuilder_.getCount(); } } /** *
       * Coins that are transferred to the contract on execution
       * 
* * repeated .cosmos.base.v1beta1.Coin coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public cosmos.base.v1beta1.CoinOuterClass.Coin getCoins(int index) { if (coinsBuilder_ == null) { return coins_.get(index); } else { return coinsBuilder_.getMessage(index); } } /** *
       * Coins that are transferred to the contract on execution
       * 
* * repeated .cosmos.base.v1beta1.Coin coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder setCoins( int index, cosmos.base.v1beta1.CoinOuterClass.Coin value) { if (coinsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCoinsIsMutable(); coins_.set(index, value); onChanged(); } else { coinsBuilder_.setMessage(index, value); } return this; } /** *
       * Coins that are transferred to the contract on execution
       * 
* * repeated .cosmos.base.v1beta1.Coin coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder setCoins( int index, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) { if (coinsBuilder_ == null) { ensureCoinsIsMutable(); coins_.set(index, builderForValue.build()); onChanged(); } else { coinsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Coins that are transferred to the contract on execution
       * 
* * repeated .cosmos.base.v1beta1.Coin coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder addCoins(cosmos.base.v1beta1.CoinOuterClass.Coin value) { if (coinsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCoinsIsMutable(); coins_.add(value); onChanged(); } else { coinsBuilder_.addMessage(value); } return this; } /** *
       * Coins that are transferred to the contract on execution
       * 
* * repeated .cosmos.base.v1beta1.Coin coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder addCoins( int index, cosmos.base.v1beta1.CoinOuterClass.Coin value) { if (coinsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCoinsIsMutable(); coins_.add(index, value); onChanged(); } else { coinsBuilder_.addMessage(index, value); } return this; } /** *
       * Coins that are transferred to the contract on execution
       * 
* * repeated .cosmos.base.v1beta1.Coin coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder addCoins( cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) { if (coinsBuilder_ == null) { ensureCoinsIsMutable(); coins_.add(builderForValue.build()); onChanged(); } else { coinsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Coins that are transferred to the contract on execution
       * 
* * repeated .cosmos.base.v1beta1.Coin coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder addCoins( int index, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder builderForValue) { if (coinsBuilder_ == null) { ensureCoinsIsMutable(); coins_.add(index, builderForValue.build()); onChanged(); } else { coinsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Coins that are transferred to the contract on execution
       * 
* * repeated .cosmos.base.v1beta1.Coin coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder addAllCoins( java.lang.Iterable values) { if (coinsBuilder_ == null) { ensureCoinsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, coins_); onChanged(); } else { coinsBuilder_.addAllMessages(values); } return this; } /** *
       * Coins that are transferred to the contract on execution
       * 
* * repeated .cosmos.base.v1beta1.Coin coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder clearCoins() { if (coinsBuilder_ == null) { coins_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { coinsBuilder_.clear(); } return this; } /** *
       * Coins that are transferred to the contract on execution
       * 
* * repeated .cosmos.base.v1beta1.Coin coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public Builder removeCoins(int index) { if (coinsBuilder_ == null) { ensureCoinsIsMutable(); coins_.remove(index); onChanged(); } else { coinsBuilder_.remove(index); } return this; } /** *
       * Coins that are transferred to the contract on execution
       * 
* * repeated .cosmos.base.v1beta1.Coin coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public cosmos.base.v1beta1.CoinOuterClass.Coin.Builder getCoinsBuilder( int index) { return getCoinsFieldBuilder().getBuilder(index); } /** *
       * Coins that are transferred to the contract on execution
       * 
* * repeated .cosmos.base.v1beta1.Coin coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder getCoinsOrBuilder( int index) { if (coinsBuilder_ == null) { return coins_.get(index); } else { return coinsBuilder_.getMessageOrBuilder(index); } } /** *
       * Coins that are transferred to the contract on execution
       * 
* * repeated .cosmos.base.v1beta1.Coin coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public java.util.List getCoinsOrBuilderList() { if (coinsBuilder_ != null) { return coinsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(coins_); } } /** *
       * Coins that are transferred to the contract on execution
       * 
* * repeated .cosmos.base.v1beta1.Coin coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public cosmos.base.v1beta1.CoinOuterClass.Coin.Builder addCoinsBuilder() { return getCoinsFieldBuilder().addBuilder( cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance()); } /** *
       * Coins that are transferred to the contract on execution
       * 
* * repeated .cosmos.base.v1beta1.Coin coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public cosmos.base.v1beta1.CoinOuterClass.Coin.Builder addCoinsBuilder( int index) { return getCoinsFieldBuilder().addBuilder( index, cosmos.base.v1beta1.CoinOuterClass.Coin.getDefaultInstance()); } /** *
       * Coins that are transferred to the contract on execution
       * 
* * repeated .cosmos.base.v1beta1.Coin coins = 5 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:\"coins\"", (.gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; */ public java.util.List getCoinsBuilderList() { return getCoinsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< cosmos.base.v1beta1.CoinOuterClass.Coin, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder> getCoinsFieldBuilder() { if (coinsBuilder_ == null) { coinsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< cosmos.base.v1beta1.CoinOuterClass.Coin, cosmos.base.v1beta1.CoinOuterClass.Coin.Builder, cosmos.base.v1beta1.CoinOuterClass.CoinOrBuilder>( coins_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); coins_ = null; } return coinsBuilder_; } @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:terra.wasm.v1beta1.MsgExecuteContract) } // @@protoc_insertion_point(class_scope:terra.wasm.v1beta1.MsgExecuteContract) private static final terra.wasm.v1beta1.Tx.MsgExecuteContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new terra.wasm.v1beta1.Tx.MsgExecuteContract(); } public static terra.wasm.v1beta1.Tx.MsgExecuteContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MsgExecuteContract parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgExecuteContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MsgExecuteContractResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:terra.wasm.v1beta1.MsgExecuteContractResponse) com.google.protobuf.MessageOrBuilder { /** *
     * Data contains base64-encoded bytes to returned from the contract
     * 
* * bytes data = 1 [(.gogoproto.moretags) = "yaml:\"data\""]; * @return The data. */ com.google.protobuf.ByteString getData(); } /** *
   * MsgExecuteContractResponse defines the Msg/ExecuteContract response type.
   * 
* * Protobuf type {@code terra.wasm.v1beta1.MsgExecuteContractResponse} */ public static final class MsgExecuteContractResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:terra.wasm.v1beta1.MsgExecuteContractResponse) MsgExecuteContractResponseOrBuilder { private static final long serialVersionUID = 0L; // Use MsgExecuteContractResponse.newBuilder() to construct. private MsgExecuteContractResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MsgExecuteContractResponse() { data_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MsgExecuteContractResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgExecuteContractResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgExecuteContractResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( terra.wasm.v1beta1.Tx.MsgExecuteContractResponse.class, terra.wasm.v1beta1.Tx.MsgExecuteContractResponse.Builder.class); } public static final int DATA_FIELD_NUMBER = 1; private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** *
     * Data contains base64-encoded bytes to returned from the contract
     * 
* * bytes data = 1 [(.gogoproto.moretags) = "yaml:\"data\""]; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!data_.isEmpty()) { output.writeBytes(1, data_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!data_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, data_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof terra.wasm.v1beta1.Tx.MsgExecuteContractResponse)) { return super.equals(obj); } terra.wasm.v1beta1.Tx.MsgExecuteContractResponse other = (terra.wasm.v1beta1.Tx.MsgExecuteContractResponse) obj; if (!getData() .equals(other.getData())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static terra.wasm.v1beta1.Tx.MsgExecuteContractResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgExecuteContractResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgExecuteContractResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgExecuteContractResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgExecuteContractResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgExecuteContractResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgExecuteContractResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgExecuteContractResponse 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 terra.wasm.v1beta1.Tx.MsgExecuteContractResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgExecuteContractResponse 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 terra.wasm.v1beta1.Tx.MsgExecuteContractResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgExecuteContractResponse 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(terra.wasm.v1beta1.Tx.MsgExecuteContractResponse 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; } /** *
     * MsgExecuteContractResponse defines the Msg/ExecuteContract response type.
     * 
* * Protobuf type {@code terra.wasm.v1beta1.MsgExecuteContractResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:terra.wasm.v1beta1.MsgExecuteContractResponse) terra.wasm.v1beta1.Tx.MsgExecuteContractResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgExecuteContractResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgExecuteContractResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( terra.wasm.v1beta1.Tx.MsgExecuteContractResponse.class, terra.wasm.v1beta1.Tx.MsgExecuteContractResponse.Builder.class); } // Construct using terra.wasm.v1beta1.Tx.MsgExecuteContractResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; data_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgExecuteContractResponse_descriptor; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgExecuteContractResponse getDefaultInstanceForType() { return terra.wasm.v1beta1.Tx.MsgExecuteContractResponse.getDefaultInstance(); } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgExecuteContractResponse build() { terra.wasm.v1beta1.Tx.MsgExecuteContractResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgExecuteContractResponse buildPartial() { terra.wasm.v1beta1.Tx.MsgExecuteContractResponse result = new terra.wasm.v1beta1.Tx.MsgExecuteContractResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(terra.wasm.v1beta1.Tx.MsgExecuteContractResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.data_ = data_; } } @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 terra.wasm.v1beta1.Tx.MsgExecuteContractResponse) { return mergeFrom((terra.wasm.v1beta1.Tx.MsgExecuteContractResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(terra.wasm.v1beta1.Tx.MsgExecuteContractResponse other) { if (other == terra.wasm.v1beta1.Tx.MsgExecuteContractResponse.getDefaultInstance()) return this; if (other.getData() != com.google.protobuf.ByteString.EMPTY) { setData(other.getData()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { data_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Data contains base64-encoded bytes to returned from the contract
       * 
* * bytes data = 1 [(.gogoproto.moretags) = "yaml:\"data\""]; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } /** *
       * Data contains base64-encoded bytes to returned from the contract
       * 
* * bytes data = 1 [(.gogoproto.moretags) = "yaml:\"data\""]; * @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; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Data contains base64-encoded bytes to returned from the contract
       * 
* * bytes data = 1 [(.gogoproto.moretags) = "yaml:\"data\""]; * @return This builder for chaining. */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000001); data_ = getDefaultInstance().getData(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:terra.wasm.v1beta1.MsgExecuteContractResponse) } // @@protoc_insertion_point(class_scope:terra.wasm.v1beta1.MsgExecuteContractResponse) private static final terra.wasm.v1beta1.Tx.MsgExecuteContractResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new terra.wasm.v1beta1.Tx.MsgExecuteContractResponse(); } public static terra.wasm.v1beta1.Tx.MsgExecuteContractResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MsgExecuteContractResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgExecuteContractResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MsgMigrateContractOrBuilder extends // @@protoc_insertion_point(interface_extends:terra.wasm.v1beta1.MsgMigrateContract) com.google.protobuf.MessageOrBuilder { /** *
     * Admin is the current contract admin
     * 
* * string admin = 1 [(.gogoproto.moretags) = "yaml:\"admin\""]; * @return The admin. */ java.lang.String getAdmin(); /** *
     * Admin is the current contract admin
     * 
* * string admin = 1 [(.gogoproto.moretags) = "yaml:\"admin\""]; * @return The bytes for admin. */ com.google.protobuf.ByteString getAdminBytes(); /** *
     * Contract is the address of the smart contract
     * 
* * string contract = 2 [(.gogoproto.moretags) = "yaml:\"contract\""]; * @return The contract. */ java.lang.String getContract(); /** *
     * Contract is the address of the smart contract
     * 
* * string contract = 2 [(.gogoproto.moretags) = "yaml:\"contract\""]; * @return The bytes for contract. */ com.google.protobuf.ByteString getContractBytes(); /** *
     * NewCodeID references the new WASM code
     * 
* * uint64 new_code_id = 3 [(.gogoproto.customname) = "NewCodeID", (.gogoproto.moretags) = "yaml:\"new_code_id\""]; * @return The newCodeId. */ long getNewCodeId(); /** *
     * MigrateMsg is json encoded message to be passed to the contract on migration
     * 
* * bytes migrate_msg = 4 [(.gogoproto.moretags) = "yaml:\"migrate_msg\"", (.gogoproto.casttype) = "encoding/json.RawMessage"]; * @return The migrateMsg. */ com.google.protobuf.ByteString getMigrateMsg(); } /** *
   * MsgMigrateContract represents a message to
   * runs a code upgrade/ downgrade for a smart contract
   * 
* * Protobuf type {@code terra.wasm.v1beta1.MsgMigrateContract} */ public static final class MsgMigrateContract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:terra.wasm.v1beta1.MsgMigrateContract) MsgMigrateContractOrBuilder { private static final long serialVersionUID = 0L; // Use MsgMigrateContract.newBuilder() to construct. private MsgMigrateContract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MsgMigrateContract() { admin_ = ""; contract_ = ""; migrateMsg_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MsgMigrateContract(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgMigrateContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgMigrateContract_fieldAccessorTable .ensureFieldAccessorsInitialized( terra.wasm.v1beta1.Tx.MsgMigrateContract.class, terra.wasm.v1beta1.Tx.MsgMigrateContract.Builder.class); } public static final int ADMIN_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object admin_ = ""; /** *
     * Admin is the current contract admin
     * 
* * string admin = 1 [(.gogoproto.moretags) = "yaml:\"admin\""]; * @return The admin. */ @java.lang.Override public java.lang.String getAdmin() { java.lang.Object ref = admin_; 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(); admin_ = s; return s; } } /** *
     * Admin is the current contract admin
     * 
* * string admin = 1 [(.gogoproto.moretags) = "yaml:\"admin\""]; * @return The bytes for admin. */ @java.lang.Override public com.google.protobuf.ByteString getAdminBytes() { java.lang.Object ref = admin_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); admin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONTRACT_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object contract_ = ""; /** *
     * Contract is the address of the smart contract
     * 
* * string contract = 2 [(.gogoproto.moretags) = "yaml:\"contract\""]; * @return The contract. */ @java.lang.Override public java.lang.String getContract() { java.lang.Object ref = contract_; 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(); contract_ = s; return s; } } /** *
     * Contract is the address of the smart contract
     * 
* * string contract = 2 [(.gogoproto.moretags) = "yaml:\"contract\""]; * @return The bytes for contract. */ @java.lang.Override public com.google.protobuf.ByteString getContractBytes() { java.lang.Object ref = contract_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); contract_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NEW_CODE_ID_FIELD_NUMBER = 3; private long newCodeId_ = 0L; /** *
     * NewCodeID references the new WASM code
     * 
* * uint64 new_code_id = 3 [(.gogoproto.customname) = "NewCodeID", (.gogoproto.moretags) = "yaml:\"new_code_id\""]; * @return The newCodeId. */ @java.lang.Override public long getNewCodeId() { return newCodeId_; } public static final int MIGRATE_MSG_FIELD_NUMBER = 4; private com.google.protobuf.ByteString migrateMsg_ = com.google.protobuf.ByteString.EMPTY; /** *
     * MigrateMsg is json encoded message to be passed to the contract on migration
     * 
* * bytes migrate_msg = 4 [(.gogoproto.moretags) = "yaml:\"migrate_msg\"", (.gogoproto.casttype) = "encoding/json.RawMessage"]; * @return The migrateMsg. */ @java.lang.Override public com.google.protobuf.ByteString getMigrateMsg() { return migrateMsg_; } 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(admin_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, admin_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contract_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, contract_); } if (newCodeId_ != 0L) { output.writeUInt64(3, newCodeId_); } if (!migrateMsg_.isEmpty()) { output.writeBytes(4, migrateMsg_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(admin_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, admin_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contract_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, contract_); } if (newCodeId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, newCodeId_); } if (!migrateMsg_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, migrateMsg_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof terra.wasm.v1beta1.Tx.MsgMigrateContract)) { return super.equals(obj); } terra.wasm.v1beta1.Tx.MsgMigrateContract other = (terra.wasm.v1beta1.Tx.MsgMigrateContract) obj; if (!getAdmin() .equals(other.getAdmin())) return false; if (!getContract() .equals(other.getContract())) return false; if (getNewCodeId() != other.getNewCodeId()) return false; if (!getMigrateMsg() .equals(other.getMigrateMsg())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ADMIN_FIELD_NUMBER; hash = (53 * hash) + getAdmin().hashCode(); hash = (37 * hash) + CONTRACT_FIELD_NUMBER; hash = (53 * hash) + getContract().hashCode(); hash = (37 * hash) + NEW_CODE_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNewCodeId()); hash = (37 * hash) + MIGRATE_MSG_FIELD_NUMBER; hash = (53 * hash) + getMigrateMsg().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static terra.wasm.v1beta1.Tx.MsgMigrateContract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgMigrateContract parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgMigrateContract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgMigrateContract parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgMigrateContract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgMigrateContract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgMigrateContract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgMigrateContract 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 terra.wasm.v1beta1.Tx.MsgMigrateContract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgMigrateContract 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 terra.wasm.v1beta1.Tx.MsgMigrateContract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgMigrateContract 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(terra.wasm.v1beta1.Tx.MsgMigrateContract 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; } /** *
     * MsgMigrateContract represents a message to
     * runs a code upgrade/ downgrade for a smart contract
     * 
* * Protobuf type {@code terra.wasm.v1beta1.MsgMigrateContract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:terra.wasm.v1beta1.MsgMigrateContract) terra.wasm.v1beta1.Tx.MsgMigrateContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgMigrateContract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgMigrateContract_fieldAccessorTable .ensureFieldAccessorsInitialized( terra.wasm.v1beta1.Tx.MsgMigrateContract.class, terra.wasm.v1beta1.Tx.MsgMigrateContract.Builder.class); } // Construct using terra.wasm.v1beta1.Tx.MsgMigrateContract.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; admin_ = ""; contract_ = ""; newCodeId_ = 0L; migrateMsg_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgMigrateContract_descriptor; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgMigrateContract getDefaultInstanceForType() { return terra.wasm.v1beta1.Tx.MsgMigrateContract.getDefaultInstance(); } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgMigrateContract build() { terra.wasm.v1beta1.Tx.MsgMigrateContract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgMigrateContract buildPartial() { terra.wasm.v1beta1.Tx.MsgMigrateContract result = new terra.wasm.v1beta1.Tx.MsgMigrateContract(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(terra.wasm.v1beta1.Tx.MsgMigrateContract result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.admin_ = admin_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.contract_ = contract_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.newCodeId_ = newCodeId_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.migrateMsg_ = migrateMsg_; } } @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 terra.wasm.v1beta1.Tx.MsgMigrateContract) { return mergeFrom((terra.wasm.v1beta1.Tx.MsgMigrateContract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(terra.wasm.v1beta1.Tx.MsgMigrateContract other) { if (other == terra.wasm.v1beta1.Tx.MsgMigrateContract.getDefaultInstance()) return this; if (!other.getAdmin().isEmpty()) { admin_ = other.admin_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getContract().isEmpty()) { contract_ = other.contract_; bitField0_ |= 0x00000002; onChanged(); } if (other.getNewCodeId() != 0L) { setNewCodeId(other.getNewCodeId()); } if (other.getMigrateMsg() != com.google.protobuf.ByteString.EMPTY) { setMigrateMsg(other.getMigrateMsg()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { admin_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { contract_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { newCodeId_ = input.readUInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { migrateMsg_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object admin_ = ""; /** *
       * Admin is the current contract admin
       * 
* * string admin = 1 [(.gogoproto.moretags) = "yaml:\"admin\""]; * @return The admin. */ public java.lang.String getAdmin() { java.lang.Object ref = admin_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); admin_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Admin is the current contract admin
       * 
* * string admin = 1 [(.gogoproto.moretags) = "yaml:\"admin\""]; * @return The bytes for admin. */ public com.google.protobuf.ByteString getAdminBytes() { java.lang.Object ref = admin_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); admin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Admin is the current contract admin
       * 
* * string admin = 1 [(.gogoproto.moretags) = "yaml:\"admin\""]; * @param value The admin to set. * @return This builder for chaining. */ public Builder setAdmin( java.lang.String value) { if (value == null) { throw new NullPointerException(); } admin_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Admin is the current contract admin
       * 
* * string admin = 1 [(.gogoproto.moretags) = "yaml:\"admin\""]; * @return This builder for chaining. */ public Builder clearAdmin() { admin_ = getDefaultInstance().getAdmin(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Admin is the current contract admin
       * 
* * string admin = 1 [(.gogoproto.moretags) = "yaml:\"admin\""]; * @param value The bytes for admin to set. * @return This builder for chaining. */ public Builder setAdminBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); admin_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object contract_ = ""; /** *
       * Contract is the address of the smart contract
       * 
* * string contract = 2 [(.gogoproto.moretags) = "yaml:\"contract\""]; * @return The contract. */ public java.lang.String getContract() { java.lang.Object ref = contract_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contract_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Contract is the address of the smart contract
       * 
* * string contract = 2 [(.gogoproto.moretags) = "yaml:\"contract\""]; * @return The bytes for contract. */ public com.google.protobuf.ByteString getContractBytes() { java.lang.Object ref = contract_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); contract_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Contract is the address of the smart contract
       * 
* * string contract = 2 [(.gogoproto.moretags) = "yaml:\"contract\""]; * @param value The contract to set. * @return This builder for chaining. */ public Builder setContract( java.lang.String value) { if (value == null) { throw new NullPointerException(); } contract_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Contract is the address of the smart contract
       * 
* * string contract = 2 [(.gogoproto.moretags) = "yaml:\"contract\""]; * @return This builder for chaining. */ public Builder clearContract() { contract_ = getDefaultInstance().getContract(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Contract is the address of the smart contract
       * 
* * string contract = 2 [(.gogoproto.moretags) = "yaml:\"contract\""]; * @param value The bytes for contract to set. * @return This builder for chaining. */ public Builder setContractBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); contract_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private long newCodeId_ ; /** *
       * NewCodeID references the new WASM code
       * 
* * uint64 new_code_id = 3 [(.gogoproto.customname) = "NewCodeID", (.gogoproto.moretags) = "yaml:\"new_code_id\""]; * @return The newCodeId. */ @java.lang.Override public long getNewCodeId() { return newCodeId_; } /** *
       * NewCodeID references the new WASM code
       * 
* * uint64 new_code_id = 3 [(.gogoproto.customname) = "NewCodeID", (.gogoproto.moretags) = "yaml:\"new_code_id\""]; * @param value The newCodeId to set. * @return This builder for chaining. */ public Builder setNewCodeId(long value) { newCodeId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * NewCodeID references the new WASM code
       * 
* * uint64 new_code_id = 3 [(.gogoproto.customname) = "NewCodeID", (.gogoproto.moretags) = "yaml:\"new_code_id\""]; * @return This builder for chaining. */ public Builder clearNewCodeId() { bitField0_ = (bitField0_ & ~0x00000004); newCodeId_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString migrateMsg_ = com.google.protobuf.ByteString.EMPTY; /** *
       * MigrateMsg is json encoded message to be passed to the contract on migration
       * 
* * bytes migrate_msg = 4 [(.gogoproto.moretags) = "yaml:\"migrate_msg\"", (.gogoproto.casttype) = "encoding/json.RawMessage"]; * @return The migrateMsg. */ @java.lang.Override public com.google.protobuf.ByteString getMigrateMsg() { return migrateMsg_; } /** *
       * MigrateMsg is json encoded message to be passed to the contract on migration
       * 
* * bytes migrate_msg = 4 [(.gogoproto.moretags) = "yaml:\"migrate_msg\"", (.gogoproto.casttype) = "encoding/json.RawMessage"]; * @param value The migrateMsg to set. * @return This builder for chaining. */ public Builder setMigrateMsg(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } migrateMsg_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * MigrateMsg is json encoded message to be passed to the contract on migration
       * 
* * bytes migrate_msg = 4 [(.gogoproto.moretags) = "yaml:\"migrate_msg\"", (.gogoproto.casttype) = "encoding/json.RawMessage"]; * @return This builder for chaining. */ public Builder clearMigrateMsg() { bitField0_ = (bitField0_ & ~0x00000008); migrateMsg_ = getDefaultInstance().getMigrateMsg(); 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:terra.wasm.v1beta1.MsgMigrateContract) } // @@protoc_insertion_point(class_scope:terra.wasm.v1beta1.MsgMigrateContract) private static final terra.wasm.v1beta1.Tx.MsgMigrateContract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new terra.wasm.v1beta1.Tx.MsgMigrateContract(); } public static terra.wasm.v1beta1.Tx.MsgMigrateContract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MsgMigrateContract parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgMigrateContract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MsgMigrateContractResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:terra.wasm.v1beta1.MsgMigrateContractResponse) com.google.protobuf.MessageOrBuilder { /** *
     * Data contains base64-encoded bytes to returned from the contract
     * 
* * bytes data = 1 [(.gogoproto.moretags) = "yaml:\"data\""]; * @return The data. */ com.google.protobuf.ByteString getData(); } /** *
   * MsgMigrateContractResponse defines the Msg/MigrateContract response type.
   * 
* * Protobuf type {@code terra.wasm.v1beta1.MsgMigrateContractResponse} */ public static final class MsgMigrateContractResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:terra.wasm.v1beta1.MsgMigrateContractResponse) MsgMigrateContractResponseOrBuilder { private static final long serialVersionUID = 0L; // Use MsgMigrateContractResponse.newBuilder() to construct. private MsgMigrateContractResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MsgMigrateContractResponse() { data_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MsgMigrateContractResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgMigrateContractResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgMigrateContractResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( terra.wasm.v1beta1.Tx.MsgMigrateContractResponse.class, terra.wasm.v1beta1.Tx.MsgMigrateContractResponse.Builder.class); } public static final int DATA_FIELD_NUMBER = 1; private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** *
     * Data contains base64-encoded bytes to returned from the contract
     * 
* * bytes data = 1 [(.gogoproto.moretags) = "yaml:\"data\""]; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!data_.isEmpty()) { output.writeBytes(1, data_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!data_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, data_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof terra.wasm.v1beta1.Tx.MsgMigrateContractResponse)) { return super.equals(obj); } terra.wasm.v1beta1.Tx.MsgMigrateContractResponse other = (terra.wasm.v1beta1.Tx.MsgMigrateContractResponse) obj; if (!getData() .equals(other.getData())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static terra.wasm.v1beta1.Tx.MsgMigrateContractResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgMigrateContractResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgMigrateContractResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgMigrateContractResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgMigrateContractResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgMigrateContractResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgMigrateContractResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgMigrateContractResponse 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 terra.wasm.v1beta1.Tx.MsgMigrateContractResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgMigrateContractResponse 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 terra.wasm.v1beta1.Tx.MsgMigrateContractResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgMigrateContractResponse 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(terra.wasm.v1beta1.Tx.MsgMigrateContractResponse 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; } /** *
     * MsgMigrateContractResponse defines the Msg/MigrateContract response type.
     * 
* * Protobuf type {@code terra.wasm.v1beta1.MsgMigrateContractResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:terra.wasm.v1beta1.MsgMigrateContractResponse) terra.wasm.v1beta1.Tx.MsgMigrateContractResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgMigrateContractResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgMigrateContractResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( terra.wasm.v1beta1.Tx.MsgMigrateContractResponse.class, terra.wasm.v1beta1.Tx.MsgMigrateContractResponse.Builder.class); } // Construct using terra.wasm.v1beta1.Tx.MsgMigrateContractResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; data_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgMigrateContractResponse_descriptor; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgMigrateContractResponse getDefaultInstanceForType() { return terra.wasm.v1beta1.Tx.MsgMigrateContractResponse.getDefaultInstance(); } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgMigrateContractResponse build() { terra.wasm.v1beta1.Tx.MsgMigrateContractResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgMigrateContractResponse buildPartial() { terra.wasm.v1beta1.Tx.MsgMigrateContractResponse result = new terra.wasm.v1beta1.Tx.MsgMigrateContractResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(terra.wasm.v1beta1.Tx.MsgMigrateContractResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.data_ = data_; } } @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 terra.wasm.v1beta1.Tx.MsgMigrateContractResponse) { return mergeFrom((terra.wasm.v1beta1.Tx.MsgMigrateContractResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(terra.wasm.v1beta1.Tx.MsgMigrateContractResponse other) { if (other == terra.wasm.v1beta1.Tx.MsgMigrateContractResponse.getDefaultInstance()) return this; if (other.getData() != com.google.protobuf.ByteString.EMPTY) { setData(other.getData()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { data_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Data contains base64-encoded bytes to returned from the contract
       * 
* * bytes data = 1 [(.gogoproto.moretags) = "yaml:\"data\""]; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } /** *
       * Data contains base64-encoded bytes to returned from the contract
       * 
* * bytes data = 1 [(.gogoproto.moretags) = "yaml:\"data\""]; * @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; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Data contains base64-encoded bytes to returned from the contract
       * 
* * bytes data = 1 [(.gogoproto.moretags) = "yaml:\"data\""]; * @return This builder for chaining. */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000001); data_ = getDefaultInstance().getData(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:terra.wasm.v1beta1.MsgMigrateContractResponse) } // @@protoc_insertion_point(class_scope:terra.wasm.v1beta1.MsgMigrateContractResponse) private static final terra.wasm.v1beta1.Tx.MsgMigrateContractResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new terra.wasm.v1beta1.Tx.MsgMigrateContractResponse(); } public static terra.wasm.v1beta1.Tx.MsgMigrateContractResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MsgMigrateContractResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgMigrateContractResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MsgUpdateContractAdminOrBuilder extends // @@protoc_insertion_point(interface_extends:terra.wasm.v1beta1.MsgUpdateContractAdmin) com.google.protobuf.MessageOrBuilder { /** *
     * Admin is the current contract admin
     * 
* * string admin = 1 [(.gogoproto.moretags) = "yaml:\"admin\""]; * @return The admin. */ java.lang.String getAdmin(); /** *
     * Admin is the current contract admin
     * 
* * string admin = 1 [(.gogoproto.moretags) = "yaml:\"admin\""]; * @return The bytes for admin. */ com.google.protobuf.ByteString getAdminBytes(); /** *
     * NewAdmin is the new contract admin
     * 
* * string new_admin = 2 [(.gogoproto.moretags) = "yaml:\"new_admin\""]; * @return The newAdmin. */ java.lang.String getNewAdmin(); /** *
     * NewAdmin is the new contract admin
     * 
* * string new_admin = 2 [(.gogoproto.moretags) = "yaml:\"new_admin\""]; * @return The bytes for newAdmin. */ com.google.protobuf.ByteString getNewAdminBytes(); /** *
     * Contract is the address of the smart contract
     * 
* * string contract = 3 [(.gogoproto.moretags) = "yaml:\"contract\""]; * @return The contract. */ java.lang.String getContract(); /** *
     * Contract is the address of the smart contract
     * 
* * string contract = 3 [(.gogoproto.moretags) = "yaml:\"contract\""]; * @return The bytes for contract. */ com.google.protobuf.ByteString getContractBytes(); } /** *
   * MsgUpdateContractAdmin represents a message to
   * sets a new admin for a smart contract
   * 
* * Protobuf type {@code terra.wasm.v1beta1.MsgUpdateContractAdmin} */ public static final class MsgUpdateContractAdmin extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:terra.wasm.v1beta1.MsgUpdateContractAdmin) MsgUpdateContractAdminOrBuilder { private static final long serialVersionUID = 0L; // Use MsgUpdateContractAdmin.newBuilder() to construct. private MsgUpdateContractAdmin(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MsgUpdateContractAdmin() { admin_ = ""; newAdmin_ = ""; contract_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MsgUpdateContractAdmin(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgUpdateContractAdmin_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgUpdateContractAdmin_fieldAccessorTable .ensureFieldAccessorsInitialized( terra.wasm.v1beta1.Tx.MsgUpdateContractAdmin.class, terra.wasm.v1beta1.Tx.MsgUpdateContractAdmin.Builder.class); } public static final int ADMIN_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object admin_ = ""; /** *
     * Admin is the current contract admin
     * 
* * string admin = 1 [(.gogoproto.moretags) = "yaml:\"admin\""]; * @return The admin. */ @java.lang.Override public java.lang.String getAdmin() { java.lang.Object ref = admin_; 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(); admin_ = s; return s; } } /** *
     * Admin is the current contract admin
     * 
* * string admin = 1 [(.gogoproto.moretags) = "yaml:\"admin\""]; * @return The bytes for admin. */ @java.lang.Override public com.google.protobuf.ByteString getAdminBytes() { java.lang.Object ref = admin_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); admin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NEW_ADMIN_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object newAdmin_ = ""; /** *
     * NewAdmin is the new contract admin
     * 
* * string new_admin = 2 [(.gogoproto.moretags) = "yaml:\"new_admin\""]; * @return The newAdmin. */ @java.lang.Override public java.lang.String getNewAdmin() { java.lang.Object ref = newAdmin_; 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(); newAdmin_ = s; return s; } } /** *
     * NewAdmin is the new contract admin
     * 
* * string new_admin = 2 [(.gogoproto.moretags) = "yaml:\"new_admin\""]; * @return The bytes for newAdmin. */ @java.lang.Override public com.google.protobuf.ByteString getNewAdminBytes() { java.lang.Object ref = newAdmin_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); newAdmin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONTRACT_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object contract_ = ""; /** *
     * Contract is the address of the smart contract
     * 
* * string contract = 3 [(.gogoproto.moretags) = "yaml:\"contract\""]; * @return The contract. */ @java.lang.Override public java.lang.String getContract() { java.lang.Object ref = contract_; 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(); contract_ = s; return s; } } /** *
     * Contract is the address of the smart contract
     * 
* * string contract = 3 [(.gogoproto.moretags) = "yaml:\"contract\""]; * @return The bytes for contract. */ @java.lang.Override public com.google.protobuf.ByteString getContractBytes() { java.lang.Object ref = contract_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); contract_ = 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(admin_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, admin_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newAdmin_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, newAdmin_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contract_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, contract_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(admin_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, admin_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newAdmin_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, newAdmin_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contract_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, contract_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof terra.wasm.v1beta1.Tx.MsgUpdateContractAdmin)) { return super.equals(obj); } terra.wasm.v1beta1.Tx.MsgUpdateContractAdmin other = (terra.wasm.v1beta1.Tx.MsgUpdateContractAdmin) obj; if (!getAdmin() .equals(other.getAdmin())) return false; if (!getNewAdmin() .equals(other.getNewAdmin())) return false; if (!getContract() .equals(other.getContract())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ADMIN_FIELD_NUMBER; hash = (53 * hash) + getAdmin().hashCode(); hash = (37 * hash) + NEW_ADMIN_FIELD_NUMBER; hash = (53 * hash) + getNewAdmin().hashCode(); hash = (37 * hash) + CONTRACT_FIELD_NUMBER; hash = (53 * hash) + getContract().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static terra.wasm.v1beta1.Tx.MsgUpdateContractAdmin parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgUpdateContractAdmin parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgUpdateContractAdmin parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgUpdateContractAdmin parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgUpdateContractAdmin parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgUpdateContractAdmin parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgUpdateContractAdmin parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgUpdateContractAdmin 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 terra.wasm.v1beta1.Tx.MsgUpdateContractAdmin parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgUpdateContractAdmin 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 terra.wasm.v1beta1.Tx.MsgUpdateContractAdmin parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgUpdateContractAdmin 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(terra.wasm.v1beta1.Tx.MsgUpdateContractAdmin 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; } /** *
     * MsgUpdateContractAdmin represents a message to
     * sets a new admin for a smart contract
     * 
* * Protobuf type {@code terra.wasm.v1beta1.MsgUpdateContractAdmin} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:terra.wasm.v1beta1.MsgUpdateContractAdmin) terra.wasm.v1beta1.Tx.MsgUpdateContractAdminOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgUpdateContractAdmin_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgUpdateContractAdmin_fieldAccessorTable .ensureFieldAccessorsInitialized( terra.wasm.v1beta1.Tx.MsgUpdateContractAdmin.class, terra.wasm.v1beta1.Tx.MsgUpdateContractAdmin.Builder.class); } // Construct using terra.wasm.v1beta1.Tx.MsgUpdateContractAdmin.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; admin_ = ""; newAdmin_ = ""; contract_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgUpdateContractAdmin_descriptor; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgUpdateContractAdmin getDefaultInstanceForType() { return terra.wasm.v1beta1.Tx.MsgUpdateContractAdmin.getDefaultInstance(); } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgUpdateContractAdmin build() { terra.wasm.v1beta1.Tx.MsgUpdateContractAdmin result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgUpdateContractAdmin buildPartial() { terra.wasm.v1beta1.Tx.MsgUpdateContractAdmin result = new terra.wasm.v1beta1.Tx.MsgUpdateContractAdmin(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(terra.wasm.v1beta1.Tx.MsgUpdateContractAdmin result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.admin_ = admin_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.newAdmin_ = newAdmin_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.contract_ = contract_; } } @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 terra.wasm.v1beta1.Tx.MsgUpdateContractAdmin) { return mergeFrom((terra.wasm.v1beta1.Tx.MsgUpdateContractAdmin)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(terra.wasm.v1beta1.Tx.MsgUpdateContractAdmin other) { if (other == terra.wasm.v1beta1.Tx.MsgUpdateContractAdmin.getDefaultInstance()) return this; if (!other.getAdmin().isEmpty()) { admin_ = other.admin_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getNewAdmin().isEmpty()) { newAdmin_ = other.newAdmin_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getContract().isEmpty()) { contract_ = other.contract_; bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { admin_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { newAdmin_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { contract_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object admin_ = ""; /** *
       * Admin is the current contract admin
       * 
* * string admin = 1 [(.gogoproto.moretags) = "yaml:\"admin\""]; * @return The admin. */ public java.lang.String getAdmin() { java.lang.Object ref = admin_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); admin_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Admin is the current contract admin
       * 
* * string admin = 1 [(.gogoproto.moretags) = "yaml:\"admin\""]; * @return The bytes for admin. */ public com.google.protobuf.ByteString getAdminBytes() { java.lang.Object ref = admin_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); admin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Admin is the current contract admin
       * 
* * string admin = 1 [(.gogoproto.moretags) = "yaml:\"admin\""]; * @param value The admin to set. * @return This builder for chaining. */ public Builder setAdmin( java.lang.String value) { if (value == null) { throw new NullPointerException(); } admin_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Admin is the current contract admin
       * 
* * string admin = 1 [(.gogoproto.moretags) = "yaml:\"admin\""]; * @return This builder for chaining. */ public Builder clearAdmin() { admin_ = getDefaultInstance().getAdmin(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Admin is the current contract admin
       * 
* * string admin = 1 [(.gogoproto.moretags) = "yaml:\"admin\""]; * @param value The bytes for admin to set. * @return This builder for chaining. */ public Builder setAdminBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); admin_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object newAdmin_ = ""; /** *
       * NewAdmin is the new contract admin
       * 
* * string new_admin = 2 [(.gogoproto.moretags) = "yaml:\"new_admin\""]; * @return The newAdmin. */ public java.lang.String getNewAdmin() { java.lang.Object ref = newAdmin_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); newAdmin_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * NewAdmin is the new contract admin
       * 
* * string new_admin = 2 [(.gogoproto.moretags) = "yaml:\"new_admin\""]; * @return The bytes for newAdmin. */ public com.google.protobuf.ByteString getNewAdminBytes() { java.lang.Object ref = newAdmin_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); newAdmin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * NewAdmin is the new contract admin
       * 
* * string new_admin = 2 [(.gogoproto.moretags) = "yaml:\"new_admin\""]; * @param value The newAdmin to set. * @return This builder for chaining. */ public Builder setNewAdmin( java.lang.String value) { if (value == null) { throw new NullPointerException(); } newAdmin_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * NewAdmin is the new contract admin
       * 
* * string new_admin = 2 [(.gogoproto.moretags) = "yaml:\"new_admin\""]; * @return This builder for chaining. */ public Builder clearNewAdmin() { newAdmin_ = getDefaultInstance().getNewAdmin(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * NewAdmin is the new contract admin
       * 
* * string new_admin = 2 [(.gogoproto.moretags) = "yaml:\"new_admin\""]; * @param value The bytes for newAdmin to set. * @return This builder for chaining. */ public Builder setNewAdminBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); newAdmin_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object contract_ = ""; /** *
       * Contract is the address of the smart contract
       * 
* * string contract = 3 [(.gogoproto.moretags) = "yaml:\"contract\""]; * @return The contract. */ public java.lang.String getContract() { java.lang.Object ref = contract_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contract_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Contract is the address of the smart contract
       * 
* * string contract = 3 [(.gogoproto.moretags) = "yaml:\"contract\""]; * @return The bytes for contract. */ public com.google.protobuf.ByteString getContractBytes() { java.lang.Object ref = contract_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); contract_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Contract is the address of the smart contract
       * 
* * string contract = 3 [(.gogoproto.moretags) = "yaml:\"contract\""]; * @param value The contract to set. * @return This builder for chaining. */ public Builder setContract( java.lang.String value) { if (value == null) { throw new NullPointerException(); } contract_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Contract is the address of the smart contract
       * 
* * string contract = 3 [(.gogoproto.moretags) = "yaml:\"contract\""]; * @return This builder for chaining. */ public Builder clearContract() { contract_ = getDefaultInstance().getContract(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * Contract is the address of the smart contract
       * 
* * string contract = 3 [(.gogoproto.moretags) = "yaml:\"contract\""]; * @param value The bytes for contract to set. * @return This builder for chaining. */ public Builder setContractBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); contract_ = value; bitField0_ |= 0x00000004; 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:terra.wasm.v1beta1.MsgUpdateContractAdmin) } // @@protoc_insertion_point(class_scope:terra.wasm.v1beta1.MsgUpdateContractAdmin) private static final terra.wasm.v1beta1.Tx.MsgUpdateContractAdmin DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new terra.wasm.v1beta1.Tx.MsgUpdateContractAdmin(); } public static terra.wasm.v1beta1.Tx.MsgUpdateContractAdmin getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MsgUpdateContractAdmin parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgUpdateContractAdmin getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MsgUpdateContractAdminResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:terra.wasm.v1beta1.MsgUpdateContractAdminResponse) com.google.protobuf.MessageOrBuilder { } /** *
   * MsgUpdateContractAdminResponse defines the Msg/UpdateContractAdmin response type.
   * 
* * Protobuf type {@code terra.wasm.v1beta1.MsgUpdateContractAdminResponse} */ public static final class MsgUpdateContractAdminResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:terra.wasm.v1beta1.MsgUpdateContractAdminResponse) MsgUpdateContractAdminResponseOrBuilder { private static final long serialVersionUID = 0L; // Use MsgUpdateContractAdminResponse.newBuilder() to construct. private MsgUpdateContractAdminResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MsgUpdateContractAdminResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MsgUpdateContractAdminResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgUpdateContractAdminResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgUpdateContractAdminResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( terra.wasm.v1beta1.Tx.MsgUpdateContractAdminResponse.class, terra.wasm.v1beta1.Tx.MsgUpdateContractAdminResponse.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof terra.wasm.v1beta1.Tx.MsgUpdateContractAdminResponse)) { return super.equals(obj); } terra.wasm.v1beta1.Tx.MsgUpdateContractAdminResponse other = (terra.wasm.v1beta1.Tx.MsgUpdateContractAdminResponse) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static terra.wasm.v1beta1.Tx.MsgUpdateContractAdminResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgUpdateContractAdminResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgUpdateContractAdminResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgUpdateContractAdminResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgUpdateContractAdminResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgUpdateContractAdminResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgUpdateContractAdminResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgUpdateContractAdminResponse 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 terra.wasm.v1beta1.Tx.MsgUpdateContractAdminResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgUpdateContractAdminResponse 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 terra.wasm.v1beta1.Tx.MsgUpdateContractAdminResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgUpdateContractAdminResponse 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(terra.wasm.v1beta1.Tx.MsgUpdateContractAdminResponse 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; } /** *
     * MsgUpdateContractAdminResponse defines the Msg/UpdateContractAdmin response type.
     * 
* * Protobuf type {@code terra.wasm.v1beta1.MsgUpdateContractAdminResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:terra.wasm.v1beta1.MsgUpdateContractAdminResponse) terra.wasm.v1beta1.Tx.MsgUpdateContractAdminResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgUpdateContractAdminResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgUpdateContractAdminResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( terra.wasm.v1beta1.Tx.MsgUpdateContractAdminResponse.class, terra.wasm.v1beta1.Tx.MsgUpdateContractAdminResponse.Builder.class); } // Construct using terra.wasm.v1beta1.Tx.MsgUpdateContractAdminResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgUpdateContractAdminResponse_descriptor; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgUpdateContractAdminResponse getDefaultInstanceForType() { return terra.wasm.v1beta1.Tx.MsgUpdateContractAdminResponse.getDefaultInstance(); } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgUpdateContractAdminResponse build() { terra.wasm.v1beta1.Tx.MsgUpdateContractAdminResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgUpdateContractAdminResponse buildPartial() { terra.wasm.v1beta1.Tx.MsgUpdateContractAdminResponse result = new terra.wasm.v1beta1.Tx.MsgUpdateContractAdminResponse(this); 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 terra.wasm.v1beta1.Tx.MsgUpdateContractAdminResponse) { return mergeFrom((terra.wasm.v1beta1.Tx.MsgUpdateContractAdminResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(terra.wasm.v1beta1.Tx.MsgUpdateContractAdminResponse other) { if (other == terra.wasm.v1beta1.Tx.MsgUpdateContractAdminResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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:terra.wasm.v1beta1.MsgUpdateContractAdminResponse) } // @@protoc_insertion_point(class_scope:terra.wasm.v1beta1.MsgUpdateContractAdminResponse) private static final terra.wasm.v1beta1.Tx.MsgUpdateContractAdminResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new terra.wasm.v1beta1.Tx.MsgUpdateContractAdminResponse(); } public static terra.wasm.v1beta1.Tx.MsgUpdateContractAdminResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MsgUpdateContractAdminResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgUpdateContractAdminResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MsgClearContractAdminOrBuilder extends // @@protoc_insertion_point(interface_extends:terra.wasm.v1beta1.MsgClearContractAdmin) com.google.protobuf.MessageOrBuilder { /** *
     * Admin is the current contract admin
     * 
* * string admin = 1 [(.gogoproto.moretags) = "yaml:\"admin\""]; * @return The admin. */ java.lang.String getAdmin(); /** *
     * Admin is the current contract admin
     * 
* * string admin = 1 [(.gogoproto.moretags) = "yaml:\"admin\""]; * @return The bytes for admin. */ com.google.protobuf.ByteString getAdminBytes(); /** *
     * Contract is the address of the smart contract
     * 
* * string contract = 2 [(.gogoproto.moretags) = "yaml:\"contract\""]; * @return The contract. */ java.lang.String getContract(); /** *
     * Contract is the address of the smart contract
     * 
* * string contract = 2 [(.gogoproto.moretags) = "yaml:\"contract\""]; * @return The bytes for contract. */ com.google.protobuf.ByteString getContractBytes(); } /** *
   * MsgClearContractAdmin represents a message to
   * clear admin address from a smart contract
   * 
* * Protobuf type {@code terra.wasm.v1beta1.MsgClearContractAdmin} */ public static final class MsgClearContractAdmin extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:terra.wasm.v1beta1.MsgClearContractAdmin) MsgClearContractAdminOrBuilder { private static final long serialVersionUID = 0L; // Use MsgClearContractAdmin.newBuilder() to construct. private MsgClearContractAdmin(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MsgClearContractAdmin() { admin_ = ""; contract_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MsgClearContractAdmin(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgClearContractAdmin_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgClearContractAdmin_fieldAccessorTable .ensureFieldAccessorsInitialized( terra.wasm.v1beta1.Tx.MsgClearContractAdmin.class, terra.wasm.v1beta1.Tx.MsgClearContractAdmin.Builder.class); } public static final int ADMIN_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object admin_ = ""; /** *
     * Admin is the current contract admin
     * 
* * string admin = 1 [(.gogoproto.moretags) = "yaml:\"admin\""]; * @return The admin. */ @java.lang.Override public java.lang.String getAdmin() { java.lang.Object ref = admin_; 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(); admin_ = s; return s; } } /** *
     * Admin is the current contract admin
     * 
* * string admin = 1 [(.gogoproto.moretags) = "yaml:\"admin\""]; * @return The bytes for admin. */ @java.lang.Override public com.google.protobuf.ByteString getAdminBytes() { java.lang.Object ref = admin_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); admin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONTRACT_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object contract_ = ""; /** *
     * Contract is the address of the smart contract
     * 
* * string contract = 2 [(.gogoproto.moretags) = "yaml:\"contract\""]; * @return The contract. */ @java.lang.Override public java.lang.String getContract() { java.lang.Object ref = contract_; 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(); contract_ = s; return s; } } /** *
     * Contract is the address of the smart contract
     * 
* * string contract = 2 [(.gogoproto.moretags) = "yaml:\"contract\""]; * @return The bytes for contract. */ @java.lang.Override public com.google.protobuf.ByteString getContractBytes() { java.lang.Object ref = contract_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); contract_ = 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(admin_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, admin_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contract_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, contract_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(admin_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, admin_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contract_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, contract_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof terra.wasm.v1beta1.Tx.MsgClearContractAdmin)) { return super.equals(obj); } terra.wasm.v1beta1.Tx.MsgClearContractAdmin other = (terra.wasm.v1beta1.Tx.MsgClearContractAdmin) obj; if (!getAdmin() .equals(other.getAdmin())) return false; if (!getContract() .equals(other.getContract())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ADMIN_FIELD_NUMBER; hash = (53 * hash) + getAdmin().hashCode(); hash = (37 * hash) + CONTRACT_FIELD_NUMBER; hash = (53 * hash) + getContract().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static terra.wasm.v1beta1.Tx.MsgClearContractAdmin parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgClearContractAdmin parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgClearContractAdmin parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgClearContractAdmin parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgClearContractAdmin parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgClearContractAdmin parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgClearContractAdmin parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgClearContractAdmin 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 terra.wasm.v1beta1.Tx.MsgClearContractAdmin parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgClearContractAdmin 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 terra.wasm.v1beta1.Tx.MsgClearContractAdmin parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgClearContractAdmin 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(terra.wasm.v1beta1.Tx.MsgClearContractAdmin 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; } /** *
     * MsgClearContractAdmin represents a message to
     * clear admin address from a smart contract
     * 
* * Protobuf type {@code terra.wasm.v1beta1.MsgClearContractAdmin} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:terra.wasm.v1beta1.MsgClearContractAdmin) terra.wasm.v1beta1.Tx.MsgClearContractAdminOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgClearContractAdmin_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgClearContractAdmin_fieldAccessorTable .ensureFieldAccessorsInitialized( terra.wasm.v1beta1.Tx.MsgClearContractAdmin.class, terra.wasm.v1beta1.Tx.MsgClearContractAdmin.Builder.class); } // Construct using terra.wasm.v1beta1.Tx.MsgClearContractAdmin.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; admin_ = ""; contract_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgClearContractAdmin_descriptor; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgClearContractAdmin getDefaultInstanceForType() { return terra.wasm.v1beta1.Tx.MsgClearContractAdmin.getDefaultInstance(); } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgClearContractAdmin build() { terra.wasm.v1beta1.Tx.MsgClearContractAdmin result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgClearContractAdmin buildPartial() { terra.wasm.v1beta1.Tx.MsgClearContractAdmin result = new terra.wasm.v1beta1.Tx.MsgClearContractAdmin(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(terra.wasm.v1beta1.Tx.MsgClearContractAdmin result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.admin_ = admin_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.contract_ = contract_; } } @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 terra.wasm.v1beta1.Tx.MsgClearContractAdmin) { return mergeFrom((terra.wasm.v1beta1.Tx.MsgClearContractAdmin)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(terra.wasm.v1beta1.Tx.MsgClearContractAdmin other) { if (other == terra.wasm.v1beta1.Tx.MsgClearContractAdmin.getDefaultInstance()) return this; if (!other.getAdmin().isEmpty()) { admin_ = other.admin_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getContract().isEmpty()) { contract_ = other.contract_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { admin_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { contract_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object admin_ = ""; /** *
       * Admin is the current contract admin
       * 
* * string admin = 1 [(.gogoproto.moretags) = "yaml:\"admin\""]; * @return The admin. */ public java.lang.String getAdmin() { java.lang.Object ref = admin_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); admin_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Admin is the current contract admin
       * 
* * string admin = 1 [(.gogoproto.moretags) = "yaml:\"admin\""]; * @return The bytes for admin. */ public com.google.protobuf.ByteString getAdminBytes() { java.lang.Object ref = admin_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); admin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Admin is the current contract admin
       * 
* * string admin = 1 [(.gogoproto.moretags) = "yaml:\"admin\""]; * @param value The admin to set. * @return This builder for chaining. */ public Builder setAdmin( java.lang.String value) { if (value == null) { throw new NullPointerException(); } admin_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Admin is the current contract admin
       * 
* * string admin = 1 [(.gogoproto.moretags) = "yaml:\"admin\""]; * @return This builder for chaining. */ public Builder clearAdmin() { admin_ = getDefaultInstance().getAdmin(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Admin is the current contract admin
       * 
* * string admin = 1 [(.gogoproto.moretags) = "yaml:\"admin\""]; * @param value The bytes for admin to set. * @return This builder for chaining. */ public Builder setAdminBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); admin_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object contract_ = ""; /** *
       * Contract is the address of the smart contract
       * 
* * string contract = 2 [(.gogoproto.moretags) = "yaml:\"contract\""]; * @return The contract. */ public java.lang.String getContract() { java.lang.Object ref = contract_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contract_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Contract is the address of the smart contract
       * 
* * string contract = 2 [(.gogoproto.moretags) = "yaml:\"contract\""]; * @return The bytes for contract. */ public com.google.protobuf.ByteString getContractBytes() { java.lang.Object ref = contract_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); contract_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Contract is the address of the smart contract
       * 
* * string contract = 2 [(.gogoproto.moretags) = "yaml:\"contract\""]; * @param value The contract to set. * @return This builder for chaining. */ public Builder setContract( java.lang.String value) { if (value == null) { throw new NullPointerException(); } contract_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Contract is the address of the smart contract
       * 
* * string contract = 2 [(.gogoproto.moretags) = "yaml:\"contract\""]; * @return This builder for chaining. */ public Builder clearContract() { contract_ = getDefaultInstance().getContract(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Contract is the address of the smart contract
       * 
* * string contract = 2 [(.gogoproto.moretags) = "yaml:\"contract\""]; * @param value The bytes for contract to set. * @return This builder for chaining. */ public Builder setContractBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); contract_ = value; bitField0_ |= 0x00000002; 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:terra.wasm.v1beta1.MsgClearContractAdmin) } // @@protoc_insertion_point(class_scope:terra.wasm.v1beta1.MsgClearContractAdmin) private static final terra.wasm.v1beta1.Tx.MsgClearContractAdmin DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new terra.wasm.v1beta1.Tx.MsgClearContractAdmin(); } public static terra.wasm.v1beta1.Tx.MsgClearContractAdmin getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MsgClearContractAdmin parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgClearContractAdmin getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MsgClearContractAdminResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:terra.wasm.v1beta1.MsgClearContractAdminResponse) com.google.protobuf.MessageOrBuilder { } /** *
   * MsgClearContractAdminResponse defines the Msg/ClearContractAdmin response type.
   * 
* * Protobuf type {@code terra.wasm.v1beta1.MsgClearContractAdminResponse} */ public static final class MsgClearContractAdminResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:terra.wasm.v1beta1.MsgClearContractAdminResponse) MsgClearContractAdminResponseOrBuilder { private static final long serialVersionUID = 0L; // Use MsgClearContractAdminResponse.newBuilder() to construct. private MsgClearContractAdminResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MsgClearContractAdminResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MsgClearContractAdminResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgClearContractAdminResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgClearContractAdminResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( terra.wasm.v1beta1.Tx.MsgClearContractAdminResponse.class, terra.wasm.v1beta1.Tx.MsgClearContractAdminResponse.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof terra.wasm.v1beta1.Tx.MsgClearContractAdminResponse)) { return super.equals(obj); } terra.wasm.v1beta1.Tx.MsgClearContractAdminResponse other = (terra.wasm.v1beta1.Tx.MsgClearContractAdminResponse) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static terra.wasm.v1beta1.Tx.MsgClearContractAdminResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgClearContractAdminResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgClearContractAdminResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgClearContractAdminResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgClearContractAdminResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static terra.wasm.v1beta1.Tx.MsgClearContractAdminResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static terra.wasm.v1beta1.Tx.MsgClearContractAdminResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgClearContractAdminResponse 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 terra.wasm.v1beta1.Tx.MsgClearContractAdminResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgClearContractAdminResponse 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 terra.wasm.v1beta1.Tx.MsgClearContractAdminResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static terra.wasm.v1beta1.Tx.MsgClearContractAdminResponse 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(terra.wasm.v1beta1.Tx.MsgClearContractAdminResponse 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; } /** *
     * MsgClearContractAdminResponse defines the Msg/ClearContractAdmin response type.
     * 
* * Protobuf type {@code terra.wasm.v1beta1.MsgClearContractAdminResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:terra.wasm.v1beta1.MsgClearContractAdminResponse) terra.wasm.v1beta1.Tx.MsgClearContractAdminResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgClearContractAdminResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgClearContractAdminResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( terra.wasm.v1beta1.Tx.MsgClearContractAdminResponse.class, terra.wasm.v1beta1.Tx.MsgClearContractAdminResponse.Builder.class); } // Construct using terra.wasm.v1beta1.Tx.MsgClearContractAdminResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return terra.wasm.v1beta1.Tx.internal_static_terra_wasm_v1beta1_MsgClearContractAdminResponse_descriptor; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgClearContractAdminResponse getDefaultInstanceForType() { return terra.wasm.v1beta1.Tx.MsgClearContractAdminResponse.getDefaultInstance(); } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgClearContractAdminResponse build() { terra.wasm.v1beta1.Tx.MsgClearContractAdminResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgClearContractAdminResponse buildPartial() { terra.wasm.v1beta1.Tx.MsgClearContractAdminResponse result = new terra.wasm.v1beta1.Tx.MsgClearContractAdminResponse(this); 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 terra.wasm.v1beta1.Tx.MsgClearContractAdminResponse) { return mergeFrom((terra.wasm.v1beta1.Tx.MsgClearContractAdminResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(terra.wasm.v1beta1.Tx.MsgClearContractAdminResponse other) { if (other == terra.wasm.v1beta1.Tx.MsgClearContractAdminResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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:terra.wasm.v1beta1.MsgClearContractAdminResponse) } // @@protoc_insertion_point(class_scope:terra.wasm.v1beta1.MsgClearContractAdminResponse) private static final terra.wasm.v1beta1.Tx.MsgClearContractAdminResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new terra.wasm.v1beta1.Tx.MsgClearContractAdminResponse(); } public static terra.wasm.v1beta1.Tx.MsgClearContractAdminResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MsgClearContractAdminResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public terra.wasm.v1beta1.Tx.MsgClearContractAdminResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_terra_wasm_v1beta1_MsgStoreCode_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_terra_wasm_v1beta1_MsgStoreCode_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_terra_wasm_v1beta1_MsgStoreCodeResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_terra_wasm_v1beta1_MsgStoreCodeResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_terra_wasm_v1beta1_MsgMigrateCode_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_terra_wasm_v1beta1_MsgMigrateCode_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_terra_wasm_v1beta1_MsgMigrateCodeResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_terra_wasm_v1beta1_MsgMigrateCodeResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_terra_wasm_v1beta1_MsgInstantiateContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_terra_wasm_v1beta1_MsgInstantiateContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_terra_wasm_v1beta1_MsgInstantiateContractResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_terra_wasm_v1beta1_MsgInstantiateContractResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_terra_wasm_v1beta1_MsgExecuteContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_terra_wasm_v1beta1_MsgExecuteContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_terra_wasm_v1beta1_MsgExecuteContractResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_terra_wasm_v1beta1_MsgExecuteContractResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_terra_wasm_v1beta1_MsgMigrateContract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_terra_wasm_v1beta1_MsgMigrateContract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_terra_wasm_v1beta1_MsgMigrateContractResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_terra_wasm_v1beta1_MsgMigrateContractResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_terra_wasm_v1beta1_MsgUpdateContractAdmin_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_terra_wasm_v1beta1_MsgUpdateContractAdmin_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_terra_wasm_v1beta1_MsgUpdateContractAdminResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_terra_wasm_v1beta1_MsgUpdateContractAdminResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_terra_wasm_v1beta1_MsgClearContractAdmin_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_terra_wasm_v1beta1_MsgClearContractAdmin_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_terra_wasm_v1beta1_MsgClearContractAdminResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_terra_wasm_v1beta1_MsgClearContractAdminResponse_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\033terra/wasm/v1beta1/tx.proto\022\022terra.was" + "m.v1beta1\032\024gogoproto/gogo.proto\032\036cosmos/" + "base/v1beta1/coin.proto\"~\n\014MsgStoreCode\022" + "!\n\006sender\030\001 \001(\tB\021\362\336\037\ryaml:\"sender\"\022A\n\016wa" + "sm_byte_code\030\002 \001(\014B)\342\336\037\014WASMByteCode\362\336\037\025" + "yaml:\"wasm_byte_code\":\010\210\240\037\000\350\240\037\000\"E\n\024MsgSt" + "oreCodeResponse\022-\n\007code_id\030\001 \001(\004B\034\342\336\037\006Co" + "deID\362\336\037\016yaml:\"code_id\"\"\257\001\n\016MsgMigrateCod" + "e\022-\n\007code_id\030\001 \001(\004B\034\342\336\037\006CodeID\362\336\037\016yaml:\"" + "code_id\"\022!\n\006sender\030\002 \001(\tB\021\362\336\037\ryaml:\"send" + "er\"\022A\n\016wasm_byte_code\030\003 \001(\014B)\342\336\037\014WASMByt" + "eCode\362\336\037\025yaml:\"wasm_byte_code\":\010\210\240\037\000\350\240\037\000" + "\"\030\n\026MsgMigrateCodeResponse\"\316\002\n\026MsgInstan" + "tiateContract\022!\n\006sender\030\001 \001(\tB\021\362\336\037\ryaml:" + "\"sender\"\022\037\n\005admin\030\002 \001(\tB\020\362\336\037\014yaml:\"admin" + "\"\022-\n\007code_id\030\003 \001(\004B\034\342\336\037\006CodeID\362\336\037\016yaml:\"" + "code_id\"\022A\n\010init_msg\030\004 \001(\014B/\362\336\037\017yaml:\"in" + "it_msg\"\372\336\037\030encoding/json.RawMessage\022t\n\ni" + "nit_coins\030\005 \003(\0132\031.cosmos.base.v1beta1.Co" + "inBE\310\336\037\000\362\336\037\021yaml:\"init_coins\"\252\337\037(github." + "com/cosmos/cosmos-sdk/types.Coins:\010\210\240\037\000\350" + "\240\037\000\"v\n\036MsgInstantiateContractResponse\0225\n" + "\020contract_address\030\001 \001(\tB\033\362\336\037\027yaml:\"contr" + "act_address\"\022\035\n\004data\030\002 \001(\014B\017\362\336\037\013yaml:\"da" + "ta\"\"\235\002\n\022MsgExecuteContract\022!\n\006sender\030\001 \001" + "(\tB\021\362\336\037\ryaml:\"sender\"\022%\n\010contract\030\002 \001(\tB" + "\023\362\336\037\017yaml:\"contract\"\022G\n\013execute_msg\030\003 \001(" + "\014B2\362\336\037\022yaml:\"execute_msg\"\372\336\037\030encoding/js" + "on.RawMessage\022j\n\005coins\030\005 \003(\0132\031.cosmos.ba" + "se.v1beta1.CoinB@\310\336\037\000\362\336\037\014yaml:\"coins\"\252\337\037" + "(github.com/cosmos/cosmos-sdk/types.Coin" + "s:\010\210\240\037\000\350\240\037\000\";\n\032MsgExecuteContractRespons" + "e\022\035\n\004data\030\001 \001(\014B\017\362\336\037\013yaml:\"data\"\"\351\001\n\022Msg" + "MigrateContract\022\037\n\005admin\030\001 \001(\tB\020\362\336\037\014yaml" + ":\"admin\"\022%\n\010contract\030\002 \001(\tB\023\362\336\037\017yaml:\"co" + "ntract\"\0228\n\013new_code_id\030\003 \001(\004B#\342\336\037\tNewCod" + "eID\362\336\037\022yaml:\"new_code_id\"\022G\n\013migrate_msg" + "\030\004 \001(\014B2\362\336\037\022yaml:\"migrate_msg\"\372\336\037\030encodi" + "ng/json.RawMessage:\010\210\240\037\000\350\240\037\000\";\n\032MsgMigra" + "teContractResponse\022\035\n\004data\030\001 \001(\014B\017\362\336\037\013ya" + "ml:\"data\"\"\223\001\n\026MsgUpdateContractAdmin\022\037\n\005" + "admin\030\001 \001(\tB\020\362\336\037\014yaml:\"admin\"\022\'\n\tnew_adm" + "in\030\002 \001(\tB\024\362\336\037\020yaml:\"new_admin\"\022%\n\010contra" + "ct\030\003 \001(\tB\023\362\336\037\017yaml:\"contract\":\010\210\240\037\000\350\240\037\000\"" + " \n\036MsgUpdateContractAdminResponse\"i\n\025Msg" + "ClearContractAdmin\022\037\n\005admin\030\001 \001(\tB\020\362\336\037\014y" + "aml:\"admin\"\022%\n\010contract\030\002 \001(\tB\023\362\336\037\017yaml:" + "\"contract\":\010\210\240\037\000\350\240\037\000\"\037\n\035MsgClearContract" + "AdminResponse2\365\005\n\003Msg\022W\n\tStoreCode\022 .ter" + "ra.wasm.v1beta1.MsgStoreCode\032(.terra.was" + "m.v1beta1.MsgStoreCodeResponse\022]\n\013Migrat" + "eCode\022\".terra.wasm.v1beta1.MsgMigrateCod" + "e\032*.terra.wasm.v1beta1.MsgMigrateCodeRes" + "ponse\022u\n\023InstantiateContract\022*.terra.was" + "m.v1beta1.MsgInstantiateContract\0322.terra" + ".wasm.v1beta1.MsgInstantiateContractResp" + "onse\022i\n\017ExecuteContract\022&.terra.wasm.v1b" + "eta1.MsgExecuteContract\032..terra.wasm.v1b" + "eta1.MsgExecuteContractResponse\022i\n\017Migra" + "teContract\022&.terra.wasm.v1beta1.MsgMigra" + "teContract\032..terra.wasm.v1beta1.MsgMigra" + "teContractResponse\022u\n\023UpdateContractAdmi" + "n\022*.terra.wasm.v1beta1.MsgUpdateContract" + "Admin\0322.terra.wasm.v1beta1.MsgUpdateCont" + "ractAdminResponse\022r\n\022ClearContractAdmin\022" + ").terra.wasm.v1beta1.MsgClearContractAdm" + "in\0321.terra.wasm.v1beta1.MsgClearContract" + "AdminResponseB;Z9github.com/classic-terr" + "a/core/v3/custom/wasm/types/legacyb\006prot" + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.GoGoProtos.getDescriptor(), cosmos.base.v1beta1.CoinOuterClass.getDescriptor(), }); internal_static_terra_wasm_v1beta1_MsgStoreCode_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_terra_wasm_v1beta1_MsgStoreCode_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_terra_wasm_v1beta1_MsgStoreCode_descriptor, new java.lang.String[] { "Sender", "WasmByteCode", }); internal_static_terra_wasm_v1beta1_MsgStoreCodeResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_terra_wasm_v1beta1_MsgStoreCodeResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_terra_wasm_v1beta1_MsgStoreCodeResponse_descriptor, new java.lang.String[] { "CodeId", }); internal_static_terra_wasm_v1beta1_MsgMigrateCode_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_terra_wasm_v1beta1_MsgMigrateCode_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_terra_wasm_v1beta1_MsgMigrateCode_descriptor, new java.lang.String[] { "CodeId", "Sender", "WasmByteCode", }); internal_static_terra_wasm_v1beta1_MsgMigrateCodeResponse_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_terra_wasm_v1beta1_MsgMigrateCodeResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_terra_wasm_v1beta1_MsgMigrateCodeResponse_descriptor, new java.lang.String[] { }); internal_static_terra_wasm_v1beta1_MsgInstantiateContract_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_terra_wasm_v1beta1_MsgInstantiateContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_terra_wasm_v1beta1_MsgInstantiateContract_descriptor, new java.lang.String[] { "Sender", "Admin", "CodeId", "InitMsg", "InitCoins", }); internal_static_terra_wasm_v1beta1_MsgInstantiateContractResponse_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_terra_wasm_v1beta1_MsgInstantiateContractResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_terra_wasm_v1beta1_MsgInstantiateContractResponse_descriptor, new java.lang.String[] { "ContractAddress", "Data", }); internal_static_terra_wasm_v1beta1_MsgExecuteContract_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_terra_wasm_v1beta1_MsgExecuteContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_terra_wasm_v1beta1_MsgExecuteContract_descriptor, new java.lang.String[] { "Sender", "Contract", "ExecuteMsg", "Coins", }); internal_static_terra_wasm_v1beta1_MsgExecuteContractResponse_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_terra_wasm_v1beta1_MsgExecuteContractResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_terra_wasm_v1beta1_MsgExecuteContractResponse_descriptor, new java.lang.String[] { "Data", }); internal_static_terra_wasm_v1beta1_MsgMigrateContract_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_terra_wasm_v1beta1_MsgMigrateContract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_terra_wasm_v1beta1_MsgMigrateContract_descriptor, new java.lang.String[] { "Admin", "Contract", "NewCodeId", "MigrateMsg", }); internal_static_terra_wasm_v1beta1_MsgMigrateContractResponse_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_terra_wasm_v1beta1_MsgMigrateContractResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_terra_wasm_v1beta1_MsgMigrateContractResponse_descriptor, new java.lang.String[] { "Data", }); internal_static_terra_wasm_v1beta1_MsgUpdateContractAdmin_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_terra_wasm_v1beta1_MsgUpdateContractAdmin_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_terra_wasm_v1beta1_MsgUpdateContractAdmin_descriptor, new java.lang.String[] { "Admin", "NewAdmin", "Contract", }); internal_static_terra_wasm_v1beta1_MsgUpdateContractAdminResponse_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_terra_wasm_v1beta1_MsgUpdateContractAdminResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_terra_wasm_v1beta1_MsgUpdateContractAdminResponse_descriptor, new java.lang.String[] { }); internal_static_terra_wasm_v1beta1_MsgClearContractAdmin_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_terra_wasm_v1beta1_MsgClearContractAdmin_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_terra_wasm_v1beta1_MsgClearContractAdmin_descriptor, new java.lang.String[] { "Admin", "Contract", }); internal_static_terra_wasm_v1beta1_MsgClearContractAdminResponse_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_terra_wasm_v1beta1_MsgClearContractAdminResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_terra_wasm_v1beta1_MsgClearContractAdminResponse_descriptor, new java.lang.String[] { }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.protobuf.GoGoProtos.castrepeated); registry.add(com.google.protobuf.GoGoProtos.casttype); registry.add(com.google.protobuf.GoGoProtos.customname); registry.add(com.google.protobuf.GoGoProtos.equal); registry.add(com.google.protobuf.GoGoProtos.goprotoGetters); registry.add(com.google.protobuf.GoGoProtos.moretags); registry.add(com.google.protobuf.GoGoProtos.nullable); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.protobuf.GoGoProtos.getDescriptor(); cosmos.base.v1beta1.CoinOuterClass.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy