UNPKG

@chatie/grpc

Version:
1,465 lines (1,348 loc) 174 kB
// source: puppet/message.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! /* eslint-disable */ // @ts-nocheck var jspb = require('google-protobuf'); var goog = jspb; var global = Function('return this')(); var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js'); goog.object.extend(proto, google_protobuf_wrappers_pb); var puppet_file_box_pb = require('../puppet/file_box_pb.js'); goog.object.extend(proto, puppet_file_box_pb); goog.exportSymbol('proto.wechaty.puppet.ImageType', null, global); goog.exportSymbol('proto.wechaty.puppet.MessageContactRequest', null, global); goog.exportSymbol('proto.wechaty.puppet.MessageContactResponse', null, global); goog.exportSymbol('proto.wechaty.puppet.MessageFileRequest', null, global); goog.exportSymbol('proto.wechaty.puppet.MessageFileResponse', null, global); goog.exportSymbol('proto.wechaty.puppet.MessageFileStreamRequest', null, global); goog.exportSymbol('proto.wechaty.puppet.MessageFileStreamResponse', null, global); goog.exportSymbol('proto.wechaty.puppet.MessageImageRequest', null, global); goog.exportSymbol('proto.wechaty.puppet.MessageImageResponse', null, global); goog.exportSymbol('proto.wechaty.puppet.MessageImageStreamRequest', null, global); goog.exportSymbol('proto.wechaty.puppet.MessageImageStreamResponse', null, global); goog.exportSymbol('proto.wechaty.puppet.MessageMiniProgramRequest', null, global); goog.exportSymbol('proto.wechaty.puppet.MessageMiniProgramResponse', null, global); goog.exportSymbol('proto.wechaty.puppet.MessagePayloadRequest', null, global); goog.exportSymbol('proto.wechaty.puppet.MessagePayloadResponse', null, global); goog.exportSymbol('proto.wechaty.puppet.MessageRecallRequest', null, global); goog.exportSymbol('proto.wechaty.puppet.MessageRecallResponse', null, global); goog.exportSymbol('proto.wechaty.puppet.MessageSendContactRequest', null, global); goog.exportSymbol('proto.wechaty.puppet.MessageSendContactResponse', null, global); goog.exportSymbol('proto.wechaty.puppet.MessageSendFileRequest', null, global); goog.exportSymbol('proto.wechaty.puppet.MessageSendFileResponse', null, global); goog.exportSymbol('proto.wechaty.puppet.MessageSendFileStreamRequest', null, global); goog.exportSymbol('proto.wechaty.puppet.MessageSendFileStreamRequest.PayloadCase', null, global); goog.exportSymbol('proto.wechaty.puppet.MessageSendFileStreamResponse', null, global); goog.exportSymbol('proto.wechaty.puppet.MessageSendMiniProgramRequest', null, global); goog.exportSymbol('proto.wechaty.puppet.MessageSendMiniProgramResponse', null, global); goog.exportSymbol('proto.wechaty.puppet.MessageSendTextRequest', null, global); goog.exportSymbol('proto.wechaty.puppet.MessageSendTextResponse', null, global); goog.exportSymbol('proto.wechaty.puppet.MessageSendUrlRequest', null, global); goog.exportSymbol('proto.wechaty.puppet.MessageSendUrlResponse', null, global); goog.exportSymbol('proto.wechaty.puppet.MessageType', null, global); goog.exportSymbol('proto.wechaty.puppet.MessageUrlRequest', null, global); goog.exportSymbol('proto.wechaty.puppet.MessageUrlResponse', 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.wechaty.puppet.MessagePayloadRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.wechaty.puppet.MessagePayloadRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.wechaty.puppet.MessagePayloadRequest.displayName = 'proto.wechaty.puppet.MessagePayloadRequest'; } /** * 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.wechaty.puppet.MessagePayloadResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.MessagePayloadResponse.repeatedFields_, null); }; goog.inherits(proto.wechaty.puppet.MessagePayloadResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.wechaty.puppet.MessagePayloadResponse.displayName = 'proto.wechaty.puppet.MessagePayloadResponse'; } /** * 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.wechaty.puppet.MessageImageRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.wechaty.puppet.MessageImageRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.wechaty.puppet.MessageImageRequest.displayName = 'proto.wechaty.puppet.MessageImageRequest'; } /** * 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.wechaty.puppet.MessageImageResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.wechaty.puppet.MessageImageResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.wechaty.puppet.MessageImageResponse.displayName = 'proto.wechaty.puppet.MessageImageResponse'; } /** * 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.wechaty.puppet.MessageImageStreamRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.wechaty.puppet.MessageImageStreamRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.wechaty.puppet.MessageImageStreamRequest.displayName = 'proto.wechaty.puppet.MessageImageStreamRequest'; } /** * 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.wechaty.puppet.MessageImageStreamResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.wechaty.puppet.MessageImageStreamResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.wechaty.puppet.MessageImageStreamResponse.displayName = 'proto.wechaty.puppet.MessageImageStreamResponse'; } /** * 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.wechaty.puppet.MessageContactRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.wechaty.puppet.MessageContactRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.wechaty.puppet.MessageContactRequest.displayName = 'proto.wechaty.puppet.MessageContactRequest'; } /** * 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.wechaty.puppet.MessageContactResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.wechaty.puppet.MessageContactResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.wechaty.puppet.MessageContactResponse.displayName = 'proto.wechaty.puppet.MessageContactResponse'; } /** * 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.wechaty.puppet.MessageFileRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.wechaty.puppet.MessageFileRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.wechaty.puppet.MessageFileRequest.displayName = 'proto.wechaty.puppet.MessageFileRequest'; } /** * 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.wechaty.puppet.MessageFileResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.wechaty.puppet.MessageFileResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.wechaty.puppet.MessageFileResponse.displayName = 'proto.wechaty.puppet.MessageFileResponse'; } /** * 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.wechaty.puppet.MessageFileStreamRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.wechaty.puppet.MessageFileStreamRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.wechaty.puppet.MessageFileStreamRequest.displayName = 'proto.wechaty.puppet.MessageFileStreamRequest'; } /** * 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.wechaty.puppet.MessageFileStreamResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.wechaty.puppet.MessageFileStreamResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.wechaty.puppet.MessageFileStreamResponse.displayName = 'proto.wechaty.puppet.MessageFileStreamResponse'; } /** * 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.wechaty.puppet.MessageMiniProgramRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.wechaty.puppet.MessageMiniProgramRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.wechaty.puppet.MessageMiniProgramRequest.displayName = 'proto.wechaty.puppet.MessageMiniProgramRequest'; } /** * 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.wechaty.puppet.MessageMiniProgramResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.wechaty.puppet.MessageMiniProgramResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.wechaty.puppet.MessageMiniProgramResponse.displayName = 'proto.wechaty.puppet.MessageMiniProgramResponse'; } /** * 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.wechaty.puppet.MessageUrlRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.wechaty.puppet.MessageUrlRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.wechaty.puppet.MessageUrlRequest.displayName = 'proto.wechaty.puppet.MessageUrlRequest'; } /** * 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.wechaty.puppet.MessageUrlResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.wechaty.puppet.MessageUrlResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.wechaty.puppet.MessageUrlResponse.displayName = 'proto.wechaty.puppet.MessageUrlResponse'; } /** * 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.wechaty.puppet.MessageSendContactRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.wechaty.puppet.MessageSendContactRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.wechaty.puppet.MessageSendContactRequest.displayName = 'proto.wechaty.puppet.MessageSendContactRequest'; } /** * 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.wechaty.puppet.MessageSendContactResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.wechaty.puppet.MessageSendContactResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.wechaty.puppet.MessageSendContactResponse.displayName = 'proto.wechaty.puppet.MessageSendContactResponse'; } /** * 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.wechaty.puppet.MessageSendFileRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.wechaty.puppet.MessageSendFileRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.wechaty.puppet.MessageSendFileRequest.displayName = 'proto.wechaty.puppet.MessageSendFileRequest'; } /** * 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.wechaty.puppet.MessageSendFileResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.wechaty.puppet.MessageSendFileResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.wechaty.puppet.MessageSendFileResponse.displayName = 'proto.wechaty.puppet.MessageSendFileResponse'; } /** * 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.wechaty.puppet.MessageSendFileStreamRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, proto.wechaty.puppet.MessageSendFileStreamRequest.oneofGroups_); }; goog.inherits(proto.wechaty.puppet.MessageSendFileStreamRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.wechaty.puppet.MessageSendFileStreamRequest.displayName = 'proto.wechaty.puppet.MessageSendFileStreamRequest'; } /** * 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.wechaty.puppet.MessageSendFileStreamResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.wechaty.puppet.MessageSendFileStreamResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.wechaty.puppet.MessageSendFileStreamResponse.displayName = 'proto.wechaty.puppet.MessageSendFileStreamResponse'; } /** * 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.wechaty.puppet.MessageSendTextRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.MessageSendTextRequest.repeatedFields_, null); }; goog.inherits(proto.wechaty.puppet.MessageSendTextRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.wechaty.puppet.MessageSendTextRequest.displayName = 'proto.wechaty.puppet.MessageSendTextRequest'; } /** * 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.wechaty.puppet.MessageSendTextResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.wechaty.puppet.MessageSendTextResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.wechaty.puppet.MessageSendTextResponse.displayName = 'proto.wechaty.puppet.MessageSendTextResponse'; } /** * 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.wechaty.puppet.MessageSendMiniProgramRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.wechaty.puppet.MessageSendMiniProgramRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.wechaty.puppet.MessageSendMiniProgramRequest.displayName = 'proto.wechaty.puppet.MessageSendMiniProgramRequest'; } /** * 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.wechaty.puppet.MessageSendMiniProgramResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.wechaty.puppet.MessageSendMiniProgramResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.wechaty.puppet.MessageSendMiniProgramResponse.displayName = 'proto.wechaty.puppet.MessageSendMiniProgramResponse'; } /** * 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.wechaty.puppet.MessageSendUrlRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.wechaty.puppet.MessageSendUrlRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.wechaty.puppet.MessageSendUrlRequest.displayName = 'proto.wechaty.puppet.MessageSendUrlRequest'; } /** * 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.wechaty.puppet.MessageSendUrlResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.wechaty.puppet.MessageSendUrlResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.wechaty.puppet.MessageSendUrlResponse.displayName = 'proto.wechaty.puppet.MessageSendUrlResponse'; } /** * 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.wechaty.puppet.MessageRecallRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.wechaty.puppet.MessageRecallRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.wechaty.puppet.MessageRecallRequest.displayName = 'proto.wechaty.puppet.MessageRecallRequest'; } /** * 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.wechaty.puppet.MessageRecallResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.wechaty.puppet.MessageRecallResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.wechaty.puppet.MessageRecallResponse.displayName = 'proto.wechaty.puppet.MessageRecallResponse'; } 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.wechaty.puppet.MessagePayloadRequest.prototype.toObject = function(opt_includeInstance) { return proto.wechaty.puppet.MessagePayloadRequest.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.wechaty.puppet.MessagePayloadRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.wechaty.puppet.MessagePayloadRequest.toObject = function(includeInstance, msg) { var f, obj = { id: 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.wechaty.puppet.MessagePayloadRequest} */ proto.wechaty.puppet.MessagePayloadRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.wechaty.puppet.MessagePayloadRequest; return proto.wechaty.puppet.MessagePayloadRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.wechaty.puppet.MessagePayloadRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.wechaty.puppet.MessagePayloadRequest} */ proto.wechaty.puppet.MessagePayloadRequest.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.setId(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.wechaty.puppet.MessagePayloadRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.wechaty.puppet.MessagePayloadRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.wechaty.puppet.MessagePayloadRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.wechaty.puppet.MessagePayloadRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f.length > 0) { writer.writeString( 1, f ); } }; /** * optional string id = 1; * @return {string} */ proto.wechaty.puppet.MessagePayloadRequest.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.wechaty.puppet.MessagePayloadRequest} returns this */ proto.wechaty.puppet.MessagePayloadRequest.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.wechaty.puppet.MessagePayloadResponse.repeatedFields_ = [9]; 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.wechaty.puppet.MessagePayloadResponse.prototype.toObject = function(opt_includeInstance) { return proto.wechaty.puppet.MessagePayloadResponse.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.wechaty.puppet.MessagePayloadResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.wechaty.puppet.MessagePayloadResponse.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), filename: jspb.Message.getFieldWithDefault(msg, 2, ""), text: jspb.Message.getFieldWithDefault(msg, 3, ""), timestamp: jspb.Message.getFieldWithDefault(msg, 4, 0), type: jspb.Message.getFieldWithDefault(msg, 5, 0), fromId: jspb.Message.getFieldWithDefault(msg, 6, ""), roomId: jspb.Message.getFieldWithDefault(msg, 7, ""), toId: jspb.Message.getFieldWithDefault(msg, 8, ""), mentionIdsList: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : 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.wechaty.puppet.MessagePayloadResponse} */ proto.wechaty.puppet.MessagePayloadResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.wechaty.puppet.MessagePayloadResponse; return proto.wechaty.puppet.MessagePayloadResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.wechaty.puppet.MessagePayloadResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.wechaty.puppet.MessagePayloadResponse} */ proto.wechaty.puppet.MessagePayloadResponse.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.setId(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setFilename(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setText(value); break; case 4: var value = /** @type {number} */ (reader.readUint64()); msg.setTimestamp(value); break; case 5: var value = /** @type {!proto.wechaty.puppet.MessageType} */ (reader.readEnum()); msg.setType(value); break; case 6: var value = /** @type {string} */ (reader.readString()); msg.setFromId(value); break; case 7: var value = /** @type {string} */ (reader.readString()); msg.setRoomId(value); break; case 8: var value = /** @type {string} */ (reader.readString()); msg.setToId(value); break; case 9: var value = /** @type {string} */ (reader.readString()); msg.addMentionIds(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.wechaty.puppet.MessagePayloadResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.wechaty.puppet.MessagePayloadResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.wechaty.puppet.MessagePayloadResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.wechaty.puppet.MessagePayloadResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getFilename(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getText(); if (f.length > 0) { writer.writeString( 3, f ); } f = message.getTimestamp(); if (f !== 0) { writer.writeUint64( 4, f ); } f = message.getType(); if (f !== 0.0) { writer.writeEnum( 5, f ); } f = message.getFromId(); if (f.length > 0) { writer.writeString( 6, f ); } f = message.getRoomId(); if (f.length > 0) { writer.writeString( 7, f ); } f = message.getToId(); if (f.length > 0) { writer.writeString( 8, f ); } f = message.getMentionIdsList(); if (f.length > 0) { writer.writeRepeatedString( 9, f ); } }; /** * optional string id = 1; * @return {string} */ proto.wechaty.puppet.MessagePayloadResponse.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.wechaty.puppet.MessagePayloadResponse} returns this */ proto.wechaty.puppet.MessagePayloadResponse.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string filename = 2; * @return {string} */ proto.wechaty.puppet.MessagePayloadResponse.prototype.getFilename = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.wechaty.puppet.MessagePayloadResponse} returns this */ proto.wechaty.puppet.MessagePayloadResponse.prototype.setFilename = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional string text = 3; * @return {string} */ proto.wechaty.puppet.MessagePayloadResponse.prototype.getText = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.wechaty.puppet.MessagePayloadResponse} returns this */ proto.wechaty.puppet.MessagePayloadResponse.prototype.setText = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** * optional uint64 timestamp = 4; * @return {number} */ proto.wechaty.puppet.MessagePayloadResponse.prototype.getTimestamp = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** * @param {number} value * @return {!proto.wechaty.puppet.MessagePayloadResponse} returns this */ proto.wechaty.puppet.MessagePayloadResponse.prototype.setTimestamp = function(value) { return jspb.Message.setProto3IntField(this, 4, value); }; /** * optional MessageType type = 5; * @return {!proto.wechaty.puppet.MessageType} */ proto.wechaty.puppet.MessagePayloadResponse.prototype.getType = function() { return /** @type {!proto.wechaty.puppet.MessageType} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); }; /** * @param {!proto.wechaty.puppet.MessageType} value * @return {!proto.wechaty.puppet.MessagePayloadResponse} returns this */ proto.wechaty.puppet.MessagePayloadResponse.prototype.setType = function(value) { return jspb.Message.setProto3EnumField(this, 5, value); }; /** * optional string from_id = 6; * @return {string} */ proto.wechaty.puppet.MessagePayloadResponse.prototype.getFromId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** * @param {string} value * @return {!proto.wechaty.puppet.MessagePayloadResponse} returns this */ proto.wechaty.puppet.MessagePayloadResponse.prototype.setFromId = function(value) { return jspb.Message.setProto3StringField(this, 6, value); }; /** * optional string room_id = 7; * @return {string} */ proto.wechaty.puppet.MessagePayloadResponse.prototype.getRoomId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; /** * @param {string} value * @return {!proto.wechaty.puppet.MessagePayloadResponse} returns this */ proto.wechaty.puppet.MessagePayloadResponse.prototype.setRoomId = function(value) { return jspb.Message.setProto3StringField(this, 7, value); }; /** * optional string to_id = 8; * @return {string} */ proto.wechaty.puppet.MessagePayloadResponse.prototype.getToId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); }; /** * @param {string} value * @return {!proto.wechaty.puppet.MessagePayloadResponse} returns this */ proto.wechaty.puppet.MessagePayloadResponse.prototype.setToId = function(value) { return jspb.Message.setProto3StringField(this, 8, value); }; /** * repeated string mention_ids = 9; * @return {!Array<string>} */ proto.wechaty.puppet.MessagePayloadResponse.prototype.getMentionIdsList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 9)); }; /** * @param {!Array<string>} value * @return {!proto.wechaty.puppet.MessagePayloadResponse} returns this */ proto.wechaty.puppet.MessagePayloadResponse.prototype.setMentionIdsList = function(value) { return jspb.Message.setField(this, 9, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.wechaty.puppet.MessagePayloadResponse} returns this */ proto.wechaty.puppet.MessagePayloadResponse.prototype.addMentionIds = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 9, value, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.wechaty.puppet.MessagePayloadResponse} returns this */ proto.wechaty.puppet.MessagePayloadResponse.prototype.clearMentionIdsList = function() { return this.setMentionIdsList([]); }; 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.wechaty.puppet.MessageImageRequest.prototype.toObject = function(opt_includeInstance) { return proto.wechaty.puppet.MessageImageRequest.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.wechaty.puppet.MessageImageRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.wechaty.puppet.MessageImageRequest.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), type: 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.wechaty.puppet.MessageImageRequest} */ proto.wechaty.puppet.MessageImageRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.wechaty.puppet.MessageImageRequest; return proto.wechaty.puppet.MessageImageRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.wechaty.puppet.MessageImageRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.wechaty.puppet.MessageImageRequest} */ proto.wechaty.puppet.MessageImageRequest.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.setId(value); break; case 2: var value = /** @type {!proto.wechaty.puppet.ImageType} */ (reader.readEnum()); msg.setType(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.wechaty.puppet.MessageImageRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.wechaty.puppet.MessageImageRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.wechaty.puppet.MessageImageRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.wechaty.puppet.MessageImageRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getType(); if (f !== 0.0) { writer.writeEnum( 2, f ); } }; /** * optional string id = 1; * @return {string} */ proto.wechaty.puppet.MessageImageRequest.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.wechaty.puppet.MessageImageRequest} returns this */ proto.wechaty.puppet.MessageImageRequest.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional ImageType type = 2; * @return {!proto.wechaty.puppet.ImageType} */ proto.wechaty.puppet.MessageImageRequest.prototype.getType = function() { return /** @type {!proto.wechaty.puppet.ImageType} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {!proto.wechaty.puppet.ImageType} value * @return {!proto.wechaty.puppet.MessageImageRequest} returns this */ proto.wechaty.puppet.MessageImageRequest.prototype.setType = function(value) { return jspb.Message.setProto3EnumField(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.wechaty.puppet.MessageImageResponse.prototype.toObject = function(opt_includeInstance) { return proto.wechaty.puppet.MessageImageResponse.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.wechaty.puppet.MessageImageResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.wechaty.puppet.MessageImageResponse.toObject = function(includeInstance, msg) { var f, obj = { filebox: 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.wechaty.puppet.MessageImageResponse} */ proto.wechaty.puppet.MessageImageResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.wechaty.puppet.MessageImageResponse; return proto.wechaty.puppet.MessageImageResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.wechaty.puppet.MessageImageResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.wechaty.puppet.MessageImageResponse} */ proto.wechaty.puppet.MessageImageResponse.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.setFilebox(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.wechaty.puppet.MessageImageResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.wechaty.puppet.MessageImageResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), wri