@pulumi/pulumi 3.42.0 → 3.43.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 (43) hide show
  1. package/automation/cmd.js +5 -1
  2. package/automation/cmd.js.map +1 -1
  3. package/automation/localWorkspace.js +3 -0
  4. package/automation/localWorkspace.js.map +1 -1
  5. package/automation/server.js +1 -2
  6. package/automation/server.js.map +1 -1
  7. package/cmd/run/run.js.map +1 -1
  8. package/config.js +26 -4
  9. package/config.js.map +1 -1
  10. package/package.json +1 -1
  11. package/proto/alias_grpc_pb.js +1 -0
  12. package/proto/alias_pb.js +631 -0
  13. package/proto/resource_grpc_pb.js +2 -1
  14. package/proto/resource_pb.js +67 -61
  15. package/resource.js +2 -6
  16. package/resource.js.map +1 -1
  17. package/runtime/closure/createClosure.js +12 -0
  18. package/runtime/closure/createClosure.js.map +1 -1
  19. package/runtime/closure/package.js +1 -1
  20. package/runtime/closure/package.js.map +1 -1
  21. package/runtime/config.js +14 -6
  22. package/runtime/config.js.map +1 -1
  23. package/runtime/debuggable.js +10 -11
  24. package/runtime/debuggable.js.map +1 -1
  25. package/runtime/resource.js +8 -9
  26. package/runtime/resource.js.map +1 -1
  27. package/runtime/settings.d.ts +4 -0
  28. package/runtime/settings.js +98 -112
  29. package/runtime/settings.js.map +1 -1
  30. package/runtime/stack.d.ts +2 -6
  31. package/runtime/stack.js +11 -9
  32. package/runtime/stack.js.map +1 -1
  33. package/runtime/state.d.ts +5 -0
  34. package/runtime/state.js +126 -0
  35. package/runtime/state.js.map +1 -0
  36. package/tests/automation/localWorkspace.spec.js +18 -24
  37. package/tests/automation/localWorkspace.spec.js.map +1 -1
  38. package/tests/resource.spec.js.map +1 -1
  39. package/tests/runtime/settings.spec.js +1 -6
  40. package/tests/runtime/settings.spec.js.map +1 -1
  41. package/utils.js +12 -0
  42. package/utils.js.map +1 -1
  43. package/version.js +1 -1
@@ -0,0 +1,631 @@
1
+ // source: pulumi/alias.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 = { pulumirpc: {} }, global = proto;
17
+
18
+ goog.exportSymbol('proto.pulumirpc.Alias', null, global);
19
+ goog.exportSymbol('proto.pulumirpc.Alias.AliasCase', null, global);
20
+ goog.exportSymbol('proto.pulumirpc.Alias.Spec', null, global);
21
+ goog.exportSymbol('proto.pulumirpc.Alias.Spec.ParentCase', null, global);
22
+ /**
23
+ * Generated by JsPbCodeGenerator.
24
+ * @param {Array=} opt_data Optional initial data array, typically from a
25
+ * server response, or constructed directly in Javascript. The array is used
26
+ * in place and becomes part of the constructed object. It is not cloned.
27
+ * If no data is provided, the constructed object will be empty, but still
28
+ * valid.
29
+ * @extends {jspb.Message}
30
+ * @constructor
31
+ */
32
+ proto.pulumirpc.Alias = function(opt_data) {
33
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.pulumirpc.Alias.oneofGroups_);
34
+ };
35
+ goog.inherits(proto.pulumirpc.Alias, jspb.Message);
36
+ if (goog.DEBUG && !COMPILED) {
37
+ /**
38
+ * @public
39
+ * @override
40
+ */
41
+ proto.pulumirpc.Alias.displayName = 'proto.pulumirpc.Alias';
42
+ }
43
+ /**
44
+ * Generated by JsPbCodeGenerator.
45
+ * @param {Array=} opt_data Optional initial data array, typically from a
46
+ * server response, or constructed directly in Javascript. The array is used
47
+ * in place and becomes part of the constructed object. It is not cloned.
48
+ * If no data is provided, the constructed object will be empty, but still
49
+ * valid.
50
+ * @extends {jspb.Message}
51
+ * @constructor
52
+ */
53
+ proto.pulumirpc.Alias.Spec = function(opt_data) {
54
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.pulumirpc.Alias.Spec.oneofGroups_);
55
+ };
56
+ goog.inherits(proto.pulumirpc.Alias.Spec, jspb.Message);
57
+ if (goog.DEBUG && !COMPILED) {
58
+ /**
59
+ * @public
60
+ * @override
61
+ */
62
+ proto.pulumirpc.Alias.Spec.displayName = 'proto.pulumirpc.Alias.Spec';
63
+ }
64
+
65
+ /**
66
+ * Oneof group definitions for this message. Each group defines the field
67
+ * numbers belonging to that group. When of these fields' value is set, all
68
+ * other fields in the group are cleared. During deserialization, if multiple
69
+ * fields are encountered for a group, only the last value seen will be kept.
70
+ * @private {!Array<!Array<number>>}
71
+ * @const
72
+ */
73
+ proto.pulumirpc.Alias.oneofGroups_ = [[1,2]];
74
+
75
+ /**
76
+ * @enum {number}
77
+ */
78
+ proto.pulumirpc.Alias.AliasCase = {
79
+ ALIAS_NOT_SET: 0,
80
+ URN: 1,
81
+ SPEC: 2
82
+ };
83
+
84
+ /**
85
+ * @return {proto.pulumirpc.Alias.AliasCase}
86
+ */
87
+ proto.pulumirpc.Alias.prototype.getAliasCase = function() {
88
+ return /** @type {proto.pulumirpc.Alias.AliasCase} */(jspb.Message.computeOneofCase(this, proto.pulumirpc.Alias.oneofGroups_[0]));
89
+ };
90
+
91
+
92
+
93
+ if (jspb.Message.GENERATE_TO_OBJECT) {
94
+ /**
95
+ * Creates an object representation of this proto.
96
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
97
+ * Optional fields that are not set will be set to undefined.
98
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
99
+ * For the list of reserved names please see:
100
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
101
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
102
+ * JSPB instance for transitional soy proto support:
103
+ * http://goto/soy-param-migration
104
+ * @return {!Object}
105
+ */
106
+ proto.pulumirpc.Alias.prototype.toObject = function(opt_includeInstance) {
107
+ return proto.pulumirpc.Alias.toObject(opt_includeInstance, this);
108
+ };
109
+
110
+
111
+ /**
112
+ * Static version of the {@see toObject} method.
113
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
114
+ * the JSPB instance for transitional soy proto support:
115
+ * http://goto/soy-param-migration
116
+ * @param {!proto.pulumirpc.Alias} msg The msg instance to transform.
117
+ * @return {!Object}
118
+ * @suppress {unusedLocalVariables} f is only used for nested messages
119
+ */
120
+ proto.pulumirpc.Alias.toObject = function(includeInstance, msg) {
121
+ var f, obj = {
122
+ urn: jspb.Message.getFieldWithDefault(msg, 1, ""),
123
+ spec: (f = msg.getSpec()) && proto.pulumirpc.Alias.Spec.toObject(includeInstance, f)
124
+ };
125
+
126
+ if (includeInstance) {
127
+ obj.$jspbMessageInstance = msg;
128
+ }
129
+ return obj;
130
+ };
131
+ }
132
+
133
+
134
+ /**
135
+ * Deserializes binary data (in protobuf wire format).
136
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
137
+ * @return {!proto.pulumirpc.Alias}
138
+ */
139
+ proto.pulumirpc.Alias.deserializeBinary = function(bytes) {
140
+ var reader = new jspb.BinaryReader(bytes);
141
+ var msg = new proto.pulumirpc.Alias;
142
+ return proto.pulumirpc.Alias.deserializeBinaryFromReader(msg, reader);
143
+ };
144
+
145
+
146
+ /**
147
+ * Deserializes binary data (in protobuf wire format) from the
148
+ * given reader into the given message object.
149
+ * @param {!proto.pulumirpc.Alias} msg The message object to deserialize into.
150
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
151
+ * @return {!proto.pulumirpc.Alias}
152
+ */
153
+ proto.pulumirpc.Alias.deserializeBinaryFromReader = function(msg, reader) {
154
+ while (reader.nextField()) {
155
+ if (reader.isEndGroup()) {
156
+ break;
157
+ }
158
+ var field = reader.getFieldNumber();
159
+ switch (field) {
160
+ case 1:
161
+ var value = /** @type {string} */ (reader.readString());
162
+ msg.setUrn(value);
163
+ break;
164
+ case 2:
165
+ var value = new proto.pulumirpc.Alias.Spec;
166
+ reader.readMessage(value,proto.pulumirpc.Alias.Spec.deserializeBinaryFromReader);
167
+ msg.setSpec(value);
168
+ break;
169
+ default:
170
+ reader.skipField();
171
+ break;
172
+ }
173
+ }
174
+ return msg;
175
+ };
176
+
177
+
178
+ /**
179
+ * Serializes the message to binary data (in protobuf wire format).
180
+ * @return {!Uint8Array}
181
+ */
182
+ proto.pulumirpc.Alias.prototype.serializeBinary = function() {
183
+ var writer = new jspb.BinaryWriter();
184
+ proto.pulumirpc.Alias.serializeBinaryToWriter(this, writer);
185
+ return writer.getResultBuffer();
186
+ };
187
+
188
+
189
+ /**
190
+ * Serializes the given message to binary data (in protobuf wire
191
+ * format), writing to the given BinaryWriter.
192
+ * @param {!proto.pulumirpc.Alias} message
193
+ * @param {!jspb.BinaryWriter} writer
194
+ * @suppress {unusedLocalVariables} f is only used for nested messages
195
+ */
196
+ proto.pulumirpc.Alias.serializeBinaryToWriter = function(message, writer) {
197
+ var f = undefined;
198
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
199
+ if (f != null) {
200
+ writer.writeString(
201
+ 1,
202
+ f
203
+ );
204
+ }
205
+ f = message.getSpec();
206
+ if (f != null) {
207
+ writer.writeMessage(
208
+ 2,
209
+ f,
210
+ proto.pulumirpc.Alias.Spec.serializeBinaryToWriter
211
+ );
212
+ }
213
+ };
214
+
215
+
216
+
217
+ /**
218
+ * Oneof group definitions for this message. Each group defines the field
219
+ * numbers belonging to that group. When of these fields' value is set, all
220
+ * other fields in the group are cleared. During deserialization, if multiple
221
+ * fields are encountered for a group, only the last value seen will be kept.
222
+ * @private {!Array<!Array<number>>}
223
+ * @const
224
+ */
225
+ proto.pulumirpc.Alias.Spec.oneofGroups_ = [[5,6]];
226
+
227
+ /**
228
+ * @enum {number}
229
+ */
230
+ proto.pulumirpc.Alias.Spec.ParentCase = {
231
+ PARENT_NOT_SET: 0,
232
+ PARENTURN: 5,
233
+ NOPARENT: 6
234
+ };
235
+
236
+ /**
237
+ * @return {proto.pulumirpc.Alias.Spec.ParentCase}
238
+ */
239
+ proto.pulumirpc.Alias.Spec.prototype.getParentCase = function() {
240
+ return /** @type {proto.pulumirpc.Alias.Spec.ParentCase} */(jspb.Message.computeOneofCase(this, proto.pulumirpc.Alias.Spec.oneofGroups_[0]));
241
+ };
242
+
243
+
244
+
245
+ if (jspb.Message.GENERATE_TO_OBJECT) {
246
+ /**
247
+ * Creates an object representation of this proto.
248
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
249
+ * Optional fields that are not set will be set to undefined.
250
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
251
+ * For the list of reserved names please see:
252
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
253
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
254
+ * JSPB instance for transitional soy proto support:
255
+ * http://goto/soy-param-migration
256
+ * @return {!Object}
257
+ */
258
+ proto.pulumirpc.Alias.Spec.prototype.toObject = function(opt_includeInstance) {
259
+ return proto.pulumirpc.Alias.Spec.toObject(opt_includeInstance, this);
260
+ };
261
+
262
+
263
+ /**
264
+ * Static version of the {@see toObject} method.
265
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
266
+ * the JSPB instance for transitional soy proto support:
267
+ * http://goto/soy-param-migration
268
+ * @param {!proto.pulumirpc.Alias.Spec} msg The msg instance to transform.
269
+ * @return {!Object}
270
+ * @suppress {unusedLocalVariables} f is only used for nested messages
271
+ */
272
+ proto.pulumirpc.Alias.Spec.toObject = function(includeInstance, msg) {
273
+ var f, obj = {
274
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
275
+ type: jspb.Message.getFieldWithDefault(msg, 2, ""),
276
+ stack: jspb.Message.getFieldWithDefault(msg, 3, ""),
277
+ project: jspb.Message.getFieldWithDefault(msg, 4, ""),
278
+ parenturn: jspb.Message.getFieldWithDefault(msg, 5, ""),
279
+ noparent: jspb.Message.getBooleanFieldWithDefault(msg, 6, false)
280
+ };
281
+
282
+ if (includeInstance) {
283
+ obj.$jspbMessageInstance = msg;
284
+ }
285
+ return obj;
286
+ };
287
+ }
288
+
289
+
290
+ /**
291
+ * Deserializes binary data (in protobuf wire format).
292
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
293
+ * @return {!proto.pulumirpc.Alias.Spec}
294
+ */
295
+ proto.pulumirpc.Alias.Spec.deserializeBinary = function(bytes) {
296
+ var reader = new jspb.BinaryReader(bytes);
297
+ var msg = new proto.pulumirpc.Alias.Spec;
298
+ return proto.pulumirpc.Alias.Spec.deserializeBinaryFromReader(msg, reader);
299
+ };
300
+
301
+
302
+ /**
303
+ * Deserializes binary data (in protobuf wire format) from the
304
+ * given reader into the given message object.
305
+ * @param {!proto.pulumirpc.Alias.Spec} msg The message object to deserialize into.
306
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
307
+ * @return {!proto.pulumirpc.Alias.Spec}
308
+ */
309
+ proto.pulumirpc.Alias.Spec.deserializeBinaryFromReader = function(msg, reader) {
310
+ while (reader.nextField()) {
311
+ if (reader.isEndGroup()) {
312
+ break;
313
+ }
314
+ var field = reader.getFieldNumber();
315
+ switch (field) {
316
+ case 1:
317
+ var value = /** @type {string} */ (reader.readString());
318
+ msg.setName(value);
319
+ break;
320
+ case 2:
321
+ var value = /** @type {string} */ (reader.readString());
322
+ msg.setType(value);
323
+ break;
324
+ case 3:
325
+ var value = /** @type {string} */ (reader.readString());
326
+ msg.setStack(value);
327
+ break;
328
+ case 4:
329
+ var value = /** @type {string} */ (reader.readString());
330
+ msg.setProject(value);
331
+ break;
332
+ case 5:
333
+ var value = /** @type {string} */ (reader.readString());
334
+ msg.setParenturn(value);
335
+ break;
336
+ case 6:
337
+ var value = /** @type {boolean} */ (reader.readBool());
338
+ msg.setNoparent(value);
339
+ break;
340
+ default:
341
+ reader.skipField();
342
+ break;
343
+ }
344
+ }
345
+ return msg;
346
+ };
347
+
348
+
349
+ /**
350
+ * Serializes the message to binary data (in protobuf wire format).
351
+ * @return {!Uint8Array}
352
+ */
353
+ proto.pulumirpc.Alias.Spec.prototype.serializeBinary = function() {
354
+ var writer = new jspb.BinaryWriter();
355
+ proto.pulumirpc.Alias.Spec.serializeBinaryToWriter(this, writer);
356
+ return writer.getResultBuffer();
357
+ };
358
+
359
+
360
+ /**
361
+ * Serializes the given message to binary data (in protobuf wire
362
+ * format), writing to the given BinaryWriter.
363
+ * @param {!proto.pulumirpc.Alias.Spec} message
364
+ * @param {!jspb.BinaryWriter} writer
365
+ * @suppress {unusedLocalVariables} f is only used for nested messages
366
+ */
367
+ proto.pulumirpc.Alias.Spec.serializeBinaryToWriter = function(message, writer) {
368
+ var f = undefined;
369
+ f = message.getName();
370
+ if (f.length > 0) {
371
+ writer.writeString(
372
+ 1,
373
+ f
374
+ );
375
+ }
376
+ f = message.getType();
377
+ if (f.length > 0) {
378
+ writer.writeString(
379
+ 2,
380
+ f
381
+ );
382
+ }
383
+ f = message.getStack();
384
+ if (f.length > 0) {
385
+ writer.writeString(
386
+ 3,
387
+ f
388
+ );
389
+ }
390
+ f = message.getProject();
391
+ if (f.length > 0) {
392
+ writer.writeString(
393
+ 4,
394
+ f
395
+ );
396
+ }
397
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
398
+ if (f != null) {
399
+ writer.writeString(
400
+ 5,
401
+ f
402
+ );
403
+ }
404
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 6));
405
+ if (f != null) {
406
+ writer.writeBool(
407
+ 6,
408
+ f
409
+ );
410
+ }
411
+ };
412
+
413
+
414
+ /**
415
+ * optional string name = 1;
416
+ * @return {string}
417
+ */
418
+ proto.pulumirpc.Alias.Spec.prototype.getName = function() {
419
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
420
+ };
421
+
422
+
423
+ /**
424
+ * @param {string} value
425
+ * @return {!proto.pulumirpc.Alias.Spec} returns this
426
+ */
427
+ proto.pulumirpc.Alias.Spec.prototype.setName = function(value) {
428
+ return jspb.Message.setProto3StringField(this, 1, value);
429
+ };
430
+
431
+
432
+ /**
433
+ * optional string type = 2;
434
+ * @return {string}
435
+ */
436
+ proto.pulumirpc.Alias.Spec.prototype.getType = function() {
437
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
438
+ };
439
+
440
+
441
+ /**
442
+ * @param {string} value
443
+ * @return {!proto.pulumirpc.Alias.Spec} returns this
444
+ */
445
+ proto.pulumirpc.Alias.Spec.prototype.setType = function(value) {
446
+ return jspb.Message.setProto3StringField(this, 2, value);
447
+ };
448
+
449
+
450
+ /**
451
+ * optional string stack = 3;
452
+ * @return {string}
453
+ */
454
+ proto.pulumirpc.Alias.Spec.prototype.getStack = function() {
455
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
456
+ };
457
+
458
+
459
+ /**
460
+ * @param {string} value
461
+ * @return {!proto.pulumirpc.Alias.Spec} returns this
462
+ */
463
+ proto.pulumirpc.Alias.Spec.prototype.setStack = function(value) {
464
+ return jspb.Message.setProto3StringField(this, 3, value);
465
+ };
466
+
467
+
468
+ /**
469
+ * optional string project = 4;
470
+ * @return {string}
471
+ */
472
+ proto.pulumirpc.Alias.Spec.prototype.getProject = function() {
473
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
474
+ };
475
+
476
+
477
+ /**
478
+ * @param {string} value
479
+ * @return {!proto.pulumirpc.Alias.Spec} returns this
480
+ */
481
+ proto.pulumirpc.Alias.Spec.prototype.setProject = function(value) {
482
+ return jspb.Message.setProto3StringField(this, 4, value);
483
+ };
484
+
485
+
486
+ /**
487
+ * optional string parentUrn = 5;
488
+ * @return {string}
489
+ */
490
+ proto.pulumirpc.Alias.Spec.prototype.getParenturn = function() {
491
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
492
+ };
493
+
494
+
495
+ /**
496
+ * @param {string} value
497
+ * @return {!proto.pulumirpc.Alias.Spec} returns this
498
+ */
499
+ proto.pulumirpc.Alias.Spec.prototype.setParenturn = function(value) {
500
+ return jspb.Message.setOneofField(this, 5, proto.pulumirpc.Alias.Spec.oneofGroups_[0], value);
501
+ };
502
+
503
+
504
+ /**
505
+ * Clears the field making it undefined.
506
+ * @return {!proto.pulumirpc.Alias.Spec} returns this
507
+ */
508
+ proto.pulumirpc.Alias.Spec.prototype.clearParenturn = function() {
509
+ return jspb.Message.setOneofField(this, 5, proto.pulumirpc.Alias.Spec.oneofGroups_[0], undefined);
510
+ };
511
+
512
+
513
+ /**
514
+ * Returns whether this field is set.
515
+ * @return {boolean}
516
+ */
517
+ proto.pulumirpc.Alias.Spec.prototype.hasParenturn = function() {
518
+ return jspb.Message.getField(this, 5) != null;
519
+ };
520
+
521
+
522
+ /**
523
+ * optional bool noParent = 6;
524
+ * @return {boolean}
525
+ */
526
+ proto.pulumirpc.Alias.Spec.prototype.getNoparent = function() {
527
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
528
+ };
529
+
530
+
531
+ /**
532
+ * @param {boolean} value
533
+ * @return {!proto.pulumirpc.Alias.Spec} returns this
534
+ */
535
+ proto.pulumirpc.Alias.Spec.prototype.setNoparent = function(value) {
536
+ return jspb.Message.setOneofField(this, 6, proto.pulumirpc.Alias.Spec.oneofGroups_[0], value);
537
+ };
538
+
539
+
540
+ /**
541
+ * Clears the field making it undefined.
542
+ * @return {!proto.pulumirpc.Alias.Spec} returns this
543
+ */
544
+ proto.pulumirpc.Alias.Spec.prototype.clearNoparent = function() {
545
+ return jspb.Message.setOneofField(this, 6, proto.pulumirpc.Alias.Spec.oneofGroups_[0], undefined);
546
+ };
547
+
548
+
549
+ /**
550
+ * Returns whether this field is set.
551
+ * @return {boolean}
552
+ */
553
+ proto.pulumirpc.Alias.Spec.prototype.hasNoparent = function() {
554
+ return jspb.Message.getField(this, 6) != null;
555
+ };
556
+
557
+
558
+ /**
559
+ * optional string urn = 1;
560
+ * @return {string}
561
+ */
562
+ proto.pulumirpc.Alias.prototype.getUrn = function() {
563
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
564
+ };
565
+
566
+
567
+ /**
568
+ * @param {string} value
569
+ * @return {!proto.pulumirpc.Alias} returns this
570
+ */
571
+ proto.pulumirpc.Alias.prototype.setUrn = function(value) {
572
+ return jspb.Message.setOneofField(this, 1, proto.pulumirpc.Alias.oneofGroups_[0], value);
573
+ };
574
+
575
+
576
+ /**
577
+ * Clears the field making it undefined.
578
+ * @return {!proto.pulumirpc.Alias} returns this
579
+ */
580
+ proto.pulumirpc.Alias.prototype.clearUrn = function() {
581
+ return jspb.Message.setOneofField(this, 1, proto.pulumirpc.Alias.oneofGroups_[0], undefined);
582
+ };
583
+
584
+
585
+ /**
586
+ * Returns whether this field is set.
587
+ * @return {boolean}
588
+ */
589
+ proto.pulumirpc.Alias.prototype.hasUrn = function() {
590
+ return jspb.Message.getField(this, 1) != null;
591
+ };
592
+
593
+
594
+ /**
595
+ * optional Spec spec = 2;
596
+ * @return {?proto.pulumirpc.Alias.Spec}
597
+ */
598
+ proto.pulumirpc.Alias.prototype.getSpec = function() {
599
+ return /** @type{?proto.pulumirpc.Alias.Spec} */ (
600
+ jspb.Message.getWrapperField(this, proto.pulumirpc.Alias.Spec, 2));
601
+ };
602
+
603
+
604
+ /**
605
+ * @param {?proto.pulumirpc.Alias.Spec|undefined} value
606
+ * @return {!proto.pulumirpc.Alias} returns this
607
+ */
608
+ proto.pulumirpc.Alias.prototype.setSpec = function(value) {
609
+ return jspb.Message.setOneofWrapperField(this, 2, proto.pulumirpc.Alias.oneofGroups_[0], value);
610
+ };
611
+
612
+
613
+ /**
614
+ * Clears the message field making it undefined.
615
+ * @return {!proto.pulumirpc.Alias} returns this
616
+ */
617
+ proto.pulumirpc.Alias.prototype.clearSpec = function() {
618
+ return this.setSpec(undefined);
619
+ };
620
+
621
+
622
+ /**
623
+ * Returns whether this field is set.
624
+ * @return {boolean}
625
+ */
626
+ proto.pulumirpc.Alias.prototype.hasSpec = function() {
627
+ return jspb.Message.getField(this, 2) != null;
628
+ };
629
+
630
+
631
+ goog.object.extend(exports, proto.pulumirpc);
@@ -1,7 +1,7 @@
1
1
  // GENERATED CODE -- DO NOT EDIT!
2
2
 
3
3
  // Original file comments:
4
- // Copyright 2016-2018, Pulumi Corporation.
4
+ // Copyright 2016-2022, Pulumi Corporation.
5
5
  //
6
6
  // Licensed under the Apache License, Version 2.0 (the "License");
7
7
  // you may not use this file except in compliance with the License.
@@ -21,6 +21,7 @@ var pulumi_resource_pb = require('./resource_pb.js');
21
21
  var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
22
22
  var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js');
23
23
  var pulumi_provider_pb = require('./provider_pb.js');
24
+ var pulumi_alias_pb = require('./alias_pb.js');
24
25
 
25
26
  function serialize_google_protobuf_Empty(arg) {
26
27
  if (!(arg instanceof google_protobuf_empty_pb.Empty)) {