agones.dev/agones@v1.53.0/sdks/nodejs/lib/beta/google/api/client_pb.js (about)

     1  // source: google/api/client.proto
     2  /**
     3   * @fileoverview
     4   * @enhanceable
     5   * @suppress {missingRequire} reports error on implicit type usages.
     6   * @suppress {messageConventions} JS Compiler reports an error if a variable or
     7   *     field starts with 'MSG_' and isn't a translatable message.
     8   * @public
     9   */
    10  // GENERATED CODE -- DO NOT EDIT!
    11  /* eslint-disable */
    12  // @ts-nocheck
    13  
    14  var jspb = require('google-protobuf');
    15  var goog = jspb;
    16  var global = Function('return this')();
    17  
    18  var google_api_launch_stage_pb = require('../../google/api/launch_stage_pb.js');
    19  goog.object.extend(proto, google_api_launch_stage_pb);
    20  var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
    21  goog.object.extend(proto, google_protobuf_descriptor_pb);
    22  var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js');
    23  goog.object.extend(proto, google_protobuf_duration_pb);
    24  goog.exportSymbol('proto.google.api.ClientLibraryDestination', null, global);
    25  goog.exportSymbol('proto.google.api.ClientLibraryOrganization', null, global);
    26  goog.exportSymbol('proto.google.api.ClientLibrarySettings', null, global);
    27  goog.exportSymbol('proto.google.api.CommonLanguageSettings', null, global);
    28  goog.exportSymbol('proto.google.api.CppSettings', null, global);
    29  goog.exportSymbol('proto.google.api.DotnetSettings', null, global);
    30  goog.exportSymbol('proto.google.api.GoSettings', null, global);
    31  goog.exportSymbol('proto.google.api.JavaSettings', null, global);
    32  goog.exportSymbol('proto.google.api.MethodSettings', null, global);
    33  goog.exportSymbol('proto.google.api.MethodSettings.LongRunning', null, global);
    34  goog.exportSymbol('proto.google.api.NodeSettings', null, global);
    35  goog.exportSymbol('proto.google.api.PhpSettings', null, global);
    36  goog.exportSymbol('proto.google.api.Publishing', null, global);
    37  goog.exportSymbol('proto.google.api.PythonSettings', null, global);
    38  goog.exportSymbol('proto.google.api.RubySettings', null, global);
    39  goog.exportSymbol('proto.google.api.defaultHost', null, global);
    40  goog.exportSymbol('proto.google.api.methodSignatureList', null, global);
    41  goog.exportSymbol('proto.google.api.oauthScopes', null, global);
    42  /**
    43   * Generated by JsPbCodeGenerator.
    44   * @param {Array=} opt_data Optional initial data array, typically from a
    45   * server response, or constructed directly in Javascript. The array is used
    46   * in place and becomes part of the constructed object. It is not cloned.
    47   * If no data is provided, the constructed object will be empty, but still
    48   * valid.
    49   * @extends {jspb.Message}
    50   * @constructor
    51   */
    52  proto.google.api.CommonLanguageSettings = function(opt_data) {
    53    jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.CommonLanguageSettings.repeatedFields_, null);
    54  };
    55  goog.inherits(proto.google.api.CommonLanguageSettings, jspb.Message);
    56  if (goog.DEBUG && !COMPILED) {
    57    /**
    58     * @public
    59     * @override
    60     */
    61    proto.google.api.CommonLanguageSettings.displayName = 'proto.google.api.CommonLanguageSettings';
    62  }
    63  /**
    64   * Generated by JsPbCodeGenerator.
    65   * @param {Array=} opt_data Optional initial data array, typically from a
    66   * server response, or constructed directly in Javascript. The array is used
    67   * in place and becomes part of the constructed object. It is not cloned.
    68   * If no data is provided, the constructed object will be empty, but still
    69   * valid.
    70   * @extends {jspb.Message}
    71   * @constructor
    72   */
    73  proto.google.api.ClientLibrarySettings = function(opt_data) {
    74    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
    75  };
    76  goog.inherits(proto.google.api.ClientLibrarySettings, jspb.Message);
    77  if (goog.DEBUG && !COMPILED) {
    78    /**
    79     * @public
    80     * @override
    81     */
    82    proto.google.api.ClientLibrarySettings.displayName = 'proto.google.api.ClientLibrarySettings';
    83  }
    84  /**
    85   * Generated by JsPbCodeGenerator.
    86   * @param {Array=} opt_data Optional initial data array, typically from a
    87   * server response, or constructed directly in Javascript. The array is used
    88   * in place and becomes part of the constructed object. It is not cloned.
    89   * If no data is provided, the constructed object will be empty, but still
    90   * valid.
    91   * @extends {jspb.Message}
    92   * @constructor
    93   */
    94  proto.google.api.Publishing = function(opt_data) {
    95    jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Publishing.repeatedFields_, null);
    96  };
    97  goog.inherits(proto.google.api.Publishing, jspb.Message);
    98  if (goog.DEBUG && !COMPILED) {
    99    /**
   100     * @public
   101     * @override
   102     */
   103    proto.google.api.Publishing.displayName = 'proto.google.api.Publishing';
   104  }
   105  /**
   106   * Generated by JsPbCodeGenerator.
   107   * @param {Array=} opt_data Optional initial data array, typically from a
   108   * server response, or constructed directly in Javascript. The array is used
   109   * in place and becomes part of the constructed object. It is not cloned.
   110   * If no data is provided, the constructed object will be empty, but still
   111   * valid.
   112   * @extends {jspb.Message}
   113   * @constructor
   114   */
   115  proto.google.api.JavaSettings = function(opt_data) {
   116    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
   117  };
   118  goog.inherits(proto.google.api.JavaSettings, jspb.Message);
   119  if (goog.DEBUG && !COMPILED) {
   120    /**
   121     * @public
   122     * @override
   123     */
   124    proto.google.api.JavaSettings.displayName = 'proto.google.api.JavaSettings';
   125  }
   126  /**
   127   * Generated by JsPbCodeGenerator.
   128   * @param {Array=} opt_data Optional initial data array, typically from a
   129   * server response, or constructed directly in Javascript. The array is used
   130   * in place and becomes part of the constructed object. It is not cloned.
   131   * If no data is provided, the constructed object will be empty, but still
   132   * valid.
   133   * @extends {jspb.Message}
   134   * @constructor
   135   */
   136  proto.google.api.CppSettings = function(opt_data) {
   137    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
   138  };
   139  goog.inherits(proto.google.api.CppSettings, jspb.Message);
   140  if (goog.DEBUG && !COMPILED) {
   141    /**
   142     * @public
   143     * @override
   144     */
   145    proto.google.api.CppSettings.displayName = 'proto.google.api.CppSettings';
   146  }
   147  /**
   148   * Generated by JsPbCodeGenerator.
   149   * @param {Array=} opt_data Optional initial data array, typically from a
   150   * server response, or constructed directly in Javascript. The array is used
   151   * in place and becomes part of the constructed object. It is not cloned.
   152   * If no data is provided, the constructed object will be empty, but still
   153   * valid.
   154   * @extends {jspb.Message}
   155   * @constructor
   156   */
   157  proto.google.api.PhpSettings = function(opt_data) {
   158    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
   159  };
   160  goog.inherits(proto.google.api.PhpSettings, jspb.Message);
   161  if (goog.DEBUG && !COMPILED) {
   162    /**
   163     * @public
   164     * @override
   165     */
   166    proto.google.api.PhpSettings.displayName = 'proto.google.api.PhpSettings';
   167  }
   168  /**
   169   * Generated by JsPbCodeGenerator.
   170   * @param {Array=} opt_data Optional initial data array, typically from a
   171   * server response, or constructed directly in Javascript. The array is used
   172   * in place and becomes part of the constructed object. It is not cloned.
   173   * If no data is provided, the constructed object will be empty, but still
   174   * valid.
   175   * @extends {jspb.Message}
   176   * @constructor
   177   */
   178  proto.google.api.PythonSettings = function(opt_data) {
   179    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
   180  };
   181  goog.inherits(proto.google.api.PythonSettings, jspb.Message);
   182  if (goog.DEBUG && !COMPILED) {
   183    /**
   184     * @public
   185     * @override
   186     */
   187    proto.google.api.PythonSettings.displayName = 'proto.google.api.PythonSettings';
   188  }
   189  /**
   190   * Generated by JsPbCodeGenerator.
   191   * @param {Array=} opt_data Optional initial data array, typically from a
   192   * server response, or constructed directly in Javascript. The array is used
   193   * in place and becomes part of the constructed object. It is not cloned.
   194   * If no data is provided, the constructed object will be empty, but still
   195   * valid.
   196   * @extends {jspb.Message}
   197   * @constructor
   198   */
   199  proto.google.api.NodeSettings = function(opt_data) {
   200    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
   201  };
   202  goog.inherits(proto.google.api.NodeSettings, jspb.Message);
   203  if (goog.DEBUG && !COMPILED) {
   204    /**
   205     * @public
   206     * @override
   207     */
   208    proto.google.api.NodeSettings.displayName = 'proto.google.api.NodeSettings';
   209  }
   210  /**
   211   * Generated by JsPbCodeGenerator.
   212   * @param {Array=} opt_data Optional initial data array, typically from a
   213   * server response, or constructed directly in Javascript. The array is used
   214   * in place and becomes part of the constructed object. It is not cloned.
   215   * If no data is provided, the constructed object will be empty, but still
   216   * valid.
   217   * @extends {jspb.Message}
   218   * @constructor
   219   */
   220  proto.google.api.DotnetSettings = function(opt_data) {
   221    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
   222  };
   223  goog.inherits(proto.google.api.DotnetSettings, jspb.Message);
   224  if (goog.DEBUG && !COMPILED) {
   225    /**
   226     * @public
   227     * @override
   228     */
   229    proto.google.api.DotnetSettings.displayName = 'proto.google.api.DotnetSettings';
   230  }
   231  /**
   232   * Generated by JsPbCodeGenerator.
   233   * @param {Array=} opt_data Optional initial data array, typically from a
   234   * server response, or constructed directly in Javascript. The array is used
   235   * in place and becomes part of the constructed object. It is not cloned.
   236   * If no data is provided, the constructed object will be empty, but still
   237   * valid.
   238   * @extends {jspb.Message}
   239   * @constructor
   240   */
   241  proto.google.api.RubySettings = function(opt_data) {
   242    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
   243  };
   244  goog.inherits(proto.google.api.RubySettings, jspb.Message);
   245  if (goog.DEBUG && !COMPILED) {
   246    /**
   247     * @public
   248     * @override
   249     */
   250    proto.google.api.RubySettings.displayName = 'proto.google.api.RubySettings';
   251  }
   252  /**
   253   * Generated by JsPbCodeGenerator.
   254   * @param {Array=} opt_data Optional initial data array, typically from a
   255   * server response, or constructed directly in Javascript. The array is used
   256   * in place and becomes part of the constructed object. It is not cloned.
   257   * If no data is provided, the constructed object will be empty, but still
   258   * valid.
   259   * @extends {jspb.Message}
   260   * @constructor
   261   */
   262  proto.google.api.GoSettings = function(opt_data) {
   263    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
   264  };
   265  goog.inherits(proto.google.api.GoSettings, jspb.Message);
   266  if (goog.DEBUG && !COMPILED) {
   267    /**
   268     * @public
   269     * @override
   270     */
   271    proto.google.api.GoSettings.displayName = 'proto.google.api.GoSettings';
   272  }
   273  /**
   274   * Generated by JsPbCodeGenerator.
   275   * @param {Array=} opt_data Optional initial data array, typically from a
   276   * server response, or constructed directly in Javascript. The array is used
   277   * in place and becomes part of the constructed object. It is not cloned.
   278   * If no data is provided, the constructed object will be empty, but still
   279   * valid.
   280   * @extends {jspb.Message}
   281   * @constructor
   282   */
   283  proto.google.api.MethodSettings = function(opt_data) {
   284    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
   285  };
   286  goog.inherits(proto.google.api.MethodSettings, jspb.Message);
   287  if (goog.DEBUG && !COMPILED) {
   288    /**
   289     * @public
   290     * @override
   291     */
   292    proto.google.api.MethodSettings.displayName = 'proto.google.api.MethodSettings';
   293  }
   294  /**
   295   * Generated by JsPbCodeGenerator.
   296   * @param {Array=} opt_data Optional initial data array, typically from a
   297   * server response, or constructed directly in Javascript. The array is used
   298   * in place and becomes part of the constructed object. It is not cloned.
   299   * If no data is provided, the constructed object will be empty, but still
   300   * valid.
   301   * @extends {jspb.Message}
   302   * @constructor
   303   */
   304  proto.google.api.MethodSettings.LongRunning = function(opt_data) {
   305    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
   306  };
   307  goog.inherits(proto.google.api.MethodSettings.LongRunning, jspb.Message);
   308  if (goog.DEBUG && !COMPILED) {
   309    /**
   310     * @public
   311     * @override
   312     */
   313    proto.google.api.MethodSettings.LongRunning.displayName = 'proto.google.api.MethodSettings.LongRunning';
   314  }
   315  
   316  /**
   317   * List of repeated fields within this message type.
   318   * @private {!Array<number>}
   319   * @const
   320   */
   321  proto.google.api.CommonLanguageSettings.repeatedFields_ = [2];
   322  
   323  
   324  
   325  if (jspb.Message.GENERATE_TO_OBJECT) {
   326  /**
   327   * Creates an object representation of this proto.
   328   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   329   * Optional fields that are not set will be set to undefined.
   330   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   331   * For the list of reserved names please see:
   332   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   333   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   334   *     JSPB instance for transitional soy proto support:
   335   *     http://goto/soy-param-migration
   336   * @return {!Object}
   337   */
   338  proto.google.api.CommonLanguageSettings.prototype.toObject = function(opt_includeInstance) {
   339    return proto.google.api.CommonLanguageSettings.toObject(opt_includeInstance, this);
   340  };
   341  
   342  
   343  /**
   344   * Static version of the {@see toObject} method.
   345   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   346   *     the JSPB instance for transitional soy proto support:
   347   *     http://goto/soy-param-migration
   348   * @param {!proto.google.api.CommonLanguageSettings} msg The msg instance to transform.
   349   * @return {!Object}
   350   * @suppress {unusedLocalVariables} f is only used for nested messages
   351   */
   352  proto.google.api.CommonLanguageSettings.toObject = function(includeInstance, msg) {
   353    var f, obj = {
   354      referenceDocsUri: jspb.Message.getFieldWithDefault(msg, 1, ""),
   355      destinationsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
   356    };
   357  
   358    if (includeInstance) {
   359      obj.$jspbMessageInstance = msg;
   360    }
   361    return obj;
   362  };
   363  }
   364  
   365  
   366  /**
   367   * Deserializes binary data (in protobuf wire format).
   368   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   369   * @return {!proto.google.api.CommonLanguageSettings}
   370   */
   371  proto.google.api.CommonLanguageSettings.deserializeBinary = function(bytes) {
   372    var reader = new jspb.BinaryReader(bytes);
   373    var msg = new proto.google.api.CommonLanguageSettings;
   374    return proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader(msg, reader);
   375  };
   376  
   377  
   378  /**
   379   * Deserializes binary data (in protobuf wire format) from the
   380   * given reader into the given message object.
   381   * @param {!proto.google.api.CommonLanguageSettings} msg The message object to deserialize into.
   382   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   383   * @return {!proto.google.api.CommonLanguageSettings}
   384   */
   385  proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader = function(msg, reader) {
   386    while (reader.nextField()) {
   387      if (reader.isEndGroup()) {
   388        break;
   389      }
   390      var field = reader.getFieldNumber();
   391      switch (field) {
   392      case 1:
   393        var value = /** @type {string} */ (reader.readString());
   394        msg.setReferenceDocsUri(value);
   395        break;
   396      case 2:
   397        var values = /** @type {!Array<!proto.google.api.ClientLibraryDestination>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
   398        for (var i = 0; i < values.length; i++) {
   399          msg.addDestinations(values[i]);
   400        }
   401        break;
   402      default:
   403        reader.skipField();
   404        break;
   405      }
   406    }
   407    return msg;
   408  };
   409  
   410  
   411  /**
   412   * Serializes the message to binary data (in protobuf wire format).
   413   * @return {!Uint8Array}
   414   */
   415  proto.google.api.CommonLanguageSettings.prototype.serializeBinary = function() {
   416    var writer = new jspb.BinaryWriter();
   417    proto.google.api.CommonLanguageSettings.serializeBinaryToWriter(this, writer);
   418    return writer.getResultBuffer();
   419  };
   420  
   421  
   422  /**
   423   * Serializes the given message to binary data (in protobuf wire
   424   * format), writing to the given BinaryWriter.
   425   * @param {!proto.google.api.CommonLanguageSettings} message
   426   * @param {!jspb.BinaryWriter} writer
   427   * @suppress {unusedLocalVariables} f is only used for nested messages
   428   */
   429  proto.google.api.CommonLanguageSettings.serializeBinaryToWriter = function(message, writer) {
   430    var f = undefined;
   431    f = message.getReferenceDocsUri();
   432    if (f.length > 0) {
   433      writer.writeString(
   434        1,
   435        f
   436      );
   437    }
   438    f = message.getDestinationsList();
   439    if (f.length > 0) {
   440      writer.writePackedEnum(
   441        2,
   442        f
   443      );
   444    }
   445  };
   446  
   447  
   448  /**
   449   * optional string reference_docs_uri = 1;
   450   * @return {string}
   451   */
   452  proto.google.api.CommonLanguageSettings.prototype.getReferenceDocsUri = function() {
   453    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
   454  };
   455  
   456  
   457  /**
   458   * @param {string} value
   459   * @return {!proto.google.api.CommonLanguageSettings} returns this
   460   */
   461  proto.google.api.CommonLanguageSettings.prototype.setReferenceDocsUri = function(value) {
   462    return jspb.Message.setProto3StringField(this, 1, value);
   463  };
   464  
   465  
   466  /**
   467   * repeated ClientLibraryDestination destinations = 2;
   468   * @return {!Array<!proto.google.api.ClientLibraryDestination>}
   469   */
   470  proto.google.api.CommonLanguageSettings.prototype.getDestinationsList = function() {
   471    return /** @type {!Array<!proto.google.api.ClientLibraryDestination>} */ (jspb.Message.getRepeatedField(this, 2));
   472  };
   473  
   474  
   475  /**
   476   * @param {!Array<!proto.google.api.ClientLibraryDestination>} value
   477   * @return {!proto.google.api.CommonLanguageSettings} returns this
   478   */
   479  proto.google.api.CommonLanguageSettings.prototype.setDestinationsList = function(value) {
   480    return jspb.Message.setField(this, 2, value || []);
   481  };
   482  
   483  
   484  /**
   485   * @param {!proto.google.api.ClientLibraryDestination} value
   486   * @param {number=} opt_index
   487   * @return {!proto.google.api.CommonLanguageSettings} returns this
   488   */
   489  proto.google.api.CommonLanguageSettings.prototype.addDestinations = function(value, opt_index) {
   490    return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
   491  };
   492  
   493  
   494  /**
   495   * Clears the list making it empty but non-null.
   496   * @return {!proto.google.api.CommonLanguageSettings} returns this
   497   */
   498  proto.google.api.CommonLanguageSettings.prototype.clearDestinationsList = function() {
   499    return this.setDestinationsList([]);
   500  };
   501  
   502  
   503  
   504  
   505  
   506  if (jspb.Message.GENERATE_TO_OBJECT) {
   507  /**
   508   * Creates an object representation of this proto.
   509   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   510   * Optional fields that are not set will be set to undefined.
   511   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   512   * For the list of reserved names please see:
   513   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   514   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   515   *     JSPB instance for transitional soy proto support:
   516   *     http://goto/soy-param-migration
   517   * @return {!Object}
   518   */
   519  proto.google.api.ClientLibrarySettings.prototype.toObject = function(opt_includeInstance) {
   520    return proto.google.api.ClientLibrarySettings.toObject(opt_includeInstance, this);
   521  };
   522  
   523  
   524  /**
   525   * Static version of the {@see toObject} method.
   526   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   527   *     the JSPB instance for transitional soy proto support:
   528   *     http://goto/soy-param-migration
   529   * @param {!proto.google.api.ClientLibrarySettings} msg The msg instance to transform.
   530   * @return {!Object}
   531   * @suppress {unusedLocalVariables} f is only used for nested messages
   532   */
   533  proto.google.api.ClientLibrarySettings.toObject = function(includeInstance, msg) {
   534    var f, obj = {
   535      version: jspb.Message.getFieldWithDefault(msg, 1, ""),
   536      launchStage: jspb.Message.getFieldWithDefault(msg, 2, 0),
   537      restNumericEnums: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
   538      javaSettings: (f = msg.getJavaSettings()) && proto.google.api.JavaSettings.toObject(includeInstance, f),
   539      cppSettings: (f = msg.getCppSettings()) && proto.google.api.CppSettings.toObject(includeInstance, f),
   540      phpSettings: (f = msg.getPhpSettings()) && proto.google.api.PhpSettings.toObject(includeInstance, f),
   541      pythonSettings: (f = msg.getPythonSettings()) && proto.google.api.PythonSettings.toObject(includeInstance, f),
   542      nodeSettings: (f = msg.getNodeSettings()) && proto.google.api.NodeSettings.toObject(includeInstance, f),
   543      dotnetSettings: (f = msg.getDotnetSettings()) && proto.google.api.DotnetSettings.toObject(includeInstance, f),
   544      rubySettings: (f = msg.getRubySettings()) && proto.google.api.RubySettings.toObject(includeInstance, f),
   545      goSettings: (f = msg.getGoSettings()) && proto.google.api.GoSettings.toObject(includeInstance, f)
   546    };
   547  
   548    if (includeInstance) {
   549      obj.$jspbMessageInstance = msg;
   550    }
   551    return obj;
   552  };
   553  }
   554  
   555  
   556  /**
   557   * Deserializes binary data (in protobuf wire format).
   558   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   559   * @return {!proto.google.api.ClientLibrarySettings}
   560   */
   561  proto.google.api.ClientLibrarySettings.deserializeBinary = function(bytes) {
   562    var reader = new jspb.BinaryReader(bytes);
   563    var msg = new proto.google.api.ClientLibrarySettings;
   564    return proto.google.api.ClientLibrarySettings.deserializeBinaryFromReader(msg, reader);
   565  };
   566  
   567  
   568  /**
   569   * Deserializes binary data (in protobuf wire format) from the
   570   * given reader into the given message object.
   571   * @param {!proto.google.api.ClientLibrarySettings} msg The message object to deserialize into.
   572   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   573   * @return {!proto.google.api.ClientLibrarySettings}
   574   */
   575  proto.google.api.ClientLibrarySettings.deserializeBinaryFromReader = function(msg, reader) {
   576    while (reader.nextField()) {
   577      if (reader.isEndGroup()) {
   578        break;
   579      }
   580      var field = reader.getFieldNumber();
   581      switch (field) {
   582      case 1:
   583        var value = /** @type {string} */ (reader.readString());
   584        msg.setVersion(value);
   585        break;
   586      case 2:
   587        var value = /** @type {!proto.google.api.LaunchStage} */ (reader.readEnum());
   588        msg.setLaunchStage(value);
   589        break;
   590      case 3:
   591        var value = /** @type {boolean} */ (reader.readBool());
   592        msg.setRestNumericEnums(value);
   593        break;
   594      case 21:
   595        var value = new proto.google.api.JavaSettings;
   596        reader.readMessage(value,proto.google.api.JavaSettings.deserializeBinaryFromReader);
   597        msg.setJavaSettings(value);
   598        break;
   599      case 22:
   600        var value = new proto.google.api.CppSettings;
   601        reader.readMessage(value,proto.google.api.CppSettings.deserializeBinaryFromReader);
   602        msg.setCppSettings(value);
   603        break;
   604      case 23:
   605        var value = new proto.google.api.PhpSettings;
   606        reader.readMessage(value,proto.google.api.PhpSettings.deserializeBinaryFromReader);
   607        msg.setPhpSettings(value);
   608        break;
   609      case 24:
   610        var value = new proto.google.api.PythonSettings;
   611        reader.readMessage(value,proto.google.api.PythonSettings.deserializeBinaryFromReader);
   612        msg.setPythonSettings(value);
   613        break;
   614      case 25:
   615        var value = new proto.google.api.NodeSettings;
   616        reader.readMessage(value,proto.google.api.NodeSettings.deserializeBinaryFromReader);
   617        msg.setNodeSettings(value);
   618        break;
   619      case 26:
   620        var value = new proto.google.api.DotnetSettings;
   621        reader.readMessage(value,proto.google.api.DotnetSettings.deserializeBinaryFromReader);
   622        msg.setDotnetSettings(value);
   623        break;
   624      case 27:
   625        var value = new proto.google.api.RubySettings;
   626        reader.readMessage(value,proto.google.api.RubySettings.deserializeBinaryFromReader);
   627        msg.setRubySettings(value);
   628        break;
   629      case 28:
   630        var value = new proto.google.api.GoSettings;
   631        reader.readMessage(value,proto.google.api.GoSettings.deserializeBinaryFromReader);
   632        msg.setGoSettings(value);
   633        break;
   634      default:
   635        reader.skipField();
   636        break;
   637      }
   638    }
   639    return msg;
   640  };
   641  
   642  
   643  /**
   644   * Serializes the message to binary data (in protobuf wire format).
   645   * @return {!Uint8Array}
   646   */
   647  proto.google.api.ClientLibrarySettings.prototype.serializeBinary = function() {
   648    var writer = new jspb.BinaryWriter();
   649    proto.google.api.ClientLibrarySettings.serializeBinaryToWriter(this, writer);
   650    return writer.getResultBuffer();
   651  };
   652  
   653  
   654  /**
   655   * Serializes the given message to binary data (in protobuf wire
   656   * format), writing to the given BinaryWriter.
   657   * @param {!proto.google.api.ClientLibrarySettings} message
   658   * @param {!jspb.BinaryWriter} writer
   659   * @suppress {unusedLocalVariables} f is only used for nested messages
   660   */
   661  proto.google.api.ClientLibrarySettings.serializeBinaryToWriter = function(message, writer) {
   662    var f = undefined;
   663    f = message.getVersion();
   664    if (f.length > 0) {
   665      writer.writeString(
   666        1,
   667        f
   668      );
   669    }
   670    f = message.getLaunchStage();
   671    if (f !== 0.0) {
   672      writer.writeEnum(
   673        2,
   674        f
   675      );
   676    }
   677    f = message.getRestNumericEnums();
   678    if (f) {
   679      writer.writeBool(
   680        3,
   681        f
   682      );
   683    }
   684    f = message.getJavaSettings();
   685    if (f != null) {
   686      writer.writeMessage(
   687        21,
   688        f,
   689        proto.google.api.JavaSettings.serializeBinaryToWriter
   690      );
   691    }
   692    f = message.getCppSettings();
   693    if (f != null) {
   694      writer.writeMessage(
   695        22,
   696        f,
   697        proto.google.api.CppSettings.serializeBinaryToWriter
   698      );
   699    }
   700    f = message.getPhpSettings();
   701    if (f != null) {
   702      writer.writeMessage(
   703        23,
   704        f,
   705        proto.google.api.PhpSettings.serializeBinaryToWriter
   706      );
   707    }
   708    f = message.getPythonSettings();
   709    if (f != null) {
   710      writer.writeMessage(
   711        24,
   712        f,
   713        proto.google.api.PythonSettings.serializeBinaryToWriter
   714      );
   715    }
   716    f = message.getNodeSettings();
   717    if (f != null) {
   718      writer.writeMessage(
   719        25,
   720        f,
   721        proto.google.api.NodeSettings.serializeBinaryToWriter
   722      );
   723    }
   724    f = message.getDotnetSettings();
   725    if (f != null) {
   726      writer.writeMessage(
   727        26,
   728        f,
   729        proto.google.api.DotnetSettings.serializeBinaryToWriter
   730      );
   731    }
   732    f = message.getRubySettings();
   733    if (f != null) {
   734      writer.writeMessage(
   735        27,
   736        f,
   737        proto.google.api.RubySettings.serializeBinaryToWriter
   738      );
   739    }
   740    f = message.getGoSettings();
   741    if (f != null) {
   742      writer.writeMessage(
   743        28,
   744        f,
   745        proto.google.api.GoSettings.serializeBinaryToWriter
   746      );
   747    }
   748  };
   749  
   750  
   751  /**
   752   * optional string version = 1;
   753   * @return {string}
   754   */
   755  proto.google.api.ClientLibrarySettings.prototype.getVersion = function() {
   756    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
   757  };
   758  
   759  
   760  /**
   761   * @param {string} value
   762   * @return {!proto.google.api.ClientLibrarySettings} returns this
   763   */
   764  proto.google.api.ClientLibrarySettings.prototype.setVersion = function(value) {
   765    return jspb.Message.setProto3StringField(this, 1, value);
   766  };
   767  
   768  
   769  /**
   770   * optional LaunchStage launch_stage = 2;
   771   * @return {!proto.google.api.LaunchStage}
   772   */
   773  proto.google.api.ClientLibrarySettings.prototype.getLaunchStage = function() {
   774    return /** @type {!proto.google.api.LaunchStage} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
   775  };
   776  
   777  
   778  /**
   779   * @param {!proto.google.api.LaunchStage} value
   780   * @return {!proto.google.api.ClientLibrarySettings} returns this
   781   */
   782  proto.google.api.ClientLibrarySettings.prototype.setLaunchStage = function(value) {
   783    return jspb.Message.setProto3EnumField(this, 2, value);
   784  };
   785  
   786  
   787  /**
   788   * optional bool rest_numeric_enums = 3;
   789   * @return {boolean}
   790   */
   791  proto.google.api.ClientLibrarySettings.prototype.getRestNumericEnums = function() {
   792    return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
   793  };
   794  
   795  
   796  /**
   797   * @param {boolean} value
   798   * @return {!proto.google.api.ClientLibrarySettings} returns this
   799   */
   800  proto.google.api.ClientLibrarySettings.prototype.setRestNumericEnums = function(value) {
   801    return jspb.Message.setProto3BooleanField(this, 3, value);
   802  };
   803  
   804  
   805  /**
   806   * optional JavaSettings java_settings = 21;
   807   * @return {?proto.google.api.JavaSettings}
   808   */
   809  proto.google.api.ClientLibrarySettings.prototype.getJavaSettings = function() {
   810    return /** @type{?proto.google.api.JavaSettings} */ (
   811      jspb.Message.getWrapperField(this, proto.google.api.JavaSettings, 21));
   812  };
   813  
   814  
   815  /**
   816   * @param {?proto.google.api.JavaSettings|undefined} value
   817   * @return {!proto.google.api.ClientLibrarySettings} returns this
   818  */
   819  proto.google.api.ClientLibrarySettings.prototype.setJavaSettings = function(value) {
   820    return jspb.Message.setWrapperField(this, 21, value);
   821  };
   822  
   823  
   824  /**
   825   * Clears the message field making it undefined.
   826   * @return {!proto.google.api.ClientLibrarySettings} returns this
   827   */
   828  proto.google.api.ClientLibrarySettings.prototype.clearJavaSettings = function() {
   829    return this.setJavaSettings(undefined);
   830  };
   831  
   832  
   833  /**
   834   * Returns whether this field is set.
   835   * @return {boolean}
   836   */
   837  proto.google.api.ClientLibrarySettings.prototype.hasJavaSettings = function() {
   838    return jspb.Message.getField(this, 21) != null;
   839  };
   840  
   841  
   842  /**
   843   * optional CppSettings cpp_settings = 22;
   844   * @return {?proto.google.api.CppSettings}
   845   */
   846  proto.google.api.ClientLibrarySettings.prototype.getCppSettings = function() {
   847    return /** @type{?proto.google.api.CppSettings} */ (
   848      jspb.Message.getWrapperField(this, proto.google.api.CppSettings, 22));
   849  };
   850  
   851  
   852  /**
   853   * @param {?proto.google.api.CppSettings|undefined} value
   854   * @return {!proto.google.api.ClientLibrarySettings} returns this
   855  */
   856  proto.google.api.ClientLibrarySettings.prototype.setCppSettings = function(value) {
   857    return jspb.Message.setWrapperField(this, 22, value);
   858  };
   859  
   860  
   861  /**
   862   * Clears the message field making it undefined.
   863   * @return {!proto.google.api.ClientLibrarySettings} returns this
   864   */
   865  proto.google.api.ClientLibrarySettings.prototype.clearCppSettings = function() {
   866    return this.setCppSettings(undefined);
   867  };
   868  
   869  
   870  /**
   871   * Returns whether this field is set.
   872   * @return {boolean}
   873   */
   874  proto.google.api.ClientLibrarySettings.prototype.hasCppSettings = function() {
   875    return jspb.Message.getField(this, 22) != null;
   876  };
   877  
   878  
   879  /**
   880   * optional PhpSettings php_settings = 23;
   881   * @return {?proto.google.api.PhpSettings}
   882   */
   883  proto.google.api.ClientLibrarySettings.prototype.getPhpSettings = function() {
   884    return /** @type{?proto.google.api.PhpSettings} */ (
   885      jspb.Message.getWrapperField(this, proto.google.api.PhpSettings, 23));
   886  };
   887  
   888  
   889  /**
   890   * @param {?proto.google.api.PhpSettings|undefined} value
   891   * @return {!proto.google.api.ClientLibrarySettings} returns this
   892  */
   893  proto.google.api.ClientLibrarySettings.prototype.setPhpSettings = function(value) {
   894    return jspb.Message.setWrapperField(this, 23, value);
   895  };
   896  
   897  
   898  /**
   899   * Clears the message field making it undefined.
   900   * @return {!proto.google.api.ClientLibrarySettings} returns this
   901   */
   902  proto.google.api.ClientLibrarySettings.prototype.clearPhpSettings = function() {
   903    return this.setPhpSettings(undefined);
   904  };
   905  
   906  
   907  /**
   908   * Returns whether this field is set.
   909   * @return {boolean}
   910   */
   911  proto.google.api.ClientLibrarySettings.prototype.hasPhpSettings = function() {
   912    return jspb.Message.getField(this, 23) != null;
   913  };
   914  
   915  
   916  /**
   917   * optional PythonSettings python_settings = 24;
   918   * @return {?proto.google.api.PythonSettings}
   919   */
   920  proto.google.api.ClientLibrarySettings.prototype.getPythonSettings = function() {
   921    return /** @type{?proto.google.api.PythonSettings} */ (
   922      jspb.Message.getWrapperField(this, proto.google.api.PythonSettings, 24));
   923  };
   924  
   925  
   926  /**
   927   * @param {?proto.google.api.PythonSettings|undefined} value
   928   * @return {!proto.google.api.ClientLibrarySettings} returns this
   929  */
   930  proto.google.api.ClientLibrarySettings.prototype.setPythonSettings = function(value) {
   931    return jspb.Message.setWrapperField(this, 24, value);
   932  };
   933  
   934  
   935  /**
   936   * Clears the message field making it undefined.
   937   * @return {!proto.google.api.ClientLibrarySettings} returns this
   938   */
   939  proto.google.api.ClientLibrarySettings.prototype.clearPythonSettings = function() {
   940    return this.setPythonSettings(undefined);
   941  };
   942  
   943  
   944  /**
   945   * Returns whether this field is set.
   946   * @return {boolean}
   947   */
   948  proto.google.api.ClientLibrarySettings.prototype.hasPythonSettings = function() {
   949    return jspb.Message.getField(this, 24) != null;
   950  };
   951  
   952  
   953  /**
   954   * optional NodeSettings node_settings = 25;
   955   * @return {?proto.google.api.NodeSettings}
   956   */
   957  proto.google.api.ClientLibrarySettings.prototype.getNodeSettings = function() {
   958    return /** @type{?proto.google.api.NodeSettings} */ (
   959      jspb.Message.getWrapperField(this, proto.google.api.NodeSettings, 25));
   960  };
   961  
   962  
   963  /**
   964   * @param {?proto.google.api.NodeSettings|undefined} value
   965   * @return {!proto.google.api.ClientLibrarySettings} returns this
   966  */
   967  proto.google.api.ClientLibrarySettings.prototype.setNodeSettings = function(value) {
   968    return jspb.Message.setWrapperField(this, 25, value);
   969  };
   970  
   971  
   972  /**
   973   * Clears the message field making it undefined.
   974   * @return {!proto.google.api.ClientLibrarySettings} returns this
   975   */
   976  proto.google.api.ClientLibrarySettings.prototype.clearNodeSettings = function() {
   977    return this.setNodeSettings(undefined);
   978  };
   979  
   980  
   981  /**
   982   * Returns whether this field is set.
   983   * @return {boolean}
   984   */
   985  proto.google.api.ClientLibrarySettings.prototype.hasNodeSettings = function() {
   986    return jspb.Message.getField(this, 25) != null;
   987  };
   988  
   989  
   990  /**
   991   * optional DotnetSettings dotnet_settings = 26;
   992   * @return {?proto.google.api.DotnetSettings}
   993   */
   994  proto.google.api.ClientLibrarySettings.prototype.getDotnetSettings = function() {
   995    return /** @type{?proto.google.api.DotnetSettings} */ (
   996      jspb.Message.getWrapperField(this, proto.google.api.DotnetSettings, 26));
   997  };
   998  
   999  
  1000  /**
  1001   * @param {?proto.google.api.DotnetSettings|undefined} value
  1002   * @return {!proto.google.api.ClientLibrarySettings} returns this
  1003  */
  1004  proto.google.api.ClientLibrarySettings.prototype.setDotnetSettings = function(value) {
  1005    return jspb.Message.setWrapperField(this, 26, value);
  1006  };
  1007  
  1008  
  1009  /**
  1010   * Clears the message field making it undefined.
  1011   * @return {!proto.google.api.ClientLibrarySettings} returns this
  1012   */
  1013  proto.google.api.ClientLibrarySettings.prototype.clearDotnetSettings = function() {
  1014    return this.setDotnetSettings(undefined);
  1015  };
  1016  
  1017  
  1018  /**
  1019   * Returns whether this field is set.
  1020   * @return {boolean}
  1021   */
  1022  proto.google.api.ClientLibrarySettings.prototype.hasDotnetSettings = function() {
  1023    return jspb.Message.getField(this, 26) != null;
  1024  };
  1025  
  1026  
  1027  /**
  1028   * optional RubySettings ruby_settings = 27;
  1029   * @return {?proto.google.api.RubySettings}
  1030   */
  1031  proto.google.api.ClientLibrarySettings.prototype.getRubySettings = function() {
  1032    return /** @type{?proto.google.api.RubySettings} */ (
  1033      jspb.Message.getWrapperField(this, proto.google.api.RubySettings, 27));
  1034  };
  1035  
  1036  
  1037  /**
  1038   * @param {?proto.google.api.RubySettings|undefined} value
  1039   * @return {!proto.google.api.ClientLibrarySettings} returns this
  1040  */
  1041  proto.google.api.ClientLibrarySettings.prototype.setRubySettings = function(value) {
  1042    return jspb.Message.setWrapperField(this, 27, value);
  1043  };
  1044  
  1045  
  1046  /**
  1047   * Clears the message field making it undefined.
  1048   * @return {!proto.google.api.ClientLibrarySettings} returns this
  1049   */
  1050  proto.google.api.ClientLibrarySettings.prototype.clearRubySettings = function() {
  1051    return this.setRubySettings(undefined);
  1052  };
  1053  
  1054  
  1055  /**
  1056   * Returns whether this field is set.
  1057   * @return {boolean}
  1058   */
  1059  proto.google.api.ClientLibrarySettings.prototype.hasRubySettings = function() {
  1060    return jspb.Message.getField(this, 27) != null;
  1061  };
  1062  
  1063  
  1064  /**
  1065   * optional GoSettings go_settings = 28;
  1066   * @return {?proto.google.api.GoSettings}
  1067   */
  1068  proto.google.api.ClientLibrarySettings.prototype.getGoSettings = function() {
  1069    return /** @type{?proto.google.api.GoSettings} */ (
  1070      jspb.Message.getWrapperField(this, proto.google.api.GoSettings, 28));
  1071  };
  1072  
  1073  
  1074  /**
  1075   * @param {?proto.google.api.GoSettings|undefined} value
  1076   * @return {!proto.google.api.ClientLibrarySettings} returns this
  1077  */
  1078  proto.google.api.ClientLibrarySettings.prototype.setGoSettings = function(value) {
  1079    return jspb.Message.setWrapperField(this, 28, value);
  1080  };
  1081  
  1082  
  1083  /**
  1084   * Clears the message field making it undefined.
  1085   * @return {!proto.google.api.ClientLibrarySettings} returns this
  1086   */
  1087  proto.google.api.ClientLibrarySettings.prototype.clearGoSettings = function() {
  1088    return this.setGoSettings(undefined);
  1089  };
  1090  
  1091  
  1092  /**
  1093   * Returns whether this field is set.
  1094   * @return {boolean}
  1095   */
  1096  proto.google.api.ClientLibrarySettings.prototype.hasGoSettings = function() {
  1097    return jspb.Message.getField(this, 28) != null;
  1098  };
  1099  
  1100  
  1101  
  1102  /**
  1103   * List of repeated fields within this message type.
  1104   * @private {!Array<number>}
  1105   * @const
  1106   */
  1107  proto.google.api.Publishing.repeatedFields_ = [2,105,109];
  1108  
  1109  
  1110  
  1111  if (jspb.Message.GENERATE_TO_OBJECT) {
  1112  /**
  1113   * Creates an object representation of this proto.
  1114   * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1115   * Optional fields that are not set will be set to undefined.
  1116   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1117   * For the list of reserved names please see:
  1118   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1119   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1120   *     JSPB instance for transitional soy proto support:
  1121   *     http://goto/soy-param-migration
  1122   * @return {!Object}
  1123   */
  1124  proto.google.api.Publishing.prototype.toObject = function(opt_includeInstance) {
  1125    return proto.google.api.Publishing.toObject(opt_includeInstance, this);
  1126  };
  1127  
  1128  
  1129  /**
  1130   * Static version of the {@see toObject} method.
  1131   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1132   *     the JSPB instance for transitional soy proto support:
  1133   *     http://goto/soy-param-migration
  1134   * @param {!proto.google.api.Publishing} msg The msg instance to transform.
  1135   * @return {!Object}
  1136   * @suppress {unusedLocalVariables} f is only used for nested messages
  1137   */
  1138  proto.google.api.Publishing.toObject = function(includeInstance, msg) {
  1139    var f, obj = {
  1140      methodSettingsList: jspb.Message.toObjectList(msg.getMethodSettingsList(),
  1141      proto.google.api.MethodSettings.toObject, includeInstance),
  1142      newIssueUri: jspb.Message.getFieldWithDefault(msg, 101, ""),
  1143      documentationUri: jspb.Message.getFieldWithDefault(msg, 102, ""),
  1144      apiShortName: jspb.Message.getFieldWithDefault(msg, 103, ""),
  1145      githubLabel: jspb.Message.getFieldWithDefault(msg, 104, ""),
  1146      codeownerGithubTeamsList: (f = jspb.Message.getRepeatedField(msg, 105)) == null ? undefined : f,
  1147      docTagPrefix: jspb.Message.getFieldWithDefault(msg, 106, ""),
  1148      organization: jspb.Message.getFieldWithDefault(msg, 107, 0),
  1149      librarySettingsList: jspb.Message.toObjectList(msg.getLibrarySettingsList(),
  1150      proto.google.api.ClientLibrarySettings.toObject, includeInstance)
  1151    };
  1152  
  1153    if (includeInstance) {
  1154      obj.$jspbMessageInstance = msg;
  1155    }
  1156    return obj;
  1157  };
  1158  }
  1159  
  1160  
  1161  /**
  1162   * Deserializes binary data (in protobuf wire format).
  1163   * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1164   * @return {!proto.google.api.Publishing}
  1165   */
  1166  proto.google.api.Publishing.deserializeBinary = function(bytes) {
  1167    var reader = new jspb.BinaryReader(bytes);
  1168    var msg = new proto.google.api.Publishing;
  1169    return proto.google.api.Publishing.deserializeBinaryFromReader(msg, reader);
  1170  };
  1171  
  1172  
  1173  /**
  1174   * Deserializes binary data (in protobuf wire format) from the
  1175   * given reader into the given message object.
  1176   * @param {!proto.google.api.Publishing} msg The message object to deserialize into.
  1177   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1178   * @return {!proto.google.api.Publishing}
  1179   */
  1180  proto.google.api.Publishing.deserializeBinaryFromReader = function(msg, reader) {
  1181    while (reader.nextField()) {
  1182      if (reader.isEndGroup()) {
  1183        break;
  1184      }
  1185      var field = reader.getFieldNumber();
  1186      switch (field) {
  1187      case 2:
  1188        var value = new proto.google.api.MethodSettings;
  1189        reader.readMessage(value,proto.google.api.MethodSettings.deserializeBinaryFromReader);
  1190        msg.addMethodSettings(value);
  1191        break;
  1192      case 101:
  1193        var value = /** @type {string} */ (reader.readString());
  1194        msg.setNewIssueUri(value);
  1195        break;
  1196      case 102:
  1197        var value = /** @type {string} */ (reader.readString());
  1198        msg.setDocumentationUri(value);
  1199        break;
  1200      case 103:
  1201        var value = /** @type {string} */ (reader.readString());
  1202        msg.setApiShortName(value);
  1203        break;
  1204      case 104:
  1205        var value = /** @type {string} */ (reader.readString());
  1206        msg.setGithubLabel(value);
  1207        break;
  1208      case 105:
  1209        var value = /** @type {string} */ (reader.readString());
  1210        msg.addCodeownerGithubTeams(value);
  1211        break;
  1212      case 106:
  1213        var value = /** @type {string} */ (reader.readString());
  1214        msg.setDocTagPrefix(value);
  1215        break;
  1216      case 107:
  1217        var value = /** @type {!proto.google.api.ClientLibraryOrganization} */ (reader.readEnum());
  1218        msg.setOrganization(value);
  1219        break;
  1220      case 109:
  1221        var value = new proto.google.api.ClientLibrarySettings;
  1222        reader.readMessage(value,proto.google.api.ClientLibrarySettings.deserializeBinaryFromReader);
  1223        msg.addLibrarySettings(value);
  1224        break;
  1225      default:
  1226        reader.skipField();
  1227        break;
  1228      }
  1229    }
  1230    return msg;
  1231  };
  1232  
  1233  
  1234  /**
  1235   * Serializes the message to binary data (in protobuf wire format).
  1236   * @return {!Uint8Array}
  1237   */
  1238  proto.google.api.Publishing.prototype.serializeBinary = function() {
  1239    var writer = new jspb.BinaryWriter();
  1240    proto.google.api.Publishing.serializeBinaryToWriter(this, writer);
  1241    return writer.getResultBuffer();
  1242  };
  1243  
  1244  
  1245  /**
  1246   * Serializes the given message to binary data (in protobuf wire
  1247   * format), writing to the given BinaryWriter.
  1248   * @param {!proto.google.api.Publishing} message
  1249   * @param {!jspb.BinaryWriter} writer
  1250   * @suppress {unusedLocalVariables} f is only used for nested messages
  1251   */
  1252  proto.google.api.Publishing.serializeBinaryToWriter = function(message, writer) {
  1253    var f = undefined;
  1254    f = message.getMethodSettingsList();
  1255    if (f.length > 0) {
  1256      writer.writeRepeatedMessage(
  1257        2,
  1258        f,
  1259        proto.google.api.MethodSettings.serializeBinaryToWriter
  1260      );
  1261    }
  1262    f = message.getNewIssueUri();
  1263    if (f.length > 0) {
  1264      writer.writeString(
  1265        101,
  1266        f
  1267      );
  1268    }
  1269    f = message.getDocumentationUri();
  1270    if (f.length > 0) {
  1271      writer.writeString(
  1272        102,
  1273        f
  1274      );
  1275    }
  1276    f = message.getApiShortName();
  1277    if (f.length > 0) {
  1278      writer.writeString(
  1279        103,
  1280        f
  1281      );
  1282    }
  1283    f = message.getGithubLabel();
  1284    if (f.length > 0) {
  1285      writer.writeString(
  1286        104,
  1287        f
  1288      );
  1289    }
  1290    f = message.getCodeownerGithubTeamsList();
  1291    if (f.length > 0) {
  1292      writer.writeRepeatedString(
  1293        105,
  1294        f
  1295      );
  1296    }
  1297    f = message.getDocTagPrefix();
  1298    if (f.length > 0) {
  1299      writer.writeString(
  1300        106,
  1301        f
  1302      );
  1303    }
  1304    f = message.getOrganization();
  1305    if (f !== 0.0) {
  1306      writer.writeEnum(
  1307        107,
  1308        f
  1309      );
  1310    }
  1311    f = message.getLibrarySettingsList();
  1312    if (f.length > 0) {
  1313      writer.writeRepeatedMessage(
  1314        109,
  1315        f,
  1316        proto.google.api.ClientLibrarySettings.serializeBinaryToWriter
  1317      );
  1318    }
  1319  };
  1320  
  1321  
  1322  /**
  1323   * repeated MethodSettings method_settings = 2;
  1324   * @return {!Array<!proto.google.api.MethodSettings>}
  1325   */
  1326  proto.google.api.Publishing.prototype.getMethodSettingsList = function() {
  1327    return /** @type{!Array<!proto.google.api.MethodSettings>} */ (
  1328      jspb.Message.getRepeatedWrapperField(this, proto.google.api.MethodSettings, 2));
  1329  };
  1330  
  1331  
  1332  /**
  1333   * @param {!Array<!proto.google.api.MethodSettings>} value
  1334   * @return {!proto.google.api.Publishing} returns this
  1335  */
  1336  proto.google.api.Publishing.prototype.setMethodSettingsList = function(value) {
  1337    return jspb.Message.setRepeatedWrapperField(this, 2, value);
  1338  };
  1339  
  1340  
  1341  /**
  1342   * @param {!proto.google.api.MethodSettings=} opt_value
  1343   * @param {number=} opt_index
  1344   * @return {!proto.google.api.MethodSettings}
  1345   */
  1346  proto.google.api.Publishing.prototype.addMethodSettings = function(opt_value, opt_index) {
  1347    return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.MethodSettings, opt_index);
  1348  };
  1349  
  1350  
  1351  /**
  1352   * Clears the list making it empty but non-null.
  1353   * @return {!proto.google.api.Publishing} returns this
  1354   */
  1355  proto.google.api.Publishing.prototype.clearMethodSettingsList = function() {
  1356    return this.setMethodSettingsList([]);
  1357  };
  1358  
  1359  
  1360  /**
  1361   * optional string new_issue_uri = 101;
  1362   * @return {string}
  1363   */
  1364  proto.google.api.Publishing.prototype.getNewIssueUri = function() {
  1365    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 101, ""));
  1366  };
  1367  
  1368  
  1369  /**
  1370   * @param {string} value
  1371   * @return {!proto.google.api.Publishing} returns this
  1372   */
  1373  proto.google.api.Publishing.prototype.setNewIssueUri = function(value) {
  1374    return jspb.Message.setProto3StringField(this, 101, value);
  1375  };
  1376  
  1377  
  1378  /**
  1379   * optional string documentation_uri = 102;
  1380   * @return {string}
  1381   */
  1382  proto.google.api.Publishing.prototype.getDocumentationUri = function() {
  1383    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 102, ""));
  1384  };
  1385  
  1386  
  1387  /**
  1388   * @param {string} value
  1389   * @return {!proto.google.api.Publishing} returns this
  1390   */
  1391  proto.google.api.Publishing.prototype.setDocumentationUri = function(value) {
  1392    return jspb.Message.setProto3StringField(this, 102, value);
  1393  };
  1394  
  1395  
  1396  /**
  1397   * optional string api_short_name = 103;
  1398   * @return {string}
  1399   */
  1400  proto.google.api.Publishing.prototype.getApiShortName = function() {
  1401    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 103, ""));
  1402  };
  1403  
  1404  
  1405  /**
  1406   * @param {string} value
  1407   * @return {!proto.google.api.Publishing} returns this
  1408   */
  1409  proto.google.api.Publishing.prototype.setApiShortName = function(value) {
  1410    return jspb.Message.setProto3StringField(this, 103, value);
  1411  };
  1412  
  1413  
  1414  /**
  1415   * optional string github_label = 104;
  1416   * @return {string}
  1417   */
  1418  proto.google.api.Publishing.prototype.getGithubLabel = function() {
  1419    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 104, ""));
  1420  };
  1421  
  1422  
  1423  /**
  1424   * @param {string} value
  1425   * @return {!proto.google.api.Publishing} returns this
  1426   */
  1427  proto.google.api.Publishing.prototype.setGithubLabel = function(value) {
  1428    return jspb.Message.setProto3StringField(this, 104, value);
  1429  };
  1430  
  1431  
  1432  /**
  1433   * repeated string codeowner_github_teams = 105;
  1434   * @return {!Array<string>}
  1435   */
  1436  proto.google.api.Publishing.prototype.getCodeownerGithubTeamsList = function() {
  1437    return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 105));
  1438  };
  1439  
  1440  
  1441  /**
  1442   * @param {!Array<string>} value
  1443   * @return {!proto.google.api.Publishing} returns this
  1444   */
  1445  proto.google.api.Publishing.prototype.setCodeownerGithubTeamsList = function(value) {
  1446    return jspb.Message.setField(this, 105, value || []);
  1447  };
  1448  
  1449  
  1450  /**
  1451   * @param {string} value
  1452   * @param {number=} opt_index
  1453   * @return {!proto.google.api.Publishing} returns this
  1454   */
  1455  proto.google.api.Publishing.prototype.addCodeownerGithubTeams = function(value, opt_index) {
  1456    return jspb.Message.addToRepeatedField(this, 105, value, opt_index);
  1457  };
  1458  
  1459  
  1460  /**
  1461   * Clears the list making it empty but non-null.
  1462   * @return {!proto.google.api.Publishing} returns this
  1463   */
  1464  proto.google.api.Publishing.prototype.clearCodeownerGithubTeamsList = function() {
  1465    return this.setCodeownerGithubTeamsList([]);
  1466  };
  1467  
  1468  
  1469  /**
  1470   * optional string doc_tag_prefix = 106;
  1471   * @return {string}
  1472   */
  1473  proto.google.api.Publishing.prototype.getDocTagPrefix = function() {
  1474    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 106, ""));
  1475  };
  1476  
  1477  
  1478  /**
  1479   * @param {string} value
  1480   * @return {!proto.google.api.Publishing} returns this
  1481   */
  1482  proto.google.api.Publishing.prototype.setDocTagPrefix = function(value) {
  1483    return jspb.Message.setProto3StringField(this, 106, value);
  1484  };
  1485  
  1486  
  1487  /**
  1488   * optional ClientLibraryOrganization organization = 107;
  1489   * @return {!proto.google.api.ClientLibraryOrganization}
  1490   */
  1491  proto.google.api.Publishing.prototype.getOrganization = function() {
  1492    return /** @type {!proto.google.api.ClientLibraryOrganization} */ (jspb.Message.getFieldWithDefault(this, 107, 0));
  1493  };
  1494  
  1495  
  1496  /**
  1497   * @param {!proto.google.api.ClientLibraryOrganization} value
  1498   * @return {!proto.google.api.Publishing} returns this
  1499   */
  1500  proto.google.api.Publishing.prototype.setOrganization = function(value) {
  1501    return jspb.Message.setProto3EnumField(this, 107, value);
  1502  };
  1503  
  1504  
  1505  /**
  1506   * repeated ClientLibrarySettings library_settings = 109;
  1507   * @return {!Array<!proto.google.api.ClientLibrarySettings>}
  1508   */
  1509  proto.google.api.Publishing.prototype.getLibrarySettingsList = function() {
  1510    return /** @type{!Array<!proto.google.api.ClientLibrarySettings>} */ (
  1511      jspb.Message.getRepeatedWrapperField(this, proto.google.api.ClientLibrarySettings, 109));
  1512  };
  1513  
  1514  
  1515  /**
  1516   * @param {!Array<!proto.google.api.ClientLibrarySettings>} value
  1517   * @return {!proto.google.api.Publishing} returns this
  1518  */
  1519  proto.google.api.Publishing.prototype.setLibrarySettingsList = function(value) {
  1520    return jspb.Message.setRepeatedWrapperField(this, 109, value);
  1521  };
  1522  
  1523  
  1524  /**
  1525   * @param {!proto.google.api.ClientLibrarySettings=} opt_value
  1526   * @param {number=} opt_index
  1527   * @return {!proto.google.api.ClientLibrarySettings}
  1528   */
  1529  proto.google.api.Publishing.prototype.addLibrarySettings = function(opt_value, opt_index) {
  1530    return jspb.Message.addToRepeatedWrapperField(this, 109, opt_value, proto.google.api.ClientLibrarySettings, opt_index);
  1531  };
  1532  
  1533  
  1534  /**
  1535   * Clears the list making it empty but non-null.
  1536   * @return {!proto.google.api.Publishing} returns this
  1537   */
  1538  proto.google.api.Publishing.prototype.clearLibrarySettingsList = function() {
  1539    return this.setLibrarySettingsList([]);
  1540  };
  1541  
  1542  
  1543  
  1544  
  1545  
  1546  if (jspb.Message.GENERATE_TO_OBJECT) {
  1547  /**
  1548   * Creates an object representation of this proto.
  1549   * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1550   * Optional fields that are not set will be set to undefined.
  1551   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1552   * For the list of reserved names please see:
  1553   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1554   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1555   *     JSPB instance for transitional soy proto support:
  1556   *     http://goto/soy-param-migration
  1557   * @return {!Object}
  1558   */
  1559  proto.google.api.JavaSettings.prototype.toObject = function(opt_includeInstance) {
  1560    return proto.google.api.JavaSettings.toObject(opt_includeInstance, this);
  1561  };
  1562  
  1563  
  1564  /**
  1565   * Static version of the {@see toObject} method.
  1566   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1567   *     the JSPB instance for transitional soy proto support:
  1568   *     http://goto/soy-param-migration
  1569   * @param {!proto.google.api.JavaSettings} msg The msg instance to transform.
  1570   * @return {!Object}
  1571   * @suppress {unusedLocalVariables} f is only used for nested messages
  1572   */
  1573  proto.google.api.JavaSettings.toObject = function(includeInstance, msg) {
  1574    var f, obj = {
  1575      libraryPackage: jspb.Message.getFieldWithDefault(msg, 1, ""),
  1576      serviceClassNamesMap: (f = msg.getServiceClassNamesMap()) ? f.toObject(includeInstance, undefined) : [],
  1577      common: (f = msg.getCommon()) && proto.google.api.CommonLanguageSettings.toObject(includeInstance, f)
  1578    };
  1579  
  1580    if (includeInstance) {
  1581      obj.$jspbMessageInstance = msg;
  1582    }
  1583    return obj;
  1584  };
  1585  }
  1586  
  1587  
  1588  /**
  1589   * Deserializes binary data (in protobuf wire format).
  1590   * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1591   * @return {!proto.google.api.JavaSettings}
  1592   */
  1593  proto.google.api.JavaSettings.deserializeBinary = function(bytes) {
  1594    var reader = new jspb.BinaryReader(bytes);
  1595    var msg = new proto.google.api.JavaSettings;
  1596    return proto.google.api.JavaSettings.deserializeBinaryFromReader(msg, reader);
  1597  };
  1598  
  1599  
  1600  /**
  1601   * Deserializes binary data (in protobuf wire format) from the
  1602   * given reader into the given message object.
  1603   * @param {!proto.google.api.JavaSettings} msg The message object to deserialize into.
  1604   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1605   * @return {!proto.google.api.JavaSettings}
  1606   */
  1607  proto.google.api.JavaSettings.deserializeBinaryFromReader = function(msg, reader) {
  1608    while (reader.nextField()) {
  1609      if (reader.isEndGroup()) {
  1610        break;
  1611      }
  1612      var field = reader.getFieldNumber();
  1613      switch (field) {
  1614      case 1:
  1615        var value = /** @type {string} */ (reader.readString());
  1616        msg.setLibraryPackage(value);
  1617        break;
  1618      case 2:
  1619        var value = msg.getServiceClassNamesMap();
  1620        reader.readMessage(value, function(message, reader) {
  1621          jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
  1622           });
  1623        break;
  1624      case 3:
  1625        var value = new proto.google.api.CommonLanguageSettings;
  1626        reader.readMessage(value,proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader);
  1627        msg.setCommon(value);
  1628        break;
  1629      default:
  1630        reader.skipField();
  1631        break;
  1632      }
  1633    }
  1634    return msg;
  1635  };
  1636  
  1637  
  1638  /**
  1639   * Serializes the message to binary data (in protobuf wire format).
  1640   * @return {!Uint8Array}
  1641   */
  1642  proto.google.api.JavaSettings.prototype.serializeBinary = function() {
  1643    var writer = new jspb.BinaryWriter();
  1644    proto.google.api.JavaSettings.serializeBinaryToWriter(this, writer);
  1645    return writer.getResultBuffer();
  1646  };
  1647  
  1648  
  1649  /**
  1650   * Serializes the given message to binary data (in protobuf wire
  1651   * format), writing to the given BinaryWriter.
  1652   * @param {!proto.google.api.JavaSettings} message
  1653   * @param {!jspb.BinaryWriter} writer
  1654   * @suppress {unusedLocalVariables} f is only used for nested messages
  1655   */
  1656  proto.google.api.JavaSettings.serializeBinaryToWriter = function(message, writer) {
  1657    var f = undefined;
  1658    f = message.getLibraryPackage();
  1659    if (f.length > 0) {
  1660      writer.writeString(
  1661        1,
  1662        f
  1663      );
  1664    }
  1665    f = message.getServiceClassNamesMap(true);
  1666    if (f && f.getLength() > 0) {
  1667      f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
  1668    }
  1669    f = message.getCommon();
  1670    if (f != null) {
  1671      writer.writeMessage(
  1672        3,
  1673        f,
  1674        proto.google.api.CommonLanguageSettings.serializeBinaryToWriter
  1675      );
  1676    }
  1677  };
  1678  
  1679  
  1680  /**
  1681   * optional string library_package = 1;
  1682   * @return {string}
  1683   */
  1684  proto.google.api.JavaSettings.prototype.getLibraryPackage = function() {
  1685    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  1686  };
  1687  
  1688  
  1689  /**
  1690   * @param {string} value
  1691   * @return {!proto.google.api.JavaSettings} returns this
  1692   */
  1693  proto.google.api.JavaSettings.prototype.setLibraryPackage = function(value) {
  1694    return jspb.Message.setProto3StringField(this, 1, value);
  1695  };
  1696  
  1697  
  1698  /**
  1699   * map<string, string> service_class_names = 2;
  1700   * @param {boolean=} opt_noLazyCreate Do not create the map if
  1701   * empty, instead returning `undefined`
  1702   * @return {!jspb.Map<string,string>}
  1703   */
  1704  proto.google.api.JavaSettings.prototype.getServiceClassNamesMap = function(opt_noLazyCreate) {
  1705    return /** @type {!jspb.Map<string,string>} */ (
  1706        jspb.Message.getMapField(this, 2, opt_noLazyCreate,
  1707        null));
  1708  };
  1709  
  1710  
  1711  /**
  1712   * Clears values from the map. The map will be non-null.
  1713   * @return {!proto.google.api.JavaSettings} returns this
  1714   */
  1715  proto.google.api.JavaSettings.prototype.clearServiceClassNamesMap = function() {
  1716    this.getServiceClassNamesMap().clear();
  1717    return this;};
  1718  
  1719  
  1720  /**
  1721   * optional CommonLanguageSettings common = 3;
  1722   * @return {?proto.google.api.CommonLanguageSettings}
  1723   */
  1724  proto.google.api.JavaSettings.prototype.getCommon = function() {
  1725    return /** @type{?proto.google.api.CommonLanguageSettings} */ (
  1726      jspb.Message.getWrapperField(this, proto.google.api.CommonLanguageSettings, 3));
  1727  };
  1728  
  1729  
  1730  /**
  1731   * @param {?proto.google.api.CommonLanguageSettings|undefined} value
  1732   * @return {!proto.google.api.JavaSettings} returns this
  1733  */
  1734  proto.google.api.JavaSettings.prototype.setCommon = function(value) {
  1735    return jspb.Message.setWrapperField(this, 3, value);
  1736  };
  1737  
  1738  
  1739  /**
  1740   * Clears the message field making it undefined.
  1741   * @return {!proto.google.api.JavaSettings} returns this
  1742   */
  1743  proto.google.api.JavaSettings.prototype.clearCommon = function() {
  1744    return this.setCommon(undefined);
  1745  };
  1746  
  1747  
  1748  /**
  1749   * Returns whether this field is set.
  1750   * @return {boolean}
  1751   */
  1752  proto.google.api.JavaSettings.prototype.hasCommon = function() {
  1753    return jspb.Message.getField(this, 3) != null;
  1754  };
  1755  
  1756  
  1757  
  1758  
  1759  
  1760  if (jspb.Message.GENERATE_TO_OBJECT) {
  1761  /**
  1762   * Creates an object representation of this proto.
  1763   * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1764   * Optional fields that are not set will be set to undefined.
  1765   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1766   * For the list of reserved names please see:
  1767   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1768   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1769   *     JSPB instance for transitional soy proto support:
  1770   *     http://goto/soy-param-migration
  1771   * @return {!Object}
  1772   */
  1773  proto.google.api.CppSettings.prototype.toObject = function(opt_includeInstance) {
  1774    return proto.google.api.CppSettings.toObject(opt_includeInstance, this);
  1775  };
  1776  
  1777  
  1778  /**
  1779   * Static version of the {@see toObject} method.
  1780   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1781   *     the JSPB instance for transitional soy proto support:
  1782   *     http://goto/soy-param-migration
  1783   * @param {!proto.google.api.CppSettings} msg The msg instance to transform.
  1784   * @return {!Object}
  1785   * @suppress {unusedLocalVariables} f is only used for nested messages
  1786   */
  1787  proto.google.api.CppSettings.toObject = function(includeInstance, msg) {
  1788    var f, obj = {
  1789      common: (f = msg.getCommon()) && proto.google.api.CommonLanguageSettings.toObject(includeInstance, f)
  1790    };
  1791  
  1792    if (includeInstance) {
  1793      obj.$jspbMessageInstance = msg;
  1794    }
  1795    return obj;
  1796  };
  1797  }
  1798  
  1799  
  1800  /**
  1801   * Deserializes binary data (in protobuf wire format).
  1802   * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1803   * @return {!proto.google.api.CppSettings}
  1804   */
  1805  proto.google.api.CppSettings.deserializeBinary = function(bytes) {
  1806    var reader = new jspb.BinaryReader(bytes);
  1807    var msg = new proto.google.api.CppSettings;
  1808    return proto.google.api.CppSettings.deserializeBinaryFromReader(msg, reader);
  1809  };
  1810  
  1811  
  1812  /**
  1813   * Deserializes binary data (in protobuf wire format) from the
  1814   * given reader into the given message object.
  1815   * @param {!proto.google.api.CppSettings} msg The message object to deserialize into.
  1816   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1817   * @return {!proto.google.api.CppSettings}
  1818   */
  1819  proto.google.api.CppSettings.deserializeBinaryFromReader = function(msg, reader) {
  1820    while (reader.nextField()) {
  1821      if (reader.isEndGroup()) {
  1822        break;
  1823      }
  1824      var field = reader.getFieldNumber();
  1825      switch (field) {
  1826      case 1:
  1827        var value = new proto.google.api.CommonLanguageSettings;
  1828        reader.readMessage(value,proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader);
  1829        msg.setCommon(value);
  1830        break;
  1831      default:
  1832        reader.skipField();
  1833        break;
  1834      }
  1835    }
  1836    return msg;
  1837  };
  1838  
  1839  
  1840  /**
  1841   * Serializes the message to binary data (in protobuf wire format).
  1842   * @return {!Uint8Array}
  1843   */
  1844  proto.google.api.CppSettings.prototype.serializeBinary = function() {
  1845    var writer = new jspb.BinaryWriter();
  1846    proto.google.api.CppSettings.serializeBinaryToWriter(this, writer);
  1847    return writer.getResultBuffer();
  1848  };
  1849  
  1850  
  1851  /**
  1852   * Serializes the given message to binary data (in protobuf wire
  1853   * format), writing to the given BinaryWriter.
  1854   * @param {!proto.google.api.CppSettings} message
  1855   * @param {!jspb.BinaryWriter} writer
  1856   * @suppress {unusedLocalVariables} f is only used for nested messages
  1857   */
  1858  proto.google.api.CppSettings.serializeBinaryToWriter = function(message, writer) {
  1859    var f = undefined;
  1860    f = message.getCommon();
  1861    if (f != null) {
  1862      writer.writeMessage(
  1863        1,
  1864        f,
  1865        proto.google.api.CommonLanguageSettings.serializeBinaryToWriter
  1866      );
  1867    }
  1868  };
  1869  
  1870  
  1871  /**
  1872   * optional CommonLanguageSettings common = 1;
  1873   * @return {?proto.google.api.CommonLanguageSettings}
  1874   */
  1875  proto.google.api.CppSettings.prototype.getCommon = function() {
  1876    return /** @type{?proto.google.api.CommonLanguageSettings} */ (
  1877      jspb.Message.getWrapperField(this, proto.google.api.CommonLanguageSettings, 1));
  1878  };
  1879  
  1880  
  1881  /**
  1882   * @param {?proto.google.api.CommonLanguageSettings|undefined} value
  1883   * @return {!proto.google.api.CppSettings} returns this
  1884  */
  1885  proto.google.api.CppSettings.prototype.setCommon = function(value) {
  1886    return jspb.Message.setWrapperField(this, 1, value);
  1887  };
  1888  
  1889  
  1890  /**
  1891   * Clears the message field making it undefined.
  1892   * @return {!proto.google.api.CppSettings} returns this
  1893   */
  1894  proto.google.api.CppSettings.prototype.clearCommon = function() {
  1895    return this.setCommon(undefined);
  1896  };
  1897  
  1898  
  1899  /**
  1900   * Returns whether this field is set.
  1901   * @return {boolean}
  1902   */
  1903  proto.google.api.CppSettings.prototype.hasCommon = function() {
  1904    return jspb.Message.getField(this, 1) != null;
  1905  };
  1906  
  1907  
  1908  
  1909  
  1910  
  1911  if (jspb.Message.GENERATE_TO_OBJECT) {
  1912  /**
  1913   * Creates an object representation of this proto.
  1914   * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1915   * Optional fields that are not set will be set to undefined.
  1916   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1917   * For the list of reserved names please see:
  1918   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1919   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1920   *     JSPB instance for transitional soy proto support:
  1921   *     http://goto/soy-param-migration
  1922   * @return {!Object}
  1923   */
  1924  proto.google.api.PhpSettings.prototype.toObject = function(opt_includeInstance) {
  1925    return proto.google.api.PhpSettings.toObject(opt_includeInstance, this);
  1926  };
  1927  
  1928  
  1929  /**
  1930   * Static version of the {@see toObject} method.
  1931   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1932   *     the JSPB instance for transitional soy proto support:
  1933   *     http://goto/soy-param-migration
  1934   * @param {!proto.google.api.PhpSettings} msg The msg instance to transform.
  1935   * @return {!Object}
  1936   * @suppress {unusedLocalVariables} f is only used for nested messages
  1937   */
  1938  proto.google.api.PhpSettings.toObject = function(includeInstance, msg) {
  1939    var f, obj = {
  1940      common: (f = msg.getCommon()) && proto.google.api.CommonLanguageSettings.toObject(includeInstance, f)
  1941    };
  1942  
  1943    if (includeInstance) {
  1944      obj.$jspbMessageInstance = msg;
  1945    }
  1946    return obj;
  1947  };
  1948  }
  1949  
  1950  
  1951  /**
  1952   * Deserializes binary data (in protobuf wire format).
  1953   * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1954   * @return {!proto.google.api.PhpSettings}
  1955   */
  1956  proto.google.api.PhpSettings.deserializeBinary = function(bytes) {
  1957    var reader = new jspb.BinaryReader(bytes);
  1958    var msg = new proto.google.api.PhpSettings;
  1959    return proto.google.api.PhpSettings.deserializeBinaryFromReader(msg, reader);
  1960  };
  1961  
  1962  
  1963  /**
  1964   * Deserializes binary data (in protobuf wire format) from the
  1965   * given reader into the given message object.
  1966   * @param {!proto.google.api.PhpSettings} msg The message object to deserialize into.
  1967   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1968   * @return {!proto.google.api.PhpSettings}
  1969   */
  1970  proto.google.api.PhpSettings.deserializeBinaryFromReader = function(msg, reader) {
  1971    while (reader.nextField()) {
  1972      if (reader.isEndGroup()) {
  1973        break;
  1974      }
  1975      var field = reader.getFieldNumber();
  1976      switch (field) {
  1977      case 1:
  1978        var value = new proto.google.api.CommonLanguageSettings;
  1979        reader.readMessage(value,proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader);
  1980        msg.setCommon(value);
  1981        break;
  1982      default:
  1983        reader.skipField();
  1984        break;
  1985      }
  1986    }
  1987    return msg;
  1988  };
  1989  
  1990  
  1991  /**
  1992   * Serializes the message to binary data (in protobuf wire format).
  1993   * @return {!Uint8Array}
  1994   */
  1995  proto.google.api.PhpSettings.prototype.serializeBinary = function() {
  1996    var writer = new jspb.BinaryWriter();
  1997    proto.google.api.PhpSettings.serializeBinaryToWriter(this, writer);
  1998    return writer.getResultBuffer();
  1999  };
  2000  
  2001  
  2002  /**
  2003   * Serializes the given message to binary data (in protobuf wire
  2004   * format), writing to the given BinaryWriter.
  2005   * @param {!proto.google.api.PhpSettings} message
  2006   * @param {!jspb.BinaryWriter} writer
  2007   * @suppress {unusedLocalVariables} f is only used for nested messages
  2008   */
  2009  proto.google.api.PhpSettings.serializeBinaryToWriter = function(message, writer) {
  2010    var f = undefined;
  2011    f = message.getCommon();
  2012    if (f != null) {
  2013      writer.writeMessage(
  2014        1,
  2015        f,
  2016        proto.google.api.CommonLanguageSettings.serializeBinaryToWriter
  2017      );
  2018    }
  2019  };
  2020  
  2021  
  2022  /**
  2023   * optional CommonLanguageSettings common = 1;
  2024   * @return {?proto.google.api.CommonLanguageSettings}
  2025   */
  2026  proto.google.api.PhpSettings.prototype.getCommon = function() {
  2027    return /** @type{?proto.google.api.CommonLanguageSettings} */ (
  2028      jspb.Message.getWrapperField(this, proto.google.api.CommonLanguageSettings, 1));
  2029  };
  2030  
  2031  
  2032  /**
  2033   * @param {?proto.google.api.CommonLanguageSettings|undefined} value
  2034   * @return {!proto.google.api.PhpSettings} returns this
  2035  */
  2036  proto.google.api.PhpSettings.prototype.setCommon = function(value) {
  2037    return jspb.Message.setWrapperField(this, 1, value);
  2038  };
  2039  
  2040  
  2041  /**
  2042   * Clears the message field making it undefined.
  2043   * @return {!proto.google.api.PhpSettings} returns this
  2044   */
  2045  proto.google.api.PhpSettings.prototype.clearCommon = function() {
  2046    return this.setCommon(undefined);
  2047  };
  2048  
  2049  
  2050  /**
  2051   * Returns whether this field is set.
  2052   * @return {boolean}
  2053   */
  2054  proto.google.api.PhpSettings.prototype.hasCommon = function() {
  2055    return jspb.Message.getField(this, 1) != null;
  2056  };
  2057  
  2058  
  2059  
  2060  
  2061  
  2062  if (jspb.Message.GENERATE_TO_OBJECT) {
  2063  /**
  2064   * Creates an object representation of this proto.
  2065   * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2066   * Optional fields that are not set will be set to undefined.
  2067   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2068   * For the list of reserved names please see:
  2069   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2070   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2071   *     JSPB instance for transitional soy proto support:
  2072   *     http://goto/soy-param-migration
  2073   * @return {!Object}
  2074   */
  2075  proto.google.api.PythonSettings.prototype.toObject = function(opt_includeInstance) {
  2076    return proto.google.api.PythonSettings.toObject(opt_includeInstance, this);
  2077  };
  2078  
  2079  
  2080  /**
  2081   * Static version of the {@see toObject} method.
  2082   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2083   *     the JSPB instance for transitional soy proto support:
  2084   *     http://goto/soy-param-migration
  2085   * @param {!proto.google.api.PythonSettings} msg The msg instance to transform.
  2086   * @return {!Object}
  2087   * @suppress {unusedLocalVariables} f is only used for nested messages
  2088   */
  2089  proto.google.api.PythonSettings.toObject = function(includeInstance, msg) {
  2090    var f, obj = {
  2091      common: (f = msg.getCommon()) && proto.google.api.CommonLanguageSettings.toObject(includeInstance, f)
  2092    };
  2093  
  2094    if (includeInstance) {
  2095      obj.$jspbMessageInstance = msg;
  2096    }
  2097    return obj;
  2098  };
  2099  }
  2100  
  2101  
  2102  /**
  2103   * Deserializes binary data (in protobuf wire format).
  2104   * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2105   * @return {!proto.google.api.PythonSettings}
  2106   */
  2107  proto.google.api.PythonSettings.deserializeBinary = function(bytes) {
  2108    var reader = new jspb.BinaryReader(bytes);
  2109    var msg = new proto.google.api.PythonSettings;
  2110    return proto.google.api.PythonSettings.deserializeBinaryFromReader(msg, reader);
  2111  };
  2112  
  2113  
  2114  /**
  2115   * Deserializes binary data (in protobuf wire format) from the
  2116   * given reader into the given message object.
  2117   * @param {!proto.google.api.PythonSettings} msg The message object to deserialize into.
  2118   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2119   * @return {!proto.google.api.PythonSettings}
  2120   */
  2121  proto.google.api.PythonSettings.deserializeBinaryFromReader = function(msg, reader) {
  2122    while (reader.nextField()) {
  2123      if (reader.isEndGroup()) {
  2124        break;
  2125      }
  2126      var field = reader.getFieldNumber();
  2127      switch (field) {
  2128      case 1:
  2129        var value = new proto.google.api.CommonLanguageSettings;
  2130        reader.readMessage(value,proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader);
  2131        msg.setCommon(value);
  2132        break;
  2133      default:
  2134        reader.skipField();
  2135        break;
  2136      }
  2137    }
  2138    return msg;
  2139  };
  2140  
  2141  
  2142  /**
  2143   * Serializes the message to binary data (in protobuf wire format).
  2144   * @return {!Uint8Array}
  2145   */
  2146  proto.google.api.PythonSettings.prototype.serializeBinary = function() {
  2147    var writer = new jspb.BinaryWriter();
  2148    proto.google.api.PythonSettings.serializeBinaryToWriter(this, writer);
  2149    return writer.getResultBuffer();
  2150  };
  2151  
  2152  
  2153  /**
  2154   * Serializes the given message to binary data (in protobuf wire
  2155   * format), writing to the given BinaryWriter.
  2156   * @param {!proto.google.api.PythonSettings} message
  2157   * @param {!jspb.BinaryWriter} writer
  2158   * @suppress {unusedLocalVariables} f is only used for nested messages
  2159   */
  2160  proto.google.api.PythonSettings.serializeBinaryToWriter = function(message, writer) {
  2161    var f = undefined;
  2162    f = message.getCommon();
  2163    if (f != null) {
  2164      writer.writeMessage(
  2165        1,
  2166        f,
  2167        proto.google.api.CommonLanguageSettings.serializeBinaryToWriter
  2168      );
  2169    }
  2170  };
  2171  
  2172  
  2173  /**
  2174   * optional CommonLanguageSettings common = 1;
  2175   * @return {?proto.google.api.CommonLanguageSettings}
  2176   */
  2177  proto.google.api.PythonSettings.prototype.getCommon = function() {
  2178    return /** @type{?proto.google.api.CommonLanguageSettings} */ (
  2179      jspb.Message.getWrapperField(this, proto.google.api.CommonLanguageSettings, 1));
  2180  };
  2181  
  2182  
  2183  /**
  2184   * @param {?proto.google.api.CommonLanguageSettings|undefined} value
  2185   * @return {!proto.google.api.PythonSettings} returns this
  2186  */
  2187  proto.google.api.PythonSettings.prototype.setCommon = function(value) {
  2188    return jspb.Message.setWrapperField(this, 1, value);
  2189  };
  2190  
  2191  
  2192  /**
  2193   * Clears the message field making it undefined.
  2194   * @return {!proto.google.api.PythonSettings} returns this
  2195   */
  2196  proto.google.api.PythonSettings.prototype.clearCommon = function() {
  2197    return this.setCommon(undefined);
  2198  };
  2199  
  2200  
  2201  /**
  2202   * Returns whether this field is set.
  2203   * @return {boolean}
  2204   */
  2205  proto.google.api.PythonSettings.prototype.hasCommon = function() {
  2206    return jspb.Message.getField(this, 1) != null;
  2207  };
  2208  
  2209  
  2210  
  2211  
  2212  
  2213  if (jspb.Message.GENERATE_TO_OBJECT) {
  2214  /**
  2215   * Creates an object representation of this proto.
  2216   * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2217   * Optional fields that are not set will be set to undefined.
  2218   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2219   * For the list of reserved names please see:
  2220   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2221   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2222   *     JSPB instance for transitional soy proto support:
  2223   *     http://goto/soy-param-migration
  2224   * @return {!Object}
  2225   */
  2226  proto.google.api.NodeSettings.prototype.toObject = function(opt_includeInstance) {
  2227    return proto.google.api.NodeSettings.toObject(opt_includeInstance, this);
  2228  };
  2229  
  2230  
  2231  /**
  2232   * Static version of the {@see toObject} method.
  2233   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2234   *     the JSPB instance for transitional soy proto support:
  2235   *     http://goto/soy-param-migration
  2236   * @param {!proto.google.api.NodeSettings} msg The msg instance to transform.
  2237   * @return {!Object}
  2238   * @suppress {unusedLocalVariables} f is only used for nested messages
  2239   */
  2240  proto.google.api.NodeSettings.toObject = function(includeInstance, msg) {
  2241    var f, obj = {
  2242      common: (f = msg.getCommon()) && proto.google.api.CommonLanguageSettings.toObject(includeInstance, f)
  2243    };
  2244  
  2245    if (includeInstance) {
  2246      obj.$jspbMessageInstance = msg;
  2247    }
  2248    return obj;
  2249  };
  2250  }
  2251  
  2252  
  2253  /**
  2254   * Deserializes binary data (in protobuf wire format).
  2255   * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2256   * @return {!proto.google.api.NodeSettings}
  2257   */
  2258  proto.google.api.NodeSettings.deserializeBinary = function(bytes) {
  2259    var reader = new jspb.BinaryReader(bytes);
  2260    var msg = new proto.google.api.NodeSettings;
  2261    return proto.google.api.NodeSettings.deserializeBinaryFromReader(msg, reader);
  2262  };
  2263  
  2264  
  2265  /**
  2266   * Deserializes binary data (in protobuf wire format) from the
  2267   * given reader into the given message object.
  2268   * @param {!proto.google.api.NodeSettings} msg The message object to deserialize into.
  2269   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2270   * @return {!proto.google.api.NodeSettings}
  2271   */
  2272  proto.google.api.NodeSettings.deserializeBinaryFromReader = function(msg, reader) {
  2273    while (reader.nextField()) {
  2274      if (reader.isEndGroup()) {
  2275        break;
  2276      }
  2277      var field = reader.getFieldNumber();
  2278      switch (field) {
  2279      case 1:
  2280        var value = new proto.google.api.CommonLanguageSettings;
  2281        reader.readMessage(value,proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader);
  2282        msg.setCommon(value);
  2283        break;
  2284      default:
  2285        reader.skipField();
  2286        break;
  2287      }
  2288    }
  2289    return msg;
  2290  };
  2291  
  2292  
  2293  /**
  2294   * Serializes the message to binary data (in protobuf wire format).
  2295   * @return {!Uint8Array}
  2296   */
  2297  proto.google.api.NodeSettings.prototype.serializeBinary = function() {
  2298    var writer = new jspb.BinaryWriter();
  2299    proto.google.api.NodeSettings.serializeBinaryToWriter(this, writer);
  2300    return writer.getResultBuffer();
  2301  };
  2302  
  2303  
  2304  /**
  2305   * Serializes the given message to binary data (in protobuf wire
  2306   * format), writing to the given BinaryWriter.
  2307   * @param {!proto.google.api.NodeSettings} message
  2308   * @param {!jspb.BinaryWriter} writer
  2309   * @suppress {unusedLocalVariables} f is only used for nested messages
  2310   */
  2311  proto.google.api.NodeSettings.serializeBinaryToWriter = function(message, writer) {
  2312    var f = undefined;
  2313    f = message.getCommon();
  2314    if (f != null) {
  2315      writer.writeMessage(
  2316        1,
  2317        f,
  2318        proto.google.api.CommonLanguageSettings.serializeBinaryToWriter
  2319      );
  2320    }
  2321  };
  2322  
  2323  
  2324  /**
  2325   * optional CommonLanguageSettings common = 1;
  2326   * @return {?proto.google.api.CommonLanguageSettings}
  2327   */
  2328  proto.google.api.NodeSettings.prototype.getCommon = function() {
  2329    return /** @type{?proto.google.api.CommonLanguageSettings} */ (
  2330      jspb.Message.getWrapperField(this, proto.google.api.CommonLanguageSettings, 1));
  2331  };
  2332  
  2333  
  2334  /**
  2335   * @param {?proto.google.api.CommonLanguageSettings|undefined} value
  2336   * @return {!proto.google.api.NodeSettings} returns this
  2337  */
  2338  proto.google.api.NodeSettings.prototype.setCommon = function(value) {
  2339    return jspb.Message.setWrapperField(this, 1, value);
  2340  };
  2341  
  2342  
  2343  /**
  2344   * Clears the message field making it undefined.
  2345   * @return {!proto.google.api.NodeSettings} returns this
  2346   */
  2347  proto.google.api.NodeSettings.prototype.clearCommon = function() {
  2348    return this.setCommon(undefined);
  2349  };
  2350  
  2351  
  2352  /**
  2353   * Returns whether this field is set.
  2354   * @return {boolean}
  2355   */
  2356  proto.google.api.NodeSettings.prototype.hasCommon = function() {
  2357    return jspb.Message.getField(this, 1) != null;
  2358  };
  2359  
  2360  
  2361  
  2362  
  2363  
  2364  if (jspb.Message.GENERATE_TO_OBJECT) {
  2365  /**
  2366   * Creates an object representation of this proto.
  2367   * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2368   * Optional fields that are not set will be set to undefined.
  2369   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2370   * For the list of reserved names please see:
  2371   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2372   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2373   *     JSPB instance for transitional soy proto support:
  2374   *     http://goto/soy-param-migration
  2375   * @return {!Object}
  2376   */
  2377  proto.google.api.DotnetSettings.prototype.toObject = function(opt_includeInstance) {
  2378    return proto.google.api.DotnetSettings.toObject(opt_includeInstance, this);
  2379  };
  2380  
  2381  
  2382  /**
  2383   * Static version of the {@see toObject} method.
  2384   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2385   *     the JSPB instance for transitional soy proto support:
  2386   *     http://goto/soy-param-migration
  2387   * @param {!proto.google.api.DotnetSettings} msg The msg instance to transform.
  2388   * @return {!Object}
  2389   * @suppress {unusedLocalVariables} f is only used for nested messages
  2390   */
  2391  proto.google.api.DotnetSettings.toObject = function(includeInstance, msg) {
  2392    var f, obj = {
  2393      common: (f = msg.getCommon()) && proto.google.api.CommonLanguageSettings.toObject(includeInstance, f)
  2394    };
  2395  
  2396    if (includeInstance) {
  2397      obj.$jspbMessageInstance = msg;
  2398    }
  2399    return obj;
  2400  };
  2401  }
  2402  
  2403  
  2404  /**
  2405   * Deserializes binary data (in protobuf wire format).
  2406   * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2407   * @return {!proto.google.api.DotnetSettings}
  2408   */
  2409  proto.google.api.DotnetSettings.deserializeBinary = function(bytes) {
  2410    var reader = new jspb.BinaryReader(bytes);
  2411    var msg = new proto.google.api.DotnetSettings;
  2412    return proto.google.api.DotnetSettings.deserializeBinaryFromReader(msg, reader);
  2413  };
  2414  
  2415  
  2416  /**
  2417   * Deserializes binary data (in protobuf wire format) from the
  2418   * given reader into the given message object.
  2419   * @param {!proto.google.api.DotnetSettings} msg The message object to deserialize into.
  2420   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2421   * @return {!proto.google.api.DotnetSettings}
  2422   */
  2423  proto.google.api.DotnetSettings.deserializeBinaryFromReader = function(msg, reader) {
  2424    while (reader.nextField()) {
  2425      if (reader.isEndGroup()) {
  2426        break;
  2427      }
  2428      var field = reader.getFieldNumber();
  2429      switch (field) {
  2430      case 1:
  2431        var value = new proto.google.api.CommonLanguageSettings;
  2432        reader.readMessage(value,proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader);
  2433        msg.setCommon(value);
  2434        break;
  2435      default:
  2436        reader.skipField();
  2437        break;
  2438      }
  2439    }
  2440    return msg;
  2441  };
  2442  
  2443  
  2444  /**
  2445   * Serializes the message to binary data (in protobuf wire format).
  2446   * @return {!Uint8Array}
  2447   */
  2448  proto.google.api.DotnetSettings.prototype.serializeBinary = function() {
  2449    var writer = new jspb.BinaryWriter();
  2450    proto.google.api.DotnetSettings.serializeBinaryToWriter(this, writer);
  2451    return writer.getResultBuffer();
  2452  };
  2453  
  2454  
  2455  /**
  2456   * Serializes the given message to binary data (in protobuf wire
  2457   * format), writing to the given BinaryWriter.
  2458   * @param {!proto.google.api.DotnetSettings} message
  2459   * @param {!jspb.BinaryWriter} writer
  2460   * @suppress {unusedLocalVariables} f is only used for nested messages
  2461   */
  2462  proto.google.api.DotnetSettings.serializeBinaryToWriter = function(message, writer) {
  2463    var f = undefined;
  2464    f = message.getCommon();
  2465    if (f != null) {
  2466      writer.writeMessage(
  2467        1,
  2468        f,
  2469        proto.google.api.CommonLanguageSettings.serializeBinaryToWriter
  2470      );
  2471    }
  2472  };
  2473  
  2474  
  2475  /**
  2476   * optional CommonLanguageSettings common = 1;
  2477   * @return {?proto.google.api.CommonLanguageSettings}
  2478   */
  2479  proto.google.api.DotnetSettings.prototype.getCommon = function() {
  2480    return /** @type{?proto.google.api.CommonLanguageSettings} */ (
  2481      jspb.Message.getWrapperField(this, proto.google.api.CommonLanguageSettings, 1));
  2482  };
  2483  
  2484  
  2485  /**
  2486   * @param {?proto.google.api.CommonLanguageSettings|undefined} value
  2487   * @return {!proto.google.api.DotnetSettings} returns this
  2488  */
  2489  proto.google.api.DotnetSettings.prototype.setCommon = function(value) {
  2490    return jspb.Message.setWrapperField(this, 1, value);
  2491  };
  2492  
  2493  
  2494  /**
  2495   * Clears the message field making it undefined.
  2496   * @return {!proto.google.api.DotnetSettings} returns this
  2497   */
  2498  proto.google.api.DotnetSettings.prototype.clearCommon = function() {
  2499    return this.setCommon(undefined);
  2500  };
  2501  
  2502  
  2503  /**
  2504   * Returns whether this field is set.
  2505   * @return {boolean}
  2506   */
  2507  proto.google.api.DotnetSettings.prototype.hasCommon = function() {
  2508    return jspb.Message.getField(this, 1) != null;
  2509  };
  2510  
  2511  
  2512  
  2513  
  2514  
  2515  if (jspb.Message.GENERATE_TO_OBJECT) {
  2516  /**
  2517   * Creates an object representation of this proto.
  2518   * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2519   * Optional fields that are not set will be set to undefined.
  2520   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2521   * For the list of reserved names please see:
  2522   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2523   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2524   *     JSPB instance for transitional soy proto support:
  2525   *     http://goto/soy-param-migration
  2526   * @return {!Object}
  2527   */
  2528  proto.google.api.RubySettings.prototype.toObject = function(opt_includeInstance) {
  2529    return proto.google.api.RubySettings.toObject(opt_includeInstance, this);
  2530  };
  2531  
  2532  
  2533  /**
  2534   * Static version of the {@see toObject} method.
  2535   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2536   *     the JSPB instance for transitional soy proto support:
  2537   *     http://goto/soy-param-migration
  2538   * @param {!proto.google.api.RubySettings} msg The msg instance to transform.
  2539   * @return {!Object}
  2540   * @suppress {unusedLocalVariables} f is only used for nested messages
  2541   */
  2542  proto.google.api.RubySettings.toObject = function(includeInstance, msg) {
  2543    var f, obj = {
  2544      common: (f = msg.getCommon()) && proto.google.api.CommonLanguageSettings.toObject(includeInstance, f)
  2545    };
  2546  
  2547    if (includeInstance) {
  2548      obj.$jspbMessageInstance = msg;
  2549    }
  2550    return obj;
  2551  };
  2552  }
  2553  
  2554  
  2555  /**
  2556   * Deserializes binary data (in protobuf wire format).
  2557   * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2558   * @return {!proto.google.api.RubySettings}
  2559   */
  2560  proto.google.api.RubySettings.deserializeBinary = function(bytes) {
  2561    var reader = new jspb.BinaryReader(bytes);
  2562    var msg = new proto.google.api.RubySettings;
  2563    return proto.google.api.RubySettings.deserializeBinaryFromReader(msg, reader);
  2564  };
  2565  
  2566  
  2567  /**
  2568   * Deserializes binary data (in protobuf wire format) from the
  2569   * given reader into the given message object.
  2570   * @param {!proto.google.api.RubySettings} msg The message object to deserialize into.
  2571   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2572   * @return {!proto.google.api.RubySettings}
  2573   */
  2574  proto.google.api.RubySettings.deserializeBinaryFromReader = function(msg, reader) {
  2575    while (reader.nextField()) {
  2576      if (reader.isEndGroup()) {
  2577        break;
  2578      }
  2579      var field = reader.getFieldNumber();
  2580      switch (field) {
  2581      case 1:
  2582        var value = new proto.google.api.CommonLanguageSettings;
  2583        reader.readMessage(value,proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader);
  2584        msg.setCommon(value);
  2585        break;
  2586      default:
  2587        reader.skipField();
  2588        break;
  2589      }
  2590    }
  2591    return msg;
  2592  };
  2593  
  2594  
  2595  /**
  2596   * Serializes the message to binary data (in protobuf wire format).
  2597   * @return {!Uint8Array}
  2598   */
  2599  proto.google.api.RubySettings.prototype.serializeBinary = function() {
  2600    var writer = new jspb.BinaryWriter();
  2601    proto.google.api.RubySettings.serializeBinaryToWriter(this, writer);
  2602    return writer.getResultBuffer();
  2603  };
  2604  
  2605  
  2606  /**
  2607   * Serializes the given message to binary data (in protobuf wire
  2608   * format), writing to the given BinaryWriter.
  2609   * @param {!proto.google.api.RubySettings} message
  2610   * @param {!jspb.BinaryWriter} writer
  2611   * @suppress {unusedLocalVariables} f is only used for nested messages
  2612   */
  2613  proto.google.api.RubySettings.serializeBinaryToWriter = function(message, writer) {
  2614    var f = undefined;
  2615    f = message.getCommon();
  2616    if (f != null) {
  2617      writer.writeMessage(
  2618        1,
  2619        f,
  2620        proto.google.api.CommonLanguageSettings.serializeBinaryToWriter
  2621      );
  2622    }
  2623  };
  2624  
  2625  
  2626  /**
  2627   * optional CommonLanguageSettings common = 1;
  2628   * @return {?proto.google.api.CommonLanguageSettings}
  2629   */
  2630  proto.google.api.RubySettings.prototype.getCommon = function() {
  2631    return /** @type{?proto.google.api.CommonLanguageSettings} */ (
  2632      jspb.Message.getWrapperField(this, proto.google.api.CommonLanguageSettings, 1));
  2633  };
  2634  
  2635  
  2636  /**
  2637   * @param {?proto.google.api.CommonLanguageSettings|undefined} value
  2638   * @return {!proto.google.api.RubySettings} returns this
  2639  */
  2640  proto.google.api.RubySettings.prototype.setCommon = function(value) {
  2641    return jspb.Message.setWrapperField(this, 1, value);
  2642  };
  2643  
  2644  
  2645  /**
  2646   * Clears the message field making it undefined.
  2647   * @return {!proto.google.api.RubySettings} returns this
  2648   */
  2649  proto.google.api.RubySettings.prototype.clearCommon = function() {
  2650    return this.setCommon(undefined);
  2651  };
  2652  
  2653  
  2654  /**
  2655   * Returns whether this field is set.
  2656   * @return {boolean}
  2657   */
  2658  proto.google.api.RubySettings.prototype.hasCommon = function() {
  2659    return jspb.Message.getField(this, 1) != null;
  2660  };
  2661  
  2662  
  2663  
  2664  
  2665  
  2666  if (jspb.Message.GENERATE_TO_OBJECT) {
  2667  /**
  2668   * Creates an object representation of this proto.
  2669   * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2670   * Optional fields that are not set will be set to undefined.
  2671   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2672   * For the list of reserved names please see:
  2673   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2674   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2675   *     JSPB instance for transitional soy proto support:
  2676   *     http://goto/soy-param-migration
  2677   * @return {!Object}
  2678   */
  2679  proto.google.api.GoSettings.prototype.toObject = function(opt_includeInstance) {
  2680    return proto.google.api.GoSettings.toObject(opt_includeInstance, this);
  2681  };
  2682  
  2683  
  2684  /**
  2685   * Static version of the {@see toObject} method.
  2686   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2687   *     the JSPB instance for transitional soy proto support:
  2688   *     http://goto/soy-param-migration
  2689   * @param {!proto.google.api.GoSettings} msg The msg instance to transform.
  2690   * @return {!Object}
  2691   * @suppress {unusedLocalVariables} f is only used for nested messages
  2692   */
  2693  proto.google.api.GoSettings.toObject = function(includeInstance, msg) {
  2694    var f, obj = {
  2695      common: (f = msg.getCommon()) && proto.google.api.CommonLanguageSettings.toObject(includeInstance, f)
  2696    };
  2697  
  2698    if (includeInstance) {
  2699      obj.$jspbMessageInstance = msg;
  2700    }
  2701    return obj;
  2702  };
  2703  }
  2704  
  2705  
  2706  /**
  2707   * Deserializes binary data (in protobuf wire format).
  2708   * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2709   * @return {!proto.google.api.GoSettings}
  2710   */
  2711  proto.google.api.GoSettings.deserializeBinary = function(bytes) {
  2712    var reader = new jspb.BinaryReader(bytes);
  2713    var msg = new proto.google.api.GoSettings;
  2714    return proto.google.api.GoSettings.deserializeBinaryFromReader(msg, reader);
  2715  };
  2716  
  2717  
  2718  /**
  2719   * Deserializes binary data (in protobuf wire format) from the
  2720   * given reader into the given message object.
  2721   * @param {!proto.google.api.GoSettings} msg The message object to deserialize into.
  2722   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2723   * @return {!proto.google.api.GoSettings}
  2724   */
  2725  proto.google.api.GoSettings.deserializeBinaryFromReader = function(msg, reader) {
  2726    while (reader.nextField()) {
  2727      if (reader.isEndGroup()) {
  2728        break;
  2729      }
  2730      var field = reader.getFieldNumber();
  2731      switch (field) {
  2732      case 1:
  2733        var value = new proto.google.api.CommonLanguageSettings;
  2734        reader.readMessage(value,proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader);
  2735        msg.setCommon(value);
  2736        break;
  2737      default:
  2738        reader.skipField();
  2739        break;
  2740      }
  2741    }
  2742    return msg;
  2743  };
  2744  
  2745  
  2746  /**
  2747   * Serializes the message to binary data (in protobuf wire format).
  2748   * @return {!Uint8Array}
  2749   */
  2750  proto.google.api.GoSettings.prototype.serializeBinary = function() {
  2751    var writer = new jspb.BinaryWriter();
  2752    proto.google.api.GoSettings.serializeBinaryToWriter(this, writer);
  2753    return writer.getResultBuffer();
  2754  };
  2755  
  2756  
  2757  /**
  2758   * Serializes the given message to binary data (in protobuf wire
  2759   * format), writing to the given BinaryWriter.
  2760   * @param {!proto.google.api.GoSettings} message
  2761   * @param {!jspb.BinaryWriter} writer
  2762   * @suppress {unusedLocalVariables} f is only used for nested messages
  2763   */
  2764  proto.google.api.GoSettings.serializeBinaryToWriter = function(message, writer) {
  2765    var f = undefined;
  2766    f = message.getCommon();
  2767    if (f != null) {
  2768      writer.writeMessage(
  2769        1,
  2770        f,
  2771        proto.google.api.CommonLanguageSettings.serializeBinaryToWriter
  2772      );
  2773    }
  2774  };
  2775  
  2776  
  2777  /**
  2778   * optional CommonLanguageSettings common = 1;
  2779   * @return {?proto.google.api.CommonLanguageSettings}
  2780   */
  2781  proto.google.api.GoSettings.prototype.getCommon = function() {
  2782    return /** @type{?proto.google.api.CommonLanguageSettings} */ (
  2783      jspb.Message.getWrapperField(this, proto.google.api.CommonLanguageSettings, 1));
  2784  };
  2785  
  2786  
  2787  /**
  2788   * @param {?proto.google.api.CommonLanguageSettings|undefined} value
  2789   * @return {!proto.google.api.GoSettings} returns this
  2790  */
  2791  proto.google.api.GoSettings.prototype.setCommon = function(value) {
  2792    return jspb.Message.setWrapperField(this, 1, value);
  2793  };
  2794  
  2795  
  2796  /**
  2797   * Clears the message field making it undefined.
  2798   * @return {!proto.google.api.GoSettings} returns this
  2799   */
  2800  proto.google.api.GoSettings.prototype.clearCommon = function() {
  2801    return this.setCommon(undefined);
  2802  };
  2803  
  2804  
  2805  /**
  2806   * Returns whether this field is set.
  2807   * @return {boolean}
  2808   */
  2809  proto.google.api.GoSettings.prototype.hasCommon = function() {
  2810    return jspb.Message.getField(this, 1) != null;
  2811  };
  2812  
  2813  
  2814  
  2815  
  2816  
  2817  if (jspb.Message.GENERATE_TO_OBJECT) {
  2818  /**
  2819   * Creates an object representation of this proto.
  2820   * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2821   * Optional fields that are not set will be set to undefined.
  2822   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2823   * For the list of reserved names please see:
  2824   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2825   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2826   *     JSPB instance for transitional soy proto support:
  2827   *     http://goto/soy-param-migration
  2828   * @return {!Object}
  2829   */
  2830  proto.google.api.MethodSettings.prototype.toObject = function(opt_includeInstance) {
  2831    return proto.google.api.MethodSettings.toObject(opt_includeInstance, this);
  2832  };
  2833  
  2834  
  2835  /**
  2836   * Static version of the {@see toObject} method.
  2837   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2838   *     the JSPB instance for transitional soy proto support:
  2839   *     http://goto/soy-param-migration
  2840   * @param {!proto.google.api.MethodSettings} msg The msg instance to transform.
  2841   * @return {!Object}
  2842   * @suppress {unusedLocalVariables} f is only used for nested messages
  2843   */
  2844  proto.google.api.MethodSettings.toObject = function(includeInstance, msg) {
  2845    var f, obj = {
  2846      selector: jspb.Message.getFieldWithDefault(msg, 1, ""),
  2847      longRunning: (f = msg.getLongRunning()) && proto.google.api.MethodSettings.LongRunning.toObject(includeInstance, f)
  2848    };
  2849  
  2850    if (includeInstance) {
  2851      obj.$jspbMessageInstance = msg;
  2852    }
  2853    return obj;
  2854  };
  2855  }
  2856  
  2857  
  2858  /**
  2859   * Deserializes binary data (in protobuf wire format).
  2860   * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2861   * @return {!proto.google.api.MethodSettings}
  2862   */
  2863  proto.google.api.MethodSettings.deserializeBinary = function(bytes) {
  2864    var reader = new jspb.BinaryReader(bytes);
  2865    var msg = new proto.google.api.MethodSettings;
  2866    return proto.google.api.MethodSettings.deserializeBinaryFromReader(msg, reader);
  2867  };
  2868  
  2869  
  2870  /**
  2871   * Deserializes binary data (in protobuf wire format) from the
  2872   * given reader into the given message object.
  2873   * @param {!proto.google.api.MethodSettings} msg The message object to deserialize into.
  2874   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2875   * @return {!proto.google.api.MethodSettings}
  2876   */
  2877  proto.google.api.MethodSettings.deserializeBinaryFromReader = function(msg, reader) {
  2878    while (reader.nextField()) {
  2879      if (reader.isEndGroup()) {
  2880        break;
  2881      }
  2882      var field = reader.getFieldNumber();
  2883      switch (field) {
  2884      case 1:
  2885        var value = /** @type {string} */ (reader.readString());
  2886        msg.setSelector(value);
  2887        break;
  2888      case 2:
  2889        var value = new proto.google.api.MethodSettings.LongRunning;
  2890        reader.readMessage(value,proto.google.api.MethodSettings.LongRunning.deserializeBinaryFromReader);
  2891        msg.setLongRunning(value);
  2892        break;
  2893      default:
  2894        reader.skipField();
  2895        break;
  2896      }
  2897    }
  2898    return msg;
  2899  };
  2900  
  2901  
  2902  /**
  2903   * Serializes the message to binary data (in protobuf wire format).
  2904   * @return {!Uint8Array}
  2905   */
  2906  proto.google.api.MethodSettings.prototype.serializeBinary = function() {
  2907    var writer = new jspb.BinaryWriter();
  2908    proto.google.api.MethodSettings.serializeBinaryToWriter(this, writer);
  2909    return writer.getResultBuffer();
  2910  };
  2911  
  2912  
  2913  /**
  2914   * Serializes the given message to binary data (in protobuf wire
  2915   * format), writing to the given BinaryWriter.
  2916   * @param {!proto.google.api.MethodSettings} message
  2917   * @param {!jspb.BinaryWriter} writer
  2918   * @suppress {unusedLocalVariables} f is only used for nested messages
  2919   */
  2920  proto.google.api.MethodSettings.serializeBinaryToWriter = function(message, writer) {
  2921    var f = undefined;
  2922    f = message.getSelector();
  2923    if (f.length > 0) {
  2924      writer.writeString(
  2925        1,
  2926        f
  2927      );
  2928    }
  2929    f = message.getLongRunning();
  2930    if (f != null) {
  2931      writer.writeMessage(
  2932        2,
  2933        f,
  2934        proto.google.api.MethodSettings.LongRunning.serializeBinaryToWriter
  2935      );
  2936    }
  2937  };
  2938  
  2939  
  2940  
  2941  
  2942  
  2943  if (jspb.Message.GENERATE_TO_OBJECT) {
  2944  /**
  2945   * Creates an object representation of this proto.
  2946   * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2947   * Optional fields that are not set will be set to undefined.
  2948   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2949   * For the list of reserved names please see:
  2950   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2951   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2952   *     JSPB instance for transitional soy proto support:
  2953   *     http://goto/soy-param-migration
  2954   * @return {!Object}
  2955   */
  2956  proto.google.api.MethodSettings.LongRunning.prototype.toObject = function(opt_includeInstance) {
  2957    return proto.google.api.MethodSettings.LongRunning.toObject(opt_includeInstance, this);
  2958  };
  2959  
  2960  
  2961  /**
  2962   * Static version of the {@see toObject} method.
  2963   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2964   *     the JSPB instance for transitional soy proto support:
  2965   *     http://goto/soy-param-migration
  2966   * @param {!proto.google.api.MethodSettings.LongRunning} msg The msg instance to transform.
  2967   * @return {!Object}
  2968   * @suppress {unusedLocalVariables} f is only used for nested messages
  2969   */
  2970  proto.google.api.MethodSettings.LongRunning.toObject = function(includeInstance, msg) {
  2971    var f, obj = {
  2972      initialPollDelay: (f = msg.getInitialPollDelay()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f),
  2973      pollDelayMultiplier: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
  2974      maxPollDelay: (f = msg.getMaxPollDelay()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f),
  2975      totalPollTimeout: (f = msg.getTotalPollTimeout()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f)
  2976    };
  2977  
  2978    if (includeInstance) {
  2979      obj.$jspbMessageInstance = msg;
  2980    }
  2981    return obj;
  2982  };
  2983  }
  2984  
  2985  
  2986  /**
  2987   * Deserializes binary data (in protobuf wire format).
  2988   * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2989   * @return {!proto.google.api.MethodSettings.LongRunning}
  2990   */
  2991  proto.google.api.MethodSettings.LongRunning.deserializeBinary = function(bytes) {
  2992    var reader = new jspb.BinaryReader(bytes);
  2993    var msg = new proto.google.api.MethodSettings.LongRunning;
  2994    return proto.google.api.MethodSettings.LongRunning.deserializeBinaryFromReader(msg, reader);
  2995  };
  2996  
  2997  
  2998  /**
  2999   * Deserializes binary data (in protobuf wire format) from the
  3000   * given reader into the given message object.
  3001   * @param {!proto.google.api.MethodSettings.LongRunning} msg The message object to deserialize into.
  3002   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  3003   * @return {!proto.google.api.MethodSettings.LongRunning}
  3004   */
  3005  proto.google.api.MethodSettings.LongRunning.deserializeBinaryFromReader = function(msg, reader) {
  3006    while (reader.nextField()) {
  3007      if (reader.isEndGroup()) {
  3008        break;
  3009      }
  3010      var field = reader.getFieldNumber();
  3011      switch (field) {
  3012      case 1:
  3013        var value = new google_protobuf_duration_pb.Duration;
  3014        reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader);
  3015        msg.setInitialPollDelay(value);
  3016        break;
  3017      case 2:
  3018        var value = /** @type {number} */ (reader.readFloat());
  3019        msg.setPollDelayMultiplier(value);
  3020        break;
  3021      case 3:
  3022        var value = new google_protobuf_duration_pb.Duration;
  3023        reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader);
  3024        msg.setMaxPollDelay(value);
  3025        break;
  3026      case 4:
  3027        var value = new google_protobuf_duration_pb.Duration;
  3028        reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader);
  3029        msg.setTotalPollTimeout(value);
  3030        break;
  3031      default:
  3032        reader.skipField();
  3033        break;
  3034      }
  3035    }
  3036    return msg;
  3037  };
  3038  
  3039  
  3040  /**
  3041   * Serializes the message to binary data (in protobuf wire format).
  3042   * @return {!Uint8Array}
  3043   */
  3044  proto.google.api.MethodSettings.LongRunning.prototype.serializeBinary = function() {
  3045    var writer = new jspb.BinaryWriter();
  3046    proto.google.api.MethodSettings.LongRunning.serializeBinaryToWriter(this, writer);
  3047    return writer.getResultBuffer();
  3048  };
  3049  
  3050  
  3051  /**
  3052   * Serializes the given message to binary data (in protobuf wire
  3053   * format), writing to the given BinaryWriter.
  3054   * @param {!proto.google.api.MethodSettings.LongRunning} message
  3055   * @param {!jspb.BinaryWriter} writer
  3056   * @suppress {unusedLocalVariables} f is only used for nested messages
  3057   */
  3058  proto.google.api.MethodSettings.LongRunning.serializeBinaryToWriter = function(message, writer) {
  3059    var f = undefined;
  3060    f = message.getInitialPollDelay();
  3061    if (f != null) {
  3062      writer.writeMessage(
  3063        1,
  3064        f,
  3065        google_protobuf_duration_pb.Duration.serializeBinaryToWriter
  3066      );
  3067    }
  3068    f = message.getPollDelayMultiplier();
  3069    if (f !== 0.0) {
  3070      writer.writeFloat(
  3071        2,
  3072        f
  3073      );
  3074    }
  3075    f = message.getMaxPollDelay();
  3076    if (f != null) {
  3077      writer.writeMessage(
  3078        3,
  3079        f,
  3080        google_protobuf_duration_pb.Duration.serializeBinaryToWriter
  3081      );
  3082    }
  3083    f = message.getTotalPollTimeout();
  3084    if (f != null) {
  3085      writer.writeMessage(
  3086        4,
  3087        f,
  3088        google_protobuf_duration_pb.Duration.serializeBinaryToWriter
  3089      );
  3090    }
  3091  };
  3092  
  3093  
  3094  /**
  3095   * optional google.protobuf.Duration initial_poll_delay = 1;
  3096   * @return {?proto.google.protobuf.Duration}
  3097   */
  3098  proto.google.api.MethodSettings.LongRunning.prototype.getInitialPollDelay = function() {
  3099    return /** @type{?proto.google.protobuf.Duration} */ (
  3100      jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 1));
  3101  };
  3102  
  3103  
  3104  /**
  3105   * @param {?proto.google.protobuf.Duration|undefined} value
  3106   * @return {!proto.google.api.MethodSettings.LongRunning} returns this
  3107  */
  3108  proto.google.api.MethodSettings.LongRunning.prototype.setInitialPollDelay = function(value) {
  3109    return jspb.Message.setWrapperField(this, 1, value);
  3110  };
  3111  
  3112  
  3113  /**
  3114   * Clears the message field making it undefined.
  3115   * @return {!proto.google.api.MethodSettings.LongRunning} returns this
  3116   */
  3117  proto.google.api.MethodSettings.LongRunning.prototype.clearInitialPollDelay = function() {
  3118    return this.setInitialPollDelay(undefined);
  3119  };
  3120  
  3121  
  3122  /**
  3123   * Returns whether this field is set.
  3124   * @return {boolean}
  3125   */
  3126  proto.google.api.MethodSettings.LongRunning.prototype.hasInitialPollDelay = function() {
  3127    return jspb.Message.getField(this, 1) != null;
  3128  };
  3129  
  3130  
  3131  /**
  3132   * optional float poll_delay_multiplier = 2;
  3133   * @return {number}
  3134   */
  3135  proto.google.api.MethodSettings.LongRunning.prototype.getPollDelayMultiplier = function() {
  3136    return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
  3137  };
  3138  
  3139  
  3140  /**
  3141   * @param {number} value
  3142   * @return {!proto.google.api.MethodSettings.LongRunning} returns this
  3143   */
  3144  proto.google.api.MethodSettings.LongRunning.prototype.setPollDelayMultiplier = function(value) {
  3145    return jspb.Message.setProto3FloatField(this, 2, value);
  3146  };
  3147  
  3148  
  3149  /**
  3150   * optional google.protobuf.Duration max_poll_delay = 3;
  3151   * @return {?proto.google.protobuf.Duration}
  3152   */
  3153  proto.google.api.MethodSettings.LongRunning.prototype.getMaxPollDelay = function() {
  3154    return /** @type{?proto.google.protobuf.Duration} */ (
  3155      jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 3));
  3156  };
  3157  
  3158  
  3159  /**
  3160   * @param {?proto.google.protobuf.Duration|undefined} value
  3161   * @return {!proto.google.api.MethodSettings.LongRunning} returns this
  3162  */
  3163  proto.google.api.MethodSettings.LongRunning.prototype.setMaxPollDelay = function(value) {
  3164    return jspb.Message.setWrapperField(this, 3, value);
  3165  };
  3166  
  3167  
  3168  /**
  3169   * Clears the message field making it undefined.
  3170   * @return {!proto.google.api.MethodSettings.LongRunning} returns this
  3171   */
  3172  proto.google.api.MethodSettings.LongRunning.prototype.clearMaxPollDelay = function() {
  3173    return this.setMaxPollDelay(undefined);
  3174  };
  3175  
  3176  
  3177  /**
  3178   * Returns whether this field is set.
  3179   * @return {boolean}
  3180   */
  3181  proto.google.api.MethodSettings.LongRunning.prototype.hasMaxPollDelay = function() {
  3182    return jspb.Message.getField(this, 3) != null;
  3183  };
  3184  
  3185  
  3186  /**
  3187   * optional google.protobuf.Duration total_poll_timeout = 4;
  3188   * @return {?proto.google.protobuf.Duration}
  3189   */
  3190  proto.google.api.MethodSettings.LongRunning.prototype.getTotalPollTimeout = function() {
  3191    return /** @type{?proto.google.protobuf.Duration} */ (
  3192      jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 4));
  3193  };
  3194  
  3195  
  3196  /**
  3197   * @param {?proto.google.protobuf.Duration|undefined} value
  3198   * @return {!proto.google.api.MethodSettings.LongRunning} returns this
  3199  */
  3200  proto.google.api.MethodSettings.LongRunning.prototype.setTotalPollTimeout = function(value) {
  3201    return jspb.Message.setWrapperField(this, 4, value);
  3202  };
  3203  
  3204  
  3205  /**
  3206   * Clears the message field making it undefined.
  3207   * @return {!proto.google.api.MethodSettings.LongRunning} returns this
  3208   */
  3209  proto.google.api.MethodSettings.LongRunning.prototype.clearTotalPollTimeout = function() {
  3210    return this.setTotalPollTimeout(undefined);
  3211  };
  3212  
  3213  
  3214  /**
  3215   * Returns whether this field is set.
  3216   * @return {boolean}
  3217   */
  3218  proto.google.api.MethodSettings.LongRunning.prototype.hasTotalPollTimeout = function() {
  3219    return jspb.Message.getField(this, 4) != null;
  3220  };
  3221  
  3222  
  3223  /**
  3224   * optional string selector = 1;
  3225   * @return {string}
  3226   */
  3227  proto.google.api.MethodSettings.prototype.getSelector = function() {
  3228    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  3229  };
  3230  
  3231  
  3232  /**
  3233   * @param {string} value
  3234   * @return {!proto.google.api.MethodSettings} returns this
  3235   */
  3236  proto.google.api.MethodSettings.prototype.setSelector = function(value) {
  3237    return jspb.Message.setProto3StringField(this, 1, value);
  3238  };
  3239  
  3240  
  3241  /**
  3242   * optional LongRunning long_running = 2;
  3243   * @return {?proto.google.api.MethodSettings.LongRunning}
  3244   */
  3245  proto.google.api.MethodSettings.prototype.getLongRunning = function() {
  3246    return /** @type{?proto.google.api.MethodSettings.LongRunning} */ (
  3247      jspb.Message.getWrapperField(this, proto.google.api.MethodSettings.LongRunning, 2));
  3248  };
  3249  
  3250  
  3251  /**
  3252   * @param {?proto.google.api.MethodSettings.LongRunning|undefined} value
  3253   * @return {!proto.google.api.MethodSettings} returns this
  3254  */
  3255  proto.google.api.MethodSettings.prototype.setLongRunning = function(value) {
  3256    return jspb.Message.setWrapperField(this, 2, value);
  3257  };
  3258  
  3259  
  3260  /**
  3261   * Clears the message field making it undefined.
  3262   * @return {!proto.google.api.MethodSettings} returns this
  3263   */
  3264  proto.google.api.MethodSettings.prototype.clearLongRunning = function() {
  3265    return this.setLongRunning(undefined);
  3266  };
  3267  
  3268  
  3269  /**
  3270   * Returns whether this field is set.
  3271   * @return {boolean}
  3272   */
  3273  proto.google.api.MethodSettings.prototype.hasLongRunning = function() {
  3274    return jspb.Message.getField(this, 2) != null;
  3275  };
  3276  
  3277  
  3278  /**
  3279   * @enum {number}
  3280   */
  3281  proto.google.api.ClientLibraryOrganization = {
  3282    CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED: 0,
  3283    CLOUD: 1,
  3284    ADS: 2,
  3285    PHOTOS: 3,
  3286    STREET_VIEW: 4
  3287  };
  3288  
  3289  /**
  3290   * @enum {number}
  3291   */
  3292  proto.google.api.ClientLibraryDestination = {
  3293    CLIENT_LIBRARY_DESTINATION_UNSPECIFIED: 0,
  3294    GITHUB: 10,
  3295    PACKAGE_MANAGER: 20
  3296  };
  3297  
  3298  
  3299  /**
  3300   * A tuple of {field number, class constructor} for the extension
  3301   * field named `methodSignatureList`.
  3302   * @type {!jspb.ExtensionFieldInfo<!Array<string>>}
  3303   */
  3304  proto.google.api.methodSignatureList = new jspb.ExtensionFieldInfo(
  3305      1051,
  3306      {methodSignatureList: 0},
  3307      null,
  3308       /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
  3309           null),
  3310      1);
  3311  
  3312  google_protobuf_descriptor_pb.MethodOptions.extensionsBinary[1051] = new jspb.ExtensionFieldBinaryInfo(
  3313      proto.google.api.methodSignatureList,
  3314      jspb.BinaryReader.prototype.readString,
  3315      jspb.BinaryWriter.prototype.writeRepeatedString,
  3316      undefined,
  3317      undefined,
  3318      false);
  3319  // This registers the extension field with the extended class, so that
  3320  // toObject() will function correctly.
  3321  google_protobuf_descriptor_pb.MethodOptions.extensions[1051] = proto.google.api.methodSignatureList;
  3322  
  3323  
  3324  /**
  3325   * A tuple of {field number, class constructor} for the extension
  3326   * field named `defaultHost`.
  3327   * @type {!jspb.ExtensionFieldInfo<string>}
  3328   */
  3329  proto.google.api.defaultHost = new jspb.ExtensionFieldInfo(
  3330      1049,
  3331      {defaultHost: 0},
  3332      null,
  3333       /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
  3334           null),
  3335      0);
  3336  
  3337  google_protobuf_descriptor_pb.ServiceOptions.extensionsBinary[1049] = new jspb.ExtensionFieldBinaryInfo(
  3338      proto.google.api.defaultHost,
  3339      jspb.BinaryReader.prototype.readString,
  3340      jspb.BinaryWriter.prototype.writeString,
  3341      undefined,
  3342      undefined,
  3343      false);
  3344  // This registers the extension field with the extended class, so that
  3345  // toObject() will function correctly.
  3346  google_protobuf_descriptor_pb.ServiceOptions.extensions[1049] = proto.google.api.defaultHost;
  3347  
  3348  
  3349  /**
  3350   * A tuple of {field number, class constructor} for the extension
  3351   * field named `oauthScopes`.
  3352   * @type {!jspb.ExtensionFieldInfo<string>}
  3353   */
  3354  proto.google.api.oauthScopes = new jspb.ExtensionFieldInfo(
  3355      1050,
  3356      {oauthScopes: 0},
  3357      null,
  3358       /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
  3359           null),
  3360      0);
  3361  
  3362  google_protobuf_descriptor_pb.ServiceOptions.extensionsBinary[1050] = new jspb.ExtensionFieldBinaryInfo(
  3363      proto.google.api.oauthScopes,
  3364      jspb.BinaryReader.prototype.readString,
  3365      jspb.BinaryWriter.prototype.writeString,
  3366      undefined,
  3367      undefined,
  3368      false);
  3369  // This registers the extension field with the extended class, so that
  3370  // toObject() will function correctly.
  3371  google_protobuf_descriptor_pb.ServiceOptions.extensions[1050] = proto.google.api.oauthScopes;
  3372  
  3373  goog.object.extend(exports, proto.google.api);