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

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,14 +32,18 @@ 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);
35
36
  goog.exportSymbol('proto.pulumirpc.RegisterResourceOutputsRequest', null, global);
36
37
  goog.exportSymbol('proto.pulumirpc.RegisterResourceRequest', null, global);
37
38
  goog.exportSymbol('proto.pulumirpc.RegisterResourceRequest.CustomTimeouts', null, global);
38
39
  goog.exportSymbol('proto.pulumirpc.RegisterResourceRequest.PropertyDependencies', null, global);
40
+ goog.exportSymbol('proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding', null, global);
39
41
  goog.exportSymbol('proto.pulumirpc.RegisterResourceResponse', null, global);
40
42
  goog.exportSymbol('proto.pulumirpc.RegisterResourceResponse.PropertyDependencies', null, global);
41
43
  goog.exportSymbol('proto.pulumirpc.ResourceCallRequest', null, global);
42
44
  goog.exportSymbol('proto.pulumirpc.ResourceCallRequest.ArgumentDependencies', null, global);
45
+ goog.exportSymbol('proto.pulumirpc.ResourceHookRequest', null, global);
46
+ goog.exportSymbol('proto.pulumirpc.ResourceHookResponse', null, global);
43
47
  goog.exportSymbol('proto.pulumirpc.ResourceInvokeRequest', null, global);
44
48
  goog.exportSymbol('proto.pulumirpc.Result', null, global);
45
49
  goog.exportSymbol('proto.pulumirpc.SupportsFeatureRequest', null, global);
@@ -197,6 +201,27 @@ if (goog.DEBUG && !COMPILED) {
197
201
  */
198
202
  proto.pulumirpc.RegisterResourceRequest.CustomTimeouts.displayName = 'proto.pulumirpc.RegisterResourceRequest.CustomTimeouts';
199
203
  }
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
+ }
200
225
  /**
201
226
  * Generated by JsPbCodeGenerator.
202
227
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -449,6 +474,48 @@ if (goog.DEBUG && !COMPILED) {
449
474
  */
450
475
  proto.pulumirpc.TransformInvokeOptions.displayName = 'proto.pulumirpc.TransformInvokeOptions';
451
476
  }
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
+ }
452
519
  /**
453
520
  * Generated by JsPbCodeGenerator.
454
521
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -512,6 +579,27 @@ if (goog.DEBUG && !COMPILED) {
512
579
  */
513
580
  proto.pulumirpc.Parameterization.displayName = 'proto.pulumirpc.Parameterization';
514
581
  }
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
+ }
515
603
 
516
604
 
517
605
 
@@ -1666,7 +1754,8 @@ proto.pulumirpc.RegisterResourceRequest.toObject = function(includeInstance, msg
1666
1754
  transformsList: jspb.Message.toObjectList(msg.getTransformsList(),
1667
1755
  pulumi_callback_pb.Callback.toObject, includeInstance),
1668
1756
  supportsresultreporting: jspb.Message.getBooleanFieldWithDefault(msg, 32, false),
1669
- packageref: jspb.Message.getFieldWithDefault(msg, 33, "")
1757
+ packageref: jspb.Message.getFieldWithDefault(msg, 33, ""),
1758
+ hooks: (f = msg.getHooks()) && proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.toObject(includeInstance, f)
1670
1759
  };
1671
1760
 
1672
1761
  if (includeInstance) {
@@ -1846,6 +1935,11 @@ proto.pulumirpc.RegisterResourceRequest.deserializeBinaryFromReader = function(m
1846
1935
  var value = /** @type {string} */ (reader.readString());
1847
1936
  msg.setPackageref(value);
1848
1937
  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;
1849
1943
  default:
1850
1944
  reader.skipField();
1851
1945
  break;
@@ -2102,6 +2196,14 @@ proto.pulumirpc.RegisterResourceRequest.serializeBinaryToWriter = function(messa
2102
2196
  f
2103
2197
  );
2104
2198
  }
2199
+ f = message.getHooks();
2200
+ if (f != null) {
2201
+ writer.writeMessage(
2202
+ 34,
2203
+ f,
2204
+ proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.serializeBinaryToWriter
2205
+ );
2206
+ }
2105
2207
  };
2106
2208
 
2107
2209
 
@@ -2451,127 +2553,528 @@ proto.pulumirpc.RegisterResourceRequest.CustomTimeouts.prototype.setDelete = fun
2451
2553
  };
2452
2554
 
2453
2555
 
2556
+
2454
2557
  /**
2455
- * optional string type = 1;
2456
- * @return {string}
2558
+ * List of repeated fields within this message type.
2559
+ * @private {!Array<number>}
2560
+ * @const
2457
2561
  */
2458
- proto.pulumirpc.RegisterResourceRequest.prototype.getType = function() {
2459
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2460
- };
2562
+ proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.repeatedFields_ = [1,2,3,4,5,6];
2461
2563
 
2462
2564
 
2565
+
2566
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2463
2567
  /**
2464
- * @param {string} value
2465
- * @return {!proto.pulumirpc.RegisterResourceRequest} returns this
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}
2466
2578
  */
2467
- proto.pulumirpc.RegisterResourceRequest.prototype.setType = function(value) {
2468
- return jspb.Message.setProto3StringField(this, 1, value);
2579
+ proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.prototype.toObject = function(opt_includeInstance) {
2580
+ return proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.toObject(opt_includeInstance, this);
2469
2581
  };
2470
2582
 
2471
2583
 
2472
2584
  /**
2473
- * optional string name = 2;
2474
- * @return {string}
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
2475
2592
  */
2476
- proto.pulumirpc.RegisterResourceRequest.prototype.getName = function() {
2477
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
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;
2478
2607
  };
2608
+ }
2479
2609
 
2480
2610
 
2481
2611
  /**
2482
- * @param {string} value
2483
- * @return {!proto.pulumirpc.RegisterResourceRequest} returns this
2612
+ * Deserializes binary data (in protobuf wire format).
2613
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2614
+ * @return {!proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding}
2484
2615
  */
2485
- proto.pulumirpc.RegisterResourceRequest.prototype.setName = function(value) {
2486
- return jspb.Message.setProto3StringField(this, 2, value);
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);
2487
2620
  };
2488
2621
 
2489
2622
 
2490
2623
  /**
2491
- * optional string parent = 3;
2492
- * @return {string}
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}
2493
2629
  */
2494
- proto.pulumirpc.RegisterResourceRequest.prototype.getParent = function() {
2495
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
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;
2496
2667
  };
2497
2668
 
2498
2669
 
2499
2670
  /**
2500
- * @param {string} value
2501
- * @return {!proto.pulumirpc.RegisterResourceRequest} returns this
2671
+ * Serializes the message to binary data (in protobuf wire format).
2672
+ * @return {!Uint8Array}
2502
2673
  */
2503
- proto.pulumirpc.RegisterResourceRequest.prototype.setParent = function(value) {
2504
- return jspb.Message.setProto3StringField(this, 3, value);
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();
2505
2678
  };
2506
2679
 
2507
2680
 
2508
2681
  /**
2509
- * optional bool custom = 4;
2510
- * @return {boolean}
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
2511
2687
  */
2512
- proto.pulumirpc.RegisterResourceRequest.prototype.getCustom = function() {
2513
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
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
+ }
2514
2732
  };
2515
2733
 
2516
2734
 
2517
2735
  /**
2518
- * @param {boolean} value
2519
- * @return {!proto.pulumirpc.RegisterResourceRequest} returns this
2736
+ * repeated string before_create = 1;
2737
+ * @return {!Array<string>}
2520
2738
  */
2521
- proto.pulumirpc.RegisterResourceRequest.prototype.setCustom = function(value) {
2522
- return jspb.Message.setProto3BooleanField(this, 4, value);
2739
+ proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.prototype.getBeforeCreateList = function() {
2740
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
2523
2741
  };
2524
2742
 
2525
2743
 
2526
2744
  /**
2527
- * optional google.protobuf.Struct object = 5;
2528
- * @return {?proto.google.protobuf.Struct}
2745
+ * @param {!Array<string>} value
2746
+ * @return {!proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding} returns this
2529
2747
  */
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));
2748
+ proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.prototype.setBeforeCreateList = function(value) {
2749
+ return jspb.Message.setField(this, 1, value || []);
2533
2750
  };
2534
2751
 
2535
2752
 
2536
2753
  /**
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);
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);
2542
2760
  };
2543
2761
 
2544
2762
 
2545
2763
  /**
2546
- * Clears the message field making it undefined.
2547
- * @return {!proto.pulumirpc.RegisterResourceRequest} returns this
2764
+ * Clears the list making it empty but non-null.
2765
+ * @return {!proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding} returns this
2548
2766
  */
2549
- proto.pulumirpc.RegisterResourceRequest.prototype.clearObject = function() {
2550
- return this.setObject(undefined);
2767
+ proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.prototype.clearBeforeCreateList = function() {
2768
+ return this.setBeforeCreateList([]);
2551
2769
  };
2552
2770
 
2553
2771
 
2554
2772
  /**
2555
- * Returns whether this field is set.
2556
- * @return {boolean}
2773
+ * repeated string after_create = 2;
2774
+ * @return {!Array<string>}
2557
2775
  */
2558
- proto.pulumirpc.RegisterResourceRequest.prototype.hasObject = function() {
2559
- return jspb.Message.getField(this, 5) != null;
2776
+ proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.prototype.getAfterCreateList = function() {
2777
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
2560
2778
  };
2561
2779
 
2562
2780
 
2563
2781
  /**
2564
- * optional bool protect = 6;
2565
- * @return {boolean}
2782
+ * @param {!Array<string>} value
2783
+ * @return {!proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding} returns this
2566
2784
  */
2567
- proto.pulumirpc.RegisterResourceRequest.prototype.getProtect = function() {
2568
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
2785
+ proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.prototype.setAfterCreateList = function(value) {
2786
+ return jspb.Message.setField(this, 2, value || []);
2569
2787
  };
2570
2788
 
2571
2789
 
2572
2790
  /**
2573
- * @param {boolean} value
2574
- * @return {!proto.pulumirpc.RegisterResourceRequest} returns this
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));
3072
+ };
3073
+
3074
+
3075
+ /**
3076
+ * @param {boolean} value
3077
+ * @return {!proto.pulumirpc.RegisterResourceRequest} returns this
2575
3078
  */
2576
3079
  proto.pulumirpc.RegisterResourceRequest.prototype.setProtect = function(value) {
2577
3080
  return jspb.Message.setField(this, 6, value);
@@ -3285,21 +3788,58 @@ proto.pulumirpc.RegisterResourceRequest.prototype.setPackageref = function(value
3285
3788
  };
3286
3789
 
3287
3790
 
3288
-
3289
3791
  /**
3290
- * List of repeated fields within this message type.
3291
- * @private {!Array<number>}
3292
- * @const
3792
+ * optional ResourceHooksBinding hooks = 34;
3793
+ * @return {?proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding}
3293
3794
  */
3294
- proto.pulumirpc.RegisterResourceResponse.repeatedFields_ = [5];
3295
-
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
+ };
3296
3799
 
3297
3800
 
3298
- if (jspb.Message.GENERATE_TO_OBJECT) {
3299
3801
  /**
3300
- * Creates an object representation of this proto.
3301
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3302
- * Optional fields that are not set will be set to undefined.
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
+
3809
+
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) {
3839
+ /**
3840
+ * Creates an object representation of this proto.
3841
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3842
+ * Optional fields that are not set will be set to undefined.
3303
3843
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3304
3844
  * For the list of reserved names please see:
3305
3845
  * net/proto2/compiler/js/internal/generator.cc#kKeyword.
@@ -6905,8 +7445,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
6905
7445
  * http://goto/soy-param-migration
6906
7446
  * @return {!Object}
6907
7447
  */
6908
- proto.pulumirpc.RegisterPackageRequest.prototype.toObject = function(opt_includeInstance) {
6909
- return proto.pulumirpc.RegisterPackageRequest.toObject(opt_includeInstance, this);
7448
+ proto.pulumirpc.ResourceHookRequest.prototype.toObject = function(opt_includeInstance) {
7449
+ return proto.pulumirpc.ResourceHookRequest.toObject(opt_includeInstance, this);
6910
7450
  };
6911
7451
 
6912
7452
 
@@ -6915,17 +7455,16 @@ proto.pulumirpc.RegisterPackageRequest.prototype.toObject = function(opt_include
6915
7455
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6916
7456
  * the JSPB instance for transitional soy proto support:
6917
7457
  * http://goto/soy-param-migration
6918
- * @param {!proto.pulumirpc.RegisterPackageRequest} msg The msg instance to transform.
7458
+ * @param {!proto.pulumirpc.ResourceHookRequest} msg The msg instance to transform.
6919
7459
  * @return {!Object}
6920
7460
  * @suppress {unusedLocalVariables} f is only used for nested messages
6921
7461
  */
6922
- proto.pulumirpc.RegisterPackageRequest.toObject = function(includeInstance, msg) {
7462
+ proto.pulumirpc.ResourceHookRequest.toObject = function(includeInstance, msg) {
6923
7463
  var f, obj = {
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)
7464
+ urn: jspb.Message.getFieldWithDefault(msg, 1, ""),
7465
+ id: jspb.Message.getFieldWithDefault(msg, 2, ""),
7466
+ inputs: (f = msg.getInputs()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
7467
+ outputs: (f = msg.getOutputs()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
6929
7468
  };
6930
7469
 
6931
7470
  if (includeInstance) {
@@ -6939,23 +7478,23 @@ proto.pulumirpc.RegisterPackageRequest.toObject = function(includeInstance, msg)
6939
7478
  /**
6940
7479
  * Deserializes binary data (in protobuf wire format).
6941
7480
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
6942
- * @return {!proto.pulumirpc.RegisterPackageRequest}
7481
+ * @return {!proto.pulumirpc.ResourceHookRequest}
6943
7482
  */
6944
- proto.pulumirpc.RegisterPackageRequest.deserializeBinary = function(bytes) {
7483
+ proto.pulumirpc.ResourceHookRequest.deserializeBinary = function(bytes) {
6945
7484
  var reader = new jspb.BinaryReader(bytes);
6946
- var msg = new proto.pulumirpc.RegisterPackageRequest;
6947
- return proto.pulumirpc.RegisterPackageRequest.deserializeBinaryFromReader(msg, reader);
7485
+ var msg = new proto.pulumirpc.ResourceHookRequest;
7486
+ return proto.pulumirpc.ResourceHookRequest.deserializeBinaryFromReader(msg, reader);
6948
7487
  };
6949
7488
 
6950
7489
 
6951
7490
  /**
6952
7491
  * Deserializes binary data (in protobuf wire format) from the
6953
7492
  * given reader into the given message object.
6954
- * @param {!proto.pulumirpc.RegisterPackageRequest} msg The message object to deserialize into.
7493
+ * @param {!proto.pulumirpc.ResourceHookRequest} msg The message object to deserialize into.
6955
7494
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6956
- * @return {!proto.pulumirpc.RegisterPackageRequest}
7495
+ * @return {!proto.pulumirpc.ResourceHookRequest}
6957
7496
  */
6958
- proto.pulumirpc.RegisterPackageRequest.deserializeBinaryFromReader = function(msg, reader) {
7497
+ proto.pulumirpc.ResourceHookRequest.deserializeBinaryFromReader = function(msg, reader) {
6959
7498
  while (reader.nextField()) {
6960
7499
  if (reader.isEndGroup()) {
6961
7500
  break;
@@ -6964,26 +7503,21 @@ proto.pulumirpc.RegisterPackageRequest.deserializeBinaryFromReader = function(ms
6964
7503
  switch (field) {
6965
7504
  case 1:
6966
7505
  var value = /** @type {string} */ (reader.readString());
6967
- msg.setName(value);
7506
+ msg.setUrn(value);
6968
7507
  break;
6969
7508
  case 2:
6970
7509
  var value = /** @type {string} */ (reader.readString());
6971
- msg.setVersion(value);
7510
+ msg.setId(value);
6972
7511
  break;
6973
7512
  case 3:
6974
- var value = /** @type {string} */ (reader.readString());
6975
- msg.setDownloadUrl(value);
7513
+ var value = new google_protobuf_struct_pb.Struct;
7514
+ reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
7515
+ msg.setInputs(value);
6976
7516
  break;
6977
7517
  case 4:
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
- });
6982
- break;
6983
- case 5:
6984
- var value = new proto.pulumirpc.Parameterization;
6985
- reader.readMessage(value,proto.pulumirpc.Parameterization.deserializeBinaryFromReader);
6986
- msg.setParameterization(value);
7518
+ var value = new google_protobuf_struct_pb.Struct;
7519
+ reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
7520
+ msg.setOutputs(value);
6987
7521
  break;
6988
7522
  default:
6989
7523
  reader.skipField();
@@ -6998,9 +7532,9 @@ proto.pulumirpc.RegisterPackageRequest.deserializeBinaryFromReader = function(ms
6998
7532
  * Serializes the message to binary data (in protobuf wire format).
6999
7533
  * @return {!Uint8Array}
7000
7534
  */
7001
- proto.pulumirpc.RegisterPackageRequest.prototype.serializeBinary = function() {
7535
+ proto.pulumirpc.ResourceHookRequest.prototype.serializeBinary = function() {
7002
7536
  var writer = new jspb.BinaryWriter();
7003
- proto.pulumirpc.RegisterPackageRequest.serializeBinaryToWriter(this, writer);
7537
+ proto.pulumirpc.ResourceHookRequest.serializeBinaryToWriter(this, writer);
7004
7538
  return writer.getResultBuffer();
7005
7539
  };
7006
7540
 
@@ -7008,149 +7542,143 @@ proto.pulumirpc.RegisterPackageRequest.prototype.serializeBinary = function() {
7008
7542
  /**
7009
7543
  * Serializes the given message to binary data (in protobuf wire
7010
7544
  * format), writing to the given BinaryWriter.
7011
- * @param {!proto.pulumirpc.RegisterPackageRequest} message
7545
+ * @param {!proto.pulumirpc.ResourceHookRequest} message
7012
7546
  * @param {!jspb.BinaryWriter} writer
7013
7547
  * @suppress {unusedLocalVariables} f is only used for nested messages
7014
7548
  */
7015
- proto.pulumirpc.RegisterPackageRequest.serializeBinaryToWriter = function(message, writer) {
7549
+ proto.pulumirpc.ResourceHookRequest.serializeBinaryToWriter = function(message, writer) {
7016
7550
  var f = undefined;
7017
- f = message.getName();
7551
+ f = message.getUrn();
7018
7552
  if (f.length > 0) {
7019
7553
  writer.writeString(
7020
7554
  1,
7021
7555
  f
7022
7556
  );
7023
7557
  }
7024
- f = message.getVersion();
7558
+ f = message.getId();
7025
7559
  if (f.length > 0) {
7026
7560
  writer.writeString(
7027
7561
  2,
7028
7562
  f
7029
7563
  );
7030
7564
  }
7031
- f = message.getDownloadUrl();
7032
- if (f.length > 0) {
7033
- writer.writeString(
7565
+ f = message.getInputs();
7566
+ if (f != null) {
7567
+ writer.writeMessage(
7034
7568
  3,
7035
- f
7569
+ f,
7570
+ google_protobuf_struct_pb.Struct.serializeBinaryToWriter
7036
7571
  );
7037
7572
  }
7038
- f = message.getChecksumsMap(true);
7039
- if (f && f.getLength() > 0) {
7040
- f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeBytes);
7041
- }
7042
- f = message.getParameterization();
7573
+ f = message.getOutputs();
7043
7574
  if (f != null) {
7044
7575
  writer.writeMessage(
7045
- 5,
7576
+ 4,
7046
7577
  f,
7047
- proto.pulumirpc.Parameterization.serializeBinaryToWriter
7578
+ google_protobuf_struct_pb.Struct.serializeBinaryToWriter
7048
7579
  );
7049
7580
  }
7050
7581
  };
7051
7582
 
7052
7583
 
7053
7584
  /**
7054
- * optional string name = 1;
7585
+ * optional string urn = 1;
7055
7586
  * @return {string}
7056
7587
  */
7057
- proto.pulumirpc.RegisterPackageRequest.prototype.getName = function() {
7588
+ proto.pulumirpc.ResourceHookRequest.prototype.getUrn = function() {
7058
7589
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
7059
7590
  };
7060
7591
 
7061
7592
 
7062
7593
  /**
7063
7594
  * @param {string} value
7064
- * @return {!proto.pulumirpc.RegisterPackageRequest} returns this
7595
+ * @return {!proto.pulumirpc.ResourceHookRequest} returns this
7065
7596
  */
7066
- proto.pulumirpc.RegisterPackageRequest.prototype.setName = function(value) {
7597
+ proto.pulumirpc.ResourceHookRequest.prototype.setUrn = function(value) {
7067
7598
  return jspb.Message.setProto3StringField(this, 1, value);
7068
7599
  };
7069
7600
 
7070
7601
 
7071
7602
  /**
7072
- * optional string version = 2;
7603
+ * optional string id = 2;
7073
7604
  * @return {string}
7074
7605
  */
7075
- proto.pulumirpc.RegisterPackageRequest.prototype.getVersion = function() {
7606
+ proto.pulumirpc.ResourceHookRequest.prototype.getId = function() {
7076
7607
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
7077
7608
  };
7078
7609
 
7079
7610
 
7080
7611
  /**
7081
7612
  * @param {string} value
7082
- * @return {!proto.pulumirpc.RegisterPackageRequest} returns this
7613
+ * @return {!proto.pulumirpc.ResourceHookRequest} returns this
7083
7614
  */
7084
- proto.pulumirpc.RegisterPackageRequest.prototype.setVersion = function(value) {
7615
+ proto.pulumirpc.ResourceHookRequest.prototype.setId = function(value) {
7085
7616
  return jspb.Message.setProto3StringField(this, 2, value);
7086
7617
  };
7087
7618
 
7088
7619
 
7089
7620
  /**
7090
- * optional string download_url = 3;
7091
- * @return {string}
7621
+ * optional google.protobuf.Struct inputs = 3;
7622
+ * @return {?proto.google.protobuf.Struct}
7092
7623
  */
7093
- proto.pulumirpc.RegisterPackageRequest.prototype.getDownloadUrl = function() {
7094
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
7624
+ proto.pulumirpc.ResourceHookRequest.prototype.getInputs = function() {
7625
+ return /** @type{?proto.google.protobuf.Struct} */ (
7626
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 3));
7095
7627
  };
7096
7628
 
7097
7629
 
7098
7630
  /**
7099
- * @param {string} value
7100
- * @return {!proto.pulumirpc.RegisterPackageRequest} returns this
7101
- */
7102
- proto.pulumirpc.RegisterPackageRequest.prototype.setDownloadUrl = function(value) {
7103
- return jspb.Message.setProto3StringField(this, 3, value);
7631
+ * @param {?proto.google.protobuf.Struct|undefined} value
7632
+ * @return {!proto.pulumirpc.ResourceHookRequest} returns this
7633
+ */
7634
+ proto.pulumirpc.ResourceHookRequest.prototype.setInputs = function(value) {
7635
+ return jspb.Message.setWrapperField(this, 3, value);
7104
7636
  };
7105
7637
 
7106
7638
 
7107
7639
  /**
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)>}
7640
+ * Clears the message field making it undefined.
7641
+ * @return {!proto.pulumirpc.ResourceHookRequest} returns this
7112
7642
  */
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));
7643
+ proto.pulumirpc.ResourceHookRequest.prototype.clearInputs = function() {
7644
+ return this.setInputs(undefined);
7117
7645
  };
7118
7646
 
7119
7647
 
7120
7648
  /**
7121
- * Clears values from the map. The map will be non-null.
7122
- * @return {!proto.pulumirpc.RegisterPackageRequest} returns this
7649
+ * Returns whether this field is set.
7650
+ * @return {boolean}
7123
7651
  */
7124
- proto.pulumirpc.RegisterPackageRequest.prototype.clearChecksumsMap = function() {
7125
- this.getChecksumsMap().clear();
7126
- return this;};
7652
+ proto.pulumirpc.ResourceHookRequest.prototype.hasInputs = function() {
7653
+ return jspb.Message.getField(this, 3) != null;
7654
+ };
7127
7655
 
7128
7656
 
7129
7657
  /**
7130
- * optional Parameterization parameterization = 5;
7131
- * @return {?proto.pulumirpc.Parameterization}
7658
+ * optional google.protobuf.Struct outputs = 4;
7659
+ * @return {?proto.google.protobuf.Struct}
7132
7660
  */
7133
- proto.pulumirpc.RegisterPackageRequest.prototype.getParameterization = function() {
7134
- return /** @type{?proto.pulumirpc.Parameterization} */ (
7135
- jspb.Message.getWrapperField(this, proto.pulumirpc.Parameterization, 5));
7661
+ proto.pulumirpc.ResourceHookRequest.prototype.getOutputs = function() {
7662
+ return /** @type{?proto.google.protobuf.Struct} */ (
7663
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 4));
7136
7664
  };
7137
7665
 
7138
7666
 
7139
7667
  /**
7140
- * @param {?proto.pulumirpc.Parameterization|undefined} value
7141
- * @return {!proto.pulumirpc.RegisterPackageRequest} returns this
7668
+ * @param {?proto.google.protobuf.Struct|undefined} value
7669
+ * @return {!proto.pulumirpc.ResourceHookRequest} returns this
7142
7670
  */
7143
- proto.pulumirpc.RegisterPackageRequest.prototype.setParameterization = function(value) {
7144
- return jspb.Message.setWrapperField(this, 5, value);
7671
+ proto.pulumirpc.ResourceHookRequest.prototype.setOutputs = function(value) {
7672
+ return jspb.Message.setWrapperField(this, 4, value);
7145
7673
  };
7146
7674
 
7147
7675
 
7148
7676
  /**
7149
7677
  * Clears the message field making it undefined.
7150
- * @return {!proto.pulumirpc.RegisterPackageRequest} returns this
7678
+ * @return {!proto.pulumirpc.ResourceHookRequest} returns this
7151
7679
  */
7152
- proto.pulumirpc.RegisterPackageRequest.prototype.clearParameterization = function() {
7153
- return this.setParameterization(undefined);
7680
+ proto.pulumirpc.ResourceHookRequest.prototype.clearOutputs = function() {
7681
+ return this.setOutputs(undefined);
7154
7682
  };
7155
7683
 
7156
7684
 
@@ -7158,8 +7686,8 @@ proto.pulumirpc.RegisterPackageRequest.prototype.clearParameterization = functio
7158
7686
  * Returns whether this field is set.
7159
7687
  * @return {boolean}
7160
7688
  */
7161
- proto.pulumirpc.RegisterPackageRequest.prototype.hasParameterization = function() {
7162
- return jspb.Message.getField(this, 5) != null;
7689
+ proto.pulumirpc.ResourceHookRequest.prototype.hasOutputs = function() {
7690
+ return jspb.Message.getField(this, 4) != null;
7163
7691
  };
7164
7692
 
7165
7693
 
@@ -7179,8 +7707,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
7179
7707
  * http://goto/soy-param-migration
7180
7708
  * @return {!Object}
7181
7709
  */
7182
- proto.pulumirpc.RegisterPackageResponse.prototype.toObject = function(opt_includeInstance) {
7183
- return proto.pulumirpc.RegisterPackageResponse.toObject(opt_includeInstance, this);
7710
+ proto.pulumirpc.ResourceHookResponse.prototype.toObject = function(opt_includeInstance) {
7711
+ return proto.pulumirpc.ResourceHookResponse.toObject(opt_includeInstance, this);
7184
7712
  };
7185
7713
 
7186
7714
 
@@ -7189,13 +7717,13 @@ proto.pulumirpc.RegisterPackageResponse.prototype.toObject = function(opt_includ
7189
7717
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7190
7718
  * the JSPB instance for transitional soy proto support:
7191
7719
  * http://goto/soy-param-migration
7192
- * @param {!proto.pulumirpc.RegisterPackageResponse} msg The msg instance to transform.
7720
+ * @param {!proto.pulumirpc.ResourceHookResponse} msg The msg instance to transform.
7193
7721
  * @return {!Object}
7194
7722
  * @suppress {unusedLocalVariables} f is only used for nested messages
7195
7723
  */
7196
- proto.pulumirpc.RegisterPackageResponse.toObject = function(includeInstance, msg) {
7724
+ proto.pulumirpc.ResourceHookResponse.toObject = function(includeInstance, msg) {
7197
7725
  var f, obj = {
7198
- ref: jspb.Message.getFieldWithDefault(msg, 1, "")
7726
+ error: jspb.Message.getFieldWithDefault(msg, 1, "")
7199
7727
  };
7200
7728
 
7201
7729
  if (includeInstance) {
@@ -7209,23 +7737,23 @@ proto.pulumirpc.RegisterPackageResponse.toObject = function(includeInstance, msg
7209
7737
  /**
7210
7738
  * Deserializes binary data (in protobuf wire format).
7211
7739
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
7212
- * @return {!proto.pulumirpc.RegisterPackageResponse}
7740
+ * @return {!proto.pulumirpc.ResourceHookResponse}
7213
7741
  */
7214
- proto.pulumirpc.RegisterPackageResponse.deserializeBinary = function(bytes) {
7742
+ proto.pulumirpc.ResourceHookResponse.deserializeBinary = function(bytes) {
7215
7743
  var reader = new jspb.BinaryReader(bytes);
7216
- var msg = new proto.pulumirpc.RegisterPackageResponse;
7217
- return proto.pulumirpc.RegisterPackageResponse.deserializeBinaryFromReader(msg, reader);
7744
+ var msg = new proto.pulumirpc.ResourceHookResponse;
7745
+ return proto.pulumirpc.ResourceHookResponse.deserializeBinaryFromReader(msg, reader);
7218
7746
  };
7219
7747
 
7220
7748
 
7221
7749
  /**
7222
7750
  * Deserializes binary data (in protobuf wire format) from the
7223
7751
  * given reader into the given message object.
7224
- * @param {!proto.pulumirpc.RegisterPackageResponse} msg The message object to deserialize into.
7752
+ * @param {!proto.pulumirpc.ResourceHookResponse} msg The message object to deserialize into.
7225
7753
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7226
- * @return {!proto.pulumirpc.RegisterPackageResponse}
7754
+ * @return {!proto.pulumirpc.ResourceHookResponse}
7227
7755
  */
7228
- proto.pulumirpc.RegisterPackageResponse.deserializeBinaryFromReader = function(msg, reader) {
7756
+ proto.pulumirpc.ResourceHookResponse.deserializeBinaryFromReader = function(msg, reader) {
7229
7757
  while (reader.nextField()) {
7230
7758
  if (reader.isEndGroup()) {
7231
7759
  break;
@@ -7234,7 +7762,7 @@ proto.pulumirpc.RegisterPackageResponse.deserializeBinaryFromReader = function(m
7234
7762
  switch (field) {
7235
7763
  case 1:
7236
7764
  var value = /** @type {string} */ (reader.readString());
7237
- msg.setRef(value);
7765
+ msg.setError(value);
7238
7766
  break;
7239
7767
  default:
7240
7768
  reader.skipField();
@@ -7249,9 +7777,9 @@ proto.pulumirpc.RegisterPackageResponse.deserializeBinaryFromReader = function(m
7249
7777
  * Serializes the message to binary data (in protobuf wire format).
7250
7778
  * @return {!Uint8Array}
7251
7779
  */
7252
- proto.pulumirpc.RegisterPackageResponse.prototype.serializeBinary = function() {
7780
+ proto.pulumirpc.ResourceHookResponse.prototype.serializeBinary = function() {
7253
7781
  var writer = new jspb.BinaryWriter();
7254
- proto.pulumirpc.RegisterPackageResponse.serializeBinaryToWriter(this, writer);
7782
+ proto.pulumirpc.ResourceHookResponse.serializeBinaryToWriter(this, writer);
7255
7783
  return writer.getResultBuffer();
7256
7784
  };
7257
7785
 
@@ -7259,13 +7787,13 @@ proto.pulumirpc.RegisterPackageResponse.prototype.serializeBinary = function() {
7259
7787
  /**
7260
7788
  * Serializes the given message to binary data (in protobuf wire
7261
7789
  * format), writing to the given BinaryWriter.
7262
- * @param {!proto.pulumirpc.RegisterPackageResponse} message
7790
+ * @param {!proto.pulumirpc.ResourceHookResponse} message
7263
7791
  * @param {!jspb.BinaryWriter} writer
7264
7792
  * @suppress {unusedLocalVariables} f is only used for nested messages
7265
7793
  */
7266
- proto.pulumirpc.RegisterPackageResponse.serializeBinaryToWriter = function(message, writer) {
7794
+ proto.pulumirpc.ResourceHookResponse.serializeBinaryToWriter = function(message, writer) {
7267
7795
  var f = undefined;
7268
- f = message.getRef();
7796
+ f = message.getError();
7269
7797
  if (f.length > 0) {
7270
7798
  writer.writeString(
7271
7799
  1,
@@ -7276,19 +7804,19 @@ proto.pulumirpc.RegisterPackageResponse.serializeBinaryToWriter = function(messa
7276
7804
 
7277
7805
 
7278
7806
  /**
7279
- * optional string ref = 1;
7807
+ * optional string error = 1;
7280
7808
  * @return {string}
7281
7809
  */
7282
- proto.pulumirpc.RegisterPackageResponse.prototype.getRef = function() {
7810
+ proto.pulumirpc.ResourceHookResponse.prototype.getError = function() {
7283
7811
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
7284
7812
  };
7285
7813
 
7286
7814
 
7287
7815
  /**
7288
7816
  * @param {string} value
7289
- * @return {!proto.pulumirpc.RegisterPackageResponse} returns this
7817
+ * @return {!proto.pulumirpc.ResourceHookResponse} returns this
7290
7818
  */
7291
- proto.pulumirpc.RegisterPackageResponse.prototype.setRef = function(value) {
7819
+ proto.pulumirpc.ResourceHookResponse.prototype.setError = function(value) {
7292
7820
  return jspb.Message.setProto3StringField(this, 1, value);
7293
7821
  };
7294
7822
 
@@ -7309,8 +7837,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
7309
7837
  * http://goto/soy-param-migration
7310
7838
  * @return {!Object}
7311
7839
  */
7312
- proto.pulumirpc.Parameterization.prototype.toObject = function(opt_includeInstance) {
7313
- return proto.pulumirpc.Parameterization.toObject(opt_includeInstance, this);
7840
+ proto.pulumirpc.RegisterPackageRequest.prototype.toObject = function(opt_includeInstance) {
7841
+ return proto.pulumirpc.RegisterPackageRequest.toObject(opt_includeInstance, this);
7314
7842
  };
7315
7843
 
7316
7844
 
@@ -7319,15 +7847,17 @@ proto.pulumirpc.Parameterization.prototype.toObject = function(opt_includeInstan
7319
7847
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7320
7848
  * the JSPB instance for transitional soy proto support:
7321
7849
  * http://goto/soy-param-migration
7322
- * @param {!proto.pulumirpc.Parameterization} msg The msg instance to transform.
7850
+ * @param {!proto.pulumirpc.RegisterPackageRequest} msg The msg instance to transform.
7323
7851
  * @return {!Object}
7324
7852
  * @suppress {unusedLocalVariables} f is only used for nested messages
7325
7853
  */
7326
- proto.pulumirpc.Parameterization.toObject = function(includeInstance, msg) {
7854
+ proto.pulumirpc.RegisterPackageRequest.toObject = function(includeInstance, msg) {
7327
7855
  var f, obj = {
7328
7856
  name: jspb.Message.getFieldWithDefault(msg, 1, ""),
7329
7857
  version: jspb.Message.getFieldWithDefault(msg, 2, ""),
7330
- value: msg.getValue_asB64()
7858
+ downloadUrl: jspb.Message.getFieldWithDefault(msg, 3, ""),
7859
+ checksumsMap: (f = msg.getChecksumsMap()) ? f.toObject(includeInstance, undefined) : [],
7860
+ parameterization: (f = msg.getParameterization()) && proto.pulumirpc.Parameterization.toObject(includeInstance, f)
7331
7861
  };
7332
7862
 
7333
7863
  if (includeInstance) {
@@ -7341,23 +7871,23 @@ proto.pulumirpc.Parameterization.toObject = function(includeInstance, msg) {
7341
7871
  /**
7342
7872
  * Deserializes binary data (in protobuf wire format).
7343
7873
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
7344
- * @return {!proto.pulumirpc.Parameterization}
7874
+ * @return {!proto.pulumirpc.RegisterPackageRequest}
7345
7875
  */
7346
- proto.pulumirpc.Parameterization.deserializeBinary = function(bytes) {
7876
+ proto.pulumirpc.RegisterPackageRequest.deserializeBinary = function(bytes) {
7347
7877
  var reader = new jspb.BinaryReader(bytes);
7348
- var msg = new proto.pulumirpc.Parameterization;
7349
- return proto.pulumirpc.Parameterization.deserializeBinaryFromReader(msg, reader);
7878
+ var msg = new proto.pulumirpc.RegisterPackageRequest;
7879
+ return proto.pulumirpc.RegisterPackageRequest.deserializeBinaryFromReader(msg, reader);
7350
7880
  };
7351
7881
 
7352
7882
 
7353
7883
  /**
7354
7884
  * Deserializes binary data (in protobuf wire format) from the
7355
7885
  * given reader into the given message object.
7356
- * @param {!proto.pulumirpc.Parameterization} msg The message object to deserialize into.
7886
+ * @param {!proto.pulumirpc.RegisterPackageRequest} msg The message object to deserialize into.
7357
7887
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7358
- * @return {!proto.pulumirpc.Parameterization}
7888
+ * @return {!proto.pulumirpc.RegisterPackageRequest}
7359
7889
  */
7360
- proto.pulumirpc.Parameterization.deserializeBinaryFromReader = function(msg, reader) {
7890
+ proto.pulumirpc.RegisterPackageRequest.deserializeBinaryFromReader = function(msg, reader) {
7361
7891
  while (reader.nextField()) {
7362
7892
  if (reader.isEndGroup()) {
7363
7893
  break;
@@ -7373,8 +7903,19 @@ proto.pulumirpc.Parameterization.deserializeBinaryFromReader = function(msg, rea
7373
7903
  msg.setVersion(value);
7374
7904
  break;
7375
7905
  case 3:
7376
- var value = /** @type {!Uint8Array} */ (reader.readBytes());
7377
- msg.setValue(value);
7906
+ var value = /** @type {string} */ (reader.readString());
7907
+ msg.setDownloadUrl(value);
7908
+ break;
7909
+ case 4:
7910
+ var value = msg.getChecksumsMap();
7911
+ reader.readMessage(value, function(message, reader) {
7912
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readBytes, null, "", "");
7913
+ });
7914
+ break;
7915
+ case 5:
7916
+ var value = new proto.pulumirpc.Parameterization;
7917
+ reader.readMessage(value,proto.pulumirpc.Parameterization.deserializeBinaryFromReader);
7918
+ msg.setParameterization(value);
7378
7919
  break;
7379
7920
  default:
7380
7921
  reader.skipField();
@@ -7389,9 +7930,9 @@ proto.pulumirpc.Parameterization.deserializeBinaryFromReader = function(msg, rea
7389
7930
  * Serializes the message to binary data (in protobuf wire format).
7390
7931
  * @return {!Uint8Array}
7391
7932
  */
7392
- proto.pulumirpc.Parameterization.prototype.serializeBinary = function() {
7933
+ proto.pulumirpc.RegisterPackageRequest.prototype.serializeBinary = function() {
7393
7934
  var writer = new jspb.BinaryWriter();
7394
- proto.pulumirpc.Parameterization.serializeBinaryToWriter(this, writer);
7935
+ proto.pulumirpc.RegisterPackageRequest.serializeBinaryToWriter(this, writer);
7395
7936
  return writer.getResultBuffer();
7396
7937
  };
7397
7938
 
@@ -7399,11 +7940,11 @@ proto.pulumirpc.Parameterization.prototype.serializeBinary = function() {
7399
7940
  /**
7400
7941
  * Serializes the given message to binary data (in protobuf wire
7401
7942
  * format), writing to the given BinaryWriter.
7402
- * @param {!proto.pulumirpc.Parameterization} message
7943
+ * @param {!proto.pulumirpc.RegisterPackageRequest} message
7403
7944
  * @param {!jspb.BinaryWriter} writer
7404
7945
  * @suppress {unusedLocalVariables} f is only used for nested messages
7405
7946
  */
7406
- proto.pulumirpc.Parameterization.serializeBinaryToWriter = function(message, writer) {
7947
+ proto.pulumirpc.RegisterPackageRequest.serializeBinaryToWriter = function(message, writer) {
7407
7948
  var f = undefined;
7408
7949
  f = message.getName();
7409
7950
  if (f.length > 0) {
@@ -7419,13 +7960,25 @@ proto.pulumirpc.Parameterization.serializeBinaryToWriter = function(message, wri
7419
7960
  f
7420
7961
  );
7421
7962
  }
7422
- f = message.getValue_asU8();
7963
+ f = message.getDownloadUrl();
7423
7964
  if (f.length > 0) {
7424
- writer.writeBytes(
7965
+ writer.writeString(
7425
7966
  3,
7426
7967
  f
7427
7968
  );
7428
7969
  }
7970
+ f = message.getChecksumsMap(true);
7971
+ if (f && f.getLength() > 0) {
7972
+ f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeBytes);
7973
+ }
7974
+ f = message.getParameterization();
7975
+ if (f != null) {
7976
+ writer.writeMessage(
7977
+ 5,
7978
+ f,
7979
+ proto.pulumirpc.Parameterization.serializeBinaryToWriter
7980
+ );
7981
+ }
7429
7982
  };
7430
7983
 
7431
7984
 
@@ -7433,16 +7986,16 @@ proto.pulumirpc.Parameterization.serializeBinaryToWriter = function(message, wri
7433
7986
  * optional string name = 1;
7434
7987
  * @return {string}
7435
7988
  */
7436
- proto.pulumirpc.Parameterization.prototype.getName = function() {
7989
+ proto.pulumirpc.RegisterPackageRequest.prototype.getName = function() {
7437
7990
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
7438
7991
  };
7439
7992
 
7440
7993
 
7441
7994
  /**
7442
7995
  * @param {string} value
7443
- * @return {!proto.pulumirpc.Parameterization} returns this
7996
+ * @return {!proto.pulumirpc.RegisterPackageRequest} returns this
7444
7997
  */
7445
- proto.pulumirpc.Parameterization.prototype.setName = function(value) {
7998
+ proto.pulumirpc.RegisterPackageRequest.prototype.setName = function(value) {
7446
7999
  return jspb.Message.setProto3StringField(this, 1, value);
7447
8000
  };
7448
8001
 
@@ -7451,14 +8004,393 @@ proto.pulumirpc.Parameterization.prototype.setName = function(value) {
7451
8004
  * optional string version = 2;
7452
8005
  * @return {string}
7453
8006
  */
7454
- proto.pulumirpc.Parameterization.prototype.getVersion = function() {
8007
+ proto.pulumirpc.RegisterPackageRequest.prototype.getVersion = function() {
7455
8008
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
7456
8009
  };
7457
8010
 
7458
8011
 
7459
8012
  /**
7460
8013
  * @param {string} value
7461
- * @return {!proto.pulumirpc.Parameterization} returns this
8014
+ * @return {!proto.pulumirpc.RegisterPackageRequest} returns this
8015
+ */
8016
+ proto.pulumirpc.RegisterPackageRequest.prototype.setVersion = function(value) {
8017
+ return jspb.Message.setProto3StringField(this, 2, value);
8018
+ };
8019
+
8020
+
8021
+ /**
8022
+ * optional string download_url = 3;
8023
+ * @return {string}
8024
+ */
8025
+ proto.pulumirpc.RegisterPackageRequest.prototype.getDownloadUrl = function() {
8026
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
8027
+ };
8028
+
8029
+
8030
+ /**
8031
+ * @param {string} value
8032
+ * @return {!proto.pulumirpc.RegisterPackageRequest} returns this
8033
+ */
8034
+ proto.pulumirpc.RegisterPackageRequest.prototype.setDownloadUrl = function(value) {
8035
+ return jspb.Message.setProto3StringField(this, 3, value);
8036
+ };
8037
+
8038
+
8039
+ /**
8040
+ * map<string, bytes> checksums = 4;
8041
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
8042
+ * empty, instead returning `undefined`
8043
+ * @return {!jspb.Map<string,!(string|Uint8Array)>}
8044
+ */
8045
+ proto.pulumirpc.RegisterPackageRequest.prototype.getChecksumsMap = function(opt_noLazyCreate) {
8046
+ return /** @type {!jspb.Map<string,!(string|Uint8Array)>} */ (
8047
+ jspb.Message.getMapField(this, 4, opt_noLazyCreate,
8048
+ null));
8049
+ };
8050
+
8051
+
8052
+ /**
8053
+ * Clears values from the map. The map will be non-null.
8054
+ * @return {!proto.pulumirpc.RegisterPackageRequest} returns this
8055
+ */
8056
+ proto.pulumirpc.RegisterPackageRequest.prototype.clearChecksumsMap = function() {
8057
+ this.getChecksumsMap().clear();
8058
+ return this;};
8059
+
8060
+
8061
+ /**
8062
+ * optional Parameterization parameterization = 5;
8063
+ * @return {?proto.pulumirpc.Parameterization}
8064
+ */
8065
+ proto.pulumirpc.RegisterPackageRequest.prototype.getParameterization = function() {
8066
+ return /** @type{?proto.pulumirpc.Parameterization} */ (
8067
+ jspb.Message.getWrapperField(this, proto.pulumirpc.Parameterization, 5));
8068
+ };
8069
+
8070
+
8071
+ /**
8072
+ * @param {?proto.pulumirpc.Parameterization|undefined} value
8073
+ * @return {!proto.pulumirpc.RegisterPackageRequest} returns this
8074
+ */
8075
+ proto.pulumirpc.RegisterPackageRequest.prototype.setParameterization = function(value) {
8076
+ return jspb.Message.setWrapperField(this, 5, value);
8077
+ };
8078
+
8079
+
8080
+ /**
8081
+ * Clears the message field making it undefined.
8082
+ * @return {!proto.pulumirpc.RegisterPackageRequest} returns this
8083
+ */
8084
+ proto.pulumirpc.RegisterPackageRequest.prototype.clearParameterization = function() {
8085
+ return this.setParameterization(undefined);
8086
+ };
8087
+
8088
+
8089
+ /**
8090
+ * Returns whether this field is set.
8091
+ * @return {boolean}
8092
+ */
8093
+ proto.pulumirpc.RegisterPackageRequest.prototype.hasParameterization = function() {
8094
+ return jspb.Message.getField(this, 5) != null;
8095
+ };
8096
+
8097
+
8098
+
8099
+
8100
+
8101
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8102
+ /**
8103
+ * Creates an object representation of this proto.
8104
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8105
+ * Optional fields that are not set will be set to undefined.
8106
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8107
+ * For the list of reserved names please see:
8108
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8109
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8110
+ * JSPB instance for transitional soy proto support:
8111
+ * http://goto/soy-param-migration
8112
+ * @return {!Object}
8113
+ */
8114
+ proto.pulumirpc.RegisterPackageResponse.prototype.toObject = function(opt_includeInstance) {
8115
+ return proto.pulumirpc.RegisterPackageResponse.toObject(opt_includeInstance, this);
8116
+ };
8117
+
8118
+
8119
+ /**
8120
+ * Static version of the {@see toObject} method.
8121
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8122
+ * the JSPB instance for transitional soy proto support:
8123
+ * http://goto/soy-param-migration
8124
+ * @param {!proto.pulumirpc.RegisterPackageResponse} msg The msg instance to transform.
8125
+ * @return {!Object}
8126
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8127
+ */
8128
+ proto.pulumirpc.RegisterPackageResponse.toObject = function(includeInstance, msg) {
8129
+ var f, obj = {
8130
+ ref: jspb.Message.getFieldWithDefault(msg, 1, "")
8131
+ };
8132
+
8133
+ if (includeInstance) {
8134
+ obj.$jspbMessageInstance = msg;
8135
+ }
8136
+ return obj;
8137
+ };
8138
+ }
8139
+
8140
+
8141
+ /**
8142
+ * Deserializes binary data (in protobuf wire format).
8143
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8144
+ * @return {!proto.pulumirpc.RegisterPackageResponse}
8145
+ */
8146
+ proto.pulumirpc.RegisterPackageResponse.deserializeBinary = function(bytes) {
8147
+ var reader = new jspb.BinaryReader(bytes);
8148
+ var msg = new proto.pulumirpc.RegisterPackageResponse;
8149
+ return proto.pulumirpc.RegisterPackageResponse.deserializeBinaryFromReader(msg, reader);
8150
+ };
8151
+
8152
+
8153
+ /**
8154
+ * Deserializes binary data (in protobuf wire format) from the
8155
+ * given reader into the given message object.
8156
+ * @param {!proto.pulumirpc.RegisterPackageResponse} msg The message object to deserialize into.
8157
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8158
+ * @return {!proto.pulumirpc.RegisterPackageResponse}
8159
+ */
8160
+ proto.pulumirpc.RegisterPackageResponse.deserializeBinaryFromReader = function(msg, reader) {
8161
+ while (reader.nextField()) {
8162
+ if (reader.isEndGroup()) {
8163
+ break;
8164
+ }
8165
+ var field = reader.getFieldNumber();
8166
+ switch (field) {
8167
+ case 1:
8168
+ var value = /** @type {string} */ (reader.readString());
8169
+ msg.setRef(value);
8170
+ break;
8171
+ default:
8172
+ reader.skipField();
8173
+ break;
8174
+ }
8175
+ }
8176
+ return msg;
8177
+ };
8178
+
8179
+
8180
+ /**
8181
+ * Serializes the message to binary data (in protobuf wire format).
8182
+ * @return {!Uint8Array}
8183
+ */
8184
+ proto.pulumirpc.RegisterPackageResponse.prototype.serializeBinary = function() {
8185
+ var writer = new jspb.BinaryWriter();
8186
+ proto.pulumirpc.RegisterPackageResponse.serializeBinaryToWriter(this, writer);
8187
+ return writer.getResultBuffer();
8188
+ };
8189
+
8190
+
8191
+ /**
8192
+ * Serializes the given message to binary data (in protobuf wire
8193
+ * format), writing to the given BinaryWriter.
8194
+ * @param {!proto.pulumirpc.RegisterPackageResponse} message
8195
+ * @param {!jspb.BinaryWriter} writer
8196
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8197
+ */
8198
+ proto.pulumirpc.RegisterPackageResponse.serializeBinaryToWriter = function(message, writer) {
8199
+ var f = undefined;
8200
+ f = message.getRef();
8201
+ if (f.length > 0) {
8202
+ writer.writeString(
8203
+ 1,
8204
+ f
8205
+ );
8206
+ }
8207
+ };
8208
+
8209
+
8210
+ /**
8211
+ * optional string ref = 1;
8212
+ * @return {string}
8213
+ */
8214
+ proto.pulumirpc.RegisterPackageResponse.prototype.getRef = function() {
8215
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
8216
+ };
8217
+
8218
+
8219
+ /**
8220
+ * @param {string} value
8221
+ * @return {!proto.pulumirpc.RegisterPackageResponse} returns this
8222
+ */
8223
+ proto.pulumirpc.RegisterPackageResponse.prototype.setRef = function(value) {
8224
+ return jspb.Message.setProto3StringField(this, 1, value);
8225
+ };
8226
+
8227
+
8228
+
8229
+
8230
+
8231
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8232
+ /**
8233
+ * Creates an object representation of this proto.
8234
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8235
+ * Optional fields that are not set will be set to undefined.
8236
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8237
+ * For the list of reserved names please see:
8238
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8239
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8240
+ * JSPB instance for transitional soy proto support:
8241
+ * http://goto/soy-param-migration
8242
+ * @return {!Object}
8243
+ */
8244
+ proto.pulumirpc.Parameterization.prototype.toObject = function(opt_includeInstance) {
8245
+ return proto.pulumirpc.Parameterization.toObject(opt_includeInstance, this);
8246
+ };
8247
+
8248
+
8249
+ /**
8250
+ * Static version of the {@see toObject} method.
8251
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8252
+ * the JSPB instance for transitional soy proto support:
8253
+ * http://goto/soy-param-migration
8254
+ * @param {!proto.pulumirpc.Parameterization} msg The msg instance to transform.
8255
+ * @return {!Object}
8256
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8257
+ */
8258
+ proto.pulumirpc.Parameterization.toObject = function(includeInstance, msg) {
8259
+ var f, obj = {
8260
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
8261
+ version: jspb.Message.getFieldWithDefault(msg, 2, ""),
8262
+ value: msg.getValue_asB64()
8263
+ };
8264
+
8265
+ if (includeInstance) {
8266
+ obj.$jspbMessageInstance = msg;
8267
+ }
8268
+ return obj;
8269
+ };
8270
+ }
8271
+
8272
+
8273
+ /**
8274
+ * Deserializes binary data (in protobuf wire format).
8275
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8276
+ * @return {!proto.pulumirpc.Parameterization}
8277
+ */
8278
+ proto.pulumirpc.Parameterization.deserializeBinary = function(bytes) {
8279
+ var reader = new jspb.BinaryReader(bytes);
8280
+ var msg = new proto.pulumirpc.Parameterization;
8281
+ return proto.pulumirpc.Parameterization.deserializeBinaryFromReader(msg, reader);
8282
+ };
8283
+
8284
+
8285
+ /**
8286
+ * Deserializes binary data (in protobuf wire format) from the
8287
+ * given reader into the given message object.
8288
+ * @param {!proto.pulumirpc.Parameterization} msg The message object to deserialize into.
8289
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8290
+ * @return {!proto.pulumirpc.Parameterization}
8291
+ */
8292
+ proto.pulumirpc.Parameterization.deserializeBinaryFromReader = function(msg, reader) {
8293
+ while (reader.nextField()) {
8294
+ if (reader.isEndGroup()) {
8295
+ break;
8296
+ }
8297
+ var field = reader.getFieldNumber();
8298
+ switch (field) {
8299
+ case 1:
8300
+ var value = /** @type {string} */ (reader.readString());
8301
+ msg.setName(value);
8302
+ break;
8303
+ case 2:
8304
+ var value = /** @type {string} */ (reader.readString());
8305
+ msg.setVersion(value);
8306
+ break;
8307
+ case 3:
8308
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
8309
+ msg.setValue(value);
8310
+ break;
8311
+ default:
8312
+ reader.skipField();
8313
+ break;
8314
+ }
8315
+ }
8316
+ return msg;
8317
+ };
8318
+
8319
+
8320
+ /**
8321
+ * Serializes the message to binary data (in protobuf wire format).
8322
+ * @return {!Uint8Array}
8323
+ */
8324
+ proto.pulumirpc.Parameterization.prototype.serializeBinary = function() {
8325
+ var writer = new jspb.BinaryWriter();
8326
+ proto.pulumirpc.Parameterization.serializeBinaryToWriter(this, writer);
8327
+ return writer.getResultBuffer();
8328
+ };
8329
+
8330
+
8331
+ /**
8332
+ * Serializes the given message to binary data (in protobuf wire
8333
+ * format), writing to the given BinaryWriter.
8334
+ * @param {!proto.pulumirpc.Parameterization} message
8335
+ * @param {!jspb.BinaryWriter} writer
8336
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8337
+ */
8338
+ proto.pulumirpc.Parameterization.serializeBinaryToWriter = function(message, writer) {
8339
+ var f = undefined;
8340
+ f = message.getName();
8341
+ if (f.length > 0) {
8342
+ writer.writeString(
8343
+ 1,
8344
+ f
8345
+ );
8346
+ }
8347
+ f = message.getVersion();
8348
+ if (f.length > 0) {
8349
+ writer.writeString(
8350
+ 2,
8351
+ f
8352
+ );
8353
+ }
8354
+ f = message.getValue_asU8();
8355
+ if (f.length > 0) {
8356
+ writer.writeBytes(
8357
+ 3,
8358
+ f
8359
+ );
8360
+ }
8361
+ };
8362
+
8363
+
8364
+ /**
8365
+ * optional string name = 1;
8366
+ * @return {string}
8367
+ */
8368
+ proto.pulumirpc.Parameterization.prototype.getName = function() {
8369
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
8370
+ };
8371
+
8372
+
8373
+ /**
8374
+ * @param {string} value
8375
+ * @return {!proto.pulumirpc.Parameterization} returns this
8376
+ */
8377
+ proto.pulumirpc.Parameterization.prototype.setName = function(value) {
8378
+ return jspb.Message.setProto3StringField(this, 1, value);
8379
+ };
8380
+
8381
+
8382
+ /**
8383
+ * optional string version = 2;
8384
+ * @return {string}
8385
+ */
8386
+ proto.pulumirpc.Parameterization.prototype.getVersion = function() {
8387
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
8388
+ };
8389
+
8390
+
8391
+ /**
8392
+ * @param {string} value
8393
+ * @return {!proto.pulumirpc.Parameterization} returns this
7462
8394
  */
7463
8395
  proto.pulumirpc.Parameterization.prototype.setVersion = function(value) {
7464
8396
  return jspb.Message.setProto3StringField(this, 2, value);
@@ -7507,6 +8439,217 @@ proto.pulumirpc.Parameterization.prototype.setValue = function(value) {
7507
8439
  };
7508
8440
 
7509
8441
 
8442
+
8443
+
8444
+
8445
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8446
+ /**
8447
+ * Creates an object representation of this proto.
8448
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8449
+ * Optional fields that are not set will be set to undefined.
8450
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8451
+ * For the list of reserved names please see:
8452
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8453
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8454
+ * JSPB instance for transitional soy proto support:
8455
+ * http://goto/soy-param-migration
8456
+ * @return {!Object}
8457
+ */
8458
+ proto.pulumirpc.RegisterResourceHookRequest.prototype.toObject = function(opt_includeInstance) {
8459
+ return proto.pulumirpc.RegisterResourceHookRequest.toObject(opt_includeInstance, this);
8460
+ };
8461
+
8462
+
8463
+ /**
8464
+ * Static version of the {@see toObject} method.
8465
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8466
+ * the JSPB instance for transitional soy proto support:
8467
+ * http://goto/soy-param-migration
8468
+ * @param {!proto.pulumirpc.RegisterResourceHookRequest} msg The msg instance to transform.
8469
+ * @return {!Object}
8470
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8471
+ */
8472
+ proto.pulumirpc.RegisterResourceHookRequest.toObject = function(includeInstance, msg) {
8473
+ var f, obj = {
8474
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
8475
+ callback: (f = msg.getCallback()) && pulumi_callback_pb.Callback.toObject(includeInstance, f),
8476
+ onDryRun: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
8477
+ };
8478
+
8479
+ if (includeInstance) {
8480
+ obj.$jspbMessageInstance = msg;
8481
+ }
8482
+ return obj;
8483
+ };
8484
+ }
8485
+
8486
+
8487
+ /**
8488
+ * Deserializes binary data (in protobuf wire format).
8489
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8490
+ * @return {!proto.pulumirpc.RegisterResourceHookRequest}
8491
+ */
8492
+ proto.pulumirpc.RegisterResourceHookRequest.deserializeBinary = function(bytes) {
8493
+ var reader = new jspb.BinaryReader(bytes);
8494
+ var msg = new proto.pulumirpc.RegisterResourceHookRequest;
8495
+ return proto.pulumirpc.RegisterResourceHookRequest.deserializeBinaryFromReader(msg, reader);
8496
+ };
8497
+
8498
+
8499
+ /**
8500
+ * Deserializes binary data (in protobuf wire format) from the
8501
+ * given reader into the given message object.
8502
+ * @param {!proto.pulumirpc.RegisterResourceHookRequest} msg The message object to deserialize into.
8503
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8504
+ * @return {!proto.pulumirpc.RegisterResourceHookRequest}
8505
+ */
8506
+ proto.pulumirpc.RegisterResourceHookRequest.deserializeBinaryFromReader = function(msg, reader) {
8507
+ while (reader.nextField()) {
8508
+ if (reader.isEndGroup()) {
8509
+ break;
8510
+ }
8511
+ var field = reader.getFieldNumber();
8512
+ switch (field) {
8513
+ case 1:
8514
+ var value = /** @type {string} */ (reader.readString());
8515
+ msg.setName(value);
8516
+ break;
8517
+ case 2:
8518
+ var value = new pulumi_callback_pb.Callback;
8519
+ reader.readMessage(value,pulumi_callback_pb.Callback.deserializeBinaryFromReader);
8520
+ msg.setCallback(value);
8521
+ break;
8522
+ case 3:
8523
+ var value = /** @type {boolean} */ (reader.readBool());
8524
+ msg.setOnDryRun(value);
8525
+ break;
8526
+ default:
8527
+ reader.skipField();
8528
+ break;
8529
+ }
8530
+ }
8531
+ return msg;
8532
+ };
8533
+
8534
+
8535
+ /**
8536
+ * Serializes the message to binary data (in protobuf wire format).
8537
+ * @return {!Uint8Array}
8538
+ */
8539
+ proto.pulumirpc.RegisterResourceHookRequest.prototype.serializeBinary = function() {
8540
+ var writer = new jspb.BinaryWriter();
8541
+ proto.pulumirpc.RegisterResourceHookRequest.serializeBinaryToWriter(this, writer);
8542
+ return writer.getResultBuffer();
8543
+ };
8544
+
8545
+
8546
+ /**
8547
+ * Serializes the given message to binary data (in protobuf wire
8548
+ * format), writing to the given BinaryWriter.
8549
+ * @param {!proto.pulumirpc.RegisterResourceHookRequest} message
8550
+ * @param {!jspb.BinaryWriter} writer
8551
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8552
+ */
8553
+ proto.pulumirpc.RegisterResourceHookRequest.serializeBinaryToWriter = function(message, writer) {
8554
+ var f = undefined;
8555
+ f = message.getName();
8556
+ if (f.length > 0) {
8557
+ writer.writeString(
8558
+ 1,
8559
+ f
8560
+ );
8561
+ }
8562
+ f = message.getCallback();
8563
+ if (f != null) {
8564
+ writer.writeMessage(
8565
+ 2,
8566
+ f,
8567
+ pulumi_callback_pb.Callback.serializeBinaryToWriter
8568
+ );
8569
+ }
8570
+ f = message.getOnDryRun();
8571
+ if (f) {
8572
+ writer.writeBool(
8573
+ 3,
8574
+ f
8575
+ );
8576
+ }
8577
+ };
8578
+
8579
+
8580
+ /**
8581
+ * optional string name = 1;
8582
+ * @return {string}
8583
+ */
8584
+ proto.pulumirpc.RegisterResourceHookRequest.prototype.getName = function() {
8585
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
8586
+ };
8587
+
8588
+
8589
+ /**
8590
+ * @param {string} value
8591
+ * @return {!proto.pulumirpc.RegisterResourceHookRequest} returns this
8592
+ */
8593
+ proto.pulumirpc.RegisterResourceHookRequest.prototype.setName = function(value) {
8594
+ return jspb.Message.setProto3StringField(this, 1, value);
8595
+ };
8596
+
8597
+
8598
+ /**
8599
+ * optional Callback callback = 2;
8600
+ * @return {?proto.pulumirpc.Callback}
8601
+ */
8602
+ proto.pulumirpc.RegisterResourceHookRequest.prototype.getCallback = function() {
8603
+ return /** @type{?proto.pulumirpc.Callback} */ (
8604
+ jspb.Message.getWrapperField(this, pulumi_callback_pb.Callback, 2));
8605
+ };
8606
+
8607
+
8608
+ /**
8609
+ * @param {?proto.pulumirpc.Callback|undefined} value
8610
+ * @return {!proto.pulumirpc.RegisterResourceHookRequest} returns this
8611
+ */
8612
+ proto.pulumirpc.RegisterResourceHookRequest.prototype.setCallback = function(value) {
8613
+ return jspb.Message.setWrapperField(this, 2, value);
8614
+ };
8615
+
8616
+
8617
+ /**
8618
+ * Clears the message field making it undefined.
8619
+ * @return {!proto.pulumirpc.RegisterResourceHookRequest} returns this
8620
+ */
8621
+ proto.pulumirpc.RegisterResourceHookRequest.prototype.clearCallback = function() {
8622
+ return this.setCallback(undefined);
8623
+ };
8624
+
8625
+
8626
+ /**
8627
+ * Returns whether this field is set.
8628
+ * @return {boolean}
8629
+ */
8630
+ proto.pulumirpc.RegisterResourceHookRequest.prototype.hasCallback = function() {
8631
+ return jspb.Message.getField(this, 2) != null;
8632
+ };
8633
+
8634
+
8635
+ /**
8636
+ * optional bool on_dry_run = 3;
8637
+ * @return {boolean}
8638
+ */
8639
+ proto.pulumirpc.RegisterResourceHookRequest.prototype.getOnDryRun = function() {
8640
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
8641
+ };
8642
+
8643
+
8644
+ /**
8645
+ * @param {boolean} value
8646
+ * @return {!proto.pulumirpc.RegisterResourceHookRequest} returns this
8647
+ */
8648
+ proto.pulumirpc.RegisterResourceHookRequest.prototype.setOnDryRun = function(value) {
8649
+ return jspb.Message.setProto3BooleanField(this, 3, value);
8650
+ };
8651
+
8652
+
7510
8653
  /**
7511
8654
  * @enum {number}
7512
8655
  */