UNPKG

jarviscrawlercore

Version:
1,460 lines (1,371 loc) 353 kB
// source: result.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 alimama_pb = require('./alimama_pb.js'); goog.object.extend(proto, alimama_pb); var steepandcheap_pb = require('./steepandcheap_pb.js'); goog.object.extend(proto, steepandcheap_pb); var mountainsteals_pb = require('./mountainsteals_pb.js'); goog.object.extend(proto, mountainsteals_pb); var tmall_pb = require('./tmall_pb.js'); goog.object.extend(proto, tmall_pb); var taobao_pb = require('./taobao_pb.js'); goog.object.extend(proto, taobao_pb); var manhuadb_pb = require('./manhuadb_pb.js'); goog.object.extend(proto, manhuadb_pb); var douban_pb = require('./douban_pb.js'); goog.object.extend(proto, douban_pb); var jrj_pb = require('./jrj_pb.js'); goog.object.extend(proto, jrj_pb); var telegraph_pb = require('./telegraph_pb.js'); goog.object.extend(proto, telegraph_pb); var oabt_pb = require('./oabt_pb.js'); goog.object.extend(proto, oabt_pb); var hao6v_pb = require('./hao6v_pb.js'); goog.object.extend(proto, hao6v_pb); var publictransit_pb = require('./publictransit_pb.js'); goog.object.extend(proto, publictransit_pb); var jd_pb = require('./jd_pb.js'); goog.object.extend(proto, jd_pb); var techinasia_pb = require('./techinasia_pb.js'); goog.object.extend(proto, techinasia_pb); var geoip_pb = require('./geoip_pb.js'); goog.object.extend(proto, geoip_pb); var dt_pb = require('./dt_pb.js'); goog.object.extend(proto, dt_pb); var article2_pb = require('./article2_pb.js'); goog.object.extend(proto, article2_pb); var p6vdy_pb = require('./p6vdy_pb.js'); goog.object.extend(proto, p6vdy_pb); var investing_pb = require('./investing_pb.js'); goog.object.extend(proto, investing_pb); goog.exportSymbol('proto.jarviscrawlercore.AnalyzePage', null, global); goog.exportSymbol('proto.jarviscrawlercore.AnalyzeReqInfo', null, global); goog.exportSymbol('proto.jarviscrawlercore.AnalyzeScreenshot', null, global); goog.exportSymbol('proto.jarviscrawlercore.AnalyzeScreenshotType', null, global); goog.exportSymbol('proto.jarviscrawlercore.Article', null, global); goog.exportSymbol('proto.jarviscrawlercore.ArticleList', null, global); goog.exportSymbol('proto.jarviscrawlercore.ConfluenceAllUpdates', null, global); goog.exportSymbol('proto.jarviscrawlercore.ConfluenceUpdateGrouping', null, global); goog.exportSymbol('proto.jarviscrawlercore.ConfluenceUpdateItem', null, global); goog.exportSymbol('proto.jarviscrawlercore.CrawlerStatistics', null, global); goog.exportSymbol('proto.jarviscrawlercore.CrawlerType', null, global); goog.exportSymbol('proto.jarviscrawlercore.CrunchBaseAcquisition', null, global); goog.exportSymbol('proto.jarviscrawlercore.CrunchBaseEmployee', null, global); goog.exportSymbol('proto.jarviscrawlercore.CrunchBaseFundingRound', null, global); goog.exportSymbol('proto.jarviscrawlercore.CrunchBaseInvestment', null, global); goog.exportSymbol('proto.jarviscrawlercore.CrunchBaseInvestor', null, global); goog.exportSymbol('proto.jarviscrawlercore.CrunchBaseOrganization', null, global); goog.exportSymbol('proto.jarviscrawlercore.ExportArticleResult', null, global); goog.exportSymbol('proto.jarviscrawlercore.ImageInfo', null, global); goog.exportSymbol('proto.jarviscrawlercore.Paragraph', null, global); goog.exportSymbol('proto.jarviscrawlercore.ParagraphType', null, global); goog.exportSymbol('proto.jarviscrawlercore.ReplyAnalyzePage', null, global); goog.exportSymbol('proto.jarviscrawlercore.ReplyArticle', null, global); goog.exportSymbol('proto.jarviscrawlercore.ReplyArticles', null, global); goog.exportSymbol('proto.jarviscrawlercore.ReplyCrawler', null, global); goog.exportSymbol('proto.jarviscrawlercore.ReplyCrawler.CrawlerresultCase', null, global); goog.exportSymbol('proto.jarviscrawlercore.ReplyCrawlerStream', null, global); goog.exportSymbol('proto.jarviscrawlercore.ReplyTranslate', null, global); goog.exportSymbol('proto.jarviscrawlercore.RequestArticle', null, global); goog.exportSymbol('proto.jarviscrawlercore.RequestArticles', null, global); goog.exportSymbol('proto.jarviscrawlercore.RequestCrawler', null, global); goog.exportSymbol('proto.jarviscrawlercore.RequestCrawler.CrawlerparamCase', null, global); goog.exportSymbol('proto.jarviscrawlercore.RequestCrunchBaseCompany', null, global); goog.exportSymbol('proto.jarviscrawlercore.RequestTranslate', null, global); goog.exportSymbol('proto.jarviscrawlercore.RequestTranslate2', null, global); goog.exportSymbol('proto.jarviscrawlercore.TranslateResult', null, global); goog.exportSymbol('proto.jarviscrawlercore.YCCompanies', 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.jarviscrawlercore.ImageInfo = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.jarviscrawlercore.ImageInfo, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.ImageInfo.displayName = 'proto.jarviscrawlercore.ImageInfo'; } /** * 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.jarviscrawlercore.Paragraph = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.jarviscrawlercore.Paragraph, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.Paragraph.displayName = 'proto.jarviscrawlercore.Paragraph'; } /** * 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.jarviscrawlercore.ExportArticleResult = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.jarviscrawlercore.ExportArticleResult.repeatedFields_, null); }; goog.inherits(proto.jarviscrawlercore.ExportArticleResult, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.ExportArticleResult.displayName = 'proto.jarviscrawlercore.ExportArticleResult'; } /** * 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.jarviscrawlercore.Article = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.jarviscrawlercore.Article, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.Article.displayName = 'proto.jarviscrawlercore.Article'; } /** * 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.jarviscrawlercore.ArticleList = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.jarviscrawlercore.ArticleList.repeatedFields_, null); }; goog.inherits(proto.jarviscrawlercore.ArticleList, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.ArticleList.displayName = 'proto.jarviscrawlercore.ArticleList'; } /** * 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.jarviscrawlercore.ConfluenceUpdateItem = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.jarviscrawlercore.ConfluenceUpdateItem, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.ConfluenceUpdateItem.displayName = 'proto.jarviscrawlercore.ConfluenceUpdateItem'; } /** * 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.jarviscrawlercore.ConfluenceUpdateGrouping = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.jarviscrawlercore.ConfluenceUpdateGrouping.repeatedFields_, null); }; goog.inherits(proto.jarviscrawlercore.ConfluenceUpdateGrouping, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.ConfluenceUpdateGrouping.displayName = 'proto.jarviscrawlercore.ConfluenceUpdateGrouping'; } /** * 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.jarviscrawlercore.ConfluenceAllUpdates = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.jarviscrawlercore.ConfluenceAllUpdates.repeatedFields_, null); }; goog.inherits(proto.jarviscrawlercore.ConfluenceAllUpdates, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.ConfluenceAllUpdates.displayName = 'proto.jarviscrawlercore.ConfluenceAllUpdates'; } /** * 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.jarviscrawlercore.YCCompanies = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.jarviscrawlercore.YCCompanies, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.YCCompanies.displayName = 'proto.jarviscrawlercore.YCCompanies'; } /** * 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.jarviscrawlercore.CrunchBaseEmployee = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.jarviscrawlercore.CrunchBaseEmployee, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.CrunchBaseEmployee.displayName = 'proto.jarviscrawlercore.CrunchBaseEmployee'; } /** * 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.jarviscrawlercore.CrunchBaseInvestment = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.jarviscrawlercore.CrunchBaseInvestment, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.CrunchBaseInvestment.displayName = 'proto.jarviscrawlercore.CrunchBaseInvestment'; } /** * 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.jarviscrawlercore.CrunchBaseAcquisition = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.jarviscrawlercore.CrunchBaseAcquisition, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.CrunchBaseAcquisition.displayName = 'proto.jarviscrawlercore.CrunchBaseAcquisition'; } /** * 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.jarviscrawlercore.CrunchBaseInvestor = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.jarviscrawlercore.CrunchBaseInvestor.repeatedFields_, null); }; goog.inherits(proto.jarviscrawlercore.CrunchBaseInvestor, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.CrunchBaseInvestor.displayName = 'proto.jarviscrawlercore.CrunchBaseInvestor'; } /** * 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.jarviscrawlercore.CrunchBaseFundingRound = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.jarviscrawlercore.CrunchBaseFundingRound.repeatedFields_, null); }; goog.inherits(proto.jarviscrawlercore.CrunchBaseFundingRound, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.CrunchBaseFundingRound.displayName = 'proto.jarviscrawlercore.CrunchBaseFundingRound'; } /** * 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.jarviscrawlercore.CrunchBaseOrganization = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, 500, proto.jarviscrawlercore.CrunchBaseOrganization.repeatedFields_, null); }; goog.inherits(proto.jarviscrawlercore.CrunchBaseOrganization, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.CrunchBaseOrganization.displayName = 'proto.jarviscrawlercore.CrunchBaseOrganization'; } /** * 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.jarviscrawlercore.RequestTranslate = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.jarviscrawlercore.RequestTranslate, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.RequestTranslate.displayName = 'proto.jarviscrawlercore.RequestTranslate'; } /** * 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.jarviscrawlercore.ReplyTranslate = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.jarviscrawlercore.ReplyTranslate, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.ReplyTranslate.displayName = 'proto.jarviscrawlercore.ReplyTranslate'; } /** * 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.jarviscrawlercore.RequestArticle = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.jarviscrawlercore.RequestArticle, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.RequestArticle.displayName = 'proto.jarviscrawlercore.RequestArticle'; } /** * 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.jarviscrawlercore.ReplyArticle = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.jarviscrawlercore.ReplyArticle, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.ReplyArticle.displayName = 'proto.jarviscrawlercore.ReplyArticle'; } /** * 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.jarviscrawlercore.RequestArticles = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.jarviscrawlercore.RequestArticles, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.RequestArticles.displayName = 'proto.jarviscrawlercore.RequestArticles'; } /** * 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.jarviscrawlercore.ReplyArticles = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.jarviscrawlercore.ReplyArticles, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.ReplyArticles.displayName = 'proto.jarviscrawlercore.ReplyArticles'; } /** * 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.jarviscrawlercore.RequestCrunchBaseCompany = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.jarviscrawlercore.RequestCrunchBaseCompany, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.RequestCrunchBaseCompany.displayName = 'proto.jarviscrawlercore.RequestCrunchBaseCompany'; } /** * 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.jarviscrawlercore.RequestTranslate2 = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.jarviscrawlercore.RequestTranslate2, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.RequestTranslate2.displayName = 'proto.jarviscrawlercore.RequestTranslate2'; } /** * 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.jarviscrawlercore.TranslateResult = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.jarviscrawlercore.TranslateResult, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.TranslateResult.displayName = 'proto.jarviscrawlercore.TranslateResult'; } /** * 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.jarviscrawlercore.AnalyzePage = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.jarviscrawlercore.AnalyzePage, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.AnalyzePage.displayName = 'proto.jarviscrawlercore.AnalyzePage'; } /** * 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.jarviscrawlercore.AnalyzeScreenshot = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.jarviscrawlercore.AnalyzeScreenshot, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.AnalyzeScreenshot.displayName = 'proto.jarviscrawlercore.AnalyzeScreenshot'; } /** * 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.jarviscrawlercore.AnalyzeReqInfo = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.jarviscrawlercore.AnalyzeReqInfo, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.AnalyzeReqInfo.displayName = 'proto.jarviscrawlercore.AnalyzeReqInfo'; } /** * 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.jarviscrawlercore.ReplyAnalyzePage = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.jarviscrawlercore.ReplyAnalyzePage.repeatedFields_, null); }; goog.inherits(proto.jarviscrawlercore.ReplyAnalyzePage, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.ReplyAnalyzePage.displayName = 'proto.jarviscrawlercore.ReplyAnalyzePage'; } /** * 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.jarviscrawlercore.CrawlerStatistics = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.jarviscrawlercore.CrawlerStatistics, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.CrawlerStatistics.displayName = 'proto.jarviscrawlercore.CrawlerStatistics'; } /** * 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.jarviscrawlercore.RequestCrawler = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, proto.jarviscrawlercore.RequestCrawler.oneofGroups_); }; goog.inherits(proto.jarviscrawlercore.RequestCrawler, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.RequestCrawler.displayName = 'proto.jarviscrawlercore.RequestCrawler'; } /** * 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.jarviscrawlercore.ReplyCrawler = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, proto.jarviscrawlercore.ReplyCrawler.oneofGroups_); }; goog.inherits(proto.jarviscrawlercore.ReplyCrawler, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.ReplyCrawler.displayName = 'proto.jarviscrawlercore.ReplyCrawler'; } /** * 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.jarviscrawlercore.ReplyCrawlerStream = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.jarviscrawlercore.ReplyCrawlerStream, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.jarviscrawlercore.ReplyCrawlerStream.displayName = 'proto.jarviscrawlercore.ReplyCrawlerStream'; } 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.jarviscrawlercore.ImageInfo.prototype.toObject = function(opt_includeInstance) { return proto.jarviscrawlercore.ImageInfo.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.jarviscrawlercore.ImageInfo} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.jarviscrawlercore.ImageInfo.toObject = function(includeInstance, msg) { var f, obj = { hashname: jspb.Message.getFieldWithDefault(msg, 1, ""), url: jspb.Message.getFieldWithDefault(msg, 2, ""), width: jspb.Message.getFieldWithDefault(msg, 3, 0), height: jspb.Message.getFieldWithDefault(msg, 4, 0), data: msg.getData_asB64() }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.jarviscrawlercore.ImageInfo} */ proto.jarviscrawlercore.ImageInfo.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.jarviscrawlercore.ImageInfo; return proto.jarviscrawlercore.ImageInfo.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.jarviscrawlercore.ImageInfo} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.jarviscrawlercore.ImageInfo} */ proto.jarviscrawlercore.ImageInfo.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.setHashname(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setUrl(value); break; case 3: var value = /** @type {number} */ (reader.readInt32()); msg.setWidth(value); break; case 4: var value = /** @type {number} */ (reader.readInt32()); msg.setHeight(value); break; case 5: var value = /** @type {!Uint8Array} */ (reader.readBytes()); msg.setData(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.jarviscrawlercore.ImageInfo.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.jarviscrawlercore.ImageInfo.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.jarviscrawlercore.ImageInfo} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.jarviscrawlercore.ImageInfo.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getHashname(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getUrl(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getWidth(); if (f !== 0) { writer.writeInt32( 3, f ); } f = message.getHeight(); if (f !== 0) { writer.writeInt32( 4, f ); } f = message.getData_asU8(); if (f.length > 0) { writer.writeBytes( 5, f ); } }; /** * optional string hashName = 1; * @return {string} */ proto.jarviscrawlercore.ImageInfo.prototype.getHashname = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.jarviscrawlercore.ImageInfo} returns this */ proto.jarviscrawlercore.ImageInfo.prototype.setHashname = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string url = 2; * @return {string} */ proto.jarviscrawlercore.ImageInfo.prototype.getUrl = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.jarviscrawlercore.ImageInfo} returns this */ proto.jarviscrawlercore.ImageInfo.prototype.setUrl = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional int32 width = 3; * @return {number} */ proto.jarviscrawlercore.ImageInfo.prototype.getWidth = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {number} value * @return {!proto.jarviscrawlercore.ImageInfo} returns this */ proto.jarviscrawlercore.ImageInfo.prototype.setWidth = function(value) { return jspb.Message.setProto3IntField(this, 3, value); }; /** * optional int32 height = 4; * @return {number} */ proto.jarviscrawlercore.ImageInfo.prototype.getHeight = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** * @param {number} value * @return {!proto.jarviscrawlercore.ImageInfo} returns this */ proto.jarviscrawlercore.ImageInfo.prototype.setHeight = function(value) { return jspb.Message.setProto3IntField(this, 4, value); }; /** * optional bytes data = 5; * @return {!(string|Uint8Array)} */ proto.jarviscrawlercore.ImageInfo.prototype.getData = function() { return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * optional bytes data = 5; * This is a type-conversion wrapper around `getData()` * @return {string} */ proto.jarviscrawlercore.ImageInfo.prototype.getData_asB64 = function() { return /** @type {string} */ (jspb.Message.bytesAsB64( this.getData())); }; /** * optional bytes data = 5; * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array * This is a type-conversion wrapper around `getData()` * @return {!Uint8Array} */ proto.jarviscrawlercore.ImageInfo.prototype.getData_asU8 = function() { return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( this.getData())); }; /** * @param {!(string|Uint8Array)} value * @return {!proto.jarviscrawlercore.ImageInfo} returns this */ proto.jarviscrawlercore.ImageInfo.prototype.setData = function(value) { return jspb.Message.setProto3BytesField(this, 5, 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.jarviscrawlercore.Paragraph.prototype.toObject = function(opt_includeInstance) { return proto.jarviscrawlercore.Paragraph.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.jarviscrawlercore.Paragraph} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.jarviscrawlercore.Paragraph.toObject = function(includeInstance, msg) { var f, obj = { pt: jspb.Message.getFieldWithDefault(msg, 1, 0), imghashname: jspb.Message.getFieldWithDefault(msg, 2, ""), text: jspb.Message.getFieldWithDefault(msg, 3, ""), imgurl: jspb.Message.getFieldWithDefault(msg, 4, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.jarviscrawlercore.Paragraph} */ proto.jarviscrawlercore.Paragraph.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.jarviscrawlercore.Paragraph; return proto.jarviscrawlercore.Paragraph.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.jarviscrawlercore.Paragraph} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.jarviscrawlercore.Paragraph} */ proto.jarviscrawlercore.Paragraph.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {!proto.jarviscrawlercore.ParagraphType} */ (reader.readEnum()); msg.setPt(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setImghashname(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setText(value); break; case 4: var value = /** @type {string} */ (reader.readString()); msg.setImgurl(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.jarviscrawlercore.Paragraph.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.jarviscrawlercore.Paragraph.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.jarviscrawlercore.Paragraph} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.jarviscrawlercore.Paragraph.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getPt(); if (f !== 0.0) { writer.writeEnum( 1, f ); } f = message.getImghashname(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getText(); if (f.length > 0) { writer.writeString( 3, f ); } f = message.getImgurl(); if (f.length > 0) { writer.writeString( 4, f ); } }; /** * optional ParagraphType pt = 1; * @return {!proto.jarviscrawlercore.ParagraphType} */ proto.jarviscrawlercore.Paragraph.prototype.getPt = function() { return /** @type {!proto.jarviscrawlercore.ParagraphType} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {!proto.jarviscrawlercore.ParagraphType} value * @return {!proto.jarviscrawlercore.Paragraph} returns this */ proto.jarviscrawlercore.Paragraph.prototype.setPt = function(value) { return jspb.Message.setProto3EnumField(this, 1, value); }; /** * optional string imgHashName = 2; * @return {string} */ proto.jarviscrawlercore.Paragraph.prototype.getImghashname = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.jarviscrawlercore.Paragraph} returns this */ proto.jarviscrawlercore.Paragraph.prototype.setImghashname = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional string text = 3; * @return {string} */ proto.jarviscrawlercore.Paragraph.prototype.getText = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.jarviscrawlercore.Paragraph} returns this */ proto.jarviscrawlercore.Paragraph.prototype.setText = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** * optional string imgURL = 4; * @return {string} */ proto.jarviscrawlercore.Paragraph.prototype.getImgurl = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value * @return {!proto.jarviscrawlercore.Paragraph} returns this */ proto.jarviscrawlercore.Paragraph.prototype.setImgurl = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.jarviscrawlercore.ExportArticleResult.repeatedFields_ = [6,8,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.jarviscrawlercore.ExportArticleResult.prototype.toObject = function(opt_includeInstance) { return proto.jarviscrawlercore.ExportArticleResult.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.jarviscrawlercore.ExportArticleResult} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.jarviscrawlercore.ExportArticleResult.toObject = function(includeInstance, msg) { var f, obj = { title: jspb.Message.getFieldWithDefault(msg, 1, ""), author: jspb.Message.getFieldWithDefault(msg, 2, ""), writetime: jspb.Message.getFieldWithDefault(msg, 3, ""), article: jspb.Message.getFieldWithDefault(msg, 4, ""), url: jspb.Message.getFieldWithDefault(msg, 5, ""), imgsList: jspb.Message.toObjectList(msg.getImgsList(), proto.jarviscrawlercore.ImageInfo.toObject, includeInstance), titleimage: (f = msg.getTitleimage()) && proto.jarviscrawlercore.ImageInfo.toObject(includeInstance, f), tagsList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f, paragraphsList: jspb.Message.toObjectList(msg.getParagraphsList(), proto.jarviscrawlercore.Paragraph.toObject, includeInstance), summary: jspb.Message.getFieldWithDefault(msg, 10, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.jarviscrawlercore.ExportArticleResult} */ proto.jarviscrawlercore.ExportArticleResult.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.jarviscrawlercore.ExportArticleResult; return proto.jarviscrawlercore.ExportArticleResult.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.jarviscrawlercore.ExportArticleResult} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.jarviscrawlercore.ExportArticleResult} */ proto.jarviscrawlercore.ExportArticleResult.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.setTitle(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setAuthor(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setWritetime(value); break; case 4: var value = /** @type {string} */ (reader.readString()); msg.setArticle(value); break; case 5: var value = /** @type {string} */ (reader.readString()); msg.setUrl(value); break; case 6: var value = new proto.jarviscrawlercore.ImageInfo; reader.readMessage(value,proto.jarviscrawlercore.ImageInfo.deserializeBinaryFromReader); msg.addImgs(value); break; case 7: var value = new proto.jarviscrawlercore.ImageInfo; reader.readMessage(value,proto.jarviscrawlercore.ImageInfo.deserializeBinaryFromReader); msg.setTitleimage(value); break; case 8: var value = /** @type {string} */ (reader.readString()); msg.addTags(value); break; case 9: var value = new proto.jarviscrawlercore.Paragraph; reader.readMessage(value,proto.jarviscrawlercore.Paragraph.deserializeBinaryFromReader); msg.addParagraphs(value); break; case 10: var value = /** @type {string} */ (reader.readString()); msg.setSummary(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.jarviscrawlercore.ExportArticleResult.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.jarviscrawlercore.ExportArticleResult.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.jarviscrawlercore.ExportArticleResult} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.jarviscrawlercore.ExportArticleResult.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getTitle(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getAuthor(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getWritetime(); if (f.length > 0) { writer.writeString( 3, f ); } f = message.getArticle(); if (f.length > 0) { writer.writeString( 4, f ); } f = message.getUrl(); if (f.length > 0) { writer.writeString( 5, f ); } f = message.getImgsList(); if (f.length > 0) { writer.writeRepeatedMessage( 6, f, proto.jarviscrawlercore.ImageInfo.serializeBinaryToWriter ); } f