@pulumi/pulumi 3.179.0-alpha.x38b190c → 3.179.0-alpha.xb7b0347

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.
@@ -32,18 +32,14 @@ goog.exportSymbol('proto.pulumirpc.ReadResourceRequest', null, global);
32
32
  goog.exportSymbol('proto.pulumirpc.ReadResourceResponse', null, global);
33
33
  goog.exportSymbol('proto.pulumirpc.RegisterPackageRequest', null, global);
34
34
  goog.exportSymbol('proto.pulumirpc.RegisterPackageResponse', null, global);
35
- goog.exportSymbol('proto.pulumirpc.RegisterResourceHookRequest', null, global);
36
35
  goog.exportSymbol('proto.pulumirpc.RegisterResourceOutputsRequest', null, global);
37
36
  goog.exportSymbol('proto.pulumirpc.RegisterResourceRequest', null, global);
38
37
  goog.exportSymbol('proto.pulumirpc.RegisterResourceRequest.CustomTimeouts', null, global);
39
38
  goog.exportSymbol('proto.pulumirpc.RegisterResourceRequest.PropertyDependencies', null, global);
40
- goog.exportSymbol('proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding', null, global);
41
39
  goog.exportSymbol('proto.pulumirpc.RegisterResourceResponse', null, global);
42
40
  goog.exportSymbol('proto.pulumirpc.RegisterResourceResponse.PropertyDependencies', null, global);
43
41
  goog.exportSymbol('proto.pulumirpc.ResourceCallRequest', null, global);
44
42
  goog.exportSymbol('proto.pulumirpc.ResourceCallRequest.ArgumentDependencies', null, global);
45
- goog.exportSymbol('proto.pulumirpc.ResourceHookRequest', null, global);
46
- goog.exportSymbol('proto.pulumirpc.ResourceHookResponse', null, global);
47
43
  goog.exportSymbol('proto.pulumirpc.ResourceInvokeRequest', null, global);
48
44
  goog.exportSymbol('proto.pulumirpc.Result', null, global);
49
45
  goog.exportSymbol('proto.pulumirpc.SupportsFeatureRequest', null, global);
@@ -201,27 +197,6 @@ if (goog.DEBUG && !COMPILED) {
201
197
  */
202
198
  proto.pulumirpc.RegisterResourceRequest.CustomTimeouts.displayName = 'proto.pulumirpc.RegisterResourceRequest.CustomTimeouts';
203
199
  }
204
- /**
205
- * Generated by JsPbCodeGenerator.
206
- * @param {Array=} opt_data Optional initial data array, typically from a
207
- * server response, or constructed directly in Javascript. The array is used
208
- * in place and becomes part of the constructed object. It is not cloned.
209
- * If no data is provided, the constructed object will be empty, but still
210
- * valid.
211
- * @extends {jspb.Message}
212
- * @constructor
213
- */
214
- proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding = function(opt_data) {
215
- jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.repeatedFields_, null);
216
- };
217
- goog.inherits(proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding, jspb.Message);
218
- if (goog.DEBUG && !COMPILED) {
219
- /**
220
- * @public
221
- * @override
222
- */
223
- proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.displayName = 'proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding';
224
- }
225
200
  /**
226
201
  * Generated by JsPbCodeGenerator.
227
202
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -474,48 +449,6 @@ if (goog.DEBUG && !COMPILED) {
474
449
  */
475
450
  proto.pulumirpc.TransformInvokeOptions.displayName = 'proto.pulumirpc.TransformInvokeOptions';
476
451
  }
477
- /**
478
- * Generated by JsPbCodeGenerator.
479
- * @param {Array=} opt_data Optional initial data array, typically from a
480
- * server response, or constructed directly in Javascript. The array is used
481
- * in place and becomes part of the constructed object. It is not cloned.
482
- * If no data is provided, the constructed object will be empty, but still
483
- * valid.
484
- * @extends {jspb.Message}
485
- * @constructor
486
- */
487
- proto.pulumirpc.ResourceHookRequest = function(opt_data) {
488
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
489
- };
490
- goog.inherits(proto.pulumirpc.ResourceHookRequest, jspb.Message);
491
- if (goog.DEBUG && !COMPILED) {
492
- /**
493
- * @public
494
- * @override
495
- */
496
- proto.pulumirpc.ResourceHookRequest.displayName = 'proto.pulumirpc.ResourceHookRequest';
497
- }
498
- /**
499
- * Generated by JsPbCodeGenerator.
500
- * @param {Array=} opt_data Optional initial data array, typically from a
501
- * server response, or constructed directly in Javascript. The array is used
502
- * in place and becomes part of the constructed object. It is not cloned.
503
- * If no data is provided, the constructed object will be empty, but still
504
- * valid.
505
- * @extends {jspb.Message}
506
- * @constructor
507
- */
508
- proto.pulumirpc.ResourceHookResponse = function(opt_data) {
509
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
510
- };
511
- goog.inherits(proto.pulumirpc.ResourceHookResponse, jspb.Message);
512
- if (goog.DEBUG && !COMPILED) {
513
- /**
514
- * @public
515
- * @override
516
- */
517
- proto.pulumirpc.ResourceHookResponse.displayName = 'proto.pulumirpc.ResourceHookResponse';
518
- }
519
452
  /**
520
453
  * Generated by JsPbCodeGenerator.
521
454
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -579,27 +512,6 @@ if (goog.DEBUG && !COMPILED) {
579
512
  */
580
513
  proto.pulumirpc.Parameterization.displayName = 'proto.pulumirpc.Parameterization';
581
514
  }
582
- /**
583
- * Generated by JsPbCodeGenerator.
584
- * @param {Array=} opt_data Optional initial data array, typically from a
585
- * server response, or constructed directly in Javascript. The array is used
586
- * in place and becomes part of the constructed object. It is not cloned.
587
- * If no data is provided, the constructed object will be empty, but still
588
- * valid.
589
- * @extends {jspb.Message}
590
- * @constructor
591
- */
592
- proto.pulumirpc.RegisterResourceHookRequest = function(opt_data) {
593
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
594
- };
595
- goog.inherits(proto.pulumirpc.RegisterResourceHookRequest, jspb.Message);
596
- if (goog.DEBUG && !COMPILED) {
597
- /**
598
- * @public
599
- * @override
600
- */
601
- proto.pulumirpc.RegisterResourceHookRequest.displayName = 'proto.pulumirpc.RegisterResourceHookRequest';
602
- }
603
515
 
604
516
 
605
517
 
@@ -1754,8 +1666,7 @@ proto.pulumirpc.RegisterResourceRequest.toObject = function(includeInstance, msg
1754
1666
  transformsList: jspb.Message.toObjectList(msg.getTransformsList(),
1755
1667
  pulumi_callback_pb.Callback.toObject, includeInstance),
1756
1668
  supportsresultreporting: jspb.Message.getBooleanFieldWithDefault(msg, 32, false),
1757
- packageref: jspb.Message.getFieldWithDefault(msg, 33, ""),
1758
- hooks: (f = msg.getHooks()) && proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.toObject(includeInstance, f)
1669
+ packageref: jspb.Message.getFieldWithDefault(msg, 33, "")
1759
1670
  };
1760
1671
 
1761
1672
  if (includeInstance) {
@@ -1935,11 +1846,6 @@ proto.pulumirpc.RegisterResourceRequest.deserializeBinaryFromReader = function(m
1935
1846
  var value = /** @type {string} */ (reader.readString());
1936
1847
  msg.setPackageref(value);
1937
1848
  break;
1938
- case 34:
1939
- var value = new proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding;
1940
- reader.readMessage(value,proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.deserializeBinaryFromReader);
1941
- msg.setHooks(value);
1942
- break;
1943
1849
  default:
1944
1850
  reader.skipField();
1945
1851
  break;
@@ -2196,14 +2102,6 @@ proto.pulumirpc.RegisterResourceRequest.serializeBinaryToWriter = function(messa
2196
2102
  f
2197
2103
  );
2198
2104
  }
2199
- f = message.getHooks();
2200
- if (f != null) {
2201
- writer.writeMessage(
2202
- 34,
2203
- f,
2204
- proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.serializeBinaryToWriter
2205
- );
2206
- }
2207
2105
  };
2208
2106
 
2209
2107
 
@@ -2553,522 +2451,121 @@ proto.pulumirpc.RegisterResourceRequest.CustomTimeouts.prototype.setDelete = fun
2553
2451
  };
2554
2452
 
2555
2453
 
2556
-
2557
2454
  /**
2558
- * List of repeated fields within this message type.
2559
- * @private {!Array<number>}
2560
- * @const
2455
+ * optional string type = 1;
2456
+ * @return {string}
2561
2457
  */
2562
- proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.repeatedFields_ = [1,2,3,4,5,6];
2563
-
2458
+ proto.pulumirpc.RegisterResourceRequest.prototype.getType = function() {
2459
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2460
+ };
2564
2461
 
2565
2462
 
2566
- if (jspb.Message.GENERATE_TO_OBJECT) {
2567
2463
  /**
2568
- * Creates an object representation of this proto.
2569
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2570
- * Optional fields that are not set will be set to undefined.
2571
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2572
- * For the list of reserved names please see:
2573
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2574
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2575
- * JSPB instance for transitional soy proto support:
2576
- * http://goto/soy-param-migration
2577
- * @return {!Object}
2464
+ * @param {string} value
2465
+ * @return {!proto.pulumirpc.RegisterResourceRequest} returns this
2578
2466
  */
2579
- proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.prototype.toObject = function(opt_includeInstance) {
2580
- return proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.toObject(opt_includeInstance, this);
2467
+ proto.pulumirpc.RegisterResourceRequest.prototype.setType = function(value) {
2468
+ return jspb.Message.setProto3StringField(this, 1, value);
2581
2469
  };
2582
2470
 
2583
2471
 
2584
2472
  /**
2585
- * Static version of the {@see toObject} method.
2586
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2587
- * the JSPB instance for transitional soy proto support:
2588
- * http://goto/soy-param-migration
2589
- * @param {!proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding} msg The msg instance to transform.
2590
- * @return {!Object}
2591
- * @suppress {unusedLocalVariables} f is only used for nested messages
2473
+ * optional string name = 2;
2474
+ * @return {string}
2592
2475
  */
2593
- proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.toObject = function(includeInstance, msg) {
2594
- var f, obj = {
2595
- beforeCreateList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
2596
- afterCreateList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
2597
- beforeUpdateList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
2598
- afterUpdateList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
2599
- beforeDeleteList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
2600
- afterDeleteList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f
2601
- };
2602
-
2603
- if (includeInstance) {
2604
- obj.$jspbMessageInstance = msg;
2605
- }
2606
- return obj;
2476
+ proto.pulumirpc.RegisterResourceRequest.prototype.getName = function() {
2477
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2607
2478
  };
2608
- }
2609
2479
 
2610
2480
 
2611
2481
  /**
2612
- * Deserializes binary data (in protobuf wire format).
2613
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2614
- * @return {!proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding}
2482
+ * @param {string} value
2483
+ * @return {!proto.pulumirpc.RegisterResourceRequest} returns this
2615
2484
  */
2616
- proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.deserializeBinary = function(bytes) {
2617
- var reader = new jspb.BinaryReader(bytes);
2618
- var msg = new proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding;
2619
- return proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.deserializeBinaryFromReader(msg, reader);
2485
+ proto.pulumirpc.RegisterResourceRequest.prototype.setName = function(value) {
2486
+ return jspb.Message.setProto3StringField(this, 2, value);
2620
2487
  };
2621
2488
 
2622
2489
 
2623
2490
  /**
2624
- * Deserializes binary data (in protobuf wire format) from the
2625
- * given reader into the given message object.
2626
- * @param {!proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding} msg The message object to deserialize into.
2627
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2628
- * @return {!proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding}
2491
+ * optional string parent = 3;
2492
+ * @return {string}
2629
2493
  */
2630
- proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.deserializeBinaryFromReader = function(msg, reader) {
2631
- while (reader.nextField()) {
2632
- if (reader.isEndGroup()) {
2633
- break;
2634
- }
2635
- var field = reader.getFieldNumber();
2636
- switch (field) {
2637
- case 1:
2638
- var value = /** @type {string} */ (reader.readString());
2639
- msg.addBeforeCreate(value);
2640
- break;
2641
- case 2:
2642
- var value = /** @type {string} */ (reader.readString());
2643
- msg.addAfterCreate(value);
2644
- break;
2645
- case 3:
2646
- var value = /** @type {string} */ (reader.readString());
2647
- msg.addBeforeUpdate(value);
2648
- break;
2649
- case 4:
2650
- var value = /** @type {string} */ (reader.readString());
2651
- msg.addAfterUpdate(value);
2652
- break;
2653
- case 5:
2654
- var value = /** @type {string} */ (reader.readString());
2655
- msg.addBeforeDelete(value);
2656
- break;
2657
- case 6:
2658
- var value = /** @type {string} */ (reader.readString());
2659
- msg.addAfterDelete(value);
2660
- break;
2661
- default:
2662
- reader.skipField();
2663
- break;
2664
- }
2665
- }
2666
- return msg;
2494
+ proto.pulumirpc.RegisterResourceRequest.prototype.getParent = function() {
2495
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2667
2496
  };
2668
2497
 
2669
2498
 
2670
2499
  /**
2671
- * Serializes the message to binary data (in protobuf wire format).
2672
- * @return {!Uint8Array}
2500
+ * @param {string} value
2501
+ * @return {!proto.pulumirpc.RegisterResourceRequest} returns this
2673
2502
  */
2674
- proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.prototype.serializeBinary = function() {
2675
- var writer = new jspb.BinaryWriter();
2676
- proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.serializeBinaryToWriter(this, writer);
2677
- return writer.getResultBuffer();
2503
+ proto.pulumirpc.RegisterResourceRequest.prototype.setParent = function(value) {
2504
+ return jspb.Message.setProto3StringField(this, 3, value);
2678
2505
  };
2679
2506
 
2680
2507
 
2681
2508
  /**
2682
- * Serializes the given message to binary data (in protobuf wire
2683
- * format), writing to the given BinaryWriter.
2684
- * @param {!proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding} message
2685
- * @param {!jspb.BinaryWriter} writer
2686
- * @suppress {unusedLocalVariables} f is only used for nested messages
2509
+ * optional bool custom = 4;
2510
+ * @return {boolean}
2687
2511
  */
2688
- proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.serializeBinaryToWriter = function(message, writer) {
2689
- var f = undefined;
2690
- f = message.getBeforeCreateList();
2691
- if (f.length > 0) {
2692
- writer.writeRepeatedString(
2693
- 1,
2694
- f
2695
- );
2696
- }
2697
- f = message.getAfterCreateList();
2698
- if (f.length > 0) {
2699
- writer.writeRepeatedString(
2700
- 2,
2701
- f
2702
- );
2703
- }
2704
- f = message.getBeforeUpdateList();
2705
- if (f.length > 0) {
2706
- writer.writeRepeatedString(
2707
- 3,
2708
- f
2709
- );
2710
- }
2711
- f = message.getAfterUpdateList();
2712
- if (f.length > 0) {
2713
- writer.writeRepeatedString(
2714
- 4,
2715
- f
2716
- );
2717
- }
2718
- f = message.getBeforeDeleteList();
2719
- if (f.length > 0) {
2720
- writer.writeRepeatedString(
2721
- 5,
2722
- f
2723
- );
2724
- }
2725
- f = message.getAfterDeleteList();
2726
- if (f.length > 0) {
2727
- writer.writeRepeatedString(
2728
- 6,
2729
- f
2730
- );
2731
- }
2512
+ proto.pulumirpc.RegisterResourceRequest.prototype.getCustom = function() {
2513
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
2732
2514
  };
2733
2515
 
2734
2516
 
2735
2517
  /**
2736
- * repeated string before_create = 1;
2737
- * @return {!Array<string>}
2518
+ * @param {boolean} value
2519
+ * @return {!proto.pulumirpc.RegisterResourceRequest} returns this
2738
2520
  */
2739
- proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.prototype.getBeforeCreateList = function() {
2740
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
2521
+ proto.pulumirpc.RegisterResourceRequest.prototype.setCustom = function(value) {
2522
+ return jspb.Message.setProto3BooleanField(this, 4, value);
2741
2523
  };
2742
2524
 
2743
2525
 
2744
2526
  /**
2745
- * @param {!Array<string>} value
2746
- * @return {!proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding} returns this
2527
+ * optional google.protobuf.Struct object = 5;
2528
+ * @return {?proto.google.protobuf.Struct}
2747
2529
  */
2748
- proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.prototype.setBeforeCreateList = function(value) {
2749
- return jspb.Message.setField(this, 1, value || []);
2530
+ proto.pulumirpc.RegisterResourceRequest.prototype.getObject = function() {
2531
+ return /** @type{?proto.google.protobuf.Struct} */ (
2532
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 5));
2750
2533
  };
2751
2534
 
2752
2535
 
2753
2536
  /**
2754
- * @param {string} value
2755
- * @param {number=} opt_index
2756
- * @return {!proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding} returns this
2757
- */
2758
- proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.prototype.addBeforeCreate = function(value, opt_index) {
2759
- return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2537
+ * @param {?proto.google.protobuf.Struct|undefined} value
2538
+ * @return {!proto.pulumirpc.RegisterResourceRequest} returns this
2539
+ */
2540
+ proto.pulumirpc.RegisterResourceRequest.prototype.setObject = function(value) {
2541
+ return jspb.Message.setWrapperField(this, 5, value);
2760
2542
  };
2761
2543
 
2762
2544
 
2763
2545
  /**
2764
- * Clears the list making it empty but non-null.
2765
- * @return {!proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding} returns this
2546
+ * Clears the message field making it undefined.
2547
+ * @return {!proto.pulumirpc.RegisterResourceRequest} returns this
2766
2548
  */
2767
- proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.prototype.clearBeforeCreateList = function() {
2768
- return this.setBeforeCreateList([]);
2549
+ proto.pulumirpc.RegisterResourceRequest.prototype.clearObject = function() {
2550
+ return this.setObject(undefined);
2769
2551
  };
2770
2552
 
2771
2553
 
2772
2554
  /**
2773
- * repeated string after_create = 2;
2774
- * @return {!Array<string>}
2555
+ * Returns whether this field is set.
2556
+ * @return {boolean}
2775
2557
  */
2776
- proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.prototype.getAfterCreateList = function() {
2777
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
2558
+ proto.pulumirpc.RegisterResourceRequest.prototype.hasObject = function() {
2559
+ return jspb.Message.getField(this, 5) != null;
2778
2560
  };
2779
2561
 
2780
2562
 
2781
2563
  /**
2782
- * @param {!Array<string>} value
2783
- * @return {!proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding} returns this
2564
+ * optional bool protect = 6;
2565
+ * @return {boolean}
2784
2566
  */
2785
- proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.prototype.setAfterCreateList = function(value) {
2786
- return jspb.Message.setField(this, 2, value || []);
2787
- };
2788
-
2789
-
2790
- /**
2791
- * @param {string} value
2792
- * @param {number=} opt_index
2793
- * @return {!proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding} returns this
2794
- */
2795
- proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.prototype.addAfterCreate = function(value, opt_index) {
2796
- return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
2797
- };
2798
-
2799
-
2800
- /**
2801
- * Clears the list making it empty but non-null.
2802
- * @return {!proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding} returns this
2803
- */
2804
- proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.prototype.clearAfterCreateList = function() {
2805
- return this.setAfterCreateList([]);
2806
- };
2807
-
2808
-
2809
- /**
2810
- * repeated string before_update = 3;
2811
- * @return {!Array<string>}
2812
- */
2813
- proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.prototype.getBeforeUpdateList = function() {
2814
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
2815
- };
2816
-
2817
-
2818
- /**
2819
- * @param {!Array<string>} value
2820
- * @return {!proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding} returns this
2821
- */
2822
- proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.prototype.setBeforeUpdateList = function(value) {
2823
- return jspb.Message.setField(this, 3, value || []);
2824
- };
2825
-
2826
-
2827
- /**
2828
- * @param {string} value
2829
- * @param {number=} opt_index
2830
- * @return {!proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding} returns this
2831
- */
2832
- proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.prototype.addBeforeUpdate = function(value, opt_index) {
2833
- return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
2834
- };
2835
-
2836
-
2837
- /**
2838
- * Clears the list making it empty but non-null.
2839
- * @return {!proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding} returns this
2840
- */
2841
- proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.prototype.clearBeforeUpdateList = function() {
2842
- return this.setBeforeUpdateList([]);
2843
- };
2844
-
2845
-
2846
- /**
2847
- * repeated string after_update = 4;
2848
- * @return {!Array<string>}
2849
- */
2850
- proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.prototype.getAfterUpdateList = function() {
2851
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
2852
- };
2853
-
2854
-
2855
- /**
2856
- * @param {!Array<string>} value
2857
- * @return {!proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding} returns this
2858
- */
2859
- proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.prototype.setAfterUpdateList = function(value) {
2860
- return jspb.Message.setField(this, 4, value || []);
2861
- };
2862
-
2863
-
2864
- /**
2865
- * @param {string} value
2866
- * @param {number=} opt_index
2867
- * @return {!proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding} returns this
2868
- */
2869
- proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.prototype.addAfterUpdate = function(value, opt_index) {
2870
- return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
2871
- };
2872
-
2873
-
2874
- /**
2875
- * Clears the list making it empty but non-null.
2876
- * @return {!proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding} returns this
2877
- */
2878
- proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.prototype.clearAfterUpdateList = function() {
2879
- return this.setAfterUpdateList([]);
2880
- };
2881
-
2882
-
2883
- /**
2884
- * repeated string before_delete = 5;
2885
- * @return {!Array<string>}
2886
- */
2887
- proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.prototype.getBeforeDeleteList = function() {
2888
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
2889
- };
2890
-
2891
-
2892
- /**
2893
- * @param {!Array<string>} value
2894
- * @return {!proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding} returns this
2895
- */
2896
- proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.prototype.setBeforeDeleteList = function(value) {
2897
- return jspb.Message.setField(this, 5, value || []);
2898
- };
2899
-
2900
-
2901
- /**
2902
- * @param {string} value
2903
- * @param {number=} opt_index
2904
- * @return {!proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding} returns this
2905
- */
2906
- proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.prototype.addBeforeDelete = function(value, opt_index) {
2907
- return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
2908
- };
2909
-
2910
-
2911
- /**
2912
- * Clears the list making it empty but non-null.
2913
- * @return {!proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding} returns this
2914
- */
2915
- proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.prototype.clearBeforeDeleteList = function() {
2916
- return this.setBeforeDeleteList([]);
2917
- };
2918
-
2919
-
2920
- /**
2921
- * repeated string after_delete = 6;
2922
- * @return {!Array<string>}
2923
- */
2924
- proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.prototype.getAfterDeleteList = function() {
2925
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 6));
2926
- };
2927
-
2928
-
2929
- /**
2930
- * @param {!Array<string>} value
2931
- * @return {!proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding} returns this
2932
- */
2933
- proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.prototype.setAfterDeleteList = function(value) {
2934
- return jspb.Message.setField(this, 6, value || []);
2935
- };
2936
-
2937
-
2938
- /**
2939
- * @param {string} value
2940
- * @param {number=} opt_index
2941
- * @return {!proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding} returns this
2942
- */
2943
- proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.prototype.addAfterDelete = function(value, opt_index) {
2944
- return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
2945
- };
2946
-
2947
-
2948
- /**
2949
- * Clears the list making it empty but non-null.
2950
- * @return {!proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding} returns this
2951
- */
2952
- proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.prototype.clearAfterDeleteList = function() {
2953
- return this.setAfterDeleteList([]);
2954
- };
2955
-
2956
-
2957
- /**
2958
- * optional string type = 1;
2959
- * @return {string}
2960
- */
2961
- proto.pulumirpc.RegisterResourceRequest.prototype.getType = function() {
2962
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2963
- };
2964
-
2965
-
2966
- /**
2967
- * @param {string} value
2968
- * @return {!proto.pulumirpc.RegisterResourceRequest} returns this
2969
- */
2970
- proto.pulumirpc.RegisterResourceRequest.prototype.setType = function(value) {
2971
- return jspb.Message.setProto3StringField(this, 1, value);
2972
- };
2973
-
2974
-
2975
- /**
2976
- * optional string name = 2;
2977
- * @return {string}
2978
- */
2979
- proto.pulumirpc.RegisterResourceRequest.prototype.getName = function() {
2980
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2981
- };
2982
-
2983
-
2984
- /**
2985
- * @param {string} value
2986
- * @return {!proto.pulumirpc.RegisterResourceRequest} returns this
2987
- */
2988
- proto.pulumirpc.RegisterResourceRequest.prototype.setName = function(value) {
2989
- return jspb.Message.setProto3StringField(this, 2, value);
2990
- };
2991
-
2992
-
2993
- /**
2994
- * optional string parent = 3;
2995
- * @return {string}
2996
- */
2997
- proto.pulumirpc.RegisterResourceRequest.prototype.getParent = function() {
2998
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2999
- };
3000
-
3001
-
3002
- /**
3003
- * @param {string} value
3004
- * @return {!proto.pulumirpc.RegisterResourceRequest} returns this
3005
- */
3006
- proto.pulumirpc.RegisterResourceRequest.prototype.setParent = function(value) {
3007
- return jspb.Message.setProto3StringField(this, 3, value);
3008
- };
3009
-
3010
-
3011
- /**
3012
- * optional bool custom = 4;
3013
- * @return {boolean}
3014
- */
3015
- proto.pulumirpc.RegisterResourceRequest.prototype.getCustom = function() {
3016
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
3017
- };
3018
-
3019
-
3020
- /**
3021
- * @param {boolean} value
3022
- * @return {!proto.pulumirpc.RegisterResourceRequest} returns this
3023
- */
3024
- proto.pulumirpc.RegisterResourceRequest.prototype.setCustom = function(value) {
3025
- return jspb.Message.setProto3BooleanField(this, 4, value);
3026
- };
3027
-
3028
-
3029
- /**
3030
- * optional google.protobuf.Struct object = 5;
3031
- * @return {?proto.google.protobuf.Struct}
3032
- */
3033
- proto.pulumirpc.RegisterResourceRequest.prototype.getObject = function() {
3034
- return /** @type{?proto.google.protobuf.Struct} */ (
3035
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 5));
3036
- };
3037
-
3038
-
3039
- /**
3040
- * @param {?proto.google.protobuf.Struct|undefined} value
3041
- * @return {!proto.pulumirpc.RegisterResourceRequest} returns this
3042
- */
3043
- proto.pulumirpc.RegisterResourceRequest.prototype.setObject = function(value) {
3044
- return jspb.Message.setWrapperField(this, 5, value);
3045
- };
3046
-
3047
-
3048
- /**
3049
- * Clears the message field making it undefined.
3050
- * @return {!proto.pulumirpc.RegisterResourceRequest} returns this
3051
- */
3052
- proto.pulumirpc.RegisterResourceRequest.prototype.clearObject = function() {
3053
- return this.setObject(undefined);
3054
- };
3055
-
3056
-
3057
- /**
3058
- * Returns whether this field is set.
3059
- * @return {boolean}
3060
- */
3061
- proto.pulumirpc.RegisterResourceRequest.prototype.hasObject = function() {
3062
- return jspb.Message.getField(this, 5) != null;
3063
- };
3064
-
3065
-
3066
- /**
3067
- * optional bool protect = 6;
3068
- * @return {boolean}
3069
- */
3070
- proto.pulumirpc.RegisterResourceRequest.prototype.getProtect = function() {
3071
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
2567
+ proto.pulumirpc.RegisterResourceRequest.prototype.getProtect = function() {
2568
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
3072
2569
  };
3073
2570
 
3074
2571
 
@@ -3788,54 +3285,17 @@ proto.pulumirpc.RegisterResourceRequest.prototype.setPackageref = function(value
3788
3285
  };
3789
3286
 
3790
3287
 
3288
+
3791
3289
  /**
3792
- * optional ResourceHooksBinding hooks = 34;
3793
- * @return {?proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding}
3290
+ * List of repeated fields within this message type.
3291
+ * @private {!Array<number>}
3292
+ * @const
3794
3293
  */
3795
- proto.pulumirpc.RegisterResourceRequest.prototype.getHooks = function() {
3796
- return /** @type{?proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding} */ (
3797
- jspb.Message.getWrapperField(this, proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding, 34));
3798
- };
3799
-
3294
+ proto.pulumirpc.RegisterResourceResponse.repeatedFields_ = [5];
3800
3295
 
3801
- /**
3802
- * @param {?proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding|undefined} value
3803
- * @return {!proto.pulumirpc.RegisterResourceRequest} returns this
3804
- */
3805
- proto.pulumirpc.RegisterResourceRequest.prototype.setHooks = function(value) {
3806
- return jspb.Message.setWrapperField(this, 34, value);
3807
- };
3808
3296
 
3809
3297
 
3810
- /**
3811
- * Clears the message field making it undefined.
3812
- * @return {!proto.pulumirpc.RegisterResourceRequest} returns this
3813
- */
3814
- proto.pulumirpc.RegisterResourceRequest.prototype.clearHooks = function() {
3815
- return this.setHooks(undefined);
3816
- };
3817
-
3818
-
3819
- /**
3820
- * Returns whether this field is set.
3821
- * @return {boolean}
3822
- */
3823
- proto.pulumirpc.RegisterResourceRequest.prototype.hasHooks = function() {
3824
- return jspb.Message.getField(this, 34) != null;
3825
- };
3826
-
3827
-
3828
-
3829
- /**
3830
- * List of repeated fields within this message type.
3831
- * @private {!Array<number>}
3832
- * @const
3833
- */
3834
- proto.pulumirpc.RegisterResourceResponse.repeatedFields_ = [5];
3835
-
3836
-
3837
-
3838
- if (jspb.Message.GENERATE_TO_OBJECT) {
3298
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3839
3299
  /**
3840
3300
  * Creates an object representation of this proto.
3841
3301
  * Field names that are reserved in JavaScript and will be renamed to pb_name.
@@ -7445,8 +6905,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
7445
6905
  * http://goto/soy-param-migration
7446
6906
  * @return {!Object}
7447
6907
  */
7448
- proto.pulumirpc.ResourceHookRequest.prototype.toObject = function(opt_includeInstance) {
7449
- return proto.pulumirpc.ResourceHookRequest.toObject(opt_includeInstance, this);
6908
+ proto.pulumirpc.RegisterPackageRequest.prototype.toObject = function(opt_includeInstance) {
6909
+ return proto.pulumirpc.RegisterPackageRequest.toObject(opt_includeInstance, this);
7450
6910
  };
7451
6911
 
7452
6912
 
@@ -7455,18 +6915,17 @@ proto.pulumirpc.ResourceHookRequest.prototype.toObject = function(opt_includeIns
7455
6915
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7456
6916
  * the JSPB instance for transitional soy proto support:
7457
6917
  * http://goto/soy-param-migration
7458
- * @param {!proto.pulumirpc.ResourceHookRequest} msg The msg instance to transform.
6918
+ * @param {!proto.pulumirpc.RegisterPackageRequest} msg The msg instance to transform.
7459
6919
  * @return {!Object}
7460
6920
  * @suppress {unusedLocalVariables} f is only used for nested messages
7461
6921
  */
7462
- proto.pulumirpc.ResourceHookRequest.toObject = function(includeInstance, msg) {
6922
+ proto.pulumirpc.RegisterPackageRequest.toObject = function(includeInstance, msg) {
7463
6923
  var f, obj = {
7464
- urn: jspb.Message.getFieldWithDefault(msg, 1, ""),
7465
- id: jspb.Message.getFieldWithDefault(msg, 2, ""),
7466
- newInputs: (f = msg.getNewInputs()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
7467
- oldInputs: (f = msg.getOldInputs()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
7468
- newOutputs: (f = msg.getNewOutputs()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
7469
- oldOutputs: (f = msg.getOldOutputs()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
6924
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
6925
+ version: jspb.Message.getFieldWithDefault(msg, 2, ""),
6926
+ downloadUrl: jspb.Message.getFieldWithDefault(msg, 3, ""),
6927
+ checksumsMap: (f = msg.getChecksumsMap()) ? f.toObject(includeInstance, undefined) : [],
6928
+ parameterization: (f = msg.getParameterization()) && proto.pulumirpc.Parameterization.toObject(includeInstance, f)
7470
6929
  };
7471
6930
 
7472
6931
  if (includeInstance) {
@@ -7480,23 +6939,23 @@ proto.pulumirpc.ResourceHookRequest.toObject = function(includeInstance, msg) {
7480
6939
  /**
7481
6940
  * Deserializes binary data (in protobuf wire format).
7482
6941
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
7483
- * @return {!proto.pulumirpc.ResourceHookRequest}
6942
+ * @return {!proto.pulumirpc.RegisterPackageRequest}
7484
6943
  */
7485
- proto.pulumirpc.ResourceHookRequest.deserializeBinary = function(bytes) {
6944
+ proto.pulumirpc.RegisterPackageRequest.deserializeBinary = function(bytes) {
7486
6945
  var reader = new jspb.BinaryReader(bytes);
7487
- var msg = new proto.pulumirpc.ResourceHookRequest;
7488
- return proto.pulumirpc.ResourceHookRequest.deserializeBinaryFromReader(msg, reader);
6946
+ var msg = new proto.pulumirpc.RegisterPackageRequest;
6947
+ return proto.pulumirpc.RegisterPackageRequest.deserializeBinaryFromReader(msg, reader);
7489
6948
  };
7490
6949
 
7491
6950
 
7492
6951
  /**
7493
6952
  * Deserializes binary data (in protobuf wire format) from the
7494
6953
  * given reader into the given message object.
7495
- * @param {!proto.pulumirpc.ResourceHookRequest} msg The message object to deserialize into.
6954
+ * @param {!proto.pulumirpc.RegisterPackageRequest} msg The message object to deserialize into.
7496
6955
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7497
- * @return {!proto.pulumirpc.ResourceHookRequest}
6956
+ * @return {!proto.pulumirpc.RegisterPackageRequest}
7498
6957
  */
7499
- proto.pulumirpc.ResourceHookRequest.deserializeBinaryFromReader = function(msg, reader) {
6958
+ proto.pulumirpc.RegisterPackageRequest.deserializeBinaryFromReader = function(msg, reader) {
7500
6959
  while (reader.nextField()) {
7501
6960
  if (reader.isEndGroup()) {
7502
6961
  break;
@@ -7505,31 +6964,26 @@ proto.pulumirpc.ResourceHookRequest.deserializeBinaryFromReader = function(msg,
7505
6964
  switch (field) {
7506
6965
  case 1:
7507
6966
  var value = /** @type {string} */ (reader.readString());
7508
- msg.setUrn(value);
6967
+ msg.setName(value);
7509
6968
  break;
7510
6969
  case 2:
7511
6970
  var value = /** @type {string} */ (reader.readString());
7512
- msg.setId(value);
6971
+ msg.setVersion(value);
7513
6972
  break;
7514
6973
  case 3:
7515
- var value = new google_protobuf_struct_pb.Struct;
7516
- reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
7517
- msg.setNewInputs(value);
6974
+ var value = /** @type {string} */ (reader.readString());
6975
+ msg.setDownloadUrl(value);
7518
6976
  break;
7519
6977
  case 4:
7520
- var value = new google_protobuf_struct_pb.Struct;
7521
- reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
7522
- msg.setOldInputs(value);
6978
+ var value = msg.getChecksumsMap();
6979
+ reader.readMessage(value, function(message, reader) {
6980
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readBytes, null, "", "");
6981
+ });
7523
6982
  break;
7524
6983
  case 5:
7525
- var value = new google_protobuf_struct_pb.Struct;
7526
- reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
7527
- msg.setNewOutputs(value);
7528
- break;
7529
- case 6:
7530
- var value = new google_protobuf_struct_pb.Struct;
7531
- reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
7532
- msg.setOldOutputs(value);
6984
+ var value = new proto.pulumirpc.Parameterization;
6985
+ reader.readMessage(value,proto.pulumirpc.Parameterization.deserializeBinaryFromReader);
6986
+ msg.setParameterization(value);
7533
6987
  break;
7534
6988
  default:
7535
6989
  reader.skipField();
@@ -7544,9 +6998,9 @@ proto.pulumirpc.ResourceHookRequest.deserializeBinaryFromReader = function(msg,
7544
6998
  * Serializes the message to binary data (in protobuf wire format).
7545
6999
  * @return {!Uint8Array}
7546
7000
  */
7547
- proto.pulumirpc.ResourceHookRequest.prototype.serializeBinary = function() {
7001
+ proto.pulumirpc.RegisterPackageRequest.prototype.serializeBinary = function() {
7548
7002
  var writer = new jspb.BinaryWriter();
7549
- proto.pulumirpc.ResourceHookRequest.serializeBinaryToWriter(this, writer);
7003
+ proto.pulumirpc.RegisterPackageRequest.serializeBinaryToWriter(this, writer);
7550
7004
  return writer.getResultBuffer();
7551
7005
  };
7552
7006
 
@@ -7554,196 +7008,149 @@ proto.pulumirpc.ResourceHookRequest.prototype.serializeBinary = function() {
7554
7008
  /**
7555
7009
  * Serializes the given message to binary data (in protobuf wire
7556
7010
  * format), writing to the given BinaryWriter.
7557
- * @param {!proto.pulumirpc.ResourceHookRequest} message
7011
+ * @param {!proto.pulumirpc.RegisterPackageRequest} message
7558
7012
  * @param {!jspb.BinaryWriter} writer
7559
7013
  * @suppress {unusedLocalVariables} f is only used for nested messages
7560
7014
  */
7561
- proto.pulumirpc.ResourceHookRequest.serializeBinaryToWriter = function(message, writer) {
7015
+ proto.pulumirpc.RegisterPackageRequest.serializeBinaryToWriter = function(message, writer) {
7562
7016
  var f = undefined;
7563
- f = message.getUrn();
7017
+ f = message.getName();
7564
7018
  if (f.length > 0) {
7565
7019
  writer.writeString(
7566
7020
  1,
7567
7021
  f
7568
7022
  );
7569
7023
  }
7570
- f = message.getId();
7024
+ f = message.getVersion();
7571
7025
  if (f.length > 0) {
7572
7026
  writer.writeString(
7573
7027
  2,
7574
7028
  f
7575
7029
  );
7576
7030
  }
7577
- f = message.getNewInputs();
7578
- if (f != null) {
7579
- writer.writeMessage(
7031
+ f = message.getDownloadUrl();
7032
+ if (f.length > 0) {
7033
+ writer.writeString(
7580
7034
  3,
7581
- f,
7582
- google_protobuf_struct_pb.Struct.serializeBinaryToWriter
7035
+ f
7583
7036
  );
7584
7037
  }
7585
- f = message.getOldInputs();
7586
- if (f != null) {
7587
- writer.writeMessage(
7588
- 4,
7589
- f,
7590
- google_protobuf_struct_pb.Struct.serializeBinaryToWriter
7591
- );
7038
+ f = message.getChecksumsMap(true);
7039
+ if (f && f.getLength() > 0) {
7040
+ f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeBytes);
7592
7041
  }
7593
- f = message.getNewOutputs();
7042
+ f = message.getParameterization();
7594
7043
  if (f != null) {
7595
7044
  writer.writeMessage(
7596
7045
  5,
7597
7046
  f,
7598
- google_protobuf_struct_pb.Struct.serializeBinaryToWriter
7599
- );
7600
- }
7601
- f = message.getOldOutputs();
7602
- if (f != null) {
7603
- writer.writeMessage(
7604
- 6,
7605
- f,
7606
- google_protobuf_struct_pb.Struct.serializeBinaryToWriter
7047
+ proto.pulumirpc.Parameterization.serializeBinaryToWriter
7607
7048
  );
7608
7049
  }
7609
7050
  };
7610
7051
 
7611
7052
 
7612
7053
  /**
7613
- * optional string urn = 1;
7054
+ * optional string name = 1;
7614
7055
  * @return {string}
7615
7056
  */
7616
- proto.pulumirpc.ResourceHookRequest.prototype.getUrn = function() {
7057
+ proto.pulumirpc.RegisterPackageRequest.prototype.getName = function() {
7617
7058
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
7618
7059
  };
7619
7060
 
7620
7061
 
7621
7062
  /**
7622
7063
  * @param {string} value
7623
- * @return {!proto.pulumirpc.ResourceHookRequest} returns this
7064
+ * @return {!proto.pulumirpc.RegisterPackageRequest} returns this
7624
7065
  */
7625
- proto.pulumirpc.ResourceHookRequest.prototype.setUrn = function(value) {
7066
+ proto.pulumirpc.RegisterPackageRequest.prototype.setName = function(value) {
7626
7067
  return jspb.Message.setProto3StringField(this, 1, value);
7627
7068
  };
7628
7069
 
7629
7070
 
7630
7071
  /**
7631
- * optional string id = 2;
7072
+ * optional string version = 2;
7632
7073
  * @return {string}
7633
7074
  */
7634
- proto.pulumirpc.ResourceHookRequest.prototype.getId = function() {
7075
+ proto.pulumirpc.RegisterPackageRequest.prototype.getVersion = function() {
7635
7076
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
7636
7077
  };
7637
7078
 
7638
7079
 
7639
7080
  /**
7640
7081
  * @param {string} value
7641
- * @return {!proto.pulumirpc.ResourceHookRequest} returns this
7082
+ * @return {!proto.pulumirpc.RegisterPackageRequest} returns this
7642
7083
  */
7643
- proto.pulumirpc.ResourceHookRequest.prototype.setId = function(value) {
7084
+ proto.pulumirpc.RegisterPackageRequest.prototype.setVersion = function(value) {
7644
7085
  return jspb.Message.setProto3StringField(this, 2, value);
7645
7086
  };
7646
7087
 
7647
7088
 
7648
7089
  /**
7649
- * optional google.protobuf.Struct new_inputs = 3;
7650
- * @return {?proto.google.protobuf.Struct}
7651
- */
7652
- proto.pulumirpc.ResourceHookRequest.prototype.getNewInputs = function() {
7653
- return /** @type{?proto.google.protobuf.Struct} */ (
7654
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 3));
7655
- };
7656
-
7657
-
7658
- /**
7659
- * @param {?proto.google.protobuf.Struct|undefined} value
7660
- * @return {!proto.pulumirpc.ResourceHookRequest} returns this
7661
- */
7662
- proto.pulumirpc.ResourceHookRequest.prototype.setNewInputs = function(value) {
7663
- return jspb.Message.setWrapperField(this, 3, value);
7664
- };
7665
-
7666
-
7667
- /**
7668
- * Clears the message field making it undefined.
7669
- * @return {!proto.pulumirpc.ResourceHookRequest} returns this
7670
- */
7671
- proto.pulumirpc.ResourceHookRequest.prototype.clearNewInputs = function() {
7672
- return this.setNewInputs(undefined);
7673
- };
7674
-
7675
-
7676
- /**
7677
- * Returns whether this field is set.
7678
- * @return {boolean}
7090
+ * optional string download_url = 3;
7091
+ * @return {string}
7679
7092
  */
7680
- proto.pulumirpc.ResourceHookRequest.prototype.hasNewInputs = function() {
7681
- return jspb.Message.getField(this, 3) != null;
7093
+ proto.pulumirpc.RegisterPackageRequest.prototype.getDownloadUrl = function() {
7094
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
7682
7095
  };
7683
7096
 
7684
7097
 
7685
7098
  /**
7686
- * optional google.protobuf.Struct old_inputs = 4;
7687
- * @return {?proto.google.protobuf.Struct}
7099
+ * @param {string} value
7100
+ * @return {!proto.pulumirpc.RegisterPackageRequest} returns this
7688
7101
  */
7689
- proto.pulumirpc.ResourceHookRequest.prototype.getOldInputs = function() {
7690
- return /** @type{?proto.google.protobuf.Struct} */ (
7691
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 4));
7692
- };
7693
-
7694
-
7695
- /**
7696
- * @param {?proto.google.protobuf.Struct|undefined} value
7697
- * @return {!proto.pulumirpc.ResourceHookRequest} returns this
7698
- */
7699
- proto.pulumirpc.ResourceHookRequest.prototype.setOldInputs = function(value) {
7700
- return jspb.Message.setWrapperField(this, 4, value);
7102
+ proto.pulumirpc.RegisterPackageRequest.prototype.setDownloadUrl = function(value) {
7103
+ return jspb.Message.setProto3StringField(this, 3, value);
7701
7104
  };
7702
7105
 
7703
7106
 
7704
7107
  /**
7705
- * Clears the message field making it undefined.
7706
- * @return {!proto.pulumirpc.ResourceHookRequest} returns this
7108
+ * map<string, bytes> checksums = 4;
7109
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
7110
+ * empty, instead returning `undefined`
7111
+ * @return {!jspb.Map<string,!(string|Uint8Array)>}
7707
7112
  */
7708
- proto.pulumirpc.ResourceHookRequest.prototype.clearOldInputs = function() {
7709
- return this.setOldInputs(undefined);
7113
+ proto.pulumirpc.RegisterPackageRequest.prototype.getChecksumsMap = function(opt_noLazyCreate) {
7114
+ return /** @type {!jspb.Map<string,!(string|Uint8Array)>} */ (
7115
+ jspb.Message.getMapField(this, 4, opt_noLazyCreate,
7116
+ null));
7710
7117
  };
7711
7118
 
7712
7119
 
7713
7120
  /**
7714
- * Returns whether this field is set.
7715
- * @return {boolean}
7121
+ * Clears values from the map. The map will be non-null.
7122
+ * @return {!proto.pulumirpc.RegisterPackageRequest} returns this
7716
7123
  */
7717
- proto.pulumirpc.ResourceHookRequest.prototype.hasOldInputs = function() {
7718
- return jspb.Message.getField(this, 4) != null;
7719
- };
7124
+ proto.pulumirpc.RegisterPackageRequest.prototype.clearChecksumsMap = function() {
7125
+ this.getChecksumsMap().clear();
7126
+ return this;};
7720
7127
 
7721
7128
 
7722
7129
  /**
7723
- * optional google.protobuf.Struct new_outputs = 5;
7724
- * @return {?proto.google.protobuf.Struct}
7130
+ * optional Parameterization parameterization = 5;
7131
+ * @return {?proto.pulumirpc.Parameterization}
7725
7132
  */
7726
- proto.pulumirpc.ResourceHookRequest.prototype.getNewOutputs = function() {
7727
- return /** @type{?proto.google.protobuf.Struct} */ (
7728
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 5));
7133
+ proto.pulumirpc.RegisterPackageRequest.prototype.getParameterization = function() {
7134
+ return /** @type{?proto.pulumirpc.Parameterization} */ (
7135
+ jspb.Message.getWrapperField(this, proto.pulumirpc.Parameterization, 5));
7729
7136
  };
7730
7137
 
7731
7138
 
7732
7139
  /**
7733
- * @param {?proto.google.protobuf.Struct|undefined} value
7734
- * @return {!proto.pulumirpc.ResourceHookRequest} returns this
7140
+ * @param {?proto.pulumirpc.Parameterization|undefined} value
7141
+ * @return {!proto.pulumirpc.RegisterPackageRequest} returns this
7735
7142
  */
7736
- proto.pulumirpc.ResourceHookRequest.prototype.setNewOutputs = function(value) {
7143
+ proto.pulumirpc.RegisterPackageRequest.prototype.setParameterization = function(value) {
7737
7144
  return jspb.Message.setWrapperField(this, 5, value);
7738
7145
  };
7739
7146
 
7740
7147
 
7741
7148
  /**
7742
7149
  * Clears the message field making it undefined.
7743
- * @return {!proto.pulumirpc.ResourceHookRequest} returns this
7150
+ * @return {!proto.pulumirpc.RegisterPackageRequest} returns this
7744
7151
  */
7745
- proto.pulumirpc.ResourceHookRequest.prototype.clearNewOutputs = function() {
7746
- return this.setNewOutputs(undefined);
7152
+ proto.pulumirpc.RegisterPackageRequest.prototype.clearParameterization = function() {
7153
+ return this.setParameterization(undefined);
7747
7154
  };
7748
7155
 
7749
7156
 
@@ -7751,48 +7158,11 @@ proto.pulumirpc.ResourceHookRequest.prototype.clearNewOutputs = function() {
7751
7158
  * Returns whether this field is set.
7752
7159
  * @return {boolean}
7753
7160
  */
7754
- proto.pulumirpc.ResourceHookRequest.prototype.hasNewOutputs = function() {
7161
+ proto.pulumirpc.RegisterPackageRequest.prototype.hasParameterization = function() {
7755
7162
  return jspb.Message.getField(this, 5) != null;
7756
7163
  };
7757
7164
 
7758
7165
 
7759
- /**
7760
- * optional google.protobuf.Struct old_outputs = 6;
7761
- * @return {?proto.google.protobuf.Struct}
7762
- */
7763
- proto.pulumirpc.ResourceHookRequest.prototype.getOldOutputs = function() {
7764
- return /** @type{?proto.google.protobuf.Struct} */ (
7765
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 6));
7766
- };
7767
-
7768
-
7769
- /**
7770
- * @param {?proto.google.protobuf.Struct|undefined} value
7771
- * @return {!proto.pulumirpc.ResourceHookRequest} returns this
7772
- */
7773
- proto.pulumirpc.ResourceHookRequest.prototype.setOldOutputs = function(value) {
7774
- return jspb.Message.setWrapperField(this, 6, value);
7775
- };
7776
-
7777
-
7778
- /**
7779
- * Clears the message field making it undefined.
7780
- * @return {!proto.pulumirpc.ResourceHookRequest} returns this
7781
- */
7782
- proto.pulumirpc.ResourceHookRequest.prototype.clearOldOutputs = function() {
7783
- return this.setOldOutputs(undefined);
7784
- };
7785
-
7786
-
7787
- /**
7788
- * Returns whether this field is set.
7789
- * @return {boolean}
7790
- */
7791
- proto.pulumirpc.ResourceHookRequest.prototype.hasOldOutputs = function() {
7792
- return jspb.Message.getField(this, 6) != null;
7793
- };
7794
-
7795
-
7796
7166
 
7797
7167
 
7798
7168
 
@@ -7809,8 +7179,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
7809
7179
  * http://goto/soy-param-migration
7810
7180
  * @return {!Object}
7811
7181
  */
7812
- proto.pulumirpc.ResourceHookResponse.prototype.toObject = function(opt_includeInstance) {
7813
- return proto.pulumirpc.ResourceHookResponse.toObject(opt_includeInstance, this);
7182
+ proto.pulumirpc.RegisterPackageResponse.prototype.toObject = function(opt_includeInstance) {
7183
+ return proto.pulumirpc.RegisterPackageResponse.toObject(opt_includeInstance, this);
7814
7184
  };
7815
7185
 
7816
7186
 
@@ -7819,13 +7189,13 @@ proto.pulumirpc.ResourceHookResponse.prototype.toObject = function(opt_includeIn
7819
7189
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7820
7190
  * the JSPB instance for transitional soy proto support:
7821
7191
  * http://goto/soy-param-migration
7822
- * @param {!proto.pulumirpc.ResourceHookResponse} msg The msg instance to transform.
7192
+ * @param {!proto.pulumirpc.RegisterPackageResponse} msg The msg instance to transform.
7823
7193
  * @return {!Object}
7824
7194
  * @suppress {unusedLocalVariables} f is only used for nested messages
7825
7195
  */
7826
- proto.pulumirpc.ResourceHookResponse.toObject = function(includeInstance, msg) {
7196
+ proto.pulumirpc.RegisterPackageResponse.toObject = function(includeInstance, msg) {
7827
7197
  var f, obj = {
7828
- error: jspb.Message.getFieldWithDefault(msg, 1, "")
7198
+ ref: jspb.Message.getFieldWithDefault(msg, 1, "")
7829
7199
  };
7830
7200
 
7831
7201
  if (includeInstance) {
@@ -7839,23 +7209,23 @@ proto.pulumirpc.ResourceHookResponse.toObject = function(includeInstance, msg) {
7839
7209
  /**
7840
7210
  * Deserializes binary data (in protobuf wire format).
7841
7211
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
7842
- * @return {!proto.pulumirpc.ResourceHookResponse}
7212
+ * @return {!proto.pulumirpc.RegisterPackageResponse}
7843
7213
  */
7844
- proto.pulumirpc.ResourceHookResponse.deserializeBinary = function(bytes) {
7214
+ proto.pulumirpc.RegisterPackageResponse.deserializeBinary = function(bytes) {
7845
7215
  var reader = new jspb.BinaryReader(bytes);
7846
- var msg = new proto.pulumirpc.ResourceHookResponse;
7847
- return proto.pulumirpc.ResourceHookResponse.deserializeBinaryFromReader(msg, reader);
7216
+ var msg = new proto.pulumirpc.RegisterPackageResponse;
7217
+ return proto.pulumirpc.RegisterPackageResponse.deserializeBinaryFromReader(msg, reader);
7848
7218
  };
7849
7219
 
7850
7220
 
7851
7221
  /**
7852
7222
  * Deserializes binary data (in protobuf wire format) from the
7853
7223
  * given reader into the given message object.
7854
- * @param {!proto.pulumirpc.ResourceHookResponse} msg The message object to deserialize into.
7224
+ * @param {!proto.pulumirpc.RegisterPackageResponse} msg The message object to deserialize into.
7855
7225
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7856
- * @return {!proto.pulumirpc.ResourceHookResponse}
7226
+ * @return {!proto.pulumirpc.RegisterPackageResponse}
7857
7227
  */
7858
- proto.pulumirpc.ResourceHookResponse.deserializeBinaryFromReader = function(msg, reader) {
7228
+ proto.pulumirpc.RegisterPackageResponse.deserializeBinaryFromReader = function(msg, reader) {
7859
7229
  while (reader.nextField()) {
7860
7230
  if (reader.isEndGroup()) {
7861
7231
  break;
@@ -7864,7 +7234,7 @@ proto.pulumirpc.ResourceHookResponse.deserializeBinaryFromReader = function(msg,
7864
7234
  switch (field) {
7865
7235
  case 1:
7866
7236
  var value = /** @type {string} */ (reader.readString());
7867
- msg.setError(value);
7237
+ msg.setRef(value);
7868
7238
  break;
7869
7239
  default:
7870
7240
  reader.skipField();
@@ -7879,9 +7249,9 @@ proto.pulumirpc.ResourceHookResponse.deserializeBinaryFromReader = function(msg,
7879
7249
  * Serializes the message to binary data (in protobuf wire format).
7880
7250
  * @return {!Uint8Array}
7881
7251
  */
7882
- proto.pulumirpc.ResourceHookResponse.prototype.serializeBinary = function() {
7252
+ proto.pulumirpc.RegisterPackageResponse.prototype.serializeBinary = function() {
7883
7253
  var writer = new jspb.BinaryWriter();
7884
- proto.pulumirpc.ResourceHookResponse.serializeBinaryToWriter(this, writer);
7254
+ proto.pulumirpc.RegisterPackageResponse.serializeBinaryToWriter(this, writer);
7885
7255
  return writer.getResultBuffer();
7886
7256
  };
7887
7257
 
@@ -7889,13 +7259,13 @@ proto.pulumirpc.ResourceHookResponse.prototype.serializeBinary = function() {
7889
7259
  /**
7890
7260
  * Serializes the given message to binary data (in protobuf wire
7891
7261
  * format), writing to the given BinaryWriter.
7892
- * @param {!proto.pulumirpc.ResourceHookResponse} message
7262
+ * @param {!proto.pulumirpc.RegisterPackageResponse} message
7893
7263
  * @param {!jspb.BinaryWriter} writer
7894
7264
  * @suppress {unusedLocalVariables} f is only used for nested messages
7895
7265
  */
7896
- proto.pulumirpc.ResourceHookResponse.serializeBinaryToWriter = function(message, writer) {
7266
+ proto.pulumirpc.RegisterPackageResponse.serializeBinaryToWriter = function(message, writer) {
7897
7267
  var f = undefined;
7898
- f = message.getError();
7268
+ f = message.getRef();
7899
7269
  if (f.length > 0) {
7900
7270
  writer.writeString(
7901
7271
  1,
@@ -7906,19 +7276,19 @@ proto.pulumirpc.ResourceHookResponse.serializeBinaryToWriter = function(message,
7906
7276
 
7907
7277
 
7908
7278
  /**
7909
- * optional string error = 1;
7279
+ * optional string ref = 1;
7910
7280
  * @return {string}
7911
7281
  */
7912
- proto.pulumirpc.ResourceHookResponse.prototype.getError = function() {
7282
+ proto.pulumirpc.RegisterPackageResponse.prototype.getRef = function() {
7913
7283
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
7914
7284
  };
7915
7285
 
7916
7286
 
7917
7287
  /**
7918
7288
  * @param {string} value
7919
- * @return {!proto.pulumirpc.ResourceHookResponse} returns this
7289
+ * @return {!proto.pulumirpc.RegisterPackageResponse} returns this
7920
7290
  */
7921
- proto.pulumirpc.ResourceHookResponse.prototype.setError = function(value) {
7291
+ proto.pulumirpc.RegisterPackageResponse.prototype.setRef = function(value) {
7922
7292
  return jspb.Message.setProto3StringField(this, 1, value);
7923
7293
  };
7924
7294
 
@@ -7939,8 +7309,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
7939
7309
  * http://goto/soy-param-migration
7940
7310
  * @return {!Object}
7941
7311
  */
7942
- proto.pulumirpc.RegisterPackageRequest.prototype.toObject = function(opt_includeInstance) {
7943
- return proto.pulumirpc.RegisterPackageRequest.toObject(opt_includeInstance, this);
7312
+ proto.pulumirpc.Parameterization.prototype.toObject = function(opt_includeInstance) {
7313
+ return proto.pulumirpc.Parameterization.toObject(opt_includeInstance, this);
7944
7314
  };
7945
7315
 
7946
7316
 
@@ -7949,17 +7319,15 @@ proto.pulumirpc.RegisterPackageRequest.prototype.toObject = function(opt_include
7949
7319
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7950
7320
  * the JSPB instance for transitional soy proto support:
7951
7321
  * http://goto/soy-param-migration
7952
- * @param {!proto.pulumirpc.RegisterPackageRequest} msg The msg instance to transform.
7322
+ * @param {!proto.pulumirpc.Parameterization} msg The msg instance to transform.
7953
7323
  * @return {!Object}
7954
7324
  * @suppress {unusedLocalVariables} f is only used for nested messages
7955
7325
  */
7956
- proto.pulumirpc.RegisterPackageRequest.toObject = function(includeInstance, msg) {
7326
+ proto.pulumirpc.Parameterization.toObject = function(includeInstance, msg) {
7957
7327
  var f, obj = {
7958
7328
  name: jspb.Message.getFieldWithDefault(msg, 1, ""),
7959
7329
  version: jspb.Message.getFieldWithDefault(msg, 2, ""),
7960
- downloadUrl: jspb.Message.getFieldWithDefault(msg, 3, ""),
7961
- checksumsMap: (f = msg.getChecksumsMap()) ? f.toObject(includeInstance, undefined) : [],
7962
- parameterization: (f = msg.getParameterization()) && proto.pulumirpc.Parameterization.toObject(includeInstance, f)
7330
+ value: msg.getValue_asB64()
7963
7331
  };
7964
7332
 
7965
7333
  if (includeInstance) {
@@ -7973,423 +7341,21 @@ proto.pulumirpc.RegisterPackageRequest.toObject = function(includeInstance, msg)
7973
7341
  /**
7974
7342
  * Deserializes binary data (in protobuf wire format).
7975
7343
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
7976
- * @return {!proto.pulumirpc.RegisterPackageRequest}
7344
+ * @return {!proto.pulumirpc.Parameterization}
7977
7345
  */
7978
- proto.pulumirpc.RegisterPackageRequest.deserializeBinary = function(bytes) {
7346
+ proto.pulumirpc.Parameterization.deserializeBinary = function(bytes) {
7979
7347
  var reader = new jspb.BinaryReader(bytes);
7980
- var msg = new proto.pulumirpc.RegisterPackageRequest;
7981
- return proto.pulumirpc.RegisterPackageRequest.deserializeBinaryFromReader(msg, reader);
7348
+ var msg = new proto.pulumirpc.Parameterization;
7349
+ return proto.pulumirpc.Parameterization.deserializeBinaryFromReader(msg, reader);
7982
7350
  };
7983
7351
 
7984
7352
 
7985
7353
  /**
7986
7354
  * Deserializes binary data (in protobuf wire format) from the
7987
7355
  * given reader into the given message object.
7988
- * @param {!proto.pulumirpc.RegisterPackageRequest} msg The message object to deserialize into.
7356
+ * @param {!proto.pulumirpc.Parameterization} msg The message object to deserialize into.
7989
7357
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7990
- * @return {!proto.pulumirpc.RegisterPackageRequest}
7991
- */
7992
- proto.pulumirpc.RegisterPackageRequest.deserializeBinaryFromReader = function(msg, reader) {
7993
- while (reader.nextField()) {
7994
- if (reader.isEndGroup()) {
7995
- break;
7996
- }
7997
- var field = reader.getFieldNumber();
7998
- switch (field) {
7999
- case 1:
8000
- var value = /** @type {string} */ (reader.readString());
8001
- msg.setName(value);
8002
- break;
8003
- case 2:
8004
- var value = /** @type {string} */ (reader.readString());
8005
- msg.setVersion(value);
8006
- break;
8007
- case 3:
8008
- var value = /** @type {string} */ (reader.readString());
8009
- msg.setDownloadUrl(value);
8010
- break;
8011
- case 4:
8012
- var value = msg.getChecksumsMap();
8013
- reader.readMessage(value, function(message, reader) {
8014
- jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readBytes, null, "", "");
8015
- });
8016
- break;
8017
- case 5:
8018
- var value = new proto.pulumirpc.Parameterization;
8019
- reader.readMessage(value,proto.pulumirpc.Parameterization.deserializeBinaryFromReader);
8020
- msg.setParameterization(value);
8021
- break;
8022
- default:
8023
- reader.skipField();
8024
- break;
8025
- }
8026
- }
8027
- return msg;
8028
- };
8029
-
8030
-
8031
- /**
8032
- * Serializes the message to binary data (in protobuf wire format).
8033
- * @return {!Uint8Array}
8034
- */
8035
- proto.pulumirpc.RegisterPackageRequest.prototype.serializeBinary = function() {
8036
- var writer = new jspb.BinaryWriter();
8037
- proto.pulumirpc.RegisterPackageRequest.serializeBinaryToWriter(this, writer);
8038
- return writer.getResultBuffer();
8039
- };
8040
-
8041
-
8042
- /**
8043
- * Serializes the given message to binary data (in protobuf wire
8044
- * format), writing to the given BinaryWriter.
8045
- * @param {!proto.pulumirpc.RegisterPackageRequest} message
8046
- * @param {!jspb.BinaryWriter} writer
8047
- * @suppress {unusedLocalVariables} f is only used for nested messages
8048
- */
8049
- proto.pulumirpc.RegisterPackageRequest.serializeBinaryToWriter = function(message, writer) {
8050
- var f = undefined;
8051
- f = message.getName();
8052
- if (f.length > 0) {
8053
- writer.writeString(
8054
- 1,
8055
- f
8056
- );
8057
- }
8058
- f = message.getVersion();
8059
- if (f.length > 0) {
8060
- writer.writeString(
8061
- 2,
8062
- f
8063
- );
8064
- }
8065
- f = message.getDownloadUrl();
8066
- if (f.length > 0) {
8067
- writer.writeString(
8068
- 3,
8069
- f
8070
- );
8071
- }
8072
- f = message.getChecksumsMap(true);
8073
- if (f && f.getLength() > 0) {
8074
- f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeBytes);
8075
- }
8076
- f = message.getParameterization();
8077
- if (f != null) {
8078
- writer.writeMessage(
8079
- 5,
8080
- f,
8081
- proto.pulumirpc.Parameterization.serializeBinaryToWriter
8082
- );
8083
- }
8084
- };
8085
-
8086
-
8087
- /**
8088
- * optional string name = 1;
8089
- * @return {string}
8090
- */
8091
- proto.pulumirpc.RegisterPackageRequest.prototype.getName = function() {
8092
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
8093
- };
8094
-
8095
-
8096
- /**
8097
- * @param {string} value
8098
- * @return {!proto.pulumirpc.RegisterPackageRequest} returns this
8099
- */
8100
- proto.pulumirpc.RegisterPackageRequest.prototype.setName = function(value) {
8101
- return jspb.Message.setProto3StringField(this, 1, value);
8102
- };
8103
-
8104
-
8105
- /**
8106
- * optional string version = 2;
8107
- * @return {string}
8108
- */
8109
- proto.pulumirpc.RegisterPackageRequest.prototype.getVersion = function() {
8110
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
8111
- };
8112
-
8113
-
8114
- /**
8115
- * @param {string} value
8116
- * @return {!proto.pulumirpc.RegisterPackageRequest} returns this
8117
- */
8118
- proto.pulumirpc.RegisterPackageRequest.prototype.setVersion = function(value) {
8119
- return jspb.Message.setProto3StringField(this, 2, value);
8120
- };
8121
-
8122
-
8123
- /**
8124
- * optional string download_url = 3;
8125
- * @return {string}
8126
- */
8127
- proto.pulumirpc.RegisterPackageRequest.prototype.getDownloadUrl = function() {
8128
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
8129
- };
8130
-
8131
-
8132
- /**
8133
- * @param {string} value
8134
- * @return {!proto.pulumirpc.RegisterPackageRequest} returns this
8135
- */
8136
- proto.pulumirpc.RegisterPackageRequest.prototype.setDownloadUrl = function(value) {
8137
- return jspb.Message.setProto3StringField(this, 3, value);
8138
- };
8139
-
8140
-
8141
- /**
8142
- * map<string, bytes> checksums = 4;
8143
- * @param {boolean=} opt_noLazyCreate Do not create the map if
8144
- * empty, instead returning `undefined`
8145
- * @return {!jspb.Map<string,!(string|Uint8Array)>}
8146
- */
8147
- proto.pulumirpc.RegisterPackageRequest.prototype.getChecksumsMap = function(opt_noLazyCreate) {
8148
- return /** @type {!jspb.Map<string,!(string|Uint8Array)>} */ (
8149
- jspb.Message.getMapField(this, 4, opt_noLazyCreate,
8150
- null));
8151
- };
8152
-
8153
-
8154
- /**
8155
- * Clears values from the map. The map will be non-null.
8156
- * @return {!proto.pulumirpc.RegisterPackageRequest} returns this
8157
- */
8158
- proto.pulumirpc.RegisterPackageRequest.prototype.clearChecksumsMap = function() {
8159
- this.getChecksumsMap().clear();
8160
- return this;};
8161
-
8162
-
8163
- /**
8164
- * optional Parameterization parameterization = 5;
8165
- * @return {?proto.pulumirpc.Parameterization}
8166
- */
8167
- proto.pulumirpc.RegisterPackageRequest.prototype.getParameterization = function() {
8168
- return /** @type{?proto.pulumirpc.Parameterization} */ (
8169
- jspb.Message.getWrapperField(this, proto.pulumirpc.Parameterization, 5));
8170
- };
8171
-
8172
-
8173
- /**
8174
- * @param {?proto.pulumirpc.Parameterization|undefined} value
8175
- * @return {!proto.pulumirpc.RegisterPackageRequest} returns this
8176
- */
8177
- proto.pulumirpc.RegisterPackageRequest.prototype.setParameterization = function(value) {
8178
- return jspb.Message.setWrapperField(this, 5, value);
8179
- };
8180
-
8181
-
8182
- /**
8183
- * Clears the message field making it undefined.
8184
- * @return {!proto.pulumirpc.RegisterPackageRequest} returns this
8185
- */
8186
- proto.pulumirpc.RegisterPackageRequest.prototype.clearParameterization = function() {
8187
- return this.setParameterization(undefined);
8188
- };
8189
-
8190
-
8191
- /**
8192
- * Returns whether this field is set.
8193
- * @return {boolean}
8194
- */
8195
- proto.pulumirpc.RegisterPackageRequest.prototype.hasParameterization = function() {
8196
- return jspb.Message.getField(this, 5) != null;
8197
- };
8198
-
8199
-
8200
-
8201
-
8202
-
8203
- if (jspb.Message.GENERATE_TO_OBJECT) {
8204
- /**
8205
- * Creates an object representation of this proto.
8206
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
8207
- * Optional fields that are not set will be set to undefined.
8208
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8209
- * For the list of reserved names please see:
8210
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8211
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8212
- * JSPB instance for transitional soy proto support:
8213
- * http://goto/soy-param-migration
8214
- * @return {!Object}
8215
- */
8216
- proto.pulumirpc.RegisterPackageResponse.prototype.toObject = function(opt_includeInstance) {
8217
- return proto.pulumirpc.RegisterPackageResponse.toObject(opt_includeInstance, this);
8218
- };
8219
-
8220
-
8221
- /**
8222
- * Static version of the {@see toObject} method.
8223
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8224
- * the JSPB instance for transitional soy proto support:
8225
- * http://goto/soy-param-migration
8226
- * @param {!proto.pulumirpc.RegisterPackageResponse} msg The msg instance to transform.
8227
- * @return {!Object}
8228
- * @suppress {unusedLocalVariables} f is only used for nested messages
8229
- */
8230
- proto.pulumirpc.RegisterPackageResponse.toObject = function(includeInstance, msg) {
8231
- var f, obj = {
8232
- ref: jspb.Message.getFieldWithDefault(msg, 1, "")
8233
- };
8234
-
8235
- if (includeInstance) {
8236
- obj.$jspbMessageInstance = msg;
8237
- }
8238
- return obj;
8239
- };
8240
- }
8241
-
8242
-
8243
- /**
8244
- * Deserializes binary data (in protobuf wire format).
8245
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
8246
- * @return {!proto.pulumirpc.RegisterPackageResponse}
8247
- */
8248
- proto.pulumirpc.RegisterPackageResponse.deserializeBinary = function(bytes) {
8249
- var reader = new jspb.BinaryReader(bytes);
8250
- var msg = new proto.pulumirpc.RegisterPackageResponse;
8251
- return proto.pulumirpc.RegisterPackageResponse.deserializeBinaryFromReader(msg, reader);
8252
- };
8253
-
8254
-
8255
- /**
8256
- * Deserializes binary data (in protobuf wire format) from the
8257
- * given reader into the given message object.
8258
- * @param {!proto.pulumirpc.RegisterPackageResponse} msg The message object to deserialize into.
8259
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8260
- * @return {!proto.pulumirpc.RegisterPackageResponse}
8261
- */
8262
- proto.pulumirpc.RegisterPackageResponse.deserializeBinaryFromReader = function(msg, reader) {
8263
- while (reader.nextField()) {
8264
- if (reader.isEndGroup()) {
8265
- break;
8266
- }
8267
- var field = reader.getFieldNumber();
8268
- switch (field) {
8269
- case 1:
8270
- var value = /** @type {string} */ (reader.readString());
8271
- msg.setRef(value);
8272
- break;
8273
- default:
8274
- reader.skipField();
8275
- break;
8276
- }
8277
- }
8278
- return msg;
8279
- };
8280
-
8281
-
8282
- /**
8283
- * Serializes the message to binary data (in protobuf wire format).
8284
- * @return {!Uint8Array}
8285
- */
8286
- proto.pulumirpc.RegisterPackageResponse.prototype.serializeBinary = function() {
8287
- var writer = new jspb.BinaryWriter();
8288
- proto.pulumirpc.RegisterPackageResponse.serializeBinaryToWriter(this, writer);
8289
- return writer.getResultBuffer();
8290
- };
8291
-
8292
-
8293
- /**
8294
- * Serializes the given message to binary data (in protobuf wire
8295
- * format), writing to the given BinaryWriter.
8296
- * @param {!proto.pulumirpc.RegisterPackageResponse} message
8297
- * @param {!jspb.BinaryWriter} writer
8298
- * @suppress {unusedLocalVariables} f is only used for nested messages
8299
- */
8300
- proto.pulumirpc.RegisterPackageResponse.serializeBinaryToWriter = function(message, writer) {
8301
- var f = undefined;
8302
- f = message.getRef();
8303
- if (f.length > 0) {
8304
- writer.writeString(
8305
- 1,
8306
- f
8307
- );
8308
- }
8309
- };
8310
-
8311
-
8312
- /**
8313
- * optional string ref = 1;
8314
- * @return {string}
8315
- */
8316
- proto.pulumirpc.RegisterPackageResponse.prototype.getRef = function() {
8317
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
8318
- };
8319
-
8320
-
8321
- /**
8322
- * @param {string} value
8323
- * @return {!proto.pulumirpc.RegisterPackageResponse} returns this
8324
- */
8325
- proto.pulumirpc.RegisterPackageResponse.prototype.setRef = function(value) {
8326
- return jspb.Message.setProto3StringField(this, 1, value);
8327
- };
8328
-
8329
-
8330
-
8331
-
8332
-
8333
- if (jspb.Message.GENERATE_TO_OBJECT) {
8334
- /**
8335
- * Creates an object representation of this proto.
8336
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
8337
- * Optional fields that are not set will be set to undefined.
8338
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8339
- * For the list of reserved names please see:
8340
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8341
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8342
- * JSPB instance for transitional soy proto support:
8343
- * http://goto/soy-param-migration
8344
- * @return {!Object}
8345
- */
8346
- proto.pulumirpc.Parameterization.prototype.toObject = function(opt_includeInstance) {
8347
- return proto.pulumirpc.Parameterization.toObject(opt_includeInstance, this);
8348
- };
8349
-
8350
-
8351
- /**
8352
- * Static version of the {@see toObject} method.
8353
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8354
- * the JSPB instance for transitional soy proto support:
8355
- * http://goto/soy-param-migration
8356
- * @param {!proto.pulumirpc.Parameterization} msg The msg instance to transform.
8357
- * @return {!Object}
8358
- * @suppress {unusedLocalVariables} f is only used for nested messages
8359
- */
8360
- proto.pulumirpc.Parameterization.toObject = function(includeInstance, msg) {
8361
- var f, obj = {
8362
- name: jspb.Message.getFieldWithDefault(msg, 1, ""),
8363
- version: jspb.Message.getFieldWithDefault(msg, 2, ""),
8364
- value: msg.getValue_asB64()
8365
- };
8366
-
8367
- if (includeInstance) {
8368
- obj.$jspbMessageInstance = msg;
8369
- }
8370
- return obj;
8371
- };
8372
- }
8373
-
8374
-
8375
- /**
8376
- * Deserializes binary data (in protobuf wire format).
8377
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
8378
- * @return {!proto.pulumirpc.Parameterization}
8379
- */
8380
- proto.pulumirpc.Parameterization.deserializeBinary = function(bytes) {
8381
- var reader = new jspb.BinaryReader(bytes);
8382
- var msg = new proto.pulumirpc.Parameterization;
8383
- return proto.pulumirpc.Parameterization.deserializeBinaryFromReader(msg, reader);
8384
- };
8385
-
8386
-
8387
- /**
8388
- * Deserializes binary data (in protobuf wire format) from the
8389
- * given reader into the given message object.
8390
- * @param {!proto.pulumirpc.Parameterization} msg The message object to deserialize into.
8391
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8392
- * @return {!proto.pulumirpc.Parameterization}
7358
+ * @return {!proto.pulumirpc.Parameterization}
8393
7359
  */
8394
7360
  proto.pulumirpc.Parameterization.deserializeBinaryFromReader = function(msg, reader) {
8395
7361
  while (reader.nextField()) {
@@ -8541,217 +7507,6 @@ proto.pulumirpc.Parameterization.prototype.setValue = function(value) {
8541
7507
  };
8542
7508
 
8543
7509
 
8544
-
8545
-
8546
-
8547
- if (jspb.Message.GENERATE_TO_OBJECT) {
8548
- /**
8549
- * Creates an object representation of this proto.
8550
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
8551
- * Optional fields that are not set will be set to undefined.
8552
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8553
- * For the list of reserved names please see:
8554
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8555
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8556
- * JSPB instance for transitional soy proto support:
8557
- * http://goto/soy-param-migration
8558
- * @return {!Object}
8559
- */
8560
- proto.pulumirpc.RegisterResourceHookRequest.prototype.toObject = function(opt_includeInstance) {
8561
- return proto.pulumirpc.RegisterResourceHookRequest.toObject(opt_includeInstance, this);
8562
- };
8563
-
8564
-
8565
- /**
8566
- * Static version of the {@see toObject} method.
8567
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8568
- * the JSPB instance for transitional soy proto support:
8569
- * http://goto/soy-param-migration
8570
- * @param {!proto.pulumirpc.RegisterResourceHookRequest} msg The msg instance to transform.
8571
- * @return {!Object}
8572
- * @suppress {unusedLocalVariables} f is only used for nested messages
8573
- */
8574
- proto.pulumirpc.RegisterResourceHookRequest.toObject = function(includeInstance, msg) {
8575
- var f, obj = {
8576
- name: jspb.Message.getFieldWithDefault(msg, 1, ""),
8577
- callback: (f = msg.getCallback()) && pulumi_callback_pb.Callback.toObject(includeInstance, f),
8578
- onDryRun: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
8579
- };
8580
-
8581
- if (includeInstance) {
8582
- obj.$jspbMessageInstance = msg;
8583
- }
8584
- return obj;
8585
- };
8586
- }
8587
-
8588
-
8589
- /**
8590
- * Deserializes binary data (in protobuf wire format).
8591
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
8592
- * @return {!proto.pulumirpc.RegisterResourceHookRequest}
8593
- */
8594
- proto.pulumirpc.RegisterResourceHookRequest.deserializeBinary = function(bytes) {
8595
- var reader = new jspb.BinaryReader(bytes);
8596
- var msg = new proto.pulumirpc.RegisterResourceHookRequest;
8597
- return proto.pulumirpc.RegisterResourceHookRequest.deserializeBinaryFromReader(msg, reader);
8598
- };
8599
-
8600
-
8601
- /**
8602
- * Deserializes binary data (in protobuf wire format) from the
8603
- * given reader into the given message object.
8604
- * @param {!proto.pulumirpc.RegisterResourceHookRequest} msg The message object to deserialize into.
8605
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8606
- * @return {!proto.pulumirpc.RegisterResourceHookRequest}
8607
- */
8608
- proto.pulumirpc.RegisterResourceHookRequest.deserializeBinaryFromReader = function(msg, reader) {
8609
- while (reader.nextField()) {
8610
- if (reader.isEndGroup()) {
8611
- break;
8612
- }
8613
- var field = reader.getFieldNumber();
8614
- switch (field) {
8615
- case 1:
8616
- var value = /** @type {string} */ (reader.readString());
8617
- msg.setName(value);
8618
- break;
8619
- case 2:
8620
- var value = new pulumi_callback_pb.Callback;
8621
- reader.readMessage(value,pulumi_callback_pb.Callback.deserializeBinaryFromReader);
8622
- msg.setCallback(value);
8623
- break;
8624
- case 3:
8625
- var value = /** @type {boolean} */ (reader.readBool());
8626
- msg.setOnDryRun(value);
8627
- break;
8628
- default:
8629
- reader.skipField();
8630
- break;
8631
- }
8632
- }
8633
- return msg;
8634
- };
8635
-
8636
-
8637
- /**
8638
- * Serializes the message to binary data (in protobuf wire format).
8639
- * @return {!Uint8Array}
8640
- */
8641
- proto.pulumirpc.RegisterResourceHookRequest.prototype.serializeBinary = function() {
8642
- var writer = new jspb.BinaryWriter();
8643
- proto.pulumirpc.RegisterResourceHookRequest.serializeBinaryToWriter(this, writer);
8644
- return writer.getResultBuffer();
8645
- };
8646
-
8647
-
8648
- /**
8649
- * Serializes the given message to binary data (in protobuf wire
8650
- * format), writing to the given BinaryWriter.
8651
- * @param {!proto.pulumirpc.RegisterResourceHookRequest} message
8652
- * @param {!jspb.BinaryWriter} writer
8653
- * @suppress {unusedLocalVariables} f is only used for nested messages
8654
- */
8655
- proto.pulumirpc.RegisterResourceHookRequest.serializeBinaryToWriter = function(message, writer) {
8656
- var f = undefined;
8657
- f = message.getName();
8658
- if (f.length > 0) {
8659
- writer.writeString(
8660
- 1,
8661
- f
8662
- );
8663
- }
8664
- f = message.getCallback();
8665
- if (f != null) {
8666
- writer.writeMessage(
8667
- 2,
8668
- f,
8669
- pulumi_callback_pb.Callback.serializeBinaryToWriter
8670
- );
8671
- }
8672
- f = message.getOnDryRun();
8673
- if (f) {
8674
- writer.writeBool(
8675
- 3,
8676
- f
8677
- );
8678
- }
8679
- };
8680
-
8681
-
8682
- /**
8683
- * optional string name = 1;
8684
- * @return {string}
8685
- */
8686
- proto.pulumirpc.RegisterResourceHookRequest.prototype.getName = function() {
8687
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
8688
- };
8689
-
8690
-
8691
- /**
8692
- * @param {string} value
8693
- * @return {!proto.pulumirpc.RegisterResourceHookRequest} returns this
8694
- */
8695
- proto.pulumirpc.RegisterResourceHookRequest.prototype.setName = function(value) {
8696
- return jspb.Message.setProto3StringField(this, 1, value);
8697
- };
8698
-
8699
-
8700
- /**
8701
- * optional Callback callback = 2;
8702
- * @return {?proto.pulumirpc.Callback}
8703
- */
8704
- proto.pulumirpc.RegisterResourceHookRequest.prototype.getCallback = function() {
8705
- return /** @type{?proto.pulumirpc.Callback} */ (
8706
- jspb.Message.getWrapperField(this, pulumi_callback_pb.Callback, 2));
8707
- };
8708
-
8709
-
8710
- /**
8711
- * @param {?proto.pulumirpc.Callback|undefined} value
8712
- * @return {!proto.pulumirpc.RegisterResourceHookRequest} returns this
8713
- */
8714
- proto.pulumirpc.RegisterResourceHookRequest.prototype.setCallback = function(value) {
8715
- return jspb.Message.setWrapperField(this, 2, value);
8716
- };
8717
-
8718
-
8719
- /**
8720
- * Clears the message field making it undefined.
8721
- * @return {!proto.pulumirpc.RegisterResourceHookRequest} returns this
8722
- */
8723
- proto.pulumirpc.RegisterResourceHookRequest.prototype.clearCallback = function() {
8724
- return this.setCallback(undefined);
8725
- };
8726
-
8727
-
8728
- /**
8729
- * Returns whether this field is set.
8730
- * @return {boolean}
8731
- */
8732
- proto.pulumirpc.RegisterResourceHookRequest.prototype.hasCallback = function() {
8733
- return jspb.Message.getField(this, 2) != null;
8734
- };
8735
-
8736
-
8737
- /**
8738
- * optional bool on_dry_run = 3;
8739
- * @return {boolean}
8740
- */
8741
- proto.pulumirpc.RegisterResourceHookRequest.prototype.getOnDryRun = function() {
8742
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
8743
- };
8744
-
8745
-
8746
- /**
8747
- * @param {boolean} value
8748
- * @return {!proto.pulumirpc.RegisterResourceHookRequest} returns this
8749
- */
8750
- proto.pulumirpc.RegisterResourceHookRequest.prototype.setOnDryRun = function(value) {
8751
- return jspb.Message.setProto3BooleanField(this, 3, value);
8752
- };
8753
-
8754
-
8755
7510
  /**
8756
7511
  * @enum {number}
8757
7512
  */