// source: proto/WorkingGroups.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('return this')(); goog.exportSymbol('proto.ApplicationMetadata', null, global); goog.exportSymbol('proto.OpeningMetadata', null, global); goog.exportSymbol('proto.OpeningMetadata.ApplicationFormQuestion', null, global); goog.exportSymbol('proto.OpeningMetadata.ApplicationFormQuestion.InputType', null, global); goog.exportSymbol('proto.WorkingGroupStatusMetadata', 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.OpeningMetadata = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.OpeningMetadata.repeatedFields_, null); }; goog.inherits(proto.OpeningMetadata, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.OpeningMetadata.displayName = 'proto.OpeningMetadata'; } /** * 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.OpeningMetadata.ApplicationFormQuestion = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.OpeningMetadata.ApplicationFormQuestion, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.OpeningMetadata.ApplicationFormQuestion.displayName = 'proto.OpeningMetadata.ApplicationFormQuestion'; } /** * 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.ApplicationMetadata = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.ApplicationMetadata.repeatedFields_, null); }; goog.inherits(proto.ApplicationMetadata, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ApplicationMetadata.displayName = 'proto.ApplicationMetadata'; } /** * 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.WorkingGroupStatusMetadata = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.WorkingGroupStatusMetadata, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.WorkingGroupStatusMetadata.displayName = 'proto.WorkingGroupStatusMetadata'; } /** * List of repeated fields within this message type. * @private {!Array} * @const */ proto.OpeningMetadata.repeatedFields_ = [6]; 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_, 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.OpeningMetadata.prototype.toObject = function(opt_includeInstance) { return proto.OpeningMetadata.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.OpeningMetadata} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.OpeningMetadata.toObject = function(includeInstance, msg) { var f, obj = { shortDescription: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f, description: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f, hiringLimit: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f, expectedDuration: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f, applicationDetails: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f, applicationFormQuestionsList: jspb.Message.toObjectList(msg.getApplicationFormQuestionsList(), proto.OpeningMetadata.ApplicationFormQuestion.toObject, includeInstance) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.OpeningMetadata} */ proto.OpeningMetadata.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.OpeningMetadata; return proto.OpeningMetadata.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.OpeningMetadata} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.OpeningMetadata} */ proto.OpeningMetadata.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.setShortDescription(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setDescription(value); break; case 3: var value = /** @type {number} */ (reader.readUint32()); msg.setHiringLimit(value); break; case 4: var value = /** @type {number} */ (reader.readUint32()); msg.setExpectedDuration(value); break; case 5: var value = /** @type {string} */ (reader.readString()); msg.setApplicationDetails(value); break; case 6: var value = new proto.OpeningMetadata.ApplicationFormQuestion; reader.readMessage(value,proto.OpeningMetadata.ApplicationFormQuestion.deserializeBinaryFromReader); msg.addApplicationFormQuestions(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.OpeningMetadata.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.OpeningMetadata.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.OpeningMetadata} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.OpeningMetadata.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = /** @type {string} */ (jspb.Message.getField(message, 1)); if (f != null) { writer.writeString( 1, f ); } f = /** @type {string} */ (jspb.Message.getField(message, 2)); if (f != null) { writer.writeString( 2, f ); } f = /** @type {number} */ (jspb.Message.getField(message, 3)); if (f != null) { writer.writeUint32( 3, f ); } f = /** @type {number} */ (jspb.Message.getField(message, 4)); if (f != null) { writer.writeUint32( 4, f ); } f = /** @type {string} */ (jspb.Message.getField(message, 5)); if (f != null) { writer.writeString( 5, f ); } f = message.getApplicationFormQuestionsList(); if (f.length > 0) { writer.writeRepeatedMessage( 6, f, proto.OpeningMetadata.ApplicationFormQuestion.serializeBinaryToWriter ); } }; 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_, 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.OpeningMetadata.ApplicationFormQuestion.prototype.toObject = function(opt_includeInstance) { return proto.OpeningMetadata.ApplicationFormQuestion.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.OpeningMetadata.ApplicationFormQuestion} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.OpeningMetadata.ApplicationFormQuestion.toObject = function(includeInstance, msg) { var f, obj = { question: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f, type: (f = jspb.Message.getField(msg, 2)) == 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.OpeningMetadata.ApplicationFormQuestion} */ proto.OpeningMetadata.ApplicationFormQuestion.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.OpeningMetadata.ApplicationFormQuestion; return proto.OpeningMetadata.ApplicationFormQuestion.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.OpeningMetadata.ApplicationFormQuestion} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.OpeningMetadata.ApplicationFormQuestion} */ proto.OpeningMetadata.ApplicationFormQuestion.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.setQuestion(value); break; case 2: var value = /** @type {!proto.OpeningMetadata.ApplicationFormQuestion.InputType} */ (reader.readEnum()); msg.setType(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.OpeningMetadata.ApplicationFormQuestion.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.OpeningMetadata.ApplicationFormQuestion.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.OpeningMetadata.ApplicationFormQuestion} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.OpeningMetadata.ApplicationFormQuestion.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = /** @type {string} */ (jspb.Message.getField(message, 1)); if (f != null) { writer.writeString( 1, f ); } f = /** @type {!proto.OpeningMetadata.ApplicationFormQuestion.InputType} */ (jspb.Message.getField(message, 2)); if (f != null) { writer.writeEnum( 2, f ); } }; /** * @enum {number} */ proto.OpeningMetadata.ApplicationFormQuestion.InputType = { TEXT: 1, TEXTAREA: 2 }; /** * required string question = 1; * @return {string} */ proto.OpeningMetadata.ApplicationFormQuestion.prototype.getQuestion = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.OpeningMetadata.ApplicationFormQuestion} returns this */ proto.OpeningMetadata.ApplicationFormQuestion.prototype.setQuestion = function(value) { return jspb.Message.setField(this, 1, value); }; /** * Clears the field making it undefined. * @return {!proto.OpeningMetadata.ApplicationFormQuestion} returns this */ proto.OpeningMetadata.ApplicationFormQuestion.prototype.clearQuestion = function() { return jspb.Message.setField(this, 1, undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.OpeningMetadata.ApplicationFormQuestion.prototype.hasQuestion = function() { return jspb.Message.getField(this, 1) != null; }; /** * required InputType type = 2; * @return {!proto.OpeningMetadata.ApplicationFormQuestion.InputType} */ proto.OpeningMetadata.ApplicationFormQuestion.prototype.getType = function() { return /** @type {!proto.OpeningMetadata.ApplicationFormQuestion.InputType} */ (jspb.Message.getFieldWithDefault(this, 2, 1)); }; /** * @param {!proto.OpeningMetadata.ApplicationFormQuestion.InputType} value * @return {!proto.OpeningMetadata.ApplicationFormQuestion} returns this */ proto.OpeningMetadata.ApplicationFormQuestion.prototype.setType = function(value) { return jspb.Message.setField(this, 2, value); }; /** * Clears the field making it undefined. * @return {!proto.OpeningMetadata.ApplicationFormQuestion} returns this */ proto.OpeningMetadata.ApplicationFormQuestion.prototype.clearType = function() { return jspb.Message.setField(this, 2, undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.OpeningMetadata.ApplicationFormQuestion.prototype.hasType = function() { return jspb.Message.getField(this, 2) != null; }; /** * required string short_description = 1; * @return {string} */ proto.OpeningMetadata.prototype.getShortDescription = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.OpeningMetadata} returns this */ proto.OpeningMetadata.prototype.setShortDescription = function(value) { return jspb.Message.setField(this, 1, value); }; /** * Clears the field making it undefined. * @return {!proto.OpeningMetadata} returns this */ proto.OpeningMetadata.prototype.clearShortDescription = function() { return jspb.Message.setField(this, 1, undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.OpeningMetadata.prototype.hasShortDescription = function() { return jspb.Message.getField(this, 1) != null; }; /** * required string description = 2; * @return {string} */ proto.OpeningMetadata.prototype.getDescription = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.OpeningMetadata} returns this */ proto.OpeningMetadata.prototype.setDescription = function(value) { return jspb.Message.setField(this, 2, value); }; /** * Clears the field making it undefined. * @return {!proto.OpeningMetadata} returns this */ proto.OpeningMetadata.prototype.clearDescription = function() { return jspb.Message.setField(this, 2, undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.OpeningMetadata.prototype.hasDescription = function() { return jspb.Message.getField(this, 2) != null; }; /** * required uint32 hiring_limit = 3; * @return {number} */ proto.OpeningMetadata.prototype.getHiringLimit = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {number} value * @return {!proto.OpeningMetadata} returns this */ proto.OpeningMetadata.prototype.setHiringLimit = function(value) { return jspb.Message.setField(this, 3, value); }; /** * Clears the field making it undefined. * @return {!proto.OpeningMetadata} returns this */ proto.OpeningMetadata.prototype.clearHiringLimit = function() { return jspb.Message.setField(this, 3, undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.OpeningMetadata.prototype.hasHiringLimit = function() { return jspb.Message.getField(this, 3) != null; }; /** * required uint32 expected_duration = 4; * @return {number} */ proto.OpeningMetadata.prototype.getExpectedDuration = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** * @param {number} value * @return {!proto.OpeningMetadata} returns this */ proto.OpeningMetadata.prototype.setExpectedDuration = function(value) { return jspb.Message.setField(this, 4, value); }; /** * Clears the field making it undefined. * @return {!proto.OpeningMetadata} returns this */ proto.OpeningMetadata.prototype.clearExpectedDuration = function() { return jspb.Message.setField(this, 4, undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.OpeningMetadata.prototype.hasExpectedDuration = function() { return jspb.Message.getField(this, 4) != null; }; /** * required string application_details = 5; * @return {string} */ proto.OpeningMetadata.prototype.getApplicationDetails = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value * @return {!proto.OpeningMetadata} returns this */ proto.OpeningMetadata.prototype.setApplicationDetails = function(value) { return jspb.Message.setField(this, 5, value); }; /** * Clears the field making it undefined. * @return {!proto.OpeningMetadata} returns this */ proto.OpeningMetadata.prototype.clearApplicationDetails = function() { return jspb.Message.setField(this, 5, undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.OpeningMetadata.prototype.hasApplicationDetails = function() { return jspb.Message.getField(this, 5) != null; }; /** * repeated ApplicationFormQuestion application_form_questions = 6; * @return {!Array} */ proto.OpeningMetadata.prototype.getApplicationFormQuestionsList = function() { return /** @type{!Array} */ ( jspb.Message.getRepeatedWrapperField(this, proto.OpeningMetadata.ApplicationFormQuestion, 6)); }; /** * @param {!Array} value * @return {!proto.OpeningMetadata} returns this */ proto.OpeningMetadata.prototype.setApplicationFormQuestionsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 6, value); }; /** * @param {!proto.OpeningMetadata.ApplicationFormQuestion=} opt_value * @param {number=} opt_index * @return {!proto.OpeningMetadata.ApplicationFormQuestion} */ proto.OpeningMetadata.prototype.addApplicationFormQuestions = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.OpeningMetadata.ApplicationFormQuestion, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.OpeningMetadata} returns this */ proto.OpeningMetadata.prototype.clearApplicationFormQuestionsList = function() { return this.setApplicationFormQuestionsList([]); }; /** * List of repeated fields within this message type. * @private {!Array} * @const */ proto.ApplicationMetadata.repeatedFields_ = [1]; 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_, 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.ApplicationMetadata.prototype.toObject = function(opt_includeInstance) { return proto.ApplicationMetadata.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.ApplicationMetadata} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ApplicationMetadata.toObject = function(includeInstance, msg) { var f, obj = { answersList: (f = jspb.Message.getRepeatedField(msg, 1)) == 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.ApplicationMetadata} */ proto.ApplicationMetadata.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.ApplicationMetadata; return proto.ApplicationMetadata.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.ApplicationMetadata} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.ApplicationMetadata} */ proto.ApplicationMetadata.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.addAnswers(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.ApplicationMetadata.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.ApplicationMetadata.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.ApplicationMetadata} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ApplicationMetadata.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getAnswersList(); if (f.length > 0) { writer.writeRepeatedString( 1, f ); } }; /** * repeated string answers = 1; * @return {!Array} */ proto.ApplicationMetadata.prototype.getAnswersList = function() { return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); }; /** * @param {!Array} value * @return {!proto.ApplicationMetadata} returns this */ proto.ApplicationMetadata.prototype.setAnswersList = function(value) { return jspb.Message.setField(this, 1, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.ApplicationMetadata} returns this */ proto.ApplicationMetadata.prototype.addAnswers = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 1, value, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.ApplicationMetadata} returns this */ proto.ApplicationMetadata.prototype.clearAnswersList = function() { return this.setAnswersList([]); }; 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_, 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.WorkingGroupStatusMetadata.prototype.toObject = function(opt_includeInstance) { return proto.WorkingGroupStatusMetadata.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.WorkingGroupStatusMetadata} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.WorkingGroupStatusMetadata.toObject = function(includeInstance, msg) { var f, obj = { description: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f, about: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f, status: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f, statusMessage: (f = jspb.Message.getField(msg, 4)) == 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.WorkingGroupStatusMetadata} */ proto.WorkingGroupStatusMetadata.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.WorkingGroupStatusMetadata; return proto.WorkingGroupStatusMetadata.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.WorkingGroupStatusMetadata} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.WorkingGroupStatusMetadata} */ proto.WorkingGroupStatusMetadata.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.setDescription(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setAbout(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setStatus(value); break; case 4: var value = /** @type {string} */ (reader.readString()); msg.setStatusMessage(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.WorkingGroupStatusMetadata.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.WorkingGroupStatusMetadata.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.WorkingGroupStatusMetadata} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.WorkingGroupStatusMetadata.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = /** @type {string} */ (jspb.Message.getField(message, 1)); if (f != null) { writer.writeString( 1, f ); } f = /** @type {string} */ (jspb.Message.getField(message, 2)); if (f != null) { writer.writeString( 2, f ); } f = /** @type {string} */ (jspb.Message.getField(message, 3)); if (f != null) { writer.writeString( 3, f ); } f = /** @type {string} */ (jspb.Message.getField(message, 4)); if (f != null) { writer.writeString( 4, f ); } }; /** * optional string description = 1; * @return {string} */ proto.WorkingGroupStatusMetadata.prototype.getDescription = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.WorkingGroupStatusMetadata} returns this */ proto.WorkingGroupStatusMetadata.prototype.setDescription = function(value) { return jspb.Message.setField(this, 1, value); }; /** * Clears the field making it undefined. * @return {!proto.WorkingGroupStatusMetadata} returns this */ proto.WorkingGroupStatusMetadata.prototype.clearDescription = function() { return jspb.Message.setField(this, 1, undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.WorkingGroupStatusMetadata.prototype.hasDescription = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional string about = 2; * @return {string} */ proto.WorkingGroupStatusMetadata.prototype.getAbout = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.WorkingGroupStatusMetadata} returns this */ proto.WorkingGroupStatusMetadata.prototype.setAbout = function(value) { return jspb.Message.setField(this, 2, value); }; /** * Clears the field making it undefined. * @return {!proto.WorkingGroupStatusMetadata} returns this */ proto.WorkingGroupStatusMetadata.prototype.clearAbout = function() { return jspb.Message.setField(this, 2, undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.WorkingGroupStatusMetadata.prototype.hasAbout = function() { return jspb.Message.getField(this, 2) != null; }; /** * optional string status = 3; * @return {string} */ proto.WorkingGroupStatusMetadata.prototype.getStatus = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.WorkingGroupStatusMetadata} returns this */ proto.WorkingGroupStatusMetadata.prototype.setStatus = function(value) { return jspb.Message.setField(this, 3, value); }; /** * Clears the field making it undefined. * @return {!proto.WorkingGroupStatusMetadata} returns this */ proto.WorkingGroupStatusMetadata.prototype.clearStatus = function() { return jspb.Message.setField(this, 3, undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.WorkingGroupStatusMetadata.prototype.hasStatus = function() { return jspb.Message.getField(this, 3) != null; }; /** * optional string status_message = 4; * @return {string} */ proto.WorkingGroupStatusMetadata.prototype.getStatusMessage = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value * @return {!proto.WorkingGroupStatusMetadata} returns this */ proto.WorkingGroupStatusMetadata.prototype.setStatusMessage = function(value) { return jspb.Message.setField(this, 4, value); }; /** * Clears the field making it undefined. * @return {!proto.WorkingGroupStatusMetadata} returns this */ proto.WorkingGroupStatusMetadata.prototype.clearStatusMessage = function() { return jspb.Message.setField(this, 4, undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.WorkingGroupStatusMetadata.prototype.hasStatusMessage = function() { return jspb.Message.getField(this, 4) != null; }; goog.object.extend(exports, proto);