UNPKG

@provenanceio/wallet-utils

Version:

Typescript Utilities for Provenance Blockchain Wallet

1,603 lines (1,330 loc) 153 kB
"use strict"; // source: ibc/core/channel/v1/tx.proto /** * @fileoverview * @enhanceable * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! /* eslint-disable */ // @ts-nocheck var jspb = require('google-protobuf'); var goog = jspb; var global = function () { return this || window || global || self || Function('return this')(); }.call(null); var gogoproto_gogo_pb = require('../../../../gogoproto/gogo_pb.js'); goog.object.extend(proto, gogoproto_gogo_pb); var ibc_core_client_v1_client_pb = require('../../../../ibc/core/client/v1/client_pb.js'); goog.object.extend(proto, ibc_core_client_v1_client_pb); var ibc_core_channel_v1_channel_pb = require('../../../../ibc/core/channel/v1/channel_pb.js'); goog.object.extend(proto, ibc_core_channel_v1_channel_pb); goog.exportSymbol('proto.ibc.core.channel.v1.MsgAcknowledgement', null, global); goog.exportSymbol('proto.ibc.core.channel.v1.MsgAcknowledgementResponse', null, global); goog.exportSymbol('proto.ibc.core.channel.v1.MsgChannelCloseConfirm', null, global); goog.exportSymbol('proto.ibc.core.channel.v1.MsgChannelCloseConfirmResponse', null, global); goog.exportSymbol('proto.ibc.core.channel.v1.MsgChannelCloseInit', null, global); goog.exportSymbol('proto.ibc.core.channel.v1.MsgChannelCloseInitResponse', null, global); goog.exportSymbol('proto.ibc.core.channel.v1.MsgChannelOpenAck', null, global); goog.exportSymbol('proto.ibc.core.channel.v1.MsgChannelOpenAckResponse', null, global); goog.exportSymbol('proto.ibc.core.channel.v1.MsgChannelOpenConfirm', null, global); goog.exportSymbol('proto.ibc.core.channel.v1.MsgChannelOpenConfirmResponse', null, global); goog.exportSymbol('proto.ibc.core.channel.v1.MsgChannelOpenInit', null, global); goog.exportSymbol('proto.ibc.core.channel.v1.MsgChannelOpenInitResponse', null, global); goog.exportSymbol('proto.ibc.core.channel.v1.MsgChannelOpenTry', null, global); goog.exportSymbol('proto.ibc.core.channel.v1.MsgChannelOpenTryResponse', null, global); goog.exportSymbol('proto.ibc.core.channel.v1.MsgRecvPacket', null, global); goog.exportSymbol('proto.ibc.core.channel.v1.MsgRecvPacketResponse', null, global); goog.exportSymbol('proto.ibc.core.channel.v1.MsgTimeout', null, global); goog.exportSymbol('proto.ibc.core.channel.v1.MsgTimeoutOnClose', null, global); goog.exportSymbol('proto.ibc.core.channel.v1.MsgTimeoutOnCloseResponse', null, global); goog.exportSymbol('proto.ibc.core.channel.v1.MsgTimeoutResponse', null, global); goog.exportSymbol('proto.ibc.core.channel.v1.ResponseResultType', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.ibc.core.channel.v1.MsgChannelOpenInit = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ibc.core.channel.v1.MsgChannelOpenInit, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ibc.core.channel.v1.MsgChannelOpenInit.displayName = 'proto.ibc.core.channel.v1.MsgChannelOpenInit'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.ibc.core.channel.v1.MsgChannelOpenInitResponse = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ibc.core.channel.v1.MsgChannelOpenInitResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ibc.core.channel.v1.MsgChannelOpenInitResponse.displayName = 'proto.ibc.core.channel.v1.MsgChannelOpenInitResponse'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.ibc.core.channel.v1.MsgChannelOpenTry = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ibc.core.channel.v1.MsgChannelOpenTry, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ibc.core.channel.v1.MsgChannelOpenTry.displayName = 'proto.ibc.core.channel.v1.MsgChannelOpenTry'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.ibc.core.channel.v1.MsgChannelOpenTryResponse = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ibc.core.channel.v1.MsgChannelOpenTryResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ibc.core.channel.v1.MsgChannelOpenTryResponse.displayName = 'proto.ibc.core.channel.v1.MsgChannelOpenTryResponse'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.ibc.core.channel.v1.MsgChannelOpenAck = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ibc.core.channel.v1.MsgChannelOpenAck, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ibc.core.channel.v1.MsgChannelOpenAck.displayName = 'proto.ibc.core.channel.v1.MsgChannelOpenAck'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.ibc.core.channel.v1.MsgChannelOpenAckResponse = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ibc.core.channel.v1.MsgChannelOpenAckResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ibc.core.channel.v1.MsgChannelOpenAckResponse.displayName = 'proto.ibc.core.channel.v1.MsgChannelOpenAckResponse'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.ibc.core.channel.v1.MsgChannelOpenConfirm = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ibc.core.channel.v1.MsgChannelOpenConfirm, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ibc.core.channel.v1.MsgChannelOpenConfirm.displayName = 'proto.ibc.core.channel.v1.MsgChannelOpenConfirm'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.ibc.core.channel.v1.MsgChannelOpenConfirmResponse = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ibc.core.channel.v1.MsgChannelOpenConfirmResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ibc.core.channel.v1.MsgChannelOpenConfirmResponse.displayName = 'proto.ibc.core.channel.v1.MsgChannelOpenConfirmResponse'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.ibc.core.channel.v1.MsgChannelCloseInit = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ibc.core.channel.v1.MsgChannelCloseInit, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ibc.core.channel.v1.MsgChannelCloseInit.displayName = 'proto.ibc.core.channel.v1.MsgChannelCloseInit'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.ibc.core.channel.v1.MsgChannelCloseInitResponse = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ibc.core.channel.v1.MsgChannelCloseInitResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ibc.core.channel.v1.MsgChannelCloseInitResponse.displayName = 'proto.ibc.core.channel.v1.MsgChannelCloseInitResponse'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.ibc.core.channel.v1.MsgChannelCloseConfirm = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ibc.core.channel.v1.MsgChannelCloseConfirm, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ibc.core.channel.v1.MsgChannelCloseConfirm.displayName = 'proto.ibc.core.channel.v1.MsgChannelCloseConfirm'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.ibc.core.channel.v1.MsgChannelCloseConfirmResponse = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ibc.core.channel.v1.MsgChannelCloseConfirmResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ibc.core.channel.v1.MsgChannelCloseConfirmResponse.displayName = 'proto.ibc.core.channel.v1.MsgChannelCloseConfirmResponse'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.ibc.core.channel.v1.MsgRecvPacket = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ibc.core.channel.v1.MsgRecvPacket, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ibc.core.channel.v1.MsgRecvPacket.displayName = 'proto.ibc.core.channel.v1.MsgRecvPacket'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.ibc.core.channel.v1.MsgRecvPacketResponse = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ibc.core.channel.v1.MsgRecvPacketResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ibc.core.channel.v1.MsgRecvPacketResponse.displayName = 'proto.ibc.core.channel.v1.MsgRecvPacketResponse'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.ibc.core.channel.v1.MsgTimeout = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ibc.core.channel.v1.MsgTimeout, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ibc.core.channel.v1.MsgTimeout.displayName = 'proto.ibc.core.channel.v1.MsgTimeout'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.ibc.core.channel.v1.MsgTimeoutResponse = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ibc.core.channel.v1.MsgTimeoutResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ibc.core.channel.v1.MsgTimeoutResponse.displayName = 'proto.ibc.core.channel.v1.MsgTimeoutResponse'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.ibc.core.channel.v1.MsgTimeoutOnClose = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ibc.core.channel.v1.MsgTimeoutOnClose, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ibc.core.channel.v1.MsgTimeoutOnClose.displayName = 'proto.ibc.core.channel.v1.MsgTimeoutOnClose'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.ibc.core.channel.v1.MsgTimeoutOnCloseResponse = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ibc.core.channel.v1.MsgTimeoutOnCloseResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ibc.core.channel.v1.MsgTimeoutOnCloseResponse.displayName = 'proto.ibc.core.channel.v1.MsgTimeoutOnCloseResponse'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.ibc.core.channel.v1.MsgAcknowledgement = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ibc.core.channel.v1.MsgAcknowledgement, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ibc.core.channel.v1.MsgAcknowledgement.displayName = 'proto.ibc.core.channel.v1.MsgAcknowledgement'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.ibc.core.channel.v1.MsgAcknowledgementResponse = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.ibc.core.channel.v1.MsgAcknowledgementResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ibc.core.channel.v1.MsgAcknowledgementResponse.displayName = 'proto.ibc.core.channel.v1.MsgAcknowledgementResponse'; } if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.ibc.core.channel.v1.MsgChannelOpenInit.prototype.toObject = function (opt_includeInstance) { return proto.ibc.core.channel.v1.MsgChannelOpenInit.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.ibc.core.channel.v1.MsgChannelOpenInit} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ibc.core.channel.v1.MsgChannelOpenInit.toObject = function (includeInstance, msg) { var f, obj = { portId: jspb.Message.getFieldWithDefault(msg, 1, ""), channel: (f = msg.getChannel()) && ibc_core_channel_v1_channel_pb.Channel.toObject(includeInstance, f), signer: jspb.Message.getFieldWithDefault(msg, 3, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.ibc.core.channel.v1.MsgChannelOpenInit} */ proto.ibc.core.channel.v1.MsgChannelOpenInit.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.ibc.core.channel.v1.MsgChannelOpenInit(); return proto.ibc.core.channel.v1.MsgChannelOpenInit.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.ibc.core.channel.v1.MsgChannelOpenInit} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.ibc.core.channel.v1.MsgChannelOpenInit} */ proto.ibc.core.channel.v1.MsgChannelOpenInit.deserializeBinaryFromReader = function (msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {string} */ reader.readString(); msg.setPortId(value); break; case 2: var value = new ibc_core_channel_v1_channel_pb.Channel(); reader.readMessage(value, ibc_core_channel_v1_channel_pb.Channel.deserializeBinaryFromReader); msg.setChannel(value); break; case 3: var value = /** @type {string} */ reader.readString(); msg.setSigner(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.ibc.core.channel.v1.MsgChannelOpenInit.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter(); proto.ibc.core.channel.v1.MsgChannelOpenInit.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.ibc.core.channel.v1.MsgChannelOpenInit} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ibc.core.channel.v1.MsgChannelOpenInit.serializeBinaryToWriter = function (message, writer) { var f = undefined; f = message.getPortId(); if (f.length > 0) { writer.writeString(1, f); } f = message.getChannel(); if (f != null) { writer.writeMessage(2, f, ibc_core_channel_v1_channel_pb.Channel.serializeBinaryToWriter); } f = message.getSigner(); if (f.length > 0) { writer.writeString(3, f); } }; /** * optional string port_id = 1; * @return {string} */ proto.ibc.core.channel.v1.MsgChannelOpenInit.prototype.getPortId = function () { return ( /** @type {string} */ jspb.Message.getFieldWithDefault(this, 1, "") ); }; /** * @param {string} value * @return {!proto.ibc.core.channel.v1.MsgChannelOpenInit} returns this */ proto.ibc.core.channel.v1.MsgChannelOpenInit.prototype.setPortId = function (value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional Channel channel = 2; * @return {?proto.ibc.core.channel.v1.Channel} */ proto.ibc.core.channel.v1.MsgChannelOpenInit.prototype.getChannel = function () { return ( /** @type{?proto.ibc.core.channel.v1.Channel} */ jspb.Message.getWrapperField(this, ibc_core_channel_v1_channel_pb.Channel, 2) ); }; /** * @param {?proto.ibc.core.channel.v1.Channel|undefined} value * @return {!proto.ibc.core.channel.v1.MsgChannelOpenInit} returns this */ proto.ibc.core.channel.v1.MsgChannelOpenInit.prototype.setChannel = function (value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.ibc.core.channel.v1.MsgChannelOpenInit} returns this */ proto.ibc.core.channel.v1.MsgChannelOpenInit.prototype.clearChannel = function () { return this.setChannel(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.ibc.core.channel.v1.MsgChannelOpenInit.prototype.hasChannel = function () { return jspb.Message.getField(this, 2) != null; }; /** * optional string signer = 3; * @return {string} */ proto.ibc.core.channel.v1.MsgChannelOpenInit.prototype.getSigner = function () { return ( /** @type {string} */ jspb.Message.getFieldWithDefault(this, 3, "") ); }; /** * @param {string} value * @return {!proto.ibc.core.channel.v1.MsgChannelOpenInit} returns this */ proto.ibc.core.channel.v1.MsgChannelOpenInit.prototype.setSigner = function (value) { return jspb.Message.setProto3StringField(this, 3, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.ibc.core.channel.v1.MsgChannelOpenInitResponse.prototype.toObject = function (opt_includeInstance) { return proto.ibc.core.channel.v1.MsgChannelOpenInitResponse.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.ibc.core.channel.v1.MsgChannelOpenInitResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ibc.core.channel.v1.MsgChannelOpenInitResponse.toObject = function (includeInstance, msg) { var f, obj = { channelId: jspb.Message.getFieldWithDefault(msg, 1, ""), version: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.ibc.core.channel.v1.MsgChannelOpenInitResponse} */ proto.ibc.core.channel.v1.MsgChannelOpenInitResponse.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.ibc.core.channel.v1.MsgChannelOpenInitResponse(); return proto.ibc.core.channel.v1.MsgChannelOpenInitResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.ibc.core.channel.v1.MsgChannelOpenInitResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.ibc.core.channel.v1.MsgChannelOpenInitResponse} */ proto.ibc.core.channel.v1.MsgChannelOpenInitResponse.deserializeBinaryFromReader = function (msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {string} */ reader.readString(); msg.setChannelId(value); break; case 2: var value = /** @type {string} */ reader.readString(); msg.setVersion(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.ibc.core.channel.v1.MsgChannelOpenInitResponse.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter(); proto.ibc.core.channel.v1.MsgChannelOpenInitResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.ibc.core.channel.v1.MsgChannelOpenInitResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ibc.core.channel.v1.MsgChannelOpenInitResponse.serializeBinaryToWriter = function (message, writer) { var f = undefined; f = message.getChannelId(); if (f.length > 0) { writer.writeString(1, f); } f = message.getVersion(); if (f.length > 0) { writer.writeString(2, f); } }; /** * optional string channel_id = 1; * @return {string} */ proto.ibc.core.channel.v1.MsgChannelOpenInitResponse.prototype.getChannelId = function () { return ( /** @type {string} */ jspb.Message.getFieldWithDefault(this, 1, "") ); }; /** * @param {string} value * @return {!proto.ibc.core.channel.v1.MsgChannelOpenInitResponse} returns this */ proto.ibc.core.channel.v1.MsgChannelOpenInitResponse.prototype.setChannelId = function (value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string version = 2; * @return {string} */ proto.ibc.core.channel.v1.MsgChannelOpenInitResponse.prototype.getVersion = function () { return ( /** @type {string} */ jspb.Message.getFieldWithDefault(this, 2, "") ); }; /** * @param {string} value * @return {!proto.ibc.core.channel.v1.MsgChannelOpenInitResponse} returns this */ proto.ibc.core.channel.v1.MsgChannelOpenInitResponse.prototype.setVersion = function (value) { return jspb.Message.setProto3StringField(this, 2, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.ibc.core.channel.v1.MsgChannelOpenTry.prototype.toObject = function (opt_includeInstance) { return proto.ibc.core.channel.v1.MsgChannelOpenTry.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.ibc.core.channel.v1.MsgChannelOpenTry} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ibc.core.channel.v1.MsgChannelOpenTry.toObject = function (includeInstance, msg) { var f, obj = { portId: jspb.Message.getFieldWithDefault(msg, 1, ""), previousChannelId: jspb.Message.getFieldWithDefault(msg, 2, ""), channel: (f = msg.getChannel()) && ibc_core_channel_v1_channel_pb.Channel.toObject(includeInstance, f), counterpartyVersion: jspb.Message.getFieldWithDefault(msg, 4, ""), proofInit: msg.getProofInit_asB64(), proofHeight: (f = msg.getProofHeight()) && ibc_core_client_v1_client_pb.Height.toObject(includeInstance, f), signer: jspb.Message.getFieldWithDefault(msg, 7, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.ibc.core.channel.v1.MsgChannelOpenTry} */ proto.ibc.core.channel.v1.MsgChannelOpenTry.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.ibc.core.channel.v1.MsgChannelOpenTry(); return proto.ibc.core.channel.v1.MsgChannelOpenTry.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.ibc.core.channel.v1.MsgChannelOpenTry} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.ibc.core.channel.v1.MsgChannelOpenTry} */ proto.ibc.core.channel.v1.MsgChannelOpenTry.deserializeBinaryFromReader = function (msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {string} */ reader.readString(); msg.setPortId(value); break; case 2: var value = /** @type {string} */ reader.readString(); msg.setPreviousChannelId(value); break; case 3: var value = new ibc_core_channel_v1_channel_pb.Channel(); reader.readMessage(value, ibc_core_channel_v1_channel_pb.Channel.deserializeBinaryFromReader); msg.setChannel(value); break; case 4: var value = /** @type {string} */ reader.readString(); msg.setCounterpartyVersion(value); break; case 5: var value = /** @type {!Uint8Array} */ reader.readBytes(); msg.setProofInit(value); break; case 6: var value = new ibc_core_client_v1_client_pb.Height(); reader.readMessage(value, ibc_core_client_v1_client_pb.Height.deserializeBinaryFromReader); msg.setProofHeight(value); break; case 7: var value = /** @type {string} */ reader.readString(); msg.setSigner(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.ibc.core.channel.v1.MsgChannelOpenTry.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter(); proto.ibc.core.channel.v1.MsgChannelOpenTry.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.ibc.core.channel.v1.MsgChannelOpenTry} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ibc.core.channel.v1.MsgChannelOpenTry.serializeBinaryToWriter = function (message, writer) { var f = undefined; f = message.getPortId(); if (f.length > 0) { writer.writeString(1, f); } f = message.getPreviousChannelId(); if (f.length > 0) { writer.writeString(2, f); } f = message.getChannel(); if (f != null) { writer.writeMessage(3, f, ibc_core_channel_v1_channel_pb.Channel.serializeBinaryToWriter); } f = message.getCounterpartyVersion(); if (f.length > 0) { writer.writeString(4, f); } f = message.getProofInit_asU8(); if (f.length > 0) { writer.writeBytes(5, f); } f = message.getProofHeight(); if (f != null) { writer.writeMessage(6, f, ibc_core_client_v1_client_pb.Height.serializeBinaryToWriter); } f = message.getSigner(); if (f.length > 0) { writer.writeString(7, f); } }; /** * optional string port_id = 1; * @return {string} */ proto.ibc.core.channel.v1.MsgChannelOpenTry.prototype.getPortId = function () { return ( /** @type {string} */ jspb.Message.getFieldWithDefault(this, 1, "") ); }; /** * @param {string} value * @return {!proto.ibc.core.channel.v1.MsgChannelOpenTry} returns this */ proto.ibc.core.channel.v1.MsgChannelOpenTry.prototype.setPortId = function (value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string previous_channel_id = 2; * @return {string} */ proto.ibc.core.channel.v1.MsgChannelOpenTry.prototype.getPreviousChannelId = function () { return ( /** @type {string} */ jspb.Message.getFieldWithDefault(this, 2, "") ); }; /** * @param {string} value * @return {!proto.ibc.core.channel.v1.MsgChannelOpenTry} returns this */ proto.ibc.core.channel.v1.MsgChannelOpenTry.prototype.setPreviousChannelId = function (value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional Channel channel = 3; * @return {?proto.ibc.core.channel.v1.Channel} */ proto.ibc.core.channel.v1.MsgChannelOpenTry.prototype.getChannel = function () { return ( /** @type{?proto.ibc.core.channel.v1.Channel} */ jspb.Message.getWrapperField(this, ibc_core_channel_v1_channel_pb.Channel, 3) ); }; /** * @param {?proto.ibc.core.channel.v1.Channel|undefined} value * @return {!proto.ibc.core.channel.v1.MsgChannelOpenTry} returns this */ proto.ibc.core.channel.v1.MsgChannelOpenTry.prototype.setChannel = function (value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. * @return {!proto.ibc.core.channel.v1.MsgChannelOpenTry} returns this */ proto.ibc.core.channel.v1.MsgChannelOpenTry.prototype.clearChannel = function () { return this.setChannel(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.ibc.core.channel.v1.MsgChannelOpenTry.prototype.hasChannel = function () { return jspb.Message.getField(this, 3) != null; }; /** * optional string counterparty_version = 4; * @return {string} */ proto.ibc.core.channel.v1.MsgChannelOpenTry.prototype.getCounterpartyVersion = function () { return ( /** @type {string} */ jspb.Message.getFieldWithDefault(this, 4, "") ); }; /** * @param {string} value * @return {!proto.ibc.core.channel.v1.MsgChannelOpenTry} returns this */ proto.ibc.core.channel.v1.MsgChannelOpenTry.prototype.setCounterpartyVersion = function (value) { return jspb.Message.setProto3StringField(this, 4, value); }; /** * optional bytes proof_init = 5; * @return {!(string|Uint8Array)} */ proto.ibc.core.channel.v1.MsgChannelOpenTry.prototype.getProofInit = function () { return ( /** @type {!(string|Uint8Array)} */ jspb.Message.getFieldWithDefault(this, 5, "") ); }; /** * optional bytes proof_init = 5; * This is a type-conversion wrapper around `getProofInit()` * @return {string} */ proto.ibc.core.channel.v1.MsgChannelOpenTry.prototype.getProofInit_asB64 = function () { return ( /** @type {string} */ jspb.Message.bytesAsB64(this.getProofInit()) ); }; /** * optional bytes proof_init = 5; * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array * This is a type-conversion wrapper around `getProofInit()` * @return {!Uint8Array} */ proto.ibc.core.channel.v1.MsgChannelOpenTry.prototype.getProofInit_asU8 = function () { return ( /** @type {!Uint8Array} */ jspb.Message.bytesAsU8(this.getProofInit()) ); }; /** * @param {!(string|Uint8Array)} value * @return {!proto.ibc.core.channel.v1.MsgChannelOpenTry} returns this */ proto.ibc.core.channel.v1.MsgChannelOpenTry.prototype.setProofInit = function (value) { return jspb.Message.setProto3BytesField(this, 5, value); }; /** * optional ibc.core.client.v1.Height proof_height = 6; * @return {?proto.ibc.core.client.v1.Height} */ proto.ibc.core.channel.v1.MsgChannelOpenTry.prototype.getProofHeight = function () { return ( /** @type{?proto.ibc.core.client.v1.Height} */ jspb.Message.getWrapperField(this, ibc_core_client_v1_client_pb.Height, 6) ); }; /** * @param {?proto.ibc.core.client.v1.Height|undefined} value * @return {!proto.ibc.core.channel.v1.MsgChannelOpenTry} returns this */ proto.ibc.core.channel.v1.MsgChannelOpenTry.prototype.setProofHeight = function (value) { return jspb.Message.setWrapperField(this, 6, value); }; /** * Clears the message field making it undefined. * @return {!proto.ibc.core.channel.v1.MsgChannelOpenTry} returns this */ proto.ibc.core.channel.v1.MsgChannelOpenTry.prototype.clearProofHeight = function () { return this.setProofHeight(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.ibc.core.channel.v1.MsgChannelOpenTry.prototype.hasProofHeight = function () { return jspb.Message.getField(this, 6) != null; }; /** * optional string signer = 7; * @return {string} */ proto.ibc.core.channel.v1.MsgChannelOpenTry.prototype.getSigner = function () { return ( /** @type {string} */ jspb.Message.getFieldWithDefault(this, 7, "") ); }; /** * @param {string} value * @return {!proto.ibc.core.channel.v1.MsgChannelOpenTry} returns this */ proto.ibc.core.channel.v1.MsgChannelOpenTry.prototype.setSigner = function (value) { return jspb.Message.setProto3StringField(this, 7, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.ibc.core.channel.v1.MsgChannelOpenTryResponse.prototype.toObject = function (opt_includeInstance) { return proto.ibc.core.channel.v1.MsgChannelOpenTryResponse.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.ibc.core.channel.v1.MsgChannelOpenTryResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ibc.core.channel.v1.MsgChannelOpenTryResponse.toObject = function (includeInstance, msg) { var f, obj = { version: jspb.Message.getFieldWithDefault(msg, 1, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.ibc.core.channel.v1.MsgChannelOpenTryResponse} */ proto.ibc.core.channel.v1.MsgChannelOpenTryResponse.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.ibc.core.channel.v1.MsgChannelOpenTryResponse(); return proto.ibc.core.channel.v1.MsgChannelOpenTryResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.ibc.core.channel.v1.MsgChannelOpenTryResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.ibc.core.channel.v1.MsgChannelOpenTryResponse} */ proto.ibc.core.channel.v1.MsgChannelOpenTryResponse.deserializeBinaryFromReader = function (msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {string} */ reader.readString(); msg.setVersion(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.ibc.core.channel.v1.MsgChannelOpenTryResponse.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter(); proto.ibc.core.channel.v1.MsgChannelOpenTryResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.ibc.core.channel.v1.MsgChannelOpenTryResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ibc.core.channel.v1.MsgChannelOpenTryResponse.serializeBinaryToWriter = function (message, writer) { var f = undefined; f = message.getVersion(); if (f.length > 0) { writer.writeString(1, f); } }; /** * optional string version = 1; * @return {string} */ proto.ibc.core.channel.v1.MsgChannelOpenTryResponse.prototype.getVersion = function () { return ( /** @type {string} */ jspb.Message.getFieldWithDefault(this, 1, "") ); }; /** * @param {string} value * @return {!proto.ibc.core.channel.v1.MsgChannelOpenTryResponse} returns this */ proto.ibc.core.channel.v1.MsgChannelOpenTryResponse.prototype.setVersion = function (value) { return jspb.Message.setProto3StringField(this, 1, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.ibc.core.channel.v1.MsgChannelOpenAck.prototype.toObject = function (opt_includeInstance) { return proto.ibc.core.channel.v1.MsgChannelOpenAck.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.ibc.core.channel.v1.MsgChannelOpenAck} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ibc.core.channel.v1.MsgChannelOpenAck.toObject = function (includeInstance, msg) { var f, obj = { portId: jspb.Message.getFieldWithDefault(msg, 1, ""), channelId: jspb.Message.getFieldWithDefault(msg, 2, ""), counterpartyChannelId: jspb.Message.getFieldWithDefault(msg, 3, ""), counterpartyVersion: jspb.Message.getFieldWithDefault(msg, 4, ""), proofTry: msg.getProofTry_asB64(), proofHeight: (f = msg.getProofHeight()) && ibc_core_client_v1_client_pb.Height.toObject(includeInstance, f), signer: jspb.Message.getFieldWithDefault(msg, 7, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.ibc.core.channel.v1.MsgChannelOpenAck} */ proto.ibc.core.channel.v1.MsgChannelOpenAck.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.ibc.core.channel.v1.MsgChannelOpenAck(); return proto.ibc.core.channel.v1.MsgChannelOpenAck.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.ibc.core.channel.v1.MsgChannelOpenAck} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.ibc.core.channel.v1.MsgChannelOpenAck} */ proto.ibc.core.channel.v1.MsgChannelOpenAck.deserializeBinaryFromReader = function (msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {string} */ reader.readString(); msg.setPortId(value); break; case 2: var value = /** @type {string} */ reader.readString(); msg.setChannelId(value); break; case 3: var value = /** @type {string} */ reader.readString(); msg.setCounterpartyChannelId(value); break; case 4: var value = /** @type {string} */ reader.readString(); msg.setCounterpartyVersion(value); break; case 5: var value = /** @type {!Uint8Array} */ reader.readBytes(); msg.setProofTry(value); break; case 6: var value = ne