jarviscrawlercore
Version:
jarvis crawler core
1,711 lines (1,475 loc) • 64 kB
JavaScript
// source: douban.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')();
goog.exportSymbol('proto.jarviscrawlercore.DoubanBook', null, global);
goog.exportSymbol('proto.jarviscrawlercore.DoubanComic', null, global);
goog.exportSymbol('proto.jarviscrawlercore.DoubanMode', null, global);
goog.exportSymbol('proto.jarviscrawlercore.DoubanSearch', null, global);
goog.exportSymbol('proto.jarviscrawlercore.DoubanSubject', null, global);
goog.exportSymbol('proto.jarviscrawlercore.DoubanType', null, global);
goog.exportSymbol('proto.jarviscrawlercore.ReplyDouban', null, global);
goog.exportSymbol('proto.jarviscrawlercore.ReplyDouban.ReplyCase', null, global);
goog.exportSymbol('proto.jarviscrawlercore.RequestDouban', 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.DoubanSubject = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.jarviscrawlercore.DoubanSubject, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.jarviscrawlercore.DoubanSubject.displayName = 'proto.jarviscrawlercore.DoubanSubject';
}
/**
* 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.DoubanSearch = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.jarviscrawlercore.DoubanSearch.repeatedFields_, null);
};
goog.inherits(proto.jarviscrawlercore.DoubanSearch, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.jarviscrawlercore.DoubanSearch.displayName = 'proto.jarviscrawlercore.DoubanSearch';
}
/**
* 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.DoubanBook = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.jarviscrawlercore.DoubanBook.repeatedFields_, null);
};
goog.inherits(proto.jarviscrawlercore.DoubanBook, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.jarviscrawlercore.DoubanBook.displayName = 'proto.jarviscrawlercore.DoubanBook';
}
/**
* 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.DoubanComic = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.jarviscrawlercore.DoubanComic.repeatedFields_, null);
};
goog.inherits(proto.jarviscrawlercore.DoubanComic, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.jarviscrawlercore.DoubanComic.displayName = 'proto.jarviscrawlercore.DoubanComic';
}
/**
* 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.RequestDouban = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.jarviscrawlercore.RequestDouban, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.jarviscrawlercore.RequestDouban.displayName = 'proto.jarviscrawlercore.RequestDouban';
}
/**
* 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.ReplyDouban = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.jarviscrawlercore.ReplyDouban.oneofGroups_);
};
goog.inherits(proto.jarviscrawlercore.ReplyDouban, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.jarviscrawlercore.ReplyDouban.displayName = 'proto.jarviscrawlercore.ReplyDouban';
}
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.DoubanSubject.prototype.toObject = function(opt_includeInstance) {
return proto.jarviscrawlercore.DoubanSubject.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.DoubanSubject} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.jarviscrawlercore.DoubanSubject.toObject = function(includeInstance, msg) {
var f, obj = {
title: jspb.Message.getFieldWithDefault(msg, 1, ""),
url: jspb.Message.getFieldWithDefault(msg, 2, ""),
doubantype: jspb.Message.getFieldWithDefault(msg, 3, 0),
id: 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.DoubanSubject}
*/
proto.jarviscrawlercore.DoubanSubject.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.jarviscrawlercore.DoubanSubject;
return proto.jarviscrawlercore.DoubanSubject.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.jarviscrawlercore.DoubanSubject} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.jarviscrawlercore.DoubanSubject}
*/
proto.jarviscrawlercore.DoubanSubject.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.setUrl(value);
break;
case 3:
var value = /** @type {!proto.jarviscrawlercore.DoubanType} */ (reader.readEnum());
msg.setDoubantype(value);
break;
case 4:
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.jarviscrawlercore.DoubanSubject.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.jarviscrawlercore.DoubanSubject.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.DoubanSubject} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.jarviscrawlercore.DoubanSubject.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getTitle();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getUrl();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getDoubantype();
if (f !== 0.0) {
writer.writeEnum(
3,
f
);
}
f = message.getId();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
};
/**
* optional string title = 1;
* @return {string}
*/
proto.jarviscrawlercore.DoubanSubject.prototype.getTitle = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.jarviscrawlercore.DoubanSubject} returns this
*/
proto.jarviscrawlercore.DoubanSubject.prototype.setTitle = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string url = 2;
* @return {string}
*/
proto.jarviscrawlercore.DoubanSubject.prototype.getUrl = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.jarviscrawlercore.DoubanSubject} returns this
*/
proto.jarviscrawlercore.DoubanSubject.prototype.setUrl = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional DoubanType doubanType = 3;
* @return {!proto.jarviscrawlercore.DoubanType}
*/
proto.jarviscrawlercore.DoubanSubject.prototype.getDoubantype = function() {
return /** @type {!proto.jarviscrawlercore.DoubanType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/**
* @param {!proto.jarviscrawlercore.DoubanType} value
* @return {!proto.jarviscrawlercore.DoubanSubject} returns this
*/
proto.jarviscrawlercore.DoubanSubject.prototype.setDoubantype = function(value) {
return jspb.Message.setProto3EnumField(this, 3, value);
};
/**
* optional string id = 4;
* @return {string}
*/
proto.jarviscrawlercore.DoubanSubject.prototype.getId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* @param {string} value
* @return {!proto.jarviscrawlercore.DoubanSubject} returns this
*/
proto.jarviscrawlercore.DoubanSubject.prototype.setId = function(value) {
return jspb.Message.setProto3StringField(this, 4, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.jarviscrawlercore.DoubanSearch.repeatedFields_ = [2];
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.DoubanSearch.prototype.toObject = function(opt_includeInstance) {
return proto.jarviscrawlercore.DoubanSearch.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.DoubanSearch} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.jarviscrawlercore.DoubanSearch.toObject = function(includeInstance, msg) {
var f, obj = {
text: jspb.Message.getFieldWithDefault(msg, 1, ""),
subjectsList: jspb.Message.toObjectList(msg.getSubjectsList(),
proto.jarviscrawlercore.DoubanSubject.toObject, includeInstance),
doubantype: jspb.Message.getFieldWithDefault(msg, 3, 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.jarviscrawlercore.DoubanSearch}
*/
proto.jarviscrawlercore.DoubanSearch.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.jarviscrawlercore.DoubanSearch;
return proto.jarviscrawlercore.DoubanSearch.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.jarviscrawlercore.DoubanSearch} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.jarviscrawlercore.DoubanSearch}
*/
proto.jarviscrawlercore.DoubanSearch.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.setText(value);
break;
case 2:
var value = new proto.jarviscrawlercore.DoubanSubject;
reader.readMessage(value,proto.jarviscrawlercore.DoubanSubject.deserializeBinaryFromReader);
msg.addSubjects(value);
break;
case 3:
var value = /** @type {!proto.jarviscrawlercore.DoubanType} */ (reader.readEnum());
msg.setDoubantype(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.jarviscrawlercore.DoubanSearch.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.jarviscrawlercore.DoubanSearch.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.DoubanSearch} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.jarviscrawlercore.DoubanSearch.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getText();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getSubjectsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
2,
f,
proto.jarviscrawlercore.DoubanSubject.serializeBinaryToWriter
);
}
f = message.getDoubantype();
if (f !== 0.0) {
writer.writeEnum(
3,
f
);
}
};
/**
* optional string text = 1;
* @return {string}
*/
proto.jarviscrawlercore.DoubanSearch.prototype.getText = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.jarviscrawlercore.DoubanSearch} returns this
*/
proto.jarviscrawlercore.DoubanSearch.prototype.setText = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* repeated DoubanSubject subjects = 2;
* @return {!Array<!proto.jarviscrawlercore.DoubanSubject>}
*/
proto.jarviscrawlercore.DoubanSearch.prototype.getSubjectsList = function() {
return /** @type{!Array<!proto.jarviscrawlercore.DoubanSubject>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.jarviscrawlercore.DoubanSubject, 2));
};
/**
* @param {!Array<!proto.jarviscrawlercore.DoubanSubject>} value
* @return {!proto.jarviscrawlercore.DoubanSearch} returns this
*/
proto.jarviscrawlercore.DoubanSearch.prototype.setSubjectsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 2, value);
};
/**
* @param {!proto.jarviscrawlercore.DoubanSubject=} opt_value
* @param {number=} opt_index
* @return {!proto.jarviscrawlercore.DoubanSubject}
*/
proto.jarviscrawlercore.DoubanSearch.prototype.addSubjects = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.jarviscrawlercore.DoubanSubject, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.jarviscrawlercore.DoubanSearch} returns this
*/
proto.jarviscrawlercore.DoubanSearch.prototype.clearSubjectsList = function() {
return this.setSubjectsList([]);
};
/**
* optional DoubanType doubanType = 3;
* @return {!proto.jarviscrawlercore.DoubanType}
*/
proto.jarviscrawlercore.DoubanSearch.prototype.getDoubantype = function() {
return /** @type {!proto.jarviscrawlercore.DoubanType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/**
* @param {!proto.jarviscrawlercore.DoubanType} value
* @return {!proto.jarviscrawlercore.DoubanSearch} returns this
*/
proto.jarviscrawlercore.DoubanSearch.prototype.setDoubantype = function(value) {
return jspb.Message.setProto3EnumField(this, 3, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.jarviscrawlercore.DoubanBook.repeatedFields_ = [5,9,10,11];
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.DoubanBook.prototype.toObject = function(opt_includeInstance) {
return proto.jarviscrawlercore.DoubanBook.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.DoubanBook} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.jarviscrawlercore.DoubanBook.toObject = function(includeInstance, msg) {
var f, obj = {
title: jspb.Message.getFieldWithDefault(msg, 1, ""),
url: jspb.Message.getFieldWithDefault(msg, 2, ""),
id: jspb.Message.getFieldWithDefault(msg, 3, ""),
cover: jspb.Message.getFieldWithDefault(msg, 4, ""),
authorsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
score: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
ratingnums: jspb.Message.getFieldWithDefault(msg, 7, 0),
intro: jspb.Message.getFieldWithDefault(msg, 8, ""),
lstlinkList: jspb.Message.toObjectList(msg.getLstlinkList(),
proto.jarviscrawlercore.DoubanSubject.toObject, includeInstance),
tagsList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f,
othertitleList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f,
lastupdatedtime: jspb.Message.getFieldWithDefault(msg, 12, 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.jarviscrawlercore.DoubanBook}
*/
proto.jarviscrawlercore.DoubanBook.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.jarviscrawlercore.DoubanBook;
return proto.jarviscrawlercore.DoubanBook.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.jarviscrawlercore.DoubanBook} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.jarviscrawlercore.DoubanBook}
*/
proto.jarviscrawlercore.DoubanBook.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.setUrl(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setId(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setCover(value);
break;
case 5:
var value = /** @type {string} */ (reader.readString());
msg.addAuthors(value);
break;
case 6:
var value = /** @type {number} */ (reader.readFloat());
msg.setScore(value);
break;
case 7:
var value = /** @type {number} */ (reader.readInt32());
msg.setRatingnums(value);
break;
case 8:
var value = /** @type {string} */ (reader.readString());
msg.setIntro(value);
break;
case 9:
var value = new proto.jarviscrawlercore.DoubanSubject;
reader.readMessage(value,proto.jarviscrawlercore.DoubanSubject.deserializeBinaryFromReader);
msg.addLstlink(value);
break;
case 10:
var value = /** @type {string} */ (reader.readString());
msg.addTags(value);
break;
case 11:
var value = /** @type {string} */ (reader.readString());
msg.addOthertitle(value);
break;
case 12:
var value = /** @type {number} */ (reader.readInt64());
msg.setLastupdatedtime(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.jarviscrawlercore.DoubanBook.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.jarviscrawlercore.DoubanBook.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.DoubanBook} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.jarviscrawlercore.DoubanBook.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getTitle();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getUrl();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getId();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getCover();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
f = message.getAuthorsList();
if (f.length > 0) {
writer.writeRepeatedString(
5,
f
);
}
f = message.getScore();
if (f !== 0.0) {
writer.writeFloat(
6,
f
);
}
f = message.getRatingnums();
if (f !== 0) {
writer.writeInt32(
7,
f
);
}
f = message.getIntro();
if (f.length > 0) {
writer.writeString(
8,
f
);
}
f = message.getLstlinkList();
if (f.length > 0) {
writer.writeRepeatedMessage(
9,
f,
proto.jarviscrawlercore.DoubanSubject.serializeBinaryToWriter
);
}
f = message.getTagsList();
if (f.length > 0) {
writer.writeRepeatedString(
10,
f
);
}
f = message.getOthertitleList();
if (f.length > 0) {
writer.writeRepeatedString(
11,
f
);
}
f = message.getLastupdatedtime();
if (f !== 0) {
writer.writeInt64(
12,
f
);
}
};
/**
* optional string title = 1;
* @return {string}
*/
proto.jarviscrawlercore.DoubanBook.prototype.getTitle = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.jarviscrawlercore.DoubanBook} returns this
*/
proto.jarviscrawlercore.DoubanBook.prototype.setTitle = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string url = 2;
* @return {string}
*/
proto.jarviscrawlercore.DoubanBook.prototype.getUrl = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.jarviscrawlercore.DoubanBook} returns this
*/
proto.jarviscrawlercore.DoubanBook.prototype.setUrl = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional string id = 3;
* @return {string}
*/
proto.jarviscrawlercore.DoubanBook.prototype.getId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.jarviscrawlercore.DoubanBook} returns this
*/
proto.jarviscrawlercore.DoubanBook.prototype.setId = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* optional string cover = 4;
* @return {string}
*/
proto.jarviscrawlercore.DoubanBook.prototype.getCover = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* @param {string} value
* @return {!proto.jarviscrawlercore.DoubanBook} returns this
*/
proto.jarviscrawlercore.DoubanBook.prototype.setCover = function(value) {
return jspb.Message.setProto3StringField(this, 4, value);
};
/**
* repeated string authors = 5;
* @return {!Array<string>}
*/
proto.jarviscrawlercore.DoubanBook.prototype.getAuthorsList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
};
/**
* @param {!Array<string>} value
* @return {!proto.jarviscrawlercore.DoubanBook} returns this
*/
proto.jarviscrawlercore.DoubanBook.prototype.setAuthorsList = function(value) {
return jspb.Message.setField(this, 5, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.jarviscrawlercore.DoubanBook} returns this
*/
proto.jarviscrawlercore.DoubanBook.prototype.addAuthors = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.jarviscrawlercore.DoubanBook} returns this
*/
proto.jarviscrawlercore.DoubanBook.prototype.clearAuthorsList = function() {
return this.setAuthorsList([]);
};
/**
* optional float score = 6;
* @return {number}
*/
proto.jarviscrawlercore.DoubanBook.prototype.getScore = function() {
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
};
/**
* @param {number} value
* @return {!proto.jarviscrawlercore.DoubanBook} returns this
*/
proto.jarviscrawlercore.DoubanBook.prototype.setScore = function(value) {
return jspb.Message.setProto3FloatField(this, 6, value);
};
/**
* optional int32 ratingNums = 7;
* @return {number}
*/
proto.jarviscrawlercore.DoubanBook.prototype.getRatingnums = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
};
/**
* @param {number} value
* @return {!proto.jarviscrawlercore.DoubanBook} returns this
*/
proto.jarviscrawlercore.DoubanBook.prototype.setRatingnums = function(value) {
return jspb.Message.setProto3IntField(this, 7, value);
};
/**
* optional string intro = 8;
* @return {string}
*/
proto.jarviscrawlercore.DoubanBook.prototype.getIntro = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
};
/**
* @param {string} value
* @return {!proto.jarviscrawlercore.DoubanBook} returns this
*/
proto.jarviscrawlercore.DoubanBook.prototype.setIntro = function(value) {
return jspb.Message.setProto3StringField(this, 8, value);
};
/**
* repeated DoubanSubject lstLink = 9;
* @return {!Array<!proto.jarviscrawlercore.DoubanSubject>}
*/
proto.jarviscrawlercore.DoubanBook.prototype.getLstlinkList = function() {
return /** @type{!Array<!proto.jarviscrawlercore.DoubanSubject>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.jarviscrawlercore.DoubanSubject, 9));
};
/**
* @param {!Array<!proto.jarviscrawlercore.DoubanSubject>} value
* @return {!proto.jarviscrawlercore.DoubanBook} returns this
*/
proto.jarviscrawlercore.DoubanBook.prototype.setLstlinkList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 9, value);
};
/**
* @param {!proto.jarviscrawlercore.DoubanSubject=} opt_value
* @param {number=} opt_index
* @return {!proto.jarviscrawlercore.DoubanSubject}
*/
proto.jarviscrawlercore.DoubanBook.prototype.addLstlink = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.jarviscrawlercore.DoubanSubject, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.jarviscrawlercore.DoubanBook} returns this
*/
proto.jarviscrawlercore.DoubanBook.prototype.clearLstlinkList = function() {
return this.setLstlinkList([]);
};
/**
* repeated string tags = 10;
* @return {!Array<string>}
*/
proto.jarviscrawlercore.DoubanBook.prototype.getTagsList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 10));
};
/**
* @param {!Array<string>} value
* @return {!proto.jarviscrawlercore.DoubanBook} returns this
*/
proto.jarviscrawlercore.DoubanBook.prototype.setTagsList = function(value) {
return jspb.Message.setField(this, 10, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.jarviscrawlercore.DoubanBook} returns this
*/
proto.jarviscrawlercore.DoubanBook.prototype.addTags = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 10, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.jarviscrawlercore.DoubanBook} returns this
*/
proto.jarviscrawlercore.DoubanBook.prototype.clearTagsList = function() {
return this.setTagsList([]);
};
/**
* repeated string otherTitle = 11;
* @return {!Array<string>}
*/
proto.jarviscrawlercore.DoubanBook.prototype.getOthertitleList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 11));
};
/**
* @param {!Array<string>} value
* @return {!proto.jarviscrawlercore.DoubanBook} returns this
*/
proto.jarviscrawlercore.DoubanBook.prototype.setOthertitleList = function(value) {
return jspb.Message.setField(this, 11, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.jarviscrawlercore.DoubanBook} returns this
*/
proto.jarviscrawlercore.DoubanBook.prototype.addOthertitle = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 11, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.jarviscrawlercore.DoubanBook} returns this
*/
proto.jarviscrawlercore.DoubanBook.prototype.clearOthertitleList = function() {
return this.setOthertitleList([]);
};
/**
* optional int64 lastUpdatedTime = 12;
* @return {number}
*/
proto.jarviscrawlercore.DoubanBook.prototype.getLastupdatedtime = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
};
/**
* @param {number} value
* @return {!proto.jarviscrawlercore.DoubanBook} returns this
*/
proto.jarviscrawlercore.DoubanBook.prototype.setLastupdatedtime = function(value) {
return jspb.Message.setProto3IntField(this, 12, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.jarviscrawlercore.DoubanComic.repeatedFields_ = [2,3,7,9,10,11];
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.DoubanComic.prototype.toObject = function(opt_includeInstance) {
return proto.jarviscrawlercore.DoubanComic.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.DoubanComic} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.jarviscrawlercore.DoubanComic.toObject = function(includeInstance, msg) {
var f, obj = {
title: jspb.Message.getFieldWithDefault(msg, 1, ""),
coversList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
authorsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
score: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
ratingnums: jspb.Message.getFieldWithDefault(msg, 5, 0),
intro: jspb.Message.getFieldWithDefault(msg, 6, ""),
tagsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
lastupdatedtime: jspb.Message.getFieldWithDefault(msg, 8, 0),
booksList: jspb.Message.toObjectList(msg.getBooksList(),
proto.jarviscrawlercore.DoubanBook.toObject, includeInstance),
lstlinkList: jspb.Message.toObjectList(msg.getLstlinkList(),
proto.jarviscrawlercore.DoubanSubject.toObject, includeInstance),
linkcomicsList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.jarviscrawlercore.DoubanComic}
*/
proto.jarviscrawlercore.DoubanComic.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.jarviscrawlercore.DoubanComic;
return proto.jarviscrawlercore.DoubanComic.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.jarviscrawlercore.DoubanComic} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.jarviscrawlercore.DoubanComic}
*/
proto.jarviscrawlercore.DoubanComic.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.addCovers(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.addAuthors(value);
break;
case 4:
var value = /** @type {number} */ (reader.readFloat());
msg.setScore(value);
break;
case 5:
var value = /** @type {number} */ (reader.readInt32());
msg.setRatingnums(value);
break;
case 6:
var value = /** @type {string} */ (reader.readString());
msg.setIntro(value);
break;
case 7:
var value = /** @type {string} */ (reader.readString());
msg.addTags(value);
break;
case 8:
var value = /** @type {number} */ (reader.readInt64());
msg.setLastupdatedtime(value);
break;
case 9:
var value = new proto.jarviscrawlercore.DoubanBook;
reader.readMessage(value,proto.jarviscrawlercore.DoubanBook.deserializeBinaryFromReader);
msg.addBooks(value);
break;
case 10:
var value = new proto.jarviscrawlercore.DoubanSubject;
reader.readMessage(value,proto.jarviscrawlercore.DoubanSubject.deserializeBinaryFromReader);
msg.addLstlink(value);
break;
case 11:
var value = /** @type {string} */ (reader.readString());
msg.addLinkcomics(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.jarviscrawlercore.DoubanComic.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.jarviscrawlercore.DoubanComic.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.DoubanComic} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.jarviscrawlercore.DoubanComic.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getTitle();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getCoversList();
if (f.length > 0) {
writer.writeRepeatedString(
2,
f
);
}
f = message.getAuthorsList();
if (f.length > 0) {
writer.writeRepeatedString(
3,
f
);
}
f = message.getScore();
if (f !== 0.0) {
writer.writeFloat(
4,
f
);
}
f = message.getRatingnums();
if (f !== 0) {
writer.writeInt32(
5,
f
);
}
f = message.getIntro();
if (f.length > 0) {
writer.writeString(
6,
f
);
}
f = message.getTagsList();
if (f.length > 0) {
writer.writeRepeatedString(
7,
f
);
}
f = message.getLastupdatedtime();
if (f !== 0) {
writer.writeInt64(
8,
f
);
}
f = message.getBooksList();
if (f.length > 0) {
writer.writeRepeatedMessage(
9,
f,
proto.jarviscrawlercore.DoubanBook.serializeBinaryToWriter
);
}
f = message.getLstlinkList();
if (f.length > 0) {
writer.writeRepeatedMessage(
10,
f,
proto.jarviscrawlercore.DoubanSubject.serializeBinaryToWriter
);
}
f = message.getLinkcomicsList();
if (f.length > 0) {
writer.writeRepeatedString(
11,
f
);
}
};
/**
* optional string title = 1;
* @return {string}
*/
proto.jarviscrawlercore.DoubanComic.prototype.getTitle = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.jarviscrawlercore.DoubanComic} returns this
*/
proto.jarviscrawlercore.DoubanComic.prototype.setTitle = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* repeated string covers = 2;
* @return {!Array<string>}
*/
proto.jarviscrawlercore.DoubanComic.prototype.getCoversList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
};
/**
* @param {!Array<string>} value
* @return {!proto.jarviscrawlercore.DoubanComic} returns this
*/
proto.jarviscrawlercore.DoubanComic.prototype.setCoversList = function(value) {
return jspb.Message.setField(this, 2, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.jarviscrawlercore.DoubanComic} returns this
*/
proto.jarviscrawlercore.DoubanComic.prototype.addCovers = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.jarviscrawlercore.DoubanComic} returns this
*/
proto.jarviscrawlercore.DoubanComic.prototype.clearCoversList = function() {
return this.setCoversList([]);
};
/**
* repeated string authors = 3;
* @return {!Array<string>}
*/
proto.jarviscrawlercore.DoubanComic.prototype.getAuthorsList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
};
/**
* @param {!Array<string>} value
* @return {!proto.jarviscrawlercore.DoubanComic} returns this
*/
proto.jarviscrawlercore.DoubanComic.prototype.setAuthorsList = function(value) {
return jspb.Message.setField(this, 3, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.jarviscrawlercore.DoubanComic} returns this
*/
proto.jarviscrawlercore.DoubanComic.prototype.addAuthors = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.jarviscrawlercore.DoubanComic} returns this
*/
proto.jarviscrawlercore.DoubanComic.prototype.clearAuthorsList = function() {
return this.setAuthorsList([]);
};
/**
* optional float score = 4;
* @return {number}
*/
proto.jarviscrawlercore.DoubanComic.prototype.getScore = function() {
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
};
/**
* @param {number} value
* @return {!proto.jarviscrawlercore.DoubanComic} returns this
*/
proto.jarviscrawlercore.DoubanComic.prototype.setScore = function(value) {
return jspb.Message.setProto3FloatField(this, 4, value);
};
/**
* optional int32 ratingNums = 5;
* @return {number}
*/
proto.jarviscrawlercore.DoubanComic.prototype.getRatingnums = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
};
/**
* @param {number} value
* @return {!proto.jarviscrawlercore.DoubanComic} returns this
*/
proto.jarviscrawlercore.DoubanComic.prototype.setRatingnums = function(value) {
return jspb.Message.setProto3IntField(this, 5, value);
};
/**
* optional string intro = 6;
* @return {string}
*/
proto.jarviscrawlercore.DoubanComic.prototype.getIntro = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
};
/**
* @param {string} value
* @return {!proto.jarviscrawlercore.DoubanComic} returns this
*/
proto.jarviscrawlercore.DoubanComic.prototype.setIntro = function(value) {
return jspb.Message.setProto3StringField(this, 6, value);
};
/**
* repeated string tags = 7;
* @return {!Array<string>}
*/
proto.jarviscrawlercore.DoubanComic.prototype.getTagsList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 7));
};
/**
* @param {!Array<string>} value
* @return {!proto.jarviscrawlercore.DoubanComic} returns this
*/
proto.jarviscrawlercore.DoubanComic.prototype.setTagsList = function(value) {
return jspb.Message.setField(this, 7, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.jarviscrawlercore.DoubanComic} returns this
*/
proto.jarviscrawlercore.DoubanComic.prototype.addTags = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 7, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.jarviscrawlercore.DoubanComic} returns this
*/
proto.jarviscrawlercore.DoubanComic.prototype.clearTagsList = function() {
return this.setTagsList([]);
};
/**
* optional int64 lastUpdatedTime = 8;
* @return {number}
*/
proto.jarviscrawlercore.DoubanComic.prototype.getLastupdatedtime = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
};
/**
* @param {number} value
* @return {!proto.jarviscrawlercore.DoubanComic} returns this
*/
proto.jarviscrawlercore.DoubanComic.prototype.setLastupdatedtime = function(value) {
return jspb.Message.setProto3IntField(this, 8, value);
};
/**
* repeated DoubanBook books = 9;
* @return {!Array<!proto.jarviscrawlercore.DoubanBook>}
*/
proto.jarviscrawlercore.DoubanComic.prototype.getBooksList = function() {
return /** @type{!Array<!proto.jarviscrawlercore.DoubanBook>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.jarviscrawlercore.DoubanBook, 9));
};
/**
* @param {!Array<!proto.jarviscrawlercore.DoubanBook>} value
* @return {!proto.jarviscrawlercore.DoubanComic} returns this
*/
proto.jarviscrawlercore.DoubanComic.prototype.setBooksList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 9, value);
};
/**
* @param {!proto.jarviscrawlercore.DoubanBook=} opt_value
* @param {number=} opt_index
* @return {!proto.jarviscrawlercore.DoubanBook}
*/
proto.jarviscrawlercore.DoubanComic.prototype.addBooks = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.jarviscrawlercore.DoubanBook, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.jarviscrawlercore.DoubanComic} returns this
*/
proto.jarviscrawlercore.DoubanComic.prototype.clearBooksList = function() {
return this.setBooksList([]);
};
/**
* repeated DoubanSubject lstLink = 10;
* @return {!Array<!proto.jarviscrawlercore.DoubanSubject>}
*/
proto.jarviscrawlercore.DoubanComic.prototype.getLstlinkList = function() {
return /** @type{!Array<!proto.jarviscrawlercore.DoubanSubject>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.jarviscrawlercore.DoubanSubject, 10));
};
/**
* @param {!Array<!proto.jarviscrawlercore.DoubanSubject>} value
* @return {!proto.jarviscrawlercore.DoubanComic} returns this
*/
proto.jarviscrawlercore.DoubanComic.prototype.setLstlinkList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 10, value);
};
/**
* @param {!proto.jarviscrawlercore.DoubanSubject=} opt_value
* @param {number=} opt_index
* @return {!proto.jarviscrawlercore.DoubanSubject}
*/
proto.jarviscrawlercore.DoubanComic.prototype.addLstlink = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 10, opt_value, proto.jarviscrawlercore.DoubanSubject, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.jarviscrawlercore.DoubanComic} returns this
*/
proto.jarviscrawlercore.DoubanComic.prototype.clearLstlinkList = function() {
return this.setLstlinkList([]);
};
/**
* repeated string linkComics = 11;
* @return {!Array<string>}
*/
proto.jarviscrawlercore.DoubanComic.prototype.getLinkcomicsList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 11));
};
/**
* @param {!Array<string>} value
* @return {!proto.jarviscrawlercore.DoubanComic} returns this
*/
proto.jarviscrawlercore.DoubanComic.prototype.setLinkcomicsList = function(value) {
return jspb.Message.setField(this, 11, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.jarviscrawlercore.DoubanComic} returns this
*/
proto.jarviscrawlercore.DoubanComic.prototype.addLinkcomics = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 11, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.jarviscrawlercore.DoubanComic} returns this
*/
proto.jarviscrawlercore.DoubanComic.prototype.clearLinkcomicsList = function() {
return this.setLinkcomicsList([]);
};
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-par