wechaty-grpc
Version:
gRPC for Wechaty
1,457 lines (1,341 loc) • 186 kB
JavaScript
// source: wechaty/puppet/message.proto
/**
* @fileoverview
* @enhanceable
* @suppress {missingRequire} reports error on implicit type usages.
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck
var jspb = require('google-protobuf');
var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
goog.object.extend(proto, google_protobuf_timestamp_pb);
var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js');
goog.object.extend(proto, google_protobuf_wrappers_pb);
var wechaty_puppet_image_pb = require('../../wechaty/puppet/image_pb.js');
goog.object.extend(proto, wechaty_puppet_image_pb);
var wechaty_puppet_location_pb = require('../../wechaty/puppet/location_pb.js');
goog.object.extend(proto, wechaty_puppet_location_pb);
var wechaty_puppet_mini$program_pb = require('../../wechaty/puppet/mini-program_pb.js');
goog.object.extend(proto, wechaty_puppet_mini$program_pb);
var wechaty_puppet_url$link_pb = require('../../wechaty/puppet/url-link_pb.js');
goog.object.extend(proto, wechaty_puppet_url$link_pb);
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.MessageForwardRequest', null, global);
goog.exportSymbol('proto.wechaty.puppet.MessageForwardResponse', null, global);
goog.exportSymbol('proto.wechaty.puppet.MessageImageRequest', null, global);
goog.exportSymbol('proto.wechaty.puppet.MessageImageResponse', null, global);
goog.exportSymbol('proto.wechaty.puppet.MessageLocationRequest', null, global);
goog.exportSymbol('proto.wechaty.puppet.MessageLocationResponse', 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.MessageSendLocationRequest', null, global);
goog.exportSymbol('proto.wechaty.puppet.MessageSendLocationResponse', 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.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.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.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';
}
/**
* 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.MessageForwardRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.wechaty.puppet.MessageForwardRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.wechaty.puppet.MessageForwardRequest.displayName = 'proto.wechaty.puppet.MessageForwardRequest';
}
/**
* 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.MessageForwardResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.wechaty.puppet.MessageForwardResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.wechaty.puppet.MessageForwardResponse.displayName = 'proto.wechaty.puppet.MessageForwardResponse';
}
/**
* 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.MessageLocationRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.wechaty.puppet.MessageLocationRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.wechaty.puppet.MessageLocationRequest.displayName = 'proto.wechaty.puppet.MessageLocationRequest';
}
/**
* 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.MessageLocationResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.wechaty.puppet.MessageLocationResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.wechaty.puppet.MessageLocationResponse.displayName = 'proto.wechaty.puppet.MessageLocationResponse';
}
/**
* 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.MessageSendLocationRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.wechaty.puppet.MessageSendLocationRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.wechaty.puppet.MessageSendLocationRequest.displayName = 'proto.wechaty.puppet.MessageSendLocationRequest';
}
/**
* 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.MessageSendLocationResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.wechaty.puppet.MessageSendLocationResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.wechaty.puppet.MessageSendLocationResponse.displayName = 'proto.wechaty.puppet.MessageSendLocationResponse';
}
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, ""),
timestampDeprecated: 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,
receiveTime: (f = msg.getReceiveTime()) && google_protobuf_timestamp_pb.Timestamp.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.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.setTimestampDeprecated(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;
case 10:
var value = new google_protobuf_timestamp_pb.Timestamp;
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
msg.setReceiveTime(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.getTimestampDeprecated();
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
);
}
f = message.getReceiveTime();
if (f != null) {
writer.writeMessage(
10,
f,
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
);
}
};
/**
* 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_deprecated = 4;
* @return {number}
*/
proto.wechaty.puppet.MessagePayloadResponse.prototype.getTimestampDeprecated = 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.setTimestampDeprecated = 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([]);
};
/**
* optional google.protobuf.Timestamp receive_time = 10;
* @return {?proto.google.protobuf.Timestamp}
*/
proto.wechaty.puppet.MessagePayloadResponse.prototype.getReceiveTime = function() {
return /** @type{?proto.google.protobuf.Timestamp} */ (
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10));
};
/**
* @param {?proto.google.protobuf.Timestamp|undefined} value
* @return {!proto.wechaty.puppet.MessagePayloadResponse} returns this
*/
proto.wechaty.puppet.MessagePayloadResponse.prototype.setReceiveTime = function(value) {
return jspb.Message.setWrapperField(this, 10, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.wechaty.puppet.MessagePayloadResponse} returns this
*/
proto.wechaty.puppet.MessagePayloadResponse.prototype.clearReceiveTime = function() {
return this.setReceiveTime(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.wechaty.puppet.MessagePayloadResponse.prototype.hasReceiveTime = function() {
return jspb.Message.getField(this, 10) != 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.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 {bool