gauge-ts
Version:
Typescript runner for Gauge
1,502 lines (1,353 loc) • 278 kB
JavaScript
// source: spec.proto
/**
* @fileoverview
* @enhanceable
* @suppress {missingRequire} reports error on implicit type usages.
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck
var jspb = require('google-protobuf');
var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
goog.exportSymbol('proto.gauge.messages.Error', null, global);
goog.exportSymbol('proto.gauge.messages.Error.ErrorType', null, global);
goog.exportSymbol('proto.gauge.messages.ExecutionStatus', null, global);
goog.exportSymbol('proto.gauge.messages.Fragment', null, global);
goog.exportSymbol('proto.gauge.messages.Fragment.FragmentType', null, global);
goog.exportSymbol('proto.gauge.messages.Parameter', null, global);
goog.exportSymbol('proto.gauge.messages.Parameter.ParameterType', null, global);
goog.exportSymbol('proto.gauge.messages.ProtoComment', null, global);
goog.exportSymbol('proto.gauge.messages.ProtoConcept', null, global);
goog.exportSymbol('proto.gauge.messages.ProtoExecutionResult', null, global);
goog.exportSymbol('proto.gauge.messages.ProtoExecutionResult.ErrorType', null, global);
goog.exportSymbol('proto.gauge.messages.ProtoHookFailure', null, global);
goog.exportSymbol('proto.gauge.messages.ProtoItem', null, global);
goog.exportSymbol('proto.gauge.messages.ProtoItem.ItemType', null, global);
goog.exportSymbol('proto.gauge.messages.ProtoScenario', null, global);
goog.exportSymbol('proto.gauge.messages.ProtoScenarioResult', null, global);
goog.exportSymbol('proto.gauge.messages.ProtoSpec', null, global);
goog.exportSymbol('proto.gauge.messages.ProtoSpecResult', null, global);
goog.exportSymbol('proto.gauge.messages.ProtoStep', null, global);
goog.exportSymbol('proto.gauge.messages.ProtoStepExecutionResult', null, global);
goog.exportSymbol('proto.gauge.messages.ProtoStepResult', null, global);
goog.exportSymbol('proto.gauge.messages.ProtoStepValue', null, global);
goog.exportSymbol('proto.gauge.messages.ProtoSuiteResult', null, global);
goog.exportSymbol('proto.gauge.messages.ProtoTable', null, global);
goog.exportSymbol('proto.gauge.messages.ProtoTableDrivenScenario', null, global);
goog.exportSymbol('proto.gauge.messages.ProtoTableRow', null, global);
goog.exportSymbol('proto.gauge.messages.ProtoTags', null, global);
goog.exportSymbol('proto.gauge.messages.Span', 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.gauge.messages.ProtoSpec = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.ProtoSpec.repeatedFields_, null);
};
goog.inherits(proto.gauge.messages.ProtoSpec, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.gauge.messages.ProtoSpec.displayName = 'proto.gauge.messages.ProtoSpec';
}
/**
* 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.gauge.messages.ProtoItem = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.gauge.messages.ProtoItem, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.gauge.messages.ProtoItem.displayName = 'proto.gauge.messages.ProtoItem';
}
/**
* 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.gauge.messages.ProtoScenario = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.ProtoScenario.repeatedFields_, null);
};
goog.inherits(proto.gauge.messages.ProtoScenario, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.gauge.messages.ProtoScenario.displayName = 'proto.gauge.messages.ProtoScenario';
}
/**
* 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.gauge.messages.Span = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.gauge.messages.Span, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.gauge.messages.Span.displayName = 'proto.gauge.messages.Span';
}
/**
* 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.gauge.messages.ProtoTableDrivenScenario = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.gauge.messages.ProtoTableDrivenScenario, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.gauge.messages.ProtoTableDrivenScenario.displayName = 'proto.gauge.messages.ProtoTableDrivenScenario';
}
/**
* 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.gauge.messages.ProtoStep = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.ProtoStep.repeatedFields_, null);
};
goog.inherits(proto.gauge.messages.ProtoStep, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.gauge.messages.ProtoStep.displayName = 'proto.gauge.messages.ProtoStep';
}
/**
* 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.gauge.messages.ProtoConcept = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.ProtoConcept.repeatedFields_, null);
};
goog.inherits(proto.gauge.messages.ProtoConcept, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.gauge.messages.ProtoConcept.displayName = 'proto.gauge.messages.ProtoConcept';
}
/**
* 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.gauge.messages.ProtoTags = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.ProtoTags.repeatedFields_, null);
};
goog.inherits(proto.gauge.messages.ProtoTags, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.gauge.messages.ProtoTags.displayName = 'proto.gauge.messages.ProtoTags';
}
/**
* 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.gauge.messages.Fragment = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.gauge.messages.Fragment, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.gauge.messages.Fragment.displayName = 'proto.gauge.messages.Fragment';
}
/**
* 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.gauge.messages.Parameter = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.gauge.messages.Parameter, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.gauge.messages.Parameter.displayName = 'proto.gauge.messages.Parameter';
}
/**
* 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.gauge.messages.ProtoComment = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.gauge.messages.ProtoComment, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.gauge.messages.ProtoComment.displayName = 'proto.gauge.messages.ProtoComment';
}
/**
* 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.gauge.messages.ProtoTable = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.ProtoTable.repeatedFields_, null);
};
goog.inherits(proto.gauge.messages.ProtoTable, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.gauge.messages.ProtoTable.displayName = 'proto.gauge.messages.ProtoTable';
}
/**
* 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.gauge.messages.ProtoTableRow = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.ProtoTableRow.repeatedFields_, null);
};
goog.inherits(proto.gauge.messages.ProtoTableRow, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.gauge.messages.ProtoTableRow.displayName = 'proto.gauge.messages.ProtoTableRow';
}
/**
* 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.gauge.messages.ProtoStepExecutionResult = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.gauge.messages.ProtoStepExecutionResult, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.gauge.messages.ProtoStepExecutionResult.displayName = 'proto.gauge.messages.ProtoStepExecutionResult';
}
/**
* 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.gauge.messages.ProtoExecutionResult = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.ProtoExecutionResult.repeatedFields_, null);
};
goog.inherits(proto.gauge.messages.ProtoExecutionResult, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.gauge.messages.ProtoExecutionResult.displayName = 'proto.gauge.messages.ProtoExecutionResult';
}
/**
* 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.gauge.messages.ProtoHookFailure = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.gauge.messages.ProtoHookFailure, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.gauge.messages.ProtoHookFailure.displayName = 'proto.gauge.messages.ProtoHookFailure';
}
/**
* 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.gauge.messages.ProtoSuiteResult = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.ProtoSuiteResult.repeatedFields_, null);
};
goog.inherits(proto.gauge.messages.ProtoSuiteResult, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.gauge.messages.ProtoSuiteResult.displayName = 'proto.gauge.messages.ProtoSuiteResult';
}
/**
* 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.gauge.messages.ProtoSpecResult = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.ProtoSpecResult.repeatedFields_, null);
};
goog.inherits(proto.gauge.messages.ProtoSpecResult, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.gauge.messages.ProtoSpecResult.displayName = 'proto.gauge.messages.ProtoSpecResult';
}
/**
* 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.gauge.messages.ProtoScenarioResult = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.gauge.messages.ProtoScenarioResult, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.gauge.messages.ProtoScenarioResult.displayName = 'proto.gauge.messages.ProtoScenarioResult';
}
/**
* 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.gauge.messages.ProtoStepResult = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.gauge.messages.ProtoStepResult, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.gauge.messages.ProtoStepResult.displayName = 'proto.gauge.messages.ProtoStepResult';
}
/**
* 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.gauge.messages.Error = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.gauge.messages.Error, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.gauge.messages.Error.displayName = 'proto.gauge.messages.Error';
}
/**
* 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.gauge.messages.ProtoStepValue = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.gauge.messages.ProtoStepValue.repeatedFields_, null);
};
goog.inherits(proto.gauge.messages.ProtoStepValue, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.gauge.messages.ProtoStepValue.displayName = 'proto.gauge.messages.ProtoStepValue';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.gauge.messages.ProtoSpec.repeatedFields_ = [2,4,5,7,8,9,10,11,12,13,15,16];
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.gauge.messages.ProtoSpec.prototype.toObject = function(opt_includeInstance) {
return proto.gauge.messages.ProtoSpec.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.gauge.messages.ProtoSpec} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.gauge.messages.ProtoSpec.toObject = function(includeInstance, msg) {
var f, obj = {
specheading: jspb.Message.getFieldWithDefault(msg, 1, ""),
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
proto.gauge.messages.ProtoItem.toObject, includeInstance),
istabledriven: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
prehookfailuresList: jspb.Message.toObjectList(msg.getPrehookfailuresList(),
proto.gauge.messages.ProtoHookFailure.toObject, includeInstance),
posthookfailuresList: jspb.Message.toObjectList(msg.getPosthookfailuresList(),
proto.gauge.messages.ProtoHookFailure.toObject, includeInstance),
filename: jspb.Message.getFieldWithDefault(msg, 6, ""),
tagsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
prehookmessagesList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f,
posthookmessagesList: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f,
prehookmessageList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f,
posthookmessageList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f,
prehookscreenshotsList: msg.getPrehookscreenshotsList_asB64(),
posthookscreenshotsList: msg.getPosthookscreenshotsList_asB64(),
itemcount: jspb.Message.getFieldWithDefault(msg, 14, 0),
prehookscreenshotfilesList: (f = jspb.Message.getRepeatedField(msg, 15)) == null ? undefined : f,
posthookscreenshotfilesList: (f = jspb.Message.getRepeatedField(msg, 16)) == 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.gauge.messages.ProtoSpec}
*/
proto.gauge.messages.ProtoSpec.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.gauge.messages.ProtoSpec;
return proto.gauge.messages.ProtoSpec.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.gauge.messages.ProtoSpec} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.gauge.messages.ProtoSpec}
*/
proto.gauge.messages.ProtoSpec.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.setSpecheading(value);
break;
case 2:
var value = new proto.gauge.messages.ProtoItem;
reader.readMessage(value,proto.gauge.messages.ProtoItem.deserializeBinaryFromReader);
msg.addItems(value);
break;
case 3:
var value = /** @type {boolean} */ (reader.readBool());
msg.setIstabledriven(value);
break;
case 4:
var value = new proto.gauge.messages.ProtoHookFailure;
reader.readMessage(value,proto.gauge.messages.ProtoHookFailure.deserializeBinaryFromReader);
msg.addPrehookfailures(value);
break;
case 5:
var value = new proto.gauge.messages.ProtoHookFailure;
reader.readMessage(value,proto.gauge.messages.ProtoHookFailure.deserializeBinaryFromReader);
msg.addPosthookfailures(value);
break;
case 6:
var value = /** @type {string} */ (reader.readString());
msg.setFilename(value);
break;
case 7:
var value = /** @type {string} */ (reader.readString());
msg.addTags(value);
break;
case 8:
var value = /** @type {string} */ (reader.readString());
msg.addPrehookmessages(value);
break;
case 9:
var value = /** @type {string} */ (reader.readString());
msg.addPosthookmessages(value);
break;
case 10:
var value = /** @type {string} */ (reader.readString());
msg.addPrehookmessage(value);
break;
case 11:
var value = /** @type {string} */ (reader.readString());
msg.addPosthookmessage(value);
break;
case 12:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.addPrehookscreenshots(value);
break;
case 13:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.addPosthookscreenshots(value);
break;
case 14:
var value = /** @type {number} */ (reader.readInt64());
msg.setItemcount(value);
break;
case 15:
var value = /** @type {string} */ (reader.readString());
msg.addPrehookscreenshotfiles(value);
break;
case 16:
var value = /** @type {string} */ (reader.readString());
msg.addPosthookscreenshotfiles(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.gauge.messages.ProtoSpec.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.gauge.messages.ProtoSpec.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.gauge.messages.ProtoSpec} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.gauge.messages.ProtoSpec.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getSpecheading();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getItemsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
2,
f,
proto.gauge.messages.ProtoItem.serializeBinaryToWriter
);
}
f = message.getIstabledriven();
if (f) {
writer.writeBool(
3,
f
);
}
f = message.getPrehookfailuresList();
if (f.length > 0) {
writer.writeRepeatedMessage(
4,
f,
proto.gauge.messages.ProtoHookFailure.serializeBinaryToWriter
);
}
f = message.getPosthookfailuresList();
if (f.length > 0) {
writer.writeRepeatedMessage(
5,
f,
proto.gauge.messages.ProtoHookFailure.serializeBinaryToWriter
);
}
f = message.getFilename();
if (f.length > 0) {
writer.writeString(
6,
f
);
}
f = message.getTagsList();
if (f.length > 0) {
writer.writeRepeatedString(
7,
f
);
}
f = message.getPrehookmessagesList();
if (f.length > 0) {
writer.writeRepeatedString(
8,
f
);
}
f = message.getPosthookmessagesList();
if (f.length > 0) {
writer.writeRepeatedString(
9,
f
);
}
f = message.getPrehookmessageList();
if (f.length > 0) {
writer.writeRepeatedString(
10,
f
);
}
f = message.getPosthookmessageList();
if (f.length > 0) {
writer.writeRepeatedString(
11,
f
);
}
f = message.getPrehookscreenshotsList_asU8();
if (f.length > 0) {
writer.writeRepeatedBytes(
12,
f
);
}
f = message.getPosthookscreenshotsList_asU8();
if (f.length > 0) {
writer.writeRepeatedBytes(
13,
f
);
}
f = message.getItemcount();
if (f !== 0) {
writer.writeInt64(
14,
f
);
}
f = message.getPrehookscreenshotfilesList();
if (f.length > 0) {
writer.writeRepeatedString(
15,
f
);
}
f = message.getPosthookscreenshotfilesList();
if (f.length > 0) {
writer.writeRepeatedString(
16,
f
);
}
};
/**
* optional string specHeading = 1;
* @return {string}
*/
proto.gauge.messages.ProtoSpec.prototype.getSpecheading = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.gauge.messages.ProtoSpec} returns this
*/
proto.gauge.messages.ProtoSpec.prototype.setSpecheading = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* repeated ProtoItem items = 2;
* @return {!Array<!proto.gauge.messages.ProtoItem>}
*/
proto.gauge.messages.ProtoSpec.prototype.getItemsList = function() {
return /** @type{!Array<!proto.gauge.messages.ProtoItem>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.gauge.messages.ProtoItem, 2));
};
/**
* @param {!Array<!proto.gauge.messages.ProtoItem>} value
* @return {!proto.gauge.messages.ProtoSpec} returns this
*/
proto.gauge.messages.ProtoSpec.prototype.setItemsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 2, value);
};
/**
* @param {!proto.gauge.messages.ProtoItem=} opt_value
* @param {number=} opt_index
* @return {!proto.gauge.messages.ProtoItem}
*/
proto.gauge.messages.ProtoSpec.prototype.addItems = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gauge.messages.ProtoItem, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.gauge.messages.ProtoSpec} returns this
*/
proto.gauge.messages.ProtoSpec.prototype.clearItemsList = function() {
return this.setItemsList([]);
};
/**
* optional bool isTableDriven = 3;
* @return {boolean}
*/
proto.gauge.messages.ProtoSpec.prototype.getIstabledriven = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
};
/**
* @param {boolean} value
* @return {!proto.gauge.messages.ProtoSpec} returns this
*/
proto.gauge.messages.ProtoSpec.prototype.setIstabledriven = function(value) {
return jspb.Message.setProto3BooleanField(this, 3, value);
};
/**
* repeated ProtoHookFailure preHookFailures = 4;
* @return {!Array<!proto.gauge.messages.ProtoHookFailure>}
*/
proto.gauge.messages.ProtoSpec.prototype.getPrehookfailuresList = function() {
return /** @type{!Array<!proto.gauge.messages.ProtoHookFailure>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.gauge.messages.ProtoHookFailure, 4));
};
/**
* @param {!Array<!proto.gauge.messages.ProtoHookFailure>} value
* @return {!proto.gauge.messages.ProtoSpec} returns this
*/
proto.gauge.messages.ProtoSpec.prototype.setPrehookfailuresList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 4, value);
};
/**
* @param {!proto.gauge.messages.ProtoHookFailure=} opt_value
* @param {number=} opt_index
* @return {!proto.gauge.messages.ProtoHookFailure}
*/
proto.gauge.messages.ProtoSpec.prototype.addPrehookfailures = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.gauge.messages.ProtoHookFailure, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.gauge.messages.ProtoSpec} returns this
*/
proto.gauge.messages.ProtoSpec.prototype.clearPrehookfailuresList = function() {
return this.setPrehookfailuresList([]);
};
/**
* repeated ProtoHookFailure postHookFailures = 5;
* @return {!Array<!proto.gauge.messages.ProtoHookFailure>}
*/
proto.gauge.messages.ProtoSpec.prototype.getPosthookfailuresList = function() {
return /** @type{!Array<!proto.gauge.messages.ProtoHookFailure>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.gauge.messages.ProtoHookFailure, 5));
};
/**
* @param {!Array<!proto.gauge.messages.ProtoHookFailure>} value
* @return {!proto.gauge.messages.ProtoSpec} returns this
*/
proto.gauge.messages.ProtoSpec.prototype.setPosthookfailuresList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 5, value);
};
/**
* @param {!proto.gauge.messages.ProtoHookFailure=} opt_value
* @param {number=} opt_index
* @return {!proto.gauge.messages.ProtoHookFailure}
*/
proto.gauge.messages.ProtoSpec.prototype.addPosthookfailures = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.gauge.messages.ProtoHookFailure, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.gauge.messages.ProtoSpec} returns this
*/
proto.gauge.messages.ProtoSpec.prototype.clearPosthookfailuresList = function() {
return this.setPosthookfailuresList([]);
};
/**
* optional string fileName = 6;
* @return {string}
*/
proto.gauge.messages.ProtoSpec.prototype.getFilename = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
};
/**
* @param {string} value
* @return {!proto.gauge.messages.ProtoSpec} returns this
*/
proto.gauge.messages.ProtoSpec.prototype.setFilename = function(value) {
return jspb.Message.setProto3StringField(this, 6, value);
};
/**
* repeated string tags = 7;
* @return {!Array<string>}
*/
proto.gauge.messages.ProtoSpec.prototype.getTagsList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 7));
};
/**
* @param {!Array<string>} value
* @return {!proto.gauge.messages.ProtoSpec} returns this
*/
proto.gauge.messages.ProtoSpec.prototype.setTagsList = function(value) {
return jspb.Message.setField(this, 7, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.gauge.messages.ProtoSpec} returns this
*/
proto.gauge.messages.ProtoSpec.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.gauge.messages.ProtoSpec} returns this
*/
proto.gauge.messages.ProtoSpec.prototype.clearTagsList = function() {
return this.setTagsList([]);
};
/**
* repeated string preHookMessages = 8;
* @return {!Array<string>}
*/
proto.gauge.messages.ProtoSpec.prototype.getPrehookmessagesList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 8));
};
/**
* @param {!Array<string>} value
* @return {!proto.gauge.messages.ProtoSpec} returns this
*/
proto.gauge.messages.ProtoSpec.prototype.setPrehookmessagesList = function(value) {
return jspb.Message.setField(this, 8, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.gauge.messages.ProtoSpec} returns this
*/
proto.gauge.messages.ProtoSpec.prototype.addPrehookmessages = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 8, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.gauge.messages.ProtoSpec} returns this
*/
proto.gauge.messages.ProtoSpec.prototype.clearPrehookmessagesList = function() {
return this.setPrehookmessagesList([]);
};
/**
* repeated string postHookMessages = 9;
* @return {!Array<string>}
*/
proto.gauge.messages.ProtoSpec.prototype.getPosthookmessagesList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 9));
};
/**
* @param {!Array<string>} value
* @return {!proto.gauge.messages.ProtoSpec} returns this
*/
proto.gauge.messages.ProtoSpec.prototype.setPosthookmessagesList = function(value) {
return jspb.Message.setField(this, 9, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.gauge.messages.ProtoSpec} returns this
*/
proto.gauge.messages.ProtoSpec.prototype.addPosthookmessages = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 9, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.gauge.messages.ProtoSpec} returns this
*/
proto.gauge.messages.ProtoSpec.prototype.clearPosthookmessagesList = function() {
return this.setPosthookmessagesList([]);
};
/**
* repeated string preHookMessage = 10;
* @return {!Array<string>}
*/
proto.gauge.messages.ProtoSpec.prototype.getPrehookmessageList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 10));
};
/**
* @param {!Array<string>} value
* @return {!proto.gauge.messages.ProtoSpec} returns this
*/
proto.gauge.messages.ProtoSpec.prototype.setPrehookmessageList = function(value) {
return jspb.Message.setField(this, 10, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.gauge.messages.ProtoSpec} returns this
*/
proto.gauge.messages.ProtoSpec.prototype.addPrehookmessage = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 10, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.gauge.messages.ProtoSpec} returns this
*/
proto.gauge.messages.ProtoSpec.prototype.clearPrehookmessageList = function() {
return this.setPrehookmessageList([]);
};
/**
* repeated string postHookMessage = 11;
* @return {!Array<string>}
*/
proto.gauge.messages.ProtoSpec.prototype.getPosthookmessageList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 11));
};
/**
* @param {!Array<string>} value
* @return {!proto.gauge.messages.ProtoSpec} returns this
*/
proto.gauge.messages.ProtoSpec.prototype.setPosthookmessageList = function(value) {
return jspb.Message.setField(this, 11, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.gauge.messages.ProtoSpec} returns this
*/
proto.gauge.messages.ProtoSpec.prototype.addPosthookmessage = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 11, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.gauge.messages.ProtoSpec} returns this
*/
proto.gauge.messages.ProtoSpec.prototype.clearPosthookmessageList = function() {
return this.setPosthookmessageList([]);
};
/**
* repeated bytes preHookScreenshots = 12;
* @return {!(Array<!Uint8Array>|Array<string>)}
*/
proto.gauge.messages.ProtoSpec.prototype.getPrehookscreenshotsList = function() {
return /** @type {!(Array<!Uint8Array>|Array<string>)} */ (jspb.Message.getRepeatedField(this, 12));
};
/**
* repeated bytes preHookScreenshots = 12;
* This is a type-conversion wrapper around `getPrehookscreenshotsList()`
* @return {!Array<string>}
*/
proto.gauge.messages.ProtoSpec.prototype.getPrehookscreenshotsList_asB64 = function() {
return /** @type {!Array<string>} */ (jspb.Message.bytesListAsB64(
this.getPrehookscreenshotsList()));
};
/**
* repeated bytes preHookScreenshots = 12;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getPrehookscreenshotsList()`
* @return {!Array<!Uint8Array>}
*/
proto.gauge.messages.ProtoSpec.prototype.getPrehookscreenshotsList_asU8 = function() {
return /** @type {!Array<!Uint8Array>} */ (jspb.Message.bytesListAsU8(
this.getPrehookscreenshotsList()));
};
/**
* @param {!(Array<!Uint8Array>|Array<string>)} value
* @return {!proto.gauge.messages.ProtoSpec} returns this
*/
proto.gauge.messages.ProtoSpec.prototype.setPrehookscreenshotsList = function(value) {
return jspb.Message.setField(this, 12, value || []);
};
/**
* @param {!(string|Uint8Array)} value
* @param {number=} opt_index
* @return {!proto.gauge.messages.ProtoSpec} returns this
*/
proto.gauge.messages.ProtoSpec.prototype.addPrehookscreenshots = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 12, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.gauge.messages.ProtoSpec} returns this
*/
proto.gauge.messages.ProtoSpec.prototype.clearPrehookscreenshotsList = function() {
return this.setPrehookscreenshotsList([]);
};
/**
* repeated bytes postHookScreenshots = 13;
* @return {!(Array<!Uint8Array>|Array<string>)}
*/
proto.gauge.messages.ProtoSpec.prototype.getPosthookscreenshotsList = function() {
return /** @type {!(Array<!Uint8Array>|Array<string>)} */ (jspb.Message.getRepeatedField(this, 13));
};
/**
* repeated bytes postHookScreenshots = 13;
* This is a type-conversion wrapper around `getPosthookscreenshotsList()`
* @return {!Array<string>}
*/
proto.gauge.messages.ProtoSpec.prototype.getPosthookscreenshotsList_asB64 = function() {
return /** @type {!Array<string>} */ (jspb.Message.bytesListAsB64(
this.getPosthookscreenshotsList()));
};
/**
* repeated bytes postHookScreenshots = 13;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getPosthookscreenshotsList()`
* @return {!Array<!Uint8Array>}
*/
proto.gauge.messages.ProtoSpec.prototype.getPosthookscreenshotsList_asU8 = function() {
return /** @type {!Array<!Uint8Array>} */ (jspb.Message.bytesListAsU8(
this.getPosthookscreenshotsList()));
};
/**
* @param {!(Array<!Uint8Array>|Array<string>)} value
* @return {!proto.gauge.messages.ProtoSpec} returns this
*/
proto.gauge.messages.ProtoSpec.prototype.setPosthookscreenshotsList = function(value) {
return jspb.Message.setField(this, 13, value || []);
};
/**
* @param {!(string|Uint8Array)} value
* @param {number=} opt_index
* @return {!proto.gauge.messages.ProtoSpec} returns this
*/
proto.gauge.messages.ProtoSpec.prototype.addPosthookscreenshots = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 13, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.gauge.messages.ProtoSpec} returns this
*/
proto.gauge.messages.ProtoSpec.prototype.clearPosthookscreenshotsList = function() {
return this.setPosthookscreenshotsList([]);
};
/**
* optional int64 itemCount = 14;
* @return {number}
*/
proto.gauge.messages.ProtoSpec.prototype.getItemcount = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
};
/**
* @param {number} value
* @return {!proto.gauge.messages.ProtoSpec} returns this
*/
proto.gauge.messages.ProtoSpec.prototype.setItemcount = function(value) {
return jspb.Message.setProto3IntField(this, 14, value);
};
/**
* repeated string preHookScreenshotFiles = 15;
* @return {!Array<string>}
*/
proto.gauge.messages.ProtoSpec.prototype.getPrehookscreenshotfilesList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 15));
};
/**
* @param {!Array<string>} value
* @return {!proto.gauge.messages.ProtoSpec} returns this
*/
proto.gauge.messages.ProtoSpec.prototype.setPrehookscreenshotfilesList = function(value) {
return jspb.Message.setField(this, 15, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.gauge.messages.ProtoSpec} returns this
*/
proto.gauge.messages.ProtoSpec.prototype.addPrehookscreenshotfiles = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 15, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.gauge.messages.ProtoSpec} returns this
*/
proto.gauge.messages.ProtoSpec.prototype.clearPrehookscreenshotfilesList = function() {
return this.setPrehookscreenshotfilesList([]);
};
/**
* repeated string postHookScreenshotFiles = 16;
* @return {!Array<string>}
*/
proto.gauge.messages.ProtoSpec.prototype.getPosthookscreenshotfilesList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 16));
};
/**
* @param {!Array<string>} value
* @return {!proto.gauge.messages.ProtoSpec} returns this
*/
proto.gauge.messages.ProtoSpec.prototype.setPosthookscreenshotfilesList = function(value) {
return jspb.Message.setField(this, 16, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.gauge.messages.ProtoSpec} returns this
*/
proto.gauge.messages.ProtoSpec.prototype.addPosthookscreenshotfiles = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 16, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.gauge.messages.ProtoSpec} returns this
*/
proto.gauge.messages.ProtoSpec.prototype.clearPosthookscreenshotfilesList = function() {
return this.setPosthookscreenshotfilesList([]);
};
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.gauge.messages.ProtoItem.prototype.toObject = function(opt_includeInstance) {
return proto.gauge.messages.ProtoItem.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.gauge.messages.ProtoItem} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.gauge.messages.ProtoItem.toObject = function(includeInstance, msg) {
var f, obj = {
itemtype: jspb.Message.getFieldWithDefault(msg, 1, 0),
step: (f = msg.getStep()) && proto.gauge.messages.ProtoStep.toObject(includeInstance, f),
concept: (f = msg.getConcept()) && proto.gauge.messages.ProtoConcept.toObject(includeInstance, f),
scenario: (f = msg.getScenario()) && proto.gauge.messages.ProtoScenario.toObject(includeInstance, f),
tabledrivenscenario: (f = msg.getTabledrivenscenario()) && proto.gauge.messages.ProtoTableDrivenScenario.toObject(includeInstance, f),
comment: (f = msg.getComment()) && proto.gauge.messages.ProtoComment.toObject(includeInstance, f),
table: (f = msg.getTable()) && proto.gauge.messages.ProtoTable.toObject(includeInstance, f),
tags: (f = msg.getTags()) && proto.gauge.messages.ProtoTags.toObject(includeInstance, f),
filename: jspb.Message.getFieldWithDefault(msg, 9, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.gauge.messages.ProtoItem}
*/
proto.gauge.messages.ProtoItem.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.gauge.messages.ProtoItem;
return proto.gauge.messages.ProtoItem.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.gauge.messages.ProtoItem} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.gauge.messages.ProtoItem}
*/
proto.gauge.messages.ProtoItem.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {!proto.gauge.messages.ProtoItem.ItemType} */ (reader.readEnum());
msg.setItemtype(value);
break;
case 2:
var value = new proto.gauge.messages.ProtoStep;
reader.readMessage(value,proto.gauge.messages.ProtoStep.deserializeBinaryFromReader);
msg.setStep(value);
break;
case 3:
var value = new proto.gauge.messages.ProtoConcept;
reader.readMessage(value,proto.gauge.messages.ProtoConcept.deserializeBinaryFromReader);
msg.setConcept(value);
break;
case 4:
var value = new proto.gauge.messages.ProtoScenario;
reader.readMessage(value,proto.gauge.messages.ProtoScenario.deserializeBinaryFromReader);
msg.setScenario(value);
break;
case 5:
var value = new proto.gauge.messages.ProtoTableDrivenScenario;
reader.readMessage(value,proto.gauge.messages.ProtoTableDrivenScenario.deserializeBinaryFromReader);
msg.setTabledrivenscenario(value);
break;
case 6:
var value = new proto.gauge.messages.ProtoComment;
reader.readMessage(value,proto.gauge.messages.ProtoComment.deserializeBinaryFromReader);
msg.setComment(value);
break;
case 7:
var value = new proto.gauge.messages.ProtoTable;
reader.readMessage(value,proto.gauge.messages.ProtoTable.deserializeBinaryFromReader);
msg.setTable(value);
break;
case 8:
var value = new proto.gauge.messages.ProtoTags;
reader.readMessage(value,proto.gauge.messages.ProtoTags.deserializeBinaryFro