mcps-sdk-js
Version:
MCPS JavaScript SDK
1,374 lines (1,225 loc) • 127 kB
JavaScript
// source: wasm/query.proto
/**
* @fileoverview
* @enhanceable
* @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!
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 wasm_types_pb = require('../wasm/types_pb.js');
goog.object.extend(proto, wasm_types_pb);
var google_api_annotations_pb = require('../google/api/annotations_pb.js');
goog.object.extend(proto, google_api_annotations_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);
goog.exportSymbol('proto.wasmd.x.wasmd.v1beta1.CodeInfoResponse', null, global);
goog.exportSymbol('proto.wasmd.x.wasmd.v1beta1.ContractInfoWithAddress', null, global);
goog.exportSymbol('proto.wasmd.x.wasmd.v1beta1.QueryAllContractStateRequest', null, global);
goog.exportSymbol('proto.wasmd.x.wasmd.v1beta1.QueryAllContractStateResponse', null, global);
goog.exportSymbol('proto.wasmd.x.wasmd.v1beta1.QueryCodeRequest', null, global);
goog.exportSymbol('proto.wasmd.x.wasmd.v1beta1.QueryCodeResponse', null, global);
goog.exportSymbol('proto.wasmd.x.wasmd.v1beta1.QueryCodesRequest', null, global);
goog.exportSymbol('proto.wasmd.x.wasmd.v1beta1.QueryCodesResponse', null, global);
goog.exportSymbol('proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryRequest', null, global);
goog.exportSymbol('proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryResponse', null, global);
goog.exportSymbol('proto.wasmd.x.wasmd.v1beta1.QueryContractInfoRequest', null, global);
goog.exportSymbol('proto.wasmd.x.wasmd.v1beta1.QueryContractInfoResponse', null, global);
goog.exportSymbol('proto.wasmd.x.wasmd.v1beta1.QueryContractsByCodeRequest', null, global);
goog.exportSymbol('proto.wasmd.x.wasmd.v1beta1.QueryContractsByCodeResponse', null, global);
goog.exportSymbol('proto.wasmd.x.wasmd.v1beta1.QueryRawContractStateRequest', null, global);
goog.exportSymbol('proto.wasmd.x.wasmd.v1beta1.QueryRawContractStateResponse', null, global);
goog.exportSymbol('proto.wasmd.x.wasmd.v1beta1.QuerySmartContractStateRequest', null, global);
goog.exportSymbol('proto.wasmd.x.wasmd.v1beta1.QuerySmartContractStateResponse', 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.wasmd.x.wasmd.v1beta1.QueryContractInfoRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.wasmd.x.wasmd.v1beta1.QueryContractInfoRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractInfoRequest.displayName = 'proto.wasmd.x.wasmd.v1beta1.QueryContractInfoRequest';
}
/**
* 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.wasmd.x.wasmd.v1beta1.QueryContractInfoResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.wasmd.x.wasmd.v1beta1.QueryContractInfoResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractInfoResponse.displayName = 'proto.wasmd.x.wasmd.v1beta1.QueryContractInfoResponse';
}
/**
* 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.wasmd.x.wasmd.v1beta1.QueryContractHistoryRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryRequest.displayName = 'proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryRequest';
}
/**
* 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.wasmd.x.wasmd.v1beta1.QueryContractHistoryResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryResponse.repeatedFields_, null);
};
goog.inherits(proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryResponse.displayName = 'proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryResponse';
}
/**
* 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.wasmd.x.wasmd.v1beta1.QueryContractsByCodeRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.wasmd.x.wasmd.v1beta1.QueryContractsByCodeRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractsByCodeRequest.displayName = 'proto.wasmd.x.wasmd.v1beta1.QueryContractsByCodeRequest';
}
/**
* 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.wasmd.x.wasmd.v1beta1.ContractInfoWithAddress = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.wasmd.x.wasmd.v1beta1.ContractInfoWithAddress, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.wasmd.x.wasmd.v1beta1.ContractInfoWithAddress.displayName = 'proto.wasmd.x.wasmd.v1beta1.ContractInfoWithAddress';
}
/**
* 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.wasmd.x.wasmd.v1beta1.QueryContractsByCodeResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.wasmd.x.wasmd.v1beta1.QueryContractsByCodeResponse.repeatedFields_, null);
};
goog.inherits(proto.wasmd.x.wasmd.v1beta1.QueryContractsByCodeResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractsByCodeResponse.displayName = 'proto.wasmd.x.wasmd.v1beta1.QueryContractsByCodeResponse';
}
/**
* 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.wasmd.x.wasmd.v1beta1.QueryAllContractStateRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.wasmd.x.wasmd.v1beta1.QueryAllContractStateRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.wasmd.x.wasmd.v1beta1.QueryAllContractStateRequest.displayName = 'proto.wasmd.x.wasmd.v1beta1.QueryAllContractStateRequest';
}
/**
* 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.wasmd.x.wasmd.v1beta1.QueryAllContractStateResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.wasmd.x.wasmd.v1beta1.QueryAllContractStateResponse.repeatedFields_, null);
};
goog.inherits(proto.wasmd.x.wasmd.v1beta1.QueryAllContractStateResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.wasmd.x.wasmd.v1beta1.QueryAllContractStateResponse.displayName = 'proto.wasmd.x.wasmd.v1beta1.QueryAllContractStateResponse';
}
/**
* 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.wasmd.x.wasmd.v1beta1.QueryRawContractStateRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.wasmd.x.wasmd.v1beta1.QueryRawContractStateRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.wasmd.x.wasmd.v1beta1.QueryRawContractStateRequest.displayName = 'proto.wasmd.x.wasmd.v1beta1.QueryRawContractStateRequest';
}
/**
* 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.wasmd.x.wasmd.v1beta1.QueryRawContractStateResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.wasmd.x.wasmd.v1beta1.QueryRawContractStateResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.wasmd.x.wasmd.v1beta1.QueryRawContractStateResponse.displayName = 'proto.wasmd.x.wasmd.v1beta1.QueryRawContractStateResponse';
}
/**
* 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.wasmd.x.wasmd.v1beta1.QuerySmartContractStateRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.wasmd.x.wasmd.v1beta1.QuerySmartContractStateRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.wasmd.x.wasmd.v1beta1.QuerySmartContractStateRequest.displayName = 'proto.wasmd.x.wasmd.v1beta1.QuerySmartContractStateRequest';
}
/**
* 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.wasmd.x.wasmd.v1beta1.QuerySmartContractStateResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.wasmd.x.wasmd.v1beta1.QuerySmartContractStateResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.wasmd.x.wasmd.v1beta1.QuerySmartContractStateResponse.displayName = 'proto.wasmd.x.wasmd.v1beta1.QuerySmartContractStateResponse';
}
/**
* 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.wasmd.x.wasmd.v1beta1.QueryCodeRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.wasmd.x.wasmd.v1beta1.QueryCodeRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.wasmd.x.wasmd.v1beta1.QueryCodeRequest.displayName = 'proto.wasmd.x.wasmd.v1beta1.QueryCodeRequest';
}
/**
* 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.wasmd.x.wasmd.v1beta1.CodeInfoResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.wasmd.x.wasmd.v1beta1.CodeInfoResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.wasmd.x.wasmd.v1beta1.CodeInfoResponse.displayName = 'proto.wasmd.x.wasmd.v1beta1.CodeInfoResponse';
}
/**
* 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.wasmd.x.wasmd.v1beta1.QueryCodeResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.wasmd.x.wasmd.v1beta1.QueryCodeResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.wasmd.x.wasmd.v1beta1.QueryCodeResponse.displayName = 'proto.wasmd.x.wasmd.v1beta1.QueryCodeResponse';
}
/**
* 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.wasmd.x.wasmd.v1beta1.QueryCodesRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.wasmd.x.wasmd.v1beta1.QueryCodesRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.wasmd.x.wasmd.v1beta1.QueryCodesRequest.displayName = 'proto.wasmd.x.wasmd.v1beta1.QueryCodesRequest';
}
/**
* 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.wasmd.x.wasmd.v1beta1.QueryCodesResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.wasmd.x.wasmd.v1beta1.QueryCodesResponse.repeatedFields_, null);
};
goog.inherits(proto.wasmd.x.wasmd.v1beta1.QueryCodesResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.wasmd.x.wasmd.v1beta1.QueryCodesResponse.displayName = 'proto.wasmd.x.wasmd.v1beta1.QueryCodesResponse';
}
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.wasmd.x.wasmd.v1beta1.QueryContractInfoRequest.prototype.toObject = function(opt_includeInstance) {
return proto.wasmd.x.wasmd.v1beta1.QueryContractInfoRequest.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.wasmd.x.wasmd.v1beta1.QueryContractInfoRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractInfoRequest.toObject = function(includeInstance, msg) {
var f, obj = {
address: jspb.Message.getFieldWithDefault(msg, 1, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.wasmd.x.wasmd.v1beta1.QueryContractInfoRequest}
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractInfoRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.wasmd.x.wasmd.v1beta1.QueryContractInfoRequest;
return proto.wasmd.x.wasmd.v1beta1.QueryContractInfoRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.wasmd.x.wasmd.v1beta1.QueryContractInfoRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.wasmd.x.wasmd.v1beta1.QueryContractInfoRequest}
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractInfoRequest.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.setAddress(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractInfoRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.wasmd.x.wasmd.v1beta1.QueryContractInfoRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.wasmd.x.wasmd.v1beta1.QueryContractInfoRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractInfoRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getAddress();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
};
/**
* optional string address = 1;
* @return {string}
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractInfoRequest.prototype.getAddress = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.wasmd.x.wasmd.v1beta1.QueryContractInfoRequest} returns this
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractInfoRequest.prototype.setAddress = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractInfoResponse.prototype.toObject = function(opt_includeInstance) {
return proto.wasmd.x.wasmd.v1beta1.QueryContractInfoResponse.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.wasmd.x.wasmd.v1beta1.QueryContractInfoResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractInfoResponse.toObject = function(includeInstance, msg) {
var f, obj = {
address: jspb.Message.getFieldWithDefault(msg, 1, ""),
contractInfo: (f = msg.getContractInfo()) && wasm_types_pb.ContractInfo.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.wasmd.x.wasmd.v1beta1.QueryContractInfoResponse}
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractInfoResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.wasmd.x.wasmd.v1beta1.QueryContractInfoResponse;
return proto.wasmd.x.wasmd.v1beta1.QueryContractInfoResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.wasmd.x.wasmd.v1beta1.QueryContractInfoResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.wasmd.x.wasmd.v1beta1.QueryContractInfoResponse}
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractInfoResponse.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.setAddress(value);
break;
case 2:
var value = new wasm_types_pb.ContractInfo;
reader.readMessage(value,wasm_types_pb.ContractInfo.deserializeBinaryFromReader);
msg.setContractInfo(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractInfoResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.wasmd.x.wasmd.v1beta1.QueryContractInfoResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.wasmd.x.wasmd.v1beta1.QueryContractInfoResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractInfoResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getAddress();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getContractInfo();
if (f != null) {
writer.writeMessage(
2,
f,
wasm_types_pb.ContractInfo.serializeBinaryToWriter
);
}
};
/**
* optional string address = 1;
* @return {string}
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractInfoResponse.prototype.getAddress = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.wasmd.x.wasmd.v1beta1.QueryContractInfoResponse} returns this
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractInfoResponse.prototype.setAddress = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional ContractInfo contract_info = 2;
* @return {?proto.wasmd.x.wasmd.v1beta1.ContractInfo}
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractInfoResponse.prototype.getContractInfo = function() {
return /** @type{?proto.wasmd.x.wasmd.v1beta1.ContractInfo} */ (
jspb.Message.getWrapperField(this, wasm_types_pb.ContractInfo, 2));
};
/**
* @param {?proto.wasmd.x.wasmd.v1beta1.ContractInfo|undefined} value
* @return {!proto.wasmd.x.wasmd.v1beta1.QueryContractInfoResponse} returns this
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractInfoResponse.prototype.setContractInfo = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.wasmd.x.wasmd.v1beta1.QueryContractInfoResponse} returns this
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractInfoResponse.prototype.clearContractInfo = function() {
return this.setContractInfo(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractInfoResponse.prototype.hasContractInfo = function() {
return jspb.Message.getField(this, 2) != 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.wasmd.x.wasmd.v1beta1.QueryContractHistoryRequest.prototype.toObject = function(opt_includeInstance) {
return proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryRequest.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.wasmd.x.wasmd.v1beta1.QueryContractHistoryRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryRequest.toObject = function(includeInstance, msg) {
var f, obj = {
address: jspb.Message.getFieldWithDefault(msg, 1, ""),
pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageRequest.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.wasmd.x.wasmd.v1beta1.QueryContractHistoryRequest}
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryRequest;
return proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryRequest}
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryRequest.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.setAddress(value);
break;
case 2:
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;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getAddress();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getPagination();
if (f != null) {
writer.writeMessage(
2,
f,
cosmos_base_query_v1beta1_pagination_pb.PageRequest.serializeBinaryToWriter
);
}
};
/**
* optional string address = 1;
* @return {string}
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryRequest.prototype.getAddress = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryRequest} returns this
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryRequest.prototype.setAddress = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional cosmos.base.query.v1beta1.PageRequest pagination = 2;
* @return {?proto.cosmos.base.query.v1beta1.PageRequest}
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryRequest.prototype.getPagination = function() {
return /** @type{?proto.cosmos.base.query.v1beta1.PageRequest} */ (
jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageRequest, 2));
};
/**
* @param {?proto.cosmos.base.query.v1beta1.PageRequest|undefined} value
* @return {!proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryRequest} returns this
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryRequest.prototype.setPagination = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryRequest} returns this
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryRequest.prototype.clearPagination = function() {
return this.setPagination(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryRequest.prototype.hasPagination = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryResponse.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.wasmd.x.wasmd.v1beta1.QueryContractHistoryResponse.prototype.toObject = function(opt_includeInstance) {
return proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryResponse.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.wasmd.x.wasmd.v1beta1.QueryContractHistoryResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryResponse.toObject = function(includeInstance, msg) {
var f, obj = {
entriesList: jspb.Message.toObjectList(msg.getEntriesList(),
wasm_types_pb.ContractCodeHistoryEntry.toObject, includeInstance),
pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageResponse.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.wasmd.x.wasmd.v1beta1.QueryContractHistoryResponse}
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryResponse;
return proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryResponse}
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new wasm_types_pb.ContractCodeHistoryEntry;
reader.readMessage(value,wasm_types_pb.ContractCodeHistoryEntry.deserializeBinaryFromReader);
msg.addEntries(value);
break;
case 2:
var value = new cosmos_base_query_v1beta1_pagination_pb.PageResponse;
reader.readMessage(value,cosmos_base_query_v1beta1_pagination_pb.PageResponse.deserializeBinaryFromReader);
msg.setPagination(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getEntriesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
wasm_types_pb.ContractCodeHistoryEntry.serializeBinaryToWriter
);
}
f = message.getPagination();
if (f != null) {
writer.writeMessage(
2,
f,
cosmos_base_query_v1beta1_pagination_pb.PageResponse.serializeBinaryToWriter
);
}
};
/**
* repeated ContractCodeHistoryEntry entries = 1;
* @return {!Array<!proto.wasmd.x.wasmd.v1beta1.ContractCodeHistoryEntry>}
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryResponse.prototype.getEntriesList = function() {
return /** @type{!Array<!proto.wasmd.x.wasmd.v1beta1.ContractCodeHistoryEntry>} */ (
jspb.Message.getRepeatedWrapperField(this, wasm_types_pb.ContractCodeHistoryEntry, 1));
};
/**
* @param {!Array<!proto.wasmd.x.wasmd.v1beta1.ContractCodeHistoryEntry>} value
* @return {!proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryResponse} returns this
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryResponse.prototype.setEntriesList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.wasmd.x.wasmd.v1beta1.ContractCodeHistoryEntry=} opt_value
* @param {number=} opt_index
* @return {!proto.wasmd.x.wasmd.v1beta1.ContractCodeHistoryEntry}
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryResponse.prototype.addEntries = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.wasmd.x.wasmd.v1beta1.ContractCodeHistoryEntry, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryResponse} returns this
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryResponse.prototype.clearEntriesList = function() {
return this.setEntriesList([]);
};
/**
* optional cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return {?proto.cosmos.base.query.v1beta1.PageResponse}
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryResponse.prototype.getPagination = function() {
return /** @type{?proto.cosmos.base.query.v1beta1.PageResponse} */ (
jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageResponse, 2));
};
/**
* @param {?proto.cosmos.base.query.v1beta1.PageResponse|undefined} value
* @return {!proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryResponse} returns this
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryResponse.prototype.setPagination = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryResponse} returns this
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryResponse.prototype.clearPagination = function() {
return this.setPagination(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractHistoryResponse.prototype.hasPagination = function() {
return jspb.Message.getField(this, 2) != 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.wasmd.x.wasmd.v1beta1.QueryContractsByCodeRequest.prototype.toObject = function(opt_includeInstance) {
return proto.wasmd.x.wasmd.v1beta1.QueryContractsByCodeRequest.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.wasmd.x.wasmd.v1beta1.QueryContractsByCodeRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractsByCodeRequest.toObject = function(includeInstance, msg) {
var f, obj = {
codeId: jspb.Message.getFieldWithDefault(msg, 1, 0),
pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageRequest.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.wasmd.x.wasmd.v1beta1.QueryContractsByCodeRequest}
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractsByCodeRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.wasmd.x.wasmd.v1beta1.QueryContractsByCodeRequest;
return proto.wasmd.x.wasmd.v1beta1.QueryContractsByCodeRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.wasmd.x.wasmd.v1beta1.QueryContractsByCodeRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.wasmd.x.wasmd.v1beta1.QueryContractsByCodeRequest}
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractsByCodeRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readUint64());
msg.setCodeId(value);
break;
case 2:
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;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractsByCodeRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.wasmd.x.wasmd.v1beta1.QueryContractsByCodeRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.wasmd.x.wasmd.v1beta1.QueryContractsByCodeRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractsByCodeRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getCodeId();
if (f !== 0) {
writer.writeUint64(
1,
f
);
}
f = message.getPagination();
if (f != null) {
writer.writeMessage(
2,
f,
cosmos_base_query_v1beta1_pagination_pb.PageRequest.serializeBinaryToWriter
);
}
};
/**
* optional uint64 code_id = 1;
* @return {number}
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractsByCodeRequest.prototype.getCodeId = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.wasmd.x.wasmd.v1beta1.QueryContractsByCodeRequest} returns this
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractsByCodeRequest.prototype.setCodeId = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional cosmos.base.query.v1beta1.PageRequest pagination = 2;
* @return {?proto.cosmos.base.query.v1beta1.PageRequest}
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractsByCodeRequest.prototype.getPagination = function() {
return /** @type{?proto.cosmos.base.query.v1beta1.PageRequest} */ (
jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageRequest, 2));
};
/**
* @param {?proto.cosmos.base.query.v1beta1.PageRequest|undefined} value
* @return {!proto.wasmd.x.wasmd.v1beta1.QueryContractsByCodeRequest} returns this
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractsByCodeRequest.prototype.setPagination = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.wasmd.x.wasmd.v1beta1.QueryContractsByCodeRequest} returns this
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractsByCodeRequest.prototype.clearPagination = function() {
return this.setPagination(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.wasmd.x.wasmd.v1beta1.QueryContractsByCodeRequest.prototype.hasPagination = function() {
return jspb.Message.getField(this, 2) != 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.wasmd.x.wasmd.v1beta1.ContractInfoWithAddress.prototype.toObject = function(opt_includeInstance) {
return proto.wasmd.x.wasmd.v1beta1.ContractInfoWithAddress.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.wasmd.x.wasmd.v1beta1.ContractInfoWithAddress} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.wasmd.x.wasmd.v1beta1.ContractInfoWithAddress.toObject = function(includeInstance, msg) {
var f, obj = {
address: jspb.Message.getFieldWithDefault(msg, 1, ""),
contractInfo: (f = msg.getContractInfo()) && wasm_types_pb.ContractInfo.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.wasmd.x.wasmd.v1beta1.ContractInfoWithAddress}
*/
proto.wasmd.x.wasmd.v1beta1.ContractInfoWithAddress.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.wasmd.x.wasmd.v1beta1.ContractInfoWithAddress;
return proto.wasmd.x.wasmd.v1beta1.ContractInfoWithAddress.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.wasmd.x.wasmd.v1beta1.ContractInfoWithAddress} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.wasmd.x.wasmd.v1beta1.ContractInfoWithAddress}
*/
proto.wasmd.x.wasmd.v1beta1.ContractInfoWithAddress.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {str