| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424 | // source: google/protobuf/compiler/plugin.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-nocheckvar jspb = require('google-protobuf');var goog = jspb;var global =    (typeof globalThis !== 'undefined' && globalThis) ||    (typeof window !== 'undefined' && window) ||    (typeof global !== 'undefined' && global) ||    (typeof self !== 'undefined' && self) ||    (function () { return this; }).call(null) ||    Function('return this')();var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');goog.object.extend(proto, google_protobuf_descriptor_pb);goog.exportSymbol('proto.google.protobuf.compiler.CodeGeneratorRequest', null, global);goog.exportSymbol('proto.google.protobuf.compiler.CodeGeneratorResponse', null, global);goog.exportSymbol('proto.google.protobuf.compiler.CodeGeneratorResponse.Feature', null, global);goog.exportSymbol('proto.google.protobuf.compiler.CodeGeneratorResponse.File', null, global);goog.exportSymbol('proto.google.protobuf.compiler.Version', 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.google.protobuf.compiler.Version = function(opt_data) {  jspb.Message.initialize(this, opt_data, 0, -1, null, null);};goog.inherits(proto.google.protobuf.compiler.Version, jspb.Message);if (goog.DEBUG && !COMPILED) {  /**   * @public   * @override   */  proto.google.protobuf.compiler.Version.displayName = 'proto.google.protobuf.compiler.Version';}/** * 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.google.protobuf.compiler.CodeGeneratorRequest = function(opt_data) {  jspb.Message.initialize(this, opt_data, 0, -1, proto.google.protobuf.compiler.CodeGeneratorRequest.repeatedFields_, null);};goog.inherits(proto.google.protobuf.compiler.CodeGeneratorRequest, jspb.Message);if (goog.DEBUG && !COMPILED) {  /**   * @public   * @override   */  proto.google.protobuf.compiler.CodeGeneratorRequest.displayName = 'proto.google.protobuf.compiler.CodeGeneratorRequest';}/** * 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.google.protobuf.compiler.CodeGeneratorResponse = function(opt_data) {  jspb.Message.initialize(this, opt_data, 0, -1, proto.google.protobuf.compiler.CodeGeneratorResponse.repeatedFields_, null);};goog.inherits(proto.google.protobuf.compiler.CodeGeneratorResponse, jspb.Message);if (goog.DEBUG && !COMPILED) {  /**   * @public   * @override   */  proto.google.protobuf.compiler.CodeGeneratorResponse.displayName = 'proto.google.protobuf.compiler.CodeGeneratorResponse';}/** * 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.google.protobuf.compiler.CodeGeneratorResponse.File = function(opt_data) {  jspb.Message.initialize(this, opt_data, 0, -1, null, null);};goog.inherits(proto.google.protobuf.compiler.CodeGeneratorResponse.File, jspb.Message);if (goog.DEBUG && !COMPILED) {  /**   * @public   * @override   */  proto.google.protobuf.compiler.CodeGeneratorResponse.File.displayName = 'proto.google.protobuf.compiler.CodeGeneratorResponse.File';}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.google.protobuf.compiler.Version.prototype.toObject = function(opt_includeInstance) {  return proto.google.protobuf.compiler.Version.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.google.protobuf.compiler.Version} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */proto.google.protobuf.compiler.Version.toObject = function(includeInstance, msg) {  var f, obj = {major: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,minor: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,patch: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,suffix: (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.google.protobuf.compiler.Version} */proto.google.protobuf.compiler.Version.deserializeBinary = function(bytes) {  var reader = new jspb.BinaryReader(bytes);  var msg = new proto.google.protobuf.compiler.Version;  return proto.google.protobuf.compiler.Version.deserializeBinaryFromReader(msg, reader);};/** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.google.protobuf.compiler.Version} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.google.protobuf.compiler.Version} */proto.google.protobuf.compiler.Version.deserializeBinaryFromReader = function(msg, reader) {  while (reader.nextField()) {    if (reader.isEndGroup()) {      break;    }    var field = reader.getFieldNumber();    switch (field) {    case 1:      var value = /** @type {number} */ (reader.readInt32());      msg.setMajor(value);      break;    case 2:      var value = /** @type {number} */ (reader.readInt32());      msg.setMinor(value);      break;    case 3:      var value = /** @type {number} */ (reader.readInt32());      msg.setPatch(value);      break;    case 4:      var value = /** @type {string} */ (reader.readString());      msg.setSuffix(value);      break;    default:      reader.skipField();      break;    }  }  return msg;};/** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */proto.google.protobuf.compiler.Version.prototype.serializeBinary = function() {  var writer = new jspb.BinaryWriter();  proto.google.protobuf.compiler.Version.serializeBinaryToWriter(this, writer);  return writer.getResultBuffer();};/** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.google.protobuf.compiler.Version} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */proto.google.protobuf.compiler.Version.serializeBinaryToWriter = function(message, writer) {  var f = undefined;  f = /** @type {number} */ (jspb.Message.getField(message, 1));  if (f != null) {    writer.writeInt32(      1,      f    );  }  f = /** @type {number} */ (jspb.Message.getField(message, 2));  if (f != null) {    writer.writeInt32(      2,      f    );  }  f = /** @type {number} */ (jspb.Message.getField(message, 3));  if (f != null) {    writer.writeInt32(      3,      f    );  }  f = /** @type {string} */ (jspb.Message.getField(message, 4));  if (f != null) {    writer.writeString(      4,      f    );  }};/** * optional int32 major = 1; * @return {number} */proto.google.protobuf.compiler.Version.prototype.getMajor = function() {  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));};/** * @param {number} value * @return {!proto.google.protobuf.compiler.Version} returns this */proto.google.protobuf.compiler.Version.prototype.setMajor = function(value) {  return jspb.Message.setField(this, 1, value);};/** * Clears the field making it undefined. * @return {!proto.google.protobuf.compiler.Version} returns this */proto.google.protobuf.compiler.Version.prototype.clearMajor = function() {  return jspb.Message.setField(this, 1, undefined);};/** * Returns whether this field is set. * @return {boolean} */proto.google.protobuf.compiler.Version.prototype.hasMajor = function() {  return jspb.Message.getField(this, 1) != null;};/** * optional int32 minor = 2; * @return {number} */proto.google.protobuf.compiler.Version.prototype.getMinor = function() {  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));};/** * @param {number} value * @return {!proto.google.protobuf.compiler.Version} returns this */proto.google.protobuf.compiler.Version.prototype.setMinor = function(value) {  return jspb.Message.setField(this, 2, value);};/** * Clears the field making it undefined. * @return {!proto.google.protobuf.compiler.Version} returns this */proto.google.protobuf.compiler.Version.prototype.clearMinor = function() {  return jspb.Message.setField(this, 2, undefined);};/** * Returns whether this field is set. * @return {boolean} */proto.google.protobuf.compiler.Version.prototype.hasMinor = function() {  return jspb.Message.getField(this, 2) != null;};/** * optional int32 patch = 3; * @return {number} */proto.google.protobuf.compiler.Version.prototype.getPatch = function() {  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));};/** * @param {number} value * @return {!proto.google.protobuf.compiler.Version} returns this */proto.google.protobuf.compiler.Version.prototype.setPatch = function(value) {  return jspb.Message.setField(this, 3, value);};/** * Clears the field making it undefined. * @return {!proto.google.protobuf.compiler.Version} returns this */proto.google.protobuf.compiler.Version.prototype.clearPatch = function() {  return jspb.Message.setField(this, 3, undefined);};/** * Returns whether this field is set. * @return {boolean} */proto.google.protobuf.compiler.Version.prototype.hasPatch = function() {  return jspb.Message.getField(this, 3) != null;};/** * optional string suffix = 4; * @return {string} */proto.google.protobuf.compiler.Version.prototype.getSuffix = function() {  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));};/** * @param {string} value * @return {!proto.google.protobuf.compiler.Version} returns this */proto.google.protobuf.compiler.Version.prototype.setSuffix = function(value) {  return jspb.Message.setField(this, 4, value);};/** * Clears the field making it undefined. * @return {!proto.google.protobuf.compiler.Version} returns this */proto.google.protobuf.compiler.Version.prototype.clearSuffix = function() {  return jspb.Message.setField(this, 4, undefined);};/** * Returns whether this field is set. * @return {boolean} */proto.google.protobuf.compiler.Version.prototype.hasSuffix = function() {  return jspb.Message.getField(this, 4) != null;};/** * List of repeated fields within this message type. * @private {!Array<number>} * @const */proto.google.protobuf.compiler.CodeGeneratorRequest.repeatedFields_ = [1,15,17];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.google.protobuf.compiler.CodeGeneratorRequest.prototype.toObject = function(opt_includeInstance) {  return proto.google.protobuf.compiler.CodeGeneratorRequest.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.google.protobuf.compiler.CodeGeneratorRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */proto.google.protobuf.compiler.CodeGeneratorRequest.toObject = function(includeInstance, msg) {  var f, obj = {fileToGenerateList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,parameter: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,protoFileList: jspb.Message.toObjectList(msg.getProtoFileList(),    google_protobuf_descriptor_pb.FileDescriptorProto.toObject, includeInstance),sourceFileDescriptorsList: jspb.Message.toObjectList(msg.getSourceFileDescriptorsList(),    google_protobuf_descriptor_pb.FileDescriptorProto.toObject, includeInstance),compilerVersion: (f = msg.getCompilerVersion()) && proto.google.protobuf.compiler.Version.toObject(includeInstance, 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.google.protobuf.compiler.CodeGeneratorRequest} */proto.google.protobuf.compiler.CodeGeneratorRequest.deserializeBinary = function(bytes) {  var reader = new jspb.BinaryReader(bytes);  var msg = new proto.google.protobuf.compiler.CodeGeneratorRequest;  return proto.google.protobuf.compiler.CodeGeneratorRequest.deserializeBinaryFromReader(msg, reader);};/** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.google.protobuf.compiler.CodeGeneratorRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.google.protobuf.compiler.CodeGeneratorRequest} */proto.google.protobuf.compiler.CodeGeneratorRequest.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.addFileToGenerate(value);      break;    case 2:      var value = /** @type {string} */ (reader.readString());      msg.setParameter(value);      break;    case 15:      var value = new google_protobuf_descriptor_pb.FileDescriptorProto;      reader.readMessage(value,google_protobuf_descriptor_pb.FileDescriptorProto.deserializeBinaryFromReader);      msg.addProtoFile(value);      break;    case 17:      var value = new google_protobuf_descriptor_pb.FileDescriptorProto;      reader.readMessage(value,google_protobuf_descriptor_pb.FileDescriptorProto.deserializeBinaryFromReader);      msg.addSourceFileDescriptors(value);      break;    case 3:      var value = new proto.google.protobuf.compiler.Version;      reader.readMessage(value,proto.google.protobuf.compiler.Version.deserializeBinaryFromReader);      msg.setCompilerVersion(value);      break;    default:      reader.skipField();      break;    }  }  return msg;};/** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.serializeBinary = function() {  var writer = new jspb.BinaryWriter();  proto.google.protobuf.compiler.CodeGeneratorRequest.serializeBinaryToWriter(this, writer);  return writer.getResultBuffer();};/** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.google.protobuf.compiler.CodeGeneratorRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */proto.google.protobuf.compiler.CodeGeneratorRequest.serializeBinaryToWriter = function(message, writer) {  var f = undefined;  f = message.getFileToGenerateList();  if (f.length > 0) {    writer.writeRepeatedString(      1,      f    );  }  f = /** @type {string} */ (jspb.Message.getField(message, 2));  if (f != null) {    writer.writeString(      2,      f    );  }  f = message.getProtoFileList();  if (f.length > 0) {    writer.writeRepeatedMessage(      15,      f,      google_protobuf_descriptor_pb.FileDescriptorProto.serializeBinaryToWriter    );  }  f = message.getSourceFileDescriptorsList();  if (f.length > 0) {    writer.writeRepeatedMessage(      17,      f,      google_protobuf_descriptor_pb.FileDescriptorProto.serializeBinaryToWriter    );  }  f = message.getCompilerVersion();  if (f != null) {    writer.writeMessage(      3,      f,      proto.google.protobuf.compiler.Version.serializeBinaryToWriter    );  }};/** * repeated string file_to_generate = 1; * @return {!Array<string>} */proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.getFileToGenerateList = function() {  return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));};/** * @param {!Array<string>} value * @return {!proto.google.protobuf.compiler.CodeGeneratorRequest} returns this */proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.setFileToGenerateList = function(value) {  return jspb.Message.setField(this, 1, value || []);};/** * @param {string} value * @param {number=} opt_index * @return {!proto.google.protobuf.compiler.CodeGeneratorRequest} returns this */proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.addFileToGenerate = function(value, opt_index) {  return jspb.Message.addToRepeatedField(this, 1, value, opt_index);};/** * Clears the list making it empty but non-null. * @return {!proto.google.protobuf.compiler.CodeGeneratorRequest} returns this */proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.clearFileToGenerateList = function() {  return this.setFileToGenerateList([]);};/** * optional string parameter = 2; * @return {string} */proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.getParameter = function() {  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));};/** * @param {string} value * @return {!proto.google.protobuf.compiler.CodeGeneratorRequest} returns this */proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.setParameter = function(value) {  return jspb.Message.setField(this, 2, value);};/** * Clears the field making it undefined. * @return {!proto.google.protobuf.compiler.CodeGeneratorRequest} returns this */proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.clearParameter = function() {  return jspb.Message.setField(this, 2, undefined);};/** * Returns whether this field is set. * @return {boolean} */proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.hasParameter = function() {  return jspb.Message.getField(this, 2) != null;};/** * repeated google.protobuf.FileDescriptorProto proto_file = 15; * @return {!Array<!proto.google.protobuf.FileDescriptorProto>} */proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.getProtoFileList = function() {  return /** @type{!Array<!proto.google.protobuf.FileDescriptorProto>} */ (    jspb.Message.getRepeatedWrapperField(this, google_protobuf_descriptor_pb.FileDescriptorProto, 15));};/** * @param {!Array<!proto.google.protobuf.FileDescriptorProto>} value * @return {!proto.google.protobuf.compiler.CodeGeneratorRequest} returns this*/proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.setProtoFileList = function(value) {  return jspb.Message.setRepeatedWrapperField(this, 15, value);};/** * @param {!proto.google.protobuf.FileDescriptorProto=} opt_value * @param {number=} opt_index * @return {!proto.google.protobuf.FileDescriptorProto} */proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.addProtoFile = function(opt_value, opt_index) {  return jspb.Message.addToRepeatedWrapperField(this, 15, opt_value, proto.google.protobuf.FileDescriptorProto, opt_index);};/** * Clears the list making it empty but non-null. * @return {!proto.google.protobuf.compiler.CodeGeneratorRequest} returns this */proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.clearProtoFileList = function() {  return this.setProtoFileList([]);};/** * repeated google.protobuf.FileDescriptorProto source_file_descriptors = 17; * @return {!Array<!proto.google.protobuf.FileDescriptorProto>} */proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.getSourceFileDescriptorsList = function() {  return /** @type{!Array<!proto.google.protobuf.FileDescriptorProto>} */ (    jspb.Message.getRepeatedWrapperField(this, google_protobuf_descriptor_pb.FileDescriptorProto, 17));};/** * @param {!Array<!proto.google.protobuf.FileDescriptorProto>} value * @return {!proto.google.protobuf.compiler.CodeGeneratorRequest} returns this*/proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.setSourceFileDescriptorsList = function(value) {  return jspb.Message.setRepeatedWrapperField(this, 17, value);};/** * @param {!proto.google.protobuf.FileDescriptorProto=} opt_value * @param {number=} opt_index * @return {!proto.google.protobuf.FileDescriptorProto} */proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.addSourceFileDescriptors = function(opt_value, opt_index) {  return jspb.Message.addToRepeatedWrapperField(this, 17, opt_value, proto.google.protobuf.FileDescriptorProto, opt_index);};/** * Clears the list making it empty but non-null. * @return {!proto.google.protobuf.compiler.CodeGeneratorRequest} returns this */proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.clearSourceFileDescriptorsList = function() {  return this.setSourceFileDescriptorsList([]);};/** * optional Version compiler_version = 3; * @return {?proto.google.protobuf.compiler.Version} */proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.getCompilerVersion = function() {  return /** @type{?proto.google.protobuf.compiler.Version} */ (    jspb.Message.getWrapperField(this, proto.google.protobuf.compiler.Version, 3));};/** * @param {?proto.google.protobuf.compiler.Version|undefined} value * @return {!proto.google.protobuf.compiler.CodeGeneratorRequest} returns this*/proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.setCompilerVersion = function(value) {  return jspb.Message.setWrapperField(this, 3, value);};/** * Clears the message field making it undefined. * @return {!proto.google.protobuf.compiler.CodeGeneratorRequest} returns this */proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.clearCompilerVersion = function() {  return this.setCompilerVersion(undefined);};/** * Returns whether this field is set. * @return {boolean} */proto.google.protobuf.compiler.CodeGeneratorRequest.prototype.hasCompilerVersion = function() {  return jspb.Message.getField(this, 3) != null;};/** * List of repeated fields within this message type. * @private {!Array<number>} * @const */proto.google.protobuf.compiler.CodeGeneratorResponse.repeatedFields_ = [15];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.google.protobuf.compiler.CodeGeneratorResponse.prototype.toObject = function(opt_includeInstance) {  return proto.google.protobuf.compiler.CodeGeneratorResponse.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.google.protobuf.compiler.CodeGeneratorResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */proto.google.protobuf.compiler.CodeGeneratorResponse.toObject = function(includeInstance, msg) {  var f, obj = {error: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,supportedFeatures: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,minimumEdition: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,maximumEdition: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f,fileList: jspb.Message.toObjectList(msg.getFileList(),    proto.google.protobuf.compiler.CodeGeneratorResponse.File.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.google.protobuf.compiler.CodeGeneratorResponse} */proto.google.protobuf.compiler.CodeGeneratorResponse.deserializeBinary = function(bytes) {  var reader = new jspb.BinaryReader(bytes);  var msg = new proto.google.protobuf.compiler.CodeGeneratorResponse;  return proto.google.protobuf.compiler.CodeGeneratorResponse.deserializeBinaryFromReader(msg, reader);};/** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.google.protobuf.compiler.CodeGeneratorResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.google.protobuf.compiler.CodeGeneratorResponse} */proto.google.protobuf.compiler.CodeGeneratorResponse.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.setError(value);      break;    case 2:      var value = /** @type {number} */ (reader.readUint64());      msg.setSupportedFeatures(value);      break;    case 3:      var value = /** @type {number} */ (reader.readInt32());      msg.setMinimumEdition(value);      break;    case 4:      var value = /** @type {number} */ (reader.readInt32());      msg.setMaximumEdition(value);      break;    case 15:      var value = new proto.google.protobuf.compiler.CodeGeneratorResponse.File;      reader.readMessage(value,proto.google.protobuf.compiler.CodeGeneratorResponse.File.deserializeBinaryFromReader);      msg.addFile(value);      break;    default:      reader.skipField();      break;    }  }  return msg;};/** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.serializeBinary = function() {  var writer = new jspb.BinaryWriter();  proto.google.protobuf.compiler.CodeGeneratorResponse.serializeBinaryToWriter(this, writer);  return writer.getResultBuffer();};/** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.google.protobuf.compiler.CodeGeneratorResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */proto.google.protobuf.compiler.CodeGeneratorResponse.serializeBinaryToWriter = function(message, writer) {  var f = undefined;  f = /** @type {string} */ (jspb.Message.getField(message, 1));  if (f != null) {    writer.writeString(      1,      f    );  }  f = /** @type {number} */ (jspb.Message.getField(message, 2));  if (f != null) {    writer.writeUint64(      2,      f    );  }  f = /** @type {number} */ (jspb.Message.getField(message, 3));  if (f != null) {    writer.writeInt32(      3,      f    );  }  f = /** @type {number} */ (jspb.Message.getField(message, 4));  if (f != null) {    writer.writeInt32(      4,      f    );  }  f = message.getFileList();  if (f.length > 0) {    writer.writeRepeatedMessage(      15,      f,      proto.google.protobuf.compiler.CodeGeneratorResponse.File.serializeBinaryToWriter    );  }};/** * @enum {number} */proto.google.protobuf.compiler.CodeGeneratorResponse.Feature = {  FEATURE_NONE: 0,  FEATURE_PROTO3_OPTIONAL: 1,  FEATURE_SUPPORTS_EDITIONS: 2};if (jspb.Message.GENERATE_TO_OBJECT) {/** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: *     net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the *     JSPB instance for transitional soy proto support: *     http://goto/soy-param-migration * @return {!Object} */proto.google.protobuf.compiler.CodeGeneratorResponse.File.prototype.toObject = function(opt_includeInstance) {  return proto.google.protobuf.compiler.CodeGeneratorResponse.File.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.google.protobuf.compiler.CodeGeneratorResponse.File} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */proto.google.protobuf.compiler.CodeGeneratorResponse.File.toObject = function(includeInstance, msg) {  var f, obj = {name: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,insertionPoint: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,content: (f = jspb.Message.getField(msg, 15)) == null ? undefined : f,generatedCodeInfo: (f = msg.getGeneratedCodeInfo()) && google_protobuf_descriptor_pb.GeneratedCodeInfo.toObject(includeInstance, 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.google.protobuf.compiler.CodeGeneratorResponse.File} */proto.google.protobuf.compiler.CodeGeneratorResponse.File.deserializeBinary = function(bytes) {  var reader = new jspb.BinaryReader(bytes);  var msg = new proto.google.protobuf.compiler.CodeGeneratorResponse.File;  return proto.google.protobuf.compiler.CodeGeneratorResponse.File.deserializeBinaryFromReader(msg, reader);};/** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.google.protobuf.compiler.CodeGeneratorResponse.File} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.google.protobuf.compiler.CodeGeneratorResponse.File} */proto.google.protobuf.compiler.CodeGeneratorResponse.File.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.setName(value);      break;    case 2:      var value = /** @type {string} */ (reader.readString());      msg.setInsertionPoint(value);      break;    case 15:      var value = /** @type {string} */ (reader.readString());      msg.setContent(value);      break;    case 16:      var value = new google_protobuf_descriptor_pb.GeneratedCodeInfo;      reader.readMessage(value,google_protobuf_descriptor_pb.GeneratedCodeInfo.deserializeBinaryFromReader);      msg.setGeneratedCodeInfo(value);      break;    default:      reader.skipField();      break;    }  }  return msg;};/** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */proto.google.protobuf.compiler.CodeGeneratorResponse.File.prototype.serializeBinary = function() {  var writer = new jspb.BinaryWriter();  proto.google.protobuf.compiler.CodeGeneratorResponse.File.serializeBinaryToWriter(this, writer);  return writer.getResultBuffer();};/** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.google.protobuf.compiler.CodeGeneratorResponse.File} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */proto.google.protobuf.compiler.CodeGeneratorResponse.File.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, 15));  if (f != null) {    writer.writeString(      15,      f    );  }  f = message.getGeneratedCodeInfo();  if (f != null) {    writer.writeMessage(      16,      f,      google_protobuf_descriptor_pb.GeneratedCodeInfo.serializeBinaryToWriter    );  }};/** * optional string name = 1; * @return {string} */proto.google.protobuf.compiler.CodeGeneratorResponse.File.prototype.getName = function() {  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));};/** * @param {string} value * @return {!proto.google.protobuf.compiler.CodeGeneratorResponse.File} returns this */proto.google.protobuf.compiler.CodeGeneratorResponse.File.prototype.setName = function(value) {  return jspb.Message.setField(this, 1, value);};/** * Clears the field making it undefined. * @return {!proto.google.protobuf.compiler.CodeGeneratorResponse.File} returns this */proto.google.protobuf.compiler.CodeGeneratorResponse.File.prototype.clearName = function() {  return jspb.Message.setField(this, 1, undefined);};/** * Returns whether this field is set. * @return {boolean} */proto.google.protobuf.compiler.CodeGeneratorResponse.File.prototype.hasName = function() {  return jspb.Message.getField(this, 1) != null;};/** * optional string insertion_point = 2; * @return {string} */proto.google.protobuf.compiler.CodeGeneratorResponse.File.prototype.getInsertionPoint = function() {  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));};/** * @param {string} value * @return {!proto.google.protobuf.compiler.CodeGeneratorResponse.File} returns this */proto.google.protobuf.compiler.CodeGeneratorResponse.File.prototype.setInsertionPoint = function(value) {  return jspb.Message.setField(this, 2, value);};/** * Clears the field making it undefined. * @return {!proto.google.protobuf.compiler.CodeGeneratorResponse.File} returns this */proto.google.protobuf.compiler.CodeGeneratorResponse.File.prototype.clearInsertionPoint = function() {  return jspb.Message.setField(this, 2, undefined);};/** * Returns whether this field is set. * @return {boolean} */proto.google.protobuf.compiler.CodeGeneratorResponse.File.prototype.hasInsertionPoint = function() {  return jspb.Message.getField(this, 2) != null;};/** * optional string content = 15; * @return {string} */proto.google.protobuf.compiler.CodeGeneratorResponse.File.prototype.getContent = function() {  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));};/** * @param {string} value * @return {!proto.google.protobuf.compiler.CodeGeneratorResponse.File} returns this */proto.google.protobuf.compiler.CodeGeneratorResponse.File.prototype.setContent = function(value) {  return jspb.Message.setField(this, 15, value);};/** * Clears the field making it undefined. * @return {!proto.google.protobuf.compiler.CodeGeneratorResponse.File} returns this */proto.google.protobuf.compiler.CodeGeneratorResponse.File.prototype.clearContent = function() {  return jspb.Message.setField(this, 15, undefined);};/** * Returns whether this field is set. * @return {boolean} */proto.google.protobuf.compiler.CodeGeneratorResponse.File.prototype.hasContent = function() {  return jspb.Message.getField(this, 15) != null;};/** * optional google.protobuf.GeneratedCodeInfo generated_code_info = 16; * @return {?proto.google.protobuf.GeneratedCodeInfo} */proto.google.protobuf.compiler.CodeGeneratorResponse.File.prototype.getGeneratedCodeInfo = function() {  return /** @type{?proto.google.protobuf.GeneratedCodeInfo} */ (    jspb.Message.getWrapperField(this, google_protobuf_descriptor_pb.GeneratedCodeInfo, 16));};/** * @param {?proto.google.protobuf.GeneratedCodeInfo|undefined} value * @return {!proto.google.protobuf.compiler.CodeGeneratorResponse.File} returns this*/proto.google.protobuf.compiler.CodeGeneratorResponse.File.prototype.setGeneratedCodeInfo = function(value) {  return jspb.Message.setWrapperField(this, 16, value);};/** * Clears the message field making it undefined. * @return {!proto.google.protobuf.compiler.CodeGeneratorResponse.File} returns this */proto.google.protobuf.compiler.CodeGeneratorResponse.File.prototype.clearGeneratedCodeInfo = function() {  return this.setGeneratedCodeInfo(undefined);};/** * Returns whether this field is set. * @return {boolean} */proto.google.protobuf.compiler.CodeGeneratorResponse.File.prototype.hasGeneratedCodeInfo = function() {  return jspb.Message.getField(this, 16) != null;};/** * optional string error = 1; * @return {string} */proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.getError = function() {  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));};/** * @param {string} value * @return {!proto.google.protobuf.compiler.CodeGeneratorResponse} returns this */proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.setError = function(value) {  return jspb.Message.setField(this, 1, value);};/** * Clears the field making it undefined. * @return {!proto.google.protobuf.compiler.CodeGeneratorResponse} returns this */proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.clearError = function() {  return jspb.Message.setField(this, 1, undefined);};/** * Returns whether this field is set. * @return {boolean} */proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.hasError = function() {  return jspb.Message.getField(this, 1) != null;};/** * optional uint64 supported_features = 2; * @return {number} */proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.getSupportedFeatures = function() {  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));};/** * @param {number} value * @return {!proto.google.protobuf.compiler.CodeGeneratorResponse} returns this */proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.setSupportedFeatures = function(value) {  return jspb.Message.setField(this, 2, value);};/** * Clears the field making it undefined. * @return {!proto.google.protobuf.compiler.CodeGeneratorResponse} returns this */proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.clearSupportedFeatures = function() {  return jspb.Message.setField(this, 2, undefined);};/** * Returns whether this field is set. * @return {boolean} */proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.hasSupportedFeatures = function() {  return jspb.Message.getField(this, 2) != null;};/** * optional int32 minimum_edition = 3; * @return {number} */proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.getMinimumEdition = function() {  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));};/** * @param {number} value * @return {!proto.google.protobuf.compiler.CodeGeneratorResponse} returns this */proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.setMinimumEdition = function(value) {  return jspb.Message.setField(this, 3, value);};/** * Clears the field making it undefined. * @return {!proto.google.protobuf.compiler.CodeGeneratorResponse} returns this */proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.clearMinimumEdition = function() {  return jspb.Message.setField(this, 3, undefined);};/** * Returns whether this field is set. * @return {boolean} */proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.hasMinimumEdition = function() {  return jspb.Message.getField(this, 3) != null;};/** * optional int32 maximum_edition = 4; * @return {number} */proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.getMaximumEdition = function() {  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));};/** * @param {number} value * @return {!proto.google.protobuf.compiler.CodeGeneratorResponse} returns this */proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.setMaximumEdition = function(value) {  return jspb.Message.setField(this, 4, value);};/** * Clears the field making it undefined. * @return {!proto.google.protobuf.compiler.CodeGeneratorResponse} returns this */proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.clearMaximumEdition = function() {  return jspb.Message.setField(this, 4, undefined);};/** * Returns whether this field is set. * @return {boolean} */proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.hasMaximumEdition = function() {  return jspb.Message.getField(this, 4) != null;};/** * repeated File file = 15; * @return {!Array<!proto.google.protobuf.compiler.CodeGeneratorResponse.File>} */proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.getFileList = function() {  return /** @type{!Array<!proto.google.protobuf.compiler.CodeGeneratorResponse.File>} */ (    jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.compiler.CodeGeneratorResponse.File, 15));};/** * @param {!Array<!proto.google.protobuf.compiler.CodeGeneratorResponse.File>} value * @return {!proto.google.protobuf.compiler.CodeGeneratorResponse} returns this*/proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.setFileList = function(value) {  return jspb.Message.setRepeatedWrapperField(this, 15, value);};/** * @param {!proto.google.protobuf.compiler.CodeGeneratorResponse.File=} opt_value * @param {number=} opt_index * @return {!proto.google.protobuf.compiler.CodeGeneratorResponse.File} */proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.addFile = function(opt_value, opt_index) {  return jspb.Message.addToRepeatedWrapperField(this, 15, opt_value, proto.google.protobuf.compiler.CodeGeneratorResponse.File, opt_index);};/** * Clears the list making it empty but non-null. * @return {!proto.google.protobuf.compiler.CodeGeneratorResponse} returns this */proto.google.protobuf.compiler.CodeGeneratorResponse.prototype.clearFileList = function() {  return this.setFileList([]);};goog.object.extend(exports, proto.google.protobuf.compiler);
 |