@routerprotocol/chain-api
Version:
Router Chain API Query client with generated gRPC bindings.
1,300 lines (1,177 loc) • 132 kB
JavaScript
// source: ibc/applications/fee/v1/query.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 gogoproto_gogo_pb = require('../../../../gogoproto/gogo_pb.js');
goog.object.extend(proto, gogoproto_gogo_pb);
var google_api_annotations_pb = require('../../../../google/api/annotations_pb.js');
goog.object.extend(proto, google_api_annotations_pb);
var cosmos_base_v1beta1_coin_pb = require('../../../../cosmos/base/v1beta1/coin_pb.js');
goog.object.extend(proto, cosmos_base_v1beta1_coin_pb);
var cosmos_base_query_v1beta1_pagination_pb = require('../../../../cosmos/base/query/v1beta1/pagination_pb.js');
goog.object.extend(proto, cosmos_base_query_v1beta1_pagination_pb);
var ibc_applications_fee_v1_fee_pb = require('../../../../ibc/applications/fee/v1/fee_pb.js');
goog.object.extend(proto, ibc_applications_fee_v1_fee_pb);
var ibc_applications_fee_v1_genesis_pb = require('../../../../ibc/applications/fee/v1/genesis_pb.js');
goog.object.extend(proto, ibc_applications_fee_v1_genesis_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.applications.fee.v1.QueryCounterpartyPayeeRequest', null, global);
goog.exportSymbol('proto.ibc.applications.fee.v1.QueryCounterpartyPayeeResponse', null, global);
goog.exportSymbol('proto.ibc.applications.fee.v1.QueryFeeEnabledChannelRequest', null, global);
goog.exportSymbol('proto.ibc.applications.fee.v1.QueryFeeEnabledChannelResponse', null, global);
goog.exportSymbol('proto.ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest', null, global);
goog.exportSymbol('proto.ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse', null, global);
goog.exportSymbol('proto.ibc.applications.fee.v1.QueryIncentivizedPacketRequest', null, global);
goog.exportSymbol('proto.ibc.applications.fee.v1.QueryIncentivizedPacketResponse', null, global);
goog.exportSymbol('proto.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest', null, global);
goog.exportSymbol('proto.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse', null, global);
goog.exportSymbol('proto.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest', null, global);
goog.exportSymbol('proto.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse', null, global);
goog.exportSymbol('proto.ibc.applications.fee.v1.QueryPayeeRequest', null, global);
goog.exportSymbol('proto.ibc.applications.fee.v1.QueryPayeeResponse', null, global);
goog.exportSymbol('proto.ibc.applications.fee.v1.QueryTotalAckFeesRequest', null, global);
goog.exportSymbol('proto.ibc.applications.fee.v1.QueryTotalAckFeesResponse', null, global);
goog.exportSymbol('proto.ibc.applications.fee.v1.QueryTotalRecvFeesRequest', null, global);
goog.exportSymbol('proto.ibc.applications.fee.v1.QueryTotalRecvFeesResponse', null, global);
goog.exportSymbol('proto.ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest', null, global);
goog.exportSymbol('proto.ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse', 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.applications.fee.v1.QueryIncentivizedPacketsRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest.displayName = 'proto.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest';
}
/**
* 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.applications.fee.v1.QueryIncentivizedPacketsResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse.repeatedFields_, null);
};
goog.inherits(proto.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse.displayName = 'proto.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse';
}
/**
* 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.applications.fee.v1.QueryIncentivizedPacketRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ibc.applications.fee.v1.QueryIncentivizedPacketRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketRequest.displayName = 'proto.ibc.applications.fee.v1.QueryIncentivizedPacketRequest';
}
/**
* 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.applications.fee.v1.QueryIncentivizedPacketResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ibc.applications.fee.v1.QueryIncentivizedPacketResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketResponse.displayName = 'proto.ibc.applications.fee.v1.QueryIncentivizedPacketResponse';
}
/**
* 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.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest.displayName = 'proto.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest';
}
/**
* 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.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse.repeatedFields_, null);
};
goog.inherits(proto.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse.displayName = 'proto.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse';
}
/**
* 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.applications.fee.v1.QueryTotalRecvFeesRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ibc.applications.fee.v1.QueryTotalRecvFeesRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.applications.fee.v1.QueryTotalRecvFeesRequest.displayName = 'proto.ibc.applications.fee.v1.QueryTotalRecvFeesRequest';
}
/**
* 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.applications.fee.v1.QueryTotalRecvFeesResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ibc.applications.fee.v1.QueryTotalRecvFeesResponse.repeatedFields_, null);
};
goog.inherits(proto.ibc.applications.fee.v1.QueryTotalRecvFeesResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.applications.fee.v1.QueryTotalRecvFeesResponse.displayName = 'proto.ibc.applications.fee.v1.QueryTotalRecvFeesResponse';
}
/**
* 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.applications.fee.v1.QueryTotalAckFeesRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ibc.applications.fee.v1.QueryTotalAckFeesRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.applications.fee.v1.QueryTotalAckFeesRequest.displayName = 'proto.ibc.applications.fee.v1.QueryTotalAckFeesRequest';
}
/**
* 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.applications.fee.v1.QueryTotalAckFeesResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ibc.applications.fee.v1.QueryTotalAckFeesResponse.repeatedFields_, null);
};
goog.inherits(proto.ibc.applications.fee.v1.QueryTotalAckFeesResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.applications.fee.v1.QueryTotalAckFeesResponse.displayName = 'proto.ibc.applications.fee.v1.QueryTotalAckFeesResponse';
}
/**
* 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.applications.fee.v1.QueryTotalTimeoutFeesRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest.displayName = 'proto.ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest';
}
/**
* 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.applications.fee.v1.QueryTotalTimeoutFeesResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse.repeatedFields_, null);
};
goog.inherits(proto.ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse.displayName = 'proto.ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse';
}
/**
* 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.applications.fee.v1.QueryPayeeRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ibc.applications.fee.v1.QueryPayeeRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.applications.fee.v1.QueryPayeeRequest.displayName = 'proto.ibc.applications.fee.v1.QueryPayeeRequest';
}
/**
* 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.applications.fee.v1.QueryPayeeResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ibc.applications.fee.v1.QueryPayeeResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.applications.fee.v1.QueryPayeeResponse.displayName = 'proto.ibc.applications.fee.v1.QueryPayeeResponse';
}
/**
* 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.applications.fee.v1.QueryCounterpartyPayeeRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ibc.applications.fee.v1.QueryCounterpartyPayeeRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.applications.fee.v1.QueryCounterpartyPayeeRequest.displayName = 'proto.ibc.applications.fee.v1.QueryCounterpartyPayeeRequest';
}
/**
* 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.applications.fee.v1.QueryCounterpartyPayeeResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ibc.applications.fee.v1.QueryCounterpartyPayeeResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.applications.fee.v1.QueryCounterpartyPayeeResponse.displayName = 'proto.ibc.applications.fee.v1.QueryCounterpartyPayeeResponse';
}
/**
* 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.applications.fee.v1.QueryFeeEnabledChannelsRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest.displayName = 'proto.ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest';
}
/**
* 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.applications.fee.v1.QueryFeeEnabledChannelsResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse.repeatedFields_, null);
};
goog.inherits(proto.ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse.displayName = 'proto.ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse';
}
/**
* 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.applications.fee.v1.QueryFeeEnabledChannelRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ibc.applications.fee.v1.QueryFeeEnabledChannelRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.applications.fee.v1.QueryFeeEnabledChannelRequest.displayName = 'proto.ibc.applications.fee.v1.QueryFeeEnabledChannelRequest';
}
/**
* 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.applications.fee.v1.QueryFeeEnabledChannelResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ibc.applications.fee.v1.QueryFeeEnabledChannelResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.applications.fee.v1.QueryFeeEnabledChannelResponse.displayName = 'proto.ibc.applications.fee.v1.QueryFeeEnabledChannelResponse';
}
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.applications.fee.v1.QueryIncentivizedPacketsRequest.prototype.toObject = function(opt_includeInstance) {
return proto.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest.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.applications.fee.v1.QueryIncentivizedPacketsRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest.toObject = function(includeInstance, msg) {
var f, obj = {
pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageRequest.toObject(includeInstance, f),
queryHeight: jspb.Message.getFieldWithDefault(msg, 2, 0)
};
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.applications.fee.v1.QueryIncentivizedPacketsRequest}
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest;
return proto.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest}
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new cosmos_base_query_v1beta1_pagination_pb.PageRequest;
reader.readMessage(value,cosmos_base_query_v1beta1_pagination_pb.PageRequest.deserializeBinaryFromReader);
msg.setPagination(value);
break;
case 2:
var value = /** @type {number} */ (reader.readUint64());
msg.setQueryHeight(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest.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.applications.fee.v1.QueryIncentivizedPacketsRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getPagination();
if (f != null) {
writer.writeMessage(
1,
f,
cosmos_base_query_v1beta1_pagination_pb.PageRequest.serializeBinaryToWriter
);
}
f = message.getQueryHeight();
if (f !== 0) {
writer.writeUint64(
2,
f
);
}
};
/**
* optional cosmos.base.query.v1beta1.PageRequest pagination = 1;
* @return {?proto.cosmos.base.query.v1beta1.PageRequest}
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest.prototype.getPagination = function() {
return /** @type{?proto.cosmos.base.query.v1beta1.PageRequest} */ (
jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageRequest, 1));
};
/**
* @param {?proto.cosmos.base.query.v1beta1.PageRequest|undefined} value
* @return {!proto.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest} returns this
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest.prototype.setPagination = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest} returns this
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest.prototype.clearPagination = function() {
return this.setPagination(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest.prototype.hasPagination = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional uint64 query_height = 2;
* @return {number}
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest.prototype.getQueryHeight = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/**
* @param {number} value
* @return {!proto.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest} returns this
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest.prototype.setQueryHeight = function(value) {
return jspb.Message.setProto3IntField(this, 2, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse.repeatedFields_ = [1];
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.applications.fee.v1.QueryIncentivizedPacketsResponse.prototype.toObject = function(opt_includeInstance) {
return proto.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse.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.applications.fee.v1.QueryIncentivizedPacketsResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse.toObject = function(includeInstance, msg) {
var f, obj = {
incentivizedPacketsList: jspb.Message.toObjectList(msg.getIncentivizedPacketsList(),
ibc_applications_fee_v1_fee_pb.IdentifiedPacketFees.toObject, includeInstance)
};
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.applications.fee.v1.QueryIncentivizedPacketsResponse}
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse;
return proto.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse}
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new ibc_applications_fee_v1_fee_pb.IdentifiedPacketFees;
reader.readMessage(value,ibc_applications_fee_v1_fee_pb.IdentifiedPacketFees.deserializeBinaryFromReader);
msg.addIncentivizedPackets(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse.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.applications.fee.v1.QueryIncentivizedPacketsResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getIncentivizedPacketsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
ibc_applications_fee_v1_fee_pb.IdentifiedPacketFees.serializeBinaryToWriter
);
}
};
/**
* repeated IdentifiedPacketFees incentivized_packets = 1;
* @return {!Array<!proto.ibc.applications.fee.v1.IdentifiedPacketFees>}
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse.prototype.getIncentivizedPacketsList = function() {
return /** @type{!Array<!proto.ibc.applications.fee.v1.IdentifiedPacketFees>} */ (
jspb.Message.getRepeatedWrapperField(this, ibc_applications_fee_v1_fee_pb.IdentifiedPacketFees, 1));
};
/**
* @param {!Array<!proto.ibc.applications.fee.v1.IdentifiedPacketFees>} value
* @return {!proto.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse} returns this
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse.prototype.setIncentivizedPacketsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.ibc.applications.fee.v1.IdentifiedPacketFees=} opt_value
* @param {number=} opt_index
* @return {!proto.ibc.applications.fee.v1.IdentifiedPacketFees}
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse.prototype.addIncentivizedPackets = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ibc.applications.fee.v1.IdentifiedPacketFees, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse} returns this
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse.prototype.clearIncentivizedPacketsList = function() {
return this.setIncentivizedPacketsList([]);
};
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.applications.fee.v1.QueryIncentivizedPacketRequest.prototype.toObject = function(opt_includeInstance) {
return proto.ibc.applications.fee.v1.QueryIncentivizedPacketRequest.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.applications.fee.v1.QueryIncentivizedPacketRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketRequest.toObject = function(includeInstance, msg) {
var f, obj = {
packetId: (f = msg.getPacketId()) && ibc_core_channel_v1_channel_pb.PacketId.toObject(includeInstance, f),
queryHeight: jspb.Message.getFieldWithDefault(msg, 2, 0)
};
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.applications.fee.v1.QueryIncentivizedPacketRequest}
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.ibc.applications.fee.v1.QueryIncentivizedPacketRequest;
return proto.ibc.applications.fee.v1.QueryIncentivizedPacketRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.ibc.applications.fee.v1.QueryIncentivizedPacketRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ibc.applications.fee.v1.QueryIncentivizedPacketRequest}
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new ibc_core_channel_v1_channel_pb.PacketId;
reader.readMessage(value,ibc_core_channel_v1_channel_pb.PacketId.deserializeBinaryFromReader);
msg.setPacketId(value);
break;
case 2:
var value = /** @type {number} */ (reader.readUint64());
msg.setQueryHeight(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.ibc.applications.fee.v1.QueryIncentivizedPacketRequest.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.applications.fee.v1.QueryIncentivizedPacketRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getPacketId();
if (f != null) {
writer.writeMessage(
1,
f,
ibc_core_channel_v1_channel_pb.PacketId.serializeBinaryToWriter
);
}
f = message.getQueryHeight();
if (f !== 0) {
writer.writeUint64(
2,
f
);
}
};
/**
* optional ibc.core.channel.v1.PacketId packet_id = 1;
* @return {?proto.ibc.core.channel.v1.PacketId}
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketRequest.prototype.getPacketId = function() {
return /** @type{?proto.ibc.core.channel.v1.PacketId} */ (
jspb.Message.getWrapperField(this, ibc_core_channel_v1_channel_pb.PacketId, 1));
};
/**
* @param {?proto.ibc.core.channel.v1.PacketId|undefined} value
* @return {!proto.ibc.applications.fee.v1.QueryIncentivizedPacketRequest} returns this
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketRequest.prototype.setPacketId = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.ibc.applications.fee.v1.QueryIncentivizedPacketRequest} returns this
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketRequest.prototype.clearPacketId = function() {
return this.setPacketId(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketRequest.prototype.hasPacketId = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional uint64 query_height = 2;
* @return {number}
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketRequest.prototype.getQueryHeight = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/**
* @param {number} value
* @return {!proto.ibc.applications.fee.v1.QueryIncentivizedPacketRequest} returns this
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketRequest.prototype.setQueryHeight = function(value) {
return jspb.Message.setProto3IntField(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.applications.fee.v1.QueryIncentivizedPacketResponse.prototype.toObject = function(opt_includeInstance) {
return proto.ibc.applications.fee.v1.QueryIncentivizedPacketResponse.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.applications.fee.v1.QueryIncentivizedPacketResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketResponse.toObject = function(includeInstance, msg) {
var f, obj = {
incentivizedPacket: (f = msg.getIncentivizedPacket()) && ibc_applications_fee_v1_fee_pb.IdentifiedPacketFees.toObject(includeInstance, f)
};
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.applications.fee.v1.QueryIncentivizedPacketResponse}
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.ibc.applications.fee.v1.QueryIncentivizedPacketResponse;
return proto.ibc.applications.fee.v1.QueryIncentivizedPacketResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.ibc.applications.fee.v1.QueryIncentivizedPacketResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ibc.applications.fee.v1.QueryIncentivizedPacketResponse}
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new ibc_applications_fee_v1_fee_pb.IdentifiedPacketFees;
reader.readMessage(value,ibc_applications_fee_v1_fee_pb.IdentifiedPacketFees.deserializeBinaryFromReader);
msg.setIncentivizedPacket(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.ibc.applications.fee.v1.QueryIncentivizedPacketResponse.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.applications.fee.v1.QueryIncentivizedPacketResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getIncentivizedPacket();
if (f != null) {
writer.writeMessage(
1,
f,
ibc_applications_fee_v1_fee_pb.IdentifiedPacketFees.serializeBinaryToWriter
);
}
};
/**
* optional IdentifiedPacketFees incentivized_packet = 1;
* @return {?proto.ibc.applications.fee.v1.IdentifiedPacketFees}
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketResponse.prototype.getIncentivizedPacket = function() {
return /** @type{?proto.ibc.applications.fee.v1.IdentifiedPacketFees} */ (
jspb.Message.getWrapperField(this, ibc_applications_fee_v1_fee_pb.IdentifiedPacketFees, 1));
};
/**
* @param {?proto.ibc.applications.fee.v1.IdentifiedPacketFees|undefined} value
* @return {!proto.ibc.applications.fee.v1.QueryIncentivizedPacketResponse} returns this
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketResponse.prototype.setIncentivizedPacket = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.ibc.applications.fee.v1.QueryIncentivizedPacketResponse} returns this
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketResponse.prototype.clearIncentivizedPacket = function() {
return this.setIncentivizedPacket(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketResponse.prototype.hasIncentivizedPacket = function() {
return jspb.Message.getField(this, 1) != null;
};
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.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest.prototype.toObject = function(opt_includeInstance) {
return proto.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest.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.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest.toObject = function(includeInstance, msg) {
var f, obj = {
pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageRequest.toObject(includeInstance, f),
portId: jspb.Message.getFieldWithDefault(msg, 2, ""),
channelId: jspb.Message.getFieldWithDefault(msg, 3, ""),
queryHeight: jspb.Message.getFieldWithDefault(msg, 4, 0)
};
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.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest}
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest;
return proto.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest}
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new cosmos_base_query_v1beta1_pagination_pb.PageRequest;
reader.readMessage(value,cosmos_base_query_v1beta1_pagination_pb.PageRequest.deserializeBinaryFromReader);
msg.setPagination(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setPortId(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setChannelId(value);
break;
case 4:
var value = /** @type {number} */ (reader.readUint64());
msg.setQueryHeight(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest.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.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getPagination();
if (f != null) {
writer.writeMessage(
1,
f,
cosmos_base_query_v1beta1_pagination_pb.PageRequest.serializeBinaryToWriter
);
}
f = message.getPortId();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getChannelId();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getQueryHeight();
if (f !== 0) {
writer.writeUint64(
4,
f
);
}
};
/**
* optional cosmos.base.query.v1beta1.PageRequest pagination = 1;
* @return {?proto.cosmos.base.query.v1beta1.PageRequest}
*/
proto.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest.prototype.getPagination = function() {
ret