2019-05-11 04:06:16 +00:00
|
|
|
/**
|
|
|
|
* @fileoverview
|
|
|
|
* @enhanceable
|
|
|
|
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
|
|
* field starts with 'MSG_' and isn't a translatable message.
|
|
|
|
* @public
|
|
|
|
*/
|
|
|
|
// GENERATED CODE -- DO NOT EDIT!
|
|
|
|
|
|
|
|
var jspb = require('google-protobuf');
|
|
|
|
var goog = jspb;
|
|
|
|
var global = Function('return this')();
|
|
|
|
|
|
|
|
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
|
|
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
2019-05-12 06:03:01 +00:00
|
|
|
goog.exportSymbol('proto.oddscrawler.v1.cdp.NavigateReply', null, global);
|
|
|
|
goog.exportSymbol('proto.oddscrawler.v1.cdp.NavigateRequest', null, global);
|
|
|
|
goog.exportSymbol('proto.oddscrawler.v1.cdp.TransitionType', null, global);
|
2019-05-11 04:06:16 +00:00
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
*/
|
2019-05-12 06:03:01 +00:00
|
|
|
proto.oddscrawler.v1.cdp.NavigateRequest = function(opt_data) {
|
2019-05-11 04:06:16 +00:00
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
|
|
};
|
2019-05-12 06:03:01 +00:00
|
|
|
goog.inherits(proto.oddscrawler.v1.cdp.NavigateRequest, jspb.Message);
|
2019-05-11 04:06:16 +00:00
|
|
|
if (goog.DEBUG && !COMPILED) {
|
|
|
|
/**
|
|
|
|
* @public
|
|
|
|
* @override
|
|
|
|
*/
|
2019-05-12 06:03:01 +00:00
|
|
|
proto.oddscrawler.v1.cdp.NavigateRequest.displayName = 'proto.oddscrawler.v1.cdp.NavigateRequest';
|
2019-05-11 04:06:16 +00:00
|
|
|
}
|
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
*/
|
2019-05-12 06:03:01 +00:00
|
|
|
proto.oddscrawler.v1.cdp.NavigateReply = function(opt_data) {
|
2019-05-11 04:06:16 +00:00
|
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
|
|
};
|
2019-05-12 06:03:01 +00:00
|
|
|
goog.inherits(proto.oddscrawler.v1.cdp.NavigateReply, jspb.Message);
|
2019-05-11 04:06:16 +00:00
|
|
|
if (goog.DEBUG && !COMPILED) {
|
|
|
|
/**
|
|
|
|
* @public
|
|
|
|
* @override
|
|
|
|
*/
|
2019-05-12 06:03:01 +00:00
|
|
|
proto.oddscrawler.v1.cdp.NavigateReply.displayName = 'proto.oddscrawler.v1.cdp.NavigateReply';
|
2019-05-11 04:06:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
/**
|
|
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
* For the list of reserved names please see:
|
|
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
|
|
* @return {!Object}
|
|
|
|
*/
|
2019-05-12 06:03:01 +00:00
|
|
|
proto.oddscrawler.v1.cdp.NavigateRequest.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.oddscrawler.v1.cdp.NavigateRequest.toObject(opt_includeInstance, this);
|
2019-05-11 04:06:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Static version of the {@see toObject} method.
|
|
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
|
|
* instance for transitional soy proto support:
|
|
|
|
* http://goto/soy-param-migration
|
2019-05-12 06:03:01 +00:00
|
|
|
* @param {!proto.oddscrawler.v1.cdp.NavigateRequest} msg The msg instance to transform.
|
2019-05-11 04:06:16 +00:00
|
|
|
* @return {!Object}
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
2019-05-12 06:03:01 +00:00
|
|
|
proto.oddscrawler.v1.cdp.NavigateRequest.toObject = function(includeInstance, msg) {
|
2019-05-11 04:06:16 +00:00
|
|
|
var f, obj = {
|
2019-05-11 05:11:33 +00:00
|
|
|
api: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
|
|
url: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
|
|
referrer: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
|
|
transitiontype: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
|
|
frameid: jspb.Message.getFieldWithDefault(msg, 5, "")
|
2019-05-11 04:06:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
if (includeInstance) {
|
|
|
|
obj.$jspbMessageInstance = msg;
|
|
|
|
}
|
|
|
|
return obj;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format).
|
|
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2019-05-12 06:03:01 +00:00
|
|
|
* @return {!proto.oddscrawler.v1.cdp.NavigateRequest}
|
2019-05-11 04:06:16 +00:00
|
|
|
*/
|
2019-05-12 06:03:01 +00:00
|
|
|
proto.oddscrawler.v1.cdp.NavigateRequest.deserializeBinary = function(bytes) {
|
2019-05-11 04:06:16 +00:00
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
2019-05-12 06:03:01 +00:00
|
|
|
var msg = new proto.oddscrawler.v1.cdp.NavigateRequest;
|
|
|
|
return proto.oddscrawler.v1.cdp.NavigateRequest.deserializeBinaryFromReader(msg, reader);
|
2019-05-11 04:06:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
|
* given reader into the given message object.
|
2019-05-12 06:03:01 +00:00
|
|
|
* @param {!proto.oddscrawler.v1.cdp.NavigateRequest} msg The message object to deserialize into.
|
2019-05-11 04:06:16 +00:00
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2019-05-12 06:03:01 +00:00
|
|
|
* @return {!proto.oddscrawler.v1.cdp.NavigateRequest}
|
2019-05-11 04:06:16 +00:00
|
|
|
*/
|
2019-05-12 06:03:01 +00:00
|
|
|
proto.oddscrawler.v1.cdp.NavigateRequest.deserializeBinaryFromReader = function(msg, reader) {
|
2019-05-11 04:06:16 +00:00
|
|
|
while (reader.nextField()) {
|
|
|
|
if (reader.isEndGroup()) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
var field = reader.getFieldNumber();
|
|
|
|
switch (field) {
|
|
|
|
case 1:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
2019-05-11 05:11:33 +00:00
|
|
|
msg.setApi(value);
|
2019-05-11 04:06:16 +00:00
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
2019-05-11 05:11:33 +00:00
|
|
|
msg.setUrl(value);
|
2019-05-11 04:06:16 +00:00
|
|
|
break;
|
|
|
|
case 3:
|
2019-05-11 05:11:33 +00:00
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.setReferrer(value);
|
|
|
|
break;
|
|
|
|
case 4:
|
2019-05-12 06:03:01 +00:00
|
|
|
var value = /** @type {!proto.oddscrawler.v1.cdp.TransitionType} */ (reader.readEnum());
|
2019-05-11 04:06:16 +00:00
|
|
|
msg.setTransitiontype(value);
|
|
|
|
break;
|
2019-05-11 05:11:33 +00:00
|
|
|
case 5:
|
2019-05-11 04:06:16 +00:00
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.setFrameid(value);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
reader.skipField();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return msg;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
|
|
* @return {!Uint8Array}
|
|
|
|
*/
|
2019-05-12 06:03:01 +00:00
|
|
|
proto.oddscrawler.v1.cdp.NavigateRequest.prototype.serializeBinary = function() {
|
2019-05-11 04:06:16 +00:00
|
|
|
var writer = new jspb.BinaryWriter();
|
2019-05-12 06:03:01 +00:00
|
|
|
proto.oddscrawler.v1.cdp.NavigateRequest.serializeBinaryToWriter(this, writer);
|
2019-05-11 04:06:16 +00:00
|
|
|
return writer.getResultBuffer();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
|
* format), writing to the given BinaryWriter.
|
2019-05-12 06:03:01 +00:00
|
|
|
* @param {!proto.oddscrawler.v1.cdp.NavigateRequest} message
|
2019-05-11 04:06:16 +00:00
|
|
|
* @param {!jspb.BinaryWriter} writer
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
2019-05-12 06:03:01 +00:00
|
|
|
proto.oddscrawler.v1.cdp.NavigateRequest.serializeBinaryToWriter = function(message, writer) {
|
2019-05-11 04:06:16 +00:00
|
|
|
var f = undefined;
|
2019-05-11 05:11:33 +00:00
|
|
|
f = message.getApi();
|
2019-05-11 04:06:16 +00:00
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
1,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
2019-05-11 05:11:33 +00:00
|
|
|
f = message.getUrl();
|
2019-05-11 04:06:16 +00:00
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
2,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
2019-05-11 05:11:33 +00:00
|
|
|
f = message.getReferrer();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
3,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
2019-05-11 04:06:16 +00:00
|
|
|
f = message.getTransitiontype();
|
|
|
|
if (f !== 0.0) {
|
|
|
|
writer.writeEnum(
|
2019-05-11 05:11:33 +00:00
|
|
|
4,
|
2019-05-11 04:06:16 +00:00
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
f = message.getFrameid();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
2019-05-11 05:11:33 +00:00
|
|
|
5,
|
2019-05-11 04:06:16 +00:00
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2019-05-11 05:11:33 +00:00
|
|
|
* optional string api = 1;
|
2019-05-11 04:06:16 +00:00
|
|
|
* @return {string}
|
|
|
|
*/
|
2019-05-12 06:03:01 +00:00
|
|
|
proto.oddscrawler.v1.cdp.NavigateRequest.prototype.getApi = function() {
|
2019-05-11 04:06:16 +00:00
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/** @param {string} value */
|
2019-05-12 06:03:01 +00:00
|
|
|
proto.oddscrawler.v1.cdp.NavigateRequest.prototype.setApi = function(value) {
|
2019-05-11 04:06:16 +00:00
|
|
|
jspb.Message.setProto3StringField(this, 1, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2019-05-11 05:11:33 +00:00
|
|
|
* optional string url = 2;
|
2019-05-11 04:06:16 +00:00
|
|
|
* @return {string}
|
|
|
|
*/
|
2019-05-12 06:03:01 +00:00
|
|
|
proto.oddscrawler.v1.cdp.NavigateRequest.prototype.getUrl = function() {
|
2019-05-11 04:06:16 +00:00
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/** @param {string} value */
|
2019-05-12 06:03:01 +00:00
|
|
|
proto.oddscrawler.v1.cdp.NavigateRequest.prototype.setUrl = function(value) {
|
2019-05-11 04:06:16 +00:00
|
|
|
jspb.Message.setProto3StringField(this, 2, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2019-05-11 05:11:33 +00:00
|
|
|
* optional string referrer = 3;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
2019-05-12 06:03:01 +00:00
|
|
|
proto.oddscrawler.v1.cdp.NavigateRequest.prototype.getReferrer = function() {
|
2019-05-11 05:11:33 +00:00
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/** @param {string} value */
|
2019-05-12 06:03:01 +00:00
|
|
|
proto.oddscrawler.v1.cdp.NavigateRequest.prototype.setReferrer = function(value) {
|
2019-05-11 05:11:33 +00:00
|
|
|
jspb.Message.setProto3StringField(this, 3, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* optional TransitionType transitionType = 4;
|
2019-05-12 06:03:01 +00:00
|
|
|
* @return {!proto.oddscrawler.v1.cdp.TransitionType}
|
2019-05-11 04:06:16 +00:00
|
|
|
*/
|
2019-05-12 06:03:01 +00:00
|
|
|
proto.oddscrawler.v1.cdp.NavigateRequest.prototype.getTransitiontype = function() {
|
|
|
|
return /** @type {!proto.oddscrawler.v1.cdp.TransitionType} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
2019-05-11 04:06:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2019-05-12 06:03:01 +00:00
|
|
|
/** @param {!proto.oddscrawler.v1.cdp.TransitionType} value */
|
|
|
|
proto.oddscrawler.v1.cdp.NavigateRequest.prototype.setTransitiontype = function(value) {
|
2019-05-11 05:11:33 +00:00
|
|
|
jspb.Message.setProto3EnumField(this, 4, value);
|
2019-05-11 04:06:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2019-05-11 09:24:39 +00:00
|
|
|
* optional string frameID = 5;
|
2019-05-11 04:06:16 +00:00
|
|
|
* @return {string}
|
|
|
|
*/
|
2019-05-12 06:03:01 +00:00
|
|
|
proto.oddscrawler.v1.cdp.NavigateRequest.prototype.getFrameid = function() {
|
2019-05-11 05:11:33 +00:00
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
2019-05-11 04:06:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/** @param {string} value */
|
2019-05-12 06:03:01 +00:00
|
|
|
proto.oddscrawler.v1.cdp.NavigateRequest.prototype.setFrameid = function(value) {
|
2019-05-11 05:11:33 +00:00
|
|
|
jspb.Message.setProto3StringField(this, 5, value);
|
2019-05-11 04:06:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
|
/**
|
|
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
|
|
* For the list of reserved names please see:
|
|
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
|
|
* @return {!Object}
|
|
|
|
*/
|
2019-05-12 06:03:01 +00:00
|
|
|
proto.oddscrawler.v1.cdp.NavigateReply.prototype.toObject = function(opt_includeInstance) {
|
|
|
|
return proto.oddscrawler.v1.cdp.NavigateReply.toObject(opt_includeInstance, this);
|
2019-05-11 04:06:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Static version of the {@see toObject} method.
|
|
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
|
|
* instance for transitional soy proto support:
|
|
|
|
* http://goto/soy-param-migration
|
2019-05-12 06:03:01 +00:00
|
|
|
* @param {!proto.oddscrawler.v1.cdp.NavigateReply} msg The msg instance to transform.
|
2019-05-11 04:06:16 +00:00
|
|
|
* @return {!Object}
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
2019-05-12 06:03:01 +00:00
|
|
|
proto.oddscrawler.v1.cdp.NavigateReply.toObject = function(includeInstance, msg) {
|
2019-05-11 04:06:16 +00:00
|
|
|
var f, obj = {
|
2019-05-11 05:11:33 +00:00
|
|
|
api: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
|
|
frameid: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
|
|
loaderid: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
|
|
errortext: jspb.Message.getFieldWithDefault(msg, 4, "")
|
2019-05-11 04:06:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
if (includeInstance) {
|
|
|
|
obj.$jspbMessageInstance = msg;
|
|
|
|
}
|
|
|
|
return obj;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format).
|
|
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2019-05-12 06:03:01 +00:00
|
|
|
* @return {!proto.oddscrawler.v1.cdp.NavigateReply}
|
2019-05-11 04:06:16 +00:00
|
|
|
*/
|
2019-05-12 06:03:01 +00:00
|
|
|
proto.oddscrawler.v1.cdp.NavigateReply.deserializeBinary = function(bytes) {
|
2019-05-11 04:06:16 +00:00
|
|
|
var reader = new jspb.BinaryReader(bytes);
|
2019-05-12 06:03:01 +00:00
|
|
|
var msg = new proto.oddscrawler.v1.cdp.NavigateReply;
|
|
|
|
return proto.oddscrawler.v1.cdp.NavigateReply.deserializeBinaryFromReader(msg, reader);
|
2019-05-11 04:06:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
|
|
* given reader into the given message object.
|
2019-05-12 06:03:01 +00:00
|
|
|
* @param {!proto.oddscrawler.v1.cdp.NavigateReply} msg The message object to deserialize into.
|
2019-05-11 04:06:16 +00:00
|
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2019-05-12 06:03:01 +00:00
|
|
|
* @return {!proto.oddscrawler.v1.cdp.NavigateReply}
|
2019-05-11 04:06:16 +00:00
|
|
|
*/
|
2019-05-12 06:03:01 +00:00
|
|
|
proto.oddscrawler.v1.cdp.NavigateReply.deserializeBinaryFromReader = function(msg, reader) {
|
2019-05-11 04:06:16 +00:00
|
|
|
while (reader.nextField()) {
|
|
|
|
if (reader.isEndGroup()) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
var field = reader.getFieldNumber();
|
|
|
|
switch (field) {
|
|
|
|
case 1:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
2019-05-11 05:11:33 +00:00
|
|
|
msg.setApi(value);
|
2019-05-11 04:06:16 +00:00
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
var value = /** @type {string} */ (reader.readString());
|
2019-05-11 05:11:33 +00:00
|
|
|
msg.setFrameid(value);
|
2019-05-11 04:06:16 +00:00
|
|
|
break;
|
|
|
|
case 3:
|
2019-05-11 05:11:33 +00:00
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.setLoaderid(value);
|
|
|
|
break;
|
|
|
|
case 4:
|
2019-05-11 04:06:16 +00:00
|
|
|
var value = /** @type {string} */ (reader.readString());
|
|
|
|
msg.setErrortext(value);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
reader.skipField();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return msg;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
|
|
* @return {!Uint8Array}
|
|
|
|
*/
|
2019-05-12 06:03:01 +00:00
|
|
|
proto.oddscrawler.v1.cdp.NavigateReply.prototype.serializeBinary = function() {
|
2019-05-11 04:06:16 +00:00
|
|
|
var writer = new jspb.BinaryWriter();
|
2019-05-12 06:03:01 +00:00
|
|
|
proto.oddscrawler.v1.cdp.NavigateReply.serializeBinaryToWriter(this, writer);
|
2019-05-11 04:06:16 +00:00
|
|
|
return writer.getResultBuffer();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
|
|
* format), writing to the given BinaryWriter.
|
2019-05-12 06:03:01 +00:00
|
|
|
* @param {!proto.oddscrawler.v1.cdp.NavigateReply} message
|
2019-05-11 04:06:16 +00:00
|
|
|
* @param {!jspb.BinaryWriter} writer
|
|
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
|
|
*/
|
2019-05-12 06:03:01 +00:00
|
|
|
proto.oddscrawler.v1.cdp.NavigateReply.serializeBinaryToWriter = function(message, writer) {
|
2019-05-11 04:06:16 +00:00
|
|
|
var f = undefined;
|
2019-05-11 05:11:33 +00:00
|
|
|
f = message.getApi();
|
2019-05-11 04:06:16 +00:00
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
1,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
2019-05-11 05:11:33 +00:00
|
|
|
f = message.getFrameid();
|
2019-05-11 04:06:16 +00:00
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
2,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
2019-05-11 05:11:33 +00:00
|
|
|
f = message.getLoaderid();
|
2019-05-11 04:06:16 +00:00
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
3,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
2019-05-11 05:11:33 +00:00
|
|
|
f = message.getErrortext();
|
|
|
|
if (f.length > 0) {
|
|
|
|
writer.writeString(
|
|
|
|
4,
|
|
|
|
f
|
|
|
|
);
|
|
|
|
}
|
2019-05-11 04:06:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2019-05-11 05:11:33 +00:00
|
|
|
* optional string api = 1;
|
2019-05-11 04:06:16 +00:00
|
|
|
* @return {string}
|
|
|
|
*/
|
2019-05-12 06:03:01 +00:00
|
|
|
proto.oddscrawler.v1.cdp.NavigateReply.prototype.getApi = function() {
|
2019-05-11 04:06:16 +00:00
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/** @param {string} value */
|
2019-05-12 06:03:01 +00:00
|
|
|
proto.oddscrawler.v1.cdp.NavigateReply.prototype.setApi = function(value) {
|
2019-05-11 04:06:16 +00:00
|
|
|
jspb.Message.setProto3StringField(this, 1, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2019-05-11 09:24:39 +00:00
|
|
|
* optional string frameID = 2;
|
2019-05-11 04:06:16 +00:00
|
|
|
* @return {string}
|
|
|
|
*/
|
2019-05-12 06:03:01 +00:00
|
|
|
proto.oddscrawler.v1.cdp.NavigateReply.prototype.getFrameid = function() {
|
2019-05-11 04:06:16 +00:00
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/** @param {string} value */
|
2019-05-12 06:03:01 +00:00
|
|
|
proto.oddscrawler.v1.cdp.NavigateReply.prototype.setFrameid = function(value) {
|
2019-05-11 04:06:16 +00:00
|
|
|
jspb.Message.setProto3StringField(this, 2, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2019-05-11 09:24:39 +00:00
|
|
|
* optional string loaderID = 3;
|
2019-05-11 04:06:16 +00:00
|
|
|
* @return {string}
|
|
|
|
*/
|
2019-05-12 06:03:01 +00:00
|
|
|
proto.oddscrawler.v1.cdp.NavigateReply.prototype.getLoaderid = function() {
|
2019-05-11 04:06:16 +00:00
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/** @param {string} value */
|
2019-05-12 06:03:01 +00:00
|
|
|
proto.oddscrawler.v1.cdp.NavigateReply.prototype.setLoaderid = function(value) {
|
2019-05-11 04:06:16 +00:00
|
|
|
jspb.Message.setProto3StringField(this, 3, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2019-05-11 05:11:33 +00:00
|
|
|
/**
|
|
|
|
* optional string errorText = 4;
|
|
|
|
* @return {string}
|
|
|
|
*/
|
2019-05-12 06:03:01 +00:00
|
|
|
proto.oddscrawler.v1.cdp.NavigateReply.prototype.getErrortext = function() {
|
2019-05-11 05:11:33 +00:00
|
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/** @param {string} value */
|
2019-05-12 06:03:01 +00:00
|
|
|
proto.oddscrawler.v1.cdp.NavigateReply.prototype.setErrortext = function(value) {
|
2019-05-11 05:11:33 +00:00
|
|
|
jspb.Message.setProto3StringField(this, 4, value);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2019-05-11 04:06:16 +00:00
|
|
|
/**
|
|
|
|
* @enum {number}
|
|
|
|
*/
|
2019-05-12 06:03:01 +00:00
|
|
|
proto.oddscrawler.v1.cdp.TransitionType = {
|
2019-05-11 04:06:16 +00:00
|
|
|
LINK: 0,
|
|
|
|
TYPED: 1,
|
|
|
|
ADDRESS_BAR: 2,
|
|
|
|
AUTO_BOOKMARK: 3,
|
|
|
|
AUTO_SUBFRAME: 4,
|
|
|
|
MANUAL_SUBFRAME: 5,
|
|
|
|
GENERATED: 6,
|
|
|
|
AUTO_TOPLEVEL: 7,
|
|
|
|
FORM_SUBMIT: 8,
|
|
|
|
RELOAD: 9,
|
|
|
|
KEYWORD: 10,
|
|
|
|
KEYWORD_GENERATED: 11,
|
|
|
|
OTHER: 12
|
|
|
|
};
|
|
|
|
|
2019-05-12 06:03:01 +00:00
|
|
|
goog.object.extend(exports, proto.oddscrawler.v1.cdp);
|