@pulumi/pulumi 3.65.1 → 3.67.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/automation/cmd.js +1 -1
  2. package/automation/cmd.js.map +1 -1
  3. package/automation/errors.js +9 -5
  4. package/automation/errors.js.map +1 -1
  5. package/automation/events.js.map +1 -1
  6. package/automation/localWorkspace.js +24 -8
  7. package/automation/localWorkspace.js.map +1 -1
  8. package/automation/remoteStack.js.map +1 -1
  9. package/automation/remoteWorkspace.js.map +1 -1
  10. package/automation/server.js +2 -2
  11. package/automation/server.js.map +1 -1
  12. package/automation/stack.js +14 -7
  13. package/automation/stack.js.map +1 -1
  14. package/cmd/dynamic-provider/index.js +1 -1
  15. package/cmd/dynamic-provider/index.js.map +1 -1
  16. package/cmd/run/index.js +5 -3
  17. package/cmd/run/index.js.map +1 -1
  18. package/cmd/run/run.js +58 -20
  19. package/cmd/run/run.js.map +1 -1
  20. package/cmd/run/tracing.js.map +1 -1
  21. package/cmd/run-policy-pack/index.js +1 -1
  22. package/cmd/run-policy-pack/index.js.map +1 -1
  23. package/cmd/run-policy-pack/run.js +3 -6
  24. package/cmd/run-policy-pack/run.js.map +1 -1
  25. package/config.js +2 -3
  26. package/config.js.map +1 -1
  27. package/dynamic/index.js +2 -2
  28. package/dynamic/index.js.map +1 -1
  29. package/iterable/index.js +4 -4
  30. package/iterable/index.js.map +1 -1
  31. package/log/index.js +1 -3
  32. package/log/index.js.map +1 -1
  33. package/output.d.ts +4 -4
  34. package/output.js +35 -29
  35. package/output.js.map +1 -1
  36. package/package.json +3 -1
  37. package/proto/codegen/hcl_grpc_pb.js +1 -0
  38. package/proto/codegen/hcl_pb.js +808 -0
  39. package/proto/codegen/mapper_grpc_pb.js +0 -1
  40. package/proto/codegen/mapper_pb.js +0 -2
  41. package/proto/language_grpc_pb.js +104 -1
  42. package/proto/language_pb.js +1048 -0
  43. package/provider/internals.js.map +1 -1
  44. package/provider/server.js +7 -8
  45. package/provider/server.js.map +1 -1
  46. package/resource.js +9 -9
  47. package/resource.js.map +1 -1
  48. package/runtime/asyncIterableUtil.js +1 -1
  49. package/runtime/asyncIterableUtil.js.map +1 -1
  50. package/runtime/closure/codePaths.js +4 -5
  51. package/runtime/closure/codePaths.js.map +1 -1
  52. package/runtime/closure/createClosure.js +58 -39
  53. package/runtime/closure/createClosure.js.map +1 -1
  54. package/runtime/closure/package.js +8 -5
  55. package/runtime/closure/package.js.map +1 -1
  56. package/runtime/closure/parseFunction.js +34 -21
  57. package/runtime/closure/parseFunction.js.map +1 -1
  58. package/runtime/closure/rewriteSuper.js +3 -6
  59. package/runtime/closure/rewriteSuper.js.map +1 -1
  60. package/runtime/closure/serializeClosure.js +36 -28
  61. package/runtime/closure/serializeClosure.js.map +1 -1
  62. package/runtime/closure/utils.js +1 -2
  63. package/runtime/closure/utils.js.map +1 -1
  64. package/runtime/closure/v8.js +9 -10
  65. package/runtime/closure/v8.js.map +1 -1
  66. package/runtime/closure/v8Hooks.js +2 -2
  67. package/runtime/closure/v8Hooks.js.map +1 -1
  68. package/runtime/config.js.map +1 -1
  69. package/runtime/debuggable.js +10 -9
  70. package/runtime/debuggable.js.map +1 -1
  71. package/runtime/index.js.map +1 -1
  72. package/runtime/invoke.js +6 -11
  73. package/runtime/invoke.js.map +1 -1
  74. package/runtime/mocks.js.map +1 -1
  75. package/runtime/resource.js +20 -15
  76. package/runtime/resource.js.map +1 -1
  77. package/runtime/rpc.js +7 -7
  78. package/runtime/rpc.js.map +1 -1
  79. package/runtime/settings.js +1 -1
  80. package/runtime/settings.js.map +1 -1
  81. package/runtime/stack.js +3 -3
  82. package/runtime/stack.js.map +1 -1
  83. package/runtime/state.js +1 -3
  84. package/runtime/state.js.map +1 -1
  85. package/stackReference.js.map +1 -1
  86. package/tests/automation/localWorkspace.spec.js +63 -57
  87. package/tests/automation/localWorkspace.spec.js.map +1 -1
  88. package/tests/automation/remoteWorkspace.spec.js +9 -6
  89. package/tests/automation/remoteWorkspace.spec.js.map +1 -1
  90. package/tests/config.spec.js +76 -28
  91. package/tests/config.spec.js.map +1 -1
  92. package/tests/iterable.spec.js +2 -2
  93. package/tests/iterable.spec.js.map +1 -1
  94. package/tests/options.spec.js +9 -3
  95. package/tests/options.spec.js.map +1 -1
  96. package/tests/output.spec.js +61 -67
  97. package/tests/output.spec.js.map +1 -1
  98. package/tests/provider.spec.js +7 -1
  99. package/tests/provider.spec.js.map +1 -1
  100. package/tests/resource.spec.js.map +1 -1
  101. package/tests/runtime/asyncIterableUtil.spec.js.map +1 -1
  102. package/tests/runtime/closureLoader.spec.js +1 -1
  103. package/tests/runtime/closureLoader.spec.js.map +1 -1
  104. package/tests/runtime/deploymentOnlyModule/runtimeConfig.js.map +1 -1
  105. package/tests/runtime/jsClosureCases_10_4.js +1 -1
  106. package/tests/runtime/jsClosureCases_8.js +4 -4
  107. package/tests/runtime/langhost/cases/000.empty/index.js +0 -1
  108. package/tests/runtime/langhost/cases/001.one_resource/index.js +0 -1
  109. package/tests/runtime/langhost/cases/002.ten_resources/index.js +0 -1
  110. package/tests/runtime/langhost/cases/003.one_complex_resource/index.js +20 -20
  111. package/tests/runtime/langhost/cases/004.ten_complex_resources/index.js +5 -6
  112. package/tests/runtime/langhost/cases/004.ten_complex_resources/resource.js +11 -12
  113. package/tests/runtime/langhost/cases/005.resource_thens/index.js +12 -13
  114. package/tests/runtime/langhost/cases/006.asset/index.js +1 -2
  115. package/tests/runtime/langhost/cases/007.promises_io/index.js +2 -3
  116. package/tests/runtime/langhost/cases/008.ten_depends_on_resources/index.js +19 -11
  117. package/tests/runtime/langhost/cases/009.invoke/index.js +1 -1
  118. package/tests/runtime/langhost/cases/012.assets_archive/index.js +10 -8
  119. package/tests/runtime/langhost/cases/013.unhandled_promise_rejection/index.js +1 -1
  120. package/tests/runtime/langhost/cases/014.read_resource/index.js +7 -7
  121. package/tests/runtime/langhost/cases/015.runtime_sxs/index.js +35 -19
  122. package/tests/runtime/langhost/cases/017.parent_defaults/index.js +49 -41
  123. package/tests/runtime/langhost/cases/020.property_dependencies/index.js +27 -18
  124. package/tests/runtime/langhost/cases/021.parent_child_dependencies/index.js +3 -3
  125. package/tests/runtime/langhost/cases/022.parent_child_dependencies_2/index.js +3 -3
  126. package/tests/runtime/langhost/cases/023.parent_child_dependencies_3/index.js +6 -6
  127. package/tests/runtime/langhost/cases/024.parent_child_dependencies_4/index.js +8 -8
  128. package/tests/runtime/langhost/cases/025.parent_child_dependencies_5/index.js +9 -9
  129. package/tests/runtime/langhost/cases/026.parent_child_dependencies_6/index.js +11 -11
  130. package/tests/runtime/langhost/cases/027.parent_child_dependencies_7/index.js +14 -14
  131. package/tests/runtime/langhost/cases/028.parent_child_dependencies_8/index.js +10 -10
  132. package/tests/runtime/langhost/cases/029.parent_child_dependencies_9/index.js +8 -8
  133. package/tests/runtime/langhost/cases/030.import_resource/index.js +0 -1
  134. package/tests/runtime/langhost/cases/041.component_opt_single_provider/index.js +49 -41
  135. package/tests/runtime/langhost/cases/042.component_opt_providers_array/index.js +49 -41
  136. package/tests/runtime/langhost/cases/060.provider_invokes/index.js +4 -4
  137. package/tests/runtime/langhost/cases/061.provider_in_parent_invokes/index.js +8 -8
  138. package/tests/runtime/langhost/cases/063.providerref_in_parent_invokes/index.js +2 -2
  139. package/tests/runtime/langhost/cases/064.async_components/index.js +9 -9
  140. package/tests/runtime/langhost/cases/065.large_resource/index.js +2 -2
  141. package/tests/runtime/langhost/cases/067.native_es_module/index.js +0 -1
  142. package/tests/runtime/langhost/cases/068.remote_component_providers/index.js +6 -6
  143. package/tests/runtime/langhost/cases/069.ambiguous_entrypoints/index.js +0 -1
  144. package/tests/runtime/langhost/cases/070.unusual_alias_names/index.js +5 -6
  145. package/tests/runtime/langhost/cases/071.large_alias_counts/index.js +4 -5
  146. package/tests/runtime/langhost/cases/072.large_alias_lineage_chains/index.js +13 -14
  147. package/tests/runtime/langhost/cases/073.component_dependencies/index.js +10 -10
  148. package/tests/runtime/langhost/run.spec.js +140 -116
  149. package/tests/runtime/langhost/run.spec.js.map +1 -1
  150. package/tests/runtime/package.spec.js +23 -23
  151. package/tests/runtime/package.spec.js.map +1 -1
  152. package/tests/runtime/props.spec.js +53 -51
  153. package/tests/runtime/props.spec.js.map +1 -1
  154. package/tests/runtime/settings.spec.js.map +1 -1
  155. package/tests/runtime/tsClosureCases.js +321 -319
  156. package/tests/runtime/tsClosureCases.js.map +1 -1
  157. package/tests/stackReference.spec.js.map +1 -1
  158. package/tests/unwrap.spec.js +27 -7
  159. package/tests/unwrap.spec.js.map +1 -1
  160. package/tests/util.js.map +1 -1
  161. package/tests_with_mocks/mocks.spec.js +11 -11
  162. package/tests_with_mocks/mocks.spec.js.map +1 -1
  163. package/version.js +1 -1
@@ -15,12 +15,20 @@ var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
16
  var proto = { pulumirpc: {} }, global = proto;
17
17
 
18
+ var pulumi_codegen_hcl_pb = require('./codegen/hcl_pb.js');
19
+ goog.object.extend(proto, pulumi_codegen_hcl_pb);
18
20
  var pulumi_plugin_pb = require('./plugin_pb.js');
19
21
  goog.object.extend(proto, pulumi_plugin_pb);
20
22
  var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
21
23
  goog.object.extend(proto, google_protobuf_empty_pb);
22
24
  goog.exportSymbol('proto.pulumirpc.AboutResponse', null, global);
23
25
  goog.exportSymbol('proto.pulumirpc.DependencyInfo', null, global);
26
+ goog.exportSymbol('proto.pulumirpc.GeneratePackageRequest', null, global);
27
+ goog.exportSymbol('proto.pulumirpc.GeneratePackageResponse', null, global);
28
+ goog.exportSymbol('proto.pulumirpc.GenerateProgramRequest', null, global);
29
+ goog.exportSymbol('proto.pulumirpc.GenerateProgramResponse', null, global);
30
+ goog.exportSymbol('proto.pulumirpc.GenerateProjectRequest', null, global);
31
+ goog.exportSymbol('proto.pulumirpc.GenerateProjectResponse', null, global);
24
32
  goog.exportSymbol('proto.pulumirpc.GetProgramDependenciesRequest', null, global);
25
33
  goog.exportSymbol('proto.pulumirpc.GetProgramDependenciesResponse', null, global);
26
34
  goog.exportSymbol('proto.pulumirpc.GetRequiredPluginsRequest', null, global);
@@ -284,6 +292,132 @@ if (goog.DEBUG && !COMPILED) {
284
292
  */
285
293
  proto.pulumirpc.RunPluginResponse.displayName = 'proto.pulumirpc.RunPluginResponse';
286
294
  }
295
+ /**
296
+ * Generated by JsPbCodeGenerator.
297
+ * @param {Array=} opt_data Optional initial data array, typically from a
298
+ * server response, or constructed directly in Javascript. The array is used
299
+ * in place and becomes part of the constructed object. It is not cloned.
300
+ * If no data is provided, the constructed object will be empty, but still
301
+ * valid.
302
+ * @extends {jspb.Message}
303
+ * @constructor
304
+ */
305
+ proto.pulumirpc.GenerateProgramRequest = function(opt_data) {
306
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
307
+ };
308
+ goog.inherits(proto.pulumirpc.GenerateProgramRequest, jspb.Message);
309
+ if (goog.DEBUG && !COMPILED) {
310
+ /**
311
+ * @public
312
+ * @override
313
+ */
314
+ proto.pulumirpc.GenerateProgramRequest.displayName = 'proto.pulumirpc.GenerateProgramRequest';
315
+ }
316
+ /**
317
+ * Generated by JsPbCodeGenerator.
318
+ * @param {Array=} opt_data Optional initial data array, typically from a
319
+ * server response, or constructed directly in Javascript. The array is used
320
+ * in place and becomes part of the constructed object. It is not cloned.
321
+ * If no data is provided, the constructed object will be empty, but still
322
+ * valid.
323
+ * @extends {jspb.Message}
324
+ * @constructor
325
+ */
326
+ proto.pulumirpc.GenerateProgramResponse = function(opt_data) {
327
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.GenerateProgramResponse.repeatedFields_, null);
328
+ };
329
+ goog.inherits(proto.pulumirpc.GenerateProgramResponse, jspb.Message);
330
+ if (goog.DEBUG && !COMPILED) {
331
+ /**
332
+ * @public
333
+ * @override
334
+ */
335
+ proto.pulumirpc.GenerateProgramResponse.displayName = 'proto.pulumirpc.GenerateProgramResponse';
336
+ }
337
+ /**
338
+ * Generated by JsPbCodeGenerator.
339
+ * @param {Array=} opt_data Optional initial data array, typically from a
340
+ * server response, or constructed directly in Javascript. The array is used
341
+ * in place and becomes part of the constructed object. It is not cloned.
342
+ * If no data is provided, the constructed object will be empty, but still
343
+ * valid.
344
+ * @extends {jspb.Message}
345
+ * @constructor
346
+ */
347
+ proto.pulumirpc.GenerateProjectRequest = function(opt_data) {
348
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
349
+ };
350
+ goog.inherits(proto.pulumirpc.GenerateProjectRequest, jspb.Message);
351
+ if (goog.DEBUG && !COMPILED) {
352
+ /**
353
+ * @public
354
+ * @override
355
+ */
356
+ proto.pulumirpc.GenerateProjectRequest.displayName = 'proto.pulumirpc.GenerateProjectRequest';
357
+ }
358
+ /**
359
+ * Generated by JsPbCodeGenerator.
360
+ * @param {Array=} opt_data Optional initial data array, typically from a
361
+ * server response, or constructed directly in Javascript. The array is used
362
+ * in place and becomes part of the constructed object. It is not cloned.
363
+ * If no data is provided, the constructed object will be empty, but still
364
+ * valid.
365
+ * @extends {jspb.Message}
366
+ * @constructor
367
+ */
368
+ proto.pulumirpc.GenerateProjectResponse = function(opt_data) {
369
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
370
+ };
371
+ goog.inherits(proto.pulumirpc.GenerateProjectResponse, jspb.Message);
372
+ if (goog.DEBUG && !COMPILED) {
373
+ /**
374
+ * @public
375
+ * @override
376
+ */
377
+ proto.pulumirpc.GenerateProjectResponse.displayName = 'proto.pulumirpc.GenerateProjectResponse';
378
+ }
379
+ /**
380
+ * Generated by JsPbCodeGenerator.
381
+ * @param {Array=} opt_data Optional initial data array, typically from a
382
+ * server response, or constructed directly in Javascript. The array is used
383
+ * in place and becomes part of the constructed object. It is not cloned.
384
+ * If no data is provided, the constructed object will be empty, but still
385
+ * valid.
386
+ * @extends {jspb.Message}
387
+ * @constructor
388
+ */
389
+ proto.pulumirpc.GeneratePackageRequest = function(opt_data) {
390
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
391
+ };
392
+ goog.inherits(proto.pulumirpc.GeneratePackageRequest, jspb.Message);
393
+ if (goog.DEBUG && !COMPILED) {
394
+ /**
395
+ * @public
396
+ * @override
397
+ */
398
+ proto.pulumirpc.GeneratePackageRequest.displayName = 'proto.pulumirpc.GeneratePackageRequest';
399
+ }
400
+ /**
401
+ * Generated by JsPbCodeGenerator.
402
+ * @param {Array=} opt_data Optional initial data array, typically from a
403
+ * server response, or constructed directly in Javascript. The array is used
404
+ * in place and becomes part of the constructed object. It is not cloned.
405
+ * If no data is provided, the constructed object will be empty, but still
406
+ * valid.
407
+ * @extends {jspb.Message}
408
+ * @constructor
409
+ */
410
+ proto.pulumirpc.GeneratePackageResponse = function(opt_data) {
411
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
412
+ };
413
+ goog.inherits(proto.pulumirpc.GeneratePackageResponse, jspb.Message);
414
+ if (goog.DEBUG && !COMPILED) {
415
+ /**
416
+ * @public
417
+ * @override
418
+ */
419
+ proto.pulumirpc.GeneratePackageResponse.displayName = 'proto.pulumirpc.GeneratePackageResponse';
420
+ }
287
421
 
288
422
 
289
423
 
@@ -2987,4 +3121,918 @@ proto.pulumirpc.RunPluginResponse.prototype.hasExitcode = function() {
2987
3121
  };
2988
3122
 
2989
3123
 
3124
+
3125
+
3126
+
3127
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3128
+ /**
3129
+ * Creates an object representation of this proto.
3130
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3131
+ * Optional fields that are not set will be set to undefined.
3132
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3133
+ * For the list of reserved names please see:
3134
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3135
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3136
+ * JSPB instance for transitional soy proto support:
3137
+ * http://goto/soy-param-migration
3138
+ * @return {!Object}
3139
+ */
3140
+ proto.pulumirpc.GenerateProgramRequest.prototype.toObject = function(opt_includeInstance) {
3141
+ return proto.pulumirpc.GenerateProgramRequest.toObject(opt_includeInstance, this);
3142
+ };
3143
+
3144
+
3145
+ /**
3146
+ * Static version of the {@see toObject} method.
3147
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3148
+ * the JSPB instance for transitional soy proto support:
3149
+ * http://goto/soy-param-migration
3150
+ * @param {!proto.pulumirpc.GenerateProgramRequest} msg The msg instance to transform.
3151
+ * @return {!Object}
3152
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3153
+ */
3154
+ proto.pulumirpc.GenerateProgramRequest.toObject = function(includeInstance, msg) {
3155
+ var f, obj = {
3156
+ sourceMap: (f = msg.getSourceMap()) ? f.toObject(includeInstance, undefined) : []
3157
+ };
3158
+
3159
+ if (includeInstance) {
3160
+ obj.$jspbMessageInstance = msg;
3161
+ }
3162
+ return obj;
3163
+ };
3164
+ }
3165
+
3166
+
3167
+ /**
3168
+ * Deserializes binary data (in protobuf wire format).
3169
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3170
+ * @return {!proto.pulumirpc.GenerateProgramRequest}
3171
+ */
3172
+ proto.pulumirpc.GenerateProgramRequest.deserializeBinary = function(bytes) {
3173
+ var reader = new jspb.BinaryReader(bytes);
3174
+ var msg = new proto.pulumirpc.GenerateProgramRequest;
3175
+ return proto.pulumirpc.GenerateProgramRequest.deserializeBinaryFromReader(msg, reader);
3176
+ };
3177
+
3178
+
3179
+ /**
3180
+ * Deserializes binary data (in protobuf wire format) from the
3181
+ * given reader into the given message object.
3182
+ * @param {!proto.pulumirpc.GenerateProgramRequest} msg The message object to deserialize into.
3183
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3184
+ * @return {!proto.pulumirpc.GenerateProgramRequest}
3185
+ */
3186
+ proto.pulumirpc.GenerateProgramRequest.deserializeBinaryFromReader = function(msg, reader) {
3187
+ while (reader.nextField()) {
3188
+ if (reader.isEndGroup()) {
3189
+ break;
3190
+ }
3191
+ var field = reader.getFieldNumber();
3192
+ switch (field) {
3193
+ case 1:
3194
+ var value = msg.getSourceMap();
3195
+ reader.readMessage(value, function(message, reader) {
3196
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
3197
+ });
3198
+ break;
3199
+ default:
3200
+ reader.skipField();
3201
+ break;
3202
+ }
3203
+ }
3204
+ return msg;
3205
+ };
3206
+
3207
+
3208
+ /**
3209
+ * Serializes the message to binary data (in protobuf wire format).
3210
+ * @return {!Uint8Array}
3211
+ */
3212
+ proto.pulumirpc.GenerateProgramRequest.prototype.serializeBinary = function() {
3213
+ var writer = new jspb.BinaryWriter();
3214
+ proto.pulumirpc.GenerateProgramRequest.serializeBinaryToWriter(this, writer);
3215
+ return writer.getResultBuffer();
3216
+ };
3217
+
3218
+
3219
+ /**
3220
+ * Serializes the given message to binary data (in protobuf wire
3221
+ * format), writing to the given BinaryWriter.
3222
+ * @param {!proto.pulumirpc.GenerateProgramRequest} message
3223
+ * @param {!jspb.BinaryWriter} writer
3224
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3225
+ */
3226
+ proto.pulumirpc.GenerateProgramRequest.serializeBinaryToWriter = function(message, writer) {
3227
+ var f = undefined;
3228
+ f = message.getSourceMap(true);
3229
+ if (f && f.getLength() > 0) {
3230
+ f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
3231
+ }
3232
+ };
3233
+
3234
+
3235
+ /**
3236
+ * map<string, string> source = 1;
3237
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
3238
+ * empty, instead returning `undefined`
3239
+ * @return {!jspb.Map<string,string>}
3240
+ */
3241
+ proto.pulumirpc.GenerateProgramRequest.prototype.getSourceMap = function(opt_noLazyCreate) {
3242
+ return /** @type {!jspb.Map<string,string>} */ (
3243
+ jspb.Message.getMapField(this, 1, opt_noLazyCreate,
3244
+ null));
3245
+ };
3246
+
3247
+
3248
+ /**
3249
+ * Clears values from the map. The map will be non-null.
3250
+ * @return {!proto.pulumirpc.GenerateProgramRequest} returns this
3251
+ */
3252
+ proto.pulumirpc.GenerateProgramRequest.prototype.clearSourceMap = function() {
3253
+ this.getSourceMap().clear();
3254
+ return this;};
3255
+
3256
+
3257
+
3258
+ /**
3259
+ * List of repeated fields within this message type.
3260
+ * @private {!Array<number>}
3261
+ * @const
3262
+ */
3263
+ proto.pulumirpc.GenerateProgramResponse.repeatedFields_ = [1];
3264
+
3265
+
3266
+
3267
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3268
+ /**
3269
+ * Creates an object representation of this proto.
3270
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3271
+ * Optional fields that are not set will be set to undefined.
3272
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3273
+ * For the list of reserved names please see:
3274
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3275
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3276
+ * JSPB instance for transitional soy proto support:
3277
+ * http://goto/soy-param-migration
3278
+ * @return {!Object}
3279
+ */
3280
+ proto.pulumirpc.GenerateProgramResponse.prototype.toObject = function(opt_includeInstance) {
3281
+ return proto.pulumirpc.GenerateProgramResponse.toObject(opt_includeInstance, this);
3282
+ };
3283
+
3284
+
3285
+ /**
3286
+ * Static version of the {@see toObject} method.
3287
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3288
+ * the JSPB instance for transitional soy proto support:
3289
+ * http://goto/soy-param-migration
3290
+ * @param {!proto.pulumirpc.GenerateProgramResponse} msg The msg instance to transform.
3291
+ * @return {!Object}
3292
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3293
+ */
3294
+ proto.pulumirpc.GenerateProgramResponse.toObject = function(includeInstance, msg) {
3295
+ var f, obj = {
3296
+ diagnosticsList: jspb.Message.toObjectList(msg.getDiagnosticsList(),
3297
+ pulumi_codegen_hcl_pb.Diagnostic.toObject, includeInstance),
3298
+ sourceMap: (f = msg.getSourceMap()) ? f.toObject(includeInstance, undefined) : []
3299
+ };
3300
+
3301
+ if (includeInstance) {
3302
+ obj.$jspbMessageInstance = msg;
3303
+ }
3304
+ return obj;
3305
+ };
3306
+ }
3307
+
3308
+
3309
+ /**
3310
+ * Deserializes binary data (in protobuf wire format).
3311
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3312
+ * @return {!proto.pulumirpc.GenerateProgramResponse}
3313
+ */
3314
+ proto.pulumirpc.GenerateProgramResponse.deserializeBinary = function(bytes) {
3315
+ var reader = new jspb.BinaryReader(bytes);
3316
+ var msg = new proto.pulumirpc.GenerateProgramResponse;
3317
+ return proto.pulumirpc.GenerateProgramResponse.deserializeBinaryFromReader(msg, reader);
3318
+ };
3319
+
3320
+
3321
+ /**
3322
+ * Deserializes binary data (in protobuf wire format) from the
3323
+ * given reader into the given message object.
3324
+ * @param {!proto.pulumirpc.GenerateProgramResponse} msg The message object to deserialize into.
3325
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3326
+ * @return {!proto.pulumirpc.GenerateProgramResponse}
3327
+ */
3328
+ proto.pulumirpc.GenerateProgramResponse.deserializeBinaryFromReader = function(msg, reader) {
3329
+ while (reader.nextField()) {
3330
+ if (reader.isEndGroup()) {
3331
+ break;
3332
+ }
3333
+ var field = reader.getFieldNumber();
3334
+ switch (field) {
3335
+ case 1:
3336
+ var value = new pulumi_codegen_hcl_pb.Diagnostic;
3337
+ reader.readMessage(value,pulumi_codegen_hcl_pb.Diagnostic.deserializeBinaryFromReader);
3338
+ msg.addDiagnostics(value);
3339
+ break;
3340
+ case 2:
3341
+ var value = msg.getSourceMap();
3342
+ reader.readMessage(value, function(message, reader) {
3343
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readBytes, null, "", "");
3344
+ });
3345
+ break;
3346
+ default:
3347
+ reader.skipField();
3348
+ break;
3349
+ }
3350
+ }
3351
+ return msg;
3352
+ };
3353
+
3354
+
3355
+ /**
3356
+ * Serializes the message to binary data (in protobuf wire format).
3357
+ * @return {!Uint8Array}
3358
+ */
3359
+ proto.pulumirpc.GenerateProgramResponse.prototype.serializeBinary = function() {
3360
+ var writer = new jspb.BinaryWriter();
3361
+ proto.pulumirpc.GenerateProgramResponse.serializeBinaryToWriter(this, writer);
3362
+ return writer.getResultBuffer();
3363
+ };
3364
+
3365
+
3366
+ /**
3367
+ * Serializes the given message to binary data (in protobuf wire
3368
+ * format), writing to the given BinaryWriter.
3369
+ * @param {!proto.pulumirpc.GenerateProgramResponse} message
3370
+ * @param {!jspb.BinaryWriter} writer
3371
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3372
+ */
3373
+ proto.pulumirpc.GenerateProgramResponse.serializeBinaryToWriter = function(message, writer) {
3374
+ var f = undefined;
3375
+ f = message.getDiagnosticsList();
3376
+ if (f.length > 0) {
3377
+ writer.writeRepeatedMessage(
3378
+ 1,
3379
+ f,
3380
+ pulumi_codegen_hcl_pb.Diagnostic.serializeBinaryToWriter
3381
+ );
3382
+ }
3383
+ f = message.getSourceMap(true);
3384
+ if (f && f.getLength() > 0) {
3385
+ f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeBytes);
3386
+ }
3387
+ };
3388
+
3389
+
3390
+ /**
3391
+ * repeated codegen.Diagnostic diagnostics = 1;
3392
+ * @return {!Array<!proto.pulumirpc.codegen.Diagnostic>}
3393
+ */
3394
+ proto.pulumirpc.GenerateProgramResponse.prototype.getDiagnosticsList = function() {
3395
+ return /** @type{!Array<!proto.pulumirpc.codegen.Diagnostic>} */ (
3396
+ jspb.Message.getRepeatedWrapperField(this, pulumi_codegen_hcl_pb.Diagnostic, 1));
3397
+ };
3398
+
3399
+
3400
+ /**
3401
+ * @param {!Array<!proto.pulumirpc.codegen.Diagnostic>} value
3402
+ * @return {!proto.pulumirpc.GenerateProgramResponse} returns this
3403
+ */
3404
+ proto.pulumirpc.GenerateProgramResponse.prototype.setDiagnosticsList = function(value) {
3405
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
3406
+ };
3407
+
3408
+
3409
+ /**
3410
+ * @param {!proto.pulumirpc.codegen.Diagnostic=} opt_value
3411
+ * @param {number=} opt_index
3412
+ * @return {!proto.pulumirpc.codegen.Diagnostic}
3413
+ */
3414
+ proto.pulumirpc.GenerateProgramResponse.prototype.addDiagnostics = function(opt_value, opt_index) {
3415
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.pulumirpc.codegen.Diagnostic, opt_index);
3416
+ };
3417
+
3418
+
3419
+ /**
3420
+ * Clears the list making it empty but non-null.
3421
+ * @return {!proto.pulumirpc.GenerateProgramResponse} returns this
3422
+ */
3423
+ proto.pulumirpc.GenerateProgramResponse.prototype.clearDiagnosticsList = function() {
3424
+ return this.setDiagnosticsList([]);
3425
+ };
3426
+
3427
+
3428
+ /**
3429
+ * map<string, bytes> source = 2;
3430
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
3431
+ * empty, instead returning `undefined`
3432
+ * @return {!jspb.Map<string,!(string|Uint8Array)>}
3433
+ */
3434
+ proto.pulumirpc.GenerateProgramResponse.prototype.getSourceMap = function(opt_noLazyCreate) {
3435
+ return /** @type {!jspb.Map<string,!(string|Uint8Array)>} */ (
3436
+ jspb.Message.getMapField(this, 2, opt_noLazyCreate,
3437
+ null));
3438
+ };
3439
+
3440
+
3441
+ /**
3442
+ * Clears values from the map. The map will be non-null.
3443
+ * @return {!proto.pulumirpc.GenerateProgramResponse} returns this
3444
+ */
3445
+ proto.pulumirpc.GenerateProgramResponse.prototype.clearSourceMap = function() {
3446
+ this.getSourceMap().clear();
3447
+ return this;};
3448
+
3449
+
3450
+
3451
+
3452
+
3453
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3454
+ /**
3455
+ * Creates an object representation of this proto.
3456
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3457
+ * Optional fields that are not set will be set to undefined.
3458
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3459
+ * For the list of reserved names please see:
3460
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3461
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3462
+ * JSPB instance for transitional soy proto support:
3463
+ * http://goto/soy-param-migration
3464
+ * @return {!Object}
3465
+ */
3466
+ proto.pulumirpc.GenerateProjectRequest.prototype.toObject = function(opt_includeInstance) {
3467
+ return proto.pulumirpc.GenerateProjectRequest.toObject(opt_includeInstance, this);
3468
+ };
3469
+
3470
+
3471
+ /**
3472
+ * Static version of the {@see toObject} method.
3473
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3474
+ * the JSPB instance for transitional soy proto support:
3475
+ * http://goto/soy-param-migration
3476
+ * @param {!proto.pulumirpc.GenerateProjectRequest} msg The msg instance to transform.
3477
+ * @return {!Object}
3478
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3479
+ */
3480
+ proto.pulumirpc.GenerateProjectRequest.toObject = function(includeInstance, msg) {
3481
+ var f, obj = {
3482
+ directory: jspb.Message.getFieldWithDefault(msg, 1, ""),
3483
+ project: jspb.Message.getFieldWithDefault(msg, 2, ""),
3484
+ sourceMap: (f = msg.getSourceMap()) ? f.toObject(includeInstance, undefined) : []
3485
+ };
3486
+
3487
+ if (includeInstance) {
3488
+ obj.$jspbMessageInstance = msg;
3489
+ }
3490
+ return obj;
3491
+ };
3492
+ }
3493
+
3494
+
3495
+ /**
3496
+ * Deserializes binary data (in protobuf wire format).
3497
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3498
+ * @return {!proto.pulumirpc.GenerateProjectRequest}
3499
+ */
3500
+ proto.pulumirpc.GenerateProjectRequest.deserializeBinary = function(bytes) {
3501
+ var reader = new jspb.BinaryReader(bytes);
3502
+ var msg = new proto.pulumirpc.GenerateProjectRequest;
3503
+ return proto.pulumirpc.GenerateProjectRequest.deserializeBinaryFromReader(msg, reader);
3504
+ };
3505
+
3506
+
3507
+ /**
3508
+ * Deserializes binary data (in protobuf wire format) from the
3509
+ * given reader into the given message object.
3510
+ * @param {!proto.pulumirpc.GenerateProjectRequest} msg The message object to deserialize into.
3511
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3512
+ * @return {!proto.pulumirpc.GenerateProjectRequest}
3513
+ */
3514
+ proto.pulumirpc.GenerateProjectRequest.deserializeBinaryFromReader = function(msg, reader) {
3515
+ while (reader.nextField()) {
3516
+ if (reader.isEndGroup()) {
3517
+ break;
3518
+ }
3519
+ var field = reader.getFieldNumber();
3520
+ switch (field) {
3521
+ case 1:
3522
+ var value = /** @type {string} */ (reader.readString());
3523
+ msg.setDirectory(value);
3524
+ break;
3525
+ case 2:
3526
+ var value = /** @type {string} */ (reader.readString());
3527
+ msg.setProject(value);
3528
+ break;
3529
+ case 3:
3530
+ var value = msg.getSourceMap();
3531
+ reader.readMessage(value, function(message, reader) {
3532
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
3533
+ });
3534
+ break;
3535
+ default:
3536
+ reader.skipField();
3537
+ break;
3538
+ }
3539
+ }
3540
+ return msg;
3541
+ };
3542
+
3543
+
3544
+ /**
3545
+ * Serializes the message to binary data (in protobuf wire format).
3546
+ * @return {!Uint8Array}
3547
+ */
3548
+ proto.pulumirpc.GenerateProjectRequest.prototype.serializeBinary = function() {
3549
+ var writer = new jspb.BinaryWriter();
3550
+ proto.pulumirpc.GenerateProjectRequest.serializeBinaryToWriter(this, writer);
3551
+ return writer.getResultBuffer();
3552
+ };
3553
+
3554
+
3555
+ /**
3556
+ * Serializes the given message to binary data (in protobuf wire
3557
+ * format), writing to the given BinaryWriter.
3558
+ * @param {!proto.pulumirpc.GenerateProjectRequest} message
3559
+ * @param {!jspb.BinaryWriter} writer
3560
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3561
+ */
3562
+ proto.pulumirpc.GenerateProjectRequest.serializeBinaryToWriter = function(message, writer) {
3563
+ var f = undefined;
3564
+ f = message.getDirectory();
3565
+ if (f.length > 0) {
3566
+ writer.writeString(
3567
+ 1,
3568
+ f
3569
+ );
3570
+ }
3571
+ f = message.getProject();
3572
+ if (f.length > 0) {
3573
+ writer.writeString(
3574
+ 2,
3575
+ f
3576
+ );
3577
+ }
3578
+ f = message.getSourceMap(true);
3579
+ if (f && f.getLength() > 0) {
3580
+ f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
3581
+ }
3582
+ };
3583
+
3584
+
3585
+ /**
3586
+ * optional string directory = 1;
3587
+ * @return {string}
3588
+ */
3589
+ proto.pulumirpc.GenerateProjectRequest.prototype.getDirectory = function() {
3590
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3591
+ };
3592
+
3593
+
3594
+ /**
3595
+ * @param {string} value
3596
+ * @return {!proto.pulumirpc.GenerateProjectRequest} returns this
3597
+ */
3598
+ proto.pulumirpc.GenerateProjectRequest.prototype.setDirectory = function(value) {
3599
+ return jspb.Message.setProto3StringField(this, 1, value);
3600
+ };
3601
+
3602
+
3603
+ /**
3604
+ * optional string project = 2;
3605
+ * @return {string}
3606
+ */
3607
+ proto.pulumirpc.GenerateProjectRequest.prototype.getProject = function() {
3608
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3609
+ };
3610
+
3611
+
3612
+ /**
3613
+ * @param {string} value
3614
+ * @return {!proto.pulumirpc.GenerateProjectRequest} returns this
3615
+ */
3616
+ proto.pulumirpc.GenerateProjectRequest.prototype.setProject = function(value) {
3617
+ return jspb.Message.setProto3StringField(this, 2, value);
3618
+ };
3619
+
3620
+
3621
+ /**
3622
+ * map<string, string> source = 3;
3623
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
3624
+ * empty, instead returning `undefined`
3625
+ * @return {!jspb.Map<string,string>}
3626
+ */
3627
+ proto.pulumirpc.GenerateProjectRequest.prototype.getSourceMap = function(opt_noLazyCreate) {
3628
+ return /** @type {!jspb.Map<string,string>} */ (
3629
+ jspb.Message.getMapField(this, 3, opt_noLazyCreate,
3630
+ null));
3631
+ };
3632
+
3633
+
3634
+ /**
3635
+ * Clears values from the map. The map will be non-null.
3636
+ * @return {!proto.pulumirpc.GenerateProjectRequest} returns this
3637
+ */
3638
+ proto.pulumirpc.GenerateProjectRequest.prototype.clearSourceMap = function() {
3639
+ this.getSourceMap().clear();
3640
+ return this;};
3641
+
3642
+
3643
+
3644
+
3645
+
3646
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3647
+ /**
3648
+ * Creates an object representation of this proto.
3649
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3650
+ * Optional fields that are not set will be set to undefined.
3651
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3652
+ * For the list of reserved names please see:
3653
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3654
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3655
+ * JSPB instance for transitional soy proto support:
3656
+ * http://goto/soy-param-migration
3657
+ * @return {!Object}
3658
+ */
3659
+ proto.pulumirpc.GenerateProjectResponse.prototype.toObject = function(opt_includeInstance) {
3660
+ return proto.pulumirpc.GenerateProjectResponse.toObject(opt_includeInstance, this);
3661
+ };
3662
+
3663
+
3664
+ /**
3665
+ * Static version of the {@see toObject} method.
3666
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3667
+ * the JSPB instance for transitional soy proto support:
3668
+ * http://goto/soy-param-migration
3669
+ * @param {!proto.pulumirpc.GenerateProjectResponse} msg The msg instance to transform.
3670
+ * @return {!Object}
3671
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3672
+ */
3673
+ proto.pulumirpc.GenerateProjectResponse.toObject = function(includeInstance, msg) {
3674
+ var f, obj = {
3675
+
3676
+ };
3677
+
3678
+ if (includeInstance) {
3679
+ obj.$jspbMessageInstance = msg;
3680
+ }
3681
+ return obj;
3682
+ };
3683
+ }
3684
+
3685
+
3686
+ /**
3687
+ * Deserializes binary data (in protobuf wire format).
3688
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3689
+ * @return {!proto.pulumirpc.GenerateProjectResponse}
3690
+ */
3691
+ proto.pulumirpc.GenerateProjectResponse.deserializeBinary = function(bytes) {
3692
+ var reader = new jspb.BinaryReader(bytes);
3693
+ var msg = new proto.pulumirpc.GenerateProjectResponse;
3694
+ return proto.pulumirpc.GenerateProjectResponse.deserializeBinaryFromReader(msg, reader);
3695
+ };
3696
+
3697
+
3698
+ /**
3699
+ * Deserializes binary data (in protobuf wire format) from the
3700
+ * given reader into the given message object.
3701
+ * @param {!proto.pulumirpc.GenerateProjectResponse} msg The message object to deserialize into.
3702
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3703
+ * @return {!proto.pulumirpc.GenerateProjectResponse}
3704
+ */
3705
+ proto.pulumirpc.GenerateProjectResponse.deserializeBinaryFromReader = function(msg, reader) {
3706
+ while (reader.nextField()) {
3707
+ if (reader.isEndGroup()) {
3708
+ break;
3709
+ }
3710
+ var field = reader.getFieldNumber();
3711
+ switch (field) {
3712
+ default:
3713
+ reader.skipField();
3714
+ break;
3715
+ }
3716
+ }
3717
+ return msg;
3718
+ };
3719
+
3720
+
3721
+ /**
3722
+ * Serializes the message to binary data (in protobuf wire format).
3723
+ * @return {!Uint8Array}
3724
+ */
3725
+ proto.pulumirpc.GenerateProjectResponse.prototype.serializeBinary = function() {
3726
+ var writer = new jspb.BinaryWriter();
3727
+ proto.pulumirpc.GenerateProjectResponse.serializeBinaryToWriter(this, writer);
3728
+ return writer.getResultBuffer();
3729
+ };
3730
+
3731
+
3732
+ /**
3733
+ * Serializes the given message to binary data (in protobuf wire
3734
+ * format), writing to the given BinaryWriter.
3735
+ * @param {!proto.pulumirpc.GenerateProjectResponse} message
3736
+ * @param {!jspb.BinaryWriter} writer
3737
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3738
+ */
3739
+ proto.pulumirpc.GenerateProjectResponse.serializeBinaryToWriter = function(message, writer) {
3740
+ var f = undefined;
3741
+ };
3742
+
3743
+
3744
+
3745
+
3746
+
3747
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3748
+ /**
3749
+ * Creates an object representation of this proto.
3750
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3751
+ * Optional fields that are not set will be set to undefined.
3752
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3753
+ * For the list of reserved names please see:
3754
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3755
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3756
+ * JSPB instance for transitional soy proto support:
3757
+ * http://goto/soy-param-migration
3758
+ * @return {!Object}
3759
+ */
3760
+ proto.pulumirpc.GeneratePackageRequest.prototype.toObject = function(opt_includeInstance) {
3761
+ return proto.pulumirpc.GeneratePackageRequest.toObject(opt_includeInstance, this);
3762
+ };
3763
+
3764
+
3765
+ /**
3766
+ * Static version of the {@see toObject} method.
3767
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3768
+ * the JSPB instance for transitional soy proto support:
3769
+ * http://goto/soy-param-migration
3770
+ * @param {!proto.pulumirpc.GeneratePackageRequest} msg The msg instance to transform.
3771
+ * @return {!Object}
3772
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3773
+ */
3774
+ proto.pulumirpc.GeneratePackageRequest.toObject = function(includeInstance, msg) {
3775
+ var f, obj = {
3776
+ directory: jspb.Message.getFieldWithDefault(msg, 1, ""),
3777
+ schema: jspb.Message.getFieldWithDefault(msg, 2, ""),
3778
+ extrafilesMap: (f = msg.getExtrafilesMap()) ? f.toObject(includeInstance, undefined) : []
3779
+ };
3780
+
3781
+ if (includeInstance) {
3782
+ obj.$jspbMessageInstance = msg;
3783
+ }
3784
+ return obj;
3785
+ };
3786
+ }
3787
+
3788
+
3789
+ /**
3790
+ * Deserializes binary data (in protobuf wire format).
3791
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3792
+ * @return {!proto.pulumirpc.GeneratePackageRequest}
3793
+ */
3794
+ proto.pulumirpc.GeneratePackageRequest.deserializeBinary = function(bytes) {
3795
+ var reader = new jspb.BinaryReader(bytes);
3796
+ var msg = new proto.pulumirpc.GeneratePackageRequest;
3797
+ return proto.pulumirpc.GeneratePackageRequest.deserializeBinaryFromReader(msg, reader);
3798
+ };
3799
+
3800
+
3801
+ /**
3802
+ * Deserializes binary data (in protobuf wire format) from the
3803
+ * given reader into the given message object.
3804
+ * @param {!proto.pulumirpc.GeneratePackageRequest} msg The message object to deserialize into.
3805
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3806
+ * @return {!proto.pulumirpc.GeneratePackageRequest}
3807
+ */
3808
+ proto.pulumirpc.GeneratePackageRequest.deserializeBinaryFromReader = function(msg, reader) {
3809
+ while (reader.nextField()) {
3810
+ if (reader.isEndGroup()) {
3811
+ break;
3812
+ }
3813
+ var field = reader.getFieldNumber();
3814
+ switch (field) {
3815
+ case 1:
3816
+ var value = /** @type {string} */ (reader.readString());
3817
+ msg.setDirectory(value);
3818
+ break;
3819
+ case 2:
3820
+ var value = /** @type {string} */ (reader.readString());
3821
+ msg.setSchema(value);
3822
+ break;
3823
+ case 3:
3824
+ var value = msg.getExtrafilesMap();
3825
+ reader.readMessage(value, function(message, reader) {
3826
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readBytes, null, "", "");
3827
+ });
3828
+ break;
3829
+ default:
3830
+ reader.skipField();
3831
+ break;
3832
+ }
3833
+ }
3834
+ return msg;
3835
+ };
3836
+
3837
+
3838
+ /**
3839
+ * Serializes the message to binary data (in protobuf wire format).
3840
+ * @return {!Uint8Array}
3841
+ */
3842
+ proto.pulumirpc.GeneratePackageRequest.prototype.serializeBinary = function() {
3843
+ var writer = new jspb.BinaryWriter();
3844
+ proto.pulumirpc.GeneratePackageRequest.serializeBinaryToWriter(this, writer);
3845
+ return writer.getResultBuffer();
3846
+ };
3847
+
3848
+
3849
+ /**
3850
+ * Serializes the given message to binary data (in protobuf wire
3851
+ * format), writing to the given BinaryWriter.
3852
+ * @param {!proto.pulumirpc.GeneratePackageRequest} message
3853
+ * @param {!jspb.BinaryWriter} writer
3854
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3855
+ */
3856
+ proto.pulumirpc.GeneratePackageRequest.serializeBinaryToWriter = function(message, writer) {
3857
+ var f = undefined;
3858
+ f = message.getDirectory();
3859
+ if (f.length > 0) {
3860
+ writer.writeString(
3861
+ 1,
3862
+ f
3863
+ );
3864
+ }
3865
+ f = message.getSchema();
3866
+ if (f.length > 0) {
3867
+ writer.writeString(
3868
+ 2,
3869
+ f
3870
+ );
3871
+ }
3872
+ f = message.getExtrafilesMap(true);
3873
+ if (f && f.getLength() > 0) {
3874
+ f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeBytes);
3875
+ }
3876
+ };
3877
+
3878
+
3879
+ /**
3880
+ * optional string directory = 1;
3881
+ * @return {string}
3882
+ */
3883
+ proto.pulumirpc.GeneratePackageRequest.prototype.getDirectory = function() {
3884
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3885
+ };
3886
+
3887
+
3888
+ /**
3889
+ * @param {string} value
3890
+ * @return {!proto.pulumirpc.GeneratePackageRequest} returns this
3891
+ */
3892
+ proto.pulumirpc.GeneratePackageRequest.prototype.setDirectory = function(value) {
3893
+ return jspb.Message.setProto3StringField(this, 1, value);
3894
+ };
3895
+
3896
+
3897
+ /**
3898
+ * optional string schema = 2;
3899
+ * @return {string}
3900
+ */
3901
+ proto.pulumirpc.GeneratePackageRequest.prototype.getSchema = function() {
3902
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3903
+ };
3904
+
3905
+
3906
+ /**
3907
+ * @param {string} value
3908
+ * @return {!proto.pulumirpc.GeneratePackageRequest} returns this
3909
+ */
3910
+ proto.pulumirpc.GeneratePackageRequest.prototype.setSchema = function(value) {
3911
+ return jspb.Message.setProto3StringField(this, 2, value);
3912
+ };
3913
+
3914
+
3915
+ /**
3916
+ * map<string, bytes> extraFiles = 3;
3917
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
3918
+ * empty, instead returning `undefined`
3919
+ * @return {!jspb.Map<string,!(string|Uint8Array)>}
3920
+ */
3921
+ proto.pulumirpc.GeneratePackageRequest.prototype.getExtrafilesMap = function(opt_noLazyCreate) {
3922
+ return /** @type {!jspb.Map<string,!(string|Uint8Array)>} */ (
3923
+ jspb.Message.getMapField(this, 3, opt_noLazyCreate,
3924
+ null));
3925
+ };
3926
+
3927
+
3928
+ /**
3929
+ * Clears values from the map. The map will be non-null.
3930
+ * @return {!proto.pulumirpc.GeneratePackageRequest} returns this
3931
+ */
3932
+ proto.pulumirpc.GeneratePackageRequest.prototype.clearExtrafilesMap = function() {
3933
+ this.getExtrafilesMap().clear();
3934
+ return this;};
3935
+
3936
+
3937
+
3938
+
3939
+
3940
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3941
+ /**
3942
+ * Creates an object representation of this proto.
3943
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3944
+ * Optional fields that are not set will be set to undefined.
3945
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3946
+ * For the list of reserved names please see:
3947
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3948
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3949
+ * JSPB instance for transitional soy proto support:
3950
+ * http://goto/soy-param-migration
3951
+ * @return {!Object}
3952
+ */
3953
+ proto.pulumirpc.GeneratePackageResponse.prototype.toObject = function(opt_includeInstance) {
3954
+ return proto.pulumirpc.GeneratePackageResponse.toObject(opt_includeInstance, this);
3955
+ };
3956
+
3957
+
3958
+ /**
3959
+ * Static version of the {@see toObject} method.
3960
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3961
+ * the JSPB instance for transitional soy proto support:
3962
+ * http://goto/soy-param-migration
3963
+ * @param {!proto.pulumirpc.GeneratePackageResponse} msg The msg instance to transform.
3964
+ * @return {!Object}
3965
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3966
+ */
3967
+ proto.pulumirpc.GeneratePackageResponse.toObject = function(includeInstance, msg) {
3968
+ var f, obj = {
3969
+
3970
+ };
3971
+
3972
+ if (includeInstance) {
3973
+ obj.$jspbMessageInstance = msg;
3974
+ }
3975
+ return obj;
3976
+ };
3977
+ }
3978
+
3979
+
3980
+ /**
3981
+ * Deserializes binary data (in protobuf wire format).
3982
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3983
+ * @return {!proto.pulumirpc.GeneratePackageResponse}
3984
+ */
3985
+ proto.pulumirpc.GeneratePackageResponse.deserializeBinary = function(bytes) {
3986
+ var reader = new jspb.BinaryReader(bytes);
3987
+ var msg = new proto.pulumirpc.GeneratePackageResponse;
3988
+ return proto.pulumirpc.GeneratePackageResponse.deserializeBinaryFromReader(msg, reader);
3989
+ };
3990
+
3991
+
3992
+ /**
3993
+ * Deserializes binary data (in protobuf wire format) from the
3994
+ * given reader into the given message object.
3995
+ * @param {!proto.pulumirpc.GeneratePackageResponse} msg The message object to deserialize into.
3996
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3997
+ * @return {!proto.pulumirpc.GeneratePackageResponse}
3998
+ */
3999
+ proto.pulumirpc.GeneratePackageResponse.deserializeBinaryFromReader = function(msg, reader) {
4000
+ while (reader.nextField()) {
4001
+ if (reader.isEndGroup()) {
4002
+ break;
4003
+ }
4004
+ var field = reader.getFieldNumber();
4005
+ switch (field) {
4006
+ default:
4007
+ reader.skipField();
4008
+ break;
4009
+ }
4010
+ }
4011
+ return msg;
4012
+ };
4013
+
4014
+
4015
+ /**
4016
+ * Serializes the message to binary data (in protobuf wire format).
4017
+ * @return {!Uint8Array}
4018
+ */
4019
+ proto.pulumirpc.GeneratePackageResponse.prototype.serializeBinary = function() {
4020
+ var writer = new jspb.BinaryWriter();
4021
+ proto.pulumirpc.GeneratePackageResponse.serializeBinaryToWriter(this, writer);
4022
+ return writer.getResultBuffer();
4023
+ };
4024
+
4025
+
4026
+ /**
4027
+ * Serializes the given message to binary data (in protobuf wire
4028
+ * format), writing to the given BinaryWriter.
4029
+ * @param {!proto.pulumirpc.GeneratePackageResponse} message
4030
+ * @param {!jspb.BinaryWriter} writer
4031
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4032
+ */
4033
+ proto.pulumirpc.GeneratePackageResponse.serializeBinaryToWriter = function(message, writer) {
4034
+ var f = undefined;
4035
+ };
4036
+
4037
+
2990
4038
  goog.object.extend(exports, proto.pulumirpc);