Adrià Vilanova MartÃnez | 413cb44 | 2021-09-06 00:30:45 +0200 | [diff] [blame] | 1 | // source: google/protobuf/descriptor.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 proto = {}; |
| 17 | |
| 18 | goog.exportSymbol('google.protobuf.DescriptorProto', null, proto); |
| 19 | goog.exportSymbol('google.protobuf.DescriptorProto.ExtensionRange', null, proto); |
| 20 | goog.exportSymbol('google.protobuf.DescriptorProto.ReservedRange', null, proto); |
| 21 | goog.exportSymbol('google.protobuf.EnumDescriptorProto', null, proto); |
| 22 | goog.exportSymbol('google.protobuf.EnumDescriptorProto.EnumReservedRange', null, proto); |
| 23 | goog.exportSymbol('google.protobuf.EnumOptions', null, proto); |
| 24 | goog.exportSymbol('google.protobuf.EnumValueDescriptorProto', null, proto); |
| 25 | goog.exportSymbol('google.protobuf.EnumValueOptions', null, proto); |
| 26 | goog.exportSymbol('google.protobuf.ExtensionRangeOptions', null, proto); |
| 27 | goog.exportSymbol('google.protobuf.FieldDescriptorProto', null, proto); |
| 28 | goog.exportSymbol('google.protobuf.FieldDescriptorProto.Label', null, proto); |
| 29 | goog.exportSymbol('google.protobuf.FieldDescriptorProto.Type', null, proto); |
| 30 | goog.exportSymbol('google.protobuf.FieldOptions', null, proto); |
| 31 | goog.exportSymbol('google.protobuf.FieldOptions.CType', null, proto); |
| 32 | goog.exportSymbol('google.protobuf.FieldOptions.JSType', null, proto); |
| 33 | goog.exportSymbol('google.protobuf.FileDescriptorProto', null, proto); |
| 34 | goog.exportSymbol('google.protobuf.FileDescriptorSet', null, proto); |
| 35 | goog.exportSymbol('google.protobuf.FileOptions', null, proto); |
| 36 | goog.exportSymbol('google.protobuf.FileOptions.OptimizeMode', null, proto); |
| 37 | goog.exportSymbol('google.protobuf.GeneratedCodeInfo', null, proto); |
| 38 | goog.exportSymbol('google.protobuf.GeneratedCodeInfo.Annotation', null, proto); |
| 39 | goog.exportSymbol('google.protobuf.MessageOptions', null, proto); |
| 40 | goog.exportSymbol('google.protobuf.MethodDescriptorProto', null, proto); |
| 41 | goog.exportSymbol('google.protobuf.MethodOptions', null, proto); |
| 42 | goog.exportSymbol('google.protobuf.MethodOptions.IdempotencyLevel', null, proto); |
| 43 | goog.exportSymbol('google.protobuf.OneofDescriptorProto', null, proto); |
| 44 | goog.exportSymbol('google.protobuf.OneofOptions', null, proto); |
| 45 | goog.exportSymbol('google.protobuf.ServiceDescriptorProto', null, proto); |
| 46 | goog.exportSymbol('google.protobuf.ServiceOptions', null, proto); |
| 47 | goog.exportSymbol('google.protobuf.SourceCodeInfo', null, proto); |
| 48 | goog.exportSymbol('google.protobuf.SourceCodeInfo.Location', null, proto); |
| 49 | goog.exportSymbol('google.protobuf.UninterpretedOption', null, proto); |
| 50 | goog.exportSymbol('google.protobuf.UninterpretedOption.NamePart', null, proto); |
| 51 | /** |
| 52 | * Generated by JsPbCodeGenerator. |
| 53 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 54 | * server response, or constructed directly in Javascript. The array is used |
| 55 | * in place and becomes part of the constructed object. It is not cloned. |
| 56 | * If no data is provided, the constructed object will be empty, but still |
| 57 | * valid. |
| 58 | * @extends {jspb.Message} |
| 59 | * @constructor |
| 60 | */ |
| 61 | proto.google.protobuf.FileDescriptorSet = function(opt_data) { |
| 62 | jspb.Message.initialize(this, opt_data, 0, -1, proto.google.protobuf.FileDescriptorSet.repeatedFields_, null); |
| 63 | }; |
| 64 | goog.inherits(proto.google.protobuf.FileDescriptorSet, jspb.Message); |
| 65 | if (goog.DEBUG && !COMPILED) { |
| 66 | /** |
| 67 | * @public |
| 68 | * @override |
| 69 | */ |
| 70 | proto.google.protobuf.FileDescriptorSet.displayName = 'proto.google.protobuf.FileDescriptorSet'; |
| 71 | } |
| 72 | /** |
| 73 | * Generated by JsPbCodeGenerator. |
| 74 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 75 | * server response, or constructed directly in Javascript. The array is used |
| 76 | * in place and becomes part of the constructed object. It is not cloned. |
| 77 | * If no data is provided, the constructed object will be empty, but still |
| 78 | * valid. |
| 79 | * @extends {jspb.Message} |
| 80 | * @constructor |
| 81 | */ |
| 82 | proto.google.protobuf.FileDescriptorProto = function(opt_data) { |
| 83 | jspb.Message.initialize(this, opt_data, 0, -1, proto.google.protobuf.FileDescriptorProto.repeatedFields_, null); |
| 84 | }; |
| 85 | goog.inherits(proto.google.protobuf.FileDescriptorProto, jspb.Message); |
| 86 | if (goog.DEBUG && !COMPILED) { |
| 87 | /** |
| 88 | * @public |
| 89 | * @override |
| 90 | */ |
| 91 | proto.google.protobuf.FileDescriptorProto.displayName = 'proto.google.protobuf.FileDescriptorProto'; |
| 92 | } |
| 93 | /** |
| 94 | * Generated by JsPbCodeGenerator. |
| 95 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 96 | * server response, or constructed directly in Javascript. The array is used |
| 97 | * in place and becomes part of the constructed object. It is not cloned. |
| 98 | * If no data is provided, the constructed object will be empty, but still |
| 99 | * valid. |
| 100 | * @extends {jspb.Message} |
| 101 | * @constructor |
| 102 | */ |
| 103 | proto.google.protobuf.DescriptorProto = function(opt_data) { |
| 104 | jspb.Message.initialize(this, opt_data, 0, -1, proto.google.protobuf.DescriptorProto.repeatedFields_, null); |
| 105 | }; |
| 106 | goog.inherits(proto.google.protobuf.DescriptorProto, jspb.Message); |
| 107 | if (goog.DEBUG && !COMPILED) { |
| 108 | /** |
| 109 | * @public |
| 110 | * @override |
| 111 | */ |
| 112 | proto.google.protobuf.DescriptorProto.displayName = 'proto.google.protobuf.DescriptorProto'; |
| 113 | } |
| 114 | /** |
| 115 | * Generated by JsPbCodeGenerator. |
| 116 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 117 | * server response, or constructed directly in Javascript. The array is used |
| 118 | * in place and becomes part of the constructed object. It is not cloned. |
| 119 | * If no data is provided, the constructed object will be empty, but still |
| 120 | * valid. |
| 121 | * @extends {jspb.Message} |
| 122 | * @constructor |
| 123 | */ |
| 124 | proto.google.protobuf.DescriptorProto.ExtensionRange = function(opt_data) { |
| 125 | jspb.Message.initialize(this, opt_data, 0, -1, null, null); |
| 126 | }; |
| 127 | goog.inherits(proto.google.protobuf.DescriptorProto.ExtensionRange, jspb.Message); |
| 128 | if (goog.DEBUG && !COMPILED) { |
| 129 | /** |
| 130 | * @public |
| 131 | * @override |
| 132 | */ |
| 133 | proto.google.protobuf.DescriptorProto.ExtensionRange.displayName = 'proto.google.protobuf.DescriptorProto.ExtensionRange'; |
| 134 | } |
| 135 | /** |
| 136 | * Generated by JsPbCodeGenerator. |
| 137 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 138 | * server response, or constructed directly in Javascript. The array is used |
| 139 | * in place and becomes part of the constructed object. It is not cloned. |
| 140 | * If no data is provided, the constructed object will be empty, but still |
| 141 | * valid. |
| 142 | * @extends {jspb.Message} |
| 143 | * @constructor |
| 144 | */ |
| 145 | proto.google.protobuf.DescriptorProto.ReservedRange = function(opt_data) { |
| 146 | jspb.Message.initialize(this, opt_data, 0, -1, null, null); |
| 147 | }; |
| 148 | goog.inherits(proto.google.protobuf.DescriptorProto.ReservedRange, jspb.Message); |
| 149 | if (goog.DEBUG && !COMPILED) { |
| 150 | /** |
| 151 | * @public |
| 152 | * @override |
| 153 | */ |
| 154 | proto.google.protobuf.DescriptorProto.ReservedRange.displayName = 'proto.google.protobuf.DescriptorProto.ReservedRange'; |
| 155 | } |
| 156 | /** |
| 157 | * Generated by JsPbCodeGenerator. |
| 158 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 159 | * server response, or constructed directly in Javascript. The array is used |
| 160 | * in place and becomes part of the constructed object. It is not cloned. |
| 161 | * If no data is provided, the constructed object will be empty, but still |
| 162 | * valid. |
| 163 | * @extends {jspb.Message} |
| 164 | * @constructor |
| 165 | */ |
| 166 | proto.google.protobuf.ExtensionRangeOptions = function(opt_data) { |
| 167 | jspb.Message.initialize(this, opt_data, 0, 500, proto.google.protobuf.ExtensionRangeOptions.repeatedFields_, null); |
| 168 | }; |
| 169 | goog.inherits(proto.google.protobuf.ExtensionRangeOptions, jspb.Message); |
| 170 | if (goog.DEBUG && !COMPILED) { |
| 171 | /** |
| 172 | * @public |
| 173 | * @override |
| 174 | */ |
| 175 | proto.google.protobuf.ExtensionRangeOptions.displayName = 'proto.google.protobuf.ExtensionRangeOptions'; |
| 176 | } |
| 177 | |
| 178 | /** |
| 179 | * The extensions registered with this message class. This is a map of |
| 180 | * extension field number to fieldInfo object. |
| 181 | * |
| 182 | * For example: |
| 183 | * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} } |
| 184 | * |
| 185 | * fieldName contains the JsCompiler renamed field name property so that it |
| 186 | * works in OPTIMIZED mode. |
| 187 | * |
| 188 | * @type {!Object<number, jspb.ExtensionFieldInfo>} |
| 189 | */ |
| 190 | proto.google.protobuf.ExtensionRangeOptions.extensions = {}; |
| 191 | |
| 192 | |
| 193 | /** |
| 194 | * The extensions registered with this message class. This is a map of |
| 195 | * extension field number to fieldInfo object. |
| 196 | * |
| 197 | * For example: |
| 198 | * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} } |
| 199 | * |
| 200 | * fieldName contains the JsCompiler renamed field name property so that it |
| 201 | * works in OPTIMIZED mode. |
| 202 | * |
| 203 | * @type {!Object<number, jspb.ExtensionFieldBinaryInfo>} |
| 204 | */ |
| 205 | proto.google.protobuf.ExtensionRangeOptions.extensionsBinary = {}; |
| 206 | |
| 207 | /** |
| 208 | * Generated by JsPbCodeGenerator. |
| 209 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 210 | * server response, or constructed directly in Javascript. The array is used |
| 211 | * in place and becomes part of the constructed object. It is not cloned. |
| 212 | * If no data is provided, the constructed object will be empty, but still |
| 213 | * valid. |
| 214 | * @extends {jspb.Message} |
| 215 | * @constructor |
| 216 | */ |
| 217 | proto.google.protobuf.FieldDescriptorProto = function(opt_data) { |
| 218 | jspb.Message.initialize(this, opt_data, 0, -1, null, null); |
| 219 | }; |
| 220 | goog.inherits(proto.google.protobuf.FieldDescriptorProto, jspb.Message); |
| 221 | if (goog.DEBUG && !COMPILED) { |
| 222 | /** |
| 223 | * @public |
| 224 | * @override |
| 225 | */ |
| 226 | proto.google.protobuf.FieldDescriptorProto.displayName = 'proto.google.protobuf.FieldDescriptorProto'; |
| 227 | } |
| 228 | /** |
| 229 | * Generated by JsPbCodeGenerator. |
| 230 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 231 | * server response, or constructed directly in Javascript. The array is used |
| 232 | * in place and becomes part of the constructed object. It is not cloned. |
| 233 | * If no data is provided, the constructed object will be empty, but still |
| 234 | * valid. |
| 235 | * @extends {jspb.Message} |
| 236 | * @constructor |
| 237 | */ |
| 238 | proto.google.protobuf.OneofDescriptorProto = function(opt_data) { |
| 239 | jspb.Message.initialize(this, opt_data, 0, -1, null, null); |
| 240 | }; |
| 241 | goog.inherits(proto.google.protobuf.OneofDescriptorProto, jspb.Message); |
| 242 | if (goog.DEBUG && !COMPILED) { |
| 243 | /** |
| 244 | * @public |
| 245 | * @override |
| 246 | */ |
| 247 | proto.google.protobuf.OneofDescriptorProto.displayName = 'proto.google.protobuf.OneofDescriptorProto'; |
| 248 | } |
| 249 | /** |
| 250 | * Generated by JsPbCodeGenerator. |
| 251 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 252 | * server response, or constructed directly in Javascript. The array is used |
| 253 | * in place and becomes part of the constructed object. It is not cloned. |
| 254 | * If no data is provided, the constructed object will be empty, but still |
| 255 | * valid. |
| 256 | * @extends {jspb.Message} |
| 257 | * @constructor |
| 258 | */ |
| 259 | proto.google.protobuf.EnumDescriptorProto = function(opt_data) { |
| 260 | jspb.Message.initialize(this, opt_data, 0, -1, proto.google.protobuf.EnumDescriptorProto.repeatedFields_, null); |
| 261 | }; |
| 262 | goog.inherits(proto.google.protobuf.EnumDescriptorProto, jspb.Message); |
| 263 | if (goog.DEBUG && !COMPILED) { |
| 264 | /** |
| 265 | * @public |
| 266 | * @override |
| 267 | */ |
| 268 | proto.google.protobuf.EnumDescriptorProto.displayName = 'proto.google.protobuf.EnumDescriptorProto'; |
| 269 | } |
| 270 | /** |
| 271 | * Generated by JsPbCodeGenerator. |
| 272 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 273 | * server response, or constructed directly in Javascript. The array is used |
| 274 | * in place and becomes part of the constructed object. It is not cloned. |
| 275 | * If no data is provided, the constructed object will be empty, but still |
| 276 | * valid. |
| 277 | * @extends {jspb.Message} |
| 278 | * @constructor |
| 279 | */ |
| 280 | proto.google.protobuf.EnumDescriptorProto.EnumReservedRange = function(opt_data) { |
| 281 | jspb.Message.initialize(this, opt_data, 0, -1, null, null); |
| 282 | }; |
| 283 | goog.inherits(proto.google.protobuf.EnumDescriptorProto.EnumReservedRange, jspb.Message); |
| 284 | if (goog.DEBUG && !COMPILED) { |
| 285 | /** |
| 286 | * @public |
| 287 | * @override |
| 288 | */ |
| 289 | proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.displayName = 'proto.google.protobuf.EnumDescriptorProto.EnumReservedRange'; |
| 290 | } |
| 291 | /** |
| 292 | * Generated by JsPbCodeGenerator. |
| 293 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 294 | * server response, or constructed directly in Javascript. The array is used |
| 295 | * in place and becomes part of the constructed object. It is not cloned. |
| 296 | * If no data is provided, the constructed object will be empty, but still |
| 297 | * valid. |
| 298 | * @extends {jspb.Message} |
| 299 | * @constructor |
| 300 | */ |
| 301 | proto.google.protobuf.EnumValueDescriptorProto = function(opt_data) { |
| 302 | jspb.Message.initialize(this, opt_data, 0, -1, null, null); |
| 303 | }; |
| 304 | goog.inherits(proto.google.protobuf.EnumValueDescriptorProto, jspb.Message); |
| 305 | if (goog.DEBUG && !COMPILED) { |
| 306 | /** |
| 307 | * @public |
| 308 | * @override |
| 309 | */ |
| 310 | proto.google.protobuf.EnumValueDescriptorProto.displayName = 'proto.google.protobuf.EnumValueDescriptorProto'; |
| 311 | } |
| 312 | /** |
| 313 | * Generated by JsPbCodeGenerator. |
| 314 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 315 | * server response, or constructed directly in Javascript. The array is used |
| 316 | * in place and becomes part of the constructed object. It is not cloned. |
| 317 | * If no data is provided, the constructed object will be empty, but still |
| 318 | * valid. |
| 319 | * @extends {jspb.Message} |
| 320 | * @constructor |
| 321 | */ |
| 322 | proto.google.protobuf.ServiceDescriptorProto = function(opt_data) { |
| 323 | jspb.Message.initialize(this, opt_data, 0, -1, proto.google.protobuf.ServiceDescriptorProto.repeatedFields_, null); |
| 324 | }; |
| 325 | goog.inherits(proto.google.protobuf.ServiceDescriptorProto, jspb.Message); |
| 326 | if (goog.DEBUG && !COMPILED) { |
| 327 | /** |
| 328 | * @public |
| 329 | * @override |
| 330 | */ |
| 331 | proto.google.protobuf.ServiceDescriptorProto.displayName = 'proto.google.protobuf.ServiceDescriptorProto'; |
| 332 | } |
| 333 | /** |
| 334 | * Generated by JsPbCodeGenerator. |
| 335 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 336 | * server response, or constructed directly in Javascript. The array is used |
| 337 | * in place and becomes part of the constructed object. It is not cloned. |
| 338 | * If no data is provided, the constructed object will be empty, but still |
| 339 | * valid. |
| 340 | * @extends {jspb.Message} |
| 341 | * @constructor |
| 342 | */ |
| 343 | proto.google.protobuf.MethodDescriptorProto = function(opt_data) { |
| 344 | jspb.Message.initialize(this, opt_data, 0, -1, null, null); |
| 345 | }; |
| 346 | goog.inherits(proto.google.protobuf.MethodDescriptorProto, jspb.Message); |
| 347 | if (goog.DEBUG && !COMPILED) { |
| 348 | /** |
| 349 | * @public |
| 350 | * @override |
| 351 | */ |
| 352 | proto.google.protobuf.MethodDescriptorProto.displayName = 'proto.google.protobuf.MethodDescriptorProto'; |
| 353 | } |
| 354 | /** |
| 355 | * Generated by JsPbCodeGenerator. |
| 356 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 357 | * server response, or constructed directly in Javascript. The array is used |
| 358 | * in place and becomes part of the constructed object. It is not cloned. |
| 359 | * If no data is provided, the constructed object will be empty, but still |
| 360 | * valid. |
| 361 | * @extends {jspb.Message} |
| 362 | * @constructor |
| 363 | */ |
| 364 | proto.google.protobuf.FileOptions = function(opt_data) { |
| 365 | jspb.Message.initialize(this, opt_data, 0, 500, proto.google.protobuf.FileOptions.repeatedFields_, null); |
| 366 | }; |
| 367 | goog.inherits(proto.google.protobuf.FileOptions, jspb.Message); |
| 368 | if (goog.DEBUG && !COMPILED) { |
| 369 | /** |
| 370 | * @public |
| 371 | * @override |
| 372 | */ |
| 373 | proto.google.protobuf.FileOptions.displayName = 'proto.google.protobuf.FileOptions'; |
| 374 | } |
| 375 | |
| 376 | /** |
| 377 | * The extensions registered with this message class. This is a map of |
| 378 | * extension field number to fieldInfo object. |
| 379 | * |
| 380 | * For example: |
| 381 | * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} } |
| 382 | * |
| 383 | * fieldName contains the JsCompiler renamed field name property so that it |
| 384 | * works in OPTIMIZED mode. |
| 385 | * |
| 386 | * @type {!Object<number, jspb.ExtensionFieldInfo>} |
| 387 | */ |
| 388 | proto.google.protobuf.FileOptions.extensions = {}; |
| 389 | |
| 390 | |
| 391 | /** |
| 392 | * The extensions registered with this message class. This is a map of |
| 393 | * extension field number to fieldInfo object. |
| 394 | * |
| 395 | * For example: |
| 396 | * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} } |
| 397 | * |
| 398 | * fieldName contains the JsCompiler renamed field name property so that it |
| 399 | * works in OPTIMIZED mode. |
| 400 | * |
| 401 | * @type {!Object<number, jspb.ExtensionFieldBinaryInfo>} |
| 402 | */ |
| 403 | proto.google.protobuf.FileOptions.extensionsBinary = {}; |
| 404 | |
| 405 | /** |
| 406 | * Generated by JsPbCodeGenerator. |
| 407 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 408 | * server response, or constructed directly in Javascript. The array is used |
| 409 | * in place and becomes part of the constructed object. It is not cloned. |
| 410 | * If no data is provided, the constructed object will be empty, but still |
| 411 | * valid. |
| 412 | * @extends {jspb.Message} |
| 413 | * @constructor |
| 414 | */ |
| 415 | proto.google.protobuf.MessageOptions = function(opt_data) { |
| 416 | jspb.Message.initialize(this, opt_data, 0, 500, proto.google.protobuf.MessageOptions.repeatedFields_, null); |
| 417 | }; |
| 418 | goog.inherits(proto.google.protobuf.MessageOptions, jspb.Message); |
| 419 | if (goog.DEBUG && !COMPILED) { |
| 420 | /** |
| 421 | * @public |
| 422 | * @override |
| 423 | */ |
| 424 | proto.google.protobuf.MessageOptions.displayName = 'proto.google.protobuf.MessageOptions'; |
| 425 | } |
| 426 | |
| 427 | /** |
| 428 | * The extensions registered with this message class. This is a map of |
| 429 | * extension field number to fieldInfo object. |
| 430 | * |
| 431 | * For example: |
| 432 | * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} } |
| 433 | * |
| 434 | * fieldName contains the JsCompiler renamed field name property so that it |
| 435 | * works in OPTIMIZED mode. |
| 436 | * |
| 437 | * @type {!Object<number, jspb.ExtensionFieldInfo>} |
| 438 | */ |
| 439 | proto.google.protobuf.MessageOptions.extensions = {}; |
| 440 | |
| 441 | |
| 442 | /** |
| 443 | * The extensions registered with this message class. This is a map of |
| 444 | * extension field number to fieldInfo object. |
| 445 | * |
| 446 | * For example: |
| 447 | * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} } |
| 448 | * |
| 449 | * fieldName contains the JsCompiler renamed field name property so that it |
| 450 | * works in OPTIMIZED mode. |
| 451 | * |
| 452 | * @type {!Object<number, jspb.ExtensionFieldBinaryInfo>} |
| 453 | */ |
| 454 | proto.google.protobuf.MessageOptions.extensionsBinary = {}; |
| 455 | |
| 456 | /** |
| 457 | * Generated by JsPbCodeGenerator. |
| 458 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 459 | * server response, or constructed directly in Javascript. The array is used |
| 460 | * in place and becomes part of the constructed object. It is not cloned. |
| 461 | * If no data is provided, the constructed object will be empty, but still |
| 462 | * valid. |
| 463 | * @extends {jspb.Message} |
| 464 | * @constructor |
| 465 | */ |
| 466 | proto.google.protobuf.FieldOptions = function(opt_data) { |
| 467 | jspb.Message.initialize(this, opt_data, 0, 500, proto.google.protobuf.FieldOptions.repeatedFields_, null); |
| 468 | }; |
| 469 | goog.inherits(proto.google.protobuf.FieldOptions, jspb.Message); |
| 470 | if (goog.DEBUG && !COMPILED) { |
| 471 | /** |
| 472 | * @public |
| 473 | * @override |
| 474 | */ |
| 475 | proto.google.protobuf.FieldOptions.displayName = 'proto.google.protobuf.FieldOptions'; |
| 476 | } |
| 477 | |
| 478 | /** |
| 479 | * The extensions registered with this message class. This is a map of |
| 480 | * extension field number to fieldInfo object. |
| 481 | * |
| 482 | * For example: |
| 483 | * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} } |
| 484 | * |
| 485 | * fieldName contains the JsCompiler renamed field name property so that it |
| 486 | * works in OPTIMIZED mode. |
| 487 | * |
| 488 | * @type {!Object<number, jspb.ExtensionFieldInfo>} |
| 489 | */ |
| 490 | proto.google.protobuf.FieldOptions.extensions = {}; |
| 491 | |
| 492 | |
| 493 | /** |
| 494 | * The extensions registered with this message class. This is a map of |
| 495 | * extension field number to fieldInfo object. |
| 496 | * |
| 497 | * For example: |
| 498 | * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} } |
| 499 | * |
| 500 | * fieldName contains the JsCompiler renamed field name property so that it |
| 501 | * works in OPTIMIZED mode. |
| 502 | * |
| 503 | * @type {!Object<number, jspb.ExtensionFieldBinaryInfo>} |
| 504 | */ |
| 505 | proto.google.protobuf.FieldOptions.extensionsBinary = {}; |
| 506 | |
| 507 | /** |
| 508 | * Generated by JsPbCodeGenerator. |
| 509 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 510 | * server response, or constructed directly in Javascript. The array is used |
| 511 | * in place and becomes part of the constructed object. It is not cloned. |
| 512 | * If no data is provided, the constructed object will be empty, but still |
| 513 | * valid. |
| 514 | * @extends {jspb.Message} |
| 515 | * @constructor |
| 516 | */ |
| 517 | proto.google.protobuf.OneofOptions = function(opt_data) { |
| 518 | jspb.Message.initialize(this, opt_data, 0, 500, proto.google.protobuf.OneofOptions.repeatedFields_, null); |
| 519 | }; |
| 520 | goog.inherits(proto.google.protobuf.OneofOptions, jspb.Message); |
| 521 | if (goog.DEBUG && !COMPILED) { |
| 522 | /** |
| 523 | * @public |
| 524 | * @override |
| 525 | */ |
| 526 | proto.google.protobuf.OneofOptions.displayName = 'proto.google.protobuf.OneofOptions'; |
| 527 | } |
| 528 | |
| 529 | /** |
| 530 | * The extensions registered with this message class. This is a map of |
| 531 | * extension field number to fieldInfo object. |
| 532 | * |
| 533 | * For example: |
| 534 | * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} } |
| 535 | * |
| 536 | * fieldName contains the JsCompiler renamed field name property so that it |
| 537 | * works in OPTIMIZED mode. |
| 538 | * |
| 539 | * @type {!Object<number, jspb.ExtensionFieldInfo>} |
| 540 | */ |
| 541 | proto.google.protobuf.OneofOptions.extensions = {}; |
| 542 | |
| 543 | |
| 544 | /** |
| 545 | * The extensions registered with this message class. This is a map of |
| 546 | * extension field number to fieldInfo object. |
| 547 | * |
| 548 | * For example: |
| 549 | * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} } |
| 550 | * |
| 551 | * fieldName contains the JsCompiler renamed field name property so that it |
| 552 | * works in OPTIMIZED mode. |
| 553 | * |
| 554 | * @type {!Object<number, jspb.ExtensionFieldBinaryInfo>} |
| 555 | */ |
| 556 | proto.google.protobuf.OneofOptions.extensionsBinary = {}; |
| 557 | |
| 558 | /** |
| 559 | * Generated by JsPbCodeGenerator. |
| 560 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 561 | * server response, or constructed directly in Javascript. The array is used |
| 562 | * in place and becomes part of the constructed object. It is not cloned. |
| 563 | * If no data is provided, the constructed object will be empty, but still |
| 564 | * valid. |
| 565 | * @extends {jspb.Message} |
| 566 | * @constructor |
| 567 | */ |
| 568 | proto.google.protobuf.EnumOptions = function(opt_data) { |
| 569 | jspb.Message.initialize(this, opt_data, 0, 500, proto.google.protobuf.EnumOptions.repeatedFields_, null); |
| 570 | }; |
| 571 | goog.inherits(proto.google.protobuf.EnumOptions, jspb.Message); |
| 572 | if (goog.DEBUG && !COMPILED) { |
| 573 | /** |
| 574 | * @public |
| 575 | * @override |
| 576 | */ |
| 577 | proto.google.protobuf.EnumOptions.displayName = 'proto.google.protobuf.EnumOptions'; |
| 578 | } |
| 579 | |
| 580 | /** |
| 581 | * The extensions registered with this message class. This is a map of |
| 582 | * extension field number to fieldInfo object. |
| 583 | * |
| 584 | * For example: |
| 585 | * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} } |
| 586 | * |
| 587 | * fieldName contains the JsCompiler renamed field name property so that it |
| 588 | * works in OPTIMIZED mode. |
| 589 | * |
| 590 | * @type {!Object<number, jspb.ExtensionFieldInfo>} |
| 591 | */ |
| 592 | proto.google.protobuf.EnumOptions.extensions = {}; |
| 593 | |
| 594 | |
| 595 | /** |
| 596 | * The extensions registered with this message class. This is a map of |
| 597 | * extension field number to fieldInfo object. |
| 598 | * |
| 599 | * For example: |
| 600 | * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} } |
| 601 | * |
| 602 | * fieldName contains the JsCompiler renamed field name property so that it |
| 603 | * works in OPTIMIZED mode. |
| 604 | * |
| 605 | * @type {!Object<number, jspb.ExtensionFieldBinaryInfo>} |
| 606 | */ |
| 607 | proto.google.protobuf.EnumOptions.extensionsBinary = {}; |
| 608 | |
| 609 | /** |
| 610 | * Generated by JsPbCodeGenerator. |
| 611 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 612 | * server response, or constructed directly in Javascript. The array is used |
| 613 | * in place and becomes part of the constructed object. It is not cloned. |
| 614 | * If no data is provided, the constructed object will be empty, but still |
| 615 | * valid. |
| 616 | * @extends {jspb.Message} |
| 617 | * @constructor |
| 618 | */ |
| 619 | proto.google.protobuf.EnumValueOptions = function(opt_data) { |
| 620 | jspb.Message.initialize(this, opt_data, 0, 500, proto.google.protobuf.EnumValueOptions.repeatedFields_, null); |
| 621 | }; |
| 622 | goog.inherits(proto.google.protobuf.EnumValueOptions, jspb.Message); |
| 623 | if (goog.DEBUG && !COMPILED) { |
| 624 | /** |
| 625 | * @public |
| 626 | * @override |
| 627 | */ |
| 628 | proto.google.protobuf.EnumValueOptions.displayName = 'proto.google.protobuf.EnumValueOptions'; |
| 629 | } |
| 630 | |
| 631 | /** |
| 632 | * The extensions registered with this message class. This is a map of |
| 633 | * extension field number to fieldInfo object. |
| 634 | * |
| 635 | * For example: |
| 636 | * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} } |
| 637 | * |
| 638 | * fieldName contains the JsCompiler renamed field name property so that it |
| 639 | * works in OPTIMIZED mode. |
| 640 | * |
| 641 | * @type {!Object<number, jspb.ExtensionFieldInfo>} |
| 642 | */ |
| 643 | proto.google.protobuf.EnumValueOptions.extensions = {}; |
| 644 | |
| 645 | |
| 646 | /** |
| 647 | * The extensions registered with this message class. This is a map of |
| 648 | * extension field number to fieldInfo object. |
| 649 | * |
| 650 | * For example: |
| 651 | * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} } |
| 652 | * |
| 653 | * fieldName contains the JsCompiler renamed field name property so that it |
| 654 | * works in OPTIMIZED mode. |
| 655 | * |
| 656 | * @type {!Object<number, jspb.ExtensionFieldBinaryInfo>} |
| 657 | */ |
| 658 | proto.google.protobuf.EnumValueOptions.extensionsBinary = {}; |
| 659 | |
| 660 | /** |
| 661 | * Generated by JsPbCodeGenerator. |
| 662 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 663 | * server response, or constructed directly in Javascript. The array is used |
| 664 | * in place and becomes part of the constructed object. It is not cloned. |
| 665 | * If no data is provided, the constructed object will be empty, but still |
| 666 | * valid. |
| 667 | * @extends {jspb.Message} |
| 668 | * @constructor |
| 669 | */ |
| 670 | proto.google.protobuf.ServiceOptions = function(opt_data) { |
| 671 | jspb.Message.initialize(this, opt_data, 0, 500, proto.google.protobuf.ServiceOptions.repeatedFields_, null); |
| 672 | }; |
| 673 | goog.inherits(proto.google.protobuf.ServiceOptions, jspb.Message); |
| 674 | if (goog.DEBUG && !COMPILED) { |
| 675 | /** |
| 676 | * @public |
| 677 | * @override |
| 678 | */ |
| 679 | proto.google.protobuf.ServiceOptions.displayName = 'proto.google.protobuf.ServiceOptions'; |
| 680 | } |
| 681 | |
| 682 | /** |
| 683 | * The extensions registered with this message class. This is a map of |
| 684 | * extension field number to fieldInfo object. |
| 685 | * |
| 686 | * For example: |
| 687 | * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} } |
| 688 | * |
| 689 | * fieldName contains the JsCompiler renamed field name property so that it |
| 690 | * works in OPTIMIZED mode. |
| 691 | * |
| 692 | * @type {!Object<number, jspb.ExtensionFieldInfo>} |
| 693 | */ |
| 694 | proto.google.protobuf.ServiceOptions.extensions = {}; |
| 695 | |
| 696 | |
| 697 | /** |
| 698 | * The extensions registered with this message class. This is a map of |
| 699 | * extension field number to fieldInfo object. |
| 700 | * |
| 701 | * For example: |
| 702 | * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} } |
| 703 | * |
| 704 | * fieldName contains the JsCompiler renamed field name property so that it |
| 705 | * works in OPTIMIZED mode. |
| 706 | * |
| 707 | * @type {!Object<number, jspb.ExtensionFieldBinaryInfo>} |
| 708 | */ |
| 709 | proto.google.protobuf.ServiceOptions.extensionsBinary = {}; |
| 710 | |
| 711 | /** |
| 712 | * Generated by JsPbCodeGenerator. |
| 713 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 714 | * server response, or constructed directly in Javascript. The array is used |
| 715 | * in place and becomes part of the constructed object. It is not cloned. |
| 716 | * If no data is provided, the constructed object will be empty, but still |
| 717 | * valid. |
| 718 | * @extends {jspb.Message} |
| 719 | * @constructor |
| 720 | */ |
| 721 | proto.google.protobuf.MethodOptions = function(opt_data) { |
| 722 | jspb.Message.initialize(this, opt_data, 0, 500, proto.google.protobuf.MethodOptions.repeatedFields_, null); |
| 723 | }; |
| 724 | goog.inherits(proto.google.protobuf.MethodOptions, jspb.Message); |
| 725 | if (goog.DEBUG && !COMPILED) { |
| 726 | /** |
| 727 | * @public |
| 728 | * @override |
| 729 | */ |
| 730 | proto.google.protobuf.MethodOptions.displayName = 'proto.google.protobuf.MethodOptions'; |
| 731 | } |
| 732 | |
| 733 | /** |
| 734 | * The extensions registered with this message class. This is a map of |
| 735 | * extension field number to fieldInfo object. |
| 736 | * |
| 737 | * For example: |
| 738 | * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} } |
| 739 | * |
| 740 | * fieldName contains the JsCompiler renamed field name property so that it |
| 741 | * works in OPTIMIZED mode. |
| 742 | * |
| 743 | * @type {!Object<number, jspb.ExtensionFieldInfo>} |
| 744 | */ |
| 745 | proto.google.protobuf.MethodOptions.extensions = {}; |
| 746 | |
| 747 | |
| 748 | /** |
| 749 | * The extensions registered with this message class. This is a map of |
| 750 | * extension field number to fieldInfo object. |
| 751 | * |
| 752 | * For example: |
| 753 | * { 123: {fieldIndex: 123, fieldName: {my_field_name: 0}, ctor: proto.example.MyMessage} } |
| 754 | * |
| 755 | * fieldName contains the JsCompiler renamed field name property so that it |
| 756 | * works in OPTIMIZED mode. |
| 757 | * |
| 758 | * @type {!Object<number, jspb.ExtensionFieldBinaryInfo>} |
| 759 | */ |
| 760 | proto.google.protobuf.MethodOptions.extensionsBinary = {}; |
| 761 | |
| 762 | /** |
| 763 | * Generated by JsPbCodeGenerator. |
| 764 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 765 | * server response, or constructed directly in Javascript. The array is used |
| 766 | * in place and becomes part of the constructed object. It is not cloned. |
| 767 | * If no data is provided, the constructed object will be empty, but still |
| 768 | * valid. |
| 769 | * @extends {jspb.Message} |
| 770 | * @constructor |
| 771 | */ |
| 772 | proto.google.protobuf.UninterpretedOption = function(opt_data) { |
| 773 | jspb.Message.initialize(this, opt_data, 0, -1, proto.google.protobuf.UninterpretedOption.repeatedFields_, null); |
| 774 | }; |
| 775 | goog.inherits(proto.google.protobuf.UninterpretedOption, jspb.Message); |
| 776 | if (goog.DEBUG && !COMPILED) { |
| 777 | /** |
| 778 | * @public |
| 779 | * @override |
| 780 | */ |
| 781 | proto.google.protobuf.UninterpretedOption.displayName = 'proto.google.protobuf.UninterpretedOption'; |
| 782 | } |
| 783 | /** |
| 784 | * Generated by JsPbCodeGenerator. |
| 785 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 786 | * server response, or constructed directly in Javascript. The array is used |
| 787 | * in place and becomes part of the constructed object. It is not cloned. |
| 788 | * If no data is provided, the constructed object will be empty, but still |
| 789 | * valid. |
| 790 | * @extends {jspb.Message} |
| 791 | * @constructor |
| 792 | */ |
| 793 | proto.google.protobuf.UninterpretedOption.NamePart = function(opt_data) { |
| 794 | jspb.Message.initialize(this, opt_data, 0, -1, null, null); |
| 795 | }; |
| 796 | goog.inherits(proto.google.protobuf.UninterpretedOption.NamePart, jspb.Message); |
| 797 | if (goog.DEBUG && !COMPILED) { |
| 798 | /** |
| 799 | * @public |
| 800 | * @override |
| 801 | */ |
| 802 | proto.google.protobuf.UninterpretedOption.NamePart.displayName = 'proto.google.protobuf.UninterpretedOption.NamePart'; |
| 803 | } |
| 804 | /** |
| 805 | * Generated by JsPbCodeGenerator. |
| 806 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 807 | * server response, or constructed directly in Javascript. The array is used |
| 808 | * in place and becomes part of the constructed object. It is not cloned. |
| 809 | * If no data is provided, the constructed object will be empty, but still |
| 810 | * valid. |
| 811 | * @extends {jspb.Message} |
| 812 | * @constructor |
| 813 | */ |
| 814 | proto.google.protobuf.SourceCodeInfo = function(opt_data) { |
| 815 | jspb.Message.initialize(this, opt_data, 0, -1, proto.google.protobuf.SourceCodeInfo.repeatedFields_, null); |
| 816 | }; |
| 817 | goog.inherits(proto.google.protobuf.SourceCodeInfo, jspb.Message); |
| 818 | if (goog.DEBUG && !COMPILED) { |
| 819 | /** |
| 820 | * @public |
| 821 | * @override |
| 822 | */ |
| 823 | proto.google.protobuf.SourceCodeInfo.displayName = 'proto.google.protobuf.SourceCodeInfo'; |
| 824 | } |
| 825 | /** |
| 826 | * Generated by JsPbCodeGenerator. |
| 827 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 828 | * server response, or constructed directly in Javascript. The array is used |
| 829 | * in place and becomes part of the constructed object. It is not cloned. |
| 830 | * If no data is provided, the constructed object will be empty, but still |
| 831 | * valid. |
| 832 | * @extends {jspb.Message} |
| 833 | * @constructor |
| 834 | */ |
| 835 | proto.google.protobuf.SourceCodeInfo.Location = function(opt_data) { |
| 836 | jspb.Message.initialize(this, opt_data, 0, -1, proto.google.protobuf.SourceCodeInfo.Location.repeatedFields_, null); |
| 837 | }; |
| 838 | goog.inherits(proto.google.protobuf.SourceCodeInfo.Location, jspb.Message); |
| 839 | if (goog.DEBUG && !COMPILED) { |
| 840 | /** |
| 841 | * @public |
| 842 | * @override |
| 843 | */ |
| 844 | proto.google.protobuf.SourceCodeInfo.Location.displayName = 'proto.google.protobuf.SourceCodeInfo.Location'; |
| 845 | } |
| 846 | /** |
| 847 | * Generated by JsPbCodeGenerator. |
| 848 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 849 | * server response, or constructed directly in Javascript. The array is used |
| 850 | * in place and becomes part of the constructed object. It is not cloned. |
| 851 | * If no data is provided, the constructed object will be empty, but still |
| 852 | * valid. |
| 853 | * @extends {jspb.Message} |
| 854 | * @constructor |
| 855 | */ |
| 856 | proto.google.protobuf.GeneratedCodeInfo = function(opt_data) { |
| 857 | jspb.Message.initialize(this, opt_data, 0, -1, proto.google.protobuf.GeneratedCodeInfo.repeatedFields_, null); |
| 858 | }; |
| 859 | goog.inherits(proto.google.protobuf.GeneratedCodeInfo, jspb.Message); |
| 860 | if (goog.DEBUG && !COMPILED) { |
| 861 | /** |
| 862 | * @public |
| 863 | * @override |
| 864 | */ |
| 865 | proto.google.protobuf.GeneratedCodeInfo.displayName = 'proto.google.protobuf.GeneratedCodeInfo'; |
| 866 | } |
| 867 | /** |
| 868 | * Generated by JsPbCodeGenerator. |
| 869 | * @param {Array=} opt_data Optional initial data array, typically from a |
| 870 | * server response, or constructed directly in Javascript. The array is used |
| 871 | * in place and becomes part of the constructed object. It is not cloned. |
| 872 | * If no data is provided, the constructed object will be empty, but still |
| 873 | * valid. |
| 874 | * @extends {jspb.Message} |
| 875 | * @constructor |
| 876 | */ |
| 877 | proto.google.protobuf.GeneratedCodeInfo.Annotation = function(opt_data) { |
| 878 | jspb.Message.initialize(this, opt_data, 0, -1, proto.google.protobuf.GeneratedCodeInfo.Annotation.repeatedFields_, null); |
| 879 | }; |
| 880 | goog.inherits(proto.google.protobuf.GeneratedCodeInfo.Annotation, jspb.Message); |
| 881 | if (goog.DEBUG && !COMPILED) { |
| 882 | /** |
| 883 | * @public |
| 884 | * @override |
| 885 | */ |
| 886 | proto.google.protobuf.GeneratedCodeInfo.Annotation.displayName = 'proto.google.protobuf.GeneratedCodeInfo.Annotation'; |
| 887 | } |
| 888 | |
| 889 | /** |
| 890 | * List of repeated fields within this message type. |
| 891 | * @private {!Array<number>} |
| 892 | * @const |
| 893 | */ |
| 894 | proto.google.protobuf.FileDescriptorSet.repeatedFields_ = [1]; |
| 895 | |
| 896 | |
| 897 | |
| 898 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 899 | /** |
| 900 | * Creates an object representation of this proto. |
| 901 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 902 | * Optional fields that are not set will be set to undefined. |
| 903 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 904 | * For the list of reserved names please see: |
| 905 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 906 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 907 | * JSPB instance for transitional soy proto support: |
| 908 | * http://goto/soy-param-migration |
| 909 | * @return {!Object} |
| 910 | */ |
| 911 | proto.google.protobuf.FileDescriptorSet.prototype.toObject = function(opt_includeInstance) { |
| 912 | return proto.google.protobuf.FileDescriptorSet.toObject(opt_includeInstance, this); |
| 913 | }; |
| 914 | |
| 915 | |
| 916 | /** |
| 917 | * Static version of the {@see toObject} method. |
| 918 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 919 | * the JSPB instance for transitional soy proto support: |
| 920 | * http://goto/soy-param-migration |
| 921 | * @param {!proto.google.protobuf.FileDescriptorSet} msg The msg instance to transform. |
| 922 | * @return {!Object} |
| 923 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 924 | */ |
| 925 | proto.google.protobuf.FileDescriptorSet.toObject = function(includeInstance, msg) { |
| 926 | var f, obj = { |
| 927 | fileList: jspb.Message.toObjectList(msg.getFileList(), |
| 928 | proto.google.protobuf.FileDescriptorProto.toObject, includeInstance) |
| 929 | }; |
| 930 | |
| 931 | if (includeInstance) { |
| 932 | obj.$jspbMessageInstance = msg; |
| 933 | } |
| 934 | return obj; |
| 935 | }; |
| 936 | } |
| 937 | |
| 938 | |
| 939 | /** |
| 940 | * Deserializes binary data (in protobuf wire format). |
| 941 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 942 | * @return {!proto.google.protobuf.FileDescriptorSet} |
| 943 | */ |
| 944 | proto.google.protobuf.FileDescriptorSet.deserializeBinary = function(bytes) { |
| 945 | var reader = new jspb.BinaryReader(bytes); |
| 946 | var msg = new proto.google.protobuf.FileDescriptorSet; |
| 947 | return proto.google.protobuf.FileDescriptorSet.deserializeBinaryFromReader(msg, reader); |
| 948 | }; |
| 949 | |
| 950 | |
| 951 | /** |
| 952 | * Deserializes binary data (in protobuf wire format) from the |
| 953 | * given reader into the given message object. |
| 954 | * @param {!proto.google.protobuf.FileDescriptorSet} msg The message object to deserialize into. |
| 955 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 956 | * @return {!proto.google.protobuf.FileDescriptorSet} |
| 957 | */ |
| 958 | proto.google.protobuf.FileDescriptorSet.deserializeBinaryFromReader = function(msg, reader) { |
| 959 | while (reader.nextField()) { |
| 960 | if (reader.isEndGroup()) { |
| 961 | break; |
| 962 | } |
| 963 | var field = reader.getFieldNumber(); |
| 964 | switch (field) { |
| 965 | case 1: |
| 966 | var value = new proto.google.protobuf.FileDescriptorProto; |
| 967 | reader.readMessage(value,proto.google.protobuf.FileDescriptorProto.deserializeBinaryFromReader); |
| 968 | msg.addFile(value); |
| 969 | break; |
| 970 | default: |
| 971 | reader.skipField(); |
| 972 | break; |
| 973 | } |
| 974 | } |
| 975 | return msg; |
| 976 | }; |
| 977 | |
| 978 | |
| 979 | /** |
| 980 | * Serializes the message to binary data (in protobuf wire format). |
| 981 | * @return {!Uint8Array} |
| 982 | */ |
| 983 | proto.google.protobuf.FileDescriptorSet.prototype.serializeBinary = function() { |
| 984 | var writer = new jspb.BinaryWriter(); |
| 985 | proto.google.protobuf.FileDescriptorSet.serializeBinaryToWriter(this, writer); |
| 986 | return writer.getResultBuffer(); |
| 987 | }; |
| 988 | |
| 989 | |
| 990 | /** |
| 991 | * Serializes the given message to binary data (in protobuf wire |
| 992 | * format), writing to the given BinaryWriter. |
| 993 | * @param {!proto.google.protobuf.FileDescriptorSet} message |
| 994 | * @param {!jspb.BinaryWriter} writer |
| 995 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 996 | */ |
| 997 | proto.google.protobuf.FileDescriptorSet.serializeBinaryToWriter = function(message, writer) { |
| 998 | var f = undefined; |
| 999 | f = message.getFileList(); |
| 1000 | if (f.length > 0) { |
| 1001 | writer.writeRepeatedMessage( |
| 1002 | 1, |
| 1003 | f, |
| 1004 | proto.google.protobuf.FileDescriptorProto.serializeBinaryToWriter |
| 1005 | ); |
| 1006 | } |
| 1007 | }; |
| 1008 | |
| 1009 | |
| 1010 | /** |
| 1011 | * repeated FileDescriptorProto file = 1; |
| 1012 | * @return {!Array<!proto.google.protobuf.FileDescriptorProto>} |
| 1013 | */ |
| 1014 | proto.google.protobuf.FileDescriptorSet.prototype.getFileList = function() { |
| 1015 | return /** @type{!Array<!proto.google.protobuf.FileDescriptorProto>} */ ( |
| 1016 | jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.FileDescriptorProto, 1)); |
| 1017 | }; |
| 1018 | |
| 1019 | |
| 1020 | /** |
| 1021 | * @param {!Array<!proto.google.protobuf.FileDescriptorProto>} value |
| 1022 | * @return {!proto.google.protobuf.FileDescriptorSet} returns this |
| 1023 | */ |
| 1024 | proto.google.protobuf.FileDescriptorSet.prototype.setFileList = function(value) { |
| 1025 | return jspb.Message.setRepeatedWrapperField(this, 1, value); |
| 1026 | }; |
| 1027 | |
| 1028 | |
| 1029 | /** |
| 1030 | * @param {!proto.google.protobuf.FileDescriptorProto=} opt_value |
| 1031 | * @param {number=} opt_index |
| 1032 | * @return {!proto.google.protobuf.FileDescriptorProto} |
| 1033 | */ |
| 1034 | proto.google.protobuf.FileDescriptorSet.prototype.addFile = function(opt_value, opt_index) { |
| 1035 | return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.protobuf.FileDescriptorProto, opt_index); |
| 1036 | }; |
| 1037 | |
| 1038 | |
| 1039 | /** |
| 1040 | * Clears the list making it empty but non-null. |
| 1041 | * @return {!proto.google.protobuf.FileDescriptorSet} returns this |
| 1042 | */ |
| 1043 | proto.google.protobuf.FileDescriptorSet.prototype.clearFileList = function() { |
| 1044 | return this.setFileList([]); |
| 1045 | }; |
| 1046 | |
| 1047 | |
| 1048 | |
| 1049 | /** |
| 1050 | * List of repeated fields within this message type. |
| 1051 | * @private {!Array<number>} |
| 1052 | * @const |
| 1053 | */ |
| 1054 | proto.google.protobuf.FileDescriptorProto.repeatedFields_ = [3,10,11,4,5,6,7]; |
| 1055 | |
| 1056 | |
| 1057 | |
| 1058 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 1059 | /** |
| 1060 | * Creates an object representation of this proto. |
| 1061 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 1062 | * Optional fields that are not set will be set to undefined. |
| 1063 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 1064 | * For the list of reserved names please see: |
| 1065 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 1066 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 1067 | * JSPB instance for transitional soy proto support: |
| 1068 | * http://goto/soy-param-migration |
| 1069 | * @return {!Object} |
| 1070 | */ |
| 1071 | proto.google.protobuf.FileDescriptorProto.prototype.toObject = function(opt_includeInstance) { |
| 1072 | return proto.google.protobuf.FileDescriptorProto.toObject(opt_includeInstance, this); |
| 1073 | }; |
| 1074 | |
| 1075 | |
| 1076 | /** |
| 1077 | * Static version of the {@see toObject} method. |
| 1078 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 1079 | * the JSPB instance for transitional soy proto support: |
| 1080 | * http://goto/soy-param-migration |
| 1081 | * @param {!proto.google.protobuf.FileDescriptorProto} msg The msg instance to transform. |
| 1082 | * @return {!Object} |
| 1083 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 1084 | */ |
| 1085 | proto.google.protobuf.FileDescriptorProto.toObject = function(includeInstance, msg) { |
| 1086 | var f, obj = { |
| 1087 | name: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f, |
| 1088 | pb_package: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f, |
| 1089 | dependencyList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, |
| 1090 | publicDependencyList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f, |
| 1091 | weakDependencyList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f, |
| 1092 | messageTypeList: jspb.Message.toObjectList(msg.getMessageTypeList(), |
| 1093 | proto.google.protobuf.DescriptorProto.toObject, includeInstance), |
| 1094 | enumTypeList: jspb.Message.toObjectList(msg.getEnumTypeList(), |
| 1095 | proto.google.protobuf.EnumDescriptorProto.toObject, includeInstance), |
| 1096 | serviceList: jspb.Message.toObjectList(msg.getServiceList(), |
| 1097 | proto.google.protobuf.ServiceDescriptorProto.toObject, includeInstance), |
| 1098 | extensionList: jspb.Message.toObjectList(msg.getExtensionList(), |
| 1099 | proto.google.protobuf.FieldDescriptorProto.toObject, includeInstance), |
| 1100 | options: (f = msg.getOptions()) && proto.google.protobuf.FileOptions.toObject(includeInstance, f), |
| 1101 | sourceCodeInfo: (f = msg.getSourceCodeInfo()) && proto.google.protobuf.SourceCodeInfo.toObject(includeInstance, f), |
| 1102 | syntax: (f = jspb.Message.getField(msg, 12)) == null ? undefined : f |
| 1103 | }; |
| 1104 | |
| 1105 | if (includeInstance) { |
| 1106 | obj.$jspbMessageInstance = msg; |
| 1107 | } |
| 1108 | return obj; |
| 1109 | }; |
| 1110 | } |
| 1111 | |
| 1112 | |
| 1113 | /** |
| 1114 | * Deserializes binary data (in protobuf wire format). |
| 1115 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 1116 | * @return {!proto.google.protobuf.FileDescriptorProto} |
| 1117 | */ |
| 1118 | proto.google.protobuf.FileDescriptorProto.deserializeBinary = function(bytes) { |
| 1119 | var reader = new jspb.BinaryReader(bytes); |
| 1120 | var msg = new proto.google.protobuf.FileDescriptorProto; |
| 1121 | return proto.google.protobuf.FileDescriptorProto.deserializeBinaryFromReader(msg, reader); |
| 1122 | }; |
| 1123 | |
| 1124 | |
| 1125 | /** |
| 1126 | * Deserializes binary data (in protobuf wire format) from the |
| 1127 | * given reader into the given message object. |
| 1128 | * @param {!proto.google.protobuf.FileDescriptorProto} msg The message object to deserialize into. |
| 1129 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 1130 | * @return {!proto.google.protobuf.FileDescriptorProto} |
| 1131 | */ |
| 1132 | proto.google.protobuf.FileDescriptorProto.deserializeBinaryFromReader = function(msg, reader) { |
| 1133 | while (reader.nextField()) { |
| 1134 | if (reader.isEndGroup()) { |
| 1135 | break; |
| 1136 | } |
| 1137 | var field = reader.getFieldNumber(); |
| 1138 | switch (field) { |
| 1139 | case 1: |
| 1140 | var value = /** @type {string} */ (reader.readString()); |
| 1141 | msg.setName(value); |
| 1142 | break; |
| 1143 | case 2: |
| 1144 | var value = /** @type {string} */ (reader.readString()); |
| 1145 | msg.setPackage(value); |
| 1146 | break; |
| 1147 | case 3: |
| 1148 | var value = /** @type {string} */ (reader.readString()); |
| 1149 | msg.addDependency(value); |
| 1150 | break; |
| 1151 | case 10: |
| 1152 | var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]); |
| 1153 | for (var i = 0; i < values.length; i++) { |
| 1154 | msg.addPublicDependency(values[i]); |
| 1155 | } |
| 1156 | break; |
| 1157 | case 11: |
| 1158 | var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]); |
| 1159 | for (var i = 0; i < values.length; i++) { |
| 1160 | msg.addWeakDependency(values[i]); |
| 1161 | } |
| 1162 | break; |
| 1163 | case 4: |
| 1164 | var value = new proto.google.protobuf.DescriptorProto; |
| 1165 | reader.readMessage(value,proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader); |
| 1166 | msg.addMessageType(value); |
| 1167 | break; |
| 1168 | case 5: |
| 1169 | var value = new proto.google.protobuf.EnumDescriptorProto; |
| 1170 | reader.readMessage(value,proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader); |
| 1171 | msg.addEnumType(value); |
| 1172 | break; |
| 1173 | case 6: |
| 1174 | var value = new proto.google.protobuf.ServiceDescriptorProto; |
| 1175 | reader.readMessage(value,proto.google.protobuf.ServiceDescriptorProto.deserializeBinaryFromReader); |
| 1176 | msg.addService(value); |
| 1177 | break; |
| 1178 | case 7: |
| 1179 | var value = new proto.google.protobuf.FieldDescriptorProto; |
| 1180 | reader.readMessage(value,proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader); |
| 1181 | msg.addExtension$(value); |
| 1182 | break; |
| 1183 | case 8: |
| 1184 | var value = new proto.google.protobuf.FileOptions; |
| 1185 | reader.readMessage(value,proto.google.protobuf.FileOptions.deserializeBinaryFromReader); |
| 1186 | msg.setOptions(value); |
| 1187 | break; |
| 1188 | case 9: |
| 1189 | var value = new proto.google.protobuf.SourceCodeInfo; |
| 1190 | reader.readMessage(value,proto.google.protobuf.SourceCodeInfo.deserializeBinaryFromReader); |
| 1191 | msg.setSourceCodeInfo(value); |
| 1192 | break; |
| 1193 | case 12: |
| 1194 | var value = /** @type {string} */ (reader.readString()); |
| 1195 | msg.setSyntax(value); |
| 1196 | break; |
| 1197 | default: |
| 1198 | reader.skipField(); |
| 1199 | break; |
| 1200 | } |
| 1201 | } |
| 1202 | return msg; |
| 1203 | }; |
| 1204 | |
| 1205 | |
| 1206 | /** |
| 1207 | * Serializes the message to binary data (in protobuf wire format). |
| 1208 | * @return {!Uint8Array} |
| 1209 | */ |
| 1210 | proto.google.protobuf.FileDescriptorProto.prototype.serializeBinary = function() { |
| 1211 | var writer = new jspb.BinaryWriter(); |
| 1212 | proto.google.protobuf.FileDescriptorProto.serializeBinaryToWriter(this, writer); |
| 1213 | return writer.getResultBuffer(); |
| 1214 | }; |
| 1215 | |
| 1216 | |
| 1217 | /** |
| 1218 | * Serializes the given message to binary data (in protobuf wire |
| 1219 | * format), writing to the given BinaryWriter. |
| 1220 | * @param {!proto.google.protobuf.FileDescriptorProto} message |
| 1221 | * @param {!jspb.BinaryWriter} writer |
| 1222 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 1223 | */ |
| 1224 | proto.google.protobuf.FileDescriptorProto.serializeBinaryToWriter = function(message, writer) { |
| 1225 | var f = undefined; |
| 1226 | f = /** @type {string} */ (jspb.Message.getField(message, 1)); |
| 1227 | if (f != null) { |
| 1228 | writer.writeString( |
| 1229 | 1, |
| 1230 | f |
| 1231 | ); |
| 1232 | } |
| 1233 | f = /** @type {string} */ (jspb.Message.getField(message, 2)); |
| 1234 | if (f != null) { |
| 1235 | writer.writeString( |
| 1236 | 2, |
| 1237 | f |
| 1238 | ); |
| 1239 | } |
| 1240 | f = message.getDependencyList(); |
| 1241 | if (f.length > 0) { |
| 1242 | writer.writeRepeatedString( |
| 1243 | 3, |
| 1244 | f |
| 1245 | ); |
| 1246 | } |
| 1247 | f = message.getPublicDependencyList(); |
| 1248 | if (f.length > 0) { |
| 1249 | writer.writeRepeatedInt32( |
| 1250 | 10, |
| 1251 | f |
| 1252 | ); |
| 1253 | } |
| 1254 | f = message.getWeakDependencyList(); |
| 1255 | if (f.length > 0) { |
| 1256 | writer.writeRepeatedInt32( |
| 1257 | 11, |
| 1258 | f |
| 1259 | ); |
| 1260 | } |
| 1261 | f = message.getMessageTypeList(); |
| 1262 | if (f.length > 0) { |
| 1263 | writer.writeRepeatedMessage( |
| 1264 | 4, |
| 1265 | f, |
| 1266 | proto.google.protobuf.DescriptorProto.serializeBinaryToWriter |
| 1267 | ); |
| 1268 | } |
| 1269 | f = message.getEnumTypeList(); |
| 1270 | if (f.length > 0) { |
| 1271 | writer.writeRepeatedMessage( |
| 1272 | 5, |
| 1273 | f, |
| 1274 | proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter |
| 1275 | ); |
| 1276 | } |
| 1277 | f = message.getServiceList(); |
| 1278 | if (f.length > 0) { |
| 1279 | writer.writeRepeatedMessage( |
| 1280 | 6, |
| 1281 | f, |
| 1282 | proto.google.protobuf.ServiceDescriptorProto.serializeBinaryToWriter |
| 1283 | ); |
| 1284 | } |
| 1285 | f = message.getExtensionList(); |
| 1286 | if (f.length > 0) { |
| 1287 | writer.writeRepeatedMessage( |
| 1288 | 7, |
| 1289 | f, |
| 1290 | proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter |
| 1291 | ); |
| 1292 | } |
| 1293 | f = message.getOptions(); |
| 1294 | if (f != null) { |
| 1295 | writer.writeMessage( |
| 1296 | 8, |
| 1297 | f, |
| 1298 | proto.google.protobuf.FileOptions.serializeBinaryToWriter |
| 1299 | ); |
| 1300 | } |
| 1301 | f = message.getSourceCodeInfo(); |
| 1302 | if (f != null) { |
| 1303 | writer.writeMessage( |
| 1304 | 9, |
| 1305 | f, |
| 1306 | proto.google.protobuf.SourceCodeInfo.serializeBinaryToWriter |
| 1307 | ); |
| 1308 | } |
| 1309 | f = /** @type {string} */ (jspb.Message.getField(message, 12)); |
| 1310 | if (f != null) { |
| 1311 | writer.writeString( |
| 1312 | 12, |
| 1313 | f |
| 1314 | ); |
| 1315 | } |
| 1316 | }; |
| 1317 | |
| 1318 | |
| 1319 | /** |
| 1320 | * optional string name = 1; |
| 1321 | * @return {string} |
| 1322 | */ |
| 1323 | proto.google.protobuf.FileDescriptorProto.prototype.getName = function() { |
| 1324 | return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); |
| 1325 | }; |
| 1326 | |
| 1327 | |
| 1328 | /** |
| 1329 | * @param {string} value |
| 1330 | * @return {!proto.google.protobuf.FileDescriptorProto} returns this |
| 1331 | */ |
| 1332 | proto.google.protobuf.FileDescriptorProto.prototype.setName = function(value) { |
| 1333 | return jspb.Message.setField(this, 1, value); |
| 1334 | }; |
| 1335 | |
| 1336 | |
| 1337 | /** |
| 1338 | * Clears the field making it undefined. |
| 1339 | * @return {!proto.google.protobuf.FileDescriptorProto} returns this |
| 1340 | */ |
| 1341 | proto.google.protobuf.FileDescriptorProto.prototype.clearName = function() { |
| 1342 | return jspb.Message.setField(this, 1, undefined); |
| 1343 | }; |
| 1344 | |
| 1345 | |
| 1346 | /** |
| 1347 | * Returns whether this field is set. |
| 1348 | * @return {boolean} |
| 1349 | */ |
| 1350 | proto.google.protobuf.FileDescriptorProto.prototype.hasName = function() { |
| 1351 | return jspb.Message.getField(this, 1) != null; |
| 1352 | }; |
| 1353 | |
| 1354 | |
| 1355 | /** |
| 1356 | * optional string package = 2; |
| 1357 | * @return {string} |
| 1358 | */ |
| 1359 | proto.google.protobuf.FileDescriptorProto.prototype.getPackage = function() { |
| 1360 | return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); |
| 1361 | }; |
| 1362 | |
| 1363 | |
| 1364 | /** |
| 1365 | * @param {string} value |
| 1366 | * @return {!proto.google.protobuf.FileDescriptorProto} returns this |
| 1367 | */ |
| 1368 | proto.google.protobuf.FileDescriptorProto.prototype.setPackage = function(value) { |
| 1369 | return jspb.Message.setField(this, 2, value); |
| 1370 | }; |
| 1371 | |
| 1372 | |
| 1373 | /** |
| 1374 | * Clears the field making it undefined. |
| 1375 | * @return {!proto.google.protobuf.FileDescriptorProto} returns this |
| 1376 | */ |
| 1377 | proto.google.protobuf.FileDescriptorProto.prototype.clearPackage = function() { |
| 1378 | return jspb.Message.setField(this, 2, undefined); |
| 1379 | }; |
| 1380 | |
| 1381 | |
| 1382 | /** |
| 1383 | * Returns whether this field is set. |
| 1384 | * @return {boolean} |
| 1385 | */ |
| 1386 | proto.google.protobuf.FileDescriptorProto.prototype.hasPackage = function() { |
| 1387 | return jspb.Message.getField(this, 2) != null; |
| 1388 | }; |
| 1389 | |
| 1390 | |
| 1391 | /** |
| 1392 | * repeated string dependency = 3; |
| 1393 | * @return {!Array<string>} |
| 1394 | */ |
| 1395 | proto.google.protobuf.FileDescriptorProto.prototype.getDependencyList = function() { |
| 1396 | return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3)); |
| 1397 | }; |
| 1398 | |
| 1399 | |
| 1400 | /** |
| 1401 | * @param {!Array<string>} value |
| 1402 | * @return {!proto.google.protobuf.FileDescriptorProto} returns this |
| 1403 | */ |
| 1404 | proto.google.protobuf.FileDescriptorProto.prototype.setDependencyList = function(value) { |
| 1405 | return jspb.Message.setField(this, 3, value || []); |
| 1406 | }; |
| 1407 | |
| 1408 | |
| 1409 | /** |
| 1410 | * @param {string} value |
| 1411 | * @param {number=} opt_index |
| 1412 | * @return {!proto.google.protobuf.FileDescriptorProto} returns this |
| 1413 | */ |
| 1414 | proto.google.protobuf.FileDescriptorProto.prototype.addDependency = function(value, opt_index) { |
| 1415 | return jspb.Message.addToRepeatedField(this, 3, value, opt_index); |
| 1416 | }; |
| 1417 | |
| 1418 | |
| 1419 | /** |
| 1420 | * Clears the list making it empty but non-null. |
| 1421 | * @return {!proto.google.protobuf.FileDescriptorProto} returns this |
| 1422 | */ |
| 1423 | proto.google.protobuf.FileDescriptorProto.prototype.clearDependencyList = function() { |
| 1424 | return this.setDependencyList([]); |
| 1425 | }; |
| 1426 | |
| 1427 | |
| 1428 | /** |
| 1429 | * repeated int32 public_dependency = 10; |
| 1430 | * @return {!Array<number>} |
| 1431 | */ |
| 1432 | proto.google.protobuf.FileDescriptorProto.prototype.getPublicDependencyList = function() { |
| 1433 | return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 10)); |
| 1434 | }; |
| 1435 | |
| 1436 | |
| 1437 | /** |
| 1438 | * @param {!Array<number>} value |
| 1439 | * @return {!proto.google.protobuf.FileDescriptorProto} returns this |
| 1440 | */ |
| 1441 | proto.google.protobuf.FileDescriptorProto.prototype.setPublicDependencyList = function(value) { |
| 1442 | return jspb.Message.setField(this, 10, value || []); |
| 1443 | }; |
| 1444 | |
| 1445 | |
| 1446 | /** |
| 1447 | * @param {number} value |
| 1448 | * @param {number=} opt_index |
| 1449 | * @return {!proto.google.protobuf.FileDescriptorProto} returns this |
| 1450 | */ |
| 1451 | proto.google.protobuf.FileDescriptorProto.prototype.addPublicDependency = function(value, opt_index) { |
| 1452 | return jspb.Message.addToRepeatedField(this, 10, value, opt_index); |
| 1453 | }; |
| 1454 | |
| 1455 | |
| 1456 | /** |
| 1457 | * Clears the list making it empty but non-null. |
| 1458 | * @return {!proto.google.protobuf.FileDescriptorProto} returns this |
| 1459 | */ |
| 1460 | proto.google.protobuf.FileDescriptorProto.prototype.clearPublicDependencyList = function() { |
| 1461 | return this.setPublicDependencyList([]); |
| 1462 | }; |
| 1463 | |
| 1464 | |
| 1465 | /** |
| 1466 | * repeated int32 weak_dependency = 11; |
| 1467 | * @return {!Array<number>} |
| 1468 | */ |
| 1469 | proto.google.protobuf.FileDescriptorProto.prototype.getWeakDependencyList = function() { |
| 1470 | return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 11)); |
| 1471 | }; |
| 1472 | |
| 1473 | |
| 1474 | /** |
| 1475 | * @param {!Array<number>} value |
| 1476 | * @return {!proto.google.protobuf.FileDescriptorProto} returns this |
| 1477 | */ |
| 1478 | proto.google.protobuf.FileDescriptorProto.prototype.setWeakDependencyList = function(value) { |
| 1479 | return jspb.Message.setField(this, 11, value || []); |
| 1480 | }; |
| 1481 | |
| 1482 | |
| 1483 | /** |
| 1484 | * @param {number} value |
| 1485 | * @param {number=} opt_index |
| 1486 | * @return {!proto.google.protobuf.FileDescriptorProto} returns this |
| 1487 | */ |
| 1488 | proto.google.protobuf.FileDescriptorProto.prototype.addWeakDependency = function(value, opt_index) { |
| 1489 | return jspb.Message.addToRepeatedField(this, 11, value, opt_index); |
| 1490 | }; |
| 1491 | |
| 1492 | |
| 1493 | /** |
| 1494 | * Clears the list making it empty but non-null. |
| 1495 | * @return {!proto.google.protobuf.FileDescriptorProto} returns this |
| 1496 | */ |
| 1497 | proto.google.protobuf.FileDescriptorProto.prototype.clearWeakDependencyList = function() { |
| 1498 | return this.setWeakDependencyList([]); |
| 1499 | }; |
| 1500 | |
| 1501 | |
| 1502 | /** |
| 1503 | * repeated DescriptorProto message_type = 4; |
| 1504 | * @return {!Array<!proto.google.protobuf.DescriptorProto>} |
| 1505 | */ |
| 1506 | proto.google.protobuf.FileDescriptorProto.prototype.getMessageTypeList = function() { |
| 1507 | return /** @type{!Array<!proto.google.protobuf.DescriptorProto>} */ ( |
| 1508 | jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.DescriptorProto, 4)); |
| 1509 | }; |
| 1510 | |
| 1511 | |
| 1512 | /** |
| 1513 | * @param {!Array<!proto.google.protobuf.DescriptorProto>} value |
| 1514 | * @return {!proto.google.protobuf.FileDescriptorProto} returns this |
| 1515 | */ |
| 1516 | proto.google.protobuf.FileDescriptorProto.prototype.setMessageTypeList = function(value) { |
| 1517 | return jspb.Message.setRepeatedWrapperField(this, 4, value); |
| 1518 | }; |
| 1519 | |
| 1520 | |
| 1521 | /** |
| 1522 | * @param {!proto.google.protobuf.DescriptorProto=} opt_value |
| 1523 | * @param {number=} opt_index |
| 1524 | * @return {!proto.google.protobuf.DescriptorProto} |
| 1525 | */ |
| 1526 | proto.google.protobuf.FileDescriptorProto.prototype.addMessageType = function(opt_value, opt_index) { |
| 1527 | return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.google.protobuf.DescriptorProto, opt_index); |
| 1528 | }; |
| 1529 | |
| 1530 | |
| 1531 | /** |
| 1532 | * Clears the list making it empty but non-null. |
| 1533 | * @return {!proto.google.protobuf.FileDescriptorProto} returns this |
| 1534 | */ |
| 1535 | proto.google.protobuf.FileDescriptorProto.prototype.clearMessageTypeList = function() { |
| 1536 | return this.setMessageTypeList([]); |
| 1537 | }; |
| 1538 | |
| 1539 | |
| 1540 | /** |
| 1541 | * repeated EnumDescriptorProto enum_type = 5; |
| 1542 | * @return {!Array<!proto.google.protobuf.EnumDescriptorProto>} |
| 1543 | */ |
| 1544 | proto.google.protobuf.FileDescriptorProto.prototype.getEnumTypeList = function() { |
| 1545 | return /** @type{!Array<!proto.google.protobuf.EnumDescriptorProto>} */ ( |
| 1546 | jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.EnumDescriptorProto, 5)); |
| 1547 | }; |
| 1548 | |
| 1549 | |
| 1550 | /** |
| 1551 | * @param {!Array<!proto.google.protobuf.EnumDescriptorProto>} value |
| 1552 | * @return {!proto.google.protobuf.FileDescriptorProto} returns this |
| 1553 | */ |
| 1554 | proto.google.protobuf.FileDescriptorProto.prototype.setEnumTypeList = function(value) { |
| 1555 | return jspb.Message.setRepeatedWrapperField(this, 5, value); |
| 1556 | }; |
| 1557 | |
| 1558 | |
| 1559 | /** |
| 1560 | * @param {!proto.google.protobuf.EnumDescriptorProto=} opt_value |
| 1561 | * @param {number=} opt_index |
| 1562 | * @return {!proto.google.protobuf.EnumDescriptorProto} |
| 1563 | */ |
| 1564 | proto.google.protobuf.FileDescriptorProto.prototype.addEnumType = function(opt_value, opt_index) { |
| 1565 | return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.google.protobuf.EnumDescriptorProto, opt_index); |
| 1566 | }; |
| 1567 | |
| 1568 | |
| 1569 | /** |
| 1570 | * Clears the list making it empty but non-null. |
| 1571 | * @return {!proto.google.protobuf.FileDescriptorProto} returns this |
| 1572 | */ |
| 1573 | proto.google.protobuf.FileDescriptorProto.prototype.clearEnumTypeList = function() { |
| 1574 | return this.setEnumTypeList([]); |
| 1575 | }; |
| 1576 | |
| 1577 | |
| 1578 | /** |
| 1579 | * repeated ServiceDescriptorProto service = 6; |
| 1580 | * @return {!Array<!proto.google.protobuf.ServiceDescriptorProto>} |
| 1581 | */ |
| 1582 | proto.google.protobuf.FileDescriptorProto.prototype.getServiceList = function() { |
| 1583 | return /** @type{!Array<!proto.google.protobuf.ServiceDescriptorProto>} */ ( |
| 1584 | jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.ServiceDescriptorProto, 6)); |
| 1585 | }; |
| 1586 | |
| 1587 | |
| 1588 | /** |
| 1589 | * @param {!Array<!proto.google.protobuf.ServiceDescriptorProto>} value |
| 1590 | * @return {!proto.google.protobuf.FileDescriptorProto} returns this |
| 1591 | */ |
| 1592 | proto.google.protobuf.FileDescriptorProto.prototype.setServiceList = function(value) { |
| 1593 | return jspb.Message.setRepeatedWrapperField(this, 6, value); |
| 1594 | }; |
| 1595 | |
| 1596 | |
| 1597 | /** |
| 1598 | * @param {!proto.google.protobuf.ServiceDescriptorProto=} opt_value |
| 1599 | * @param {number=} opt_index |
| 1600 | * @return {!proto.google.protobuf.ServiceDescriptorProto} |
| 1601 | */ |
| 1602 | proto.google.protobuf.FileDescriptorProto.prototype.addService = function(opt_value, opt_index) { |
| 1603 | return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.google.protobuf.ServiceDescriptorProto, opt_index); |
| 1604 | }; |
| 1605 | |
| 1606 | |
| 1607 | /** |
| 1608 | * Clears the list making it empty but non-null. |
| 1609 | * @return {!proto.google.protobuf.FileDescriptorProto} returns this |
| 1610 | */ |
| 1611 | proto.google.protobuf.FileDescriptorProto.prototype.clearServiceList = function() { |
| 1612 | return this.setServiceList([]); |
| 1613 | }; |
| 1614 | |
| 1615 | |
| 1616 | /** |
| 1617 | * repeated FieldDescriptorProto extension = 7; |
| 1618 | * @return {!Array<!proto.google.protobuf.FieldDescriptorProto>} |
| 1619 | */ |
| 1620 | proto.google.protobuf.FileDescriptorProto.prototype.getExtensionList = function() { |
| 1621 | return /** @type{!Array<!proto.google.protobuf.FieldDescriptorProto>} */ ( |
| 1622 | jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.FieldDescriptorProto, 7)); |
| 1623 | }; |
| 1624 | |
| 1625 | |
| 1626 | /** |
| 1627 | * @param {!Array<!proto.google.protobuf.FieldDescriptorProto>} value |
| 1628 | * @return {!proto.google.protobuf.FileDescriptorProto} returns this |
| 1629 | */ |
| 1630 | proto.google.protobuf.FileDescriptorProto.prototype.setExtensionList = function(value) { |
| 1631 | return jspb.Message.setRepeatedWrapperField(this, 7, value); |
| 1632 | }; |
| 1633 | |
| 1634 | |
| 1635 | /** |
| 1636 | * @param {!proto.google.protobuf.FieldDescriptorProto=} opt_value |
| 1637 | * @param {number=} opt_index |
| 1638 | * @return {!proto.google.protobuf.FieldDescriptorProto} |
| 1639 | */ |
| 1640 | proto.google.protobuf.FileDescriptorProto.prototype.addExtension$ = function(opt_value, opt_index) { |
| 1641 | return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.google.protobuf.FieldDescriptorProto, opt_index); |
| 1642 | }; |
| 1643 | |
| 1644 | |
| 1645 | /** |
| 1646 | * Clears the list making it empty but non-null. |
| 1647 | * @return {!proto.google.protobuf.FileDescriptorProto} returns this |
| 1648 | */ |
| 1649 | proto.google.protobuf.FileDescriptorProto.prototype.clearExtensionList = function() { |
| 1650 | return this.setExtensionList([]); |
| 1651 | }; |
| 1652 | |
| 1653 | |
| 1654 | /** |
| 1655 | * optional FileOptions options = 8; |
| 1656 | * @return {?proto.google.protobuf.FileOptions} |
| 1657 | */ |
| 1658 | proto.google.protobuf.FileDescriptorProto.prototype.getOptions = function() { |
| 1659 | return /** @type{?proto.google.protobuf.FileOptions} */ ( |
| 1660 | jspb.Message.getWrapperField(this, proto.google.protobuf.FileOptions, 8)); |
| 1661 | }; |
| 1662 | |
| 1663 | |
| 1664 | /** |
| 1665 | * @param {?proto.google.protobuf.FileOptions|undefined} value |
| 1666 | * @return {!proto.google.protobuf.FileDescriptorProto} returns this |
| 1667 | */ |
| 1668 | proto.google.protobuf.FileDescriptorProto.prototype.setOptions = function(value) { |
| 1669 | return jspb.Message.setWrapperField(this, 8, value); |
| 1670 | }; |
| 1671 | |
| 1672 | |
| 1673 | /** |
| 1674 | * Clears the message field making it undefined. |
| 1675 | * @return {!proto.google.protobuf.FileDescriptorProto} returns this |
| 1676 | */ |
| 1677 | proto.google.protobuf.FileDescriptorProto.prototype.clearOptions = function() { |
| 1678 | return this.setOptions(undefined); |
| 1679 | }; |
| 1680 | |
| 1681 | |
| 1682 | /** |
| 1683 | * Returns whether this field is set. |
| 1684 | * @return {boolean} |
| 1685 | */ |
| 1686 | proto.google.protobuf.FileDescriptorProto.prototype.hasOptions = function() { |
| 1687 | return jspb.Message.getField(this, 8) != null; |
| 1688 | }; |
| 1689 | |
| 1690 | |
| 1691 | /** |
| 1692 | * optional SourceCodeInfo source_code_info = 9; |
| 1693 | * @return {?proto.google.protobuf.SourceCodeInfo} |
| 1694 | */ |
| 1695 | proto.google.protobuf.FileDescriptorProto.prototype.getSourceCodeInfo = function() { |
| 1696 | return /** @type{?proto.google.protobuf.SourceCodeInfo} */ ( |
| 1697 | jspb.Message.getWrapperField(this, proto.google.protobuf.SourceCodeInfo, 9)); |
| 1698 | }; |
| 1699 | |
| 1700 | |
| 1701 | /** |
| 1702 | * @param {?proto.google.protobuf.SourceCodeInfo|undefined} value |
| 1703 | * @return {!proto.google.protobuf.FileDescriptorProto} returns this |
| 1704 | */ |
| 1705 | proto.google.protobuf.FileDescriptorProto.prototype.setSourceCodeInfo = function(value) { |
| 1706 | return jspb.Message.setWrapperField(this, 9, value); |
| 1707 | }; |
| 1708 | |
| 1709 | |
| 1710 | /** |
| 1711 | * Clears the message field making it undefined. |
| 1712 | * @return {!proto.google.protobuf.FileDescriptorProto} returns this |
| 1713 | */ |
| 1714 | proto.google.protobuf.FileDescriptorProto.prototype.clearSourceCodeInfo = function() { |
| 1715 | return this.setSourceCodeInfo(undefined); |
| 1716 | }; |
| 1717 | |
| 1718 | |
| 1719 | /** |
| 1720 | * Returns whether this field is set. |
| 1721 | * @return {boolean} |
| 1722 | */ |
| 1723 | proto.google.protobuf.FileDescriptorProto.prototype.hasSourceCodeInfo = function() { |
| 1724 | return jspb.Message.getField(this, 9) != null; |
| 1725 | }; |
| 1726 | |
| 1727 | |
| 1728 | /** |
| 1729 | * optional string syntax = 12; |
| 1730 | * @return {string} |
| 1731 | */ |
| 1732 | proto.google.protobuf.FileDescriptorProto.prototype.getSyntax = function() { |
| 1733 | return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); |
| 1734 | }; |
| 1735 | |
| 1736 | |
| 1737 | /** |
| 1738 | * @param {string} value |
| 1739 | * @return {!proto.google.protobuf.FileDescriptorProto} returns this |
| 1740 | */ |
| 1741 | proto.google.protobuf.FileDescriptorProto.prototype.setSyntax = function(value) { |
| 1742 | return jspb.Message.setField(this, 12, value); |
| 1743 | }; |
| 1744 | |
| 1745 | |
| 1746 | /** |
| 1747 | * Clears the field making it undefined. |
| 1748 | * @return {!proto.google.protobuf.FileDescriptorProto} returns this |
| 1749 | */ |
| 1750 | proto.google.protobuf.FileDescriptorProto.prototype.clearSyntax = function() { |
| 1751 | return jspb.Message.setField(this, 12, undefined); |
| 1752 | }; |
| 1753 | |
| 1754 | |
| 1755 | /** |
| 1756 | * Returns whether this field is set. |
| 1757 | * @return {boolean} |
| 1758 | */ |
| 1759 | proto.google.protobuf.FileDescriptorProto.prototype.hasSyntax = function() { |
| 1760 | return jspb.Message.getField(this, 12) != null; |
| 1761 | }; |
| 1762 | |
| 1763 | |
| 1764 | |
| 1765 | /** |
| 1766 | * List of repeated fields within this message type. |
| 1767 | * @private {!Array<number>} |
| 1768 | * @const |
| 1769 | */ |
| 1770 | proto.google.protobuf.DescriptorProto.repeatedFields_ = [2,6,3,4,5,8,9,10]; |
| 1771 | |
| 1772 | |
| 1773 | |
| 1774 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 1775 | /** |
| 1776 | * Creates an object representation of this proto. |
| 1777 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 1778 | * Optional fields that are not set will be set to undefined. |
| 1779 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 1780 | * For the list of reserved names please see: |
| 1781 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 1782 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 1783 | * JSPB instance for transitional soy proto support: |
| 1784 | * http://goto/soy-param-migration |
| 1785 | * @return {!Object} |
| 1786 | */ |
| 1787 | proto.google.protobuf.DescriptorProto.prototype.toObject = function(opt_includeInstance) { |
| 1788 | return proto.google.protobuf.DescriptorProto.toObject(opt_includeInstance, this); |
| 1789 | }; |
| 1790 | |
| 1791 | |
| 1792 | /** |
| 1793 | * Static version of the {@see toObject} method. |
| 1794 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 1795 | * the JSPB instance for transitional soy proto support: |
| 1796 | * http://goto/soy-param-migration |
| 1797 | * @param {!proto.google.protobuf.DescriptorProto} msg The msg instance to transform. |
| 1798 | * @return {!Object} |
| 1799 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 1800 | */ |
| 1801 | proto.google.protobuf.DescriptorProto.toObject = function(includeInstance, msg) { |
| 1802 | var f, obj = { |
| 1803 | name: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f, |
| 1804 | fieldList: jspb.Message.toObjectList(msg.getFieldList(), |
| 1805 | proto.google.protobuf.FieldDescriptorProto.toObject, includeInstance), |
| 1806 | extensionList: jspb.Message.toObjectList(msg.getExtensionList(), |
| 1807 | proto.google.protobuf.FieldDescriptorProto.toObject, includeInstance), |
| 1808 | nestedTypeList: jspb.Message.toObjectList(msg.getNestedTypeList(), |
| 1809 | proto.google.protobuf.DescriptorProto.toObject, includeInstance), |
| 1810 | enumTypeList: jspb.Message.toObjectList(msg.getEnumTypeList(), |
| 1811 | proto.google.protobuf.EnumDescriptorProto.toObject, includeInstance), |
| 1812 | extensionRangeList: jspb.Message.toObjectList(msg.getExtensionRangeList(), |
| 1813 | proto.google.protobuf.DescriptorProto.ExtensionRange.toObject, includeInstance), |
| 1814 | oneofDeclList: jspb.Message.toObjectList(msg.getOneofDeclList(), |
| 1815 | proto.google.protobuf.OneofDescriptorProto.toObject, includeInstance), |
| 1816 | options: (f = msg.getOptions()) && proto.google.protobuf.MessageOptions.toObject(includeInstance, f), |
| 1817 | reservedRangeList: jspb.Message.toObjectList(msg.getReservedRangeList(), |
| 1818 | proto.google.protobuf.DescriptorProto.ReservedRange.toObject, includeInstance), |
| 1819 | reservedNameList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f |
| 1820 | }; |
| 1821 | |
| 1822 | if (includeInstance) { |
| 1823 | obj.$jspbMessageInstance = msg; |
| 1824 | } |
| 1825 | return obj; |
| 1826 | }; |
| 1827 | } |
| 1828 | |
| 1829 | |
| 1830 | /** |
| 1831 | * Deserializes binary data (in protobuf wire format). |
| 1832 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 1833 | * @return {!proto.google.protobuf.DescriptorProto} |
| 1834 | */ |
| 1835 | proto.google.protobuf.DescriptorProto.deserializeBinary = function(bytes) { |
| 1836 | var reader = new jspb.BinaryReader(bytes); |
| 1837 | var msg = new proto.google.protobuf.DescriptorProto; |
| 1838 | return proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader(msg, reader); |
| 1839 | }; |
| 1840 | |
| 1841 | |
| 1842 | /** |
| 1843 | * Deserializes binary data (in protobuf wire format) from the |
| 1844 | * given reader into the given message object. |
| 1845 | * @param {!proto.google.protobuf.DescriptorProto} msg The message object to deserialize into. |
| 1846 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 1847 | * @return {!proto.google.protobuf.DescriptorProto} |
| 1848 | */ |
| 1849 | proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader = function(msg, reader) { |
| 1850 | while (reader.nextField()) { |
| 1851 | if (reader.isEndGroup()) { |
| 1852 | break; |
| 1853 | } |
| 1854 | var field = reader.getFieldNumber(); |
| 1855 | switch (field) { |
| 1856 | case 1: |
| 1857 | var value = /** @type {string} */ (reader.readString()); |
| 1858 | msg.setName(value); |
| 1859 | break; |
| 1860 | case 2: |
| 1861 | var value = new proto.google.protobuf.FieldDescriptorProto; |
| 1862 | reader.readMessage(value,proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader); |
| 1863 | msg.addField(value); |
| 1864 | break; |
| 1865 | case 6: |
| 1866 | var value = new proto.google.protobuf.FieldDescriptorProto; |
| 1867 | reader.readMessage(value,proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader); |
| 1868 | msg.addExtension$(value); |
| 1869 | break; |
| 1870 | case 3: |
| 1871 | var value = new proto.google.protobuf.DescriptorProto; |
| 1872 | reader.readMessage(value,proto.google.protobuf.DescriptorProto.deserializeBinaryFromReader); |
| 1873 | msg.addNestedType(value); |
| 1874 | break; |
| 1875 | case 4: |
| 1876 | var value = new proto.google.protobuf.EnumDescriptorProto; |
| 1877 | reader.readMessage(value,proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader); |
| 1878 | msg.addEnumType(value); |
| 1879 | break; |
| 1880 | case 5: |
| 1881 | var value = new proto.google.protobuf.DescriptorProto.ExtensionRange; |
| 1882 | reader.readMessage(value,proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinaryFromReader); |
| 1883 | msg.addExtensionRange(value); |
| 1884 | break; |
| 1885 | case 8: |
| 1886 | var value = new proto.google.protobuf.OneofDescriptorProto; |
| 1887 | reader.readMessage(value,proto.google.protobuf.OneofDescriptorProto.deserializeBinaryFromReader); |
| 1888 | msg.addOneofDecl(value); |
| 1889 | break; |
| 1890 | case 7: |
| 1891 | var value = new proto.google.protobuf.MessageOptions; |
| 1892 | reader.readMessage(value,proto.google.protobuf.MessageOptions.deserializeBinaryFromReader); |
| 1893 | msg.setOptions(value); |
| 1894 | break; |
| 1895 | case 9: |
| 1896 | var value = new proto.google.protobuf.DescriptorProto.ReservedRange; |
| 1897 | reader.readMessage(value,proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinaryFromReader); |
| 1898 | msg.addReservedRange(value); |
| 1899 | break; |
| 1900 | case 10: |
| 1901 | var value = /** @type {string} */ (reader.readString()); |
| 1902 | msg.addReservedName(value); |
| 1903 | break; |
| 1904 | default: |
| 1905 | reader.skipField(); |
| 1906 | break; |
| 1907 | } |
| 1908 | } |
| 1909 | return msg; |
| 1910 | }; |
| 1911 | |
| 1912 | |
| 1913 | /** |
| 1914 | * Serializes the message to binary data (in protobuf wire format). |
| 1915 | * @return {!Uint8Array} |
| 1916 | */ |
| 1917 | proto.google.protobuf.DescriptorProto.prototype.serializeBinary = function() { |
| 1918 | var writer = new jspb.BinaryWriter(); |
| 1919 | proto.google.protobuf.DescriptorProto.serializeBinaryToWriter(this, writer); |
| 1920 | return writer.getResultBuffer(); |
| 1921 | }; |
| 1922 | |
| 1923 | |
| 1924 | /** |
| 1925 | * Serializes the given message to binary data (in protobuf wire |
| 1926 | * format), writing to the given BinaryWriter. |
| 1927 | * @param {!proto.google.protobuf.DescriptorProto} message |
| 1928 | * @param {!jspb.BinaryWriter} writer |
| 1929 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 1930 | */ |
| 1931 | proto.google.protobuf.DescriptorProto.serializeBinaryToWriter = function(message, writer) { |
| 1932 | var f = undefined; |
| 1933 | f = /** @type {string} */ (jspb.Message.getField(message, 1)); |
| 1934 | if (f != null) { |
| 1935 | writer.writeString( |
| 1936 | 1, |
| 1937 | f |
| 1938 | ); |
| 1939 | } |
| 1940 | f = message.getFieldList(); |
| 1941 | if (f.length > 0) { |
| 1942 | writer.writeRepeatedMessage( |
| 1943 | 2, |
| 1944 | f, |
| 1945 | proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter |
| 1946 | ); |
| 1947 | } |
| 1948 | f = message.getExtensionList(); |
| 1949 | if (f.length > 0) { |
| 1950 | writer.writeRepeatedMessage( |
| 1951 | 6, |
| 1952 | f, |
| 1953 | proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter |
| 1954 | ); |
| 1955 | } |
| 1956 | f = message.getNestedTypeList(); |
| 1957 | if (f.length > 0) { |
| 1958 | writer.writeRepeatedMessage( |
| 1959 | 3, |
| 1960 | f, |
| 1961 | proto.google.protobuf.DescriptorProto.serializeBinaryToWriter |
| 1962 | ); |
| 1963 | } |
| 1964 | f = message.getEnumTypeList(); |
| 1965 | if (f.length > 0) { |
| 1966 | writer.writeRepeatedMessage( |
| 1967 | 4, |
| 1968 | f, |
| 1969 | proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter |
| 1970 | ); |
| 1971 | } |
| 1972 | f = message.getExtensionRangeList(); |
| 1973 | if (f.length > 0) { |
| 1974 | writer.writeRepeatedMessage( |
| 1975 | 5, |
| 1976 | f, |
| 1977 | proto.google.protobuf.DescriptorProto.ExtensionRange.serializeBinaryToWriter |
| 1978 | ); |
| 1979 | } |
| 1980 | f = message.getOneofDeclList(); |
| 1981 | if (f.length > 0) { |
| 1982 | writer.writeRepeatedMessage( |
| 1983 | 8, |
| 1984 | f, |
| 1985 | proto.google.protobuf.OneofDescriptorProto.serializeBinaryToWriter |
| 1986 | ); |
| 1987 | } |
| 1988 | f = message.getOptions(); |
| 1989 | if (f != null) { |
| 1990 | writer.writeMessage( |
| 1991 | 7, |
| 1992 | f, |
| 1993 | proto.google.protobuf.MessageOptions.serializeBinaryToWriter |
| 1994 | ); |
| 1995 | } |
| 1996 | f = message.getReservedRangeList(); |
| 1997 | if (f.length > 0) { |
| 1998 | writer.writeRepeatedMessage( |
| 1999 | 9, |
| 2000 | f, |
| 2001 | proto.google.protobuf.DescriptorProto.ReservedRange.serializeBinaryToWriter |
| 2002 | ); |
| 2003 | } |
| 2004 | f = message.getReservedNameList(); |
| 2005 | if (f.length > 0) { |
| 2006 | writer.writeRepeatedString( |
| 2007 | 10, |
| 2008 | f |
| 2009 | ); |
| 2010 | } |
| 2011 | }; |
| 2012 | |
| 2013 | |
| 2014 | |
| 2015 | |
| 2016 | |
| 2017 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 2018 | /** |
| 2019 | * Creates an object representation of this proto. |
| 2020 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 2021 | * Optional fields that are not set will be set to undefined. |
| 2022 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 2023 | * For the list of reserved names please see: |
| 2024 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 2025 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 2026 | * JSPB instance for transitional soy proto support: |
| 2027 | * http://goto/soy-param-migration |
| 2028 | * @return {!Object} |
| 2029 | */ |
| 2030 | proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.toObject = function(opt_includeInstance) { |
| 2031 | return proto.google.protobuf.DescriptorProto.ExtensionRange.toObject(opt_includeInstance, this); |
| 2032 | }; |
| 2033 | |
| 2034 | |
| 2035 | /** |
| 2036 | * Static version of the {@see toObject} method. |
| 2037 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 2038 | * the JSPB instance for transitional soy proto support: |
| 2039 | * http://goto/soy-param-migration |
| 2040 | * @param {!proto.google.protobuf.DescriptorProto.ExtensionRange} msg The msg instance to transform. |
| 2041 | * @return {!Object} |
| 2042 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 2043 | */ |
| 2044 | proto.google.protobuf.DescriptorProto.ExtensionRange.toObject = function(includeInstance, msg) { |
| 2045 | var f, obj = { |
| 2046 | start: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f, |
| 2047 | end: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f, |
| 2048 | options: (f = msg.getOptions()) && proto.google.protobuf.ExtensionRangeOptions.toObject(includeInstance, f) |
| 2049 | }; |
| 2050 | |
| 2051 | if (includeInstance) { |
| 2052 | obj.$jspbMessageInstance = msg; |
| 2053 | } |
| 2054 | return obj; |
| 2055 | }; |
| 2056 | } |
| 2057 | |
| 2058 | |
| 2059 | /** |
| 2060 | * Deserializes binary data (in protobuf wire format). |
| 2061 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 2062 | * @return {!proto.google.protobuf.DescriptorProto.ExtensionRange} |
| 2063 | */ |
| 2064 | proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinary = function(bytes) { |
| 2065 | var reader = new jspb.BinaryReader(bytes); |
| 2066 | var msg = new proto.google.protobuf.DescriptorProto.ExtensionRange; |
| 2067 | return proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinaryFromReader(msg, reader); |
| 2068 | }; |
| 2069 | |
| 2070 | |
| 2071 | /** |
| 2072 | * Deserializes binary data (in protobuf wire format) from the |
| 2073 | * given reader into the given message object. |
| 2074 | * @param {!proto.google.protobuf.DescriptorProto.ExtensionRange} msg The message object to deserialize into. |
| 2075 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 2076 | * @return {!proto.google.protobuf.DescriptorProto.ExtensionRange} |
| 2077 | */ |
| 2078 | proto.google.protobuf.DescriptorProto.ExtensionRange.deserializeBinaryFromReader = function(msg, reader) { |
| 2079 | while (reader.nextField()) { |
| 2080 | if (reader.isEndGroup()) { |
| 2081 | break; |
| 2082 | } |
| 2083 | var field = reader.getFieldNumber(); |
| 2084 | switch (field) { |
| 2085 | case 1: |
| 2086 | var value = /** @type {number} */ (reader.readInt32()); |
| 2087 | msg.setStart(value); |
| 2088 | break; |
| 2089 | case 2: |
| 2090 | var value = /** @type {number} */ (reader.readInt32()); |
| 2091 | msg.setEnd(value); |
| 2092 | break; |
| 2093 | case 3: |
| 2094 | var value = new proto.google.protobuf.ExtensionRangeOptions; |
| 2095 | reader.readMessage(value,proto.google.protobuf.ExtensionRangeOptions.deserializeBinaryFromReader); |
| 2096 | msg.setOptions(value); |
| 2097 | break; |
| 2098 | default: |
| 2099 | reader.skipField(); |
| 2100 | break; |
| 2101 | } |
| 2102 | } |
| 2103 | return msg; |
| 2104 | }; |
| 2105 | |
| 2106 | |
| 2107 | /** |
| 2108 | * Serializes the message to binary data (in protobuf wire format). |
| 2109 | * @return {!Uint8Array} |
| 2110 | */ |
| 2111 | proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.serializeBinary = function() { |
| 2112 | var writer = new jspb.BinaryWriter(); |
| 2113 | proto.google.protobuf.DescriptorProto.ExtensionRange.serializeBinaryToWriter(this, writer); |
| 2114 | return writer.getResultBuffer(); |
| 2115 | }; |
| 2116 | |
| 2117 | |
| 2118 | /** |
| 2119 | * Serializes the given message to binary data (in protobuf wire |
| 2120 | * format), writing to the given BinaryWriter. |
| 2121 | * @param {!proto.google.protobuf.DescriptorProto.ExtensionRange} message |
| 2122 | * @param {!jspb.BinaryWriter} writer |
| 2123 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 2124 | */ |
| 2125 | proto.google.protobuf.DescriptorProto.ExtensionRange.serializeBinaryToWriter = function(message, writer) { |
| 2126 | var f = undefined; |
| 2127 | f = /** @type {number} */ (jspb.Message.getField(message, 1)); |
| 2128 | if (f != null) { |
| 2129 | writer.writeInt32( |
| 2130 | 1, |
| 2131 | f |
| 2132 | ); |
| 2133 | } |
| 2134 | f = /** @type {number} */ (jspb.Message.getField(message, 2)); |
| 2135 | if (f != null) { |
| 2136 | writer.writeInt32( |
| 2137 | 2, |
| 2138 | f |
| 2139 | ); |
| 2140 | } |
| 2141 | f = message.getOptions(); |
| 2142 | if (f != null) { |
| 2143 | writer.writeMessage( |
| 2144 | 3, |
| 2145 | f, |
| 2146 | proto.google.protobuf.ExtensionRangeOptions.serializeBinaryToWriter |
| 2147 | ); |
| 2148 | } |
| 2149 | }; |
| 2150 | |
| 2151 | |
| 2152 | /** |
| 2153 | * optional int32 start = 1; |
| 2154 | * @return {number} |
| 2155 | */ |
| 2156 | proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.getStart = function() { |
| 2157 | return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); |
| 2158 | }; |
| 2159 | |
| 2160 | |
| 2161 | /** |
| 2162 | * @param {number} value |
| 2163 | * @return {!proto.google.protobuf.DescriptorProto.ExtensionRange} returns this |
| 2164 | */ |
| 2165 | proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.setStart = function(value) { |
| 2166 | return jspb.Message.setField(this, 1, value); |
| 2167 | }; |
| 2168 | |
| 2169 | |
| 2170 | /** |
| 2171 | * Clears the field making it undefined. |
| 2172 | * @return {!proto.google.protobuf.DescriptorProto.ExtensionRange} returns this |
| 2173 | */ |
| 2174 | proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.clearStart = function() { |
| 2175 | return jspb.Message.setField(this, 1, undefined); |
| 2176 | }; |
| 2177 | |
| 2178 | |
| 2179 | /** |
| 2180 | * Returns whether this field is set. |
| 2181 | * @return {boolean} |
| 2182 | */ |
| 2183 | proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.hasStart = function() { |
| 2184 | return jspb.Message.getField(this, 1) != null; |
| 2185 | }; |
| 2186 | |
| 2187 | |
| 2188 | /** |
| 2189 | * optional int32 end = 2; |
| 2190 | * @return {number} |
| 2191 | */ |
| 2192 | proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.getEnd = function() { |
| 2193 | return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); |
| 2194 | }; |
| 2195 | |
| 2196 | |
| 2197 | /** |
| 2198 | * @param {number} value |
| 2199 | * @return {!proto.google.protobuf.DescriptorProto.ExtensionRange} returns this |
| 2200 | */ |
| 2201 | proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.setEnd = function(value) { |
| 2202 | return jspb.Message.setField(this, 2, value); |
| 2203 | }; |
| 2204 | |
| 2205 | |
| 2206 | /** |
| 2207 | * Clears the field making it undefined. |
| 2208 | * @return {!proto.google.protobuf.DescriptorProto.ExtensionRange} returns this |
| 2209 | */ |
| 2210 | proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.clearEnd = function() { |
| 2211 | return jspb.Message.setField(this, 2, undefined); |
| 2212 | }; |
| 2213 | |
| 2214 | |
| 2215 | /** |
| 2216 | * Returns whether this field is set. |
| 2217 | * @return {boolean} |
| 2218 | */ |
| 2219 | proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.hasEnd = function() { |
| 2220 | return jspb.Message.getField(this, 2) != null; |
| 2221 | }; |
| 2222 | |
| 2223 | |
| 2224 | /** |
| 2225 | * optional ExtensionRangeOptions options = 3; |
| 2226 | * @return {?proto.google.protobuf.ExtensionRangeOptions} |
| 2227 | */ |
| 2228 | proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.getOptions = function() { |
| 2229 | return /** @type{?proto.google.protobuf.ExtensionRangeOptions} */ ( |
| 2230 | jspb.Message.getWrapperField(this, proto.google.protobuf.ExtensionRangeOptions, 3)); |
| 2231 | }; |
| 2232 | |
| 2233 | |
| 2234 | /** |
| 2235 | * @param {?proto.google.protobuf.ExtensionRangeOptions|undefined} value |
| 2236 | * @return {!proto.google.protobuf.DescriptorProto.ExtensionRange} returns this |
| 2237 | */ |
| 2238 | proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.setOptions = function(value) { |
| 2239 | return jspb.Message.setWrapperField(this, 3, value); |
| 2240 | }; |
| 2241 | |
| 2242 | |
| 2243 | /** |
| 2244 | * Clears the message field making it undefined. |
| 2245 | * @return {!proto.google.protobuf.DescriptorProto.ExtensionRange} returns this |
| 2246 | */ |
| 2247 | proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.clearOptions = function() { |
| 2248 | return this.setOptions(undefined); |
| 2249 | }; |
| 2250 | |
| 2251 | |
| 2252 | /** |
| 2253 | * Returns whether this field is set. |
| 2254 | * @return {boolean} |
| 2255 | */ |
| 2256 | proto.google.protobuf.DescriptorProto.ExtensionRange.prototype.hasOptions = function() { |
| 2257 | return jspb.Message.getField(this, 3) != null; |
| 2258 | }; |
| 2259 | |
| 2260 | |
| 2261 | |
| 2262 | |
| 2263 | |
| 2264 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 2265 | /** |
| 2266 | * Creates an object representation of this proto. |
| 2267 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 2268 | * Optional fields that are not set will be set to undefined. |
| 2269 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 2270 | * For the list of reserved names please see: |
| 2271 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 2272 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 2273 | * JSPB instance for transitional soy proto support: |
| 2274 | * http://goto/soy-param-migration |
| 2275 | * @return {!Object} |
| 2276 | */ |
| 2277 | proto.google.protobuf.DescriptorProto.ReservedRange.prototype.toObject = function(opt_includeInstance) { |
| 2278 | return proto.google.protobuf.DescriptorProto.ReservedRange.toObject(opt_includeInstance, this); |
| 2279 | }; |
| 2280 | |
| 2281 | |
| 2282 | /** |
| 2283 | * Static version of the {@see toObject} method. |
| 2284 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 2285 | * the JSPB instance for transitional soy proto support: |
| 2286 | * http://goto/soy-param-migration |
| 2287 | * @param {!proto.google.protobuf.DescriptorProto.ReservedRange} msg The msg instance to transform. |
| 2288 | * @return {!Object} |
| 2289 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 2290 | */ |
| 2291 | proto.google.protobuf.DescriptorProto.ReservedRange.toObject = function(includeInstance, msg) { |
| 2292 | var f, obj = { |
| 2293 | start: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f, |
| 2294 | end: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f |
| 2295 | }; |
| 2296 | |
| 2297 | if (includeInstance) { |
| 2298 | obj.$jspbMessageInstance = msg; |
| 2299 | } |
| 2300 | return obj; |
| 2301 | }; |
| 2302 | } |
| 2303 | |
| 2304 | |
| 2305 | /** |
| 2306 | * Deserializes binary data (in protobuf wire format). |
| 2307 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 2308 | * @return {!proto.google.protobuf.DescriptorProto.ReservedRange} |
| 2309 | */ |
| 2310 | proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinary = function(bytes) { |
| 2311 | var reader = new jspb.BinaryReader(bytes); |
| 2312 | var msg = new proto.google.protobuf.DescriptorProto.ReservedRange; |
| 2313 | return proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinaryFromReader(msg, reader); |
| 2314 | }; |
| 2315 | |
| 2316 | |
| 2317 | /** |
| 2318 | * Deserializes binary data (in protobuf wire format) from the |
| 2319 | * given reader into the given message object. |
| 2320 | * @param {!proto.google.protobuf.DescriptorProto.ReservedRange} msg The message object to deserialize into. |
| 2321 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 2322 | * @return {!proto.google.protobuf.DescriptorProto.ReservedRange} |
| 2323 | */ |
| 2324 | proto.google.protobuf.DescriptorProto.ReservedRange.deserializeBinaryFromReader = function(msg, reader) { |
| 2325 | while (reader.nextField()) { |
| 2326 | if (reader.isEndGroup()) { |
| 2327 | break; |
| 2328 | } |
| 2329 | var field = reader.getFieldNumber(); |
| 2330 | switch (field) { |
| 2331 | case 1: |
| 2332 | var value = /** @type {number} */ (reader.readInt32()); |
| 2333 | msg.setStart(value); |
| 2334 | break; |
| 2335 | case 2: |
| 2336 | var value = /** @type {number} */ (reader.readInt32()); |
| 2337 | msg.setEnd(value); |
| 2338 | break; |
| 2339 | default: |
| 2340 | reader.skipField(); |
| 2341 | break; |
| 2342 | } |
| 2343 | } |
| 2344 | return msg; |
| 2345 | }; |
| 2346 | |
| 2347 | |
| 2348 | /** |
| 2349 | * Serializes the message to binary data (in protobuf wire format). |
| 2350 | * @return {!Uint8Array} |
| 2351 | */ |
| 2352 | proto.google.protobuf.DescriptorProto.ReservedRange.prototype.serializeBinary = function() { |
| 2353 | var writer = new jspb.BinaryWriter(); |
| 2354 | proto.google.protobuf.DescriptorProto.ReservedRange.serializeBinaryToWriter(this, writer); |
| 2355 | return writer.getResultBuffer(); |
| 2356 | }; |
| 2357 | |
| 2358 | |
| 2359 | /** |
| 2360 | * Serializes the given message to binary data (in protobuf wire |
| 2361 | * format), writing to the given BinaryWriter. |
| 2362 | * @param {!proto.google.protobuf.DescriptorProto.ReservedRange} message |
| 2363 | * @param {!jspb.BinaryWriter} writer |
| 2364 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 2365 | */ |
| 2366 | proto.google.protobuf.DescriptorProto.ReservedRange.serializeBinaryToWriter = function(message, writer) { |
| 2367 | var f = undefined; |
| 2368 | f = /** @type {number} */ (jspb.Message.getField(message, 1)); |
| 2369 | if (f != null) { |
| 2370 | writer.writeInt32( |
| 2371 | 1, |
| 2372 | f |
| 2373 | ); |
| 2374 | } |
| 2375 | f = /** @type {number} */ (jspb.Message.getField(message, 2)); |
| 2376 | if (f != null) { |
| 2377 | writer.writeInt32( |
| 2378 | 2, |
| 2379 | f |
| 2380 | ); |
| 2381 | } |
| 2382 | }; |
| 2383 | |
| 2384 | |
| 2385 | /** |
| 2386 | * optional int32 start = 1; |
| 2387 | * @return {number} |
| 2388 | */ |
| 2389 | proto.google.protobuf.DescriptorProto.ReservedRange.prototype.getStart = function() { |
| 2390 | return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); |
| 2391 | }; |
| 2392 | |
| 2393 | |
| 2394 | /** |
| 2395 | * @param {number} value |
| 2396 | * @return {!proto.google.protobuf.DescriptorProto.ReservedRange} returns this |
| 2397 | */ |
| 2398 | proto.google.protobuf.DescriptorProto.ReservedRange.prototype.setStart = function(value) { |
| 2399 | return jspb.Message.setField(this, 1, value); |
| 2400 | }; |
| 2401 | |
| 2402 | |
| 2403 | /** |
| 2404 | * Clears the field making it undefined. |
| 2405 | * @return {!proto.google.protobuf.DescriptorProto.ReservedRange} returns this |
| 2406 | */ |
| 2407 | proto.google.protobuf.DescriptorProto.ReservedRange.prototype.clearStart = function() { |
| 2408 | return jspb.Message.setField(this, 1, undefined); |
| 2409 | }; |
| 2410 | |
| 2411 | |
| 2412 | /** |
| 2413 | * Returns whether this field is set. |
| 2414 | * @return {boolean} |
| 2415 | */ |
| 2416 | proto.google.protobuf.DescriptorProto.ReservedRange.prototype.hasStart = function() { |
| 2417 | return jspb.Message.getField(this, 1) != null; |
| 2418 | }; |
| 2419 | |
| 2420 | |
| 2421 | /** |
| 2422 | * optional int32 end = 2; |
| 2423 | * @return {number} |
| 2424 | */ |
| 2425 | proto.google.protobuf.DescriptorProto.ReservedRange.prototype.getEnd = function() { |
| 2426 | return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); |
| 2427 | }; |
| 2428 | |
| 2429 | |
| 2430 | /** |
| 2431 | * @param {number} value |
| 2432 | * @return {!proto.google.protobuf.DescriptorProto.ReservedRange} returns this |
| 2433 | */ |
| 2434 | proto.google.protobuf.DescriptorProto.ReservedRange.prototype.setEnd = function(value) { |
| 2435 | return jspb.Message.setField(this, 2, value); |
| 2436 | }; |
| 2437 | |
| 2438 | |
| 2439 | /** |
| 2440 | * Clears the field making it undefined. |
| 2441 | * @return {!proto.google.protobuf.DescriptorProto.ReservedRange} returns this |
| 2442 | */ |
| 2443 | proto.google.protobuf.DescriptorProto.ReservedRange.prototype.clearEnd = function() { |
| 2444 | return jspb.Message.setField(this, 2, undefined); |
| 2445 | }; |
| 2446 | |
| 2447 | |
| 2448 | /** |
| 2449 | * Returns whether this field is set. |
| 2450 | * @return {boolean} |
| 2451 | */ |
| 2452 | proto.google.protobuf.DescriptorProto.ReservedRange.prototype.hasEnd = function() { |
| 2453 | return jspb.Message.getField(this, 2) != null; |
| 2454 | }; |
| 2455 | |
| 2456 | |
| 2457 | /** |
| 2458 | * optional string name = 1; |
| 2459 | * @return {string} |
| 2460 | */ |
| 2461 | proto.google.protobuf.DescriptorProto.prototype.getName = function() { |
| 2462 | return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); |
| 2463 | }; |
| 2464 | |
| 2465 | |
| 2466 | /** |
| 2467 | * @param {string} value |
| 2468 | * @return {!proto.google.protobuf.DescriptorProto} returns this |
| 2469 | */ |
| 2470 | proto.google.protobuf.DescriptorProto.prototype.setName = function(value) { |
| 2471 | return jspb.Message.setField(this, 1, value); |
| 2472 | }; |
| 2473 | |
| 2474 | |
| 2475 | /** |
| 2476 | * Clears the field making it undefined. |
| 2477 | * @return {!proto.google.protobuf.DescriptorProto} returns this |
| 2478 | */ |
| 2479 | proto.google.protobuf.DescriptorProto.prototype.clearName = function() { |
| 2480 | return jspb.Message.setField(this, 1, undefined); |
| 2481 | }; |
| 2482 | |
| 2483 | |
| 2484 | /** |
| 2485 | * Returns whether this field is set. |
| 2486 | * @return {boolean} |
| 2487 | */ |
| 2488 | proto.google.protobuf.DescriptorProto.prototype.hasName = function() { |
| 2489 | return jspb.Message.getField(this, 1) != null; |
| 2490 | }; |
| 2491 | |
| 2492 | |
| 2493 | /** |
| 2494 | * repeated FieldDescriptorProto field = 2; |
| 2495 | * @return {!Array<!proto.google.protobuf.FieldDescriptorProto>} |
| 2496 | */ |
| 2497 | proto.google.protobuf.DescriptorProto.prototype.getFieldList = function() { |
| 2498 | return /** @type{!Array<!proto.google.protobuf.FieldDescriptorProto>} */ ( |
| 2499 | jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.FieldDescriptorProto, 2)); |
| 2500 | }; |
| 2501 | |
| 2502 | |
| 2503 | /** |
| 2504 | * @param {!Array<!proto.google.protobuf.FieldDescriptorProto>} value |
| 2505 | * @return {!proto.google.protobuf.DescriptorProto} returns this |
| 2506 | */ |
| 2507 | proto.google.protobuf.DescriptorProto.prototype.setFieldList = function(value) { |
| 2508 | return jspb.Message.setRepeatedWrapperField(this, 2, value); |
| 2509 | }; |
| 2510 | |
| 2511 | |
| 2512 | /** |
| 2513 | * @param {!proto.google.protobuf.FieldDescriptorProto=} opt_value |
| 2514 | * @param {number=} opt_index |
| 2515 | * @return {!proto.google.protobuf.FieldDescriptorProto} |
| 2516 | */ |
| 2517 | proto.google.protobuf.DescriptorProto.prototype.addField = function(opt_value, opt_index) { |
| 2518 | return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.protobuf.FieldDescriptorProto, opt_index); |
| 2519 | }; |
| 2520 | |
| 2521 | |
| 2522 | /** |
| 2523 | * Clears the list making it empty but non-null. |
| 2524 | * @return {!proto.google.protobuf.DescriptorProto} returns this |
| 2525 | */ |
| 2526 | proto.google.protobuf.DescriptorProto.prototype.clearFieldList = function() { |
| 2527 | return this.setFieldList([]); |
| 2528 | }; |
| 2529 | |
| 2530 | |
| 2531 | /** |
| 2532 | * repeated FieldDescriptorProto extension = 6; |
| 2533 | * @return {!Array<!proto.google.protobuf.FieldDescriptorProto>} |
| 2534 | */ |
| 2535 | proto.google.protobuf.DescriptorProto.prototype.getExtensionList = function() { |
| 2536 | return /** @type{!Array<!proto.google.protobuf.FieldDescriptorProto>} */ ( |
| 2537 | jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.FieldDescriptorProto, 6)); |
| 2538 | }; |
| 2539 | |
| 2540 | |
| 2541 | /** |
| 2542 | * @param {!Array<!proto.google.protobuf.FieldDescriptorProto>} value |
| 2543 | * @return {!proto.google.protobuf.DescriptorProto} returns this |
| 2544 | */ |
| 2545 | proto.google.protobuf.DescriptorProto.prototype.setExtensionList = function(value) { |
| 2546 | return jspb.Message.setRepeatedWrapperField(this, 6, value); |
| 2547 | }; |
| 2548 | |
| 2549 | |
| 2550 | /** |
| 2551 | * @param {!proto.google.protobuf.FieldDescriptorProto=} opt_value |
| 2552 | * @param {number=} opt_index |
| 2553 | * @return {!proto.google.protobuf.FieldDescriptorProto} |
| 2554 | */ |
| 2555 | proto.google.protobuf.DescriptorProto.prototype.addExtension$ = function(opt_value, opt_index) { |
| 2556 | return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.google.protobuf.FieldDescriptorProto, opt_index); |
| 2557 | }; |
| 2558 | |
| 2559 | |
| 2560 | /** |
| 2561 | * Clears the list making it empty but non-null. |
| 2562 | * @return {!proto.google.protobuf.DescriptorProto} returns this |
| 2563 | */ |
| 2564 | proto.google.protobuf.DescriptorProto.prototype.clearExtensionList = function() { |
| 2565 | return this.setExtensionList([]); |
| 2566 | }; |
| 2567 | |
| 2568 | |
| 2569 | /** |
| 2570 | * repeated DescriptorProto nested_type = 3; |
| 2571 | * @return {!Array<!proto.google.protobuf.DescriptorProto>} |
| 2572 | */ |
| 2573 | proto.google.protobuf.DescriptorProto.prototype.getNestedTypeList = function() { |
| 2574 | return /** @type{!Array<!proto.google.protobuf.DescriptorProto>} */ ( |
| 2575 | jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.DescriptorProto, 3)); |
| 2576 | }; |
| 2577 | |
| 2578 | |
| 2579 | /** |
| 2580 | * @param {!Array<!proto.google.protobuf.DescriptorProto>} value |
| 2581 | * @return {!proto.google.protobuf.DescriptorProto} returns this |
| 2582 | */ |
| 2583 | proto.google.protobuf.DescriptorProto.prototype.setNestedTypeList = function(value) { |
| 2584 | return jspb.Message.setRepeatedWrapperField(this, 3, value); |
| 2585 | }; |
| 2586 | |
| 2587 | |
| 2588 | /** |
| 2589 | * @param {!proto.google.protobuf.DescriptorProto=} opt_value |
| 2590 | * @param {number=} opt_index |
| 2591 | * @return {!proto.google.protobuf.DescriptorProto} |
| 2592 | */ |
| 2593 | proto.google.protobuf.DescriptorProto.prototype.addNestedType = function(opt_value, opt_index) { |
| 2594 | return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.protobuf.DescriptorProto, opt_index); |
| 2595 | }; |
| 2596 | |
| 2597 | |
| 2598 | /** |
| 2599 | * Clears the list making it empty but non-null. |
| 2600 | * @return {!proto.google.protobuf.DescriptorProto} returns this |
| 2601 | */ |
| 2602 | proto.google.protobuf.DescriptorProto.prototype.clearNestedTypeList = function() { |
| 2603 | return this.setNestedTypeList([]); |
| 2604 | }; |
| 2605 | |
| 2606 | |
| 2607 | /** |
| 2608 | * repeated EnumDescriptorProto enum_type = 4; |
| 2609 | * @return {!Array<!proto.google.protobuf.EnumDescriptorProto>} |
| 2610 | */ |
| 2611 | proto.google.protobuf.DescriptorProto.prototype.getEnumTypeList = function() { |
| 2612 | return /** @type{!Array<!proto.google.protobuf.EnumDescriptorProto>} */ ( |
| 2613 | jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.EnumDescriptorProto, 4)); |
| 2614 | }; |
| 2615 | |
| 2616 | |
| 2617 | /** |
| 2618 | * @param {!Array<!proto.google.protobuf.EnumDescriptorProto>} value |
| 2619 | * @return {!proto.google.protobuf.DescriptorProto} returns this |
| 2620 | */ |
| 2621 | proto.google.protobuf.DescriptorProto.prototype.setEnumTypeList = function(value) { |
| 2622 | return jspb.Message.setRepeatedWrapperField(this, 4, value); |
| 2623 | }; |
| 2624 | |
| 2625 | |
| 2626 | /** |
| 2627 | * @param {!proto.google.protobuf.EnumDescriptorProto=} opt_value |
| 2628 | * @param {number=} opt_index |
| 2629 | * @return {!proto.google.protobuf.EnumDescriptorProto} |
| 2630 | */ |
| 2631 | proto.google.protobuf.DescriptorProto.prototype.addEnumType = function(opt_value, opt_index) { |
| 2632 | return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.google.protobuf.EnumDescriptorProto, opt_index); |
| 2633 | }; |
| 2634 | |
| 2635 | |
| 2636 | /** |
| 2637 | * Clears the list making it empty but non-null. |
| 2638 | * @return {!proto.google.protobuf.DescriptorProto} returns this |
| 2639 | */ |
| 2640 | proto.google.protobuf.DescriptorProto.prototype.clearEnumTypeList = function() { |
| 2641 | return this.setEnumTypeList([]); |
| 2642 | }; |
| 2643 | |
| 2644 | |
| 2645 | /** |
| 2646 | * repeated ExtensionRange extension_range = 5; |
| 2647 | * @return {!Array<!proto.google.protobuf.DescriptorProto.ExtensionRange>} |
| 2648 | */ |
| 2649 | proto.google.protobuf.DescriptorProto.prototype.getExtensionRangeList = function() { |
| 2650 | return /** @type{!Array<!proto.google.protobuf.DescriptorProto.ExtensionRange>} */ ( |
| 2651 | jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.DescriptorProto.ExtensionRange, 5)); |
| 2652 | }; |
| 2653 | |
| 2654 | |
| 2655 | /** |
| 2656 | * @param {!Array<!proto.google.protobuf.DescriptorProto.ExtensionRange>} value |
| 2657 | * @return {!proto.google.protobuf.DescriptorProto} returns this |
| 2658 | */ |
| 2659 | proto.google.protobuf.DescriptorProto.prototype.setExtensionRangeList = function(value) { |
| 2660 | return jspb.Message.setRepeatedWrapperField(this, 5, value); |
| 2661 | }; |
| 2662 | |
| 2663 | |
| 2664 | /** |
| 2665 | * @param {!proto.google.protobuf.DescriptorProto.ExtensionRange=} opt_value |
| 2666 | * @param {number=} opt_index |
| 2667 | * @return {!proto.google.protobuf.DescriptorProto.ExtensionRange} |
| 2668 | */ |
| 2669 | proto.google.protobuf.DescriptorProto.prototype.addExtensionRange = function(opt_value, opt_index) { |
| 2670 | return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.google.protobuf.DescriptorProto.ExtensionRange, opt_index); |
| 2671 | }; |
| 2672 | |
| 2673 | |
| 2674 | /** |
| 2675 | * Clears the list making it empty but non-null. |
| 2676 | * @return {!proto.google.protobuf.DescriptorProto} returns this |
| 2677 | */ |
| 2678 | proto.google.protobuf.DescriptorProto.prototype.clearExtensionRangeList = function() { |
| 2679 | return this.setExtensionRangeList([]); |
| 2680 | }; |
| 2681 | |
| 2682 | |
| 2683 | /** |
| 2684 | * repeated OneofDescriptorProto oneof_decl = 8; |
| 2685 | * @return {!Array<!proto.google.protobuf.OneofDescriptorProto>} |
| 2686 | */ |
| 2687 | proto.google.protobuf.DescriptorProto.prototype.getOneofDeclList = function() { |
| 2688 | return /** @type{!Array<!proto.google.protobuf.OneofDescriptorProto>} */ ( |
| 2689 | jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.OneofDescriptorProto, 8)); |
| 2690 | }; |
| 2691 | |
| 2692 | |
| 2693 | /** |
| 2694 | * @param {!Array<!proto.google.protobuf.OneofDescriptorProto>} value |
| 2695 | * @return {!proto.google.protobuf.DescriptorProto} returns this |
| 2696 | */ |
| 2697 | proto.google.protobuf.DescriptorProto.prototype.setOneofDeclList = function(value) { |
| 2698 | return jspb.Message.setRepeatedWrapperField(this, 8, value); |
| 2699 | }; |
| 2700 | |
| 2701 | |
| 2702 | /** |
| 2703 | * @param {!proto.google.protobuf.OneofDescriptorProto=} opt_value |
| 2704 | * @param {number=} opt_index |
| 2705 | * @return {!proto.google.protobuf.OneofDescriptorProto} |
| 2706 | */ |
| 2707 | proto.google.protobuf.DescriptorProto.prototype.addOneofDecl = function(opt_value, opt_index) { |
| 2708 | return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.google.protobuf.OneofDescriptorProto, opt_index); |
| 2709 | }; |
| 2710 | |
| 2711 | |
| 2712 | /** |
| 2713 | * Clears the list making it empty but non-null. |
| 2714 | * @return {!proto.google.protobuf.DescriptorProto} returns this |
| 2715 | */ |
| 2716 | proto.google.protobuf.DescriptorProto.prototype.clearOneofDeclList = function() { |
| 2717 | return this.setOneofDeclList([]); |
| 2718 | }; |
| 2719 | |
| 2720 | |
| 2721 | /** |
| 2722 | * optional MessageOptions options = 7; |
| 2723 | * @return {?proto.google.protobuf.MessageOptions} |
| 2724 | */ |
| 2725 | proto.google.protobuf.DescriptorProto.prototype.getOptions = function() { |
| 2726 | return /** @type{?proto.google.protobuf.MessageOptions} */ ( |
| 2727 | jspb.Message.getWrapperField(this, proto.google.protobuf.MessageOptions, 7)); |
| 2728 | }; |
| 2729 | |
| 2730 | |
| 2731 | /** |
| 2732 | * @param {?proto.google.protobuf.MessageOptions|undefined} value |
| 2733 | * @return {!proto.google.protobuf.DescriptorProto} returns this |
| 2734 | */ |
| 2735 | proto.google.protobuf.DescriptorProto.prototype.setOptions = function(value) { |
| 2736 | return jspb.Message.setWrapperField(this, 7, value); |
| 2737 | }; |
| 2738 | |
| 2739 | |
| 2740 | /** |
| 2741 | * Clears the message field making it undefined. |
| 2742 | * @return {!proto.google.protobuf.DescriptorProto} returns this |
| 2743 | */ |
| 2744 | proto.google.protobuf.DescriptorProto.prototype.clearOptions = function() { |
| 2745 | return this.setOptions(undefined); |
| 2746 | }; |
| 2747 | |
| 2748 | |
| 2749 | /** |
| 2750 | * Returns whether this field is set. |
| 2751 | * @return {boolean} |
| 2752 | */ |
| 2753 | proto.google.protobuf.DescriptorProto.prototype.hasOptions = function() { |
| 2754 | return jspb.Message.getField(this, 7) != null; |
| 2755 | }; |
| 2756 | |
| 2757 | |
| 2758 | /** |
| 2759 | * repeated ReservedRange reserved_range = 9; |
| 2760 | * @return {!Array<!proto.google.protobuf.DescriptorProto.ReservedRange>} |
| 2761 | */ |
| 2762 | proto.google.protobuf.DescriptorProto.prototype.getReservedRangeList = function() { |
| 2763 | return /** @type{!Array<!proto.google.protobuf.DescriptorProto.ReservedRange>} */ ( |
| 2764 | jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.DescriptorProto.ReservedRange, 9)); |
| 2765 | }; |
| 2766 | |
| 2767 | |
| 2768 | /** |
| 2769 | * @param {!Array<!proto.google.protobuf.DescriptorProto.ReservedRange>} value |
| 2770 | * @return {!proto.google.protobuf.DescriptorProto} returns this |
| 2771 | */ |
| 2772 | proto.google.protobuf.DescriptorProto.prototype.setReservedRangeList = function(value) { |
| 2773 | return jspb.Message.setRepeatedWrapperField(this, 9, value); |
| 2774 | }; |
| 2775 | |
| 2776 | |
| 2777 | /** |
| 2778 | * @param {!proto.google.protobuf.DescriptorProto.ReservedRange=} opt_value |
| 2779 | * @param {number=} opt_index |
| 2780 | * @return {!proto.google.protobuf.DescriptorProto.ReservedRange} |
| 2781 | */ |
| 2782 | proto.google.protobuf.DescriptorProto.prototype.addReservedRange = function(opt_value, opt_index) { |
| 2783 | return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.google.protobuf.DescriptorProto.ReservedRange, opt_index); |
| 2784 | }; |
| 2785 | |
| 2786 | |
| 2787 | /** |
| 2788 | * Clears the list making it empty but non-null. |
| 2789 | * @return {!proto.google.protobuf.DescriptorProto} returns this |
| 2790 | */ |
| 2791 | proto.google.protobuf.DescriptorProto.prototype.clearReservedRangeList = function() { |
| 2792 | return this.setReservedRangeList([]); |
| 2793 | }; |
| 2794 | |
| 2795 | |
| 2796 | /** |
| 2797 | * repeated string reserved_name = 10; |
| 2798 | * @return {!Array<string>} |
| 2799 | */ |
| 2800 | proto.google.protobuf.DescriptorProto.prototype.getReservedNameList = function() { |
| 2801 | return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 10)); |
| 2802 | }; |
| 2803 | |
| 2804 | |
| 2805 | /** |
| 2806 | * @param {!Array<string>} value |
| 2807 | * @return {!proto.google.protobuf.DescriptorProto} returns this |
| 2808 | */ |
| 2809 | proto.google.protobuf.DescriptorProto.prototype.setReservedNameList = function(value) { |
| 2810 | return jspb.Message.setField(this, 10, value || []); |
| 2811 | }; |
| 2812 | |
| 2813 | |
| 2814 | /** |
| 2815 | * @param {string} value |
| 2816 | * @param {number=} opt_index |
| 2817 | * @return {!proto.google.protobuf.DescriptorProto} returns this |
| 2818 | */ |
| 2819 | proto.google.protobuf.DescriptorProto.prototype.addReservedName = function(value, opt_index) { |
| 2820 | return jspb.Message.addToRepeatedField(this, 10, value, opt_index); |
| 2821 | }; |
| 2822 | |
| 2823 | |
| 2824 | /** |
| 2825 | * Clears the list making it empty but non-null. |
| 2826 | * @return {!proto.google.protobuf.DescriptorProto} returns this |
| 2827 | */ |
| 2828 | proto.google.protobuf.DescriptorProto.prototype.clearReservedNameList = function() { |
| 2829 | return this.setReservedNameList([]); |
| 2830 | }; |
| 2831 | |
| 2832 | |
| 2833 | |
| 2834 | /** |
| 2835 | * List of repeated fields within this message type. |
| 2836 | * @private {!Array<number>} |
| 2837 | * @const |
| 2838 | */ |
| 2839 | proto.google.protobuf.ExtensionRangeOptions.repeatedFields_ = [999]; |
| 2840 | |
| 2841 | |
| 2842 | |
| 2843 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 2844 | /** |
| 2845 | * Creates an object representation of this proto. |
| 2846 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 2847 | * Optional fields that are not set will be set to undefined. |
| 2848 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 2849 | * For the list of reserved names please see: |
| 2850 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 2851 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 2852 | * JSPB instance for transitional soy proto support: |
| 2853 | * http://goto/soy-param-migration |
| 2854 | * @return {!Object} |
| 2855 | */ |
| 2856 | proto.google.protobuf.ExtensionRangeOptions.prototype.toObject = function(opt_includeInstance) { |
| 2857 | return proto.google.protobuf.ExtensionRangeOptions.toObject(opt_includeInstance, this); |
| 2858 | }; |
| 2859 | |
| 2860 | |
| 2861 | /** |
| 2862 | * Static version of the {@see toObject} method. |
| 2863 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 2864 | * the JSPB instance for transitional soy proto support: |
| 2865 | * http://goto/soy-param-migration |
| 2866 | * @param {!proto.google.protobuf.ExtensionRangeOptions} msg The msg instance to transform. |
| 2867 | * @return {!Object} |
| 2868 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 2869 | */ |
| 2870 | proto.google.protobuf.ExtensionRangeOptions.toObject = function(includeInstance, msg) { |
| 2871 | var f, obj = { |
| 2872 | uninterpretedOptionList: jspb.Message.toObjectList(msg.getUninterpretedOptionList(), |
| 2873 | proto.google.protobuf.UninterpretedOption.toObject, includeInstance) |
| 2874 | }; |
| 2875 | |
| 2876 | jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj, |
| 2877 | proto.google.protobuf.ExtensionRangeOptions.extensions, proto.google.protobuf.ExtensionRangeOptions.prototype.getExtension, |
| 2878 | includeInstance); |
| 2879 | if (includeInstance) { |
| 2880 | obj.$jspbMessageInstance = msg; |
| 2881 | } |
| 2882 | return obj; |
| 2883 | }; |
| 2884 | } |
| 2885 | |
| 2886 | |
| 2887 | /** |
| 2888 | * Deserializes binary data (in protobuf wire format). |
| 2889 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 2890 | * @return {!proto.google.protobuf.ExtensionRangeOptions} |
| 2891 | */ |
| 2892 | proto.google.protobuf.ExtensionRangeOptions.deserializeBinary = function(bytes) { |
| 2893 | var reader = new jspb.BinaryReader(bytes); |
| 2894 | var msg = new proto.google.protobuf.ExtensionRangeOptions; |
| 2895 | return proto.google.protobuf.ExtensionRangeOptions.deserializeBinaryFromReader(msg, reader); |
| 2896 | }; |
| 2897 | |
| 2898 | |
| 2899 | /** |
| 2900 | * Deserializes binary data (in protobuf wire format) from the |
| 2901 | * given reader into the given message object. |
| 2902 | * @param {!proto.google.protobuf.ExtensionRangeOptions} msg The message object to deserialize into. |
| 2903 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 2904 | * @return {!proto.google.protobuf.ExtensionRangeOptions} |
| 2905 | */ |
| 2906 | proto.google.protobuf.ExtensionRangeOptions.deserializeBinaryFromReader = function(msg, reader) { |
| 2907 | while (reader.nextField()) { |
| 2908 | if (reader.isEndGroup()) { |
| 2909 | break; |
| 2910 | } |
| 2911 | var field = reader.getFieldNumber(); |
| 2912 | switch (field) { |
| 2913 | case 999: |
| 2914 | var value = new proto.google.protobuf.UninterpretedOption; |
| 2915 | reader.readMessage(value,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader); |
| 2916 | msg.addUninterpretedOption(value); |
| 2917 | break; |
| 2918 | default: |
| 2919 | jspb.Message.readBinaryExtension(msg, reader, |
| 2920 | proto.google.protobuf.ExtensionRangeOptions.extensionsBinary, |
| 2921 | proto.google.protobuf.ExtensionRangeOptions.prototype.getExtension, |
| 2922 | proto.google.protobuf.ExtensionRangeOptions.prototype.setExtension); |
| 2923 | break; |
| 2924 | } |
| 2925 | } |
| 2926 | return msg; |
| 2927 | }; |
| 2928 | |
| 2929 | |
| 2930 | /** |
| 2931 | * Serializes the message to binary data (in protobuf wire format). |
| 2932 | * @return {!Uint8Array} |
| 2933 | */ |
| 2934 | proto.google.protobuf.ExtensionRangeOptions.prototype.serializeBinary = function() { |
| 2935 | var writer = new jspb.BinaryWriter(); |
| 2936 | proto.google.protobuf.ExtensionRangeOptions.serializeBinaryToWriter(this, writer); |
| 2937 | return writer.getResultBuffer(); |
| 2938 | }; |
| 2939 | |
| 2940 | |
| 2941 | /** |
| 2942 | * Serializes the given message to binary data (in protobuf wire |
| 2943 | * format), writing to the given BinaryWriter. |
| 2944 | * @param {!proto.google.protobuf.ExtensionRangeOptions} message |
| 2945 | * @param {!jspb.BinaryWriter} writer |
| 2946 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 2947 | */ |
| 2948 | proto.google.protobuf.ExtensionRangeOptions.serializeBinaryToWriter = function(message, writer) { |
| 2949 | var f = undefined; |
| 2950 | f = message.getUninterpretedOptionList(); |
| 2951 | if (f.length > 0) { |
| 2952 | writer.writeRepeatedMessage( |
| 2953 | 999, |
| 2954 | f, |
| 2955 | proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter |
| 2956 | ); |
| 2957 | } |
| 2958 | jspb.Message.serializeBinaryExtensions(message, writer, |
| 2959 | proto.google.protobuf.ExtensionRangeOptions.extensionsBinary, proto.google.protobuf.ExtensionRangeOptions.prototype.getExtension); |
| 2960 | }; |
| 2961 | |
| 2962 | |
| 2963 | /** |
| 2964 | * repeated UninterpretedOption uninterpreted_option = 999; |
| 2965 | * @return {!Array<!proto.google.protobuf.UninterpretedOption>} |
| 2966 | */ |
| 2967 | proto.google.protobuf.ExtensionRangeOptions.prototype.getUninterpretedOptionList = function() { |
| 2968 | return /** @type{!Array<!proto.google.protobuf.UninterpretedOption>} */ ( |
| 2969 | jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.UninterpretedOption, 999)); |
| 2970 | }; |
| 2971 | |
| 2972 | |
| 2973 | /** |
| 2974 | * @param {!Array<!proto.google.protobuf.UninterpretedOption>} value |
| 2975 | * @return {!proto.google.protobuf.ExtensionRangeOptions} returns this |
| 2976 | */ |
| 2977 | proto.google.protobuf.ExtensionRangeOptions.prototype.setUninterpretedOptionList = function(value) { |
| 2978 | return jspb.Message.setRepeatedWrapperField(this, 999, value); |
| 2979 | }; |
| 2980 | |
| 2981 | |
| 2982 | /** |
| 2983 | * @param {!proto.google.protobuf.UninterpretedOption=} opt_value |
| 2984 | * @param {number=} opt_index |
| 2985 | * @return {!proto.google.protobuf.UninterpretedOption} |
| 2986 | */ |
| 2987 | proto.google.protobuf.ExtensionRangeOptions.prototype.addUninterpretedOption = function(opt_value, opt_index) { |
| 2988 | return jspb.Message.addToRepeatedWrapperField(this, 999, opt_value, proto.google.protobuf.UninterpretedOption, opt_index); |
| 2989 | }; |
| 2990 | |
| 2991 | |
| 2992 | /** |
| 2993 | * Clears the list making it empty but non-null. |
| 2994 | * @return {!proto.google.protobuf.ExtensionRangeOptions} returns this |
| 2995 | */ |
| 2996 | proto.google.protobuf.ExtensionRangeOptions.prototype.clearUninterpretedOptionList = function() { |
| 2997 | return this.setUninterpretedOptionList([]); |
| 2998 | }; |
| 2999 | |
| 3000 | |
| 3001 | |
| 3002 | |
| 3003 | |
| 3004 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 3005 | /** |
| 3006 | * Creates an object representation of this proto. |
| 3007 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 3008 | * Optional fields that are not set will be set to undefined. |
| 3009 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 3010 | * For the list of reserved names please see: |
| 3011 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 3012 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 3013 | * JSPB instance for transitional soy proto support: |
| 3014 | * http://goto/soy-param-migration |
| 3015 | * @return {!Object} |
| 3016 | */ |
| 3017 | proto.google.protobuf.FieldDescriptorProto.prototype.toObject = function(opt_includeInstance) { |
| 3018 | return proto.google.protobuf.FieldDescriptorProto.toObject(opt_includeInstance, this); |
| 3019 | }; |
| 3020 | |
| 3021 | |
| 3022 | /** |
| 3023 | * Static version of the {@see toObject} method. |
| 3024 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 3025 | * the JSPB instance for transitional soy proto support: |
| 3026 | * http://goto/soy-param-migration |
| 3027 | * @param {!proto.google.protobuf.FieldDescriptorProto} msg The msg instance to transform. |
| 3028 | * @return {!Object} |
| 3029 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 3030 | */ |
| 3031 | proto.google.protobuf.FieldDescriptorProto.toObject = function(includeInstance, msg) { |
| 3032 | var f, obj = { |
| 3033 | name: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f, |
| 3034 | number: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f, |
| 3035 | label: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f, |
| 3036 | type: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f, |
| 3037 | typeName: (f = jspb.Message.getField(msg, 6)) == null ? undefined : f, |
| 3038 | extendee: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f, |
| 3039 | defaultValue: (f = jspb.Message.getField(msg, 7)) == null ? undefined : f, |
| 3040 | oneofIndex: (f = jspb.Message.getField(msg, 9)) == null ? undefined : f, |
| 3041 | jsonName: (f = jspb.Message.getField(msg, 10)) == null ? undefined : f, |
| 3042 | options: (f = msg.getOptions()) && proto.google.protobuf.FieldOptions.toObject(includeInstance, f), |
| 3043 | proto3Optional: (f = jspb.Message.getBooleanField(msg, 17)) == null ? undefined : f |
| 3044 | }; |
| 3045 | |
| 3046 | if (includeInstance) { |
| 3047 | obj.$jspbMessageInstance = msg; |
| 3048 | } |
| 3049 | return obj; |
| 3050 | }; |
| 3051 | } |
| 3052 | |
| 3053 | |
| 3054 | /** |
| 3055 | * Deserializes binary data (in protobuf wire format). |
| 3056 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 3057 | * @return {!proto.google.protobuf.FieldDescriptorProto} |
| 3058 | */ |
| 3059 | proto.google.protobuf.FieldDescriptorProto.deserializeBinary = function(bytes) { |
| 3060 | var reader = new jspb.BinaryReader(bytes); |
| 3061 | var msg = new proto.google.protobuf.FieldDescriptorProto; |
| 3062 | return proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader(msg, reader); |
| 3063 | }; |
| 3064 | |
| 3065 | |
| 3066 | /** |
| 3067 | * Deserializes binary data (in protobuf wire format) from the |
| 3068 | * given reader into the given message object. |
| 3069 | * @param {!proto.google.protobuf.FieldDescriptorProto} msg The message object to deserialize into. |
| 3070 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 3071 | * @return {!proto.google.protobuf.FieldDescriptorProto} |
| 3072 | */ |
| 3073 | proto.google.protobuf.FieldDescriptorProto.deserializeBinaryFromReader = function(msg, reader) { |
| 3074 | while (reader.nextField()) { |
| 3075 | if (reader.isEndGroup()) { |
| 3076 | break; |
| 3077 | } |
| 3078 | var field = reader.getFieldNumber(); |
| 3079 | switch (field) { |
| 3080 | case 1: |
| 3081 | var value = /** @type {string} */ (reader.readString()); |
| 3082 | msg.setName(value); |
| 3083 | break; |
| 3084 | case 3: |
| 3085 | var value = /** @type {number} */ (reader.readInt32()); |
| 3086 | msg.setNumber(value); |
| 3087 | break; |
| 3088 | case 4: |
| 3089 | var value = /** @type {!proto.google.protobuf.FieldDescriptorProto.Label} */ (reader.readEnum()); |
| 3090 | msg.setLabel(value); |
| 3091 | break; |
| 3092 | case 5: |
| 3093 | var value = /** @type {!proto.google.protobuf.FieldDescriptorProto.Type} */ (reader.readEnum()); |
| 3094 | msg.setType(value); |
| 3095 | break; |
| 3096 | case 6: |
| 3097 | var value = /** @type {string} */ (reader.readString()); |
| 3098 | msg.setTypeName(value); |
| 3099 | break; |
| 3100 | case 2: |
| 3101 | var value = /** @type {string} */ (reader.readString()); |
| 3102 | msg.setExtendee(value); |
| 3103 | break; |
| 3104 | case 7: |
| 3105 | var value = /** @type {string} */ (reader.readString()); |
| 3106 | msg.setDefaultValue(value); |
| 3107 | break; |
| 3108 | case 9: |
| 3109 | var value = /** @type {number} */ (reader.readInt32()); |
| 3110 | msg.setOneofIndex(value); |
| 3111 | break; |
| 3112 | case 10: |
| 3113 | var value = /** @type {string} */ (reader.readString()); |
| 3114 | msg.setJsonName(value); |
| 3115 | break; |
| 3116 | case 8: |
| 3117 | var value = new proto.google.protobuf.FieldOptions; |
| 3118 | reader.readMessage(value,proto.google.protobuf.FieldOptions.deserializeBinaryFromReader); |
| 3119 | msg.setOptions(value); |
| 3120 | break; |
| 3121 | case 17: |
| 3122 | var value = /** @type {boolean} */ (reader.readBool()); |
| 3123 | msg.setProto3Optional(value); |
| 3124 | break; |
| 3125 | default: |
| 3126 | reader.skipField(); |
| 3127 | break; |
| 3128 | } |
| 3129 | } |
| 3130 | return msg; |
| 3131 | }; |
| 3132 | |
| 3133 | |
| 3134 | /** |
| 3135 | * Serializes the message to binary data (in protobuf wire format). |
| 3136 | * @return {!Uint8Array} |
| 3137 | */ |
| 3138 | proto.google.protobuf.FieldDescriptorProto.prototype.serializeBinary = function() { |
| 3139 | var writer = new jspb.BinaryWriter(); |
| 3140 | proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter(this, writer); |
| 3141 | return writer.getResultBuffer(); |
| 3142 | }; |
| 3143 | |
| 3144 | |
| 3145 | /** |
| 3146 | * Serializes the given message to binary data (in protobuf wire |
| 3147 | * format), writing to the given BinaryWriter. |
| 3148 | * @param {!proto.google.protobuf.FieldDescriptorProto} message |
| 3149 | * @param {!jspb.BinaryWriter} writer |
| 3150 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 3151 | */ |
| 3152 | proto.google.protobuf.FieldDescriptorProto.serializeBinaryToWriter = function(message, writer) { |
| 3153 | var f = undefined; |
| 3154 | f = /** @type {string} */ (jspb.Message.getField(message, 1)); |
| 3155 | if (f != null) { |
| 3156 | writer.writeString( |
| 3157 | 1, |
| 3158 | f |
| 3159 | ); |
| 3160 | } |
| 3161 | f = /** @type {number} */ (jspb.Message.getField(message, 3)); |
| 3162 | if (f != null) { |
| 3163 | writer.writeInt32( |
| 3164 | 3, |
| 3165 | f |
| 3166 | ); |
| 3167 | } |
| 3168 | f = /** @type {!proto.google.protobuf.FieldDescriptorProto.Label} */ (jspb.Message.getField(message, 4)); |
| 3169 | if (f != null) { |
| 3170 | writer.writeEnum( |
| 3171 | 4, |
| 3172 | f |
| 3173 | ); |
| 3174 | } |
| 3175 | f = /** @type {!proto.google.protobuf.FieldDescriptorProto.Type} */ (jspb.Message.getField(message, 5)); |
| 3176 | if (f != null) { |
| 3177 | writer.writeEnum( |
| 3178 | 5, |
| 3179 | f |
| 3180 | ); |
| 3181 | } |
| 3182 | f = /** @type {string} */ (jspb.Message.getField(message, 6)); |
| 3183 | if (f != null) { |
| 3184 | writer.writeString( |
| 3185 | 6, |
| 3186 | f |
| 3187 | ); |
| 3188 | } |
| 3189 | f = /** @type {string} */ (jspb.Message.getField(message, 2)); |
| 3190 | if (f != null) { |
| 3191 | writer.writeString( |
| 3192 | 2, |
| 3193 | f |
| 3194 | ); |
| 3195 | } |
| 3196 | f = /** @type {string} */ (jspb.Message.getField(message, 7)); |
| 3197 | if (f != null) { |
| 3198 | writer.writeString( |
| 3199 | 7, |
| 3200 | f |
| 3201 | ); |
| 3202 | } |
| 3203 | f = /** @type {number} */ (jspb.Message.getField(message, 9)); |
| 3204 | if (f != null) { |
| 3205 | writer.writeInt32( |
| 3206 | 9, |
| 3207 | f |
| 3208 | ); |
| 3209 | } |
| 3210 | f = /** @type {string} */ (jspb.Message.getField(message, 10)); |
| 3211 | if (f != null) { |
| 3212 | writer.writeString( |
| 3213 | 10, |
| 3214 | f |
| 3215 | ); |
| 3216 | } |
| 3217 | f = message.getOptions(); |
| 3218 | if (f != null) { |
| 3219 | writer.writeMessage( |
| 3220 | 8, |
| 3221 | f, |
| 3222 | proto.google.protobuf.FieldOptions.serializeBinaryToWriter |
| 3223 | ); |
| 3224 | } |
| 3225 | f = /** @type {boolean} */ (jspb.Message.getField(message, 17)); |
| 3226 | if (f != null) { |
| 3227 | writer.writeBool( |
| 3228 | 17, |
| 3229 | f |
| 3230 | ); |
| 3231 | } |
| 3232 | }; |
| 3233 | |
| 3234 | |
| 3235 | /** |
| 3236 | * @enum {number} |
| 3237 | */ |
| 3238 | proto.google.protobuf.FieldDescriptorProto.Type = { |
| 3239 | TYPE_DOUBLE: 1, |
| 3240 | TYPE_FLOAT: 2, |
| 3241 | TYPE_INT64: 3, |
| 3242 | TYPE_UINT64: 4, |
| 3243 | TYPE_INT32: 5, |
| 3244 | TYPE_FIXED64: 6, |
| 3245 | TYPE_FIXED32: 7, |
| 3246 | TYPE_BOOL: 8, |
| 3247 | TYPE_STRING: 9, |
| 3248 | TYPE_GROUP: 10, |
| 3249 | TYPE_MESSAGE: 11, |
| 3250 | TYPE_BYTES: 12, |
| 3251 | TYPE_UINT32: 13, |
| 3252 | TYPE_ENUM: 14, |
| 3253 | TYPE_SFIXED32: 15, |
| 3254 | TYPE_SFIXED64: 16, |
| 3255 | TYPE_SINT32: 17, |
| 3256 | TYPE_SINT64: 18 |
| 3257 | }; |
| 3258 | |
| 3259 | /** |
| 3260 | * @enum {number} |
| 3261 | */ |
| 3262 | proto.google.protobuf.FieldDescriptorProto.Label = { |
| 3263 | LABEL_OPTIONAL: 1, |
| 3264 | LABEL_REQUIRED: 2, |
| 3265 | LABEL_REPEATED: 3 |
| 3266 | }; |
| 3267 | |
| 3268 | /** |
| 3269 | * optional string name = 1; |
| 3270 | * @return {string} |
| 3271 | */ |
| 3272 | proto.google.protobuf.FieldDescriptorProto.prototype.getName = function() { |
| 3273 | return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); |
| 3274 | }; |
| 3275 | |
| 3276 | |
| 3277 | /** |
| 3278 | * @param {string} value |
| 3279 | * @return {!proto.google.protobuf.FieldDescriptorProto} returns this |
| 3280 | */ |
| 3281 | proto.google.protobuf.FieldDescriptorProto.prototype.setName = function(value) { |
| 3282 | return jspb.Message.setField(this, 1, value); |
| 3283 | }; |
| 3284 | |
| 3285 | |
| 3286 | /** |
| 3287 | * Clears the field making it undefined. |
| 3288 | * @return {!proto.google.protobuf.FieldDescriptorProto} returns this |
| 3289 | */ |
| 3290 | proto.google.protobuf.FieldDescriptorProto.prototype.clearName = function() { |
| 3291 | return jspb.Message.setField(this, 1, undefined); |
| 3292 | }; |
| 3293 | |
| 3294 | |
| 3295 | /** |
| 3296 | * Returns whether this field is set. |
| 3297 | * @return {boolean} |
| 3298 | */ |
| 3299 | proto.google.protobuf.FieldDescriptorProto.prototype.hasName = function() { |
| 3300 | return jspb.Message.getField(this, 1) != null; |
| 3301 | }; |
| 3302 | |
| 3303 | |
| 3304 | /** |
| 3305 | * optional int32 number = 3; |
| 3306 | * @return {number} |
| 3307 | */ |
| 3308 | proto.google.protobuf.FieldDescriptorProto.prototype.getNumber = function() { |
| 3309 | return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); |
| 3310 | }; |
| 3311 | |
| 3312 | |
| 3313 | /** |
| 3314 | * @param {number} value |
| 3315 | * @return {!proto.google.protobuf.FieldDescriptorProto} returns this |
| 3316 | */ |
| 3317 | proto.google.protobuf.FieldDescriptorProto.prototype.setNumber = function(value) { |
| 3318 | return jspb.Message.setField(this, 3, value); |
| 3319 | }; |
| 3320 | |
| 3321 | |
| 3322 | /** |
| 3323 | * Clears the field making it undefined. |
| 3324 | * @return {!proto.google.protobuf.FieldDescriptorProto} returns this |
| 3325 | */ |
| 3326 | proto.google.protobuf.FieldDescriptorProto.prototype.clearNumber = function() { |
| 3327 | return jspb.Message.setField(this, 3, undefined); |
| 3328 | }; |
| 3329 | |
| 3330 | |
| 3331 | /** |
| 3332 | * Returns whether this field is set. |
| 3333 | * @return {boolean} |
| 3334 | */ |
| 3335 | proto.google.protobuf.FieldDescriptorProto.prototype.hasNumber = function() { |
| 3336 | return jspb.Message.getField(this, 3) != null; |
| 3337 | }; |
| 3338 | |
| 3339 | |
| 3340 | /** |
| 3341 | * optional Label label = 4; |
| 3342 | * @return {!proto.google.protobuf.FieldDescriptorProto.Label} |
| 3343 | */ |
| 3344 | proto.google.protobuf.FieldDescriptorProto.prototype.getLabel = function() { |
| 3345 | return /** @type {!proto.google.protobuf.FieldDescriptorProto.Label} */ (jspb.Message.getFieldWithDefault(this, 4, 1)); |
| 3346 | }; |
| 3347 | |
| 3348 | |
| 3349 | /** |
| 3350 | * @param {!proto.google.protobuf.FieldDescriptorProto.Label} value |
| 3351 | * @return {!proto.google.protobuf.FieldDescriptorProto} returns this |
| 3352 | */ |
| 3353 | proto.google.protobuf.FieldDescriptorProto.prototype.setLabel = function(value) { |
| 3354 | return jspb.Message.setField(this, 4, value); |
| 3355 | }; |
| 3356 | |
| 3357 | |
| 3358 | /** |
| 3359 | * Clears the field making it undefined. |
| 3360 | * @return {!proto.google.protobuf.FieldDescriptorProto} returns this |
| 3361 | */ |
| 3362 | proto.google.protobuf.FieldDescriptorProto.prototype.clearLabel = function() { |
| 3363 | return jspb.Message.setField(this, 4, undefined); |
| 3364 | }; |
| 3365 | |
| 3366 | |
| 3367 | /** |
| 3368 | * Returns whether this field is set. |
| 3369 | * @return {boolean} |
| 3370 | */ |
| 3371 | proto.google.protobuf.FieldDescriptorProto.prototype.hasLabel = function() { |
| 3372 | return jspb.Message.getField(this, 4) != null; |
| 3373 | }; |
| 3374 | |
| 3375 | |
| 3376 | /** |
| 3377 | * optional Type type = 5; |
| 3378 | * @return {!proto.google.protobuf.FieldDescriptorProto.Type} |
| 3379 | */ |
| 3380 | proto.google.protobuf.FieldDescriptorProto.prototype.getType = function() { |
| 3381 | return /** @type {!proto.google.protobuf.FieldDescriptorProto.Type} */ (jspb.Message.getFieldWithDefault(this, 5, 1)); |
| 3382 | }; |
| 3383 | |
| 3384 | |
| 3385 | /** |
| 3386 | * @param {!proto.google.protobuf.FieldDescriptorProto.Type} value |
| 3387 | * @return {!proto.google.protobuf.FieldDescriptorProto} returns this |
| 3388 | */ |
| 3389 | proto.google.protobuf.FieldDescriptorProto.prototype.setType = function(value) { |
| 3390 | return jspb.Message.setField(this, 5, value); |
| 3391 | }; |
| 3392 | |
| 3393 | |
| 3394 | /** |
| 3395 | * Clears the field making it undefined. |
| 3396 | * @return {!proto.google.protobuf.FieldDescriptorProto} returns this |
| 3397 | */ |
| 3398 | proto.google.protobuf.FieldDescriptorProto.prototype.clearType = function() { |
| 3399 | return jspb.Message.setField(this, 5, undefined); |
| 3400 | }; |
| 3401 | |
| 3402 | |
| 3403 | /** |
| 3404 | * Returns whether this field is set. |
| 3405 | * @return {boolean} |
| 3406 | */ |
| 3407 | proto.google.protobuf.FieldDescriptorProto.prototype.hasType = function() { |
| 3408 | return jspb.Message.getField(this, 5) != null; |
| 3409 | }; |
| 3410 | |
| 3411 | |
| 3412 | /** |
| 3413 | * optional string type_name = 6; |
| 3414 | * @return {string} |
| 3415 | */ |
| 3416 | proto.google.protobuf.FieldDescriptorProto.prototype.getTypeName = function() { |
| 3417 | return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); |
| 3418 | }; |
| 3419 | |
| 3420 | |
| 3421 | /** |
| 3422 | * @param {string} value |
| 3423 | * @return {!proto.google.protobuf.FieldDescriptorProto} returns this |
| 3424 | */ |
| 3425 | proto.google.protobuf.FieldDescriptorProto.prototype.setTypeName = function(value) { |
| 3426 | return jspb.Message.setField(this, 6, value); |
| 3427 | }; |
| 3428 | |
| 3429 | |
| 3430 | /** |
| 3431 | * Clears the field making it undefined. |
| 3432 | * @return {!proto.google.protobuf.FieldDescriptorProto} returns this |
| 3433 | */ |
| 3434 | proto.google.protobuf.FieldDescriptorProto.prototype.clearTypeName = function() { |
| 3435 | return jspb.Message.setField(this, 6, undefined); |
| 3436 | }; |
| 3437 | |
| 3438 | |
| 3439 | /** |
| 3440 | * Returns whether this field is set. |
| 3441 | * @return {boolean} |
| 3442 | */ |
| 3443 | proto.google.protobuf.FieldDescriptorProto.prototype.hasTypeName = function() { |
| 3444 | return jspb.Message.getField(this, 6) != null; |
| 3445 | }; |
| 3446 | |
| 3447 | |
| 3448 | /** |
| 3449 | * optional string extendee = 2; |
| 3450 | * @return {string} |
| 3451 | */ |
| 3452 | proto.google.protobuf.FieldDescriptorProto.prototype.getExtendee = function() { |
| 3453 | return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); |
| 3454 | }; |
| 3455 | |
| 3456 | |
| 3457 | /** |
| 3458 | * @param {string} value |
| 3459 | * @return {!proto.google.protobuf.FieldDescriptorProto} returns this |
| 3460 | */ |
| 3461 | proto.google.protobuf.FieldDescriptorProto.prototype.setExtendee = function(value) { |
| 3462 | return jspb.Message.setField(this, 2, value); |
| 3463 | }; |
| 3464 | |
| 3465 | |
| 3466 | /** |
| 3467 | * Clears the field making it undefined. |
| 3468 | * @return {!proto.google.protobuf.FieldDescriptorProto} returns this |
| 3469 | */ |
| 3470 | proto.google.protobuf.FieldDescriptorProto.prototype.clearExtendee = function() { |
| 3471 | return jspb.Message.setField(this, 2, undefined); |
| 3472 | }; |
| 3473 | |
| 3474 | |
| 3475 | /** |
| 3476 | * Returns whether this field is set. |
| 3477 | * @return {boolean} |
| 3478 | */ |
| 3479 | proto.google.protobuf.FieldDescriptorProto.prototype.hasExtendee = function() { |
| 3480 | return jspb.Message.getField(this, 2) != null; |
| 3481 | }; |
| 3482 | |
| 3483 | |
| 3484 | /** |
| 3485 | * optional string default_value = 7; |
| 3486 | * @return {string} |
| 3487 | */ |
| 3488 | proto.google.protobuf.FieldDescriptorProto.prototype.getDefaultValue = function() { |
| 3489 | return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); |
| 3490 | }; |
| 3491 | |
| 3492 | |
| 3493 | /** |
| 3494 | * @param {string} value |
| 3495 | * @return {!proto.google.protobuf.FieldDescriptorProto} returns this |
| 3496 | */ |
| 3497 | proto.google.protobuf.FieldDescriptorProto.prototype.setDefaultValue = function(value) { |
| 3498 | return jspb.Message.setField(this, 7, value); |
| 3499 | }; |
| 3500 | |
| 3501 | |
| 3502 | /** |
| 3503 | * Clears the field making it undefined. |
| 3504 | * @return {!proto.google.protobuf.FieldDescriptorProto} returns this |
| 3505 | */ |
| 3506 | proto.google.protobuf.FieldDescriptorProto.prototype.clearDefaultValue = function() { |
| 3507 | return jspb.Message.setField(this, 7, undefined); |
| 3508 | }; |
| 3509 | |
| 3510 | |
| 3511 | /** |
| 3512 | * Returns whether this field is set. |
| 3513 | * @return {boolean} |
| 3514 | */ |
| 3515 | proto.google.protobuf.FieldDescriptorProto.prototype.hasDefaultValue = function() { |
| 3516 | return jspb.Message.getField(this, 7) != null; |
| 3517 | }; |
| 3518 | |
| 3519 | |
| 3520 | /** |
| 3521 | * optional int32 oneof_index = 9; |
| 3522 | * @return {number} |
| 3523 | */ |
| 3524 | proto.google.protobuf.FieldDescriptorProto.prototype.getOneofIndex = function() { |
| 3525 | return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); |
| 3526 | }; |
| 3527 | |
| 3528 | |
| 3529 | /** |
| 3530 | * @param {number} value |
| 3531 | * @return {!proto.google.protobuf.FieldDescriptorProto} returns this |
| 3532 | */ |
| 3533 | proto.google.protobuf.FieldDescriptorProto.prototype.setOneofIndex = function(value) { |
| 3534 | return jspb.Message.setField(this, 9, value); |
| 3535 | }; |
| 3536 | |
| 3537 | |
| 3538 | /** |
| 3539 | * Clears the field making it undefined. |
| 3540 | * @return {!proto.google.protobuf.FieldDescriptorProto} returns this |
| 3541 | */ |
| 3542 | proto.google.protobuf.FieldDescriptorProto.prototype.clearOneofIndex = function() { |
| 3543 | return jspb.Message.setField(this, 9, undefined); |
| 3544 | }; |
| 3545 | |
| 3546 | |
| 3547 | /** |
| 3548 | * Returns whether this field is set. |
| 3549 | * @return {boolean} |
| 3550 | */ |
| 3551 | proto.google.protobuf.FieldDescriptorProto.prototype.hasOneofIndex = function() { |
| 3552 | return jspb.Message.getField(this, 9) != null; |
| 3553 | }; |
| 3554 | |
| 3555 | |
| 3556 | /** |
| 3557 | * optional string json_name = 10; |
| 3558 | * @return {string} |
| 3559 | */ |
| 3560 | proto.google.protobuf.FieldDescriptorProto.prototype.getJsonName = function() { |
| 3561 | return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); |
| 3562 | }; |
| 3563 | |
| 3564 | |
| 3565 | /** |
| 3566 | * @param {string} value |
| 3567 | * @return {!proto.google.protobuf.FieldDescriptorProto} returns this |
| 3568 | */ |
| 3569 | proto.google.protobuf.FieldDescriptorProto.prototype.setJsonName = function(value) { |
| 3570 | return jspb.Message.setField(this, 10, value); |
| 3571 | }; |
| 3572 | |
| 3573 | |
| 3574 | /** |
| 3575 | * Clears the field making it undefined. |
| 3576 | * @return {!proto.google.protobuf.FieldDescriptorProto} returns this |
| 3577 | */ |
| 3578 | proto.google.protobuf.FieldDescriptorProto.prototype.clearJsonName = function() { |
| 3579 | return jspb.Message.setField(this, 10, undefined); |
| 3580 | }; |
| 3581 | |
| 3582 | |
| 3583 | /** |
| 3584 | * Returns whether this field is set. |
| 3585 | * @return {boolean} |
| 3586 | */ |
| 3587 | proto.google.protobuf.FieldDescriptorProto.prototype.hasJsonName = function() { |
| 3588 | return jspb.Message.getField(this, 10) != null; |
| 3589 | }; |
| 3590 | |
| 3591 | |
| 3592 | /** |
| 3593 | * optional FieldOptions options = 8; |
| 3594 | * @return {?proto.google.protobuf.FieldOptions} |
| 3595 | */ |
| 3596 | proto.google.protobuf.FieldDescriptorProto.prototype.getOptions = function() { |
| 3597 | return /** @type{?proto.google.protobuf.FieldOptions} */ ( |
| 3598 | jspb.Message.getWrapperField(this, proto.google.protobuf.FieldOptions, 8)); |
| 3599 | }; |
| 3600 | |
| 3601 | |
| 3602 | /** |
| 3603 | * @param {?proto.google.protobuf.FieldOptions|undefined} value |
| 3604 | * @return {!proto.google.protobuf.FieldDescriptorProto} returns this |
| 3605 | */ |
| 3606 | proto.google.protobuf.FieldDescriptorProto.prototype.setOptions = function(value) { |
| 3607 | return jspb.Message.setWrapperField(this, 8, value); |
| 3608 | }; |
| 3609 | |
| 3610 | |
| 3611 | /** |
| 3612 | * Clears the message field making it undefined. |
| 3613 | * @return {!proto.google.protobuf.FieldDescriptorProto} returns this |
| 3614 | */ |
| 3615 | proto.google.protobuf.FieldDescriptorProto.prototype.clearOptions = function() { |
| 3616 | return this.setOptions(undefined); |
| 3617 | }; |
| 3618 | |
| 3619 | |
| 3620 | /** |
| 3621 | * Returns whether this field is set. |
| 3622 | * @return {boolean} |
| 3623 | */ |
| 3624 | proto.google.protobuf.FieldDescriptorProto.prototype.hasOptions = function() { |
| 3625 | return jspb.Message.getField(this, 8) != null; |
| 3626 | }; |
| 3627 | |
| 3628 | |
| 3629 | /** |
| 3630 | * optional bool proto3_optional = 17; |
| 3631 | * @return {boolean} |
| 3632 | */ |
| 3633 | proto.google.protobuf.FieldDescriptorProto.prototype.getProto3Optional = function() { |
| 3634 | return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 17, false)); |
| 3635 | }; |
| 3636 | |
| 3637 | |
| 3638 | /** |
| 3639 | * @param {boolean} value |
| 3640 | * @return {!proto.google.protobuf.FieldDescriptorProto} returns this |
| 3641 | */ |
| 3642 | proto.google.protobuf.FieldDescriptorProto.prototype.setProto3Optional = function(value) { |
| 3643 | return jspb.Message.setField(this, 17, value); |
| 3644 | }; |
| 3645 | |
| 3646 | |
| 3647 | /** |
| 3648 | * Clears the field making it undefined. |
| 3649 | * @return {!proto.google.protobuf.FieldDescriptorProto} returns this |
| 3650 | */ |
| 3651 | proto.google.protobuf.FieldDescriptorProto.prototype.clearProto3Optional = function() { |
| 3652 | return jspb.Message.setField(this, 17, undefined); |
| 3653 | }; |
| 3654 | |
| 3655 | |
| 3656 | /** |
| 3657 | * Returns whether this field is set. |
| 3658 | * @return {boolean} |
| 3659 | */ |
| 3660 | proto.google.protobuf.FieldDescriptorProto.prototype.hasProto3Optional = function() { |
| 3661 | return jspb.Message.getField(this, 17) != null; |
| 3662 | }; |
| 3663 | |
| 3664 | |
| 3665 | |
| 3666 | |
| 3667 | |
| 3668 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 3669 | /** |
| 3670 | * Creates an object representation of this proto. |
| 3671 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 3672 | * Optional fields that are not set will be set to undefined. |
| 3673 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 3674 | * For the list of reserved names please see: |
| 3675 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 3676 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 3677 | * JSPB instance for transitional soy proto support: |
| 3678 | * http://goto/soy-param-migration |
| 3679 | * @return {!Object} |
| 3680 | */ |
| 3681 | proto.google.protobuf.OneofDescriptorProto.prototype.toObject = function(opt_includeInstance) { |
| 3682 | return proto.google.protobuf.OneofDescriptorProto.toObject(opt_includeInstance, this); |
| 3683 | }; |
| 3684 | |
| 3685 | |
| 3686 | /** |
| 3687 | * Static version of the {@see toObject} method. |
| 3688 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 3689 | * the JSPB instance for transitional soy proto support: |
| 3690 | * http://goto/soy-param-migration |
| 3691 | * @param {!proto.google.protobuf.OneofDescriptorProto} msg The msg instance to transform. |
| 3692 | * @return {!Object} |
| 3693 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 3694 | */ |
| 3695 | proto.google.protobuf.OneofDescriptorProto.toObject = function(includeInstance, msg) { |
| 3696 | var f, obj = { |
| 3697 | name: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f, |
| 3698 | options: (f = msg.getOptions()) && proto.google.protobuf.OneofOptions.toObject(includeInstance, f) |
| 3699 | }; |
| 3700 | |
| 3701 | if (includeInstance) { |
| 3702 | obj.$jspbMessageInstance = msg; |
| 3703 | } |
| 3704 | return obj; |
| 3705 | }; |
| 3706 | } |
| 3707 | |
| 3708 | |
| 3709 | /** |
| 3710 | * Deserializes binary data (in protobuf wire format). |
| 3711 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 3712 | * @return {!proto.google.protobuf.OneofDescriptorProto} |
| 3713 | */ |
| 3714 | proto.google.protobuf.OneofDescriptorProto.deserializeBinary = function(bytes) { |
| 3715 | var reader = new jspb.BinaryReader(bytes); |
| 3716 | var msg = new proto.google.protobuf.OneofDescriptorProto; |
| 3717 | return proto.google.protobuf.OneofDescriptorProto.deserializeBinaryFromReader(msg, reader); |
| 3718 | }; |
| 3719 | |
| 3720 | |
| 3721 | /** |
| 3722 | * Deserializes binary data (in protobuf wire format) from the |
| 3723 | * given reader into the given message object. |
| 3724 | * @param {!proto.google.protobuf.OneofDescriptorProto} msg The message object to deserialize into. |
| 3725 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 3726 | * @return {!proto.google.protobuf.OneofDescriptorProto} |
| 3727 | */ |
| 3728 | proto.google.protobuf.OneofDescriptorProto.deserializeBinaryFromReader = function(msg, reader) { |
| 3729 | while (reader.nextField()) { |
| 3730 | if (reader.isEndGroup()) { |
| 3731 | break; |
| 3732 | } |
| 3733 | var field = reader.getFieldNumber(); |
| 3734 | switch (field) { |
| 3735 | case 1: |
| 3736 | var value = /** @type {string} */ (reader.readString()); |
| 3737 | msg.setName(value); |
| 3738 | break; |
| 3739 | case 2: |
| 3740 | var value = new proto.google.protobuf.OneofOptions; |
| 3741 | reader.readMessage(value,proto.google.protobuf.OneofOptions.deserializeBinaryFromReader); |
| 3742 | msg.setOptions(value); |
| 3743 | break; |
| 3744 | default: |
| 3745 | reader.skipField(); |
| 3746 | break; |
| 3747 | } |
| 3748 | } |
| 3749 | return msg; |
| 3750 | }; |
| 3751 | |
| 3752 | |
| 3753 | /** |
| 3754 | * Serializes the message to binary data (in protobuf wire format). |
| 3755 | * @return {!Uint8Array} |
| 3756 | */ |
| 3757 | proto.google.protobuf.OneofDescriptorProto.prototype.serializeBinary = function() { |
| 3758 | var writer = new jspb.BinaryWriter(); |
| 3759 | proto.google.protobuf.OneofDescriptorProto.serializeBinaryToWriter(this, writer); |
| 3760 | return writer.getResultBuffer(); |
| 3761 | }; |
| 3762 | |
| 3763 | |
| 3764 | /** |
| 3765 | * Serializes the given message to binary data (in protobuf wire |
| 3766 | * format), writing to the given BinaryWriter. |
| 3767 | * @param {!proto.google.protobuf.OneofDescriptorProto} message |
| 3768 | * @param {!jspb.BinaryWriter} writer |
| 3769 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 3770 | */ |
| 3771 | proto.google.protobuf.OneofDescriptorProto.serializeBinaryToWriter = function(message, writer) { |
| 3772 | var f = undefined; |
| 3773 | f = /** @type {string} */ (jspb.Message.getField(message, 1)); |
| 3774 | if (f != null) { |
| 3775 | writer.writeString( |
| 3776 | 1, |
| 3777 | f |
| 3778 | ); |
| 3779 | } |
| 3780 | f = message.getOptions(); |
| 3781 | if (f != null) { |
| 3782 | writer.writeMessage( |
| 3783 | 2, |
| 3784 | f, |
| 3785 | proto.google.protobuf.OneofOptions.serializeBinaryToWriter |
| 3786 | ); |
| 3787 | } |
| 3788 | }; |
| 3789 | |
| 3790 | |
| 3791 | /** |
| 3792 | * optional string name = 1; |
| 3793 | * @return {string} |
| 3794 | */ |
| 3795 | proto.google.protobuf.OneofDescriptorProto.prototype.getName = function() { |
| 3796 | return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); |
| 3797 | }; |
| 3798 | |
| 3799 | |
| 3800 | /** |
| 3801 | * @param {string} value |
| 3802 | * @return {!proto.google.protobuf.OneofDescriptorProto} returns this |
| 3803 | */ |
| 3804 | proto.google.protobuf.OneofDescriptorProto.prototype.setName = function(value) { |
| 3805 | return jspb.Message.setField(this, 1, value); |
| 3806 | }; |
| 3807 | |
| 3808 | |
| 3809 | /** |
| 3810 | * Clears the field making it undefined. |
| 3811 | * @return {!proto.google.protobuf.OneofDescriptorProto} returns this |
| 3812 | */ |
| 3813 | proto.google.protobuf.OneofDescriptorProto.prototype.clearName = function() { |
| 3814 | return jspb.Message.setField(this, 1, undefined); |
| 3815 | }; |
| 3816 | |
| 3817 | |
| 3818 | /** |
| 3819 | * Returns whether this field is set. |
| 3820 | * @return {boolean} |
| 3821 | */ |
| 3822 | proto.google.protobuf.OneofDescriptorProto.prototype.hasName = function() { |
| 3823 | return jspb.Message.getField(this, 1) != null; |
| 3824 | }; |
| 3825 | |
| 3826 | |
| 3827 | /** |
| 3828 | * optional OneofOptions options = 2; |
| 3829 | * @return {?proto.google.protobuf.OneofOptions} |
| 3830 | */ |
| 3831 | proto.google.protobuf.OneofDescriptorProto.prototype.getOptions = function() { |
| 3832 | return /** @type{?proto.google.protobuf.OneofOptions} */ ( |
| 3833 | jspb.Message.getWrapperField(this, proto.google.protobuf.OneofOptions, 2)); |
| 3834 | }; |
| 3835 | |
| 3836 | |
| 3837 | /** |
| 3838 | * @param {?proto.google.protobuf.OneofOptions|undefined} value |
| 3839 | * @return {!proto.google.protobuf.OneofDescriptorProto} returns this |
| 3840 | */ |
| 3841 | proto.google.protobuf.OneofDescriptorProto.prototype.setOptions = function(value) { |
| 3842 | return jspb.Message.setWrapperField(this, 2, value); |
| 3843 | }; |
| 3844 | |
| 3845 | |
| 3846 | /** |
| 3847 | * Clears the message field making it undefined. |
| 3848 | * @return {!proto.google.protobuf.OneofDescriptorProto} returns this |
| 3849 | */ |
| 3850 | proto.google.protobuf.OneofDescriptorProto.prototype.clearOptions = function() { |
| 3851 | return this.setOptions(undefined); |
| 3852 | }; |
| 3853 | |
| 3854 | |
| 3855 | /** |
| 3856 | * Returns whether this field is set. |
| 3857 | * @return {boolean} |
| 3858 | */ |
| 3859 | proto.google.protobuf.OneofDescriptorProto.prototype.hasOptions = function() { |
| 3860 | return jspb.Message.getField(this, 2) != null; |
| 3861 | }; |
| 3862 | |
| 3863 | |
| 3864 | |
| 3865 | /** |
| 3866 | * List of repeated fields within this message type. |
| 3867 | * @private {!Array<number>} |
| 3868 | * @const |
| 3869 | */ |
| 3870 | proto.google.protobuf.EnumDescriptorProto.repeatedFields_ = [2,4,5]; |
| 3871 | |
| 3872 | |
| 3873 | |
| 3874 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 3875 | /** |
| 3876 | * Creates an object representation of this proto. |
| 3877 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 3878 | * Optional fields that are not set will be set to undefined. |
| 3879 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 3880 | * For the list of reserved names please see: |
| 3881 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 3882 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 3883 | * JSPB instance for transitional soy proto support: |
| 3884 | * http://goto/soy-param-migration |
| 3885 | * @return {!Object} |
| 3886 | */ |
| 3887 | proto.google.protobuf.EnumDescriptorProto.prototype.toObject = function(opt_includeInstance) { |
| 3888 | return proto.google.protobuf.EnumDescriptorProto.toObject(opt_includeInstance, this); |
| 3889 | }; |
| 3890 | |
| 3891 | |
| 3892 | /** |
| 3893 | * Static version of the {@see toObject} method. |
| 3894 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 3895 | * the JSPB instance for transitional soy proto support: |
| 3896 | * http://goto/soy-param-migration |
| 3897 | * @param {!proto.google.protobuf.EnumDescriptorProto} msg The msg instance to transform. |
| 3898 | * @return {!Object} |
| 3899 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 3900 | */ |
| 3901 | proto.google.protobuf.EnumDescriptorProto.toObject = function(includeInstance, msg) { |
| 3902 | var f, obj = { |
| 3903 | name: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f, |
| 3904 | valueList: jspb.Message.toObjectList(msg.getValueList(), |
| 3905 | proto.google.protobuf.EnumValueDescriptorProto.toObject, includeInstance), |
| 3906 | options: (f = msg.getOptions()) && proto.google.protobuf.EnumOptions.toObject(includeInstance, f), |
| 3907 | reservedRangeList: jspb.Message.toObjectList(msg.getReservedRangeList(), |
| 3908 | proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject, includeInstance), |
| 3909 | reservedNameList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f |
| 3910 | }; |
| 3911 | |
| 3912 | if (includeInstance) { |
| 3913 | obj.$jspbMessageInstance = msg; |
| 3914 | } |
| 3915 | return obj; |
| 3916 | }; |
| 3917 | } |
| 3918 | |
| 3919 | |
| 3920 | /** |
| 3921 | * Deserializes binary data (in protobuf wire format). |
| 3922 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 3923 | * @return {!proto.google.protobuf.EnumDescriptorProto} |
| 3924 | */ |
| 3925 | proto.google.protobuf.EnumDescriptorProto.deserializeBinary = function(bytes) { |
| 3926 | var reader = new jspb.BinaryReader(bytes); |
| 3927 | var msg = new proto.google.protobuf.EnumDescriptorProto; |
| 3928 | return proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader(msg, reader); |
| 3929 | }; |
| 3930 | |
| 3931 | |
| 3932 | /** |
| 3933 | * Deserializes binary data (in protobuf wire format) from the |
| 3934 | * given reader into the given message object. |
| 3935 | * @param {!proto.google.protobuf.EnumDescriptorProto} msg The message object to deserialize into. |
| 3936 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 3937 | * @return {!proto.google.protobuf.EnumDescriptorProto} |
| 3938 | */ |
| 3939 | proto.google.protobuf.EnumDescriptorProto.deserializeBinaryFromReader = function(msg, reader) { |
| 3940 | while (reader.nextField()) { |
| 3941 | if (reader.isEndGroup()) { |
| 3942 | break; |
| 3943 | } |
| 3944 | var field = reader.getFieldNumber(); |
| 3945 | switch (field) { |
| 3946 | case 1: |
| 3947 | var value = /** @type {string} */ (reader.readString()); |
| 3948 | msg.setName(value); |
| 3949 | break; |
| 3950 | case 2: |
| 3951 | var value = new proto.google.protobuf.EnumValueDescriptorProto; |
| 3952 | reader.readMessage(value,proto.google.protobuf.EnumValueDescriptorProto.deserializeBinaryFromReader); |
| 3953 | msg.addValue(value); |
| 3954 | break; |
| 3955 | case 3: |
| 3956 | var value = new proto.google.protobuf.EnumOptions; |
| 3957 | reader.readMessage(value,proto.google.protobuf.EnumOptions.deserializeBinaryFromReader); |
| 3958 | msg.setOptions(value); |
| 3959 | break; |
| 3960 | case 4: |
| 3961 | var value = new proto.google.protobuf.EnumDescriptorProto.EnumReservedRange; |
| 3962 | reader.readMessage(value,proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.deserializeBinaryFromReader); |
| 3963 | msg.addReservedRange(value); |
| 3964 | break; |
| 3965 | case 5: |
| 3966 | var value = /** @type {string} */ (reader.readString()); |
| 3967 | msg.addReservedName(value); |
| 3968 | break; |
| 3969 | default: |
| 3970 | reader.skipField(); |
| 3971 | break; |
| 3972 | } |
| 3973 | } |
| 3974 | return msg; |
| 3975 | }; |
| 3976 | |
| 3977 | |
| 3978 | /** |
| 3979 | * Serializes the message to binary data (in protobuf wire format). |
| 3980 | * @return {!Uint8Array} |
| 3981 | */ |
| 3982 | proto.google.protobuf.EnumDescriptorProto.prototype.serializeBinary = function() { |
| 3983 | var writer = new jspb.BinaryWriter(); |
| 3984 | proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter(this, writer); |
| 3985 | return writer.getResultBuffer(); |
| 3986 | }; |
| 3987 | |
| 3988 | |
| 3989 | /** |
| 3990 | * Serializes the given message to binary data (in protobuf wire |
| 3991 | * format), writing to the given BinaryWriter. |
| 3992 | * @param {!proto.google.protobuf.EnumDescriptorProto} message |
| 3993 | * @param {!jspb.BinaryWriter} writer |
| 3994 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 3995 | */ |
| 3996 | proto.google.protobuf.EnumDescriptorProto.serializeBinaryToWriter = function(message, writer) { |
| 3997 | var f = undefined; |
| 3998 | f = /** @type {string} */ (jspb.Message.getField(message, 1)); |
| 3999 | if (f != null) { |
| 4000 | writer.writeString( |
| 4001 | 1, |
| 4002 | f |
| 4003 | ); |
| 4004 | } |
| 4005 | f = message.getValueList(); |
| 4006 | if (f.length > 0) { |
| 4007 | writer.writeRepeatedMessage( |
| 4008 | 2, |
| 4009 | f, |
| 4010 | proto.google.protobuf.EnumValueDescriptorProto.serializeBinaryToWriter |
| 4011 | ); |
| 4012 | } |
| 4013 | f = message.getOptions(); |
| 4014 | if (f != null) { |
| 4015 | writer.writeMessage( |
| 4016 | 3, |
| 4017 | f, |
| 4018 | proto.google.protobuf.EnumOptions.serializeBinaryToWriter |
| 4019 | ); |
| 4020 | } |
| 4021 | f = message.getReservedRangeList(); |
| 4022 | if (f.length > 0) { |
| 4023 | writer.writeRepeatedMessage( |
| 4024 | 4, |
| 4025 | f, |
| 4026 | proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.serializeBinaryToWriter |
| 4027 | ); |
| 4028 | } |
| 4029 | f = message.getReservedNameList(); |
| 4030 | if (f.length > 0) { |
| 4031 | writer.writeRepeatedString( |
| 4032 | 5, |
| 4033 | f |
| 4034 | ); |
| 4035 | } |
| 4036 | }; |
| 4037 | |
| 4038 | |
| 4039 | |
| 4040 | |
| 4041 | |
| 4042 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 4043 | /** |
| 4044 | * Creates an object representation of this proto. |
| 4045 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 4046 | * Optional fields that are not set will be set to undefined. |
| 4047 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 4048 | * For the list of reserved names please see: |
| 4049 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 4050 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 4051 | * JSPB instance for transitional soy proto support: |
| 4052 | * http://goto/soy-param-migration |
| 4053 | * @return {!Object} |
| 4054 | */ |
| 4055 | proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.toObject = function(opt_includeInstance) { |
| 4056 | return proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject(opt_includeInstance, this); |
| 4057 | }; |
| 4058 | |
| 4059 | |
| 4060 | /** |
| 4061 | * Static version of the {@see toObject} method. |
| 4062 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 4063 | * the JSPB instance for transitional soy proto support: |
| 4064 | * http://goto/soy-param-migration |
| 4065 | * @param {!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange} msg The msg instance to transform. |
| 4066 | * @return {!Object} |
| 4067 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 4068 | */ |
| 4069 | proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject = function(includeInstance, msg) { |
| 4070 | var f, obj = { |
| 4071 | start: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f, |
| 4072 | end: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f |
| 4073 | }; |
| 4074 | |
| 4075 | if (includeInstance) { |
| 4076 | obj.$jspbMessageInstance = msg; |
| 4077 | } |
| 4078 | return obj; |
| 4079 | }; |
| 4080 | } |
| 4081 | |
| 4082 | |
| 4083 | /** |
| 4084 | * Deserializes binary data (in protobuf wire format). |
| 4085 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 4086 | * @return {!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange} |
| 4087 | */ |
| 4088 | proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.deserializeBinary = function(bytes) { |
| 4089 | var reader = new jspb.BinaryReader(bytes); |
| 4090 | var msg = new proto.google.protobuf.EnumDescriptorProto.EnumReservedRange; |
| 4091 | return proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.deserializeBinaryFromReader(msg, reader); |
| 4092 | }; |
| 4093 | |
| 4094 | |
| 4095 | /** |
| 4096 | * Deserializes binary data (in protobuf wire format) from the |
| 4097 | * given reader into the given message object. |
| 4098 | * @param {!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange} msg The message object to deserialize into. |
| 4099 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 4100 | * @return {!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange} |
| 4101 | */ |
| 4102 | proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.deserializeBinaryFromReader = function(msg, reader) { |
| 4103 | while (reader.nextField()) { |
| 4104 | if (reader.isEndGroup()) { |
| 4105 | break; |
| 4106 | } |
| 4107 | var field = reader.getFieldNumber(); |
| 4108 | switch (field) { |
| 4109 | case 1: |
| 4110 | var value = /** @type {number} */ (reader.readInt32()); |
| 4111 | msg.setStart(value); |
| 4112 | break; |
| 4113 | case 2: |
| 4114 | var value = /** @type {number} */ (reader.readInt32()); |
| 4115 | msg.setEnd(value); |
| 4116 | break; |
| 4117 | default: |
| 4118 | reader.skipField(); |
| 4119 | break; |
| 4120 | } |
| 4121 | } |
| 4122 | return msg; |
| 4123 | }; |
| 4124 | |
| 4125 | |
| 4126 | /** |
| 4127 | * Serializes the message to binary data (in protobuf wire format). |
| 4128 | * @return {!Uint8Array} |
| 4129 | */ |
| 4130 | proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.serializeBinary = function() { |
| 4131 | var writer = new jspb.BinaryWriter(); |
| 4132 | proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.serializeBinaryToWriter(this, writer); |
| 4133 | return writer.getResultBuffer(); |
| 4134 | }; |
| 4135 | |
| 4136 | |
| 4137 | /** |
| 4138 | * Serializes the given message to binary data (in protobuf wire |
| 4139 | * format), writing to the given BinaryWriter. |
| 4140 | * @param {!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange} message |
| 4141 | * @param {!jspb.BinaryWriter} writer |
| 4142 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 4143 | */ |
| 4144 | proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.serializeBinaryToWriter = function(message, writer) { |
| 4145 | var f = undefined; |
| 4146 | f = /** @type {number} */ (jspb.Message.getField(message, 1)); |
| 4147 | if (f != null) { |
| 4148 | writer.writeInt32( |
| 4149 | 1, |
| 4150 | f |
| 4151 | ); |
| 4152 | } |
| 4153 | f = /** @type {number} */ (jspb.Message.getField(message, 2)); |
| 4154 | if (f != null) { |
| 4155 | writer.writeInt32( |
| 4156 | 2, |
| 4157 | f |
| 4158 | ); |
| 4159 | } |
| 4160 | }; |
| 4161 | |
| 4162 | |
| 4163 | /** |
| 4164 | * optional int32 start = 1; |
| 4165 | * @return {number} |
| 4166 | */ |
| 4167 | proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.getStart = function() { |
| 4168 | return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); |
| 4169 | }; |
| 4170 | |
| 4171 | |
| 4172 | /** |
| 4173 | * @param {number} value |
| 4174 | * @return {!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange} returns this |
| 4175 | */ |
| 4176 | proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.setStart = function(value) { |
| 4177 | return jspb.Message.setField(this, 1, value); |
| 4178 | }; |
| 4179 | |
| 4180 | |
| 4181 | /** |
| 4182 | * Clears the field making it undefined. |
| 4183 | * @return {!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange} returns this |
| 4184 | */ |
| 4185 | proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.clearStart = function() { |
| 4186 | return jspb.Message.setField(this, 1, undefined); |
| 4187 | }; |
| 4188 | |
| 4189 | |
| 4190 | /** |
| 4191 | * Returns whether this field is set. |
| 4192 | * @return {boolean} |
| 4193 | */ |
| 4194 | proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.hasStart = function() { |
| 4195 | return jspb.Message.getField(this, 1) != null; |
| 4196 | }; |
| 4197 | |
| 4198 | |
| 4199 | /** |
| 4200 | * optional int32 end = 2; |
| 4201 | * @return {number} |
| 4202 | */ |
| 4203 | proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.getEnd = function() { |
| 4204 | return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); |
| 4205 | }; |
| 4206 | |
| 4207 | |
| 4208 | /** |
| 4209 | * @param {number} value |
| 4210 | * @return {!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange} returns this |
| 4211 | */ |
| 4212 | proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.setEnd = function(value) { |
| 4213 | return jspb.Message.setField(this, 2, value); |
| 4214 | }; |
| 4215 | |
| 4216 | |
| 4217 | /** |
| 4218 | * Clears the field making it undefined. |
| 4219 | * @return {!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange} returns this |
| 4220 | */ |
| 4221 | proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.clearEnd = function() { |
| 4222 | return jspb.Message.setField(this, 2, undefined); |
| 4223 | }; |
| 4224 | |
| 4225 | |
| 4226 | /** |
| 4227 | * Returns whether this field is set. |
| 4228 | * @return {boolean} |
| 4229 | */ |
| 4230 | proto.google.protobuf.EnumDescriptorProto.EnumReservedRange.prototype.hasEnd = function() { |
| 4231 | return jspb.Message.getField(this, 2) != null; |
| 4232 | }; |
| 4233 | |
| 4234 | |
| 4235 | /** |
| 4236 | * optional string name = 1; |
| 4237 | * @return {string} |
| 4238 | */ |
| 4239 | proto.google.protobuf.EnumDescriptorProto.prototype.getName = function() { |
| 4240 | return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); |
| 4241 | }; |
| 4242 | |
| 4243 | |
| 4244 | /** |
| 4245 | * @param {string} value |
| 4246 | * @return {!proto.google.protobuf.EnumDescriptorProto} returns this |
| 4247 | */ |
| 4248 | proto.google.protobuf.EnumDescriptorProto.prototype.setName = function(value) { |
| 4249 | return jspb.Message.setField(this, 1, value); |
| 4250 | }; |
| 4251 | |
| 4252 | |
| 4253 | /** |
| 4254 | * Clears the field making it undefined. |
| 4255 | * @return {!proto.google.protobuf.EnumDescriptorProto} returns this |
| 4256 | */ |
| 4257 | proto.google.protobuf.EnumDescriptorProto.prototype.clearName = function() { |
| 4258 | return jspb.Message.setField(this, 1, undefined); |
| 4259 | }; |
| 4260 | |
| 4261 | |
| 4262 | /** |
| 4263 | * Returns whether this field is set. |
| 4264 | * @return {boolean} |
| 4265 | */ |
| 4266 | proto.google.protobuf.EnumDescriptorProto.prototype.hasName = function() { |
| 4267 | return jspb.Message.getField(this, 1) != null; |
| 4268 | }; |
| 4269 | |
| 4270 | |
| 4271 | /** |
| 4272 | * repeated EnumValueDescriptorProto value = 2; |
| 4273 | * @return {!Array<!proto.google.protobuf.EnumValueDescriptorProto>} |
| 4274 | */ |
| 4275 | proto.google.protobuf.EnumDescriptorProto.prototype.getValueList = function() { |
| 4276 | return /** @type{!Array<!proto.google.protobuf.EnumValueDescriptorProto>} */ ( |
| 4277 | jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.EnumValueDescriptorProto, 2)); |
| 4278 | }; |
| 4279 | |
| 4280 | |
| 4281 | /** |
| 4282 | * @param {!Array<!proto.google.protobuf.EnumValueDescriptorProto>} value |
| 4283 | * @return {!proto.google.protobuf.EnumDescriptorProto} returns this |
| 4284 | */ |
| 4285 | proto.google.protobuf.EnumDescriptorProto.prototype.setValueList = function(value) { |
| 4286 | return jspb.Message.setRepeatedWrapperField(this, 2, value); |
| 4287 | }; |
| 4288 | |
| 4289 | |
| 4290 | /** |
| 4291 | * @param {!proto.google.protobuf.EnumValueDescriptorProto=} opt_value |
| 4292 | * @param {number=} opt_index |
| 4293 | * @return {!proto.google.protobuf.EnumValueDescriptorProto} |
| 4294 | */ |
| 4295 | proto.google.protobuf.EnumDescriptorProto.prototype.addValue = function(opt_value, opt_index) { |
| 4296 | return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.protobuf.EnumValueDescriptorProto, opt_index); |
| 4297 | }; |
| 4298 | |
| 4299 | |
| 4300 | /** |
| 4301 | * Clears the list making it empty but non-null. |
| 4302 | * @return {!proto.google.protobuf.EnumDescriptorProto} returns this |
| 4303 | */ |
| 4304 | proto.google.protobuf.EnumDescriptorProto.prototype.clearValueList = function() { |
| 4305 | return this.setValueList([]); |
| 4306 | }; |
| 4307 | |
| 4308 | |
| 4309 | /** |
| 4310 | * optional EnumOptions options = 3; |
| 4311 | * @return {?proto.google.protobuf.EnumOptions} |
| 4312 | */ |
| 4313 | proto.google.protobuf.EnumDescriptorProto.prototype.getOptions = function() { |
| 4314 | return /** @type{?proto.google.protobuf.EnumOptions} */ ( |
| 4315 | jspb.Message.getWrapperField(this, proto.google.protobuf.EnumOptions, 3)); |
| 4316 | }; |
| 4317 | |
| 4318 | |
| 4319 | /** |
| 4320 | * @param {?proto.google.protobuf.EnumOptions|undefined} value |
| 4321 | * @return {!proto.google.protobuf.EnumDescriptorProto} returns this |
| 4322 | */ |
| 4323 | proto.google.protobuf.EnumDescriptorProto.prototype.setOptions = function(value) { |
| 4324 | return jspb.Message.setWrapperField(this, 3, value); |
| 4325 | }; |
| 4326 | |
| 4327 | |
| 4328 | /** |
| 4329 | * Clears the message field making it undefined. |
| 4330 | * @return {!proto.google.protobuf.EnumDescriptorProto} returns this |
| 4331 | */ |
| 4332 | proto.google.protobuf.EnumDescriptorProto.prototype.clearOptions = function() { |
| 4333 | return this.setOptions(undefined); |
| 4334 | }; |
| 4335 | |
| 4336 | |
| 4337 | /** |
| 4338 | * Returns whether this field is set. |
| 4339 | * @return {boolean} |
| 4340 | */ |
| 4341 | proto.google.protobuf.EnumDescriptorProto.prototype.hasOptions = function() { |
| 4342 | return jspb.Message.getField(this, 3) != null; |
| 4343 | }; |
| 4344 | |
| 4345 | |
| 4346 | /** |
| 4347 | * repeated EnumReservedRange reserved_range = 4; |
| 4348 | * @return {!Array<!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange>} |
| 4349 | */ |
| 4350 | proto.google.protobuf.EnumDescriptorProto.prototype.getReservedRangeList = function() { |
| 4351 | return /** @type{!Array<!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange>} */ ( |
| 4352 | jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.EnumDescriptorProto.EnumReservedRange, 4)); |
| 4353 | }; |
| 4354 | |
| 4355 | |
| 4356 | /** |
| 4357 | * @param {!Array<!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange>} value |
| 4358 | * @return {!proto.google.protobuf.EnumDescriptorProto} returns this |
| 4359 | */ |
| 4360 | proto.google.protobuf.EnumDescriptorProto.prototype.setReservedRangeList = function(value) { |
| 4361 | return jspb.Message.setRepeatedWrapperField(this, 4, value); |
| 4362 | }; |
| 4363 | |
| 4364 | |
| 4365 | /** |
| 4366 | * @param {!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange=} opt_value |
| 4367 | * @param {number=} opt_index |
| 4368 | * @return {!proto.google.protobuf.EnumDescriptorProto.EnumReservedRange} |
| 4369 | */ |
| 4370 | proto.google.protobuf.EnumDescriptorProto.prototype.addReservedRange = function(opt_value, opt_index) { |
| 4371 | return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.google.protobuf.EnumDescriptorProto.EnumReservedRange, opt_index); |
| 4372 | }; |
| 4373 | |
| 4374 | |
| 4375 | /** |
| 4376 | * Clears the list making it empty but non-null. |
| 4377 | * @return {!proto.google.protobuf.EnumDescriptorProto} returns this |
| 4378 | */ |
| 4379 | proto.google.protobuf.EnumDescriptorProto.prototype.clearReservedRangeList = function() { |
| 4380 | return this.setReservedRangeList([]); |
| 4381 | }; |
| 4382 | |
| 4383 | |
| 4384 | /** |
| 4385 | * repeated string reserved_name = 5; |
| 4386 | * @return {!Array<string>} |
| 4387 | */ |
| 4388 | proto.google.protobuf.EnumDescriptorProto.prototype.getReservedNameList = function() { |
| 4389 | return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5)); |
| 4390 | }; |
| 4391 | |
| 4392 | |
| 4393 | /** |
| 4394 | * @param {!Array<string>} value |
| 4395 | * @return {!proto.google.protobuf.EnumDescriptorProto} returns this |
| 4396 | */ |
| 4397 | proto.google.protobuf.EnumDescriptorProto.prototype.setReservedNameList = function(value) { |
| 4398 | return jspb.Message.setField(this, 5, value || []); |
| 4399 | }; |
| 4400 | |
| 4401 | |
| 4402 | /** |
| 4403 | * @param {string} value |
| 4404 | * @param {number=} opt_index |
| 4405 | * @return {!proto.google.protobuf.EnumDescriptorProto} returns this |
| 4406 | */ |
| 4407 | proto.google.protobuf.EnumDescriptorProto.prototype.addReservedName = function(value, opt_index) { |
| 4408 | return jspb.Message.addToRepeatedField(this, 5, value, opt_index); |
| 4409 | }; |
| 4410 | |
| 4411 | |
| 4412 | /** |
| 4413 | * Clears the list making it empty but non-null. |
| 4414 | * @return {!proto.google.protobuf.EnumDescriptorProto} returns this |
| 4415 | */ |
| 4416 | proto.google.protobuf.EnumDescriptorProto.prototype.clearReservedNameList = function() { |
| 4417 | return this.setReservedNameList([]); |
| 4418 | }; |
| 4419 | |
| 4420 | |
| 4421 | |
| 4422 | |
| 4423 | |
| 4424 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 4425 | /** |
| 4426 | * Creates an object representation of this proto. |
| 4427 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 4428 | * Optional fields that are not set will be set to undefined. |
| 4429 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 4430 | * For the list of reserved names please see: |
| 4431 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 4432 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 4433 | * JSPB instance for transitional soy proto support: |
| 4434 | * http://goto/soy-param-migration |
| 4435 | * @return {!Object} |
| 4436 | */ |
| 4437 | proto.google.protobuf.EnumValueDescriptorProto.prototype.toObject = function(opt_includeInstance) { |
| 4438 | return proto.google.protobuf.EnumValueDescriptorProto.toObject(opt_includeInstance, this); |
| 4439 | }; |
| 4440 | |
| 4441 | |
| 4442 | /** |
| 4443 | * Static version of the {@see toObject} method. |
| 4444 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 4445 | * the JSPB instance for transitional soy proto support: |
| 4446 | * http://goto/soy-param-migration |
| 4447 | * @param {!proto.google.protobuf.EnumValueDescriptorProto} msg The msg instance to transform. |
| 4448 | * @return {!Object} |
| 4449 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 4450 | */ |
| 4451 | proto.google.protobuf.EnumValueDescriptorProto.toObject = function(includeInstance, msg) { |
| 4452 | var f, obj = { |
| 4453 | name: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f, |
| 4454 | number: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f, |
| 4455 | options: (f = msg.getOptions()) && proto.google.protobuf.EnumValueOptions.toObject(includeInstance, f) |
| 4456 | }; |
| 4457 | |
| 4458 | if (includeInstance) { |
| 4459 | obj.$jspbMessageInstance = msg; |
| 4460 | } |
| 4461 | return obj; |
| 4462 | }; |
| 4463 | } |
| 4464 | |
| 4465 | |
| 4466 | /** |
| 4467 | * Deserializes binary data (in protobuf wire format). |
| 4468 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 4469 | * @return {!proto.google.protobuf.EnumValueDescriptorProto} |
| 4470 | */ |
| 4471 | proto.google.protobuf.EnumValueDescriptorProto.deserializeBinary = function(bytes) { |
| 4472 | var reader = new jspb.BinaryReader(bytes); |
| 4473 | var msg = new proto.google.protobuf.EnumValueDescriptorProto; |
| 4474 | return proto.google.protobuf.EnumValueDescriptorProto.deserializeBinaryFromReader(msg, reader); |
| 4475 | }; |
| 4476 | |
| 4477 | |
| 4478 | /** |
| 4479 | * Deserializes binary data (in protobuf wire format) from the |
| 4480 | * given reader into the given message object. |
| 4481 | * @param {!proto.google.protobuf.EnumValueDescriptorProto} msg The message object to deserialize into. |
| 4482 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 4483 | * @return {!proto.google.protobuf.EnumValueDescriptorProto} |
| 4484 | */ |
| 4485 | proto.google.protobuf.EnumValueDescriptorProto.deserializeBinaryFromReader = function(msg, reader) { |
| 4486 | while (reader.nextField()) { |
| 4487 | if (reader.isEndGroup()) { |
| 4488 | break; |
| 4489 | } |
| 4490 | var field = reader.getFieldNumber(); |
| 4491 | switch (field) { |
| 4492 | case 1: |
| 4493 | var value = /** @type {string} */ (reader.readString()); |
| 4494 | msg.setName(value); |
| 4495 | break; |
| 4496 | case 2: |
| 4497 | var value = /** @type {number} */ (reader.readInt32()); |
| 4498 | msg.setNumber(value); |
| 4499 | break; |
| 4500 | case 3: |
| 4501 | var value = new proto.google.protobuf.EnumValueOptions; |
| 4502 | reader.readMessage(value,proto.google.protobuf.EnumValueOptions.deserializeBinaryFromReader); |
| 4503 | msg.setOptions(value); |
| 4504 | break; |
| 4505 | default: |
| 4506 | reader.skipField(); |
| 4507 | break; |
| 4508 | } |
| 4509 | } |
| 4510 | return msg; |
| 4511 | }; |
| 4512 | |
| 4513 | |
| 4514 | /** |
| 4515 | * Serializes the message to binary data (in protobuf wire format). |
| 4516 | * @return {!Uint8Array} |
| 4517 | */ |
| 4518 | proto.google.protobuf.EnumValueDescriptorProto.prototype.serializeBinary = function() { |
| 4519 | var writer = new jspb.BinaryWriter(); |
| 4520 | proto.google.protobuf.EnumValueDescriptorProto.serializeBinaryToWriter(this, writer); |
| 4521 | return writer.getResultBuffer(); |
| 4522 | }; |
| 4523 | |
| 4524 | |
| 4525 | /** |
| 4526 | * Serializes the given message to binary data (in protobuf wire |
| 4527 | * format), writing to the given BinaryWriter. |
| 4528 | * @param {!proto.google.protobuf.EnumValueDescriptorProto} message |
| 4529 | * @param {!jspb.BinaryWriter} writer |
| 4530 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 4531 | */ |
| 4532 | proto.google.protobuf.EnumValueDescriptorProto.serializeBinaryToWriter = function(message, writer) { |
| 4533 | var f = undefined; |
| 4534 | f = /** @type {string} */ (jspb.Message.getField(message, 1)); |
| 4535 | if (f != null) { |
| 4536 | writer.writeString( |
| 4537 | 1, |
| 4538 | f |
| 4539 | ); |
| 4540 | } |
| 4541 | f = /** @type {number} */ (jspb.Message.getField(message, 2)); |
| 4542 | if (f != null) { |
| 4543 | writer.writeInt32( |
| 4544 | 2, |
| 4545 | f |
| 4546 | ); |
| 4547 | } |
| 4548 | f = message.getOptions(); |
| 4549 | if (f != null) { |
| 4550 | writer.writeMessage( |
| 4551 | 3, |
| 4552 | f, |
| 4553 | proto.google.protobuf.EnumValueOptions.serializeBinaryToWriter |
| 4554 | ); |
| 4555 | } |
| 4556 | }; |
| 4557 | |
| 4558 | |
| 4559 | /** |
| 4560 | * optional string name = 1; |
| 4561 | * @return {string} |
| 4562 | */ |
| 4563 | proto.google.protobuf.EnumValueDescriptorProto.prototype.getName = function() { |
| 4564 | return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); |
| 4565 | }; |
| 4566 | |
| 4567 | |
| 4568 | /** |
| 4569 | * @param {string} value |
| 4570 | * @return {!proto.google.protobuf.EnumValueDescriptorProto} returns this |
| 4571 | */ |
| 4572 | proto.google.protobuf.EnumValueDescriptorProto.prototype.setName = function(value) { |
| 4573 | return jspb.Message.setField(this, 1, value); |
| 4574 | }; |
| 4575 | |
| 4576 | |
| 4577 | /** |
| 4578 | * Clears the field making it undefined. |
| 4579 | * @return {!proto.google.protobuf.EnumValueDescriptorProto} returns this |
| 4580 | */ |
| 4581 | proto.google.protobuf.EnumValueDescriptorProto.prototype.clearName = function() { |
| 4582 | return jspb.Message.setField(this, 1, undefined); |
| 4583 | }; |
| 4584 | |
| 4585 | |
| 4586 | /** |
| 4587 | * Returns whether this field is set. |
| 4588 | * @return {boolean} |
| 4589 | */ |
| 4590 | proto.google.protobuf.EnumValueDescriptorProto.prototype.hasName = function() { |
| 4591 | return jspb.Message.getField(this, 1) != null; |
| 4592 | }; |
| 4593 | |
| 4594 | |
| 4595 | /** |
| 4596 | * optional int32 number = 2; |
| 4597 | * @return {number} |
| 4598 | */ |
| 4599 | proto.google.protobuf.EnumValueDescriptorProto.prototype.getNumber = function() { |
| 4600 | return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); |
| 4601 | }; |
| 4602 | |
| 4603 | |
| 4604 | /** |
| 4605 | * @param {number} value |
| 4606 | * @return {!proto.google.protobuf.EnumValueDescriptorProto} returns this |
| 4607 | */ |
| 4608 | proto.google.protobuf.EnumValueDescriptorProto.prototype.setNumber = function(value) { |
| 4609 | return jspb.Message.setField(this, 2, value); |
| 4610 | }; |
| 4611 | |
| 4612 | |
| 4613 | /** |
| 4614 | * Clears the field making it undefined. |
| 4615 | * @return {!proto.google.protobuf.EnumValueDescriptorProto} returns this |
| 4616 | */ |
| 4617 | proto.google.protobuf.EnumValueDescriptorProto.prototype.clearNumber = function() { |
| 4618 | return jspb.Message.setField(this, 2, undefined); |
| 4619 | }; |
| 4620 | |
| 4621 | |
| 4622 | /** |
| 4623 | * Returns whether this field is set. |
| 4624 | * @return {boolean} |
| 4625 | */ |
| 4626 | proto.google.protobuf.EnumValueDescriptorProto.prototype.hasNumber = function() { |
| 4627 | return jspb.Message.getField(this, 2) != null; |
| 4628 | }; |
| 4629 | |
| 4630 | |
| 4631 | /** |
| 4632 | * optional EnumValueOptions options = 3; |
| 4633 | * @return {?proto.google.protobuf.EnumValueOptions} |
| 4634 | */ |
| 4635 | proto.google.protobuf.EnumValueDescriptorProto.prototype.getOptions = function() { |
| 4636 | return /** @type{?proto.google.protobuf.EnumValueOptions} */ ( |
| 4637 | jspb.Message.getWrapperField(this, proto.google.protobuf.EnumValueOptions, 3)); |
| 4638 | }; |
| 4639 | |
| 4640 | |
| 4641 | /** |
| 4642 | * @param {?proto.google.protobuf.EnumValueOptions|undefined} value |
| 4643 | * @return {!proto.google.protobuf.EnumValueDescriptorProto} returns this |
| 4644 | */ |
| 4645 | proto.google.protobuf.EnumValueDescriptorProto.prototype.setOptions = function(value) { |
| 4646 | return jspb.Message.setWrapperField(this, 3, value); |
| 4647 | }; |
| 4648 | |
| 4649 | |
| 4650 | /** |
| 4651 | * Clears the message field making it undefined. |
| 4652 | * @return {!proto.google.protobuf.EnumValueDescriptorProto} returns this |
| 4653 | */ |
| 4654 | proto.google.protobuf.EnumValueDescriptorProto.prototype.clearOptions = function() { |
| 4655 | return this.setOptions(undefined); |
| 4656 | }; |
| 4657 | |
| 4658 | |
| 4659 | /** |
| 4660 | * Returns whether this field is set. |
| 4661 | * @return {boolean} |
| 4662 | */ |
| 4663 | proto.google.protobuf.EnumValueDescriptorProto.prototype.hasOptions = function() { |
| 4664 | return jspb.Message.getField(this, 3) != null; |
| 4665 | }; |
| 4666 | |
| 4667 | |
| 4668 | |
| 4669 | /** |
| 4670 | * List of repeated fields within this message type. |
| 4671 | * @private {!Array<number>} |
| 4672 | * @const |
| 4673 | */ |
| 4674 | proto.google.protobuf.ServiceDescriptorProto.repeatedFields_ = [2]; |
| 4675 | |
| 4676 | |
| 4677 | |
| 4678 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 4679 | /** |
| 4680 | * Creates an object representation of this proto. |
| 4681 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 4682 | * Optional fields that are not set will be set to undefined. |
| 4683 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 4684 | * For the list of reserved names please see: |
| 4685 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 4686 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 4687 | * JSPB instance for transitional soy proto support: |
| 4688 | * http://goto/soy-param-migration |
| 4689 | * @return {!Object} |
| 4690 | */ |
| 4691 | proto.google.protobuf.ServiceDescriptorProto.prototype.toObject = function(opt_includeInstance) { |
| 4692 | return proto.google.protobuf.ServiceDescriptorProto.toObject(opt_includeInstance, this); |
| 4693 | }; |
| 4694 | |
| 4695 | |
| 4696 | /** |
| 4697 | * Static version of the {@see toObject} method. |
| 4698 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 4699 | * the JSPB instance for transitional soy proto support: |
| 4700 | * http://goto/soy-param-migration |
| 4701 | * @param {!proto.google.protobuf.ServiceDescriptorProto} msg The msg instance to transform. |
| 4702 | * @return {!Object} |
| 4703 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 4704 | */ |
| 4705 | proto.google.protobuf.ServiceDescriptorProto.toObject = function(includeInstance, msg) { |
| 4706 | var f, obj = { |
| 4707 | name: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f, |
| 4708 | methodList: jspb.Message.toObjectList(msg.getMethodList(), |
| 4709 | proto.google.protobuf.MethodDescriptorProto.toObject, includeInstance), |
| 4710 | options: (f = msg.getOptions()) && proto.google.protobuf.ServiceOptions.toObject(includeInstance, f) |
| 4711 | }; |
| 4712 | |
| 4713 | if (includeInstance) { |
| 4714 | obj.$jspbMessageInstance = msg; |
| 4715 | } |
| 4716 | return obj; |
| 4717 | }; |
| 4718 | } |
| 4719 | |
| 4720 | |
| 4721 | /** |
| 4722 | * Deserializes binary data (in protobuf wire format). |
| 4723 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 4724 | * @return {!proto.google.protobuf.ServiceDescriptorProto} |
| 4725 | */ |
| 4726 | proto.google.protobuf.ServiceDescriptorProto.deserializeBinary = function(bytes) { |
| 4727 | var reader = new jspb.BinaryReader(bytes); |
| 4728 | var msg = new proto.google.protobuf.ServiceDescriptorProto; |
| 4729 | return proto.google.protobuf.ServiceDescriptorProto.deserializeBinaryFromReader(msg, reader); |
| 4730 | }; |
| 4731 | |
| 4732 | |
| 4733 | /** |
| 4734 | * Deserializes binary data (in protobuf wire format) from the |
| 4735 | * given reader into the given message object. |
| 4736 | * @param {!proto.google.protobuf.ServiceDescriptorProto} msg The message object to deserialize into. |
| 4737 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 4738 | * @return {!proto.google.protobuf.ServiceDescriptorProto} |
| 4739 | */ |
| 4740 | proto.google.protobuf.ServiceDescriptorProto.deserializeBinaryFromReader = function(msg, reader) { |
| 4741 | while (reader.nextField()) { |
| 4742 | if (reader.isEndGroup()) { |
| 4743 | break; |
| 4744 | } |
| 4745 | var field = reader.getFieldNumber(); |
| 4746 | switch (field) { |
| 4747 | case 1: |
| 4748 | var value = /** @type {string} */ (reader.readString()); |
| 4749 | msg.setName(value); |
| 4750 | break; |
| 4751 | case 2: |
| 4752 | var value = new proto.google.protobuf.MethodDescriptorProto; |
| 4753 | reader.readMessage(value,proto.google.protobuf.MethodDescriptorProto.deserializeBinaryFromReader); |
| 4754 | msg.addMethod(value); |
| 4755 | break; |
| 4756 | case 3: |
| 4757 | var value = new proto.google.protobuf.ServiceOptions; |
| 4758 | reader.readMessage(value,proto.google.protobuf.ServiceOptions.deserializeBinaryFromReader); |
| 4759 | msg.setOptions(value); |
| 4760 | break; |
| 4761 | default: |
| 4762 | reader.skipField(); |
| 4763 | break; |
| 4764 | } |
| 4765 | } |
| 4766 | return msg; |
| 4767 | }; |
| 4768 | |
| 4769 | |
| 4770 | /** |
| 4771 | * Serializes the message to binary data (in protobuf wire format). |
| 4772 | * @return {!Uint8Array} |
| 4773 | */ |
| 4774 | proto.google.protobuf.ServiceDescriptorProto.prototype.serializeBinary = function() { |
| 4775 | var writer = new jspb.BinaryWriter(); |
| 4776 | proto.google.protobuf.ServiceDescriptorProto.serializeBinaryToWriter(this, writer); |
| 4777 | return writer.getResultBuffer(); |
| 4778 | }; |
| 4779 | |
| 4780 | |
| 4781 | /** |
| 4782 | * Serializes the given message to binary data (in protobuf wire |
| 4783 | * format), writing to the given BinaryWriter. |
| 4784 | * @param {!proto.google.protobuf.ServiceDescriptorProto} message |
| 4785 | * @param {!jspb.BinaryWriter} writer |
| 4786 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 4787 | */ |
| 4788 | proto.google.protobuf.ServiceDescriptorProto.serializeBinaryToWriter = function(message, writer) { |
| 4789 | var f = undefined; |
| 4790 | f = /** @type {string} */ (jspb.Message.getField(message, 1)); |
| 4791 | if (f != null) { |
| 4792 | writer.writeString( |
| 4793 | 1, |
| 4794 | f |
| 4795 | ); |
| 4796 | } |
| 4797 | f = message.getMethodList(); |
| 4798 | if (f.length > 0) { |
| 4799 | writer.writeRepeatedMessage( |
| 4800 | 2, |
| 4801 | f, |
| 4802 | proto.google.protobuf.MethodDescriptorProto.serializeBinaryToWriter |
| 4803 | ); |
| 4804 | } |
| 4805 | f = message.getOptions(); |
| 4806 | if (f != null) { |
| 4807 | writer.writeMessage( |
| 4808 | 3, |
| 4809 | f, |
| 4810 | proto.google.protobuf.ServiceOptions.serializeBinaryToWriter |
| 4811 | ); |
| 4812 | } |
| 4813 | }; |
| 4814 | |
| 4815 | |
| 4816 | /** |
| 4817 | * optional string name = 1; |
| 4818 | * @return {string} |
| 4819 | */ |
| 4820 | proto.google.protobuf.ServiceDescriptorProto.prototype.getName = function() { |
| 4821 | return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); |
| 4822 | }; |
| 4823 | |
| 4824 | |
| 4825 | /** |
| 4826 | * @param {string} value |
| 4827 | * @return {!proto.google.protobuf.ServiceDescriptorProto} returns this |
| 4828 | */ |
| 4829 | proto.google.protobuf.ServiceDescriptorProto.prototype.setName = function(value) { |
| 4830 | return jspb.Message.setField(this, 1, value); |
| 4831 | }; |
| 4832 | |
| 4833 | |
| 4834 | /** |
| 4835 | * Clears the field making it undefined. |
| 4836 | * @return {!proto.google.protobuf.ServiceDescriptorProto} returns this |
| 4837 | */ |
| 4838 | proto.google.protobuf.ServiceDescriptorProto.prototype.clearName = function() { |
| 4839 | return jspb.Message.setField(this, 1, undefined); |
| 4840 | }; |
| 4841 | |
| 4842 | |
| 4843 | /** |
| 4844 | * Returns whether this field is set. |
| 4845 | * @return {boolean} |
| 4846 | */ |
| 4847 | proto.google.protobuf.ServiceDescriptorProto.prototype.hasName = function() { |
| 4848 | return jspb.Message.getField(this, 1) != null; |
| 4849 | }; |
| 4850 | |
| 4851 | |
| 4852 | /** |
| 4853 | * repeated MethodDescriptorProto method = 2; |
| 4854 | * @return {!Array<!proto.google.protobuf.MethodDescriptorProto>} |
| 4855 | */ |
| 4856 | proto.google.protobuf.ServiceDescriptorProto.prototype.getMethodList = function() { |
| 4857 | return /** @type{!Array<!proto.google.protobuf.MethodDescriptorProto>} */ ( |
| 4858 | jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.MethodDescriptorProto, 2)); |
| 4859 | }; |
| 4860 | |
| 4861 | |
| 4862 | /** |
| 4863 | * @param {!Array<!proto.google.protobuf.MethodDescriptorProto>} value |
| 4864 | * @return {!proto.google.protobuf.ServiceDescriptorProto} returns this |
| 4865 | */ |
| 4866 | proto.google.protobuf.ServiceDescriptorProto.prototype.setMethodList = function(value) { |
| 4867 | return jspb.Message.setRepeatedWrapperField(this, 2, value); |
| 4868 | }; |
| 4869 | |
| 4870 | |
| 4871 | /** |
| 4872 | * @param {!proto.google.protobuf.MethodDescriptorProto=} opt_value |
| 4873 | * @param {number=} opt_index |
| 4874 | * @return {!proto.google.protobuf.MethodDescriptorProto} |
| 4875 | */ |
| 4876 | proto.google.protobuf.ServiceDescriptorProto.prototype.addMethod = function(opt_value, opt_index) { |
| 4877 | return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.protobuf.MethodDescriptorProto, opt_index); |
| 4878 | }; |
| 4879 | |
| 4880 | |
| 4881 | /** |
| 4882 | * Clears the list making it empty but non-null. |
| 4883 | * @return {!proto.google.protobuf.ServiceDescriptorProto} returns this |
| 4884 | */ |
| 4885 | proto.google.protobuf.ServiceDescriptorProto.prototype.clearMethodList = function() { |
| 4886 | return this.setMethodList([]); |
| 4887 | }; |
| 4888 | |
| 4889 | |
| 4890 | /** |
| 4891 | * optional ServiceOptions options = 3; |
| 4892 | * @return {?proto.google.protobuf.ServiceOptions} |
| 4893 | */ |
| 4894 | proto.google.protobuf.ServiceDescriptorProto.prototype.getOptions = function() { |
| 4895 | return /** @type{?proto.google.protobuf.ServiceOptions} */ ( |
| 4896 | jspb.Message.getWrapperField(this, proto.google.protobuf.ServiceOptions, 3)); |
| 4897 | }; |
| 4898 | |
| 4899 | |
| 4900 | /** |
| 4901 | * @param {?proto.google.protobuf.ServiceOptions|undefined} value |
| 4902 | * @return {!proto.google.protobuf.ServiceDescriptorProto} returns this |
| 4903 | */ |
| 4904 | proto.google.protobuf.ServiceDescriptorProto.prototype.setOptions = function(value) { |
| 4905 | return jspb.Message.setWrapperField(this, 3, value); |
| 4906 | }; |
| 4907 | |
| 4908 | |
| 4909 | /** |
| 4910 | * Clears the message field making it undefined. |
| 4911 | * @return {!proto.google.protobuf.ServiceDescriptorProto} returns this |
| 4912 | */ |
| 4913 | proto.google.protobuf.ServiceDescriptorProto.prototype.clearOptions = function() { |
| 4914 | return this.setOptions(undefined); |
| 4915 | }; |
| 4916 | |
| 4917 | |
| 4918 | /** |
| 4919 | * Returns whether this field is set. |
| 4920 | * @return {boolean} |
| 4921 | */ |
| 4922 | proto.google.protobuf.ServiceDescriptorProto.prototype.hasOptions = function() { |
| 4923 | return jspb.Message.getField(this, 3) != null; |
| 4924 | }; |
| 4925 | |
| 4926 | |
| 4927 | |
| 4928 | |
| 4929 | |
| 4930 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 4931 | /** |
| 4932 | * Creates an object representation of this proto. |
| 4933 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 4934 | * Optional fields that are not set will be set to undefined. |
| 4935 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 4936 | * For the list of reserved names please see: |
| 4937 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 4938 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 4939 | * JSPB instance for transitional soy proto support: |
| 4940 | * http://goto/soy-param-migration |
| 4941 | * @return {!Object} |
| 4942 | */ |
| 4943 | proto.google.protobuf.MethodDescriptorProto.prototype.toObject = function(opt_includeInstance) { |
| 4944 | return proto.google.protobuf.MethodDescriptorProto.toObject(opt_includeInstance, this); |
| 4945 | }; |
| 4946 | |
| 4947 | |
| 4948 | /** |
| 4949 | * Static version of the {@see toObject} method. |
| 4950 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 4951 | * the JSPB instance for transitional soy proto support: |
| 4952 | * http://goto/soy-param-migration |
| 4953 | * @param {!proto.google.protobuf.MethodDescriptorProto} msg The msg instance to transform. |
| 4954 | * @return {!Object} |
| 4955 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 4956 | */ |
| 4957 | proto.google.protobuf.MethodDescriptorProto.toObject = function(includeInstance, msg) { |
| 4958 | var f, obj = { |
| 4959 | name: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f, |
| 4960 | inputType: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f, |
| 4961 | outputType: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f, |
| 4962 | options: (f = msg.getOptions()) && proto.google.protobuf.MethodOptions.toObject(includeInstance, f), |
| 4963 | clientStreaming: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), |
| 4964 | serverStreaming: jspb.Message.getBooleanFieldWithDefault(msg, 6, false) |
| 4965 | }; |
| 4966 | |
| 4967 | if (includeInstance) { |
| 4968 | obj.$jspbMessageInstance = msg; |
| 4969 | } |
| 4970 | return obj; |
| 4971 | }; |
| 4972 | } |
| 4973 | |
| 4974 | |
| 4975 | /** |
| 4976 | * Deserializes binary data (in protobuf wire format). |
| 4977 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 4978 | * @return {!proto.google.protobuf.MethodDescriptorProto} |
| 4979 | */ |
| 4980 | proto.google.protobuf.MethodDescriptorProto.deserializeBinary = function(bytes) { |
| 4981 | var reader = new jspb.BinaryReader(bytes); |
| 4982 | var msg = new proto.google.protobuf.MethodDescriptorProto; |
| 4983 | return proto.google.protobuf.MethodDescriptorProto.deserializeBinaryFromReader(msg, reader); |
| 4984 | }; |
| 4985 | |
| 4986 | |
| 4987 | /** |
| 4988 | * Deserializes binary data (in protobuf wire format) from the |
| 4989 | * given reader into the given message object. |
| 4990 | * @param {!proto.google.protobuf.MethodDescriptorProto} msg The message object to deserialize into. |
| 4991 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 4992 | * @return {!proto.google.protobuf.MethodDescriptorProto} |
| 4993 | */ |
| 4994 | proto.google.protobuf.MethodDescriptorProto.deserializeBinaryFromReader = function(msg, reader) { |
| 4995 | while (reader.nextField()) { |
| 4996 | if (reader.isEndGroup()) { |
| 4997 | break; |
| 4998 | } |
| 4999 | var field = reader.getFieldNumber(); |
| 5000 | switch (field) { |
| 5001 | case 1: |
| 5002 | var value = /** @type {string} */ (reader.readString()); |
| 5003 | msg.setName(value); |
| 5004 | break; |
| 5005 | case 2: |
| 5006 | var value = /** @type {string} */ (reader.readString()); |
| 5007 | msg.setInputType(value); |
| 5008 | break; |
| 5009 | case 3: |
| 5010 | var value = /** @type {string} */ (reader.readString()); |
| 5011 | msg.setOutputType(value); |
| 5012 | break; |
| 5013 | case 4: |
| 5014 | var value = new proto.google.protobuf.MethodOptions; |
| 5015 | reader.readMessage(value,proto.google.protobuf.MethodOptions.deserializeBinaryFromReader); |
| 5016 | msg.setOptions(value); |
| 5017 | break; |
| 5018 | case 5: |
| 5019 | var value = /** @type {boolean} */ (reader.readBool()); |
| 5020 | msg.setClientStreaming(value); |
| 5021 | break; |
| 5022 | case 6: |
| 5023 | var value = /** @type {boolean} */ (reader.readBool()); |
| 5024 | msg.setServerStreaming(value); |
| 5025 | break; |
| 5026 | default: |
| 5027 | reader.skipField(); |
| 5028 | break; |
| 5029 | } |
| 5030 | } |
| 5031 | return msg; |
| 5032 | }; |
| 5033 | |
| 5034 | |
| 5035 | /** |
| 5036 | * Serializes the message to binary data (in protobuf wire format). |
| 5037 | * @return {!Uint8Array} |
| 5038 | */ |
| 5039 | proto.google.protobuf.MethodDescriptorProto.prototype.serializeBinary = function() { |
| 5040 | var writer = new jspb.BinaryWriter(); |
| 5041 | proto.google.protobuf.MethodDescriptorProto.serializeBinaryToWriter(this, writer); |
| 5042 | return writer.getResultBuffer(); |
| 5043 | }; |
| 5044 | |
| 5045 | |
| 5046 | /** |
| 5047 | * Serializes the given message to binary data (in protobuf wire |
| 5048 | * format), writing to the given BinaryWriter. |
| 5049 | * @param {!proto.google.protobuf.MethodDescriptorProto} message |
| 5050 | * @param {!jspb.BinaryWriter} writer |
| 5051 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 5052 | */ |
| 5053 | proto.google.protobuf.MethodDescriptorProto.serializeBinaryToWriter = function(message, writer) { |
| 5054 | var f = undefined; |
| 5055 | f = /** @type {string} */ (jspb.Message.getField(message, 1)); |
| 5056 | if (f != null) { |
| 5057 | writer.writeString( |
| 5058 | 1, |
| 5059 | f |
| 5060 | ); |
| 5061 | } |
| 5062 | f = /** @type {string} */ (jspb.Message.getField(message, 2)); |
| 5063 | if (f != null) { |
| 5064 | writer.writeString( |
| 5065 | 2, |
| 5066 | f |
| 5067 | ); |
| 5068 | } |
| 5069 | f = /** @type {string} */ (jspb.Message.getField(message, 3)); |
| 5070 | if (f != null) { |
| 5071 | writer.writeString( |
| 5072 | 3, |
| 5073 | f |
| 5074 | ); |
| 5075 | } |
| 5076 | f = message.getOptions(); |
| 5077 | if (f != null) { |
| 5078 | writer.writeMessage( |
| 5079 | 4, |
| 5080 | f, |
| 5081 | proto.google.protobuf.MethodOptions.serializeBinaryToWriter |
| 5082 | ); |
| 5083 | } |
| 5084 | f = /** @type {boolean} */ (jspb.Message.getField(message, 5)); |
| 5085 | if (f != null) { |
| 5086 | writer.writeBool( |
| 5087 | 5, |
| 5088 | f |
| 5089 | ); |
| 5090 | } |
| 5091 | f = /** @type {boolean} */ (jspb.Message.getField(message, 6)); |
| 5092 | if (f != null) { |
| 5093 | writer.writeBool( |
| 5094 | 6, |
| 5095 | f |
| 5096 | ); |
| 5097 | } |
| 5098 | }; |
| 5099 | |
| 5100 | |
| 5101 | /** |
| 5102 | * optional string name = 1; |
| 5103 | * @return {string} |
| 5104 | */ |
| 5105 | proto.google.protobuf.MethodDescriptorProto.prototype.getName = function() { |
| 5106 | return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); |
| 5107 | }; |
| 5108 | |
| 5109 | |
| 5110 | /** |
| 5111 | * @param {string} value |
| 5112 | * @return {!proto.google.protobuf.MethodDescriptorProto} returns this |
| 5113 | */ |
| 5114 | proto.google.protobuf.MethodDescriptorProto.prototype.setName = function(value) { |
| 5115 | return jspb.Message.setField(this, 1, value); |
| 5116 | }; |
| 5117 | |
| 5118 | |
| 5119 | /** |
| 5120 | * Clears the field making it undefined. |
| 5121 | * @return {!proto.google.protobuf.MethodDescriptorProto} returns this |
| 5122 | */ |
| 5123 | proto.google.protobuf.MethodDescriptorProto.prototype.clearName = function() { |
| 5124 | return jspb.Message.setField(this, 1, undefined); |
| 5125 | }; |
| 5126 | |
| 5127 | |
| 5128 | /** |
| 5129 | * Returns whether this field is set. |
| 5130 | * @return {boolean} |
| 5131 | */ |
| 5132 | proto.google.protobuf.MethodDescriptorProto.prototype.hasName = function() { |
| 5133 | return jspb.Message.getField(this, 1) != null; |
| 5134 | }; |
| 5135 | |
| 5136 | |
| 5137 | /** |
| 5138 | * optional string input_type = 2; |
| 5139 | * @return {string} |
| 5140 | */ |
| 5141 | proto.google.protobuf.MethodDescriptorProto.prototype.getInputType = function() { |
| 5142 | return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); |
| 5143 | }; |
| 5144 | |
| 5145 | |
| 5146 | /** |
| 5147 | * @param {string} value |
| 5148 | * @return {!proto.google.protobuf.MethodDescriptorProto} returns this |
| 5149 | */ |
| 5150 | proto.google.protobuf.MethodDescriptorProto.prototype.setInputType = function(value) { |
| 5151 | return jspb.Message.setField(this, 2, value); |
| 5152 | }; |
| 5153 | |
| 5154 | |
| 5155 | /** |
| 5156 | * Clears the field making it undefined. |
| 5157 | * @return {!proto.google.protobuf.MethodDescriptorProto} returns this |
| 5158 | */ |
| 5159 | proto.google.protobuf.MethodDescriptorProto.prototype.clearInputType = function() { |
| 5160 | return jspb.Message.setField(this, 2, undefined); |
| 5161 | }; |
| 5162 | |
| 5163 | |
| 5164 | /** |
| 5165 | * Returns whether this field is set. |
| 5166 | * @return {boolean} |
| 5167 | */ |
| 5168 | proto.google.protobuf.MethodDescriptorProto.prototype.hasInputType = function() { |
| 5169 | return jspb.Message.getField(this, 2) != null; |
| 5170 | }; |
| 5171 | |
| 5172 | |
| 5173 | /** |
| 5174 | * optional string output_type = 3; |
| 5175 | * @return {string} |
| 5176 | */ |
| 5177 | proto.google.protobuf.MethodDescriptorProto.prototype.getOutputType = function() { |
| 5178 | return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); |
| 5179 | }; |
| 5180 | |
| 5181 | |
| 5182 | /** |
| 5183 | * @param {string} value |
| 5184 | * @return {!proto.google.protobuf.MethodDescriptorProto} returns this |
| 5185 | */ |
| 5186 | proto.google.protobuf.MethodDescriptorProto.prototype.setOutputType = function(value) { |
| 5187 | return jspb.Message.setField(this, 3, value); |
| 5188 | }; |
| 5189 | |
| 5190 | |
| 5191 | /** |
| 5192 | * Clears the field making it undefined. |
| 5193 | * @return {!proto.google.protobuf.MethodDescriptorProto} returns this |
| 5194 | */ |
| 5195 | proto.google.protobuf.MethodDescriptorProto.prototype.clearOutputType = function() { |
| 5196 | return jspb.Message.setField(this, 3, undefined); |
| 5197 | }; |
| 5198 | |
| 5199 | |
| 5200 | /** |
| 5201 | * Returns whether this field is set. |
| 5202 | * @return {boolean} |
| 5203 | */ |
| 5204 | proto.google.protobuf.MethodDescriptorProto.prototype.hasOutputType = function() { |
| 5205 | return jspb.Message.getField(this, 3) != null; |
| 5206 | }; |
| 5207 | |
| 5208 | |
| 5209 | /** |
| 5210 | * optional MethodOptions options = 4; |
| 5211 | * @return {?proto.google.protobuf.MethodOptions} |
| 5212 | */ |
| 5213 | proto.google.protobuf.MethodDescriptorProto.prototype.getOptions = function() { |
| 5214 | return /** @type{?proto.google.protobuf.MethodOptions} */ ( |
| 5215 | jspb.Message.getWrapperField(this, proto.google.protobuf.MethodOptions, 4)); |
| 5216 | }; |
| 5217 | |
| 5218 | |
| 5219 | /** |
| 5220 | * @param {?proto.google.protobuf.MethodOptions|undefined} value |
| 5221 | * @return {!proto.google.protobuf.MethodDescriptorProto} returns this |
| 5222 | */ |
| 5223 | proto.google.protobuf.MethodDescriptorProto.prototype.setOptions = function(value) { |
| 5224 | return jspb.Message.setWrapperField(this, 4, value); |
| 5225 | }; |
| 5226 | |
| 5227 | |
| 5228 | /** |
| 5229 | * Clears the message field making it undefined. |
| 5230 | * @return {!proto.google.protobuf.MethodDescriptorProto} returns this |
| 5231 | */ |
| 5232 | proto.google.protobuf.MethodDescriptorProto.prototype.clearOptions = function() { |
| 5233 | return this.setOptions(undefined); |
| 5234 | }; |
| 5235 | |
| 5236 | |
| 5237 | /** |
| 5238 | * Returns whether this field is set. |
| 5239 | * @return {boolean} |
| 5240 | */ |
| 5241 | proto.google.protobuf.MethodDescriptorProto.prototype.hasOptions = function() { |
| 5242 | return jspb.Message.getField(this, 4) != null; |
| 5243 | }; |
| 5244 | |
| 5245 | |
| 5246 | /** |
| 5247 | * optional bool client_streaming = 5; |
| 5248 | * @return {boolean} |
| 5249 | */ |
| 5250 | proto.google.protobuf.MethodDescriptorProto.prototype.getClientStreaming = function() { |
| 5251 | return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); |
| 5252 | }; |
| 5253 | |
| 5254 | |
| 5255 | /** |
| 5256 | * @param {boolean} value |
| 5257 | * @return {!proto.google.protobuf.MethodDescriptorProto} returns this |
| 5258 | */ |
| 5259 | proto.google.protobuf.MethodDescriptorProto.prototype.setClientStreaming = function(value) { |
| 5260 | return jspb.Message.setField(this, 5, value); |
| 5261 | }; |
| 5262 | |
| 5263 | |
| 5264 | /** |
| 5265 | * Clears the field making it undefined. |
| 5266 | * @return {!proto.google.protobuf.MethodDescriptorProto} returns this |
| 5267 | */ |
| 5268 | proto.google.protobuf.MethodDescriptorProto.prototype.clearClientStreaming = function() { |
| 5269 | return jspb.Message.setField(this, 5, undefined); |
| 5270 | }; |
| 5271 | |
| 5272 | |
| 5273 | /** |
| 5274 | * Returns whether this field is set. |
| 5275 | * @return {boolean} |
| 5276 | */ |
| 5277 | proto.google.protobuf.MethodDescriptorProto.prototype.hasClientStreaming = function() { |
| 5278 | return jspb.Message.getField(this, 5) != null; |
| 5279 | }; |
| 5280 | |
| 5281 | |
| 5282 | /** |
| 5283 | * optional bool server_streaming = 6; |
| 5284 | * @return {boolean} |
| 5285 | */ |
| 5286 | proto.google.protobuf.MethodDescriptorProto.prototype.getServerStreaming = function() { |
| 5287 | return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); |
| 5288 | }; |
| 5289 | |
| 5290 | |
| 5291 | /** |
| 5292 | * @param {boolean} value |
| 5293 | * @return {!proto.google.protobuf.MethodDescriptorProto} returns this |
| 5294 | */ |
| 5295 | proto.google.protobuf.MethodDescriptorProto.prototype.setServerStreaming = function(value) { |
| 5296 | return jspb.Message.setField(this, 6, value); |
| 5297 | }; |
| 5298 | |
| 5299 | |
| 5300 | /** |
| 5301 | * Clears the field making it undefined. |
| 5302 | * @return {!proto.google.protobuf.MethodDescriptorProto} returns this |
| 5303 | */ |
| 5304 | proto.google.protobuf.MethodDescriptorProto.prototype.clearServerStreaming = function() { |
| 5305 | return jspb.Message.setField(this, 6, undefined); |
| 5306 | }; |
| 5307 | |
| 5308 | |
| 5309 | /** |
| 5310 | * Returns whether this field is set. |
| 5311 | * @return {boolean} |
| 5312 | */ |
| 5313 | proto.google.protobuf.MethodDescriptorProto.prototype.hasServerStreaming = function() { |
| 5314 | return jspb.Message.getField(this, 6) != null; |
| 5315 | }; |
| 5316 | |
| 5317 | |
| 5318 | |
| 5319 | /** |
| 5320 | * List of repeated fields within this message type. |
| 5321 | * @private {!Array<number>} |
| 5322 | * @const |
| 5323 | */ |
| 5324 | proto.google.protobuf.FileOptions.repeatedFields_ = [999]; |
| 5325 | |
| 5326 | |
| 5327 | |
| 5328 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 5329 | /** |
| 5330 | * Creates an object representation of this proto. |
| 5331 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 5332 | * Optional fields that are not set will be set to undefined. |
| 5333 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 5334 | * For the list of reserved names please see: |
| 5335 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 5336 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 5337 | * JSPB instance for transitional soy proto support: |
| 5338 | * http://goto/soy-param-migration |
| 5339 | * @return {!Object} |
| 5340 | */ |
| 5341 | proto.google.protobuf.FileOptions.prototype.toObject = function(opt_includeInstance) { |
| 5342 | return proto.google.protobuf.FileOptions.toObject(opt_includeInstance, this); |
| 5343 | }; |
| 5344 | |
| 5345 | |
| 5346 | /** |
| 5347 | * Static version of the {@see toObject} method. |
| 5348 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 5349 | * the JSPB instance for transitional soy proto support: |
| 5350 | * http://goto/soy-param-migration |
| 5351 | * @param {!proto.google.protobuf.FileOptions} msg The msg instance to transform. |
| 5352 | * @return {!Object} |
| 5353 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 5354 | */ |
| 5355 | proto.google.protobuf.FileOptions.toObject = function(includeInstance, msg) { |
| 5356 | var f, obj = { |
| 5357 | javaPackage: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f, |
| 5358 | javaOuterClassname: (f = jspb.Message.getField(msg, 8)) == null ? undefined : f, |
| 5359 | javaMultipleFiles: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), |
| 5360 | javaGenerateEqualsAndHash: (f = jspb.Message.getBooleanField(msg, 20)) == null ? undefined : f, |
| 5361 | javaStringCheckUtf8: jspb.Message.getBooleanFieldWithDefault(msg, 27, false), |
| 5362 | optimizeFor: jspb.Message.getFieldWithDefault(msg, 9, 1), |
| 5363 | goPackage: (f = jspb.Message.getField(msg, 11)) == null ? undefined : f, |
| 5364 | ccGenericServices: jspb.Message.getBooleanFieldWithDefault(msg, 16, false), |
| 5365 | javaGenericServices: jspb.Message.getBooleanFieldWithDefault(msg, 17, false), |
| 5366 | pyGenericServices: jspb.Message.getBooleanFieldWithDefault(msg, 18, false), |
| 5367 | phpGenericServices: jspb.Message.getBooleanFieldWithDefault(msg, 42, false), |
| 5368 | deprecated: jspb.Message.getBooleanFieldWithDefault(msg, 23, false), |
| 5369 | ccEnableArenas: jspb.Message.getBooleanFieldWithDefault(msg, 31, true), |
| 5370 | objcClassPrefix: (f = jspb.Message.getField(msg, 36)) == null ? undefined : f, |
| 5371 | csharpNamespace: (f = jspb.Message.getField(msg, 37)) == null ? undefined : f, |
| 5372 | swiftPrefix: (f = jspb.Message.getField(msg, 39)) == null ? undefined : f, |
| 5373 | phpClassPrefix: (f = jspb.Message.getField(msg, 40)) == null ? undefined : f, |
| 5374 | phpNamespace: (f = jspb.Message.getField(msg, 41)) == null ? undefined : f, |
| 5375 | phpMetadataNamespace: (f = jspb.Message.getField(msg, 44)) == null ? undefined : f, |
| 5376 | rubyPackage: (f = jspb.Message.getField(msg, 45)) == null ? undefined : f, |
| 5377 | uninterpretedOptionList: jspb.Message.toObjectList(msg.getUninterpretedOptionList(), |
| 5378 | proto.google.protobuf.UninterpretedOption.toObject, includeInstance) |
| 5379 | }; |
| 5380 | |
| 5381 | jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj, |
| 5382 | proto.google.protobuf.FileOptions.extensions, proto.google.protobuf.FileOptions.prototype.getExtension, |
| 5383 | includeInstance); |
| 5384 | if (includeInstance) { |
| 5385 | obj.$jspbMessageInstance = msg; |
| 5386 | } |
| 5387 | return obj; |
| 5388 | }; |
| 5389 | } |
| 5390 | |
| 5391 | |
| 5392 | /** |
| 5393 | * Deserializes binary data (in protobuf wire format). |
| 5394 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 5395 | * @return {!proto.google.protobuf.FileOptions} |
| 5396 | */ |
| 5397 | proto.google.protobuf.FileOptions.deserializeBinary = function(bytes) { |
| 5398 | var reader = new jspb.BinaryReader(bytes); |
| 5399 | var msg = new proto.google.protobuf.FileOptions; |
| 5400 | return proto.google.protobuf.FileOptions.deserializeBinaryFromReader(msg, reader); |
| 5401 | }; |
| 5402 | |
| 5403 | |
| 5404 | /** |
| 5405 | * Deserializes binary data (in protobuf wire format) from the |
| 5406 | * given reader into the given message object. |
| 5407 | * @param {!proto.google.protobuf.FileOptions} msg The message object to deserialize into. |
| 5408 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 5409 | * @return {!proto.google.protobuf.FileOptions} |
| 5410 | */ |
| 5411 | proto.google.protobuf.FileOptions.deserializeBinaryFromReader = function(msg, reader) { |
| 5412 | while (reader.nextField()) { |
| 5413 | if (reader.isEndGroup()) { |
| 5414 | break; |
| 5415 | } |
| 5416 | var field = reader.getFieldNumber(); |
| 5417 | switch (field) { |
| 5418 | case 1: |
| 5419 | var value = /** @type {string} */ (reader.readString()); |
| 5420 | msg.setJavaPackage(value); |
| 5421 | break; |
| 5422 | case 8: |
| 5423 | var value = /** @type {string} */ (reader.readString()); |
| 5424 | msg.setJavaOuterClassname(value); |
| 5425 | break; |
| 5426 | case 10: |
| 5427 | var value = /** @type {boolean} */ (reader.readBool()); |
| 5428 | msg.setJavaMultipleFiles(value); |
| 5429 | break; |
| 5430 | case 20: |
| 5431 | var value = /** @type {boolean} */ (reader.readBool()); |
| 5432 | msg.setJavaGenerateEqualsAndHash(value); |
| 5433 | break; |
| 5434 | case 27: |
| 5435 | var value = /** @type {boolean} */ (reader.readBool()); |
| 5436 | msg.setJavaStringCheckUtf8(value); |
| 5437 | break; |
| 5438 | case 9: |
| 5439 | var value = /** @type {!proto.google.protobuf.FileOptions.OptimizeMode} */ (reader.readEnum()); |
| 5440 | msg.setOptimizeFor(value); |
| 5441 | break; |
| 5442 | case 11: |
| 5443 | var value = /** @type {string} */ (reader.readString()); |
| 5444 | msg.setGoPackage(value); |
| 5445 | break; |
| 5446 | case 16: |
| 5447 | var value = /** @type {boolean} */ (reader.readBool()); |
| 5448 | msg.setCcGenericServices(value); |
| 5449 | break; |
| 5450 | case 17: |
| 5451 | var value = /** @type {boolean} */ (reader.readBool()); |
| 5452 | msg.setJavaGenericServices(value); |
| 5453 | break; |
| 5454 | case 18: |
| 5455 | var value = /** @type {boolean} */ (reader.readBool()); |
| 5456 | msg.setPyGenericServices(value); |
| 5457 | break; |
| 5458 | case 42: |
| 5459 | var value = /** @type {boolean} */ (reader.readBool()); |
| 5460 | msg.setPhpGenericServices(value); |
| 5461 | break; |
| 5462 | case 23: |
| 5463 | var value = /** @type {boolean} */ (reader.readBool()); |
| 5464 | msg.setDeprecated(value); |
| 5465 | break; |
| 5466 | case 31: |
| 5467 | var value = /** @type {boolean} */ (reader.readBool()); |
| 5468 | msg.setCcEnableArenas(value); |
| 5469 | break; |
| 5470 | case 36: |
| 5471 | var value = /** @type {string} */ (reader.readString()); |
| 5472 | msg.setObjcClassPrefix(value); |
| 5473 | break; |
| 5474 | case 37: |
| 5475 | var value = /** @type {string} */ (reader.readString()); |
| 5476 | msg.setCsharpNamespace(value); |
| 5477 | break; |
| 5478 | case 39: |
| 5479 | var value = /** @type {string} */ (reader.readString()); |
| 5480 | msg.setSwiftPrefix(value); |
| 5481 | break; |
| 5482 | case 40: |
| 5483 | var value = /** @type {string} */ (reader.readString()); |
| 5484 | msg.setPhpClassPrefix(value); |
| 5485 | break; |
| 5486 | case 41: |
| 5487 | var value = /** @type {string} */ (reader.readString()); |
| 5488 | msg.setPhpNamespace(value); |
| 5489 | break; |
| 5490 | case 44: |
| 5491 | var value = /** @type {string} */ (reader.readString()); |
| 5492 | msg.setPhpMetadataNamespace(value); |
| 5493 | break; |
| 5494 | case 45: |
| 5495 | var value = /** @type {string} */ (reader.readString()); |
| 5496 | msg.setRubyPackage(value); |
| 5497 | break; |
| 5498 | case 999: |
| 5499 | var value = new proto.google.protobuf.UninterpretedOption; |
| 5500 | reader.readMessage(value,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader); |
| 5501 | msg.addUninterpretedOption(value); |
| 5502 | break; |
| 5503 | default: |
| 5504 | jspb.Message.readBinaryExtension(msg, reader, |
| 5505 | proto.google.protobuf.FileOptions.extensionsBinary, |
| 5506 | proto.google.protobuf.FileOptions.prototype.getExtension, |
| 5507 | proto.google.protobuf.FileOptions.prototype.setExtension); |
| 5508 | break; |
| 5509 | } |
| 5510 | } |
| 5511 | return msg; |
| 5512 | }; |
| 5513 | |
| 5514 | |
| 5515 | /** |
| 5516 | * Serializes the message to binary data (in protobuf wire format). |
| 5517 | * @return {!Uint8Array} |
| 5518 | */ |
| 5519 | proto.google.protobuf.FileOptions.prototype.serializeBinary = function() { |
| 5520 | var writer = new jspb.BinaryWriter(); |
| 5521 | proto.google.protobuf.FileOptions.serializeBinaryToWriter(this, writer); |
| 5522 | return writer.getResultBuffer(); |
| 5523 | }; |
| 5524 | |
| 5525 | |
| 5526 | /** |
| 5527 | * Serializes the given message to binary data (in protobuf wire |
| 5528 | * format), writing to the given BinaryWriter. |
| 5529 | * @param {!proto.google.protobuf.FileOptions} message |
| 5530 | * @param {!jspb.BinaryWriter} writer |
| 5531 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 5532 | */ |
| 5533 | proto.google.protobuf.FileOptions.serializeBinaryToWriter = function(message, writer) { |
| 5534 | var f = undefined; |
| 5535 | f = /** @type {string} */ (jspb.Message.getField(message, 1)); |
| 5536 | if (f != null) { |
| 5537 | writer.writeString( |
| 5538 | 1, |
| 5539 | f |
| 5540 | ); |
| 5541 | } |
| 5542 | f = /** @type {string} */ (jspb.Message.getField(message, 8)); |
| 5543 | if (f != null) { |
| 5544 | writer.writeString( |
| 5545 | 8, |
| 5546 | f |
| 5547 | ); |
| 5548 | } |
| 5549 | f = /** @type {boolean} */ (jspb.Message.getField(message, 10)); |
| 5550 | if (f != null) { |
| 5551 | writer.writeBool( |
| 5552 | 10, |
| 5553 | f |
| 5554 | ); |
| 5555 | } |
| 5556 | f = /** @type {boolean} */ (jspb.Message.getField(message, 20)); |
| 5557 | if (f != null) { |
| 5558 | writer.writeBool( |
| 5559 | 20, |
| 5560 | f |
| 5561 | ); |
| 5562 | } |
| 5563 | f = /** @type {boolean} */ (jspb.Message.getField(message, 27)); |
| 5564 | if (f != null) { |
| 5565 | writer.writeBool( |
| 5566 | 27, |
| 5567 | f |
| 5568 | ); |
| 5569 | } |
| 5570 | f = /** @type {!proto.google.protobuf.FileOptions.OptimizeMode} */ (jspb.Message.getField(message, 9)); |
| 5571 | if (f != null) { |
| 5572 | writer.writeEnum( |
| 5573 | 9, |
| 5574 | f |
| 5575 | ); |
| 5576 | } |
| 5577 | f = /** @type {string} */ (jspb.Message.getField(message, 11)); |
| 5578 | if (f != null) { |
| 5579 | writer.writeString( |
| 5580 | 11, |
| 5581 | f |
| 5582 | ); |
| 5583 | } |
| 5584 | f = /** @type {boolean} */ (jspb.Message.getField(message, 16)); |
| 5585 | if (f != null) { |
| 5586 | writer.writeBool( |
| 5587 | 16, |
| 5588 | f |
| 5589 | ); |
| 5590 | } |
| 5591 | f = /** @type {boolean} */ (jspb.Message.getField(message, 17)); |
| 5592 | if (f != null) { |
| 5593 | writer.writeBool( |
| 5594 | 17, |
| 5595 | f |
| 5596 | ); |
| 5597 | } |
| 5598 | f = /** @type {boolean} */ (jspb.Message.getField(message, 18)); |
| 5599 | if (f != null) { |
| 5600 | writer.writeBool( |
| 5601 | 18, |
| 5602 | f |
| 5603 | ); |
| 5604 | } |
| 5605 | f = /** @type {boolean} */ (jspb.Message.getField(message, 42)); |
| 5606 | if (f != null) { |
| 5607 | writer.writeBool( |
| 5608 | 42, |
| 5609 | f |
| 5610 | ); |
| 5611 | } |
| 5612 | f = /** @type {boolean} */ (jspb.Message.getField(message, 23)); |
| 5613 | if (f != null) { |
| 5614 | writer.writeBool( |
| 5615 | 23, |
| 5616 | f |
| 5617 | ); |
| 5618 | } |
| 5619 | f = /** @type {boolean} */ (jspb.Message.getField(message, 31)); |
| 5620 | if (f != null) { |
| 5621 | writer.writeBool( |
| 5622 | 31, |
| 5623 | f |
| 5624 | ); |
| 5625 | } |
| 5626 | f = /** @type {string} */ (jspb.Message.getField(message, 36)); |
| 5627 | if (f != null) { |
| 5628 | writer.writeString( |
| 5629 | 36, |
| 5630 | f |
| 5631 | ); |
| 5632 | } |
| 5633 | f = /** @type {string} */ (jspb.Message.getField(message, 37)); |
| 5634 | if (f != null) { |
| 5635 | writer.writeString( |
| 5636 | 37, |
| 5637 | f |
| 5638 | ); |
| 5639 | } |
| 5640 | f = /** @type {string} */ (jspb.Message.getField(message, 39)); |
| 5641 | if (f != null) { |
| 5642 | writer.writeString( |
| 5643 | 39, |
| 5644 | f |
| 5645 | ); |
| 5646 | } |
| 5647 | f = /** @type {string} */ (jspb.Message.getField(message, 40)); |
| 5648 | if (f != null) { |
| 5649 | writer.writeString( |
| 5650 | 40, |
| 5651 | f |
| 5652 | ); |
| 5653 | } |
| 5654 | f = /** @type {string} */ (jspb.Message.getField(message, 41)); |
| 5655 | if (f != null) { |
| 5656 | writer.writeString( |
| 5657 | 41, |
| 5658 | f |
| 5659 | ); |
| 5660 | } |
| 5661 | f = /** @type {string} */ (jspb.Message.getField(message, 44)); |
| 5662 | if (f != null) { |
| 5663 | writer.writeString( |
| 5664 | 44, |
| 5665 | f |
| 5666 | ); |
| 5667 | } |
| 5668 | f = /** @type {string} */ (jspb.Message.getField(message, 45)); |
| 5669 | if (f != null) { |
| 5670 | writer.writeString( |
| 5671 | 45, |
| 5672 | f |
| 5673 | ); |
| 5674 | } |
| 5675 | f = message.getUninterpretedOptionList(); |
| 5676 | if (f.length > 0) { |
| 5677 | writer.writeRepeatedMessage( |
| 5678 | 999, |
| 5679 | f, |
| 5680 | proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter |
| 5681 | ); |
| 5682 | } |
| 5683 | jspb.Message.serializeBinaryExtensions(message, writer, |
| 5684 | proto.google.protobuf.FileOptions.extensionsBinary, proto.google.protobuf.FileOptions.prototype.getExtension); |
| 5685 | }; |
| 5686 | |
| 5687 | |
| 5688 | /** |
| 5689 | * @enum {number} |
| 5690 | */ |
| 5691 | proto.google.protobuf.FileOptions.OptimizeMode = { |
| 5692 | SPEED: 1, |
| 5693 | CODE_SIZE: 2, |
| 5694 | LITE_RUNTIME: 3 |
| 5695 | }; |
| 5696 | |
| 5697 | /** |
| 5698 | * optional string java_package = 1; |
| 5699 | * @return {string} |
| 5700 | */ |
| 5701 | proto.google.protobuf.FileOptions.prototype.getJavaPackage = function() { |
| 5702 | return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); |
| 5703 | }; |
| 5704 | |
| 5705 | |
| 5706 | /** |
| 5707 | * @param {string} value |
| 5708 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 5709 | */ |
| 5710 | proto.google.protobuf.FileOptions.prototype.setJavaPackage = function(value) { |
| 5711 | return jspb.Message.setField(this, 1, value); |
| 5712 | }; |
| 5713 | |
| 5714 | |
| 5715 | /** |
| 5716 | * Clears the field making it undefined. |
| 5717 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 5718 | */ |
| 5719 | proto.google.protobuf.FileOptions.prototype.clearJavaPackage = function() { |
| 5720 | return jspb.Message.setField(this, 1, undefined); |
| 5721 | }; |
| 5722 | |
| 5723 | |
| 5724 | /** |
| 5725 | * Returns whether this field is set. |
| 5726 | * @return {boolean} |
| 5727 | */ |
| 5728 | proto.google.protobuf.FileOptions.prototype.hasJavaPackage = function() { |
| 5729 | return jspb.Message.getField(this, 1) != null; |
| 5730 | }; |
| 5731 | |
| 5732 | |
| 5733 | /** |
| 5734 | * optional string java_outer_classname = 8; |
| 5735 | * @return {string} |
| 5736 | */ |
| 5737 | proto.google.protobuf.FileOptions.prototype.getJavaOuterClassname = function() { |
| 5738 | return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); |
| 5739 | }; |
| 5740 | |
| 5741 | |
| 5742 | /** |
| 5743 | * @param {string} value |
| 5744 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 5745 | */ |
| 5746 | proto.google.protobuf.FileOptions.prototype.setJavaOuterClassname = function(value) { |
| 5747 | return jspb.Message.setField(this, 8, value); |
| 5748 | }; |
| 5749 | |
| 5750 | |
| 5751 | /** |
| 5752 | * Clears the field making it undefined. |
| 5753 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 5754 | */ |
| 5755 | proto.google.protobuf.FileOptions.prototype.clearJavaOuterClassname = function() { |
| 5756 | return jspb.Message.setField(this, 8, undefined); |
| 5757 | }; |
| 5758 | |
| 5759 | |
| 5760 | /** |
| 5761 | * Returns whether this field is set. |
| 5762 | * @return {boolean} |
| 5763 | */ |
| 5764 | proto.google.protobuf.FileOptions.prototype.hasJavaOuterClassname = function() { |
| 5765 | return jspb.Message.getField(this, 8) != null; |
| 5766 | }; |
| 5767 | |
| 5768 | |
| 5769 | /** |
| 5770 | * optional bool java_multiple_files = 10; |
| 5771 | * @return {boolean} |
| 5772 | */ |
| 5773 | proto.google.protobuf.FileOptions.prototype.getJavaMultipleFiles = function() { |
| 5774 | return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); |
| 5775 | }; |
| 5776 | |
| 5777 | |
| 5778 | /** |
| 5779 | * @param {boolean} value |
| 5780 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 5781 | */ |
| 5782 | proto.google.protobuf.FileOptions.prototype.setJavaMultipleFiles = function(value) { |
| 5783 | return jspb.Message.setField(this, 10, value); |
| 5784 | }; |
| 5785 | |
| 5786 | |
| 5787 | /** |
| 5788 | * Clears the field making it undefined. |
| 5789 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 5790 | */ |
| 5791 | proto.google.protobuf.FileOptions.prototype.clearJavaMultipleFiles = function() { |
| 5792 | return jspb.Message.setField(this, 10, undefined); |
| 5793 | }; |
| 5794 | |
| 5795 | |
| 5796 | /** |
| 5797 | * Returns whether this field is set. |
| 5798 | * @return {boolean} |
| 5799 | */ |
| 5800 | proto.google.protobuf.FileOptions.prototype.hasJavaMultipleFiles = function() { |
| 5801 | return jspb.Message.getField(this, 10) != null; |
| 5802 | }; |
| 5803 | |
| 5804 | |
| 5805 | /** |
| 5806 | * optional bool java_generate_equals_and_hash = 20; |
| 5807 | * @return {boolean} |
| 5808 | */ |
| 5809 | proto.google.protobuf.FileOptions.prototype.getJavaGenerateEqualsAndHash = function() { |
| 5810 | return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 20, false)); |
| 5811 | }; |
| 5812 | |
| 5813 | |
| 5814 | /** |
| 5815 | * @param {boolean} value |
| 5816 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 5817 | */ |
| 5818 | proto.google.protobuf.FileOptions.prototype.setJavaGenerateEqualsAndHash = function(value) { |
| 5819 | return jspb.Message.setField(this, 20, value); |
| 5820 | }; |
| 5821 | |
| 5822 | |
| 5823 | /** |
| 5824 | * Clears the field making it undefined. |
| 5825 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 5826 | */ |
| 5827 | proto.google.protobuf.FileOptions.prototype.clearJavaGenerateEqualsAndHash = function() { |
| 5828 | return jspb.Message.setField(this, 20, undefined); |
| 5829 | }; |
| 5830 | |
| 5831 | |
| 5832 | /** |
| 5833 | * Returns whether this field is set. |
| 5834 | * @return {boolean} |
| 5835 | */ |
| 5836 | proto.google.protobuf.FileOptions.prototype.hasJavaGenerateEqualsAndHash = function() { |
| 5837 | return jspb.Message.getField(this, 20) != null; |
| 5838 | }; |
| 5839 | |
| 5840 | |
| 5841 | /** |
| 5842 | * optional bool java_string_check_utf8 = 27; |
| 5843 | * @return {boolean} |
| 5844 | */ |
| 5845 | proto.google.protobuf.FileOptions.prototype.getJavaStringCheckUtf8 = function() { |
| 5846 | return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 27, false)); |
| 5847 | }; |
| 5848 | |
| 5849 | |
| 5850 | /** |
| 5851 | * @param {boolean} value |
| 5852 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 5853 | */ |
| 5854 | proto.google.protobuf.FileOptions.prototype.setJavaStringCheckUtf8 = function(value) { |
| 5855 | return jspb.Message.setField(this, 27, value); |
| 5856 | }; |
| 5857 | |
| 5858 | |
| 5859 | /** |
| 5860 | * Clears the field making it undefined. |
| 5861 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 5862 | */ |
| 5863 | proto.google.protobuf.FileOptions.prototype.clearJavaStringCheckUtf8 = function() { |
| 5864 | return jspb.Message.setField(this, 27, undefined); |
| 5865 | }; |
| 5866 | |
| 5867 | |
| 5868 | /** |
| 5869 | * Returns whether this field is set. |
| 5870 | * @return {boolean} |
| 5871 | */ |
| 5872 | proto.google.protobuf.FileOptions.prototype.hasJavaStringCheckUtf8 = function() { |
| 5873 | return jspb.Message.getField(this, 27) != null; |
| 5874 | }; |
| 5875 | |
| 5876 | |
| 5877 | /** |
| 5878 | * optional OptimizeMode optimize_for = 9; |
| 5879 | * @return {!proto.google.protobuf.FileOptions.OptimizeMode} |
| 5880 | */ |
| 5881 | proto.google.protobuf.FileOptions.prototype.getOptimizeFor = function() { |
| 5882 | return /** @type {!proto.google.protobuf.FileOptions.OptimizeMode} */ (jspb.Message.getFieldWithDefault(this, 9, 1)); |
| 5883 | }; |
| 5884 | |
| 5885 | |
| 5886 | /** |
| 5887 | * @param {!proto.google.protobuf.FileOptions.OptimizeMode} value |
| 5888 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 5889 | */ |
| 5890 | proto.google.protobuf.FileOptions.prototype.setOptimizeFor = function(value) { |
| 5891 | return jspb.Message.setField(this, 9, value); |
| 5892 | }; |
| 5893 | |
| 5894 | |
| 5895 | /** |
| 5896 | * Clears the field making it undefined. |
| 5897 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 5898 | */ |
| 5899 | proto.google.protobuf.FileOptions.prototype.clearOptimizeFor = function() { |
| 5900 | return jspb.Message.setField(this, 9, undefined); |
| 5901 | }; |
| 5902 | |
| 5903 | |
| 5904 | /** |
| 5905 | * Returns whether this field is set. |
| 5906 | * @return {boolean} |
| 5907 | */ |
| 5908 | proto.google.protobuf.FileOptions.prototype.hasOptimizeFor = function() { |
| 5909 | return jspb.Message.getField(this, 9) != null; |
| 5910 | }; |
| 5911 | |
| 5912 | |
| 5913 | /** |
| 5914 | * optional string go_package = 11; |
| 5915 | * @return {string} |
| 5916 | */ |
| 5917 | proto.google.protobuf.FileOptions.prototype.getGoPackage = function() { |
| 5918 | return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); |
| 5919 | }; |
| 5920 | |
| 5921 | |
| 5922 | /** |
| 5923 | * @param {string} value |
| 5924 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 5925 | */ |
| 5926 | proto.google.protobuf.FileOptions.prototype.setGoPackage = function(value) { |
| 5927 | return jspb.Message.setField(this, 11, value); |
| 5928 | }; |
| 5929 | |
| 5930 | |
| 5931 | /** |
| 5932 | * Clears the field making it undefined. |
| 5933 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 5934 | */ |
| 5935 | proto.google.protobuf.FileOptions.prototype.clearGoPackage = function() { |
| 5936 | return jspb.Message.setField(this, 11, undefined); |
| 5937 | }; |
| 5938 | |
| 5939 | |
| 5940 | /** |
| 5941 | * Returns whether this field is set. |
| 5942 | * @return {boolean} |
| 5943 | */ |
| 5944 | proto.google.protobuf.FileOptions.prototype.hasGoPackage = function() { |
| 5945 | return jspb.Message.getField(this, 11) != null; |
| 5946 | }; |
| 5947 | |
| 5948 | |
| 5949 | /** |
| 5950 | * optional bool cc_generic_services = 16; |
| 5951 | * @return {boolean} |
| 5952 | */ |
| 5953 | proto.google.protobuf.FileOptions.prototype.getCcGenericServices = function() { |
| 5954 | return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 16, false)); |
| 5955 | }; |
| 5956 | |
| 5957 | |
| 5958 | /** |
| 5959 | * @param {boolean} value |
| 5960 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 5961 | */ |
| 5962 | proto.google.protobuf.FileOptions.prototype.setCcGenericServices = function(value) { |
| 5963 | return jspb.Message.setField(this, 16, value); |
| 5964 | }; |
| 5965 | |
| 5966 | |
| 5967 | /** |
| 5968 | * Clears the field making it undefined. |
| 5969 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 5970 | */ |
| 5971 | proto.google.protobuf.FileOptions.prototype.clearCcGenericServices = function() { |
| 5972 | return jspb.Message.setField(this, 16, undefined); |
| 5973 | }; |
| 5974 | |
| 5975 | |
| 5976 | /** |
| 5977 | * Returns whether this field is set. |
| 5978 | * @return {boolean} |
| 5979 | */ |
| 5980 | proto.google.protobuf.FileOptions.prototype.hasCcGenericServices = function() { |
| 5981 | return jspb.Message.getField(this, 16) != null; |
| 5982 | }; |
| 5983 | |
| 5984 | |
| 5985 | /** |
| 5986 | * optional bool java_generic_services = 17; |
| 5987 | * @return {boolean} |
| 5988 | */ |
| 5989 | proto.google.protobuf.FileOptions.prototype.getJavaGenericServices = function() { |
| 5990 | return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 17, false)); |
| 5991 | }; |
| 5992 | |
| 5993 | |
| 5994 | /** |
| 5995 | * @param {boolean} value |
| 5996 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 5997 | */ |
| 5998 | proto.google.protobuf.FileOptions.prototype.setJavaGenericServices = function(value) { |
| 5999 | return jspb.Message.setField(this, 17, value); |
| 6000 | }; |
| 6001 | |
| 6002 | |
| 6003 | /** |
| 6004 | * Clears the field making it undefined. |
| 6005 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 6006 | */ |
| 6007 | proto.google.protobuf.FileOptions.prototype.clearJavaGenericServices = function() { |
| 6008 | return jspb.Message.setField(this, 17, undefined); |
| 6009 | }; |
| 6010 | |
| 6011 | |
| 6012 | /** |
| 6013 | * Returns whether this field is set. |
| 6014 | * @return {boolean} |
| 6015 | */ |
| 6016 | proto.google.protobuf.FileOptions.prototype.hasJavaGenericServices = function() { |
| 6017 | return jspb.Message.getField(this, 17) != null; |
| 6018 | }; |
| 6019 | |
| 6020 | |
| 6021 | /** |
| 6022 | * optional bool py_generic_services = 18; |
| 6023 | * @return {boolean} |
| 6024 | */ |
| 6025 | proto.google.protobuf.FileOptions.prototype.getPyGenericServices = function() { |
| 6026 | return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 18, false)); |
| 6027 | }; |
| 6028 | |
| 6029 | |
| 6030 | /** |
| 6031 | * @param {boolean} value |
| 6032 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 6033 | */ |
| 6034 | proto.google.protobuf.FileOptions.prototype.setPyGenericServices = function(value) { |
| 6035 | return jspb.Message.setField(this, 18, value); |
| 6036 | }; |
| 6037 | |
| 6038 | |
| 6039 | /** |
| 6040 | * Clears the field making it undefined. |
| 6041 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 6042 | */ |
| 6043 | proto.google.protobuf.FileOptions.prototype.clearPyGenericServices = function() { |
| 6044 | return jspb.Message.setField(this, 18, undefined); |
| 6045 | }; |
| 6046 | |
| 6047 | |
| 6048 | /** |
| 6049 | * Returns whether this field is set. |
| 6050 | * @return {boolean} |
| 6051 | */ |
| 6052 | proto.google.protobuf.FileOptions.prototype.hasPyGenericServices = function() { |
| 6053 | return jspb.Message.getField(this, 18) != null; |
| 6054 | }; |
| 6055 | |
| 6056 | |
| 6057 | /** |
| 6058 | * optional bool php_generic_services = 42; |
| 6059 | * @return {boolean} |
| 6060 | */ |
| 6061 | proto.google.protobuf.FileOptions.prototype.getPhpGenericServices = function() { |
| 6062 | return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 42, false)); |
| 6063 | }; |
| 6064 | |
| 6065 | |
| 6066 | /** |
| 6067 | * @param {boolean} value |
| 6068 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 6069 | */ |
| 6070 | proto.google.protobuf.FileOptions.prototype.setPhpGenericServices = function(value) { |
| 6071 | return jspb.Message.setField(this, 42, value); |
| 6072 | }; |
| 6073 | |
| 6074 | |
| 6075 | /** |
| 6076 | * Clears the field making it undefined. |
| 6077 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 6078 | */ |
| 6079 | proto.google.protobuf.FileOptions.prototype.clearPhpGenericServices = function() { |
| 6080 | return jspb.Message.setField(this, 42, undefined); |
| 6081 | }; |
| 6082 | |
| 6083 | |
| 6084 | /** |
| 6085 | * Returns whether this field is set. |
| 6086 | * @return {boolean} |
| 6087 | */ |
| 6088 | proto.google.protobuf.FileOptions.prototype.hasPhpGenericServices = function() { |
| 6089 | return jspb.Message.getField(this, 42) != null; |
| 6090 | }; |
| 6091 | |
| 6092 | |
| 6093 | /** |
| 6094 | * optional bool deprecated = 23; |
| 6095 | * @return {boolean} |
| 6096 | */ |
| 6097 | proto.google.protobuf.FileOptions.prototype.getDeprecated = function() { |
| 6098 | return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 23, false)); |
| 6099 | }; |
| 6100 | |
| 6101 | |
| 6102 | /** |
| 6103 | * @param {boolean} value |
| 6104 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 6105 | */ |
| 6106 | proto.google.protobuf.FileOptions.prototype.setDeprecated = function(value) { |
| 6107 | return jspb.Message.setField(this, 23, value); |
| 6108 | }; |
| 6109 | |
| 6110 | |
| 6111 | /** |
| 6112 | * Clears the field making it undefined. |
| 6113 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 6114 | */ |
| 6115 | proto.google.protobuf.FileOptions.prototype.clearDeprecated = function() { |
| 6116 | return jspb.Message.setField(this, 23, undefined); |
| 6117 | }; |
| 6118 | |
| 6119 | |
| 6120 | /** |
| 6121 | * Returns whether this field is set. |
| 6122 | * @return {boolean} |
| 6123 | */ |
| 6124 | proto.google.protobuf.FileOptions.prototype.hasDeprecated = function() { |
| 6125 | return jspb.Message.getField(this, 23) != null; |
| 6126 | }; |
| 6127 | |
| 6128 | |
| 6129 | /** |
| 6130 | * optional bool cc_enable_arenas = 31; |
| 6131 | * @return {boolean} |
| 6132 | */ |
| 6133 | proto.google.protobuf.FileOptions.prototype.getCcEnableArenas = function() { |
| 6134 | return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 31, true)); |
| 6135 | }; |
| 6136 | |
| 6137 | |
| 6138 | /** |
| 6139 | * @param {boolean} value |
| 6140 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 6141 | */ |
| 6142 | proto.google.protobuf.FileOptions.prototype.setCcEnableArenas = function(value) { |
| 6143 | return jspb.Message.setField(this, 31, value); |
| 6144 | }; |
| 6145 | |
| 6146 | |
| 6147 | /** |
| 6148 | * Clears the field making it undefined. |
| 6149 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 6150 | */ |
| 6151 | proto.google.protobuf.FileOptions.prototype.clearCcEnableArenas = function() { |
| 6152 | return jspb.Message.setField(this, 31, undefined); |
| 6153 | }; |
| 6154 | |
| 6155 | |
| 6156 | /** |
| 6157 | * Returns whether this field is set. |
| 6158 | * @return {boolean} |
| 6159 | */ |
| 6160 | proto.google.protobuf.FileOptions.prototype.hasCcEnableArenas = function() { |
| 6161 | return jspb.Message.getField(this, 31) != null; |
| 6162 | }; |
| 6163 | |
| 6164 | |
| 6165 | /** |
| 6166 | * optional string objc_class_prefix = 36; |
| 6167 | * @return {string} |
| 6168 | */ |
| 6169 | proto.google.protobuf.FileOptions.prototype.getObjcClassPrefix = function() { |
| 6170 | return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 36, "")); |
| 6171 | }; |
| 6172 | |
| 6173 | |
| 6174 | /** |
| 6175 | * @param {string} value |
| 6176 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 6177 | */ |
| 6178 | proto.google.protobuf.FileOptions.prototype.setObjcClassPrefix = function(value) { |
| 6179 | return jspb.Message.setField(this, 36, value); |
| 6180 | }; |
| 6181 | |
| 6182 | |
| 6183 | /** |
| 6184 | * Clears the field making it undefined. |
| 6185 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 6186 | */ |
| 6187 | proto.google.protobuf.FileOptions.prototype.clearObjcClassPrefix = function() { |
| 6188 | return jspb.Message.setField(this, 36, undefined); |
| 6189 | }; |
| 6190 | |
| 6191 | |
| 6192 | /** |
| 6193 | * Returns whether this field is set. |
| 6194 | * @return {boolean} |
| 6195 | */ |
| 6196 | proto.google.protobuf.FileOptions.prototype.hasObjcClassPrefix = function() { |
| 6197 | return jspb.Message.getField(this, 36) != null; |
| 6198 | }; |
| 6199 | |
| 6200 | |
| 6201 | /** |
| 6202 | * optional string csharp_namespace = 37; |
| 6203 | * @return {string} |
| 6204 | */ |
| 6205 | proto.google.protobuf.FileOptions.prototype.getCsharpNamespace = function() { |
| 6206 | return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 37, "")); |
| 6207 | }; |
| 6208 | |
| 6209 | |
| 6210 | /** |
| 6211 | * @param {string} value |
| 6212 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 6213 | */ |
| 6214 | proto.google.protobuf.FileOptions.prototype.setCsharpNamespace = function(value) { |
| 6215 | return jspb.Message.setField(this, 37, value); |
| 6216 | }; |
| 6217 | |
| 6218 | |
| 6219 | /** |
| 6220 | * Clears the field making it undefined. |
| 6221 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 6222 | */ |
| 6223 | proto.google.protobuf.FileOptions.prototype.clearCsharpNamespace = function() { |
| 6224 | return jspb.Message.setField(this, 37, undefined); |
| 6225 | }; |
| 6226 | |
| 6227 | |
| 6228 | /** |
| 6229 | * Returns whether this field is set. |
| 6230 | * @return {boolean} |
| 6231 | */ |
| 6232 | proto.google.protobuf.FileOptions.prototype.hasCsharpNamespace = function() { |
| 6233 | return jspb.Message.getField(this, 37) != null; |
| 6234 | }; |
| 6235 | |
| 6236 | |
| 6237 | /** |
| 6238 | * optional string swift_prefix = 39; |
| 6239 | * @return {string} |
| 6240 | */ |
| 6241 | proto.google.protobuf.FileOptions.prototype.getSwiftPrefix = function() { |
| 6242 | return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 39, "")); |
| 6243 | }; |
| 6244 | |
| 6245 | |
| 6246 | /** |
| 6247 | * @param {string} value |
| 6248 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 6249 | */ |
| 6250 | proto.google.protobuf.FileOptions.prototype.setSwiftPrefix = function(value) { |
| 6251 | return jspb.Message.setField(this, 39, value); |
| 6252 | }; |
| 6253 | |
| 6254 | |
| 6255 | /** |
| 6256 | * Clears the field making it undefined. |
| 6257 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 6258 | */ |
| 6259 | proto.google.protobuf.FileOptions.prototype.clearSwiftPrefix = function() { |
| 6260 | return jspb.Message.setField(this, 39, undefined); |
| 6261 | }; |
| 6262 | |
| 6263 | |
| 6264 | /** |
| 6265 | * Returns whether this field is set. |
| 6266 | * @return {boolean} |
| 6267 | */ |
| 6268 | proto.google.protobuf.FileOptions.prototype.hasSwiftPrefix = function() { |
| 6269 | return jspb.Message.getField(this, 39) != null; |
| 6270 | }; |
| 6271 | |
| 6272 | |
| 6273 | /** |
| 6274 | * optional string php_class_prefix = 40; |
| 6275 | * @return {string} |
| 6276 | */ |
| 6277 | proto.google.protobuf.FileOptions.prototype.getPhpClassPrefix = function() { |
| 6278 | return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 40, "")); |
| 6279 | }; |
| 6280 | |
| 6281 | |
| 6282 | /** |
| 6283 | * @param {string} value |
| 6284 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 6285 | */ |
| 6286 | proto.google.protobuf.FileOptions.prototype.setPhpClassPrefix = function(value) { |
| 6287 | return jspb.Message.setField(this, 40, value); |
| 6288 | }; |
| 6289 | |
| 6290 | |
| 6291 | /** |
| 6292 | * Clears the field making it undefined. |
| 6293 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 6294 | */ |
| 6295 | proto.google.protobuf.FileOptions.prototype.clearPhpClassPrefix = function() { |
| 6296 | return jspb.Message.setField(this, 40, undefined); |
| 6297 | }; |
| 6298 | |
| 6299 | |
| 6300 | /** |
| 6301 | * Returns whether this field is set. |
| 6302 | * @return {boolean} |
| 6303 | */ |
| 6304 | proto.google.protobuf.FileOptions.prototype.hasPhpClassPrefix = function() { |
| 6305 | return jspb.Message.getField(this, 40) != null; |
| 6306 | }; |
| 6307 | |
| 6308 | |
| 6309 | /** |
| 6310 | * optional string php_namespace = 41; |
| 6311 | * @return {string} |
| 6312 | */ |
| 6313 | proto.google.protobuf.FileOptions.prototype.getPhpNamespace = function() { |
| 6314 | return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 41, "")); |
| 6315 | }; |
| 6316 | |
| 6317 | |
| 6318 | /** |
| 6319 | * @param {string} value |
| 6320 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 6321 | */ |
| 6322 | proto.google.protobuf.FileOptions.prototype.setPhpNamespace = function(value) { |
| 6323 | return jspb.Message.setField(this, 41, value); |
| 6324 | }; |
| 6325 | |
| 6326 | |
| 6327 | /** |
| 6328 | * Clears the field making it undefined. |
| 6329 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 6330 | */ |
| 6331 | proto.google.protobuf.FileOptions.prototype.clearPhpNamespace = function() { |
| 6332 | return jspb.Message.setField(this, 41, undefined); |
| 6333 | }; |
| 6334 | |
| 6335 | |
| 6336 | /** |
| 6337 | * Returns whether this field is set. |
| 6338 | * @return {boolean} |
| 6339 | */ |
| 6340 | proto.google.protobuf.FileOptions.prototype.hasPhpNamespace = function() { |
| 6341 | return jspb.Message.getField(this, 41) != null; |
| 6342 | }; |
| 6343 | |
| 6344 | |
| 6345 | /** |
| 6346 | * optional string php_metadata_namespace = 44; |
| 6347 | * @return {string} |
| 6348 | */ |
| 6349 | proto.google.protobuf.FileOptions.prototype.getPhpMetadataNamespace = function() { |
| 6350 | return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 44, "")); |
| 6351 | }; |
| 6352 | |
| 6353 | |
| 6354 | /** |
| 6355 | * @param {string} value |
| 6356 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 6357 | */ |
| 6358 | proto.google.protobuf.FileOptions.prototype.setPhpMetadataNamespace = function(value) { |
| 6359 | return jspb.Message.setField(this, 44, value); |
| 6360 | }; |
| 6361 | |
| 6362 | |
| 6363 | /** |
| 6364 | * Clears the field making it undefined. |
| 6365 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 6366 | */ |
| 6367 | proto.google.protobuf.FileOptions.prototype.clearPhpMetadataNamespace = function() { |
| 6368 | return jspb.Message.setField(this, 44, undefined); |
| 6369 | }; |
| 6370 | |
| 6371 | |
| 6372 | /** |
| 6373 | * Returns whether this field is set. |
| 6374 | * @return {boolean} |
| 6375 | */ |
| 6376 | proto.google.protobuf.FileOptions.prototype.hasPhpMetadataNamespace = function() { |
| 6377 | return jspb.Message.getField(this, 44) != null; |
| 6378 | }; |
| 6379 | |
| 6380 | |
| 6381 | /** |
| 6382 | * optional string ruby_package = 45; |
| 6383 | * @return {string} |
| 6384 | */ |
| 6385 | proto.google.protobuf.FileOptions.prototype.getRubyPackage = function() { |
| 6386 | return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 45, "")); |
| 6387 | }; |
| 6388 | |
| 6389 | |
| 6390 | /** |
| 6391 | * @param {string} value |
| 6392 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 6393 | */ |
| 6394 | proto.google.protobuf.FileOptions.prototype.setRubyPackage = function(value) { |
| 6395 | return jspb.Message.setField(this, 45, value); |
| 6396 | }; |
| 6397 | |
| 6398 | |
| 6399 | /** |
| 6400 | * Clears the field making it undefined. |
| 6401 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 6402 | */ |
| 6403 | proto.google.protobuf.FileOptions.prototype.clearRubyPackage = function() { |
| 6404 | return jspb.Message.setField(this, 45, undefined); |
| 6405 | }; |
| 6406 | |
| 6407 | |
| 6408 | /** |
| 6409 | * Returns whether this field is set. |
| 6410 | * @return {boolean} |
| 6411 | */ |
| 6412 | proto.google.protobuf.FileOptions.prototype.hasRubyPackage = function() { |
| 6413 | return jspb.Message.getField(this, 45) != null; |
| 6414 | }; |
| 6415 | |
| 6416 | |
| 6417 | /** |
| 6418 | * repeated UninterpretedOption uninterpreted_option = 999; |
| 6419 | * @return {!Array<!proto.google.protobuf.UninterpretedOption>} |
| 6420 | */ |
| 6421 | proto.google.protobuf.FileOptions.prototype.getUninterpretedOptionList = function() { |
| 6422 | return /** @type{!Array<!proto.google.protobuf.UninterpretedOption>} */ ( |
| 6423 | jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.UninterpretedOption, 999)); |
| 6424 | }; |
| 6425 | |
| 6426 | |
| 6427 | /** |
| 6428 | * @param {!Array<!proto.google.protobuf.UninterpretedOption>} value |
| 6429 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 6430 | */ |
| 6431 | proto.google.protobuf.FileOptions.prototype.setUninterpretedOptionList = function(value) { |
| 6432 | return jspb.Message.setRepeatedWrapperField(this, 999, value); |
| 6433 | }; |
| 6434 | |
| 6435 | |
| 6436 | /** |
| 6437 | * @param {!proto.google.protobuf.UninterpretedOption=} opt_value |
| 6438 | * @param {number=} opt_index |
| 6439 | * @return {!proto.google.protobuf.UninterpretedOption} |
| 6440 | */ |
| 6441 | proto.google.protobuf.FileOptions.prototype.addUninterpretedOption = function(opt_value, opt_index) { |
| 6442 | return jspb.Message.addToRepeatedWrapperField(this, 999, opt_value, proto.google.protobuf.UninterpretedOption, opt_index); |
| 6443 | }; |
| 6444 | |
| 6445 | |
| 6446 | /** |
| 6447 | * Clears the list making it empty but non-null. |
| 6448 | * @return {!proto.google.protobuf.FileOptions} returns this |
| 6449 | */ |
| 6450 | proto.google.protobuf.FileOptions.prototype.clearUninterpretedOptionList = function() { |
| 6451 | return this.setUninterpretedOptionList([]); |
| 6452 | }; |
| 6453 | |
| 6454 | |
| 6455 | |
| 6456 | /** |
| 6457 | * List of repeated fields within this message type. |
| 6458 | * @private {!Array<number>} |
| 6459 | * @const |
| 6460 | */ |
| 6461 | proto.google.protobuf.MessageOptions.repeatedFields_ = [999]; |
| 6462 | |
| 6463 | |
| 6464 | |
| 6465 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 6466 | /** |
| 6467 | * Creates an object representation of this proto. |
| 6468 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 6469 | * Optional fields that are not set will be set to undefined. |
| 6470 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 6471 | * For the list of reserved names please see: |
| 6472 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 6473 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 6474 | * JSPB instance for transitional soy proto support: |
| 6475 | * http://goto/soy-param-migration |
| 6476 | * @return {!Object} |
| 6477 | */ |
| 6478 | proto.google.protobuf.MessageOptions.prototype.toObject = function(opt_includeInstance) { |
| 6479 | return proto.google.protobuf.MessageOptions.toObject(opt_includeInstance, this); |
| 6480 | }; |
| 6481 | |
| 6482 | |
| 6483 | /** |
| 6484 | * Static version of the {@see toObject} method. |
| 6485 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 6486 | * the JSPB instance for transitional soy proto support: |
| 6487 | * http://goto/soy-param-migration |
| 6488 | * @param {!proto.google.protobuf.MessageOptions} msg The msg instance to transform. |
| 6489 | * @return {!Object} |
| 6490 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 6491 | */ |
| 6492 | proto.google.protobuf.MessageOptions.toObject = function(includeInstance, msg) { |
| 6493 | var f, obj = { |
| 6494 | messageSetWireFormat: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), |
| 6495 | noStandardDescriptorAccessor: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), |
| 6496 | deprecated: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), |
| 6497 | mapEntry: (f = jspb.Message.getBooleanField(msg, 7)) == null ? undefined : f, |
| 6498 | uninterpretedOptionList: jspb.Message.toObjectList(msg.getUninterpretedOptionList(), |
| 6499 | proto.google.protobuf.UninterpretedOption.toObject, includeInstance) |
| 6500 | }; |
| 6501 | |
| 6502 | jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj, |
| 6503 | proto.google.protobuf.MessageOptions.extensions, proto.google.protobuf.MessageOptions.prototype.getExtension, |
| 6504 | includeInstance); |
| 6505 | if (includeInstance) { |
| 6506 | obj.$jspbMessageInstance = msg; |
| 6507 | } |
| 6508 | return obj; |
| 6509 | }; |
| 6510 | } |
| 6511 | |
| 6512 | |
| 6513 | /** |
| 6514 | * Deserializes binary data (in protobuf wire format). |
| 6515 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 6516 | * @return {!proto.google.protobuf.MessageOptions} |
| 6517 | */ |
| 6518 | proto.google.protobuf.MessageOptions.deserializeBinary = function(bytes) { |
| 6519 | var reader = new jspb.BinaryReader(bytes); |
| 6520 | var msg = new proto.google.protobuf.MessageOptions; |
| 6521 | return proto.google.protobuf.MessageOptions.deserializeBinaryFromReader(msg, reader); |
| 6522 | }; |
| 6523 | |
| 6524 | |
| 6525 | /** |
| 6526 | * Deserializes binary data (in protobuf wire format) from the |
| 6527 | * given reader into the given message object. |
| 6528 | * @param {!proto.google.protobuf.MessageOptions} msg The message object to deserialize into. |
| 6529 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 6530 | * @return {!proto.google.protobuf.MessageOptions} |
| 6531 | */ |
| 6532 | proto.google.protobuf.MessageOptions.deserializeBinaryFromReader = function(msg, reader) { |
| 6533 | while (reader.nextField()) { |
| 6534 | if (reader.isEndGroup()) { |
| 6535 | break; |
| 6536 | } |
| 6537 | var field = reader.getFieldNumber(); |
| 6538 | switch (field) { |
| 6539 | case 1: |
| 6540 | var value = /** @type {boolean} */ (reader.readBool()); |
| 6541 | msg.setMessageSetWireFormat(value); |
| 6542 | break; |
| 6543 | case 2: |
| 6544 | var value = /** @type {boolean} */ (reader.readBool()); |
| 6545 | msg.setNoStandardDescriptorAccessor(value); |
| 6546 | break; |
| 6547 | case 3: |
| 6548 | var value = /** @type {boolean} */ (reader.readBool()); |
| 6549 | msg.setDeprecated(value); |
| 6550 | break; |
| 6551 | case 7: |
| 6552 | var value = /** @type {boolean} */ (reader.readBool()); |
| 6553 | msg.setMapEntry(value); |
| 6554 | break; |
| 6555 | case 999: |
| 6556 | var value = new proto.google.protobuf.UninterpretedOption; |
| 6557 | reader.readMessage(value,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader); |
| 6558 | msg.addUninterpretedOption(value); |
| 6559 | break; |
| 6560 | default: |
| 6561 | jspb.Message.readBinaryExtension(msg, reader, |
| 6562 | proto.google.protobuf.MessageOptions.extensionsBinary, |
| 6563 | proto.google.protobuf.MessageOptions.prototype.getExtension, |
| 6564 | proto.google.protobuf.MessageOptions.prototype.setExtension); |
| 6565 | break; |
| 6566 | } |
| 6567 | } |
| 6568 | return msg; |
| 6569 | }; |
| 6570 | |
| 6571 | |
| 6572 | /** |
| 6573 | * Serializes the message to binary data (in protobuf wire format). |
| 6574 | * @return {!Uint8Array} |
| 6575 | */ |
| 6576 | proto.google.protobuf.MessageOptions.prototype.serializeBinary = function() { |
| 6577 | var writer = new jspb.BinaryWriter(); |
| 6578 | proto.google.protobuf.MessageOptions.serializeBinaryToWriter(this, writer); |
| 6579 | return writer.getResultBuffer(); |
| 6580 | }; |
| 6581 | |
| 6582 | |
| 6583 | /** |
| 6584 | * Serializes the given message to binary data (in protobuf wire |
| 6585 | * format), writing to the given BinaryWriter. |
| 6586 | * @param {!proto.google.protobuf.MessageOptions} message |
| 6587 | * @param {!jspb.BinaryWriter} writer |
| 6588 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 6589 | */ |
| 6590 | proto.google.protobuf.MessageOptions.serializeBinaryToWriter = function(message, writer) { |
| 6591 | var f = undefined; |
| 6592 | f = /** @type {boolean} */ (jspb.Message.getField(message, 1)); |
| 6593 | if (f != null) { |
| 6594 | writer.writeBool( |
| 6595 | 1, |
| 6596 | f |
| 6597 | ); |
| 6598 | } |
| 6599 | f = /** @type {boolean} */ (jspb.Message.getField(message, 2)); |
| 6600 | if (f != null) { |
| 6601 | writer.writeBool( |
| 6602 | 2, |
| 6603 | f |
| 6604 | ); |
| 6605 | } |
| 6606 | f = /** @type {boolean} */ (jspb.Message.getField(message, 3)); |
| 6607 | if (f != null) { |
| 6608 | writer.writeBool( |
| 6609 | 3, |
| 6610 | f |
| 6611 | ); |
| 6612 | } |
| 6613 | f = /** @type {boolean} */ (jspb.Message.getField(message, 7)); |
| 6614 | if (f != null) { |
| 6615 | writer.writeBool( |
| 6616 | 7, |
| 6617 | f |
| 6618 | ); |
| 6619 | } |
| 6620 | f = message.getUninterpretedOptionList(); |
| 6621 | if (f.length > 0) { |
| 6622 | writer.writeRepeatedMessage( |
| 6623 | 999, |
| 6624 | f, |
| 6625 | proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter |
| 6626 | ); |
| 6627 | } |
| 6628 | jspb.Message.serializeBinaryExtensions(message, writer, |
| 6629 | proto.google.protobuf.MessageOptions.extensionsBinary, proto.google.protobuf.MessageOptions.prototype.getExtension); |
| 6630 | }; |
| 6631 | |
| 6632 | |
| 6633 | /** |
| 6634 | * optional bool message_set_wire_format = 1; |
| 6635 | * @return {boolean} |
| 6636 | */ |
| 6637 | proto.google.protobuf.MessageOptions.prototype.getMessageSetWireFormat = function() { |
| 6638 | return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); |
| 6639 | }; |
| 6640 | |
| 6641 | |
| 6642 | /** |
| 6643 | * @param {boolean} value |
| 6644 | * @return {!proto.google.protobuf.MessageOptions} returns this |
| 6645 | */ |
| 6646 | proto.google.protobuf.MessageOptions.prototype.setMessageSetWireFormat = function(value) { |
| 6647 | return jspb.Message.setField(this, 1, value); |
| 6648 | }; |
| 6649 | |
| 6650 | |
| 6651 | /** |
| 6652 | * Clears the field making it undefined. |
| 6653 | * @return {!proto.google.protobuf.MessageOptions} returns this |
| 6654 | */ |
| 6655 | proto.google.protobuf.MessageOptions.prototype.clearMessageSetWireFormat = function() { |
| 6656 | return jspb.Message.setField(this, 1, undefined); |
| 6657 | }; |
| 6658 | |
| 6659 | |
| 6660 | /** |
| 6661 | * Returns whether this field is set. |
| 6662 | * @return {boolean} |
| 6663 | */ |
| 6664 | proto.google.protobuf.MessageOptions.prototype.hasMessageSetWireFormat = function() { |
| 6665 | return jspb.Message.getField(this, 1) != null; |
| 6666 | }; |
| 6667 | |
| 6668 | |
| 6669 | /** |
| 6670 | * optional bool no_standard_descriptor_accessor = 2; |
| 6671 | * @return {boolean} |
| 6672 | */ |
| 6673 | proto.google.protobuf.MessageOptions.prototype.getNoStandardDescriptorAccessor = function() { |
| 6674 | return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); |
| 6675 | }; |
| 6676 | |
| 6677 | |
| 6678 | /** |
| 6679 | * @param {boolean} value |
| 6680 | * @return {!proto.google.protobuf.MessageOptions} returns this |
| 6681 | */ |
| 6682 | proto.google.protobuf.MessageOptions.prototype.setNoStandardDescriptorAccessor = function(value) { |
| 6683 | return jspb.Message.setField(this, 2, value); |
| 6684 | }; |
| 6685 | |
| 6686 | |
| 6687 | /** |
| 6688 | * Clears the field making it undefined. |
| 6689 | * @return {!proto.google.protobuf.MessageOptions} returns this |
| 6690 | */ |
| 6691 | proto.google.protobuf.MessageOptions.prototype.clearNoStandardDescriptorAccessor = function() { |
| 6692 | return jspb.Message.setField(this, 2, undefined); |
| 6693 | }; |
| 6694 | |
| 6695 | |
| 6696 | /** |
| 6697 | * Returns whether this field is set. |
| 6698 | * @return {boolean} |
| 6699 | */ |
| 6700 | proto.google.protobuf.MessageOptions.prototype.hasNoStandardDescriptorAccessor = function() { |
| 6701 | return jspb.Message.getField(this, 2) != null; |
| 6702 | }; |
| 6703 | |
| 6704 | |
| 6705 | /** |
| 6706 | * optional bool deprecated = 3; |
| 6707 | * @return {boolean} |
| 6708 | */ |
| 6709 | proto.google.protobuf.MessageOptions.prototype.getDeprecated = function() { |
| 6710 | return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); |
| 6711 | }; |
| 6712 | |
| 6713 | |
| 6714 | /** |
| 6715 | * @param {boolean} value |
| 6716 | * @return {!proto.google.protobuf.MessageOptions} returns this |
| 6717 | */ |
| 6718 | proto.google.protobuf.MessageOptions.prototype.setDeprecated = function(value) { |
| 6719 | return jspb.Message.setField(this, 3, value); |
| 6720 | }; |
| 6721 | |
| 6722 | |
| 6723 | /** |
| 6724 | * Clears the field making it undefined. |
| 6725 | * @return {!proto.google.protobuf.MessageOptions} returns this |
| 6726 | */ |
| 6727 | proto.google.protobuf.MessageOptions.prototype.clearDeprecated = function() { |
| 6728 | return jspb.Message.setField(this, 3, undefined); |
| 6729 | }; |
| 6730 | |
| 6731 | |
| 6732 | /** |
| 6733 | * Returns whether this field is set. |
| 6734 | * @return {boolean} |
| 6735 | */ |
| 6736 | proto.google.protobuf.MessageOptions.prototype.hasDeprecated = function() { |
| 6737 | return jspb.Message.getField(this, 3) != null; |
| 6738 | }; |
| 6739 | |
| 6740 | |
| 6741 | /** |
| 6742 | * optional bool map_entry = 7; |
| 6743 | * @return {boolean} |
| 6744 | */ |
| 6745 | proto.google.protobuf.MessageOptions.prototype.getMapEntry = function() { |
| 6746 | return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); |
| 6747 | }; |
| 6748 | |
| 6749 | |
| 6750 | /** |
| 6751 | * @param {boolean} value |
| 6752 | * @return {!proto.google.protobuf.MessageOptions} returns this |
| 6753 | */ |
| 6754 | proto.google.protobuf.MessageOptions.prototype.setMapEntry = function(value) { |
| 6755 | return jspb.Message.setField(this, 7, value); |
| 6756 | }; |
| 6757 | |
| 6758 | |
| 6759 | /** |
| 6760 | * Clears the field making it undefined. |
| 6761 | * @return {!proto.google.protobuf.MessageOptions} returns this |
| 6762 | */ |
| 6763 | proto.google.protobuf.MessageOptions.prototype.clearMapEntry = function() { |
| 6764 | return jspb.Message.setField(this, 7, undefined); |
| 6765 | }; |
| 6766 | |
| 6767 | |
| 6768 | /** |
| 6769 | * Returns whether this field is set. |
| 6770 | * @return {boolean} |
| 6771 | */ |
| 6772 | proto.google.protobuf.MessageOptions.prototype.hasMapEntry = function() { |
| 6773 | return jspb.Message.getField(this, 7) != null; |
| 6774 | }; |
| 6775 | |
| 6776 | |
| 6777 | /** |
| 6778 | * repeated UninterpretedOption uninterpreted_option = 999; |
| 6779 | * @return {!Array<!proto.google.protobuf.UninterpretedOption>} |
| 6780 | */ |
| 6781 | proto.google.protobuf.MessageOptions.prototype.getUninterpretedOptionList = function() { |
| 6782 | return /** @type{!Array<!proto.google.protobuf.UninterpretedOption>} */ ( |
| 6783 | jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.UninterpretedOption, 999)); |
| 6784 | }; |
| 6785 | |
| 6786 | |
| 6787 | /** |
| 6788 | * @param {!Array<!proto.google.protobuf.UninterpretedOption>} value |
| 6789 | * @return {!proto.google.protobuf.MessageOptions} returns this |
| 6790 | */ |
| 6791 | proto.google.protobuf.MessageOptions.prototype.setUninterpretedOptionList = function(value) { |
| 6792 | return jspb.Message.setRepeatedWrapperField(this, 999, value); |
| 6793 | }; |
| 6794 | |
| 6795 | |
| 6796 | /** |
| 6797 | * @param {!proto.google.protobuf.UninterpretedOption=} opt_value |
| 6798 | * @param {number=} opt_index |
| 6799 | * @return {!proto.google.protobuf.UninterpretedOption} |
| 6800 | */ |
| 6801 | proto.google.protobuf.MessageOptions.prototype.addUninterpretedOption = function(opt_value, opt_index) { |
| 6802 | return jspb.Message.addToRepeatedWrapperField(this, 999, opt_value, proto.google.protobuf.UninterpretedOption, opt_index); |
| 6803 | }; |
| 6804 | |
| 6805 | |
| 6806 | /** |
| 6807 | * Clears the list making it empty but non-null. |
| 6808 | * @return {!proto.google.protobuf.MessageOptions} returns this |
| 6809 | */ |
| 6810 | proto.google.protobuf.MessageOptions.prototype.clearUninterpretedOptionList = function() { |
| 6811 | return this.setUninterpretedOptionList([]); |
| 6812 | }; |
| 6813 | |
| 6814 | |
| 6815 | |
| 6816 | /** |
| 6817 | * List of repeated fields within this message type. |
| 6818 | * @private {!Array<number>} |
| 6819 | * @const |
| 6820 | */ |
| 6821 | proto.google.protobuf.FieldOptions.repeatedFields_ = [999]; |
| 6822 | |
| 6823 | |
| 6824 | |
| 6825 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 6826 | /** |
| 6827 | * Creates an object representation of this proto. |
| 6828 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 6829 | * Optional fields that are not set will be set to undefined. |
| 6830 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 6831 | * For the list of reserved names please see: |
| 6832 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 6833 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 6834 | * JSPB instance for transitional soy proto support: |
| 6835 | * http://goto/soy-param-migration |
| 6836 | * @return {!Object} |
| 6837 | */ |
| 6838 | proto.google.protobuf.FieldOptions.prototype.toObject = function(opt_includeInstance) { |
| 6839 | return proto.google.protobuf.FieldOptions.toObject(opt_includeInstance, this); |
| 6840 | }; |
| 6841 | |
| 6842 | |
| 6843 | /** |
| 6844 | * Static version of the {@see toObject} method. |
| 6845 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 6846 | * the JSPB instance for transitional soy proto support: |
| 6847 | * http://goto/soy-param-migration |
| 6848 | * @param {!proto.google.protobuf.FieldOptions} msg The msg instance to transform. |
| 6849 | * @return {!Object} |
| 6850 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 6851 | */ |
| 6852 | proto.google.protobuf.FieldOptions.toObject = function(includeInstance, msg) { |
| 6853 | var f, obj = { |
| 6854 | ctype: jspb.Message.getFieldWithDefault(msg, 1, 0), |
| 6855 | packed: (f = jspb.Message.getBooleanField(msg, 2)) == null ? undefined : f, |
| 6856 | jstype: jspb.Message.getFieldWithDefault(msg, 6, 0), |
| 6857 | lazy: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), |
| 6858 | deprecated: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), |
| 6859 | weak: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), |
| 6860 | uninterpretedOptionList: jspb.Message.toObjectList(msg.getUninterpretedOptionList(), |
| 6861 | proto.google.protobuf.UninterpretedOption.toObject, includeInstance) |
| 6862 | }; |
| 6863 | |
| 6864 | jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj, |
| 6865 | proto.google.protobuf.FieldOptions.extensions, proto.google.protobuf.FieldOptions.prototype.getExtension, |
| 6866 | includeInstance); |
| 6867 | if (includeInstance) { |
| 6868 | obj.$jspbMessageInstance = msg; |
| 6869 | } |
| 6870 | return obj; |
| 6871 | }; |
| 6872 | } |
| 6873 | |
| 6874 | |
| 6875 | /** |
| 6876 | * Deserializes binary data (in protobuf wire format). |
| 6877 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 6878 | * @return {!proto.google.protobuf.FieldOptions} |
| 6879 | */ |
| 6880 | proto.google.protobuf.FieldOptions.deserializeBinary = function(bytes) { |
| 6881 | var reader = new jspb.BinaryReader(bytes); |
| 6882 | var msg = new proto.google.protobuf.FieldOptions; |
| 6883 | return proto.google.protobuf.FieldOptions.deserializeBinaryFromReader(msg, reader); |
| 6884 | }; |
| 6885 | |
| 6886 | |
| 6887 | /** |
| 6888 | * Deserializes binary data (in protobuf wire format) from the |
| 6889 | * given reader into the given message object. |
| 6890 | * @param {!proto.google.protobuf.FieldOptions} msg The message object to deserialize into. |
| 6891 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 6892 | * @return {!proto.google.protobuf.FieldOptions} |
| 6893 | */ |
| 6894 | proto.google.protobuf.FieldOptions.deserializeBinaryFromReader = function(msg, reader) { |
| 6895 | while (reader.nextField()) { |
| 6896 | if (reader.isEndGroup()) { |
| 6897 | break; |
| 6898 | } |
| 6899 | var field = reader.getFieldNumber(); |
| 6900 | switch (field) { |
| 6901 | case 1: |
| 6902 | var value = /** @type {!proto.google.protobuf.FieldOptions.CType} */ (reader.readEnum()); |
| 6903 | msg.setCtype(value); |
| 6904 | break; |
| 6905 | case 2: |
| 6906 | var value = /** @type {boolean} */ (reader.readBool()); |
| 6907 | msg.setPacked(value); |
| 6908 | break; |
| 6909 | case 6: |
| 6910 | var value = /** @type {!proto.google.protobuf.FieldOptions.JSType} */ (reader.readEnum()); |
| 6911 | msg.setJstype(value); |
| 6912 | break; |
| 6913 | case 5: |
| 6914 | var value = /** @type {boolean} */ (reader.readBool()); |
| 6915 | msg.setLazy(value); |
| 6916 | break; |
| 6917 | case 3: |
| 6918 | var value = /** @type {boolean} */ (reader.readBool()); |
| 6919 | msg.setDeprecated(value); |
| 6920 | break; |
| 6921 | case 10: |
| 6922 | var value = /** @type {boolean} */ (reader.readBool()); |
| 6923 | msg.setWeak(value); |
| 6924 | break; |
| 6925 | case 999: |
| 6926 | var value = new proto.google.protobuf.UninterpretedOption; |
| 6927 | reader.readMessage(value,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader); |
| 6928 | msg.addUninterpretedOption(value); |
| 6929 | break; |
| 6930 | default: |
| 6931 | jspb.Message.readBinaryExtension(msg, reader, |
| 6932 | proto.google.protobuf.FieldOptions.extensionsBinary, |
| 6933 | proto.google.protobuf.FieldOptions.prototype.getExtension, |
| 6934 | proto.google.protobuf.FieldOptions.prototype.setExtension); |
| 6935 | break; |
| 6936 | } |
| 6937 | } |
| 6938 | return msg; |
| 6939 | }; |
| 6940 | |
| 6941 | |
| 6942 | /** |
| 6943 | * Serializes the message to binary data (in protobuf wire format). |
| 6944 | * @return {!Uint8Array} |
| 6945 | */ |
| 6946 | proto.google.protobuf.FieldOptions.prototype.serializeBinary = function() { |
| 6947 | var writer = new jspb.BinaryWriter(); |
| 6948 | proto.google.protobuf.FieldOptions.serializeBinaryToWriter(this, writer); |
| 6949 | return writer.getResultBuffer(); |
| 6950 | }; |
| 6951 | |
| 6952 | |
| 6953 | /** |
| 6954 | * Serializes the given message to binary data (in protobuf wire |
| 6955 | * format), writing to the given BinaryWriter. |
| 6956 | * @param {!proto.google.protobuf.FieldOptions} message |
| 6957 | * @param {!jspb.BinaryWriter} writer |
| 6958 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 6959 | */ |
| 6960 | proto.google.protobuf.FieldOptions.serializeBinaryToWriter = function(message, writer) { |
| 6961 | var f = undefined; |
| 6962 | f = /** @type {!proto.google.protobuf.FieldOptions.CType} */ (jspb.Message.getField(message, 1)); |
| 6963 | if (f != null) { |
| 6964 | writer.writeEnum( |
| 6965 | 1, |
| 6966 | f |
| 6967 | ); |
| 6968 | } |
| 6969 | f = /** @type {boolean} */ (jspb.Message.getField(message, 2)); |
| 6970 | if (f != null) { |
| 6971 | writer.writeBool( |
| 6972 | 2, |
| 6973 | f |
| 6974 | ); |
| 6975 | } |
| 6976 | f = /** @type {!proto.google.protobuf.FieldOptions.JSType} */ (jspb.Message.getField(message, 6)); |
| 6977 | if (f != null) { |
| 6978 | writer.writeEnum( |
| 6979 | 6, |
| 6980 | f |
| 6981 | ); |
| 6982 | } |
| 6983 | f = /** @type {boolean} */ (jspb.Message.getField(message, 5)); |
| 6984 | if (f != null) { |
| 6985 | writer.writeBool( |
| 6986 | 5, |
| 6987 | f |
| 6988 | ); |
| 6989 | } |
| 6990 | f = /** @type {boolean} */ (jspb.Message.getField(message, 3)); |
| 6991 | if (f != null) { |
| 6992 | writer.writeBool( |
| 6993 | 3, |
| 6994 | f |
| 6995 | ); |
| 6996 | } |
| 6997 | f = /** @type {boolean} */ (jspb.Message.getField(message, 10)); |
| 6998 | if (f != null) { |
| 6999 | writer.writeBool( |
| 7000 | 10, |
| 7001 | f |
| 7002 | ); |
| 7003 | } |
| 7004 | f = message.getUninterpretedOptionList(); |
| 7005 | if (f.length > 0) { |
| 7006 | writer.writeRepeatedMessage( |
| 7007 | 999, |
| 7008 | f, |
| 7009 | proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter |
| 7010 | ); |
| 7011 | } |
| 7012 | jspb.Message.serializeBinaryExtensions(message, writer, |
| 7013 | proto.google.protobuf.FieldOptions.extensionsBinary, proto.google.protobuf.FieldOptions.prototype.getExtension); |
| 7014 | }; |
| 7015 | |
| 7016 | |
| 7017 | /** |
| 7018 | * @enum {number} |
| 7019 | */ |
| 7020 | proto.google.protobuf.FieldOptions.CType = { |
| 7021 | STRING: 0, |
| 7022 | CORD: 1, |
| 7023 | STRING_PIECE: 2 |
| 7024 | }; |
| 7025 | |
| 7026 | /** |
| 7027 | * @enum {number} |
| 7028 | */ |
| 7029 | proto.google.protobuf.FieldOptions.JSType = { |
| 7030 | JS_NORMAL: 0, |
| 7031 | JS_STRING: 1, |
| 7032 | JS_NUMBER: 2 |
| 7033 | }; |
| 7034 | |
| 7035 | /** |
| 7036 | * optional CType ctype = 1; |
| 7037 | * @return {!proto.google.protobuf.FieldOptions.CType} |
| 7038 | */ |
| 7039 | proto.google.protobuf.FieldOptions.prototype.getCtype = function() { |
| 7040 | return /** @type {!proto.google.protobuf.FieldOptions.CType} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); |
| 7041 | }; |
| 7042 | |
| 7043 | |
| 7044 | /** |
| 7045 | * @param {!proto.google.protobuf.FieldOptions.CType} value |
| 7046 | * @return {!proto.google.protobuf.FieldOptions} returns this |
| 7047 | */ |
| 7048 | proto.google.protobuf.FieldOptions.prototype.setCtype = function(value) { |
| 7049 | return jspb.Message.setField(this, 1, value); |
| 7050 | }; |
| 7051 | |
| 7052 | |
| 7053 | /** |
| 7054 | * Clears the field making it undefined. |
| 7055 | * @return {!proto.google.protobuf.FieldOptions} returns this |
| 7056 | */ |
| 7057 | proto.google.protobuf.FieldOptions.prototype.clearCtype = function() { |
| 7058 | return jspb.Message.setField(this, 1, undefined); |
| 7059 | }; |
| 7060 | |
| 7061 | |
| 7062 | /** |
| 7063 | * Returns whether this field is set. |
| 7064 | * @return {boolean} |
| 7065 | */ |
| 7066 | proto.google.protobuf.FieldOptions.prototype.hasCtype = function() { |
| 7067 | return jspb.Message.getField(this, 1) != null; |
| 7068 | }; |
| 7069 | |
| 7070 | |
| 7071 | /** |
| 7072 | * optional bool packed = 2; |
| 7073 | * @return {boolean} |
| 7074 | */ |
| 7075 | proto.google.protobuf.FieldOptions.prototype.getPacked = function() { |
| 7076 | return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); |
| 7077 | }; |
| 7078 | |
| 7079 | |
| 7080 | /** |
| 7081 | * @param {boolean} value |
| 7082 | * @return {!proto.google.protobuf.FieldOptions} returns this |
| 7083 | */ |
| 7084 | proto.google.protobuf.FieldOptions.prototype.setPacked = function(value) { |
| 7085 | return jspb.Message.setField(this, 2, value); |
| 7086 | }; |
| 7087 | |
| 7088 | |
| 7089 | /** |
| 7090 | * Clears the field making it undefined. |
| 7091 | * @return {!proto.google.protobuf.FieldOptions} returns this |
| 7092 | */ |
| 7093 | proto.google.protobuf.FieldOptions.prototype.clearPacked = function() { |
| 7094 | return jspb.Message.setField(this, 2, undefined); |
| 7095 | }; |
| 7096 | |
| 7097 | |
| 7098 | /** |
| 7099 | * Returns whether this field is set. |
| 7100 | * @return {boolean} |
| 7101 | */ |
| 7102 | proto.google.protobuf.FieldOptions.prototype.hasPacked = function() { |
| 7103 | return jspb.Message.getField(this, 2) != null; |
| 7104 | }; |
| 7105 | |
| 7106 | |
| 7107 | /** |
| 7108 | * optional JSType jstype = 6; |
| 7109 | * @return {!proto.google.protobuf.FieldOptions.JSType} |
| 7110 | */ |
| 7111 | proto.google.protobuf.FieldOptions.prototype.getJstype = function() { |
| 7112 | return /** @type {!proto.google.protobuf.FieldOptions.JSType} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); |
| 7113 | }; |
| 7114 | |
| 7115 | |
| 7116 | /** |
| 7117 | * @param {!proto.google.protobuf.FieldOptions.JSType} value |
| 7118 | * @return {!proto.google.protobuf.FieldOptions} returns this |
| 7119 | */ |
| 7120 | proto.google.protobuf.FieldOptions.prototype.setJstype = function(value) { |
| 7121 | return jspb.Message.setField(this, 6, value); |
| 7122 | }; |
| 7123 | |
| 7124 | |
| 7125 | /** |
| 7126 | * Clears the field making it undefined. |
| 7127 | * @return {!proto.google.protobuf.FieldOptions} returns this |
| 7128 | */ |
| 7129 | proto.google.protobuf.FieldOptions.prototype.clearJstype = function() { |
| 7130 | return jspb.Message.setField(this, 6, undefined); |
| 7131 | }; |
| 7132 | |
| 7133 | |
| 7134 | /** |
| 7135 | * Returns whether this field is set. |
| 7136 | * @return {boolean} |
| 7137 | */ |
| 7138 | proto.google.protobuf.FieldOptions.prototype.hasJstype = function() { |
| 7139 | return jspb.Message.getField(this, 6) != null; |
| 7140 | }; |
| 7141 | |
| 7142 | |
| 7143 | /** |
| 7144 | * optional bool lazy = 5; |
| 7145 | * @return {boolean} |
| 7146 | */ |
| 7147 | proto.google.protobuf.FieldOptions.prototype.getLazy = function() { |
| 7148 | return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); |
| 7149 | }; |
| 7150 | |
| 7151 | |
| 7152 | /** |
| 7153 | * @param {boolean} value |
| 7154 | * @return {!proto.google.protobuf.FieldOptions} returns this |
| 7155 | */ |
| 7156 | proto.google.protobuf.FieldOptions.prototype.setLazy = function(value) { |
| 7157 | return jspb.Message.setField(this, 5, value); |
| 7158 | }; |
| 7159 | |
| 7160 | |
| 7161 | /** |
| 7162 | * Clears the field making it undefined. |
| 7163 | * @return {!proto.google.protobuf.FieldOptions} returns this |
| 7164 | */ |
| 7165 | proto.google.protobuf.FieldOptions.prototype.clearLazy = function() { |
| 7166 | return jspb.Message.setField(this, 5, undefined); |
| 7167 | }; |
| 7168 | |
| 7169 | |
| 7170 | /** |
| 7171 | * Returns whether this field is set. |
| 7172 | * @return {boolean} |
| 7173 | */ |
| 7174 | proto.google.protobuf.FieldOptions.prototype.hasLazy = function() { |
| 7175 | return jspb.Message.getField(this, 5) != null; |
| 7176 | }; |
| 7177 | |
| 7178 | |
| 7179 | /** |
| 7180 | * optional bool deprecated = 3; |
| 7181 | * @return {boolean} |
| 7182 | */ |
| 7183 | proto.google.protobuf.FieldOptions.prototype.getDeprecated = function() { |
| 7184 | return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); |
| 7185 | }; |
| 7186 | |
| 7187 | |
| 7188 | /** |
| 7189 | * @param {boolean} value |
| 7190 | * @return {!proto.google.protobuf.FieldOptions} returns this |
| 7191 | */ |
| 7192 | proto.google.protobuf.FieldOptions.prototype.setDeprecated = function(value) { |
| 7193 | return jspb.Message.setField(this, 3, value); |
| 7194 | }; |
| 7195 | |
| 7196 | |
| 7197 | /** |
| 7198 | * Clears the field making it undefined. |
| 7199 | * @return {!proto.google.protobuf.FieldOptions} returns this |
| 7200 | */ |
| 7201 | proto.google.protobuf.FieldOptions.prototype.clearDeprecated = function() { |
| 7202 | return jspb.Message.setField(this, 3, undefined); |
| 7203 | }; |
| 7204 | |
| 7205 | |
| 7206 | /** |
| 7207 | * Returns whether this field is set. |
| 7208 | * @return {boolean} |
| 7209 | */ |
| 7210 | proto.google.protobuf.FieldOptions.prototype.hasDeprecated = function() { |
| 7211 | return jspb.Message.getField(this, 3) != null; |
| 7212 | }; |
| 7213 | |
| 7214 | |
| 7215 | /** |
| 7216 | * optional bool weak = 10; |
| 7217 | * @return {boolean} |
| 7218 | */ |
| 7219 | proto.google.protobuf.FieldOptions.prototype.getWeak = function() { |
| 7220 | return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); |
| 7221 | }; |
| 7222 | |
| 7223 | |
| 7224 | /** |
| 7225 | * @param {boolean} value |
| 7226 | * @return {!proto.google.protobuf.FieldOptions} returns this |
| 7227 | */ |
| 7228 | proto.google.protobuf.FieldOptions.prototype.setWeak = function(value) { |
| 7229 | return jspb.Message.setField(this, 10, value); |
| 7230 | }; |
| 7231 | |
| 7232 | |
| 7233 | /** |
| 7234 | * Clears the field making it undefined. |
| 7235 | * @return {!proto.google.protobuf.FieldOptions} returns this |
| 7236 | */ |
| 7237 | proto.google.protobuf.FieldOptions.prototype.clearWeak = function() { |
| 7238 | return jspb.Message.setField(this, 10, undefined); |
| 7239 | }; |
| 7240 | |
| 7241 | |
| 7242 | /** |
| 7243 | * Returns whether this field is set. |
| 7244 | * @return {boolean} |
| 7245 | */ |
| 7246 | proto.google.protobuf.FieldOptions.prototype.hasWeak = function() { |
| 7247 | return jspb.Message.getField(this, 10) != null; |
| 7248 | }; |
| 7249 | |
| 7250 | |
| 7251 | /** |
| 7252 | * repeated UninterpretedOption uninterpreted_option = 999; |
| 7253 | * @return {!Array<!proto.google.protobuf.UninterpretedOption>} |
| 7254 | */ |
| 7255 | proto.google.protobuf.FieldOptions.prototype.getUninterpretedOptionList = function() { |
| 7256 | return /** @type{!Array<!proto.google.protobuf.UninterpretedOption>} */ ( |
| 7257 | jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.UninterpretedOption, 999)); |
| 7258 | }; |
| 7259 | |
| 7260 | |
| 7261 | /** |
| 7262 | * @param {!Array<!proto.google.protobuf.UninterpretedOption>} value |
| 7263 | * @return {!proto.google.protobuf.FieldOptions} returns this |
| 7264 | */ |
| 7265 | proto.google.protobuf.FieldOptions.prototype.setUninterpretedOptionList = function(value) { |
| 7266 | return jspb.Message.setRepeatedWrapperField(this, 999, value); |
| 7267 | }; |
| 7268 | |
| 7269 | |
| 7270 | /** |
| 7271 | * @param {!proto.google.protobuf.UninterpretedOption=} opt_value |
| 7272 | * @param {number=} opt_index |
| 7273 | * @return {!proto.google.protobuf.UninterpretedOption} |
| 7274 | */ |
| 7275 | proto.google.protobuf.FieldOptions.prototype.addUninterpretedOption = function(opt_value, opt_index) { |
| 7276 | return jspb.Message.addToRepeatedWrapperField(this, 999, opt_value, proto.google.protobuf.UninterpretedOption, opt_index); |
| 7277 | }; |
| 7278 | |
| 7279 | |
| 7280 | /** |
| 7281 | * Clears the list making it empty but non-null. |
| 7282 | * @return {!proto.google.protobuf.FieldOptions} returns this |
| 7283 | */ |
| 7284 | proto.google.protobuf.FieldOptions.prototype.clearUninterpretedOptionList = function() { |
| 7285 | return this.setUninterpretedOptionList([]); |
| 7286 | }; |
| 7287 | |
| 7288 | |
| 7289 | |
| 7290 | /** |
| 7291 | * List of repeated fields within this message type. |
| 7292 | * @private {!Array<number>} |
| 7293 | * @const |
| 7294 | */ |
| 7295 | proto.google.protobuf.OneofOptions.repeatedFields_ = [999]; |
| 7296 | |
| 7297 | |
| 7298 | |
| 7299 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 7300 | /** |
| 7301 | * Creates an object representation of this proto. |
| 7302 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 7303 | * Optional fields that are not set will be set to undefined. |
| 7304 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 7305 | * For the list of reserved names please see: |
| 7306 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 7307 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 7308 | * JSPB instance for transitional soy proto support: |
| 7309 | * http://goto/soy-param-migration |
| 7310 | * @return {!Object} |
| 7311 | */ |
| 7312 | proto.google.protobuf.OneofOptions.prototype.toObject = function(opt_includeInstance) { |
| 7313 | return proto.google.protobuf.OneofOptions.toObject(opt_includeInstance, this); |
| 7314 | }; |
| 7315 | |
| 7316 | |
| 7317 | /** |
| 7318 | * Static version of the {@see toObject} method. |
| 7319 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 7320 | * the JSPB instance for transitional soy proto support: |
| 7321 | * http://goto/soy-param-migration |
| 7322 | * @param {!proto.google.protobuf.OneofOptions} msg The msg instance to transform. |
| 7323 | * @return {!Object} |
| 7324 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 7325 | */ |
| 7326 | proto.google.protobuf.OneofOptions.toObject = function(includeInstance, msg) { |
| 7327 | var f, obj = { |
| 7328 | uninterpretedOptionList: jspb.Message.toObjectList(msg.getUninterpretedOptionList(), |
| 7329 | proto.google.protobuf.UninterpretedOption.toObject, includeInstance) |
| 7330 | }; |
| 7331 | |
| 7332 | jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj, |
| 7333 | proto.google.protobuf.OneofOptions.extensions, proto.google.protobuf.OneofOptions.prototype.getExtension, |
| 7334 | includeInstance); |
| 7335 | if (includeInstance) { |
| 7336 | obj.$jspbMessageInstance = msg; |
| 7337 | } |
| 7338 | return obj; |
| 7339 | }; |
| 7340 | } |
| 7341 | |
| 7342 | |
| 7343 | /** |
| 7344 | * Deserializes binary data (in protobuf wire format). |
| 7345 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 7346 | * @return {!proto.google.protobuf.OneofOptions} |
| 7347 | */ |
| 7348 | proto.google.protobuf.OneofOptions.deserializeBinary = function(bytes) { |
| 7349 | var reader = new jspb.BinaryReader(bytes); |
| 7350 | var msg = new proto.google.protobuf.OneofOptions; |
| 7351 | return proto.google.protobuf.OneofOptions.deserializeBinaryFromReader(msg, reader); |
| 7352 | }; |
| 7353 | |
| 7354 | |
| 7355 | /** |
| 7356 | * Deserializes binary data (in protobuf wire format) from the |
| 7357 | * given reader into the given message object. |
| 7358 | * @param {!proto.google.protobuf.OneofOptions} msg The message object to deserialize into. |
| 7359 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 7360 | * @return {!proto.google.protobuf.OneofOptions} |
| 7361 | */ |
| 7362 | proto.google.protobuf.OneofOptions.deserializeBinaryFromReader = function(msg, reader) { |
| 7363 | while (reader.nextField()) { |
| 7364 | if (reader.isEndGroup()) { |
| 7365 | break; |
| 7366 | } |
| 7367 | var field = reader.getFieldNumber(); |
| 7368 | switch (field) { |
| 7369 | case 999: |
| 7370 | var value = new proto.google.protobuf.UninterpretedOption; |
| 7371 | reader.readMessage(value,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader); |
| 7372 | msg.addUninterpretedOption(value); |
| 7373 | break; |
| 7374 | default: |
| 7375 | jspb.Message.readBinaryExtension(msg, reader, |
| 7376 | proto.google.protobuf.OneofOptions.extensionsBinary, |
| 7377 | proto.google.protobuf.OneofOptions.prototype.getExtension, |
| 7378 | proto.google.protobuf.OneofOptions.prototype.setExtension); |
| 7379 | break; |
| 7380 | } |
| 7381 | } |
| 7382 | return msg; |
| 7383 | }; |
| 7384 | |
| 7385 | |
| 7386 | /** |
| 7387 | * Serializes the message to binary data (in protobuf wire format). |
| 7388 | * @return {!Uint8Array} |
| 7389 | */ |
| 7390 | proto.google.protobuf.OneofOptions.prototype.serializeBinary = function() { |
| 7391 | var writer = new jspb.BinaryWriter(); |
| 7392 | proto.google.protobuf.OneofOptions.serializeBinaryToWriter(this, writer); |
| 7393 | return writer.getResultBuffer(); |
| 7394 | }; |
| 7395 | |
| 7396 | |
| 7397 | /** |
| 7398 | * Serializes the given message to binary data (in protobuf wire |
| 7399 | * format), writing to the given BinaryWriter. |
| 7400 | * @param {!proto.google.protobuf.OneofOptions} message |
| 7401 | * @param {!jspb.BinaryWriter} writer |
| 7402 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 7403 | */ |
| 7404 | proto.google.protobuf.OneofOptions.serializeBinaryToWriter = function(message, writer) { |
| 7405 | var f = undefined; |
| 7406 | f = message.getUninterpretedOptionList(); |
| 7407 | if (f.length > 0) { |
| 7408 | writer.writeRepeatedMessage( |
| 7409 | 999, |
| 7410 | f, |
| 7411 | proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter |
| 7412 | ); |
| 7413 | } |
| 7414 | jspb.Message.serializeBinaryExtensions(message, writer, |
| 7415 | proto.google.protobuf.OneofOptions.extensionsBinary, proto.google.protobuf.OneofOptions.prototype.getExtension); |
| 7416 | }; |
| 7417 | |
| 7418 | |
| 7419 | /** |
| 7420 | * repeated UninterpretedOption uninterpreted_option = 999; |
| 7421 | * @return {!Array<!proto.google.protobuf.UninterpretedOption>} |
| 7422 | */ |
| 7423 | proto.google.protobuf.OneofOptions.prototype.getUninterpretedOptionList = function() { |
| 7424 | return /** @type{!Array<!proto.google.protobuf.UninterpretedOption>} */ ( |
| 7425 | jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.UninterpretedOption, 999)); |
| 7426 | }; |
| 7427 | |
| 7428 | |
| 7429 | /** |
| 7430 | * @param {!Array<!proto.google.protobuf.UninterpretedOption>} value |
| 7431 | * @return {!proto.google.protobuf.OneofOptions} returns this |
| 7432 | */ |
| 7433 | proto.google.protobuf.OneofOptions.prototype.setUninterpretedOptionList = function(value) { |
| 7434 | return jspb.Message.setRepeatedWrapperField(this, 999, value); |
| 7435 | }; |
| 7436 | |
| 7437 | |
| 7438 | /** |
| 7439 | * @param {!proto.google.protobuf.UninterpretedOption=} opt_value |
| 7440 | * @param {number=} opt_index |
| 7441 | * @return {!proto.google.protobuf.UninterpretedOption} |
| 7442 | */ |
| 7443 | proto.google.protobuf.OneofOptions.prototype.addUninterpretedOption = function(opt_value, opt_index) { |
| 7444 | return jspb.Message.addToRepeatedWrapperField(this, 999, opt_value, proto.google.protobuf.UninterpretedOption, opt_index); |
| 7445 | }; |
| 7446 | |
| 7447 | |
| 7448 | /** |
| 7449 | * Clears the list making it empty but non-null. |
| 7450 | * @return {!proto.google.protobuf.OneofOptions} returns this |
| 7451 | */ |
| 7452 | proto.google.protobuf.OneofOptions.prototype.clearUninterpretedOptionList = function() { |
| 7453 | return this.setUninterpretedOptionList([]); |
| 7454 | }; |
| 7455 | |
| 7456 | |
| 7457 | |
| 7458 | /** |
| 7459 | * List of repeated fields within this message type. |
| 7460 | * @private {!Array<number>} |
| 7461 | * @const |
| 7462 | */ |
| 7463 | proto.google.protobuf.EnumOptions.repeatedFields_ = [999]; |
| 7464 | |
| 7465 | |
| 7466 | |
| 7467 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 7468 | /** |
| 7469 | * Creates an object representation of this proto. |
| 7470 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 7471 | * Optional fields that are not set will be set to undefined. |
| 7472 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 7473 | * For the list of reserved names please see: |
| 7474 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 7475 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 7476 | * JSPB instance for transitional soy proto support: |
| 7477 | * http://goto/soy-param-migration |
| 7478 | * @return {!Object} |
| 7479 | */ |
| 7480 | proto.google.protobuf.EnumOptions.prototype.toObject = function(opt_includeInstance) { |
| 7481 | return proto.google.protobuf.EnumOptions.toObject(opt_includeInstance, this); |
| 7482 | }; |
| 7483 | |
| 7484 | |
| 7485 | /** |
| 7486 | * Static version of the {@see toObject} method. |
| 7487 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 7488 | * the JSPB instance for transitional soy proto support: |
| 7489 | * http://goto/soy-param-migration |
| 7490 | * @param {!proto.google.protobuf.EnumOptions} msg The msg instance to transform. |
| 7491 | * @return {!Object} |
| 7492 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 7493 | */ |
| 7494 | proto.google.protobuf.EnumOptions.toObject = function(includeInstance, msg) { |
| 7495 | var f, obj = { |
| 7496 | allowAlias: (f = jspb.Message.getBooleanField(msg, 2)) == null ? undefined : f, |
| 7497 | deprecated: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), |
| 7498 | uninterpretedOptionList: jspb.Message.toObjectList(msg.getUninterpretedOptionList(), |
| 7499 | proto.google.protobuf.UninterpretedOption.toObject, includeInstance) |
| 7500 | }; |
| 7501 | |
| 7502 | jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj, |
| 7503 | proto.google.protobuf.EnumOptions.extensions, proto.google.protobuf.EnumOptions.prototype.getExtension, |
| 7504 | includeInstance); |
| 7505 | if (includeInstance) { |
| 7506 | obj.$jspbMessageInstance = msg; |
| 7507 | } |
| 7508 | return obj; |
| 7509 | }; |
| 7510 | } |
| 7511 | |
| 7512 | |
| 7513 | /** |
| 7514 | * Deserializes binary data (in protobuf wire format). |
| 7515 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 7516 | * @return {!proto.google.protobuf.EnumOptions} |
| 7517 | */ |
| 7518 | proto.google.protobuf.EnumOptions.deserializeBinary = function(bytes) { |
| 7519 | var reader = new jspb.BinaryReader(bytes); |
| 7520 | var msg = new proto.google.protobuf.EnumOptions; |
| 7521 | return proto.google.protobuf.EnumOptions.deserializeBinaryFromReader(msg, reader); |
| 7522 | }; |
| 7523 | |
| 7524 | |
| 7525 | /** |
| 7526 | * Deserializes binary data (in protobuf wire format) from the |
| 7527 | * given reader into the given message object. |
| 7528 | * @param {!proto.google.protobuf.EnumOptions} msg The message object to deserialize into. |
| 7529 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 7530 | * @return {!proto.google.protobuf.EnumOptions} |
| 7531 | */ |
| 7532 | proto.google.protobuf.EnumOptions.deserializeBinaryFromReader = function(msg, reader) { |
| 7533 | while (reader.nextField()) { |
| 7534 | if (reader.isEndGroup()) { |
| 7535 | break; |
| 7536 | } |
| 7537 | var field = reader.getFieldNumber(); |
| 7538 | switch (field) { |
| 7539 | case 2: |
| 7540 | var value = /** @type {boolean} */ (reader.readBool()); |
| 7541 | msg.setAllowAlias(value); |
| 7542 | break; |
| 7543 | case 3: |
| 7544 | var value = /** @type {boolean} */ (reader.readBool()); |
| 7545 | msg.setDeprecated(value); |
| 7546 | break; |
| 7547 | case 999: |
| 7548 | var value = new proto.google.protobuf.UninterpretedOption; |
| 7549 | reader.readMessage(value,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader); |
| 7550 | msg.addUninterpretedOption(value); |
| 7551 | break; |
| 7552 | default: |
| 7553 | jspb.Message.readBinaryExtension(msg, reader, |
| 7554 | proto.google.protobuf.EnumOptions.extensionsBinary, |
| 7555 | proto.google.protobuf.EnumOptions.prototype.getExtension, |
| 7556 | proto.google.protobuf.EnumOptions.prototype.setExtension); |
| 7557 | break; |
| 7558 | } |
| 7559 | } |
| 7560 | return msg; |
| 7561 | }; |
| 7562 | |
| 7563 | |
| 7564 | /** |
| 7565 | * Serializes the message to binary data (in protobuf wire format). |
| 7566 | * @return {!Uint8Array} |
| 7567 | */ |
| 7568 | proto.google.protobuf.EnumOptions.prototype.serializeBinary = function() { |
| 7569 | var writer = new jspb.BinaryWriter(); |
| 7570 | proto.google.protobuf.EnumOptions.serializeBinaryToWriter(this, writer); |
| 7571 | return writer.getResultBuffer(); |
| 7572 | }; |
| 7573 | |
| 7574 | |
| 7575 | /** |
| 7576 | * Serializes the given message to binary data (in protobuf wire |
| 7577 | * format), writing to the given BinaryWriter. |
| 7578 | * @param {!proto.google.protobuf.EnumOptions} message |
| 7579 | * @param {!jspb.BinaryWriter} writer |
| 7580 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 7581 | */ |
| 7582 | proto.google.protobuf.EnumOptions.serializeBinaryToWriter = function(message, writer) { |
| 7583 | var f = undefined; |
| 7584 | f = /** @type {boolean} */ (jspb.Message.getField(message, 2)); |
| 7585 | if (f != null) { |
| 7586 | writer.writeBool( |
| 7587 | 2, |
| 7588 | f |
| 7589 | ); |
| 7590 | } |
| 7591 | f = /** @type {boolean} */ (jspb.Message.getField(message, 3)); |
| 7592 | if (f != null) { |
| 7593 | writer.writeBool( |
| 7594 | 3, |
| 7595 | f |
| 7596 | ); |
| 7597 | } |
| 7598 | f = message.getUninterpretedOptionList(); |
| 7599 | if (f.length > 0) { |
| 7600 | writer.writeRepeatedMessage( |
| 7601 | 999, |
| 7602 | f, |
| 7603 | proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter |
| 7604 | ); |
| 7605 | } |
| 7606 | jspb.Message.serializeBinaryExtensions(message, writer, |
| 7607 | proto.google.protobuf.EnumOptions.extensionsBinary, proto.google.protobuf.EnumOptions.prototype.getExtension); |
| 7608 | }; |
| 7609 | |
| 7610 | |
| 7611 | /** |
| 7612 | * optional bool allow_alias = 2; |
| 7613 | * @return {boolean} |
| 7614 | */ |
| 7615 | proto.google.protobuf.EnumOptions.prototype.getAllowAlias = function() { |
| 7616 | return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); |
| 7617 | }; |
| 7618 | |
| 7619 | |
| 7620 | /** |
| 7621 | * @param {boolean} value |
| 7622 | * @return {!proto.google.protobuf.EnumOptions} returns this |
| 7623 | */ |
| 7624 | proto.google.protobuf.EnumOptions.prototype.setAllowAlias = function(value) { |
| 7625 | return jspb.Message.setField(this, 2, value); |
| 7626 | }; |
| 7627 | |
| 7628 | |
| 7629 | /** |
| 7630 | * Clears the field making it undefined. |
| 7631 | * @return {!proto.google.protobuf.EnumOptions} returns this |
| 7632 | */ |
| 7633 | proto.google.protobuf.EnumOptions.prototype.clearAllowAlias = function() { |
| 7634 | return jspb.Message.setField(this, 2, undefined); |
| 7635 | }; |
| 7636 | |
| 7637 | |
| 7638 | /** |
| 7639 | * Returns whether this field is set. |
| 7640 | * @return {boolean} |
| 7641 | */ |
| 7642 | proto.google.protobuf.EnumOptions.prototype.hasAllowAlias = function() { |
| 7643 | return jspb.Message.getField(this, 2) != null; |
| 7644 | }; |
| 7645 | |
| 7646 | |
| 7647 | /** |
| 7648 | * optional bool deprecated = 3; |
| 7649 | * @return {boolean} |
| 7650 | */ |
| 7651 | proto.google.protobuf.EnumOptions.prototype.getDeprecated = function() { |
| 7652 | return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); |
| 7653 | }; |
| 7654 | |
| 7655 | |
| 7656 | /** |
| 7657 | * @param {boolean} value |
| 7658 | * @return {!proto.google.protobuf.EnumOptions} returns this |
| 7659 | */ |
| 7660 | proto.google.protobuf.EnumOptions.prototype.setDeprecated = function(value) { |
| 7661 | return jspb.Message.setField(this, 3, value); |
| 7662 | }; |
| 7663 | |
| 7664 | |
| 7665 | /** |
| 7666 | * Clears the field making it undefined. |
| 7667 | * @return {!proto.google.protobuf.EnumOptions} returns this |
| 7668 | */ |
| 7669 | proto.google.protobuf.EnumOptions.prototype.clearDeprecated = function() { |
| 7670 | return jspb.Message.setField(this, 3, undefined); |
| 7671 | }; |
| 7672 | |
| 7673 | |
| 7674 | /** |
| 7675 | * Returns whether this field is set. |
| 7676 | * @return {boolean} |
| 7677 | */ |
| 7678 | proto.google.protobuf.EnumOptions.prototype.hasDeprecated = function() { |
| 7679 | return jspb.Message.getField(this, 3) != null; |
| 7680 | }; |
| 7681 | |
| 7682 | |
| 7683 | /** |
| 7684 | * repeated UninterpretedOption uninterpreted_option = 999; |
| 7685 | * @return {!Array<!proto.google.protobuf.UninterpretedOption>} |
| 7686 | */ |
| 7687 | proto.google.protobuf.EnumOptions.prototype.getUninterpretedOptionList = function() { |
| 7688 | return /** @type{!Array<!proto.google.protobuf.UninterpretedOption>} */ ( |
| 7689 | jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.UninterpretedOption, 999)); |
| 7690 | }; |
| 7691 | |
| 7692 | |
| 7693 | /** |
| 7694 | * @param {!Array<!proto.google.protobuf.UninterpretedOption>} value |
| 7695 | * @return {!proto.google.protobuf.EnumOptions} returns this |
| 7696 | */ |
| 7697 | proto.google.protobuf.EnumOptions.prototype.setUninterpretedOptionList = function(value) { |
| 7698 | return jspb.Message.setRepeatedWrapperField(this, 999, value); |
| 7699 | }; |
| 7700 | |
| 7701 | |
| 7702 | /** |
| 7703 | * @param {!proto.google.protobuf.UninterpretedOption=} opt_value |
| 7704 | * @param {number=} opt_index |
| 7705 | * @return {!proto.google.protobuf.UninterpretedOption} |
| 7706 | */ |
| 7707 | proto.google.protobuf.EnumOptions.prototype.addUninterpretedOption = function(opt_value, opt_index) { |
| 7708 | return jspb.Message.addToRepeatedWrapperField(this, 999, opt_value, proto.google.protobuf.UninterpretedOption, opt_index); |
| 7709 | }; |
| 7710 | |
| 7711 | |
| 7712 | /** |
| 7713 | * Clears the list making it empty but non-null. |
| 7714 | * @return {!proto.google.protobuf.EnumOptions} returns this |
| 7715 | */ |
| 7716 | proto.google.protobuf.EnumOptions.prototype.clearUninterpretedOptionList = function() { |
| 7717 | return this.setUninterpretedOptionList([]); |
| 7718 | }; |
| 7719 | |
| 7720 | |
| 7721 | |
| 7722 | /** |
| 7723 | * List of repeated fields within this message type. |
| 7724 | * @private {!Array<number>} |
| 7725 | * @const |
| 7726 | */ |
| 7727 | proto.google.protobuf.EnumValueOptions.repeatedFields_ = [999]; |
| 7728 | |
| 7729 | |
| 7730 | |
| 7731 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 7732 | /** |
| 7733 | * Creates an object representation of this proto. |
| 7734 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 7735 | * Optional fields that are not set will be set to undefined. |
| 7736 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 7737 | * For the list of reserved names please see: |
| 7738 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 7739 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 7740 | * JSPB instance for transitional soy proto support: |
| 7741 | * http://goto/soy-param-migration |
| 7742 | * @return {!Object} |
| 7743 | */ |
| 7744 | proto.google.protobuf.EnumValueOptions.prototype.toObject = function(opt_includeInstance) { |
| 7745 | return proto.google.protobuf.EnumValueOptions.toObject(opt_includeInstance, this); |
| 7746 | }; |
| 7747 | |
| 7748 | |
| 7749 | /** |
| 7750 | * Static version of the {@see toObject} method. |
| 7751 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 7752 | * the JSPB instance for transitional soy proto support: |
| 7753 | * http://goto/soy-param-migration |
| 7754 | * @param {!proto.google.protobuf.EnumValueOptions} msg The msg instance to transform. |
| 7755 | * @return {!Object} |
| 7756 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 7757 | */ |
| 7758 | proto.google.protobuf.EnumValueOptions.toObject = function(includeInstance, msg) { |
| 7759 | var f, obj = { |
| 7760 | deprecated: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), |
| 7761 | uninterpretedOptionList: jspb.Message.toObjectList(msg.getUninterpretedOptionList(), |
| 7762 | proto.google.protobuf.UninterpretedOption.toObject, includeInstance) |
| 7763 | }; |
| 7764 | |
| 7765 | jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj, |
| 7766 | proto.google.protobuf.EnumValueOptions.extensions, proto.google.protobuf.EnumValueOptions.prototype.getExtension, |
| 7767 | includeInstance); |
| 7768 | if (includeInstance) { |
| 7769 | obj.$jspbMessageInstance = msg; |
| 7770 | } |
| 7771 | return obj; |
| 7772 | }; |
| 7773 | } |
| 7774 | |
| 7775 | |
| 7776 | /** |
| 7777 | * Deserializes binary data (in protobuf wire format). |
| 7778 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 7779 | * @return {!proto.google.protobuf.EnumValueOptions} |
| 7780 | */ |
| 7781 | proto.google.protobuf.EnumValueOptions.deserializeBinary = function(bytes) { |
| 7782 | var reader = new jspb.BinaryReader(bytes); |
| 7783 | var msg = new proto.google.protobuf.EnumValueOptions; |
| 7784 | return proto.google.protobuf.EnumValueOptions.deserializeBinaryFromReader(msg, reader); |
| 7785 | }; |
| 7786 | |
| 7787 | |
| 7788 | /** |
| 7789 | * Deserializes binary data (in protobuf wire format) from the |
| 7790 | * given reader into the given message object. |
| 7791 | * @param {!proto.google.protobuf.EnumValueOptions} msg The message object to deserialize into. |
| 7792 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 7793 | * @return {!proto.google.protobuf.EnumValueOptions} |
| 7794 | */ |
| 7795 | proto.google.protobuf.EnumValueOptions.deserializeBinaryFromReader = function(msg, reader) { |
| 7796 | while (reader.nextField()) { |
| 7797 | if (reader.isEndGroup()) { |
| 7798 | break; |
| 7799 | } |
| 7800 | var field = reader.getFieldNumber(); |
| 7801 | switch (field) { |
| 7802 | case 1: |
| 7803 | var value = /** @type {boolean} */ (reader.readBool()); |
| 7804 | msg.setDeprecated(value); |
| 7805 | break; |
| 7806 | case 999: |
| 7807 | var value = new proto.google.protobuf.UninterpretedOption; |
| 7808 | reader.readMessage(value,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader); |
| 7809 | msg.addUninterpretedOption(value); |
| 7810 | break; |
| 7811 | default: |
| 7812 | jspb.Message.readBinaryExtension(msg, reader, |
| 7813 | proto.google.protobuf.EnumValueOptions.extensionsBinary, |
| 7814 | proto.google.protobuf.EnumValueOptions.prototype.getExtension, |
| 7815 | proto.google.protobuf.EnumValueOptions.prototype.setExtension); |
| 7816 | break; |
| 7817 | } |
| 7818 | } |
| 7819 | return msg; |
| 7820 | }; |
| 7821 | |
| 7822 | |
| 7823 | /** |
| 7824 | * Serializes the message to binary data (in protobuf wire format). |
| 7825 | * @return {!Uint8Array} |
| 7826 | */ |
| 7827 | proto.google.protobuf.EnumValueOptions.prototype.serializeBinary = function() { |
| 7828 | var writer = new jspb.BinaryWriter(); |
| 7829 | proto.google.protobuf.EnumValueOptions.serializeBinaryToWriter(this, writer); |
| 7830 | return writer.getResultBuffer(); |
| 7831 | }; |
| 7832 | |
| 7833 | |
| 7834 | /** |
| 7835 | * Serializes the given message to binary data (in protobuf wire |
| 7836 | * format), writing to the given BinaryWriter. |
| 7837 | * @param {!proto.google.protobuf.EnumValueOptions} message |
| 7838 | * @param {!jspb.BinaryWriter} writer |
| 7839 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 7840 | */ |
| 7841 | proto.google.protobuf.EnumValueOptions.serializeBinaryToWriter = function(message, writer) { |
| 7842 | var f = undefined; |
| 7843 | f = /** @type {boolean} */ (jspb.Message.getField(message, 1)); |
| 7844 | if (f != null) { |
| 7845 | writer.writeBool( |
| 7846 | 1, |
| 7847 | f |
| 7848 | ); |
| 7849 | } |
| 7850 | f = message.getUninterpretedOptionList(); |
| 7851 | if (f.length > 0) { |
| 7852 | writer.writeRepeatedMessage( |
| 7853 | 999, |
| 7854 | f, |
| 7855 | proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter |
| 7856 | ); |
| 7857 | } |
| 7858 | jspb.Message.serializeBinaryExtensions(message, writer, |
| 7859 | proto.google.protobuf.EnumValueOptions.extensionsBinary, proto.google.protobuf.EnumValueOptions.prototype.getExtension); |
| 7860 | }; |
| 7861 | |
| 7862 | |
| 7863 | /** |
| 7864 | * optional bool deprecated = 1; |
| 7865 | * @return {boolean} |
| 7866 | */ |
| 7867 | proto.google.protobuf.EnumValueOptions.prototype.getDeprecated = function() { |
| 7868 | return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); |
| 7869 | }; |
| 7870 | |
| 7871 | |
| 7872 | /** |
| 7873 | * @param {boolean} value |
| 7874 | * @return {!proto.google.protobuf.EnumValueOptions} returns this |
| 7875 | */ |
| 7876 | proto.google.protobuf.EnumValueOptions.prototype.setDeprecated = function(value) { |
| 7877 | return jspb.Message.setField(this, 1, value); |
| 7878 | }; |
| 7879 | |
| 7880 | |
| 7881 | /** |
| 7882 | * Clears the field making it undefined. |
| 7883 | * @return {!proto.google.protobuf.EnumValueOptions} returns this |
| 7884 | */ |
| 7885 | proto.google.protobuf.EnumValueOptions.prototype.clearDeprecated = function() { |
| 7886 | return jspb.Message.setField(this, 1, undefined); |
| 7887 | }; |
| 7888 | |
| 7889 | |
| 7890 | /** |
| 7891 | * Returns whether this field is set. |
| 7892 | * @return {boolean} |
| 7893 | */ |
| 7894 | proto.google.protobuf.EnumValueOptions.prototype.hasDeprecated = function() { |
| 7895 | return jspb.Message.getField(this, 1) != null; |
| 7896 | }; |
| 7897 | |
| 7898 | |
| 7899 | /** |
| 7900 | * repeated UninterpretedOption uninterpreted_option = 999; |
| 7901 | * @return {!Array<!proto.google.protobuf.UninterpretedOption>} |
| 7902 | */ |
| 7903 | proto.google.protobuf.EnumValueOptions.prototype.getUninterpretedOptionList = function() { |
| 7904 | return /** @type{!Array<!proto.google.protobuf.UninterpretedOption>} */ ( |
| 7905 | jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.UninterpretedOption, 999)); |
| 7906 | }; |
| 7907 | |
| 7908 | |
| 7909 | /** |
| 7910 | * @param {!Array<!proto.google.protobuf.UninterpretedOption>} value |
| 7911 | * @return {!proto.google.protobuf.EnumValueOptions} returns this |
| 7912 | */ |
| 7913 | proto.google.protobuf.EnumValueOptions.prototype.setUninterpretedOptionList = function(value) { |
| 7914 | return jspb.Message.setRepeatedWrapperField(this, 999, value); |
| 7915 | }; |
| 7916 | |
| 7917 | |
| 7918 | /** |
| 7919 | * @param {!proto.google.protobuf.UninterpretedOption=} opt_value |
| 7920 | * @param {number=} opt_index |
| 7921 | * @return {!proto.google.protobuf.UninterpretedOption} |
| 7922 | */ |
| 7923 | proto.google.protobuf.EnumValueOptions.prototype.addUninterpretedOption = function(opt_value, opt_index) { |
| 7924 | return jspb.Message.addToRepeatedWrapperField(this, 999, opt_value, proto.google.protobuf.UninterpretedOption, opt_index); |
| 7925 | }; |
| 7926 | |
| 7927 | |
| 7928 | /** |
| 7929 | * Clears the list making it empty but non-null. |
| 7930 | * @return {!proto.google.protobuf.EnumValueOptions} returns this |
| 7931 | */ |
| 7932 | proto.google.protobuf.EnumValueOptions.prototype.clearUninterpretedOptionList = function() { |
| 7933 | return this.setUninterpretedOptionList([]); |
| 7934 | }; |
| 7935 | |
| 7936 | |
| 7937 | |
| 7938 | /** |
| 7939 | * List of repeated fields within this message type. |
| 7940 | * @private {!Array<number>} |
| 7941 | * @const |
| 7942 | */ |
| 7943 | proto.google.protobuf.ServiceOptions.repeatedFields_ = [999]; |
| 7944 | |
| 7945 | |
| 7946 | |
| 7947 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 7948 | /** |
| 7949 | * Creates an object representation of this proto. |
| 7950 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 7951 | * Optional fields that are not set will be set to undefined. |
| 7952 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 7953 | * For the list of reserved names please see: |
| 7954 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 7955 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 7956 | * JSPB instance for transitional soy proto support: |
| 7957 | * http://goto/soy-param-migration |
| 7958 | * @return {!Object} |
| 7959 | */ |
| 7960 | proto.google.protobuf.ServiceOptions.prototype.toObject = function(opt_includeInstance) { |
| 7961 | return proto.google.protobuf.ServiceOptions.toObject(opt_includeInstance, this); |
| 7962 | }; |
| 7963 | |
| 7964 | |
| 7965 | /** |
| 7966 | * Static version of the {@see toObject} method. |
| 7967 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 7968 | * the JSPB instance for transitional soy proto support: |
| 7969 | * http://goto/soy-param-migration |
| 7970 | * @param {!proto.google.protobuf.ServiceOptions} msg The msg instance to transform. |
| 7971 | * @return {!Object} |
| 7972 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 7973 | */ |
| 7974 | proto.google.protobuf.ServiceOptions.toObject = function(includeInstance, msg) { |
| 7975 | var f, obj = { |
| 7976 | deprecated: jspb.Message.getBooleanFieldWithDefault(msg, 33, false), |
| 7977 | uninterpretedOptionList: jspb.Message.toObjectList(msg.getUninterpretedOptionList(), |
| 7978 | proto.google.protobuf.UninterpretedOption.toObject, includeInstance) |
| 7979 | }; |
| 7980 | |
| 7981 | jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj, |
| 7982 | proto.google.protobuf.ServiceOptions.extensions, proto.google.protobuf.ServiceOptions.prototype.getExtension, |
| 7983 | includeInstance); |
| 7984 | if (includeInstance) { |
| 7985 | obj.$jspbMessageInstance = msg; |
| 7986 | } |
| 7987 | return obj; |
| 7988 | }; |
| 7989 | } |
| 7990 | |
| 7991 | |
| 7992 | /** |
| 7993 | * Deserializes binary data (in protobuf wire format). |
| 7994 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 7995 | * @return {!proto.google.protobuf.ServiceOptions} |
| 7996 | */ |
| 7997 | proto.google.protobuf.ServiceOptions.deserializeBinary = function(bytes) { |
| 7998 | var reader = new jspb.BinaryReader(bytes); |
| 7999 | var msg = new proto.google.protobuf.ServiceOptions; |
| 8000 | return proto.google.protobuf.ServiceOptions.deserializeBinaryFromReader(msg, reader); |
| 8001 | }; |
| 8002 | |
| 8003 | |
| 8004 | /** |
| 8005 | * Deserializes binary data (in protobuf wire format) from the |
| 8006 | * given reader into the given message object. |
| 8007 | * @param {!proto.google.protobuf.ServiceOptions} msg The message object to deserialize into. |
| 8008 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 8009 | * @return {!proto.google.protobuf.ServiceOptions} |
| 8010 | */ |
| 8011 | proto.google.protobuf.ServiceOptions.deserializeBinaryFromReader = function(msg, reader) { |
| 8012 | while (reader.nextField()) { |
| 8013 | if (reader.isEndGroup()) { |
| 8014 | break; |
| 8015 | } |
| 8016 | var field = reader.getFieldNumber(); |
| 8017 | switch (field) { |
| 8018 | case 33: |
| 8019 | var value = /** @type {boolean} */ (reader.readBool()); |
| 8020 | msg.setDeprecated(value); |
| 8021 | break; |
| 8022 | case 999: |
| 8023 | var value = new proto.google.protobuf.UninterpretedOption; |
| 8024 | reader.readMessage(value,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader); |
| 8025 | msg.addUninterpretedOption(value); |
| 8026 | break; |
| 8027 | default: |
| 8028 | jspb.Message.readBinaryExtension(msg, reader, |
| 8029 | proto.google.protobuf.ServiceOptions.extensionsBinary, |
| 8030 | proto.google.protobuf.ServiceOptions.prototype.getExtension, |
| 8031 | proto.google.protobuf.ServiceOptions.prototype.setExtension); |
| 8032 | break; |
| 8033 | } |
| 8034 | } |
| 8035 | return msg; |
| 8036 | }; |
| 8037 | |
| 8038 | |
| 8039 | /** |
| 8040 | * Serializes the message to binary data (in protobuf wire format). |
| 8041 | * @return {!Uint8Array} |
| 8042 | */ |
| 8043 | proto.google.protobuf.ServiceOptions.prototype.serializeBinary = function() { |
| 8044 | var writer = new jspb.BinaryWriter(); |
| 8045 | proto.google.protobuf.ServiceOptions.serializeBinaryToWriter(this, writer); |
| 8046 | return writer.getResultBuffer(); |
| 8047 | }; |
| 8048 | |
| 8049 | |
| 8050 | /** |
| 8051 | * Serializes the given message to binary data (in protobuf wire |
| 8052 | * format), writing to the given BinaryWriter. |
| 8053 | * @param {!proto.google.protobuf.ServiceOptions} message |
| 8054 | * @param {!jspb.BinaryWriter} writer |
| 8055 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 8056 | */ |
| 8057 | proto.google.protobuf.ServiceOptions.serializeBinaryToWriter = function(message, writer) { |
| 8058 | var f = undefined; |
| 8059 | f = /** @type {boolean} */ (jspb.Message.getField(message, 33)); |
| 8060 | if (f != null) { |
| 8061 | writer.writeBool( |
| 8062 | 33, |
| 8063 | f |
| 8064 | ); |
| 8065 | } |
| 8066 | f = message.getUninterpretedOptionList(); |
| 8067 | if (f.length > 0) { |
| 8068 | writer.writeRepeatedMessage( |
| 8069 | 999, |
| 8070 | f, |
| 8071 | proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter |
| 8072 | ); |
| 8073 | } |
| 8074 | jspb.Message.serializeBinaryExtensions(message, writer, |
| 8075 | proto.google.protobuf.ServiceOptions.extensionsBinary, proto.google.protobuf.ServiceOptions.prototype.getExtension); |
| 8076 | }; |
| 8077 | |
| 8078 | |
| 8079 | /** |
| 8080 | * optional bool deprecated = 33; |
| 8081 | * @return {boolean} |
| 8082 | */ |
| 8083 | proto.google.protobuf.ServiceOptions.prototype.getDeprecated = function() { |
| 8084 | return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 33, false)); |
| 8085 | }; |
| 8086 | |
| 8087 | |
| 8088 | /** |
| 8089 | * @param {boolean} value |
| 8090 | * @return {!proto.google.protobuf.ServiceOptions} returns this |
| 8091 | */ |
| 8092 | proto.google.protobuf.ServiceOptions.prototype.setDeprecated = function(value) { |
| 8093 | return jspb.Message.setField(this, 33, value); |
| 8094 | }; |
| 8095 | |
| 8096 | |
| 8097 | /** |
| 8098 | * Clears the field making it undefined. |
| 8099 | * @return {!proto.google.protobuf.ServiceOptions} returns this |
| 8100 | */ |
| 8101 | proto.google.protobuf.ServiceOptions.prototype.clearDeprecated = function() { |
| 8102 | return jspb.Message.setField(this, 33, undefined); |
| 8103 | }; |
| 8104 | |
| 8105 | |
| 8106 | /** |
| 8107 | * Returns whether this field is set. |
| 8108 | * @return {boolean} |
| 8109 | */ |
| 8110 | proto.google.protobuf.ServiceOptions.prototype.hasDeprecated = function() { |
| 8111 | return jspb.Message.getField(this, 33) != null; |
| 8112 | }; |
| 8113 | |
| 8114 | |
| 8115 | /** |
| 8116 | * repeated UninterpretedOption uninterpreted_option = 999; |
| 8117 | * @return {!Array<!proto.google.protobuf.UninterpretedOption>} |
| 8118 | */ |
| 8119 | proto.google.protobuf.ServiceOptions.prototype.getUninterpretedOptionList = function() { |
| 8120 | return /** @type{!Array<!proto.google.protobuf.UninterpretedOption>} */ ( |
| 8121 | jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.UninterpretedOption, 999)); |
| 8122 | }; |
| 8123 | |
| 8124 | |
| 8125 | /** |
| 8126 | * @param {!Array<!proto.google.protobuf.UninterpretedOption>} value |
| 8127 | * @return {!proto.google.protobuf.ServiceOptions} returns this |
| 8128 | */ |
| 8129 | proto.google.protobuf.ServiceOptions.prototype.setUninterpretedOptionList = function(value) { |
| 8130 | return jspb.Message.setRepeatedWrapperField(this, 999, value); |
| 8131 | }; |
| 8132 | |
| 8133 | |
| 8134 | /** |
| 8135 | * @param {!proto.google.protobuf.UninterpretedOption=} opt_value |
| 8136 | * @param {number=} opt_index |
| 8137 | * @return {!proto.google.protobuf.UninterpretedOption} |
| 8138 | */ |
| 8139 | proto.google.protobuf.ServiceOptions.prototype.addUninterpretedOption = function(opt_value, opt_index) { |
| 8140 | return jspb.Message.addToRepeatedWrapperField(this, 999, opt_value, proto.google.protobuf.UninterpretedOption, opt_index); |
| 8141 | }; |
| 8142 | |
| 8143 | |
| 8144 | /** |
| 8145 | * Clears the list making it empty but non-null. |
| 8146 | * @return {!proto.google.protobuf.ServiceOptions} returns this |
| 8147 | */ |
| 8148 | proto.google.protobuf.ServiceOptions.prototype.clearUninterpretedOptionList = function() { |
| 8149 | return this.setUninterpretedOptionList([]); |
| 8150 | }; |
| 8151 | |
| 8152 | |
| 8153 | |
| 8154 | /** |
| 8155 | * List of repeated fields within this message type. |
| 8156 | * @private {!Array<number>} |
| 8157 | * @const |
| 8158 | */ |
| 8159 | proto.google.protobuf.MethodOptions.repeatedFields_ = [999]; |
| 8160 | |
| 8161 | |
| 8162 | |
| 8163 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 8164 | /** |
| 8165 | * Creates an object representation of this proto. |
| 8166 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 8167 | * Optional fields that are not set will be set to undefined. |
| 8168 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 8169 | * For the list of reserved names please see: |
| 8170 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 8171 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 8172 | * JSPB instance for transitional soy proto support: |
| 8173 | * http://goto/soy-param-migration |
| 8174 | * @return {!Object} |
| 8175 | */ |
| 8176 | proto.google.protobuf.MethodOptions.prototype.toObject = function(opt_includeInstance) { |
| 8177 | return proto.google.protobuf.MethodOptions.toObject(opt_includeInstance, this); |
| 8178 | }; |
| 8179 | |
| 8180 | |
| 8181 | /** |
| 8182 | * Static version of the {@see toObject} method. |
| 8183 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 8184 | * the JSPB instance for transitional soy proto support: |
| 8185 | * http://goto/soy-param-migration |
| 8186 | * @param {!proto.google.protobuf.MethodOptions} msg The msg instance to transform. |
| 8187 | * @return {!Object} |
| 8188 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 8189 | */ |
| 8190 | proto.google.protobuf.MethodOptions.toObject = function(includeInstance, msg) { |
| 8191 | var f, obj = { |
| 8192 | deprecated: jspb.Message.getBooleanFieldWithDefault(msg, 33, false), |
| 8193 | idempotencyLevel: jspb.Message.getFieldWithDefault(msg, 34, 0), |
| 8194 | uninterpretedOptionList: jspb.Message.toObjectList(msg.getUninterpretedOptionList(), |
| 8195 | proto.google.protobuf.UninterpretedOption.toObject, includeInstance) |
| 8196 | }; |
| 8197 | |
| 8198 | jspb.Message.toObjectExtension(/** @type {!jspb.Message} */ (msg), obj, |
| 8199 | proto.google.protobuf.MethodOptions.extensions, proto.google.protobuf.MethodOptions.prototype.getExtension, |
| 8200 | includeInstance); |
| 8201 | if (includeInstance) { |
| 8202 | obj.$jspbMessageInstance = msg; |
| 8203 | } |
| 8204 | return obj; |
| 8205 | }; |
| 8206 | } |
| 8207 | |
| 8208 | |
| 8209 | /** |
| 8210 | * Deserializes binary data (in protobuf wire format). |
| 8211 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 8212 | * @return {!proto.google.protobuf.MethodOptions} |
| 8213 | */ |
| 8214 | proto.google.protobuf.MethodOptions.deserializeBinary = function(bytes) { |
| 8215 | var reader = new jspb.BinaryReader(bytes); |
| 8216 | var msg = new proto.google.protobuf.MethodOptions; |
| 8217 | return proto.google.protobuf.MethodOptions.deserializeBinaryFromReader(msg, reader); |
| 8218 | }; |
| 8219 | |
| 8220 | |
| 8221 | /** |
| 8222 | * Deserializes binary data (in protobuf wire format) from the |
| 8223 | * given reader into the given message object. |
| 8224 | * @param {!proto.google.protobuf.MethodOptions} msg The message object to deserialize into. |
| 8225 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 8226 | * @return {!proto.google.protobuf.MethodOptions} |
| 8227 | */ |
| 8228 | proto.google.protobuf.MethodOptions.deserializeBinaryFromReader = function(msg, reader) { |
| 8229 | while (reader.nextField()) { |
| 8230 | if (reader.isEndGroup()) { |
| 8231 | break; |
| 8232 | } |
| 8233 | var field = reader.getFieldNumber(); |
| 8234 | switch (field) { |
| 8235 | case 33: |
| 8236 | var value = /** @type {boolean} */ (reader.readBool()); |
| 8237 | msg.setDeprecated(value); |
| 8238 | break; |
| 8239 | case 34: |
| 8240 | var value = /** @type {!proto.google.protobuf.MethodOptions.IdempotencyLevel} */ (reader.readEnum()); |
| 8241 | msg.setIdempotencyLevel(value); |
| 8242 | break; |
| 8243 | case 999: |
| 8244 | var value = new proto.google.protobuf.UninterpretedOption; |
| 8245 | reader.readMessage(value,proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader); |
| 8246 | msg.addUninterpretedOption(value); |
| 8247 | break; |
| 8248 | default: |
| 8249 | jspb.Message.readBinaryExtension(msg, reader, |
| 8250 | proto.google.protobuf.MethodOptions.extensionsBinary, |
| 8251 | proto.google.protobuf.MethodOptions.prototype.getExtension, |
| 8252 | proto.google.protobuf.MethodOptions.prototype.setExtension); |
| 8253 | break; |
| 8254 | } |
| 8255 | } |
| 8256 | return msg; |
| 8257 | }; |
| 8258 | |
| 8259 | |
| 8260 | /** |
| 8261 | * Serializes the message to binary data (in protobuf wire format). |
| 8262 | * @return {!Uint8Array} |
| 8263 | */ |
| 8264 | proto.google.protobuf.MethodOptions.prototype.serializeBinary = function() { |
| 8265 | var writer = new jspb.BinaryWriter(); |
| 8266 | proto.google.protobuf.MethodOptions.serializeBinaryToWriter(this, writer); |
| 8267 | return writer.getResultBuffer(); |
| 8268 | }; |
| 8269 | |
| 8270 | |
| 8271 | /** |
| 8272 | * Serializes the given message to binary data (in protobuf wire |
| 8273 | * format), writing to the given BinaryWriter. |
| 8274 | * @param {!proto.google.protobuf.MethodOptions} message |
| 8275 | * @param {!jspb.BinaryWriter} writer |
| 8276 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 8277 | */ |
| 8278 | proto.google.protobuf.MethodOptions.serializeBinaryToWriter = function(message, writer) { |
| 8279 | var f = undefined; |
| 8280 | f = /** @type {boolean} */ (jspb.Message.getField(message, 33)); |
| 8281 | if (f != null) { |
| 8282 | writer.writeBool( |
| 8283 | 33, |
| 8284 | f |
| 8285 | ); |
| 8286 | } |
| 8287 | f = /** @type {!proto.google.protobuf.MethodOptions.IdempotencyLevel} */ (jspb.Message.getField(message, 34)); |
| 8288 | if (f != null) { |
| 8289 | writer.writeEnum( |
| 8290 | 34, |
| 8291 | f |
| 8292 | ); |
| 8293 | } |
| 8294 | f = message.getUninterpretedOptionList(); |
| 8295 | if (f.length > 0) { |
| 8296 | writer.writeRepeatedMessage( |
| 8297 | 999, |
| 8298 | f, |
| 8299 | proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter |
| 8300 | ); |
| 8301 | } |
| 8302 | jspb.Message.serializeBinaryExtensions(message, writer, |
| 8303 | proto.google.protobuf.MethodOptions.extensionsBinary, proto.google.protobuf.MethodOptions.prototype.getExtension); |
| 8304 | }; |
| 8305 | |
| 8306 | |
| 8307 | /** |
| 8308 | * @enum {number} |
| 8309 | */ |
| 8310 | proto.google.protobuf.MethodOptions.IdempotencyLevel = { |
| 8311 | IDEMPOTENCY_UNKNOWN: 0, |
| 8312 | NO_SIDE_EFFECTS: 1, |
| 8313 | IDEMPOTENT: 2 |
| 8314 | }; |
| 8315 | |
| 8316 | /** |
| 8317 | * optional bool deprecated = 33; |
| 8318 | * @return {boolean} |
| 8319 | */ |
| 8320 | proto.google.protobuf.MethodOptions.prototype.getDeprecated = function() { |
| 8321 | return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 33, false)); |
| 8322 | }; |
| 8323 | |
| 8324 | |
| 8325 | /** |
| 8326 | * @param {boolean} value |
| 8327 | * @return {!proto.google.protobuf.MethodOptions} returns this |
| 8328 | */ |
| 8329 | proto.google.protobuf.MethodOptions.prototype.setDeprecated = function(value) { |
| 8330 | return jspb.Message.setField(this, 33, value); |
| 8331 | }; |
| 8332 | |
| 8333 | |
| 8334 | /** |
| 8335 | * Clears the field making it undefined. |
| 8336 | * @return {!proto.google.protobuf.MethodOptions} returns this |
| 8337 | */ |
| 8338 | proto.google.protobuf.MethodOptions.prototype.clearDeprecated = function() { |
| 8339 | return jspb.Message.setField(this, 33, undefined); |
| 8340 | }; |
| 8341 | |
| 8342 | |
| 8343 | /** |
| 8344 | * Returns whether this field is set. |
| 8345 | * @return {boolean} |
| 8346 | */ |
| 8347 | proto.google.protobuf.MethodOptions.prototype.hasDeprecated = function() { |
| 8348 | return jspb.Message.getField(this, 33) != null; |
| 8349 | }; |
| 8350 | |
| 8351 | |
| 8352 | /** |
| 8353 | * optional IdempotencyLevel idempotency_level = 34; |
| 8354 | * @return {!proto.google.protobuf.MethodOptions.IdempotencyLevel} |
| 8355 | */ |
| 8356 | proto.google.protobuf.MethodOptions.prototype.getIdempotencyLevel = function() { |
| 8357 | return /** @type {!proto.google.protobuf.MethodOptions.IdempotencyLevel} */ (jspb.Message.getFieldWithDefault(this, 34, 0)); |
| 8358 | }; |
| 8359 | |
| 8360 | |
| 8361 | /** |
| 8362 | * @param {!proto.google.protobuf.MethodOptions.IdempotencyLevel} value |
| 8363 | * @return {!proto.google.protobuf.MethodOptions} returns this |
| 8364 | */ |
| 8365 | proto.google.protobuf.MethodOptions.prototype.setIdempotencyLevel = function(value) { |
| 8366 | return jspb.Message.setField(this, 34, value); |
| 8367 | }; |
| 8368 | |
| 8369 | |
| 8370 | /** |
| 8371 | * Clears the field making it undefined. |
| 8372 | * @return {!proto.google.protobuf.MethodOptions} returns this |
| 8373 | */ |
| 8374 | proto.google.protobuf.MethodOptions.prototype.clearIdempotencyLevel = function() { |
| 8375 | return jspb.Message.setField(this, 34, undefined); |
| 8376 | }; |
| 8377 | |
| 8378 | |
| 8379 | /** |
| 8380 | * Returns whether this field is set. |
| 8381 | * @return {boolean} |
| 8382 | */ |
| 8383 | proto.google.protobuf.MethodOptions.prototype.hasIdempotencyLevel = function() { |
| 8384 | return jspb.Message.getField(this, 34) != null; |
| 8385 | }; |
| 8386 | |
| 8387 | |
| 8388 | /** |
| 8389 | * repeated UninterpretedOption uninterpreted_option = 999; |
| 8390 | * @return {!Array<!proto.google.protobuf.UninterpretedOption>} |
| 8391 | */ |
| 8392 | proto.google.protobuf.MethodOptions.prototype.getUninterpretedOptionList = function() { |
| 8393 | return /** @type{!Array<!proto.google.protobuf.UninterpretedOption>} */ ( |
| 8394 | jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.UninterpretedOption, 999)); |
| 8395 | }; |
| 8396 | |
| 8397 | |
| 8398 | /** |
| 8399 | * @param {!Array<!proto.google.protobuf.UninterpretedOption>} value |
| 8400 | * @return {!proto.google.protobuf.MethodOptions} returns this |
| 8401 | */ |
| 8402 | proto.google.protobuf.MethodOptions.prototype.setUninterpretedOptionList = function(value) { |
| 8403 | return jspb.Message.setRepeatedWrapperField(this, 999, value); |
| 8404 | }; |
| 8405 | |
| 8406 | |
| 8407 | /** |
| 8408 | * @param {!proto.google.protobuf.UninterpretedOption=} opt_value |
| 8409 | * @param {number=} opt_index |
| 8410 | * @return {!proto.google.protobuf.UninterpretedOption} |
| 8411 | */ |
| 8412 | proto.google.protobuf.MethodOptions.prototype.addUninterpretedOption = function(opt_value, opt_index) { |
| 8413 | return jspb.Message.addToRepeatedWrapperField(this, 999, opt_value, proto.google.protobuf.UninterpretedOption, opt_index); |
| 8414 | }; |
| 8415 | |
| 8416 | |
| 8417 | /** |
| 8418 | * Clears the list making it empty but non-null. |
| 8419 | * @return {!proto.google.protobuf.MethodOptions} returns this |
| 8420 | */ |
| 8421 | proto.google.protobuf.MethodOptions.prototype.clearUninterpretedOptionList = function() { |
| 8422 | return this.setUninterpretedOptionList([]); |
| 8423 | }; |
| 8424 | |
| 8425 | |
| 8426 | |
| 8427 | /** |
| 8428 | * List of repeated fields within this message type. |
| 8429 | * @private {!Array<number>} |
| 8430 | * @const |
| 8431 | */ |
| 8432 | proto.google.protobuf.UninterpretedOption.repeatedFields_ = [2]; |
| 8433 | |
| 8434 | |
| 8435 | |
| 8436 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 8437 | /** |
| 8438 | * Creates an object representation of this proto. |
| 8439 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 8440 | * Optional fields that are not set will be set to undefined. |
| 8441 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 8442 | * For the list of reserved names please see: |
| 8443 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 8444 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 8445 | * JSPB instance for transitional soy proto support: |
| 8446 | * http://goto/soy-param-migration |
| 8447 | * @return {!Object} |
| 8448 | */ |
| 8449 | proto.google.protobuf.UninterpretedOption.prototype.toObject = function(opt_includeInstance) { |
| 8450 | return proto.google.protobuf.UninterpretedOption.toObject(opt_includeInstance, this); |
| 8451 | }; |
| 8452 | |
| 8453 | |
| 8454 | /** |
| 8455 | * Static version of the {@see toObject} method. |
| 8456 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 8457 | * the JSPB instance for transitional soy proto support: |
| 8458 | * http://goto/soy-param-migration |
| 8459 | * @param {!proto.google.protobuf.UninterpretedOption} msg The msg instance to transform. |
| 8460 | * @return {!Object} |
| 8461 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 8462 | */ |
| 8463 | proto.google.protobuf.UninterpretedOption.toObject = function(includeInstance, msg) { |
| 8464 | var f, obj = { |
| 8465 | nameList: jspb.Message.toObjectList(msg.getNameList(), |
| 8466 | proto.google.protobuf.UninterpretedOption.NamePart.toObject, includeInstance), |
| 8467 | identifierValue: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f, |
| 8468 | positiveIntValue: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f, |
| 8469 | negativeIntValue: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f, |
| 8470 | doubleValue: (f = jspb.Message.getOptionalFloatingPointField(msg, 6)) == null ? undefined : f, |
| 8471 | stringValue: msg.getStringValue_asB64(), |
| 8472 | aggregateValue: (f = jspb.Message.getField(msg, 8)) == null ? undefined : f |
| 8473 | }; |
| 8474 | |
| 8475 | if (includeInstance) { |
| 8476 | obj.$jspbMessageInstance = msg; |
| 8477 | } |
| 8478 | return obj; |
| 8479 | }; |
| 8480 | } |
| 8481 | |
| 8482 | |
| 8483 | /** |
| 8484 | * Deserializes binary data (in protobuf wire format). |
| 8485 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 8486 | * @return {!proto.google.protobuf.UninterpretedOption} |
| 8487 | */ |
| 8488 | proto.google.protobuf.UninterpretedOption.deserializeBinary = function(bytes) { |
| 8489 | var reader = new jspb.BinaryReader(bytes); |
| 8490 | var msg = new proto.google.protobuf.UninterpretedOption; |
| 8491 | return proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader(msg, reader); |
| 8492 | }; |
| 8493 | |
| 8494 | |
| 8495 | /** |
| 8496 | * Deserializes binary data (in protobuf wire format) from the |
| 8497 | * given reader into the given message object. |
| 8498 | * @param {!proto.google.protobuf.UninterpretedOption} msg The message object to deserialize into. |
| 8499 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 8500 | * @return {!proto.google.protobuf.UninterpretedOption} |
| 8501 | */ |
| 8502 | proto.google.protobuf.UninterpretedOption.deserializeBinaryFromReader = function(msg, reader) { |
| 8503 | while (reader.nextField()) { |
| 8504 | if (reader.isEndGroup()) { |
| 8505 | break; |
| 8506 | } |
| 8507 | var field = reader.getFieldNumber(); |
| 8508 | switch (field) { |
| 8509 | case 2: |
| 8510 | var value = new proto.google.protobuf.UninterpretedOption.NamePart; |
| 8511 | reader.readMessage(value,proto.google.protobuf.UninterpretedOption.NamePart.deserializeBinaryFromReader); |
| 8512 | msg.addName(value); |
| 8513 | break; |
| 8514 | case 3: |
| 8515 | var value = /** @type {string} */ (reader.readString()); |
| 8516 | msg.setIdentifierValue(value); |
| 8517 | break; |
| 8518 | case 4: |
| 8519 | var value = /** @type {number} */ (reader.readUint64()); |
| 8520 | msg.setPositiveIntValue(value); |
| 8521 | break; |
| 8522 | case 5: |
| 8523 | var value = /** @type {number} */ (reader.readInt64()); |
| 8524 | msg.setNegativeIntValue(value); |
| 8525 | break; |
| 8526 | case 6: |
| 8527 | var value = /** @type {number} */ (reader.readDouble()); |
| 8528 | msg.setDoubleValue(value); |
| 8529 | break; |
| 8530 | case 7: |
| 8531 | var value = /** @type {!Uint8Array} */ (reader.readBytes()); |
| 8532 | msg.setStringValue(value); |
| 8533 | break; |
| 8534 | case 8: |
| 8535 | var value = /** @type {string} */ (reader.readString()); |
| 8536 | msg.setAggregateValue(value); |
| 8537 | break; |
| 8538 | default: |
| 8539 | reader.skipField(); |
| 8540 | break; |
| 8541 | } |
| 8542 | } |
| 8543 | return msg; |
| 8544 | }; |
| 8545 | |
| 8546 | |
| 8547 | /** |
| 8548 | * Serializes the message to binary data (in protobuf wire format). |
| 8549 | * @return {!Uint8Array} |
| 8550 | */ |
| 8551 | proto.google.protobuf.UninterpretedOption.prototype.serializeBinary = function() { |
| 8552 | var writer = new jspb.BinaryWriter(); |
| 8553 | proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter(this, writer); |
| 8554 | return writer.getResultBuffer(); |
| 8555 | }; |
| 8556 | |
| 8557 | |
| 8558 | /** |
| 8559 | * Serializes the given message to binary data (in protobuf wire |
| 8560 | * format), writing to the given BinaryWriter. |
| 8561 | * @param {!proto.google.protobuf.UninterpretedOption} message |
| 8562 | * @param {!jspb.BinaryWriter} writer |
| 8563 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 8564 | */ |
| 8565 | proto.google.protobuf.UninterpretedOption.serializeBinaryToWriter = function(message, writer) { |
| 8566 | var f = undefined; |
| 8567 | f = message.getNameList(); |
| 8568 | if (f.length > 0) { |
| 8569 | writer.writeRepeatedMessage( |
| 8570 | 2, |
| 8571 | f, |
| 8572 | proto.google.protobuf.UninterpretedOption.NamePart.serializeBinaryToWriter |
| 8573 | ); |
| 8574 | } |
| 8575 | f = /** @type {string} */ (jspb.Message.getField(message, 3)); |
| 8576 | if (f != null) { |
| 8577 | writer.writeString( |
| 8578 | 3, |
| 8579 | f |
| 8580 | ); |
| 8581 | } |
| 8582 | f = /** @type {number} */ (jspb.Message.getField(message, 4)); |
| 8583 | if (f != null) { |
| 8584 | writer.writeUint64( |
| 8585 | 4, |
| 8586 | f |
| 8587 | ); |
| 8588 | } |
| 8589 | f = /** @type {number} */ (jspb.Message.getField(message, 5)); |
| 8590 | if (f != null) { |
| 8591 | writer.writeInt64( |
| 8592 | 5, |
| 8593 | f |
| 8594 | ); |
| 8595 | } |
| 8596 | f = /** @type {number} */ (jspb.Message.getField(message, 6)); |
| 8597 | if (f != null) { |
| 8598 | writer.writeDouble( |
| 8599 | 6, |
| 8600 | f |
| 8601 | ); |
| 8602 | } |
| 8603 | f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 7)); |
| 8604 | if (f != null) { |
| 8605 | writer.writeBytes( |
| 8606 | 7, |
| 8607 | f |
| 8608 | ); |
| 8609 | } |
| 8610 | f = /** @type {string} */ (jspb.Message.getField(message, 8)); |
| 8611 | if (f != null) { |
| 8612 | writer.writeString( |
| 8613 | 8, |
| 8614 | f |
| 8615 | ); |
| 8616 | } |
| 8617 | }; |
| 8618 | |
| 8619 | |
| 8620 | |
| 8621 | |
| 8622 | |
| 8623 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 8624 | /** |
| 8625 | * Creates an object representation of this proto. |
| 8626 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 8627 | * Optional fields that are not set will be set to undefined. |
| 8628 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 8629 | * For the list of reserved names please see: |
| 8630 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 8631 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 8632 | * JSPB instance for transitional soy proto support: |
| 8633 | * http://goto/soy-param-migration |
| 8634 | * @return {!Object} |
| 8635 | */ |
| 8636 | proto.google.protobuf.UninterpretedOption.NamePart.prototype.toObject = function(opt_includeInstance) { |
| 8637 | return proto.google.protobuf.UninterpretedOption.NamePart.toObject(opt_includeInstance, this); |
| 8638 | }; |
| 8639 | |
| 8640 | |
| 8641 | /** |
| 8642 | * Static version of the {@see toObject} method. |
| 8643 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 8644 | * the JSPB instance for transitional soy proto support: |
| 8645 | * http://goto/soy-param-migration |
| 8646 | * @param {!proto.google.protobuf.UninterpretedOption.NamePart} msg The msg instance to transform. |
| 8647 | * @return {!Object} |
| 8648 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 8649 | */ |
| 8650 | proto.google.protobuf.UninterpretedOption.NamePart.toObject = function(includeInstance, msg) { |
| 8651 | var f, obj = { |
| 8652 | namePart: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f, |
| 8653 | isExtension: (f = jspb.Message.getBooleanField(msg, 2)) == null ? undefined : f |
| 8654 | }; |
| 8655 | |
| 8656 | if (includeInstance) { |
| 8657 | obj.$jspbMessageInstance = msg; |
| 8658 | } |
| 8659 | return obj; |
| 8660 | }; |
| 8661 | } |
| 8662 | |
| 8663 | |
| 8664 | /** |
| 8665 | * Deserializes binary data (in protobuf wire format). |
| 8666 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 8667 | * @return {!proto.google.protobuf.UninterpretedOption.NamePart} |
| 8668 | */ |
| 8669 | proto.google.protobuf.UninterpretedOption.NamePart.deserializeBinary = function(bytes) { |
| 8670 | var reader = new jspb.BinaryReader(bytes); |
| 8671 | var msg = new proto.google.protobuf.UninterpretedOption.NamePart; |
| 8672 | return proto.google.protobuf.UninterpretedOption.NamePart.deserializeBinaryFromReader(msg, reader); |
| 8673 | }; |
| 8674 | |
| 8675 | |
| 8676 | /** |
| 8677 | * Deserializes binary data (in protobuf wire format) from the |
| 8678 | * given reader into the given message object. |
| 8679 | * @param {!proto.google.protobuf.UninterpretedOption.NamePart} msg The message object to deserialize into. |
| 8680 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 8681 | * @return {!proto.google.protobuf.UninterpretedOption.NamePart} |
| 8682 | */ |
| 8683 | proto.google.protobuf.UninterpretedOption.NamePart.deserializeBinaryFromReader = function(msg, reader) { |
| 8684 | while (reader.nextField()) { |
| 8685 | if (reader.isEndGroup()) { |
| 8686 | break; |
| 8687 | } |
| 8688 | var field = reader.getFieldNumber(); |
| 8689 | switch (field) { |
| 8690 | case 1: |
| 8691 | var value = /** @type {string} */ (reader.readString()); |
| 8692 | msg.setNamePart(value); |
| 8693 | break; |
| 8694 | case 2: |
| 8695 | var value = /** @type {boolean} */ (reader.readBool()); |
| 8696 | msg.setIsExtension(value); |
| 8697 | break; |
| 8698 | default: |
| 8699 | reader.skipField(); |
| 8700 | break; |
| 8701 | } |
| 8702 | } |
| 8703 | return msg; |
| 8704 | }; |
| 8705 | |
| 8706 | |
| 8707 | /** |
| 8708 | * Serializes the message to binary data (in protobuf wire format). |
| 8709 | * @return {!Uint8Array} |
| 8710 | */ |
| 8711 | proto.google.protobuf.UninterpretedOption.NamePart.prototype.serializeBinary = function() { |
| 8712 | var writer = new jspb.BinaryWriter(); |
| 8713 | proto.google.protobuf.UninterpretedOption.NamePart.serializeBinaryToWriter(this, writer); |
| 8714 | return writer.getResultBuffer(); |
| 8715 | }; |
| 8716 | |
| 8717 | |
| 8718 | /** |
| 8719 | * Serializes the given message to binary data (in protobuf wire |
| 8720 | * format), writing to the given BinaryWriter. |
| 8721 | * @param {!proto.google.protobuf.UninterpretedOption.NamePart} message |
| 8722 | * @param {!jspb.BinaryWriter} writer |
| 8723 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 8724 | */ |
| 8725 | proto.google.protobuf.UninterpretedOption.NamePart.serializeBinaryToWriter = function(message, writer) { |
| 8726 | var f = undefined; |
| 8727 | f = /** @type {string} */ (jspb.Message.getField(message, 1)); |
| 8728 | if (f != null) { |
| 8729 | writer.writeString( |
| 8730 | 1, |
| 8731 | f |
| 8732 | ); |
| 8733 | } |
| 8734 | f = /** @type {boolean} */ (jspb.Message.getField(message, 2)); |
| 8735 | if (f != null) { |
| 8736 | writer.writeBool( |
| 8737 | 2, |
| 8738 | f |
| 8739 | ); |
| 8740 | } |
| 8741 | }; |
| 8742 | |
| 8743 | |
| 8744 | /** |
| 8745 | * required string name_part = 1; |
| 8746 | * @return {string} |
| 8747 | */ |
| 8748 | proto.google.protobuf.UninterpretedOption.NamePart.prototype.getNamePart = function() { |
| 8749 | return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); |
| 8750 | }; |
| 8751 | |
| 8752 | |
| 8753 | /** |
| 8754 | * @param {string} value |
| 8755 | * @return {!proto.google.protobuf.UninterpretedOption.NamePart} returns this |
| 8756 | */ |
| 8757 | proto.google.protobuf.UninterpretedOption.NamePart.prototype.setNamePart = function(value) { |
| 8758 | return jspb.Message.setField(this, 1, value); |
| 8759 | }; |
| 8760 | |
| 8761 | |
| 8762 | /** |
| 8763 | * Clears the field making it undefined. |
| 8764 | * @return {!proto.google.protobuf.UninterpretedOption.NamePart} returns this |
| 8765 | */ |
| 8766 | proto.google.protobuf.UninterpretedOption.NamePart.prototype.clearNamePart = function() { |
| 8767 | return jspb.Message.setField(this, 1, undefined); |
| 8768 | }; |
| 8769 | |
| 8770 | |
| 8771 | /** |
| 8772 | * Returns whether this field is set. |
| 8773 | * @return {boolean} |
| 8774 | */ |
| 8775 | proto.google.protobuf.UninterpretedOption.NamePart.prototype.hasNamePart = function() { |
| 8776 | return jspb.Message.getField(this, 1) != null; |
| 8777 | }; |
| 8778 | |
| 8779 | |
| 8780 | /** |
| 8781 | * required bool is_extension = 2; |
| 8782 | * @return {boolean} |
| 8783 | */ |
| 8784 | proto.google.protobuf.UninterpretedOption.NamePart.prototype.getIsExtension = function() { |
| 8785 | return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); |
| 8786 | }; |
| 8787 | |
| 8788 | |
| 8789 | /** |
| 8790 | * @param {boolean} value |
| 8791 | * @return {!proto.google.protobuf.UninterpretedOption.NamePart} returns this |
| 8792 | */ |
| 8793 | proto.google.protobuf.UninterpretedOption.NamePart.prototype.setIsExtension = function(value) { |
| 8794 | return jspb.Message.setField(this, 2, value); |
| 8795 | }; |
| 8796 | |
| 8797 | |
| 8798 | /** |
| 8799 | * Clears the field making it undefined. |
| 8800 | * @return {!proto.google.protobuf.UninterpretedOption.NamePart} returns this |
| 8801 | */ |
| 8802 | proto.google.protobuf.UninterpretedOption.NamePart.prototype.clearIsExtension = function() { |
| 8803 | return jspb.Message.setField(this, 2, undefined); |
| 8804 | }; |
| 8805 | |
| 8806 | |
| 8807 | /** |
| 8808 | * Returns whether this field is set. |
| 8809 | * @return {boolean} |
| 8810 | */ |
| 8811 | proto.google.protobuf.UninterpretedOption.NamePart.prototype.hasIsExtension = function() { |
| 8812 | return jspb.Message.getField(this, 2) != null; |
| 8813 | }; |
| 8814 | |
| 8815 | |
| 8816 | /** |
| 8817 | * repeated NamePart name = 2; |
| 8818 | * @return {!Array<!proto.google.protobuf.UninterpretedOption.NamePart>} |
| 8819 | */ |
| 8820 | proto.google.protobuf.UninterpretedOption.prototype.getNameList = function() { |
| 8821 | return /** @type{!Array<!proto.google.protobuf.UninterpretedOption.NamePart>} */ ( |
| 8822 | jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.UninterpretedOption.NamePart, 2)); |
| 8823 | }; |
| 8824 | |
| 8825 | |
| 8826 | /** |
| 8827 | * @param {!Array<!proto.google.protobuf.UninterpretedOption.NamePart>} value |
| 8828 | * @return {!proto.google.protobuf.UninterpretedOption} returns this |
| 8829 | */ |
| 8830 | proto.google.protobuf.UninterpretedOption.prototype.setNameList = function(value) { |
| 8831 | return jspb.Message.setRepeatedWrapperField(this, 2, value); |
| 8832 | }; |
| 8833 | |
| 8834 | |
| 8835 | /** |
| 8836 | * @param {!proto.google.protobuf.UninterpretedOption.NamePart=} opt_value |
| 8837 | * @param {number=} opt_index |
| 8838 | * @return {!proto.google.protobuf.UninterpretedOption.NamePart} |
| 8839 | */ |
| 8840 | proto.google.protobuf.UninterpretedOption.prototype.addName = function(opt_value, opt_index) { |
| 8841 | return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.protobuf.UninterpretedOption.NamePart, opt_index); |
| 8842 | }; |
| 8843 | |
| 8844 | |
| 8845 | /** |
| 8846 | * Clears the list making it empty but non-null. |
| 8847 | * @return {!proto.google.protobuf.UninterpretedOption} returns this |
| 8848 | */ |
| 8849 | proto.google.protobuf.UninterpretedOption.prototype.clearNameList = function() { |
| 8850 | return this.setNameList([]); |
| 8851 | }; |
| 8852 | |
| 8853 | |
| 8854 | /** |
| 8855 | * optional string identifier_value = 3; |
| 8856 | * @return {string} |
| 8857 | */ |
| 8858 | proto.google.protobuf.UninterpretedOption.prototype.getIdentifierValue = function() { |
| 8859 | return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); |
| 8860 | }; |
| 8861 | |
| 8862 | |
| 8863 | /** |
| 8864 | * @param {string} value |
| 8865 | * @return {!proto.google.protobuf.UninterpretedOption} returns this |
| 8866 | */ |
| 8867 | proto.google.protobuf.UninterpretedOption.prototype.setIdentifierValue = function(value) { |
| 8868 | return jspb.Message.setField(this, 3, value); |
| 8869 | }; |
| 8870 | |
| 8871 | |
| 8872 | /** |
| 8873 | * Clears the field making it undefined. |
| 8874 | * @return {!proto.google.protobuf.UninterpretedOption} returns this |
| 8875 | */ |
| 8876 | proto.google.protobuf.UninterpretedOption.prototype.clearIdentifierValue = function() { |
| 8877 | return jspb.Message.setField(this, 3, undefined); |
| 8878 | }; |
| 8879 | |
| 8880 | |
| 8881 | /** |
| 8882 | * Returns whether this field is set. |
| 8883 | * @return {boolean} |
| 8884 | */ |
| 8885 | proto.google.protobuf.UninterpretedOption.prototype.hasIdentifierValue = function() { |
| 8886 | return jspb.Message.getField(this, 3) != null; |
| 8887 | }; |
| 8888 | |
| 8889 | |
| 8890 | /** |
| 8891 | * optional uint64 positive_int_value = 4; |
| 8892 | * @return {number} |
| 8893 | */ |
| 8894 | proto.google.protobuf.UninterpretedOption.prototype.getPositiveIntValue = function() { |
| 8895 | return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); |
| 8896 | }; |
| 8897 | |
| 8898 | |
| 8899 | /** |
| 8900 | * @param {number} value |
| 8901 | * @return {!proto.google.protobuf.UninterpretedOption} returns this |
| 8902 | */ |
| 8903 | proto.google.protobuf.UninterpretedOption.prototype.setPositiveIntValue = function(value) { |
| 8904 | return jspb.Message.setField(this, 4, value); |
| 8905 | }; |
| 8906 | |
| 8907 | |
| 8908 | /** |
| 8909 | * Clears the field making it undefined. |
| 8910 | * @return {!proto.google.protobuf.UninterpretedOption} returns this |
| 8911 | */ |
| 8912 | proto.google.protobuf.UninterpretedOption.prototype.clearPositiveIntValue = function() { |
| 8913 | return jspb.Message.setField(this, 4, undefined); |
| 8914 | }; |
| 8915 | |
| 8916 | |
| 8917 | /** |
| 8918 | * Returns whether this field is set. |
| 8919 | * @return {boolean} |
| 8920 | */ |
| 8921 | proto.google.protobuf.UninterpretedOption.prototype.hasPositiveIntValue = function() { |
| 8922 | return jspb.Message.getField(this, 4) != null; |
| 8923 | }; |
| 8924 | |
| 8925 | |
| 8926 | /** |
| 8927 | * optional int64 negative_int_value = 5; |
| 8928 | * @return {number} |
| 8929 | */ |
| 8930 | proto.google.protobuf.UninterpretedOption.prototype.getNegativeIntValue = function() { |
| 8931 | return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); |
| 8932 | }; |
| 8933 | |
| 8934 | |
| 8935 | /** |
| 8936 | * @param {number} value |
| 8937 | * @return {!proto.google.protobuf.UninterpretedOption} returns this |
| 8938 | */ |
| 8939 | proto.google.protobuf.UninterpretedOption.prototype.setNegativeIntValue = function(value) { |
| 8940 | return jspb.Message.setField(this, 5, value); |
| 8941 | }; |
| 8942 | |
| 8943 | |
| 8944 | /** |
| 8945 | * Clears the field making it undefined. |
| 8946 | * @return {!proto.google.protobuf.UninterpretedOption} returns this |
| 8947 | */ |
| 8948 | proto.google.protobuf.UninterpretedOption.prototype.clearNegativeIntValue = function() { |
| 8949 | return jspb.Message.setField(this, 5, undefined); |
| 8950 | }; |
| 8951 | |
| 8952 | |
| 8953 | /** |
| 8954 | * Returns whether this field is set. |
| 8955 | * @return {boolean} |
| 8956 | */ |
| 8957 | proto.google.protobuf.UninterpretedOption.prototype.hasNegativeIntValue = function() { |
| 8958 | return jspb.Message.getField(this, 5) != null; |
| 8959 | }; |
| 8960 | |
| 8961 | |
| 8962 | /** |
| 8963 | * optional double double_value = 6; |
| 8964 | * @return {number} |
| 8965 | */ |
| 8966 | proto.google.protobuf.UninterpretedOption.prototype.getDoubleValue = function() { |
| 8967 | return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0)); |
| 8968 | }; |
| 8969 | |
| 8970 | |
| 8971 | /** |
| 8972 | * @param {number} value |
| 8973 | * @return {!proto.google.protobuf.UninterpretedOption} returns this |
| 8974 | */ |
| 8975 | proto.google.protobuf.UninterpretedOption.prototype.setDoubleValue = function(value) { |
| 8976 | return jspb.Message.setField(this, 6, value); |
| 8977 | }; |
| 8978 | |
| 8979 | |
| 8980 | /** |
| 8981 | * Clears the field making it undefined. |
| 8982 | * @return {!proto.google.protobuf.UninterpretedOption} returns this |
| 8983 | */ |
| 8984 | proto.google.protobuf.UninterpretedOption.prototype.clearDoubleValue = function() { |
| 8985 | return jspb.Message.setField(this, 6, undefined); |
| 8986 | }; |
| 8987 | |
| 8988 | |
| 8989 | /** |
| 8990 | * Returns whether this field is set. |
| 8991 | * @return {boolean} |
| 8992 | */ |
| 8993 | proto.google.protobuf.UninterpretedOption.prototype.hasDoubleValue = function() { |
| 8994 | return jspb.Message.getField(this, 6) != null; |
| 8995 | }; |
| 8996 | |
| 8997 | |
| 8998 | /** |
| 8999 | * optional bytes string_value = 7; |
| 9000 | * @return {!(string|Uint8Array)} |
| 9001 | */ |
| 9002 | proto.google.protobuf.UninterpretedOption.prototype.getStringValue = function() { |
| 9003 | return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 7, "")); |
| 9004 | }; |
| 9005 | |
| 9006 | |
| 9007 | /** |
| 9008 | * optional bytes string_value = 7; |
| 9009 | * This is a type-conversion wrapper around `getStringValue()` |
| 9010 | * @return {string} |
| 9011 | */ |
| 9012 | proto.google.protobuf.UninterpretedOption.prototype.getStringValue_asB64 = function() { |
| 9013 | return /** @type {string} */ (jspb.Message.bytesAsB64( |
| 9014 | this.getStringValue())); |
| 9015 | }; |
| 9016 | |
| 9017 | |
| 9018 | /** |
| 9019 | * optional bytes string_value = 7; |
| 9020 | * Note that Uint8Array is not supported on all browsers. |
| 9021 | * @see http://caniuse.com/Uint8Array |
| 9022 | * This is a type-conversion wrapper around `getStringValue()` |
| 9023 | * @return {!Uint8Array} |
| 9024 | */ |
| 9025 | proto.google.protobuf.UninterpretedOption.prototype.getStringValue_asU8 = function() { |
| 9026 | return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( |
| 9027 | this.getStringValue())); |
| 9028 | }; |
| 9029 | |
| 9030 | |
| 9031 | /** |
| 9032 | * @param {!(string|Uint8Array)} value |
| 9033 | * @return {!proto.google.protobuf.UninterpretedOption} returns this |
| 9034 | */ |
| 9035 | proto.google.protobuf.UninterpretedOption.prototype.setStringValue = function(value) { |
| 9036 | return jspb.Message.setField(this, 7, value); |
| 9037 | }; |
| 9038 | |
| 9039 | |
| 9040 | /** |
| 9041 | * Clears the field making it undefined. |
| 9042 | * @return {!proto.google.protobuf.UninterpretedOption} returns this |
| 9043 | */ |
| 9044 | proto.google.protobuf.UninterpretedOption.prototype.clearStringValue = function() { |
| 9045 | return jspb.Message.setField(this, 7, undefined); |
| 9046 | }; |
| 9047 | |
| 9048 | |
| 9049 | /** |
| 9050 | * Returns whether this field is set. |
| 9051 | * @return {boolean} |
| 9052 | */ |
| 9053 | proto.google.protobuf.UninterpretedOption.prototype.hasStringValue = function() { |
| 9054 | return jspb.Message.getField(this, 7) != null; |
| 9055 | }; |
| 9056 | |
| 9057 | |
| 9058 | /** |
| 9059 | * optional string aggregate_value = 8; |
| 9060 | * @return {string} |
| 9061 | */ |
| 9062 | proto.google.protobuf.UninterpretedOption.prototype.getAggregateValue = function() { |
| 9063 | return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); |
| 9064 | }; |
| 9065 | |
| 9066 | |
| 9067 | /** |
| 9068 | * @param {string} value |
| 9069 | * @return {!proto.google.protobuf.UninterpretedOption} returns this |
| 9070 | */ |
| 9071 | proto.google.protobuf.UninterpretedOption.prototype.setAggregateValue = function(value) { |
| 9072 | return jspb.Message.setField(this, 8, value); |
| 9073 | }; |
| 9074 | |
| 9075 | |
| 9076 | /** |
| 9077 | * Clears the field making it undefined. |
| 9078 | * @return {!proto.google.protobuf.UninterpretedOption} returns this |
| 9079 | */ |
| 9080 | proto.google.protobuf.UninterpretedOption.prototype.clearAggregateValue = function() { |
| 9081 | return jspb.Message.setField(this, 8, undefined); |
| 9082 | }; |
| 9083 | |
| 9084 | |
| 9085 | /** |
| 9086 | * Returns whether this field is set. |
| 9087 | * @return {boolean} |
| 9088 | */ |
| 9089 | proto.google.protobuf.UninterpretedOption.prototype.hasAggregateValue = function() { |
| 9090 | return jspb.Message.getField(this, 8) != null; |
| 9091 | }; |
| 9092 | |
| 9093 | |
| 9094 | |
| 9095 | /** |
| 9096 | * List of repeated fields within this message type. |
| 9097 | * @private {!Array<number>} |
| 9098 | * @const |
| 9099 | */ |
| 9100 | proto.google.protobuf.SourceCodeInfo.repeatedFields_ = [1]; |
| 9101 | |
| 9102 | |
| 9103 | |
| 9104 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 9105 | /** |
| 9106 | * Creates an object representation of this proto. |
| 9107 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 9108 | * Optional fields that are not set will be set to undefined. |
| 9109 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 9110 | * For the list of reserved names please see: |
| 9111 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 9112 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 9113 | * JSPB instance for transitional soy proto support: |
| 9114 | * http://goto/soy-param-migration |
| 9115 | * @return {!Object} |
| 9116 | */ |
| 9117 | proto.google.protobuf.SourceCodeInfo.prototype.toObject = function(opt_includeInstance) { |
| 9118 | return proto.google.protobuf.SourceCodeInfo.toObject(opt_includeInstance, this); |
| 9119 | }; |
| 9120 | |
| 9121 | |
| 9122 | /** |
| 9123 | * Static version of the {@see toObject} method. |
| 9124 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 9125 | * the JSPB instance for transitional soy proto support: |
| 9126 | * http://goto/soy-param-migration |
| 9127 | * @param {!proto.google.protobuf.SourceCodeInfo} msg The msg instance to transform. |
| 9128 | * @return {!Object} |
| 9129 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 9130 | */ |
| 9131 | proto.google.protobuf.SourceCodeInfo.toObject = function(includeInstance, msg) { |
| 9132 | var f, obj = { |
| 9133 | locationList: jspb.Message.toObjectList(msg.getLocationList(), |
| 9134 | proto.google.protobuf.SourceCodeInfo.Location.toObject, includeInstance) |
| 9135 | }; |
| 9136 | |
| 9137 | if (includeInstance) { |
| 9138 | obj.$jspbMessageInstance = msg; |
| 9139 | } |
| 9140 | return obj; |
| 9141 | }; |
| 9142 | } |
| 9143 | |
| 9144 | |
| 9145 | /** |
| 9146 | * Deserializes binary data (in protobuf wire format). |
| 9147 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 9148 | * @return {!proto.google.protobuf.SourceCodeInfo} |
| 9149 | */ |
| 9150 | proto.google.protobuf.SourceCodeInfo.deserializeBinary = function(bytes) { |
| 9151 | var reader = new jspb.BinaryReader(bytes); |
| 9152 | var msg = new proto.google.protobuf.SourceCodeInfo; |
| 9153 | return proto.google.protobuf.SourceCodeInfo.deserializeBinaryFromReader(msg, reader); |
| 9154 | }; |
| 9155 | |
| 9156 | |
| 9157 | /** |
| 9158 | * Deserializes binary data (in protobuf wire format) from the |
| 9159 | * given reader into the given message object. |
| 9160 | * @param {!proto.google.protobuf.SourceCodeInfo} msg The message object to deserialize into. |
| 9161 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 9162 | * @return {!proto.google.protobuf.SourceCodeInfo} |
| 9163 | */ |
| 9164 | proto.google.protobuf.SourceCodeInfo.deserializeBinaryFromReader = function(msg, reader) { |
| 9165 | while (reader.nextField()) { |
| 9166 | if (reader.isEndGroup()) { |
| 9167 | break; |
| 9168 | } |
| 9169 | var field = reader.getFieldNumber(); |
| 9170 | switch (field) { |
| 9171 | case 1: |
| 9172 | var value = new proto.google.protobuf.SourceCodeInfo.Location; |
| 9173 | reader.readMessage(value,proto.google.protobuf.SourceCodeInfo.Location.deserializeBinaryFromReader); |
| 9174 | msg.addLocation(value); |
| 9175 | break; |
| 9176 | default: |
| 9177 | reader.skipField(); |
| 9178 | break; |
| 9179 | } |
| 9180 | } |
| 9181 | return msg; |
| 9182 | }; |
| 9183 | |
| 9184 | |
| 9185 | /** |
| 9186 | * Serializes the message to binary data (in protobuf wire format). |
| 9187 | * @return {!Uint8Array} |
| 9188 | */ |
| 9189 | proto.google.protobuf.SourceCodeInfo.prototype.serializeBinary = function() { |
| 9190 | var writer = new jspb.BinaryWriter(); |
| 9191 | proto.google.protobuf.SourceCodeInfo.serializeBinaryToWriter(this, writer); |
| 9192 | return writer.getResultBuffer(); |
| 9193 | }; |
| 9194 | |
| 9195 | |
| 9196 | /** |
| 9197 | * Serializes the given message to binary data (in protobuf wire |
| 9198 | * format), writing to the given BinaryWriter. |
| 9199 | * @param {!proto.google.protobuf.SourceCodeInfo} message |
| 9200 | * @param {!jspb.BinaryWriter} writer |
| 9201 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 9202 | */ |
| 9203 | proto.google.protobuf.SourceCodeInfo.serializeBinaryToWriter = function(message, writer) { |
| 9204 | var f = undefined; |
| 9205 | f = message.getLocationList(); |
| 9206 | if (f.length > 0) { |
| 9207 | writer.writeRepeatedMessage( |
| 9208 | 1, |
| 9209 | f, |
| 9210 | proto.google.protobuf.SourceCodeInfo.Location.serializeBinaryToWriter |
| 9211 | ); |
| 9212 | } |
| 9213 | }; |
| 9214 | |
| 9215 | |
| 9216 | |
| 9217 | /** |
| 9218 | * List of repeated fields within this message type. |
| 9219 | * @private {!Array<number>} |
| 9220 | * @const |
| 9221 | */ |
| 9222 | proto.google.protobuf.SourceCodeInfo.Location.repeatedFields_ = [1,2,6]; |
| 9223 | |
| 9224 | |
| 9225 | |
| 9226 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 9227 | /** |
| 9228 | * Creates an object representation of this proto. |
| 9229 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 9230 | * Optional fields that are not set will be set to undefined. |
| 9231 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 9232 | * For the list of reserved names please see: |
| 9233 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 9234 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 9235 | * JSPB instance for transitional soy proto support: |
| 9236 | * http://goto/soy-param-migration |
| 9237 | * @return {!Object} |
| 9238 | */ |
| 9239 | proto.google.protobuf.SourceCodeInfo.Location.prototype.toObject = function(opt_includeInstance) { |
| 9240 | return proto.google.protobuf.SourceCodeInfo.Location.toObject(opt_includeInstance, this); |
| 9241 | }; |
| 9242 | |
| 9243 | |
| 9244 | /** |
| 9245 | * Static version of the {@see toObject} method. |
| 9246 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 9247 | * the JSPB instance for transitional soy proto support: |
| 9248 | * http://goto/soy-param-migration |
| 9249 | * @param {!proto.google.protobuf.SourceCodeInfo.Location} msg The msg instance to transform. |
| 9250 | * @return {!Object} |
| 9251 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 9252 | */ |
| 9253 | proto.google.protobuf.SourceCodeInfo.Location.toObject = function(includeInstance, msg) { |
| 9254 | var f, obj = { |
| 9255 | pathList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, |
| 9256 | spanList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, |
| 9257 | leadingComments: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f, |
| 9258 | trailingComments: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f, |
| 9259 | leadingDetachedCommentsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f |
| 9260 | }; |
| 9261 | |
| 9262 | if (includeInstance) { |
| 9263 | obj.$jspbMessageInstance = msg; |
| 9264 | } |
| 9265 | return obj; |
| 9266 | }; |
| 9267 | } |
| 9268 | |
| 9269 | |
| 9270 | /** |
| 9271 | * Deserializes binary data (in protobuf wire format). |
| 9272 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 9273 | * @return {!proto.google.protobuf.SourceCodeInfo.Location} |
| 9274 | */ |
| 9275 | proto.google.protobuf.SourceCodeInfo.Location.deserializeBinary = function(bytes) { |
| 9276 | var reader = new jspb.BinaryReader(bytes); |
| 9277 | var msg = new proto.google.protobuf.SourceCodeInfo.Location; |
| 9278 | return proto.google.protobuf.SourceCodeInfo.Location.deserializeBinaryFromReader(msg, reader); |
| 9279 | }; |
| 9280 | |
| 9281 | |
| 9282 | /** |
| 9283 | * Deserializes binary data (in protobuf wire format) from the |
| 9284 | * given reader into the given message object. |
| 9285 | * @param {!proto.google.protobuf.SourceCodeInfo.Location} msg The message object to deserialize into. |
| 9286 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 9287 | * @return {!proto.google.protobuf.SourceCodeInfo.Location} |
| 9288 | */ |
| 9289 | proto.google.protobuf.SourceCodeInfo.Location.deserializeBinaryFromReader = function(msg, reader) { |
| 9290 | while (reader.nextField()) { |
| 9291 | if (reader.isEndGroup()) { |
| 9292 | break; |
| 9293 | } |
| 9294 | var field = reader.getFieldNumber(); |
| 9295 | switch (field) { |
| 9296 | case 1: |
| 9297 | var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]); |
| 9298 | for (var i = 0; i < values.length; i++) { |
| 9299 | msg.addPath(values[i]); |
| 9300 | } |
| 9301 | break; |
| 9302 | case 2: |
| 9303 | var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]); |
| 9304 | for (var i = 0; i < values.length; i++) { |
| 9305 | msg.addSpan(values[i]); |
| 9306 | } |
| 9307 | break; |
| 9308 | case 3: |
| 9309 | var value = /** @type {string} */ (reader.readString()); |
| 9310 | msg.setLeadingComments(value); |
| 9311 | break; |
| 9312 | case 4: |
| 9313 | var value = /** @type {string} */ (reader.readString()); |
| 9314 | msg.setTrailingComments(value); |
| 9315 | break; |
| 9316 | case 6: |
| 9317 | var value = /** @type {string} */ (reader.readString()); |
| 9318 | msg.addLeadingDetachedComments(value); |
| 9319 | break; |
| 9320 | default: |
| 9321 | reader.skipField(); |
| 9322 | break; |
| 9323 | } |
| 9324 | } |
| 9325 | return msg; |
| 9326 | }; |
| 9327 | |
| 9328 | |
| 9329 | /** |
| 9330 | * Serializes the message to binary data (in protobuf wire format). |
| 9331 | * @return {!Uint8Array} |
| 9332 | */ |
| 9333 | proto.google.protobuf.SourceCodeInfo.Location.prototype.serializeBinary = function() { |
| 9334 | var writer = new jspb.BinaryWriter(); |
| 9335 | proto.google.protobuf.SourceCodeInfo.Location.serializeBinaryToWriter(this, writer); |
| 9336 | return writer.getResultBuffer(); |
| 9337 | }; |
| 9338 | |
| 9339 | |
| 9340 | /** |
| 9341 | * Serializes the given message to binary data (in protobuf wire |
| 9342 | * format), writing to the given BinaryWriter. |
| 9343 | * @param {!proto.google.protobuf.SourceCodeInfo.Location} message |
| 9344 | * @param {!jspb.BinaryWriter} writer |
| 9345 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 9346 | */ |
| 9347 | proto.google.protobuf.SourceCodeInfo.Location.serializeBinaryToWriter = function(message, writer) { |
| 9348 | var f = undefined; |
| 9349 | f = message.getPathList(); |
| 9350 | if (f.length > 0) { |
| 9351 | writer.writePackedInt32( |
| 9352 | 1, |
| 9353 | f |
| 9354 | ); |
| 9355 | } |
| 9356 | f = message.getSpanList(); |
| 9357 | if (f.length > 0) { |
| 9358 | writer.writePackedInt32( |
| 9359 | 2, |
| 9360 | f |
| 9361 | ); |
| 9362 | } |
| 9363 | f = /** @type {string} */ (jspb.Message.getField(message, 3)); |
| 9364 | if (f != null) { |
| 9365 | writer.writeString( |
| 9366 | 3, |
| 9367 | f |
| 9368 | ); |
| 9369 | } |
| 9370 | f = /** @type {string} */ (jspb.Message.getField(message, 4)); |
| 9371 | if (f != null) { |
| 9372 | writer.writeString( |
| 9373 | 4, |
| 9374 | f |
| 9375 | ); |
| 9376 | } |
| 9377 | f = message.getLeadingDetachedCommentsList(); |
| 9378 | if (f.length > 0) { |
| 9379 | writer.writeRepeatedString( |
| 9380 | 6, |
| 9381 | f |
| 9382 | ); |
| 9383 | } |
| 9384 | }; |
| 9385 | |
| 9386 | |
| 9387 | /** |
| 9388 | * repeated int32 path = 1; |
| 9389 | * @return {!Array<number>} |
| 9390 | */ |
| 9391 | proto.google.protobuf.SourceCodeInfo.Location.prototype.getPathList = function() { |
| 9392 | return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1)); |
| 9393 | }; |
| 9394 | |
| 9395 | |
| 9396 | /** |
| 9397 | * @param {!Array<number>} value |
| 9398 | * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this |
| 9399 | */ |
| 9400 | proto.google.protobuf.SourceCodeInfo.Location.prototype.setPathList = function(value) { |
| 9401 | return jspb.Message.setField(this, 1, value || []); |
| 9402 | }; |
| 9403 | |
| 9404 | |
| 9405 | /** |
| 9406 | * @param {number} value |
| 9407 | * @param {number=} opt_index |
| 9408 | * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this |
| 9409 | */ |
| 9410 | proto.google.protobuf.SourceCodeInfo.Location.prototype.addPath = function(value, opt_index) { |
| 9411 | return jspb.Message.addToRepeatedField(this, 1, value, opt_index); |
| 9412 | }; |
| 9413 | |
| 9414 | |
| 9415 | /** |
| 9416 | * Clears the list making it empty but non-null. |
| 9417 | * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this |
| 9418 | */ |
| 9419 | proto.google.protobuf.SourceCodeInfo.Location.prototype.clearPathList = function() { |
| 9420 | return this.setPathList([]); |
| 9421 | }; |
| 9422 | |
| 9423 | |
| 9424 | /** |
| 9425 | * repeated int32 span = 2; |
| 9426 | * @return {!Array<number>} |
| 9427 | */ |
| 9428 | proto.google.protobuf.SourceCodeInfo.Location.prototype.getSpanList = function() { |
| 9429 | return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 2)); |
| 9430 | }; |
| 9431 | |
| 9432 | |
| 9433 | /** |
| 9434 | * @param {!Array<number>} value |
| 9435 | * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this |
| 9436 | */ |
| 9437 | proto.google.protobuf.SourceCodeInfo.Location.prototype.setSpanList = function(value) { |
| 9438 | return jspb.Message.setField(this, 2, value || []); |
| 9439 | }; |
| 9440 | |
| 9441 | |
| 9442 | /** |
| 9443 | * @param {number} value |
| 9444 | * @param {number=} opt_index |
| 9445 | * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this |
| 9446 | */ |
| 9447 | proto.google.protobuf.SourceCodeInfo.Location.prototype.addSpan = function(value, opt_index) { |
| 9448 | return jspb.Message.addToRepeatedField(this, 2, value, opt_index); |
| 9449 | }; |
| 9450 | |
| 9451 | |
| 9452 | /** |
| 9453 | * Clears the list making it empty but non-null. |
| 9454 | * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this |
| 9455 | */ |
| 9456 | proto.google.protobuf.SourceCodeInfo.Location.prototype.clearSpanList = function() { |
| 9457 | return this.setSpanList([]); |
| 9458 | }; |
| 9459 | |
| 9460 | |
| 9461 | /** |
| 9462 | * optional string leading_comments = 3; |
| 9463 | * @return {string} |
| 9464 | */ |
| 9465 | proto.google.protobuf.SourceCodeInfo.Location.prototype.getLeadingComments = function() { |
| 9466 | return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); |
| 9467 | }; |
| 9468 | |
| 9469 | |
| 9470 | /** |
| 9471 | * @param {string} value |
| 9472 | * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this |
| 9473 | */ |
| 9474 | proto.google.protobuf.SourceCodeInfo.Location.prototype.setLeadingComments = function(value) { |
| 9475 | return jspb.Message.setField(this, 3, value); |
| 9476 | }; |
| 9477 | |
| 9478 | |
| 9479 | /** |
| 9480 | * Clears the field making it undefined. |
| 9481 | * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this |
| 9482 | */ |
| 9483 | proto.google.protobuf.SourceCodeInfo.Location.prototype.clearLeadingComments = function() { |
| 9484 | return jspb.Message.setField(this, 3, undefined); |
| 9485 | }; |
| 9486 | |
| 9487 | |
| 9488 | /** |
| 9489 | * Returns whether this field is set. |
| 9490 | * @return {boolean} |
| 9491 | */ |
| 9492 | proto.google.protobuf.SourceCodeInfo.Location.prototype.hasLeadingComments = function() { |
| 9493 | return jspb.Message.getField(this, 3) != null; |
| 9494 | }; |
| 9495 | |
| 9496 | |
| 9497 | /** |
| 9498 | * optional string trailing_comments = 4; |
| 9499 | * @return {string} |
| 9500 | */ |
| 9501 | proto.google.protobuf.SourceCodeInfo.Location.prototype.getTrailingComments = function() { |
| 9502 | return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); |
| 9503 | }; |
| 9504 | |
| 9505 | |
| 9506 | /** |
| 9507 | * @param {string} value |
| 9508 | * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this |
| 9509 | */ |
| 9510 | proto.google.protobuf.SourceCodeInfo.Location.prototype.setTrailingComments = function(value) { |
| 9511 | return jspb.Message.setField(this, 4, value); |
| 9512 | }; |
| 9513 | |
| 9514 | |
| 9515 | /** |
| 9516 | * Clears the field making it undefined. |
| 9517 | * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this |
| 9518 | */ |
| 9519 | proto.google.protobuf.SourceCodeInfo.Location.prototype.clearTrailingComments = function() { |
| 9520 | return jspb.Message.setField(this, 4, undefined); |
| 9521 | }; |
| 9522 | |
| 9523 | |
| 9524 | /** |
| 9525 | * Returns whether this field is set. |
| 9526 | * @return {boolean} |
| 9527 | */ |
| 9528 | proto.google.protobuf.SourceCodeInfo.Location.prototype.hasTrailingComments = function() { |
| 9529 | return jspb.Message.getField(this, 4) != null; |
| 9530 | }; |
| 9531 | |
| 9532 | |
| 9533 | /** |
| 9534 | * repeated string leading_detached_comments = 6; |
| 9535 | * @return {!Array<string>} |
| 9536 | */ |
| 9537 | proto.google.protobuf.SourceCodeInfo.Location.prototype.getLeadingDetachedCommentsList = function() { |
| 9538 | return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 6)); |
| 9539 | }; |
| 9540 | |
| 9541 | |
| 9542 | /** |
| 9543 | * @param {!Array<string>} value |
| 9544 | * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this |
| 9545 | */ |
| 9546 | proto.google.protobuf.SourceCodeInfo.Location.prototype.setLeadingDetachedCommentsList = function(value) { |
| 9547 | return jspb.Message.setField(this, 6, value || []); |
| 9548 | }; |
| 9549 | |
| 9550 | |
| 9551 | /** |
| 9552 | * @param {string} value |
| 9553 | * @param {number=} opt_index |
| 9554 | * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this |
| 9555 | */ |
| 9556 | proto.google.protobuf.SourceCodeInfo.Location.prototype.addLeadingDetachedComments = function(value, opt_index) { |
| 9557 | return jspb.Message.addToRepeatedField(this, 6, value, opt_index); |
| 9558 | }; |
| 9559 | |
| 9560 | |
| 9561 | /** |
| 9562 | * Clears the list making it empty but non-null. |
| 9563 | * @return {!proto.google.protobuf.SourceCodeInfo.Location} returns this |
| 9564 | */ |
| 9565 | proto.google.protobuf.SourceCodeInfo.Location.prototype.clearLeadingDetachedCommentsList = function() { |
| 9566 | return this.setLeadingDetachedCommentsList([]); |
| 9567 | }; |
| 9568 | |
| 9569 | |
| 9570 | /** |
| 9571 | * repeated Location location = 1; |
| 9572 | * @return {!Array<!proto.google.protobuf.SourceCodeInfo.Location>} |
| 9573 | */ |
| 9574 | proto.google.protobuf.SourceCodeInfo.prototype.getLocationList = function() { |
| 9575 | return /** @type{!Array<!proto.google.protobuf.SourceCodeInfo.Location>} */ ( |
| 9576 | jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.SourceCodeInfo.Location, 1)); |
| 9577 | }; |
| 9578 | |
| 9579 | |
| 9580 | /** |
| 9581 | * @param {!Array<!proto.google.protobuf.SourceCodeInfo.Location>} value |
| 9582 | * @return {!proto.google.protobuf.SourceCodeInfo} returns this |
| 9583 | */ |
| 9584 | proto.google.protobuf.SourceCodeInfo.prototype.setLocationList = function(value) { |
| 9585 | return jspb.Message.setRepeatedWrapperField(this, 1, value); |
| 9586 | }; |
| 9587 | |
| 9588 | |
| 9589 | /** |
| 9590 | * @param {!proto.google.protobuf.SourceCodeInfo.Location=} opt_value |
| 9591 | * @param {number=} opt_index |
| 9592 | * @return {!proto.google.protobuf.SourceCodeInfo.Location} |
| 9593 | */ |
| 9594 | proto.google.protobuf.SourceCodeInfo.prototype.addLocation = function(opt_value, opt_index) { |
| 9595 | return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.protobuf.SourceCodeInfo.Location, opt_index); |
| 9596 | }; |
| 9597 | |
| 9598 | |
| 9599 | /** |
| 9600 | * Clears the list making it empty but non-null. |
| 9601 | * @return {!proto.google.protobuf.SourceCodeInfo} returns this |
| 9602 | */ |
| 9603 | proto.google.protobuf.SourceCodeInfo.prototype.clearLocationList = function() { |
| 9604 | return this.setLocationList([]); |
| 9605 | }; |
| 9606 | |
| 9607 | |
| 9608 | |
| 9609 | /** |
| 9610 | * List of repeated fields within this message type. |
| 9611 | * @private {!Array<number>} |
| 9612 | * @const |
| 9613 | */ |
| 9614 | proto.google.protobuf.GeneratedCodeInfo.repeatedFields_ = [1]; |
| 9615 | |
| 9616 | |
| 9617 | |
| 9618 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 9619 | /** |
| 9620 | * Creates an object representation of this proto. |
| 9621 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 9622 | * Optional fields that are not set will be set to undefined. |
| 9623 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 9624 | * For the list of reserved names please see: |
| 9625 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 9626 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 9627 | * JSPB instance for transitional soy proto support: |
| 9628 | * http://goto/soy-param-migration |
| 9629 | * @return {!Object} |
| 9630 | */ |
| 9631 | proto.google.protobuf.GeneratedCodeInfo.prototype.toObject = function(opt_includeInstance) { |
| 9632 | return proto.google.protobuf.GeneratedCodeInfo.toObject(opt_includeInstance, this); |
| 9633 | }; |
| 9634 | |
| 9635 | |
| 9636 | /** |
| 9637 | * Static version of the {@see toObject} method. |
| 9638 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 9639 | * the JSPB instance for transitional soy proto support: |
| 9640 | * http://goto/soy-param-migration |
| 9641 | * @param {!proto.google.protobuf.GeneratedCodeInfo} msg The msg instance to transform. |
| 9642 | * @return {!Object} |
| 9643 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 9644 | */ |
| 9645 | proto.google.protobuf.GeneratedCodeInfo.toObject = function(includeInstance, msg) { |
| 9646 | var f, obj = { |
| 9647 | annotationList: jspb.Message.toObjectList(msg.getAnnotationList(), |
| 9648 | proto.google.protobuf.GeneratedCodeInfo.Annotation.toObject, includeInstance) |
| 9649 | }; |
| 9650 | |
| 9651 | if (includeInstance) { |
| 9652 | obj.$jspbMessageInstance = msg; |
| 9653 | } |
| 9654 | return obj; |
| 9655 | }; |
| 9656 | } |
| 9657 | |
| 9658 | |
| 9659 | /** |
| 9660 | * Deserializes binary data (in protobuf wire format). |
| 9661 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 9662 | * @return {!proto.google.protobuf.GeneratedCodeInfo} |
| 9663 | */ |
| 9664 | proto.google.protobuf.GeneratedCodeInfo.deserializeBinary = function(bytes) { |
| 9665 | var reader = new jspb.BinaryReader(bytes); |
| 9666 | var msg = new proto.google.protobuf.GeneratedCodeInfo; |
| 9667 | return proto.google.protobuf.GeneratedCodeInfo.deserializeBinaryFromReader(msg, reader); |
| 9668 | }; |
| 9669 | |
| 9670 | |
| 9671 | /** |
| 9672 | * Deserializes binary data (in protobuf wire format) from the |
| 9673 | * given reader into the given message object. |
| 9674 | * @param {!proto.google.protobuf.GeneratedCodeInfo} msg The message object to deserialize into. |
| 9675 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 9676 | * @return {!proto.google.protobuf.GeneratedCodeInfo} |
| 9677 | */ |
| 9678 | proto.google.protobuf.GeneratedCodeInfo.deserializeBinaryFromReader = function(msg, reader) { |
| 9679 | while (reader.nextField()) { |
| 9680 | if (reader.isEndGroup()) { |
| 9681 | break; |
| 9682 | } |
| 9683 | var field = reader.getFieldNumber(); |
| 9684 | switch (field) { |
| 9685 | case 1: |
| 9686 | var value = new proto.google.protobuf.GeneratedCodeInfo.Annotation; |
| 9687 | reader.readMessage(value,proto.google.protobuf.GeneratedCodeInfo.Annotation.deserializeBinaryFromReader); |
| 9688 | msg.addAnnotation(value); |
| 9689 | break; |
| 9690 | default: |
| 9691 | reader.skipField(); |
| 9692 | break; |
| 9693 | } |
| 9694 | } |
| 9695 | return msg; |
| 9696 | }; |
| 9697 | |
| 9698 | |
| 9699 | /** |
| 9700 | * Serializes the message to binary data (in protobuf wire format). |
| 9701 | * @return {!Uint8Array} |
| 9702 | */ |
| 9703 | proto.google.protobuf.GeneratedCodeInfo.prototype.serializeBinary = function() { |
| 9704 | var writer = new jspb.BinaryWriter(); |
| 9705 | proto.google.protobuf.GeneratedCodeInfo.serializeBinaryToWriter(this, writer); |
| 9706 | return writer.getResultBuffer(); |
| 9707 | }; |
| 9708 | |
| 9709 | |
| 9710 | /** |
| 9711 | * Serializes the given message to binary data (in protobuf wire |
| 9712 | * format), writing to the given BinaryWriter. |
| 9713 | * @param {!proto.google.protobuf.GeneratedCodeInfo} message |
| 9714 | * @param {!jspb.BinaryWriter} writer |
| 9715 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 9716 | */ |
| 9717 | proto.google.protobuf.GeneratedCodeInfo.serializeBinaryToWriter = function(message, writer) { |
| 9718 | var f = undefined; |
| 9719 | f = message.getAnnotationList(); |
| 9720 | if (f.length > 0) { |
| 9721 | writer.writeRepeatedMessage( |
| 9722 | 1, |
| 9723 | f, |
| 9724 | proto.google.protobuf.GeneratedCodeInfo.Annotation.serializeBinaryToWriter |
| 9725 | ); |
| 9726 | } |
| 9727 | }; |
| 9728 | |
| 9729 | |
| 9730 | |
| 9731 | /** |
| 9732 | * List of repeated fields within this message type. |
| 9733 | * @private {!Array<number>} |
| 9734 | * @const |
| 9735 | */ |
| 9736 | proto.google.protobuf.GeneratedCodeInfo.Annotation.repeatedFields_ = [1]; |
| 9737 | |
| 9738 | |
| 9739 | |
| 9740 | if (jspb.Message.GENERATE_TO_OBJECT) { |
| 9741 | /** |
| 9742 | * Creates an object representation of this proto. |
| 9743 | * Field names that are reserved in JavaScript and will be renamed to pb_name. |
| 9744 | * Optional fields that are not set will be set to undefined. |
| 9745 | * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. |
| 9746 | * For the list of reserved names please see: |
| 9747 | * net/proto2/compiler/js/internal/generator.cc#kKeyword. |
| 9748 | * @param {boolean=} opt_includeInstance Deprecated. whether to include the |
| 9749 | * JSPB instance for transitional soy proto support: |
| 9750 | * http://goto/soy-param-migration |
| 9751 | * @return {!Object} |
| 9752 | */ |
| 9753 | proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.toObject = function(opt_includeInstance) { |
| 9754 | return proto.google.protobuf.GeneratedCodeInfo.Annotation.toObject(opt_includeInstance, this); |
| 9755 | }; |
| 9756 | |
| 9757 | |
| 9758 | /** |
| 9759 | * Static version of the {@see toObject} method. |
| 9760 | * @param {boolean|undefined} includeInstance Deprecated. Whether to include |
| 9761 | * the JSPB instance for transitional soy proto support: |
| 9762 | * http://goto/soy-param-migration |
| 9763 | * @param {!proto.google.protobuf.GeneratedCodeInfo.Annotation} msg The msg instance to transform. |
| 9764 | * @return {!Object} |
| 9765 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 9766 | */ |
| 9767 | proto.google.protobuf.GeneratedCodeInfo.Annotation.toObject = function(includeInstance, msg) { |
| 9768 | var f, obj = { |
| 9769 | pathList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, |
| 9770 | sourceFile: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f, |
| 9771 | begin: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f, |
| 9772 | end: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f |
| 9773 | }; |
| 9774 | |
| 9775 | if (includeInstance) { |
| 9776 | obj.$jspbMessageInstance = msg; |
| 9777 | } |
| 9778 | return obj; |
| 9779 | }; |
| 9780 | } |
| 9781 | |
| 9782 | |
| 9783 | /** |
| 9784 | * Deserializes binary data (in protobuf wire format). |
| 9785 | * @param {jspb.ByteSource} bytes The bytes to deserialize. |
| 9786 | * @return {!proto.google.protobuf.GeneratedCodeInfo.Annotation} |
| 9787 | */ |
| 9788 | proto.google.protobuf.GeneratedCodeInfo.Annotation.deserializeBinary = function(bytes) { |
| 9789 | var reader = new jspb.BinaryReader(bytes); |
| 9790 | var msg = new proto.google.protobuf.GeneratedCodeInfo.Annotation; |
| 9791 | return proto.google.protobuf.GeneratedCodeInfo.Annotation.deserializeBinaryFromReader(msg, reader); |
| 9792 | }; |
| 9793 | |
| 9794 | |
| 9795 | /** |
| 9796 | * Deserializes binary data (in protobuf wire format) from the |
| 9797 | * given reader into the given message object. |
| 9798 | * @param {!proto.google.protobuf.GeneratedCodeInfo.Annotation} msg The message object to deserialize into. |
| 9799 | * @param {!jspb.BinaryReader} reader The BinaryReader to use. |
| 9800 | * @return {!proto.google.protobuf.GeneratedCodeInfo.Annotation} |
| 9801 | */ |
| 9802 | proto.google.protobuf.GeneratedCodeInfo.Annotation.deserializeBinaryFromReader = function(msg, reader) { |
| 9803 | while (reader.nextField()) { |
| 9804 | if (reader.isEndGroup()) { |
| 9805 | break; |
| 9806 | } |
| 9807 | var field = reader.getFieldNumber(); |
| 9808 | switch (field) { |
| 9809 | case 1: |
| 9810 | var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]); |
| 9811 | for (var i = 0; i < values.length; i++) { |
| 9812 | msg.addPath(values[i]); |
| 9813 | } |
| 9814 | break; |
| 9815 | case 2: |
| 9816 | var value = /** @type {string} */ (reader.readString()); |
| 9817 | msg.setSourceFile(value); |
| 9818 | break; |
| 9819 | case 3: |
| 9820 | var value = /** @type {number} */ (reader.readInt32()); |
| 9821 | msg.setBegin(value); |
| 9822 | break; |
| 9823 | case 4: |
| 9824 | var value = /** @type {number} */ (reader.readInt32()); |
| 9825 | msg.setEnd(value); |
| 9826 | break; |
| 9827 | default: |
| 9828 | reader.skipField(); |
| 9829 | break; |
| 9830 | } |
| 9831 | } |
| 9832 | return msg; |
| 9833 | }; |
| 9834 | |
| 9835 | |
| 9836 | /** |
| 9837 | * Serializes the message to binary data (in protobuf wire format). |
| 9838 | * @return {!Uint8Array} |
| 9839 | */ |
| 9840 | proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.serializeBinary = function() { |
| 9841 | var writer = new jspb.BinaryWriter(); |
| 9842 | proto.google.protobuf.GeneratedCodeInfo.Annotation.serializeBinaryToWriter(this, writer); |
| 9843 | return writer.getResultBuffer(); |
| 9844 | }; |
| 9845 | |
| 9846 | |
| 9847 | /** |
| 9848 | * Serializes the given message to binary data (in protobuf wire |
| 9849 | * format), writing to the given BinaryWriter. |
| 9850 | * @param {!proto.google.protobuf.GeneratedCodeInfo.Annotation} message |
| 9851 | * @param {!jspb.BinaryWriter} writer |
| 9852 | * @suppress {unusedLocalVariables} f is only used for nested messages |
| 9853 | */ |
| 9854 | proto.google.protobuf.GeneratedCodeInfo.Annotation.serializeBinaryToWriter = function(message, writer) { |
| 9855 | var f = undefined; |
| 9856 | f = message.getPathList(); |
| 9857 | if (f.length > 0) { |
| 9858 | writer.writePackedInt32( |
| 9859 | 1, |
| 9860 | f |
| 9861 | ); |
| 9862 | } |
| 9863 | f = /** @type {string} */ (jspb.Message.getField(message, 2)); |
| 9864 | if (f != null) { |
| 9865 | writer.writeString( |
| 9866 | 2, |
| 9867 | f |
| 9868 | ); |
| 9869 | } |
| 9870 | f = /** @type {number} */ (jspb.Message.getField(message, 3)); |
| 9871 | if (f != null) { |
| 9872 | writer.writeInt32( |
| 9873 | 3, |
| 9874 | f |
| 9875 | ); |
| 9876 | } |
| 9877 | f = /** @type {number} */ (jspb.Message.getField(message, 4)); |
| 9878 | if (f != null) { |
| 9879 | writer.writeInt32( |
| 9880 | 4, |
| 9881 | f |
| 9882 | ); |
| 9883 | } |
| 9884 | }; |
| 9885 | |
| 9886 | |
| 9887 | /** |
| 9888 | * repeated int32 path = 1; |
| 9889 | * @return {!Array<number>} |
| 9890 | */ |
| 9891 | proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.getPathList = function() { |
| 9892 | return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1)); |
| 9893 | }; |
| 9894 | |
| 9895 | |
| 9896 | /** |
| 9897 | * @param {!Array<number>} value |
| 9898 | * @return {!proto.google.protobuf.GeneratedCodeInfo.Annotation} returns this |
| 9899 | */ |
| 9900 | proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.setPathList = function(value) { |
| 9901 | return jspb.Message.setField(this, 1, value || []); |
| 9902 | }; |
| 9903 | |
| 9904 | |
| 9905 | /** |
| 9906 | * @param {number} value |
| 9907 | * @param {number=} opt_index |
| 9908 | * @return {!proto.google.protobuf.GeneratedCodeInfo.Annotation} returns this |
| 9909 | */ |
| 9910 | proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.addPath = function(value, opt_index) { |
| 9911 | return jspb.Message.addToRepeatedField(this, 1, value, opt_index); |
| 9912 | }; |
| 9913 | |
| 9914 | |
| 9915 | /** |
| 9916 | * Clears the list making it empty but non-null. |
| 9917 | * @return {!proto.google.protobuf.GeneratedCodeInfo.Annotation} returns this |
| 9918 | */ |
| 9919 | proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.clearPathList = function() { |
| 9920 | return this.setPathList([]); |
| 9921 | }; |
| 9922 | |
| 9923 | |
| 9924 | /** |
| 9925 | * optional string source_file = 2; |
| 9926 | * @return {string} |
| 9927 | */ |
| 9928 | proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.getSourceFile = function() { |
| 9929 | return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); |
| 9930 | }; |
| 9931 | |
| 9932 | |
| 9933 | /** |
| 9934 | * @param {string} value |
| 9935 | * @return {!proto.google.protobuf.GeneratedCodeInfo.Annotation} returns this |
| 9936 | */ |
| 9937 | proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.setSourceFile = function(value) { |
| 9938 | return jspb.Message.setField(this, 2, value); |
| 9939 | }; |
| 9940 | |
| 9941 | |
| 9942 | /** |
| 9943 | * Clears the field making it undefined. |
| 9944 | * @return {!proto.google.protobuf.GeneratedCodeInfo.Annotation} returns this |
| 9945 | */ |
| 9946 | proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.clearSourceFile = function() { |
| 9947 | return jspb.Message.setField(this, 2, undefined); |
| 9948 | }; |
| 9949 | |
| 9950 | |
| 9951 | /** |
| 9952 | * Returns whether this field is set. |
| 9953 | * @return {boolean} |
| 9954 | */ |
| 9955 | proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.hasSourceFile = function() { |
| 9956 | return jspb.Message.getField(this, 2) != null; |
| 9957 | }; |
| 9958 | |
| 9959 | |
| 9960 | /** |
| 9961 | * optional int32 begin = 3; |
| 9962 | * @return {number} |
| 9963 | */ |
| 9964 | proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.getBegin = function() { |
| 9965 | return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); |
| 9966 | }; |
| 9967 | |
| 9968 | |
| 9969 | /** |
| 9970 | * @param {number} value |
| 9971 | * @return {!proto.google.protobuf.GeneratedCodeInfo.Annotation} returns this |
| 9972 | */ |
| 9973 | proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.setBegin = function(value) { |
| 9974 | return jspb.Message.setField(this, 3, value); |
| 9975 | }; |
| 9976 | |
| 9977 | |
| 9978 | /** |
| 9979 | * Clears the field making it undefined. |
| 9980 | * @return {!proto.google.protobuf.GeneratedCodeInfo.Annotation} returns this |
| 9981 | */ |
| 9982 | proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.clearBegin = function() { |
| 9983 | return jspb.Message.setField(this, 3, undefined); |
| 9984 | }; |
| 9985 | |
| 9986 | |
| 9987 | /** |
| 9988 | * Returns whether this field is set. |
| 9989 | * @return {boolean} |
| 9990 | */ |
| 9991 | proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.hasBegin = function() { |
| 9992 | return jspb.Message.getField(this, 3) != null; |
| 9993 | }; |
| 9994 | |
| 9995 | |
| 9996 | /** |
| 9997 | * optional int32 end = 4; |
| 9998 | * @return {number} |
| 9999 | */ |
| 10000 | proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.getEnd = function() { |
| 10001 | return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); |
| 10002 | }; |
| 10003 | |
| 10004 | |
| 10005 | /** |
| 10006 | * @param {number} value |
| 10007 | * @return {!proto.google.protobuf.GeneratedCodeInfo.Annotation} returns this |
| 10008 | */ |
| 10009 | proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.setEnd = function(value) { |
| 10010 | return jspb.Message.setField(this, 4, value); |
| 10011 | }; |
| 10012 | |
| 10013 | |
| 10014 | /** |
| 10015 | * Clears the field making it undefined. |
| 10016 | * @return {!proto.google.protobuf.GeneratedCodeInfo.Annotation} returns this |
| 10017 | */ |
| 10018 | proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.clearEnd = function() { |
| 10019 | return jspb.Message.setField(this, 4, undefined); |
| 10020 | }; |
| 10021 | |
| 10022 | |
| 10023 | /** |
| 10024 | * Returns whether this field is set. |
| 10025 | * @return {boolean} |
| 10026 | */ |
| 10027 | proto.google.protobuf.GeneratedCodeInfo.Annotation.prototype.hasEnd = function() { |
| 10028 | return jspb.Message.getField(this, 4) != null; |
| 10029 | }; |
| 10030 | |
| 10031 | |
| 10032 | /** |
| 10033 | * repeated Annotation annotation = 1; |
| 10034 | * @return {!Array<!proto.google.protobuf.GeneratedCodeInfo.Annotation>} |
| 10035 | */ |
| 10036 | proto.google.protobuf.GeneratedCodeInfo.prototype.getAnnotationList = function() { |
| 10037 | return /** @type{!Array<!proto.google.protobuf.GeneratedCodeInfo.Annotation>} */ ( |
| 10038 | jspb.Message.getRepeatedWrapperField(this, proto.google.protobuf.GeneratedCodeInfo.Annotation, 1)); |
| 10039 | }; |
| 10040 | |
| 10041 | |
| 10042 | /** |
| 10043 | * @param {!Array<!proto.google.protobuf.GeneratedCodeInfo.Annotation>} value |
| 10044 | * @return {!proto.google.protobuf.GeneratedCodeInfo} returns this |
| 10045 | */ |
| 10046 | proto.google.protobuf.GeneratedCodeInfo.prototype.setAnnotationList = function(value) { |
| 10047 | return jspb.Message.setRepeatedWrapperField(this, 1, value); |
| 10048 | }; |
| 10049 | |
| 10050 | |
| 10051 | /** |
| 10052 | * @param {!proto.google.protobuf.GeneratedCodeInfo.Annotation=} opt_value |
| 10053 | * @param {number=} opt_index |
| 10054 | * @return {!proto.google.protobuf.GeneratedCodeInfo.Annotation} |
| 10055 | */ |
| 10056 | proto.google.protobuf.GeneratedCodeInfo.prototype.addAnnotation = function(opt_value, opt_index) { |
| 10057 | return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.protobuf.GeneratedCodeInfo.Annotation, opt_index); |
| 10058 | }; |
| 10059 | |
| 10060 | |
| 10061 | /** |
| 10062 | * Clears the list making it empty but non-null. |
| 10063 | * @return {!proto.google.protobuf.GeneratedCodeInfo} returns this |
| 10064 | */ |
| 10065 | proto.google.protobuf.GeneratedCodeInfo.prototype.clearAnnotationList = function() { |
| 10066 | return this.setAnnotationList([]); |
| 10067 | }; |
| 10068 | |
| 10069 | |
| 10070 | goog.object.extend(exports, proto); |