@bandprotocol/bandchain.js
Version:
Library for interacting with BandChain in browser and Node.js environments
1,588 lines (1,505 loc) • 90.6 kB
JavaScript
// source: ibc/core/client/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')()
var cosmos_msg_v1_msg_pb = require('../../../../cosmos/msg/v1/msg_pb.js')
goog.object.extend(proto, cosmos_msg_v1_msg_pb)
var cosmos_upgrade_v1beta1_upgrade_pb = require('../../../../cosmos/upgrade/v1beta1/upgrade_pb.js')
goog.object.extend(proto, cosmos_upgrade_v1beta1_upgrade_pb)
var gogoproto_gogo_pb = require('../../../../gogoproto/gogo_pb.js')
goog.object.extend(proto, gogoproto_gogo_pb)
var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js')
goog.object.extend(proto, google_protobuf_any_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)
goog.exportSymbol('proto.ibc.core.client.v1.MsgCreateClient', null, global)
goog.exportSymbol(
'proto.ibc.core.client.v1.MsgCreateClientResponse',
null,
global,
)
goog.exportSymbol(
'proto.ibc.core.client.v1.MsgIBCSoftwareUpgrade',
null,
global,
)
goog.exportSymbol(
'proto.ibc.core.client.v1.MsgIBCSoftwareUpgradeResponse',
null,
global,
)
goog.exportSymbol('proto.ibc.core.client.v1.MsgRecoverClient', null, global)
goog.exportSymbol(
'proto.ibc.core.client.v1.MsgRecoverClientResponse',
null,
global,
)
goog.exportSymbol(
'proto.ibc.core.client.v1.MsgSubmitMisbehaviour',
null,
global,
)
goog.exportSymbol(
'proto.ibc.core.client.v1.MsgSubmitMisbehaviourResponse',
null,
global,
)
goog.exportSymbol('proto.ibc.core.client.v1.MsgUpdateClient', null, global)
goog.exportSymbol(
'proto.ibc.core.client.v1.MsgUpdateClientResponse',
null,
global,
)
goog.exportSymbol('proto.ibc.core.client.v1.MsgUpdateParams', null, global)
goog.exportSymbol(
'proto.ibc.core.client.v1.MsgUpdateParamsResponse',
null,
global,
)
goog.exportSymbol('proto.ibc.core.client.v1.MsgUpgradeClient', null, global)
goog.exportSymbol(
'proto.ibc.core.client.v1.MsgUpgradeClientResponse',
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.client.v1.MsgCreateClient = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.ibc.core.client.v1.MsgCreateClient, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.client.v1.MsgCreateClient.displayName =
'proto.ibc.core.client.v1.MsgCreateClient'
}
/**
* 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.client.v1.MsgCreateClientResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.ibc.core.client.v1.MsgCreateClientResponse, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.client.v1.MsgCreateClientResponse.displayName =
'proto.ibc.core.client.v1.MsgCreateClientResponse'
}
/**
* 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.client.v1.MsgUpdateClient = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.ibc.core.client.v1.MsgUpdateClient, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.client.v1.MsgUpdateClient.displayName =
'proto.ibc.core.client.v1.MsgUpdateClient'
}
/**
* 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.client.v1.MsgUpdateClientResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.ibc.core.client.v1.MsgUpdateClientResponse, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.client.v1.MsgUpdateClientResponse.displayName =
'proto.ibc.core.client.v1.MsgUpdateClientResponse'
}
/**
* 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.client.v1.MsgUpgradeClient = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.ibc.core.client.v1.MsgUpgradeClient, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.client.v1.MsgUpgradeClient.displayName =
'proto.ibc.core.client.v1.MsgUpgradeClient'
}
/**
* 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.client.v1.MsgUpgradeClientResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.ibc.core.client.v1.MsgUpgradeClientResponse, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.client.v1.MsgUpgradeClientResponse.displayName =
'proto.ibc.core.client.v1.MsgUpgradeClientResponse'
}
/**
* 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.client.v1.MsgSubmitMisbehaviour = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.ibc.core.client.v1.MsgSubmitMisbehaviour, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.client.v1.MsgSubmitMisbehaviour.displayName =
'proto.ibc.core.client.v1.MsgSubmitMisbehaviour'
}
/**
* 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.client.v1.MsgSubmitMisbehaviourResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.ibc.core.client.v1.MsgSubmitMisbehaviourResponse,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.client.v1.MsgSubmitMisbehaviourResponse.displayName =
'proto.ibc.core.client.v1.MsgSubmitMisbehaviourResponse'
}
/**
* 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.client.v1.MsgRecoverClient = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.ibc.core.client.v1.MsgRecoverClient, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.client.v1.MsgRecoverClient.displayName =
'proto.ibc.core.client.v1.MsgRecoverClient'
}
/**
* 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.client.v1.MsgRecoverClientResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.ibc.core.client.v1.MsgRecoverClientResponse, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.client.v1.MsgRecoverClientResponse.displayName =
'proto.ibc.core.client.v1.MsgRecoverClientResponse'
}
/**
* 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.client.v1.MsgIBCSoftwareUpgrade = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.ibc.core.client.v1.MsgIBCSoftwareUpgrade, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.client.v1.MsgIBCSoftwareUpgrade.displayName =
'proto.ibc.core.client.v1.MsgIBCSoftwareUpgrade'
}
/**
* 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.client.v1.MsgIBCSoftwareUpgradeResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.ibc.core.client.v1.MsgIBCSoftwareUpgradeResponse,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.client.v1.MsgIBCSoftwareUpgradeResponse.displayName =
'proto.ibc.core.client.v1.MsgIBCSoftwareUpgradeResponse'
}
/**
* 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.client.v1.MsgUpdateParams = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.ibc.core.client.v1.MsgUpdateParams, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.client.v1.MsgUpdateParams.displayName =
'proto.ibc.core.client.v1.MsgUpdateParams'
}
/**
* 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.client.v1.MsgUpdateParamsResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.ibc.core.client.v1.MsgUpdateParamsResponse, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.client.v1.MsgUpdateParamsResponse.displayName =
'proto.ibc.core.client.v1.MsgUpdateParamsResponse'
}
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.client.v1.MsgCreateClient.prototype.toObject = function (
opt_includeInstance,
) {
return proto.ibc.core.client.v1.MsgCreateClient.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.client.v1.MsgCreateClient} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ibc.core.client.v1.MsgCreateClient.toObject = function (
includeInstance,
msg,
) {
var f,
obj = {
clientState:
(f = msg.getClientState()) &&
google_protobuf_any_pb.Any.toObject(includeInstance, f),
consensusState:
(f = msg.getConsensusState()) &&
google_protobuf_any_pb.Any.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.client.v1.MsgCreateClient}
*/
proto.ibc.core.client.v1.MsgCreateClient.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes)
var msg = new proto.ibc.core.client.v1.MsgCreateClient()
return proto.ibc.core.client.v1.MsgCreateClient.deserializeBinaryFromReader(
msg,
reader,
)
}
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.ibc.core.client.v1.MsgCreateClient} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ibc.core.client.v1.MsgCreateClient}
*/
proto.ibc.core.client.v1.MsgCreateClient.deserializeBinaryFromReader =
function (msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break
}
var field = reader.getFieldNumber()
switch (field) {
case 1:
var value = new google_protobuf_any_pb.Any()
reader.readMessage(
value,
google_protobuf_any_pb.Any.deserializeBinaryFromReader,
)
msg.setClientState(value)
break
case 2:
var value = new google_protobuf_any_pb.Any()
reader.readMessage(
value,
google_protobuf_any_pb.Any.deserializeBinaryFromReader,
)
msg.setConsensusState(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.client.v1.MsgCreateClient.prototype.serializeBinary =
function () {
var writer = new jspb.BinaryWriter()
proto.ibc.core.client.v1.MsgCreateClient.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.client.v1.MsgCreateClient} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ibc.core.client.v1.MsgCreateClient.serializeBinaryToWriter = function (
message,
writer,
) {
var f = undefined
f = message.getClientState()
if (f != null) {
writer.writeMessage(
1,
f,
google_protobuf_any_pb.Any.serializeBinaryToWriter,
)
}
f = message.getConsensusState()
if (f != null) {
writer.writeMessage(
2,
f,
google_protobuf_any_pb.Any.serializeBinaryToWriter,
)
}
f = message.getSigner()
if (f.length > 0) {
writer.writeString(3, f)
}
}
/**
* optional google.protobuf.Any client_state = 1;
* @return {?proto.google.protobuf.Any}
*/
proto.ibc.core.client.v1.MsgCreateClient.prototype.getClientState =
function () {
return /** @type{?proto.google.protobuf.Any} */ (
jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 1)
)
}
/**
* @param {?proto.google.protobuf.Any|undefined} value
* @return {!proto.ibc.core.client.v1.MsgCreateClient} returns this
*/
proto.ibc.core.client.v1.MsgCreateClient.prototype.setClientState = function (
value,
) {
return jspb.Message.setWrapperField(this, 1, value)
}
/**
* Clears the message field making it undefined.
* @return {!proto.ibc.core.client.v1.MsgCreateClient} returns this
*/
proto.ibc.core.client.v1.MsgCreateClient.prototype.clearClientState =
function () {
return this.setClientState(undefined)
}
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.ibc.core.client.v1.MsgCreateClient.prototype.hasClientState =
function () {
return jspb.Message.getField(this, 1) != null
}
/**
* optional google.protobuf.Any consensus_state = 2;
* @return {?proto.google.protobuf.Any}
*/
proto.ibc.core.client.v1.MsgCreateClient.prototype.getConsensusState =
function () {
return /** @type{?proto.google.protobuf.Any} */ (
jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 2)
)
}
/**
* @param {?proto.google.protobuf.Any|undefined} value
* @return {!proto.ibc.core.client.v1.MsgCreateClient} returns this
*/
proto.ibc.core.client.v1.MsgCreateClient.prototype.setConsensusState =
function (value) {
return jspb.Message.setWrapperField(this, 2, value)
}
/**
* Clears the message field making it undefined.
* @return {!proto.ibc.core.client.v1.MsgCreateClient} returns this
*/
proto.ibc.core.client.v1.MsgCreateClient.prototype.clearConsensusState =
function () {
return this.setConsensusState(undefined)
}
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.ibc.core.client.v1.MsgCreateClient.prototype.hasConsensusState =
function () {
return jspb.Message.getField(this, 2) != null
}
/**
* optional string signer = 3;
* @return {string}
*/
proto.ibc.core.client.v1.MsgCreateClient.prototype.getSigner = function () {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ''))
}
/**
* @param {string} value
* @return {!proto.ibc.core.client.v1.MsgCreateClient} returns this
*/
proto.ibc.core.client.v1.MsgCreateClient.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.client.v1.MsgCreateClientResponse.prototype.toObject =
function (opt_includeInstance) {
return proto.ibc.core.client.v1.MsgCreateClientResponse.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.client.v1.MsgCreateClientResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ibc.core.client.v1.MsgCreateClientResponse.toObject = function (
includeInstance,
msg,
) {
var f,
obj = {}
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.client.v1.MsgCreateClientResponse}
*/
proto.ibc.core.client.v1.MsgCreateClientResponse.deserializeBinary = function (
bytes,
) {
var reader = new jspb.BinaryReader(bytes)
var msg = new proto.ibc.core.client.v1.MsgCreateClientResponse()
return proto.ibc.core.client.v1.MsgCreateClientResponse.deserializeBinaryFromReader(
msg,
reader,
)
}
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.ibc.core.client.v1.MsgCreateClientResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ibc.core.client.v1.MsgCreateClientResponse}
*/
proto.ibc.core.client.v1.MsgCreateClientResponse.deserializeBinaryFromReader =
function (msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break
}
var field = reader.getFieldNumber()
switch (field) {
default:
reader.skipField()
break
}
}
return msg
}
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.ibc.core.client.v1.MsgCreateClientResponse.prototype.serializeBinary =
function () {
var writer = new jspb.BinaryWriter()
proto.ibc.core.client.v1.MsgCreateClientResponse.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.client.v1.MsgCreateClientResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ibc.core.client.v1.MsgCreateClientResponse.serializeBinaryToWriter =
function (message, writer) {
var f = undefined
}
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.client.v1.MsgUpdateClient.prototype.toObject = function (
opt_includeInstance,
) {
return proto.ibc.core.client.v1.MsgUpdateClient.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.client.v1.MsgUpdateClient} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ibc.core.client.v1.MsgUpdateClient.toObject = function (
includeInstance,
msg,
) {
var f,
obj = {
clientId: jspb.Message.getFieldWithDefault(msg, 1, ''),
clientMessage:
(f = msg.getClientMessage()) &&
google_protobuf_any_pb.Any.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.client.v1.MsgUpdateClient}
*/
proto.ibc.core.client.v1.MsgUpdateClient.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes)
var msg = new proto.ibc.core.client.v1.MsgUpdateClient()
return proto.ibc.core.client.v1.MsgUpdateClient.deserializeBinaryFromReader(
msg,
reader,
)
}
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.ibc.core.client.v1.MsgUpdateClient} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ibc.core.client.v1.MsgUpdateClient}
*/
proto.ibc.core.client.v1.MsgUpdateClient.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.setClientId(value)
break
case 2:
var value = new google_protobuf_any_pb.Any()
reader.readMessage(
value,
google_protobuf_any_pb.Any.deserializeBinaryFromReader,
)
msg.setClientMessage(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.client.v1.MsgUpdateClient.prototype.serializeBinary =
function () {
var writer = new jspb.BinaryWriter()
proto.ibc.core.client.v1.MsgUpdateClient.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.client.v1.MsgUpdateClient} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ibc.core.client.v1.MsgUpdateClient.serializeBinaryToWriter = function (
message,
writer,
) {
var f = undefined
f = message.getClientId()
if (f.length > 0) {
writer.writeString(1, f)
}
f = message.getClientMessage()
if (f != null) {
writer.writeMessage(
2,
f,
google_protobuf_any_pb.Any.serializeBinaryToWriter,
)
}
f = message.getSigner()
if (f.length > 0) {
writer.writeString(3, f)
}
}
/**
* optional string client_id = 1;
* @return {string}
*/
proto.ibc.core.client.v1.MsgUpdateClient.prototype.getClientId = function () {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ''))
}
/**
* @param {string} value
* @return {!proto.ibc.core.client.v1.MsgUpdateClient} returns this
*/
proto.ibc.core.client.v1.MsgUpdateClient.prototype.setClientId = function (
value,
) {
return jspb.Message.setProto3StringField(this, 1, value)
}
/**
* optional google.protobuf.Any client_message = 2;
* @return {?proto.google.protobuf.Any}
*/
proto.ibc.core.client.v1.MsgUpdateClient.prototype.getClientMessage =
function () {
return /** @type{?proto.google.protobuf.Any} */ (
jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 2)
)
}
/**
* @param {?proto.google.protobuf.Any|undefined} value
* @return {!proto.ibc.core.client.v1.MsgUpdateClient} returns this
*/
proto.ibc.core.client.v1.MsgUpdateClient.prototype.setClientMessage = function (
value,
) {
return jspb.Message.setWrapperField(this, 2, value)
}
/**
* Clears the message field making it undefined.
* @return {!proto.ibc.core.client.v1.MsgUpdateClient} returns this
*/
proto.ibc.core.client.v1.MsgUpdateClient.prototype.clearClientMessage =
function () {
return this.setClientMessage(undefined)
}
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.ibc.core.client.v1.MsgUpdateClient.prototype.hasClientMessage =
function () {
return jspb.Message.getField(this, 2) != null
}
/**
* optional string signer = 3;
* @return {string}
*/
proto.ibc.core.client.v1.MsgUpdateClient.prototype.getSigner = function () {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ''))
}
/**
* @param {string} value
* @return {!proto.ibc.core.client.v1.MsgUpdateClient} returns this
*/
proto.ibc.core.client.v1.MsgUpdateClient.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.client.v1.MsgUpdateClientResponse.prototype.toObject =
function (opt_includeInstance) {
return proto.ibc.core.client.v1.MsgUpdateClientResponse.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.client.v1.MsgUpdateClientResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ibc.core.client.v1.MsgUpdateClientResponse.toObject = function (
includeInstance,
msg,
) {
var f,
obj = {}
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.client.v1.MsgUpdateClientResponse}
*/
proto.ibc.core.client.v1.MsgUpdateClientResponse.deserializeBinary = function (
bytes,
) {
var reader = new jspb.BinaryReader(bytes)
var msg = new proto.ibc.core.client.v1.MsgUpdateClientResponse()
return proto.ibc.core.client.v1.MsgUpdateClientResponse.deserializeBinaryFromReader(
msg,
reader,
)
}
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.ibc.core.client.v1.MsgUpdateClientResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ibc.core.client.v1.MsgUpdateClientResponse}
*/
proto.ibc.core.client.v1.MsgUpdateClientResponse.deserializeBinaryFromReader =
function (msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break
}
var field = reader.getFieldNumber()
switch (field) {
default:
reader.skipField()
break
}
}
return msg
}
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.ibc.core.client.v1.MsgUpdateClientResponse.prototype.serializeBinary =
function () {
var writer = new jspb.BinaryWriter()
proto.ibc.core.client.v1.MsgUpdateClientResponse.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.client.v1.MsgUpdateClientResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ibc.core.client.v1.MsgUpdateClientResponse.serializeBinaryToWriter =
function (message, writer) {
var f = undefined
}
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.client.v1.MsgUpgradeClient.prototype.toObject = function (
opt_includeInstance,
) {
return proto.ibc.core.client.v1.MsgUpgradeClient.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.client.v1.MsgUpgradeClient} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ibc.core.client.v1.MsgUpgradeClient.toObject = function (
includeInstance,
msg,
) {
var f,
obj = {
clientId: jspb.Message.getFieldWithDefault(msg, 1, ''),
clientState:
(f = msg.getClientState()) &&
google_protobuf_any_pb.Any.toObject(includeInstance, f),
consensusState:
(f = msg.getConsensusState()) &&
google_protobuf_any_pb.Any.toObject(includeInstance, f),
proofUpgradeClient: msg.getProofUpgradeClient_asB64(),
proofUpgradeConsensusState: msg.getProofUpgradeConsensusState_asB64(),
signer: jspb.Message.getFieldWithDefault(msg, 6, ''),
}
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.client.v1.MsgUpgradeClient}
*/
proto.ibc.core.client.v1.MsgUpgradeClient.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes)
var msg = new proto.ibc.core.client.v1.MsgUpgradeClient()
return proto.ibc.core.client.v1.MsgUpgradeClient.deserializeBinaryFromReader(
msg,
reader,
)
}
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.ibc.core.client.v1.MsgUpgradeClient} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ibc.core.client.v1.MsgUpgradeClient}
*/
proto.ibc.core.client.v1.MsgUpgradeClient.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.setClientId(value)
break
case 2:
var value = new google_protobuf_any_pb.Any()
reader.readMessage(
value,
google_protobuf_any_pb.Any.deserializeBinaryFromReader,
)
msg.setClientState(value)
break
case 3:
var value = new google_protobuf_any_pb.Any()
reader.readMessage(
value,
google_protobuf_any_pb.Any.deserializeBinaryFromReader,
)
msg.setConsensusState(value)
break
case 4:
var value = /** @type {!Uint8Array} */ (reader.readBytes())
msg.setProofUpgradeClient(value)
break
case 5:
var value = /** @type {!Uint8Array} */ (reader.readBytes())
msg.setProofUpgradeConsensusState(value)
break
case 6:
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.client.v1.MsgUpgradeClient.prototype.serializeBinary =
function () {
var writer = new jspb.BinaryWriter()
proto.ibc.core.client.v1.MsgUpgradeClient.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.client.v1.MsgUpgradeClient} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ibc.core.client.v1.MsgUpgradeClient.serializeBinaryToWriter = function (
message,
writer,
) {
var f = undefined
f = message.getClientId()
if (f.length > 0) {
writer.writeString(1, f)
}
f = message.getClientState()
if (f != null) {
writer.writeMessage(
2,
f,
google_protobuf_any_pb.Any.serializeBinaryToWriter,
)
}
f = message.getConsensusState()
if (f != null) {
writer.writeMessage(
3,
f,
google_protobuf_any_pb.Any.serializeBinaryToWriter,
)
}
f = message.getProofUpgradeClient_asU8()
if (f.length > 0) {
writer.writeBytes(4, f)
}
f = message.getProofUpgradeConsensusState_asU8()
if (f.length > 0) {
writer.writeBytes(5, f)
}
f = message.getSigner()
if (f.length > 0) {
writer.writeString(6, f)
}
}
/**
* optional string client_id = 1;
* @return {string}
*/
proto.ibc.core.client.v1.MsgUpgradeClient.prototype.getClientId = function () {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ''))
}
/**
* @param {string} value
* @return {!proto.ibc.core.client.v1.MsgUpgradeClient} returns this
*/
proto.ibc.core.client.v1.MsgUpgradeClient.prototype.setClientId = function (
value,
) {
return jspb.Message.setProto3StringField(this, 1, value)
}
/**
* optional google.protobuf.Any client_state = 2;
* @return {?proto.google.protobuf.Any}
*/
proto.ibc.core.client.v1.MsgUpgradeClient.prototype.getClientState =
function () {
return /** @type{?proto.google.protobuf.Any} */ (
jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 2)
)
}
/**
* @param {?proto.google.protobuf.Any|undefined} value
* @return {!proto.ibc.core.client.v1.MsgUpgradeClient} returns this
*/
proto.ibc.core.client.v1.MsgUpgradeClient.prototype.setClientState = function (
value,
) {
return jspb.Message.setWrapperField(this, 2, value)
}
/**
* Clears the message field making it undefined.
* @return {!proto.ibc.core.client.v1.MsgUpgradeClient} returns this
*/
proto.ibc.core.client.v1.MsgUpgradeClient.prototype.clearClientState =
function () {
return this.setClientState(undefined)
}
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.ibc.core.client.v1.MsgUpgradeClient.prototype.hasClientState =
function () {
return jspb.Message.getField(this, 2) != null
}
/**
* optional google.protobuf.Any consensus_state = 3;
* @return {?proto.google.protobuf.Any}
*/
proto.ibc.core.client.v1.MsgUpgradeClient.prototype.getConsensusState =
function () {
return /** @type{?proto.google.protobuf.Any} */ (
jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 3)
)
}
/**
* @param {?proto.google.protobuf.Any|undefined} value
* @return {!proto.ibc.core.client.v1.MsgUpgradeClient} returns this
*/
proto.ibc.core.client.v1.MsgUpgradeClient.prototype.setConsensusState =
function (value) {
return jspb.Message.setWrapperField(this, 3, value)
}
/**
* Clears the message field making it undefined.
* @return {!proto.ibc.core.client.v1.MsgUpgradeClient} returns this
*/
proto.ibc.core.client.v1.MsgUpgradeClient.prototype.clearConsensusState =
function () {
return this.setConsensusState(undefined)
}
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.ibc.core.client.v1.MsgUpgradeClient.prototype.hasConsensusState =
function () {
return jspb.Message.getField(this, 3) != null
}
/**
* optional bytes proof_upgrade_client = 4;
* @return {!(string|Uint8Array)}
*/
proto.ibc.core.client.v1.MsgUpgradeClient.prototype.getProofUpgradeClient =
function () {
return /** @type {!(string|Uint8Array)} */ (
jspb.Message.getFieldWithDefault(this, 4, '')
)
}
/**
* optional bytes proof_upgrade_client = 4;
* This is a type-conversion wrapper around `getProofUpgradeClient()`
* @return {string}
*/
proto.ibc.core.client.v1.MsgUpgradeClient.prototype.getProofUpgradeClient_asB64 =
function () {
return /** @type {string} */ (
jspb.Message.bytesAsB64(this.getProofUpgradeClient())
)
}
/**
* optional bytes proof_upgrade_client = 4;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getProofUpgradeClient()`
* @return {!Uint8Array}
*/
proto.ibc.core.client.v1.MsgUpgradeClient.prototype.getProofUpgradeClient_asU8 =
function () {
return /** @type {!Uint8Array} */ (
jspb.Message.bytesAsU8(this.getProofUpgradeClient())
)
}
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.ibc.core.client.v1.MsgUpgradeClient} returns this
*/
proto.ibc.core.client.v1.MsgUpgradeClient.prototype.setProofUpgradeClient =
function (value) {
return jspb.Message.setProto3BytesField(this, 4, value)
}
/**
* optional bytes proof_upgrade_consensus_state = 5;
* @return {!(string|Uint8Array)}
*/
proto.ibc.core.client.v1.MsgUpgradeClient.prototype.getProofUpgradeConsensusState =
function () {
return /** @type {!(string|Uint8Array)} */ (
jspb.Message.getFieldWithDefault(this, 5, '')
)
}
/**
* optional bytes proof_upgrade_consensus_state = 5;
* This is a type-conversion wrapper around `getProofUpgradeConsensusState()`
* @return {string}
*/
proto.ibc.core.client.v1.MsgUpgradeClient.prototype.getProofUpgradeConsensusState_asB64 =
function () {
return /** @type {string} */ (
jspb.Message.bytesAsB64(this.getProofUpgradeConsensusState())
)
}
/**
* optional bytes proof_upgrade_consensus_state = 5;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getProofUpgradeConsensusState()`
* @return {!Uint8Array}
*/
proto.ibc.core.client.v1.MsgUpgradeClient.prototype.getProofUpgradeConsensusState_asU8 =
function () {
return /** @type {!Uint8Array} */ (
jspb.Message.bytesAsU8(this.getProofUpgradeConsensusState())
)
}
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.ibc.core.client.v1.MsgUpgradeClient} returns this
*/
proto.ibc.core.client.v1.MsgUpgradeClient.prototype.setProofUpgradeConsensusState =
function (value) {
return jspb.Message.setProto3BytesField(this, 5, value)
}
/**
* optional string signer = 6;
* @return {string}
*/
proto.ibc.core.client.v1.MsgUpgradeClient.prototype.getSigner = function () {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ''))
}
/**
* @param {string} value
* @return {!proto.ibc.core.client.v1.MsgUpgradeClient} returns this
*/
proto.ibc.core.client.v1.MsgUpgradeClient.prototype.setSigner = function (
value,
) {
return jspb.Message.setProto3StringField(this, 6, 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.client.v1.MsgUpgradeClientResponse.prototype.toObject =
function (opt_includeInstance) {
return proto.ibc.core.client.v1.MsgUpgradeClientResponse.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.client.v1.MsgUpgradeClientResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ibc.core.client.v1.MsgUpgradeClientResponse.toObject = function (
includeInstance,
msg,
) {
var f,
obj = {}
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.client.v1.MsgUpgradeClientResponse}
*/
proto.ibc.core.client.v1.MsgUpgradeClientResponse.deserializeBinary = function (
bytes,
) {
var reader = new jspb.BinaryReader(bytes)
var msg = new proto.ibc.core.client.v1.MsgUpgradeClientResponse()
return proto.ibc.core.client.v1.MsgUpgradeClientResponse.deserializeBinaryFromReader(
msg,
reader,
)
}
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.ibc.core.client.v1.MsgUpgradeClientResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ibc.core.client.v1.MsgUpgradeClientResponse}
*/
proto.ibc.core.client.v1.MsgUpgradeClientResponse.deserializeBinaryFromReader =
function (msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break
}
var field = reader.getFieldNumber()
switch (field) {
default:
reader.skipField()
break
}
}
return msg
}
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.ibc.core.client.v1.MsgUpgradeClientResponse.prototype.serializeBinary =
function () {
var writer = new jspb.BinaryWriter()
proto.ibc.core.client.v1.MsgUpgradeClientResponse.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.client.v1.MsgUpgradeClientResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ibc.core.client.v1.MsgUpgradeClientResponse.serializeBinaryToWriter =
function (message, writer) {
var f = undefined
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this