@pulumi/pulumi 3.216.0 → 3.217.0-alpha.x0abbc5f
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.
- package/package.json +1 -1
- package/proto/provider_pb.d.ts +5 -0
- package/proto/provider_pb.js +51 -2
- package/proto/resource_grpc_pb.d.ts +17 -0
- package/proto/resource_grpc_pb.js +25 -0
- package/proto/resource_pb.d.ts +115 -0
- package/proto/resource_pb.js +1034 -68
- package/runtime/closure/parseFunction.js +1 -1
- package/runtime/closure/parseFunction.js.map +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/proto/resource_pb.js
CHANGED
|
@@ -27,9 +27,12 @@ var pulumi_source_pb = require('./source_pb.js');
|
|
|
27
27
|
goog.object.extend(proto, pulumi_source_pb);
|
|
28
28
|
var pulumi_callback_pb = require('./callback_pb.js');
|
|
29
29
|
goog.object.extend(proto, pulumi_callback_pb);
|
|
30
|
+
goog.exportSymbol('proto.pulumirpc.ErrorHookRequest', null, global);
|
|
31
|
+
goog.exportSymbol('proto.pulumirpc.ErrorHookResponse', null, global);
|
|
30
32
|
goog.exportSymbol('proto.pulumirpc.Parameterization', null, global);
|
|
31
33
|
goog.exportSymbol('proto.pulumirpc.ReadResourceRequest', null, global);
|
|
32
34
|
goog.exportSymbol('proto.pulumirpc.ReadResourceResponse', null, global);
|
|
35
|
+
goog.exportSymbol('proto.pulumirpc.RegisterErrorHookRequest', null, global);
|
|
33
36
|
goog.exportSymbol('proto.pulumirpc.RegisterPackageRequest', null, global);
|
|
34
37
|
goog.exportSymbol('proto.pulumirpc.RegisterPackageResponse', null, global);
|
|
35
38
|
goog.exportSymbol('proto.pulumirpc.RegisterResourceHookRequest', null, global);
|
|
@@ -516,6 +519,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
516
519
|
*/
|
|
517
520
|
proto.pulumirpc.ResourceHookResponse.displayName = 'proto.pulumirpc.ResourceHookResponse';
|
|
518
521
|
}
|
|
522
|
+
/**
|
|
523
|
+
* Generated by JsPbCodeGenerator.
|
|
524
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
525
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
526
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
527
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
528
|
+
* valid.
|
|
529
|
+
* @extends {jspb.Message}
|
|
530
|
+
* @constructor
|
|
531
|
+
*/
|
|
532
|
+
proto.pulumirpc.ErrorHookRequest = function(opt_data) {
|
|
533
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.ErrorHookRequest.repeatedFields_, null);
|
|
534
|
+
};
|
|
535
|
+
goog.inherits(proto.pulumirpc.ErrorHookRequest, jspb.Message);
|
|
536
|
+
if (goog.DEBUG && !COMPILED) {
|
|
537
|
+
/**
|
|
538
|
+
* @public
|
|
539
|
+
* @override
|
|
540
|
+
*/
|
|
541
|
+
proto.pulumirpc.ErrorHookRequest.displayName = 'proto.pulumirpc.ErrorHookRequest';
|
|
542
|
+
}
|
|
543
|
+
/**
|
|
544
|
+
* Generated by JsPbCodeGenerator.
|
|
545
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
546
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
547
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
548
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
549
|
+
* valid.
|
|
550
|
+
* @extends {jspb.Message}
|
|
551
|
+
* @constructor
|
|
552
|
+
*/
|
|
553
|
+
proto.pulumirpc.ErrorHookResponse = function(opt_data) {
|
|
554
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
555
|
+
};
|
|
556
|
+
goog.inherits(proto.pulumirpc.ErrorHookResponse, jspb.Message);
|
|
557
|
+
if (goog.DEBUG && !COMPILED) {
|
|
558
|
+
/**
|
|
559
|
+
* @public
|
|
560
|
+
* @override
|
|
561
|
+
*/
|
|
562
|
+
proto.pulumirpc.ErrorHookResponse.displayName = 'proto.pulumirpc.ErrorHookResponse';
|
|
563
|
+
}
|
|
519
564
|
/**
|
|
520
565
|
* Generated by JsPbCodeGenerator.
|
|
521
566
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -600,6 +645,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
600
645
|
*/
|
|
601
646
|
proto.pulumirpc.RegisterResourceHookRequest.displayName = 'proto.pulumirpc.RegisterResourceHookRequest';
|
|
602
647
|
}
|
|
648
|
+
/**
|
|
649
|
+
* Generated by JsPbCodeGenerator.
|
|
650
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
651
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
652
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
653
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
654
|
+
* valid.
|
|
655
|
+
* @extends {jspb.Message}
|
|
656
|
+
* @constructor
|
|
657
|
+
*/
|
|
658
|
+
proto.pulumirpc.RegisterErrorHookRequest = function(opt_data) {
|
|
659
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
660
|
+
};
|
|
661
|
+
goog.inherits(proto.pulumirpc.RegisterErrorHookRequest, jspb.Message);
|
|
662
|
+
if (goog.DEBUG && !COMPILED) {
|
|
663
|
+
/**
|
|
664
|
+
* @public
|
|
665
|
+
* @override
|
|
666
|
+
*/
|
|
667
|
+
proto.pulumirpc.RegisterErrorHookRequest.displayName = 'proto.pulumirpc.RegisterErrorHookRequest';
|
|
668
|
+
}
|
|
603
669
|
|
|
604
670
|
|
|
605
671
|
|
|
@@ -2705,7 +2771,7 @@ proto.pulumirpc.RegisterResourceRequest.CustomTimeouts.prototype.setDelete = fun
|
|
|
2705
2771
|
* @private {!Array<number>}
|
|
2706
2772
|
* @const
|
|
2707
2773
|
*/
|
|
2708
|
-
proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.repeatedFields_ = [1,2,3,4,5,6];
|
|
2774
|
+
proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.repeatedFields_ = [1,2,3,4,5,6,7];
|
|
2709
2775
|
|
|
2710
2776
|
|
|
2711
2777
|
|
|
@@ -2743,7 +2809,8 @@ afterCreateList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined
|
|
|
2743
2809
|
beforeUpdateList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
|
|
2744
2810
|
afterUpdateList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
|
|
2745
2811
|
beforeDeleteList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
|
|
2746
|
-
afterDeleteList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f
|
|
2812
|
+
afterDeleteList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
|
|
2813
|
+
onErrorList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f
|
|
2747
2814
|
};
|
|
2748
2815
|
|
|
2749
2816
|
if (includeInstance) {
|
|
@@ -2804,6 +2871,10 @@ proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.deserializeBinaryFr
|
|
|
2804
2871
|
var value = /** @type {string} */ (reader.readString());
|
|
2805
2872
|
msg.addAfterDelete(value);
|
|
2806
2873
|
break;
|
|
2874
|
+
case 7:
|
|
2875
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2876
|
+
msg.addOnError(value);
|
|
2877
|
+
break;
|
|
2807
2878
|
default:
|
|
2808
2879
|
reader.skipField();
|
|
2809
2880
|
break;
|
|
@@ -2875,6 +2946,13 @@ proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.serializeBinaryToWr
|
|
|
2875
2946
|
f
|
|
2876
2947
|
);
|
|
2877
2948
|
}
|
|
2949
|
+
f = message.getOnErrorList();
|
|
2950
|
+
if (f.length > 0) {
|
|
2951
|
+
writer.writeRepeatedString(
|
|
2952
|
+
7,
|
|
2953
|
+
f
|
|
2954
|
+
);
|
|
2955
|
+
}
|
|
2878
2956
|
};
|
|
2879
2957
|
|
|
2880
2958
|
|
|
@@ -3100,6 +3178,43 @@ proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.prototype.clearAfte
|
|
|
3100
3178
|
};
|
|
3101
3179
|
|
|
3102
3180
|
|
|
3181
|
+
/**
|
|
3182
|
+
* repeated string on_error = 7;
|
|
3183
|
+
* @return {!Array<string>}
|
|
3184
|
+
*/
|
|
3185
|
+
proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.prototype.getOnErrorList = function() {
|
|
3186
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 7));
|
|
3187
|
+
};
|
|
3188
|
+
|
|
3189
|
+
|
|
3190
|
+
/**
|
|
3191
|
+
* @param {!Array<string>} value
|
|
3192
|
+
* @return {!proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding} returns this
|
|
3193
|
+
*/
|
|
3194
|
+
proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.prototype.setOnErrorList = function(value) {
|
|
3195
|
+
return jspb.Message.setField(this, 7, value || []);
|
|
3196
|
+
};
|
|
3197
|
+
|
|
3198
|
+
|
|
3199
|
+
/**
|
|
3200
|
+
* @param {string} value
|
|
3201
|
+
* @param {number=} opt_index
|
|
3202
|
+
* @return {!proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding} returns this
|
|
3203
|
+
*/
|
|
3204
|
+
proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.prototype.addOnError = function(value, opt_index) {
|
|
3205
|
+
return jspb.Message.addToRepeatedField(this, 7, value, opt_index);
|
|
3206
|
+
};
|
|
3207
|
+
|
|
3208
|
+
|
|
3209
|
+
/**
|
|
3210
|
+
* Clears the list making it empty but non-null.
|
|
3211
|
+
* @return {!proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding} returns this
|
|
3212
|
+
*/
|
|
3213
|
+
proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.prototype.clearOnErrorList = function() {
|
|
3214
|
+
return this.setOnErrorList([]);
|
|
3215
|
+
};
|
|
3216
|
+
|
|
3217
|
+
|
|
3103
3218
|
/**
|
|
3104
3219
|
* optional string type = 1;
|
|
3105
3220
|
* @return {string}
|
|
@@ -8698,6 +8813,13 @@ proto.pulumirpc.ResourceHookResponse.prototype.setError = function(value) {
|
|
|
8698
8813
|
|
|
8699
8814
|
|
|
8700
8815
|
|
|
8816
|
+
/**
|
|
8817
|
+
* List of repeated fields within this message type.
|
|
8818
|
+
* @private {!Array<number>}
|
|
8819
|
+
* @const
|
|
8820
|
+
*/
|
|
8821
|
+
proto.pulumirpc.ErrorHookRequest.repeatedFields_ = [10];
|
|
8822
|
+
|
|
8701
8823
|
|
|
8702
8824
|
|
|
8703
8825
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -8713,8 +8835,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
8713
8835
|
* http://goto/soy-param-migration
|
|
8714
8836
|
* @return {!Object}
|
|
8715
8837
|
*/
|
|
8716
|
-
proto.pulumirpc.
|
|
8717
|
-
return proto.pulumirpc.
|
|
8838
|
+
proto.pulumirpc.ErrorHookRequest.prototype.toObject = function(opt_includeInstance) {
|
|
8839
|
+
return proto.pulumirpc.ErrorHookRequest.toObject(opt_includeInstance, this);
|
|
8718
8840
|
};
|
|
8719
8841
|
|
|
8720
8842
|
|
|
@@ -8723,17 +8845,22 @@ proto.pulumirpc.RegisterPackageRequest.prototype.toObject = function(opt_include
|
|
|
8723
8845
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8724
8846
|
* the JSPB instance for transitional soy proto support:
|
|
8725
8847
|
* http://goto/soy-param-migration
|
|
8726
|
-
* @param {!proto.pulumirpc.
|
|
8848
|
+
* @param {!proto.pulumirpc.ErrorHookRequest} msg The msg instance to transform.
|
|
8727
8849
|
* @return {!Object}
|
|
8728
8850
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8729
8851
|
*/
|
|
8730
|
-
proto.pulumirpc.
|
|
8852
|
+
proto.pulumirpc.ErrorHookRequest.toObject = function(includeInstance, msg) {
|
|
8731
8853
|
var f, obj = {
|
|
8732
|
-
|
|
8733
|
-
|
|
8734
|
-
|
|
8735
|
-
|
|
8736
|
-
|
|
8854
|
+
urn: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
8855
|
+
id: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
8856
|
+
name: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
8857
|
+
type: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
8858
|
+
newInputs: (f = msg.getNewInputs()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
8859
|
+
oldInputs: (f = msg.getOldInputs()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
8860
|
+
newOutputs: (f = msg.getNewOutputs()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
8861
|
+
oldOutputs: (f = msg.getOldOutputs()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
8862
|
+
failedOperation: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
8863
|
+
errorsList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f
|
|
8737
8864
|
};
|
|
8738
8865
|
|
|
8739
8866
|
if (includeInstance) {
|
|
@@ -8747,23 +8874,23 @@ parameterization: (f = msg.getParameterization()) && proto.pulumirpc.Parameteriz
|
|
|
8747
8874
|
/**
|
|
8748
8875
|
* Deserializes binary data (in protobuf wire format).
|
|
8749
8876
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8750
|
-
* @return {!proto.pulumirpc.
|
|
8877
|
+
* @return {!proto.pulumirpc.ErrorHookRequest}
|
|
8751
8878
|
*/
|
|
8752
|
-
proto.pulumirpc.
|
|
8879
|
+
proto.pulumirpc.ErrorHookRequest.deserializeBinary = function(bytes) {
|
|
8753
8880
|
var reader = new jspb.BinaryReader(bytes);
|
|
8754
|
-
var msg = new proto.pulumirpc.
|
|
8755
|
-
return proto.pulumirpc.
|
|
8881
|
+
var msg = new proto.pulumirpc.ErrorHookRequest;
|
|
8882
|
+
return proto.pulumirpc.ErrorHookRequest.deserializeBinaryFromReader(msg, reader);
|
|
8756
8883
|
};
|
|
8757
8884
|
|
|
8758
8885
|
|
|
8759
8886
|
/**
|
|
8760
8887
|
* Deserializes binary data (in protobuf wire format) from the
|
|
8761
8888
|
* given reader into the given message object.
|
|
8762
|
-
* @param {!proto.pulumirpc.
|
|
8889
|
+
* @param {!proto.pulumirpc.ErrorHookRequest} msg The message object to deserialize into.
|
|
8763
8890
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8764
|
-
* @return {!proto.pulumirpc.
|
|
8891
|
+
* @return {!proto.pulumirpc.ErrorHookRequest}
|
|
8765
8892
|
*/
|
|
8766
|
-
proto.pulumirpc.
|
|
8893
|
+
proto.pulumirpc.ErrorHookRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
8767
8894
|
while (reader.nextField()) {
|
|
8768
8895
|
if (reader.isEndGroup()) {
|
|
8769
8896
|
break;
|
|
@@ -8772,26 +8899,47 @@ proto.pulumirpc.RegisterPackageRequest.deserializeBinaryFromReader = function(ms
|
|
|
8772
8899
|
switch (field) {
|
|
8773
8900
|
case 1:
|
|
8774
8901
|
var value = /** @type {string} */ (reader.readString());
|
|
8775
|
-
msg.
|
|
8902
|
+
msg.setUrn(value);
|
|
8776
8903
|
break;
|
|
8777
8904
|
case 2:
|
|
8778
8905
|
var value = /** @type {string} */ (reader.readString());
|
|
8779
|
-
msg.
|
|
8906
|
+
msg.setId(value);
|
|
8780
8907
|
break;
|
|
8781
8908
|
case 3:
|
|
8782
8909
|
var value = /** @type {string} */ (reader.readString());
|
|
8783
|
-
msg.
|
|
8910
|
+
msg.setName(value);
|
|
8784
8911
|
break;
|
|
8785
8912
|
case 4:
|
|
8786
|
-
var value =
|
|
8787
|
-
|
|
8788
|
-
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readBytes, null, "", "");
|
|
8789
|
-
});
|
|
8913
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8914
|
+
msg.setType(value);
|
|
8790
8915
|
break;
|
|
8791
8916
|
case 5:
|
|
8792
|
-
var value = new
|
|
8793
|
-
reader.readMessage(value,
|
|
8794
|
-
msg.
|
|
8917
|
+
var value = new google_protobuf_struct_pb.Struct;
|
|
8918
|
+
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
8919
|
+
msg.setNewInputs(value);
|
|
8920
|
+
break;
|
|
8921
|
+
case 6:
|
|
8922
|
+
var value = new google_protobuf_struct_pb.Struct;
|
|
8923
|
+
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
8924
|
+
msg.setOldInputs(value);
|
|
8925
|
+
break;
|
|
8926
|
+
case 7:
|
|
8927
|
+
var value = new google_protobuf_struct_pb.Struct;
|
|
8928
|
+
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
8929
|
+
msg.setNewOutputs(value);
|
|
8930
|
+
break;
|
|
8931
|
+
case 8:
|
|
8932
|
+
var value = new google_protobuf_struct_pb.Struct;
|
|
8933
|
+
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
8934
|
+
msg.setOldOutputs(value);
|
|
8935
|
+
break;
|
|
8936
|
+
case 9:
|
|
8937
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8938
|
+
msg.setFailedOperation(value);
|
|
8939
|
+
break;
|
|
8940
|
+
case 10:
|
|
8941
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8942
|
+
msg.addErrors(value);
|
|
8795
8943
|
break;
|
|
8796
8944
|
default:
|
|
8797
8945
|
reader.skipField();
|
|
@@ -8806,9 +8954,9 @@ proto.pulumirpc.RegisterPackageRequest.deserializeBinaryFromReader = function(ms
|
|
|
8806
8954
|
* Serializes the message to binary data (in protobuf wire format).
|
|
8807
8955
|
* @return {!Uint8Array}
|
|
8808
8956
|
*/
|
|
8809
|
-
proto.pulumirpc.
|
|
8957
|
+
proto.pulumirpc.ErrorHookRequest.prototype.serializeBinary = function() {
|
|
8810
8958
|
var writer = new jspb.BinaryWriter();
|
|
8811
|
-
proto.pulumirpc.
|
|
8959
|
+
proto.pulumirpc.ErrorHookRequest.serializeBinaryToWriter(this, writer);
|
|
8812
8960
|
return writer.getResultBuffer();
|
|
8813
8961
|
};
|
|
8814
8962
|
|
|
@@ -8816,129 +8964,766 @@ proto.pulumirpc.RegisterPackageRequest.prototype.serializeBinary = function() {
|
|
|
8816
8964
|
/**
|
|
8817
8965
|
* Serializes the given message to binary data (in protobuf wire
|
|
8818
8966
|
* format), writing to the given BinaryWriter.
|
|
8819
|
-
* @param {!proto.pulumirpc.
|
|
8967
|
+
* @param {!proto.pulumirpc.ErrorHookRequest} message
|
|
8820
8968
|
* @param {!jspb.BinaryWriter} writer
|
|
8821
8969
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8822
8970
|
*/
|
|
8823
|
-
proto.pulumirpc.
|
|
8971
|
+
proto.pulumirpc.ErrorHookRequest.serializeBinaryToWriter = function(message, writer) {
|
|
8824
8972
|
var f = undefined;
|
|
8825
|
-
f = message.
|
|
8973
|
+
f = message.getUrn();
|
|
8826
8974
|
if (f.length > 0) {
|
|
8827
8975
|
writer.writeString(
|
|
8828
8976
|
1,
|
|
8829
8977
|
f
|
|
8830
8978
|
);
|
|
8831
8979
|
}
|
|
8832
|
-
f = message.
|
|
8980
|
+
f = message.getId();
|
|
8833
8981
|
if (f.length > 0) {
|
|
8834
8982
|
writer.writeString(
|
|
8835
8983
|
2,
|
|
8836
8984
|
f
|
|
8837
8985
|
);
|
|
8838
8986
|
}
|
|
8839
|
-
f = message.
|
|
8987
|
+
f = message.getName();
|
|
8840
8988
|
if (f.length > 0) {
|
|
8841
8989
|
writer.writeString(
|
|
8842
8990
|
3,
|
|
8843
8991
|
f
|
|
8844
8992
|
);
|
|
8845
8993
|
}
|
|
8846
|
-
f = message.
|
|
8847
|
-
if (f
|
|
8848
|
-
|
|
8994
|
+
f = message.getType();
|
|
8995
|
+
if (f.length > 0) {
|
|
8996
|
+
writer.writeString(
|
|
8997
|
+
4,
|
|
8998
|
+
f
|
|
8999
|
+
);
|
|
8849
9000
|
}
|
|
8850
|
-
f = message.
|
|
9001
|
+
f = message.getNewInputs();
|
|
8851
9002
|
if (f != null) {
|
|
8852
9003
|
writer.writeMessage(
|
|
8853
9004
|
5,
|
|
8854
9005
|
f,
|
|
8855
|
-
|
|
9006
|
+
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
|
9007
|
+
);
|
|
9008
|
+
}
|
|
9009
|
+
f = message.getOldInputs();
|
|
9010
|
+
if (f != null) {
|
|
9011
|
+
writer.writeMessage(
|
|
9012
|
+
6,
|
|
9013
|
+
f,
|
|
9014
|
+
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
|
9015
|
+
);
|
|
9016
|
+
}
|
|
9017
|
+
f = message.getNewOutputs();
|
|
9018
|
+
if (f != null) {
|
|
9019
|
+
writer.writeMessage(
|
|
9020
|
+
7,
|
|
9021
|
+
f,
|
|
9022
|
+
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
|
9023
|
+
);
|
|
9024
|
+
}
|
|
9025
|
+
f = message.getOldOutputs();
|
|
9026
|
+
if (f != null) {
|
|
9027
|
+
writer.writeMessage(
|
|
9028
|
+
8,
|
|
9029
|
+
f,
|
|
9030
|
+
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
|
9031
|
+
);
|
|
9032
|
+
}
|
|
9033
|
+
f = message.getFailedOperation();
|
|
9034
|
+
if (f.length > 0) {
|
|
9035
|
+
writer.writeString(
|
|
9036
|
+
9,
|
|
9037
|
+
f
|
|
9038
|
+
);
|
|
9039
|
+
}
|
|
9040
|
+
f = message.getErrorsList();
|
|
9041
|
+
if (f.length > 0) {
|
|
9042
|
+
writer.writeRepeatedString(
|
|
9043
|
+
10,
|
|
9044
|
+
f
|
|
8856
9045
|
);
|
|
8857
9046
|
}
|
|
8858
9047
|
};
|
|
8859
9048
|
|
|
8860
9049
|
|
|
8861
9050
|
/**
|
|
8862
|
-
* optional string
|
|
9051
|
+
* optional string urn = 1;
|
|
8863
9052
|
* @return {string}
|
|
8864
9053
|
*/
|
|
8865
|
-
proto.pulumirpc.
|
|
9054
|
+
proto.pulumirpc.ErrorHookRequest.prototype.getUrn = function() {
|
|
8866
9055
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
8867
9056
|
};
|
|
8868
9057
|
|
|
8869
9058
|
|
|
8870
9059
|
/**
|
|
8871
9060
|
* @param {string} value
|
|
8872
|
-
* @return {!proto.pulumirpc.
|
|
9061
|
+
* @return {!proto.pulumirpc.ErrorHookRequest} returns this
|
|
8873
9062
|
*/
|
|
8874
|
-
proto.pulumirpc.
|
|
9063
|
+
proto.pulumirpc.ErrorHookRequest.prototype.setUrn = function(value) {
|
|
8875
9064
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
8876
9065
|
};
|
|
8877
9066
|
|
|
8878
9067
|
|
|
8879
9068
|
/**
|
|
8880
|
-
* optional string
|
|
9069
|
+
* optional string id = 2;
|
|
8881
9070
|
* @return {string}
|
|
8882
9071
|
*/
|
|
8883
|
-
proto.pulumirpc.
|
|
9072
|
+
proto.pulumirpc.ErrorHookRequest.prototype.getId = function() {
|
|
8884
9073
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
8885
9074
|
};
|
|
8886
9075
|
|
|
8887
9076
|
|
|
8888
9077
|
/**
|
|
8889
9078
|
* @param {string} value
|
|
8890
|
-
* @return {!proto.pulumirpc.
|
|
9079
|
+
* @return {!proto.pulumirpc.ErrorHookRequest} returns this
|
|
8891
9080
|
*/
|
|
8892
|
-
proto.pulumirpc.
|
|
9081
|
+
proto.pulumirpc.ErrorHookRequest.prototype.setId = function(value) {
|
|
8893
9082
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
8894
9083
|
};
|
|
8895
9084
|
|
|
8896
9085
|
|
|
8897
9086
|
/**
|
|
8898
|
-
* optional string
|
|
9087
|
+
* optional string name = 3;
|
|
8899
9088
|
* @return {string}
|
|
8900
9089
|
*/
|
|
8901
|
-
proto.pulumirpc.
|
|
9090
|
+
proto.pulumirpc.ErrorHookRequest.prototype.getName = function() {
|
|
8902
9091
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
8903
9092
|
};
|
|
8904
9093
|
|
|
8905
9094
|
|
|
8906
9095
|
/**
|
|
8907
9096
|
* @param {string} value
|
|
8908
|
-
* @return {!proto.pulumirpc.
|
|
9097
|
+
* @return {!proto.pulumirpc.ErrorHookRequest} returns this
|
|
8909
9098
|
*/
|
|
8910
|
-
proto.pulumirpc.
|
|
9099
|
+
proto.pulumirpc.ErrorHookRequest.prototype.setName = function(value) {
|
|
8911
9100
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
8912
9101
|
};
|
|
8913
9102
|
|
|
8914
9103
|
|
|
8915
9104
|
/**
|
|
8916
|
-
*
|
|
8917
|
-
* @
|
|
8918
|
-
* empty, instead returning `undefined`
|
|
8919
|
-
* @return {!jspb.Map<string,!(string|Uint8Array)>}
|
|
9105
|
+
* optional string type = 4;
|
|
9106
|
+
* @return {string}
|
|
8920
9107
|
*/
|
|
8921
|
-
proto.pulumirpc.
|
|
8922
|
-
return /** @type {
|
|
8923
|
-
jspb.Message.getMapField(this, 4, opt_noLazyCreate,
|
|
8924
|
-
null));
|
|
9108
|
+
proto.pulumirpc.ErrorHookRequest.prototype.getType = function() {
|
|
9109
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
8925
9110
|
};
|
|
8926
9111
|
|
|
8927
9112
|
|
|
8928
9113
|
/**
|
|
8929
|
-
*
|
|
8930
|
-
* @return {!proto.pulumirpc.
|
|
9114
|
+
* @param {string} value
|
|
9115
|
+
* @return {!proto.pulumirpc.ErrorHookRequest} returns this
|
|
8931
9116
|
*/
|
|
8932
|
-
proto.pulumirpc.
|
|
8933
|
-
|
|
8934
|
-
return this;
|
|
9117
|
+
proto.pulumirpc.ErrorHookRequest.prototype.setType = function(value) {
|
|
9118
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
8935
9119
|
};
|
|
8936
9120
|
|
|
8937
9121
|
|
|
8938
9122
|
/**
|
|
8939
|
-
* optional
|
|
8940
|
-
* @return {?proto.
|
|
8941
|
-
*/
|
|
9123
|
+
* optional google.protobuf.Struct new_inputs = 5;
|
|
9124
|
+
* @return {?proto.google.protobuf.Struct}
|
|
9125
|
+
*/
|
|
9126
|
+
proto.pulumirpc.ErrorHookRequest.prototype.getNewInputs = function() {
|
|
9127
|
+
return /** @type{?proto.google.protobuf.Struct} */ (
|
|
9128
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 5));
|
|
9129
|
+
};
|
|
9130
|
+
|
|
9131
|
+
|
|
9132
|
+
/**
|
|
9133
|
+
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
9134
|
+
* @return {!proto.pulumirpc.ErrorHookRequest} returns this
|
|
9135
|
+
*/
|
|
9136
|
+
proto.pulumirpc.ErrorHookRequest.prototype.setNewInputs = function(value) {
|
|
9137
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
9138
|
+
};
|
|
9139
|
+
|
|
9140
|
+
|
|
9141
|
+
/**
|
|
9142
|
+
* Clears the message field making it undefined.
|
|
9143
|
+
* @return {!proto.pulumirpc.ErrorHookRequest} returns this
|
|
9144
|
+
*/
|
|
9145
|
+
proto.pulumirpc.ErrorHookRequest.prototype.clearNewInputs = function() {
|
|
9146
|
+
return this.setNewInputs(undefined);
|
|
9147
|
+
};
|
|
9148
|
+
|
|
9149
|
+
|
|
9150
|
+
/**
|
|
9151
|
+
* Returns whether this field is set.
|
|
9152
|
+
* @return {boolean}
|
|
9153
|
+
*/
|
|
9154
|
+
proto.pulumirpc.ErrorHookRequest.prototype.hasNewInputs = function() {
|
|
9155
|
+
return jspb.Message.getField(this, 5) != null;
|
|
9156
|
+
};
|
|
9157
|
+
|
|
9158
|
+
|
|
9159
|
+
/**
|
|
9160
|
+
* optional google.protobuf.Struct old_inputs = 6;
|
|
9161
|
+
* @return {?proto.google.protobuf.Struct}
|
|
9162
|
+
*/
|
|
9163
|
+
proto.pulumirpc.ErrorHookRequest.prototype.getOldInputs = function() {
|
|
9164
|
+
return /** @type{?proto.google.protobuf.Struct} */ (
|
|
9165
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 6));
|
|
9166
|
+
};
|
|
9167
|
+
|
|
9168
|
+
|
|
9169
|
+
/**
|
|
9170
|
+
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
9171
|
+
* @return {!proto.pulumirpc.ErrorHookRequest} returns this
|
|
9172
|
+
*/
|
|
9173
|
+
proto.pulumirpc.ErrorHookRequest.prototype.setOldInputs = function(value) {
|
|
9174
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
9175
|
+
};
|
|
9176
|
+
|
|
9177
|
+
|
|
9178
|
+
/**
|
|
9179
|
+
* Clears the message field making it undefined.
|
|
9180
|
+
* @return {!proto.pulumirpc.ErrorHookRequest} returns this
|
|
9181
|
+
*/
|
|
9182
|
+
proto.pulumirpc.ErrorHookRequest.prototype.clearOldInputs = function() {
|
|
9183
|
+
return this.setOldInputs(undefined);
|
|
9184
|
+
};
|
|
9185
|
+
|
|
9186
|
+
|
|
9187
|
+
/**
|
|
9188
|
+
* Returns whether this field is set.
|
|
9189
|
+
* @return {boolean}
|
|
9190
|
+
*/
|
|
9191
|
+
proto.pulumirpc.ErrorHookRequest.prototype.hasOldInputs = function() {
|
|
9192
|
+
return jspb.Message.getField(this, 6) != null;
|
|
9193
|
+
};
|
|
9194
|
+
|
|
9195
|
+
|
|
9196
|
+
/**
|
|
9197
|
+
* optional google.protobuf.Struct new_outputs = 7;
|
|
9198
|
+
* @return {?proto.google.protobuf.Struct}
|
|
9199
|
+
*/
|
|
9200
|
+
proto.pulumirpc.ErrorHookRequest.prototype.getNewOutputs = function() {
|
|
9201
|
+
return /** @type{?proto.google.protobuf.Struct} */ (
|
|
9202
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 7));
|
|
9203
|
+
};
|
|
9204
|
+
|
|
9205
|
+
|
|
9206
|
+
/**
|
|
9207
|
+
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
9208
|
+
* @return {!proto.pulumirpc.ErrorHookRequest} returns this
|
|
9209
|
+
*/
|
|
9210
|
+
proto.pulumirpc.ErrorHookRequest.prototype.setNewOutputs = function(value) {
|
|
9211
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
|
9212
|
+
};
|
|
9213
|
+
|
|
9214
|
+
|
|
9215
|
+
/**
|
|
9216
|
+
* Clears the message field making it undefined.
|
|
9217
|
+
* @return {!proto.pulumirpc.ErrorHookRequest} returns this
|
|
9218
|
+
*/
|
|
9219
|
+
proto.pulumirpc.ErrorHookRequest.prototype.clearNewOutputs = function() {
|
|
9220
|
+
return this.setNewOutputs(undefined);
|
|
9221
|
+
};
|
|
9222
|
+
|
|
9223
|
+
|
|
9224
|
+
/**
|
|
9225
|
+
* Returns whether this field is set.
|
|
9226
|
+
* @return {boolean}
|
|
9227
|
+
*/
|
|
9228
|
+
proto.pulumirpc.ErrorHookRequest.prototype.hasNewOutputs = function() {
|
|
9229
|
+
return jspb.Message.getField(this, 7) != null;
|
|
9230
|
+
};
|
|
9231
|
+
|
|
9232
|
+
|
|
9233
|
+
/**
|
|
9234
|
+
* optional google.protobuf.Struct old_outputs = 8;
|
|
9235
|
+
* @return {?proto.google.protobuf.Struct}
|
|
9236
|
+
*/
|
|
9237
|
+
proto.pulumirpc.ErrorHookRequest.prototype.getOldOutputs = function() {
|
|
9238
|
+
return /** @type{?proto.google.protobuf.Struct} */ (
|
|
9239
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 8));
|
|
9240
|
+
};
|
|
9241
|
+
|
|
9242
|
+
|
|
9243
|
+
/**
|
|
9244
|
+
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
9245
|
+
* @return {!proto.pulumirpc.ErrorHookRequest} returns this
|
|
9246
|
+
*/
|
|
9247
|
+
proto.pulumirpc.ErrorHookRequest.prototype.setOldOutputs = function(value) {
|
|
9248
|
+
return jspb.Message.setWrapperField(this, 8, value);
|
|
9249
|
+
};
|
|
9250
|
+
|
|
9251
|
+
|
|
9252
|
+
/**
|
|
9253
|
+
* Clears the message field making it undefined.
|
|
9254
|
+
* @return {!proto.pulumirpc.ErrorHookRequest} returns this
|
|
9255
|
+
*/
|
|
9256
|
+
proto.pulumirpc.ErrorHookRequest.prototype.clearOldOutputs = function() {
|
|
9257
|
+
return this.setOldOutputs(undefined);
|
|
9258
|
+
};
|
|
9259
|
+
|
|
9260
|
+
|
|
9261
|
+
/**
|
|
9262
|
+
* Returns whether this field is set.
|
|
9263
|
+
* @return {boolean}
|
|
9264
|
+
*/
|
|
9265
|
+
proto.pulumirpc.ErrorHookRequest.prototype.hasOldOutputs = function() {
|
|
9266
|
+
return jspb.Message.getField(this, 8) != null;
|
|
9267
|
+
};
|
|
9268
|
+
|
|
9269
|
+
|
|
9270
|
+
/**
|
|
9271
|
+
* optional string failed_operation = 9;
|
|
9272
|
+
* @return {string}
|
|
9273
|
+
*/
|
|
9274
|
+
proto.pulumirpc.ErrorHookRequest.prototype.getFailedOperation = function() {
|
|
9275
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
9276
|
+
};
|
|
9277
|
+
|
|
9278
|
+
|
|
9279
|
+
/**
|
|
9280
|
+
* @param {string} value
|
|
9281
|
+
* @return {!proto.pulumirpc.ErrorHookRequest} returns this
|
|
9282
|
+
*/
|
|
9283
|
+
proto.pulumirpc.ErrorHookRequest.prototype.setFailedOperation = function(value) {
|
|
9284
|
+
return jspb.Message.setProto3StringField(this, 9, value);
|
|
9285
|
+
};
|
|
9286
|
+
|
|
9287
|
+
|
|
9288
|
+
/**
|
|
9289
|
+
* repeated string errors = 10;
|
|
9290
|
+
* @return {!Array<string>}
|
|
9291
|
+
*/
|
|
9292
|
+
proto.pulumirpc.ErrorHookRequest.prototype.getErrorsList = function() {
|
|
9293
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 10));
|
|
9294
|
+
};
|
|
9295
|
+
|
|
9296
|
+
|
|
9297
|
+
/**
|
|
9298
|
+
* @param {!Array<string>} value
|
|
9299
|
+
* @return {!proto.pulumirpc.ErrorHookRequest} returns this
|
|
9300
|
+
*/
|
|
9301
|
+
proto.pulumirpc.ErrorHookRequest.prototype.setErrorsList = function(value) {
|
|
9302
|
+
return jspb.Message.setField(this, 10, value || []);
|
|
9303
|
+
};
|
|
9304
|
+
|
|
9305
|
+
|
|
9306
|
+
/**
|
|
9307
|
+
* @param {string} value
|
|
9308
|
+
* @param {number=} opt_index
|
|
9309
|
+
* @return {!proto.pulumirpc.ErrorHookRequest} returns this
|
|
9310
|
+
*/
|
|
9311
|
+
proto.pulumirpc.ErrorHookRequest.prototype.addErrors = function(value, opt_index) {
|
|
9312
|
+
return jspb.Message.addToRepeatedField(this, 10, value, opt_index);
|
|
9313
|
+
};
|
|
9314
|
+
|
|
9315
|
+
|
|
9316
|
+
/**
|
|
9317
|
+
* Clears the list making it empty but non-null.
|
|
9318
|
+
* @return {!proto.pulumirpc.ErrorHookRequest} returns this
|
|
9319
|
+
*/
|
|
9320
|
+
proto.pulumirpc.ErrorHookRequest.prototype.clearErrorsList = function() {
|
|
9321
|
+
return this.setErrorsList([]);
|
|
9322
|
+
};
|
|
9323
|
+
|
|
9324
|
+
|
|
9325
|
+
|
|
9326
|
+
|
|
9327
|
+
|
|
9328
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
9329
|
+
/**
|
|
9330
|
+
* Creates an object representation of this proto.
|
|
9331
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
9332
|
+
* Optional fields that are not set will be set to undefined.
|
|
9333
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
9334
|
+
* For the list of reserved names please see:
|
|
9335
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
9336
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
9337
|
+
* JSPB instance for transitional soy proto support:
|
|
9338
|
+
* http://goto/soy-param-migration
|
|
9339
|
+
* @return {!Object}
|
|
9340
|
+
*/
|
|
9341
|
+
proto.pulumirpc.ErrorHookResponse.prototype.toObject = function(opt_includeInstance) {
|
|
9342
|
+
return proto.pulumirpc.ErrorHookResponse.toObject(opt_includeInstance, this);
|
|
9343
|
+
};
|
|
9344
|
+
|
|
9345
|
+
|
|
9346
|
+
/**
|
|
9347
|
+
* Static version of the {@see toObject} method.
|
|
9348
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
9349
|
+
* the JSPB instance for transitional soy proto support:
|
|
9350
|
+
* http://goto/soy-param-migration
|
|
9351
|
+
* @param {!proto.pulumirpc.ErrorHookResponse} msg The msg instance to transform.
|
|
9352
|
+
* @return {!Object}
|
|
9353
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
9354
|
+
*/
|
|
9355
|
+
proto.pulumirpc.ErrorHookResponse.toObject = function(includeInstance, msg) {
|
|
9356
|
+
var f, obj = {
|
|
9357
|
+
error: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
9358
|
+
retry: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
|
|
9359
|
+
};
|
|
9360
|
+
|
|
9361
|
+
if (includeInstance) {
|
|
9362
|
+
obj.$jspbMessageInstance = msg;
|
|
9363
|
+
}
|
|
9364
|
+
return obj;
|
|
9365
|
+
};
|
|
9366
|
+
}
|
|
9367
|
+
|
|
9368
|
+
|
|
9369
|
+
/**
|
|
9370
|
+
* Deserializes binary data (in protobuf wire format).
|
|
9371
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
9372
|
+
* @return {!proto.pulumirpc.ErrorHookResponse}
|
|
9373
|
+
*/
|
|
9374
|
+
proto.pulumirpc.ErrorHookResponse.deserializeBinary = function(bytes) {
|
|
9375
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
9376
|
+
var msg = new proto.pulumirpc.ErrorHookResponse;
|
|
9377
|
+
return proto.pulumirpc.ErrorHookResponse.deserializeBinaryFromReader(msg, reader);
|
|
9378
|
+
};
|
|
9379
|
+
|
|
9380
|
+
|
|
9381
|
+
/**
|
|
9382
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
9383
|
+
* given reader into the given message object.
|
|
9384
|
+
* @param {!proto.pulumirpc.ErrorHookResponse} msg The message object to deserialize into.
|
|
9385
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
9386
|
+
* @return {!proto.pulumirpc.ErrorHookResponse}
|
|
9387
|
+
*/
|
|
9388
|
+
proto.pulumirpc.ErrorHookResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
9389
|
+
while (reader.nextField()) {
|
|
9390
|
+
if (reader.isEndGroup()) {
|
|
9391
|
+
break;
|
|
9392
|
+
}
|
|
9393
|
+
var field = reader.getFieldNumber();
|
|
9394
|
+
switch (field) {
|
|
9395
|
+
case 1:
|
|
9396
|
+
var value = /** @type {string} */ (reader.readString());
|
|
9397
|
+
msg.setError(value);
|
|
9398
|
+
break;
|
|
9399
|
+
case 2:
|
|
9400
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
9401
|
+
msg.setRetry(value);
|
|
9402
|
+
break;
|
|
9403
|
+
default:
|
|
9404
|
+
reader.skipField();
|
|
9405
|
+
break;
|
|
9406
|
+
}
|
|
9407
|
+
}
|
|
9408
|
+
return msg;
|
|
9409
|
+
};
|
|
9410
|
+
|
|
9411
|
+
|
|
9412
|
+
/**
|
|
9413
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
9414
|
+
* @return {!Uint8Array}
|
|
9415
|
+
*/
|
|
9416
|
+
proto.pulumirpc.ErrorHookResponse.prototype.serializeBinary = function() {
|
|
9417
|
+
var writer = new jspb.BinaryWriter();
|
|
9418
|
+
proto.pulumirpc.ErrorHookResponse.serializeBinaryToWriter(this, writer);
|
|
9419
|
+
return writer.getResultBuffer();
|
|
9420
|
+
};
|
|
9421
|
+
|
|
9422
|
+
|
|
9423
|
+
/**
|
|
9424
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
9425
|
+
* format), writing to the given BinaryWriter.
|
|
9426
|
+
* @param {!proto.pulumirpc.ErrorHookResponse} message
|
|
9427
|
+
* @param {!jspb.BinaryWriter} writer
|
|
9428
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
9429
|
+
*/
|
|
9430
|
+
proto.pulumirpc.ErrorHookResponse.serializeBinaryToWriter = function(message, writer) {
|
|
9431
|
+
var f = undefined;
|
|
9432
|
+
f = message.getError();
|
|
9433
|
+
if (f.length > 0) {
|
|
9434
|
+
writer.writeString(
|
|
9435
|
+
1,
|
|
9436
|
+
f
|
|
9437
|
+
);
|
|
9438
|
+
}
|
|
9439
|
+
f = message.getRetry();
|
|
9440
|
+
if (f) {
|
|
9441
|
+
writer.writeBool(
|
|
9442
|
+
2,
|
|
9443
|
+
f
|
|
9444
|
+
);
|
|
9445
|
+
}
|
|
9446
|
+
};
|
|
9447
|
+
|
|
9448
|
+
|
|
9449
|
+
/**
|
|
9450
|
+
* optional string error = 1;
|
|
9451
|
+
* @return {string}
|
|
9452
|
+
*/
|
|
9453
|
+
proto.pulumirpc.ErrorHookResponse.prototype.getError = function() {
|
|
9454
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
9455
|
+
};
|
|
9456
|
+
|
|
9457
|
+
|
|
9458
|
+
/**
|
|
9459
|
+
* @param {string} value
|
|
9460
|
+
* @return {!proto.pulumirpc.ErrorHookResponse} returns this
|
|
9461
|
+
*/
|
|
9462
|
+
proto.pulumirpc.ErrorHookResponse.prototype.setError = function(value) {
|
|
9463
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
9464
|
+
};
|
|
9465
|
+
|
|
9466
|
+
|
|
9467
|
+
/**
|
|
9468
|
+
* optional bool retry = 2;
|
|
9469
|
+
* @return {boolean}
|
|
9470
|
+
*/
|
|
9471
|
+
proto.pulumirpc.ErrorHookResponse.prototype.getRetry = function() {
|
|
9472
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
9473
|
+
};
|
|
9474
|
+
|
|
9475
|
+
|
|
9476
|
+
/**
|
|
9477
|
+
* @param {boolean} value
|
|
9478
|
+
* @return {!proto.pulumirpc.ErrorHookResponse} returns this
|
|
9479
|
+
*/
|
|
9480
|
+
proto.pulumirpc.ErrorHookResponse.prototype.setRetry = function(value) {
|
|
9481
|
+
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
9482
|
+
};
|
|
9483
|
+
|
|
9484
|
+
|
|
9485
|
+
|
|
9486
|
+
|
|
9487
|
+
|
|
9488
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
9489
|
+
/**
|
|
9490
|
+
* Creates an object representation of this proto.
|
|
9491
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
9492
|
+
* Optional fields that are not set will be set to undefined.
|
|
9493
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
9494
|
+
* For the list of reserved names please see:
|
|
9495
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
9496
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
9497
|
+
* JSPB instance for transitional soy proto support:
|
|
9498
|
+
* http://goto/soy-param-migration
|
|
9499
|
+
* @return {!Object}
|
|
9500
|
+
*/
|
|
9501
|
+
proto.pulumirpc.RegisterPackageRequest.prototype.toObject = function(opt_includeInstance) {
|
|
9502
|
+
return proto.pulumirpc.RegisterPackageRequest.toObject(opt_includeInstance, this);
|
|
9503
|
+
};
|
|
9504
|
+
|
|
9505
|
+
|
|
9506
|
+
/**
|
|
9507
|
+
* Static version of the {@see toObject} method.
|
|
9508
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
9509
|
+
* the JSPB instance for transitional soy proto support:
|
|
9510
|
+
* http://goto/soy-param-migration
|
|
9511
|
+
* @param {!proto.pulumirpc.RegisterPackageRequest} msg The msg instance to transform.
|
|
9512
|
+
* @return {!Object}
|
|
9513
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
9514
|
+
*/
|
|
9515
|
+
proto.pulumirpc.RegisterPackageRequest.toObject = function(includeInstance, msg) {
|
|
9516
|
+
var f, obj = {
|
|
9517
|
+
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
9518
|
+
version: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
9519
|
+
downloadUrl: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
9520
|
+
checksumsMap: (f = msg.getChecksumsMap()) ? f.toObject(includeInstance, undefined) : [],
|
|
9521
|
+
parameterization: (f = msg.getParameterization()) && proto.pulumirpc.Parameterization.toObject(includeInstance, f)
|
|
9522
|
+
};
|
|
9523
|
+
|
|
9524
|
+
if (includeInstance) {
|
|
9525
|
+
obj.$jspbMessageInstance = msg;
|
|
9526
|
+
}
|
|
9527
|
+
return obj;
|
|
9528
|
+
};
|
|
9529
|
+
}
|
|
9530
|
+
|
|
9531
|
+
|
|
9532
|
+
/**
|
|
9533
|
+
* Deserializes binary data (in protobuf wire format).
|
|
9534
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
9535
|
+
* @return {!proto.pulumirpc.RegisterPackageRequest}
|
|
9536
|
+
*/
|
|
9537
|
+
proto.pulumirpc.RegisterPackageRequest.deserializeBinary = function(bytes) {
|
|
9538
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
9539
|
+
var msg = new proto.pulumirpc.RegisterPackageRequest;
|
|
9540
|
+
return proto.pulumirpc.RegisterPackageRequest.deserializeBinaryFromReader(msg, reader);
|
|
9541
|
+
};
|
|
9542
|
+
|
|
9543
|
+
|
|
9544
|
+
/**
|
|
9545
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
9546
|
+
* given reader into the given message object.
|
|
9547
|
+
* @param {!proto.pulumirpc.RegisterPackageRequest} msg The message object to deserialize into.
|
|
9548
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
9549
|
+
* @return {!proto.pulumirpc.RegisterPackageRequest}
|
|
9550
|
+
*/
|
|
9551
|
+
proto.pulumirpc.RegisterPackageRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
9552
|
+
while (reader.nextField()) {
|
|
9553
|
+
if (reader.isEndGroup()) {
|
|
9554
|
+
break;
|
|
9555
|
+
}
|
|
9556
|
+
var field = reader.getFieldNumber();
|
|
9557
|
+
switch (field) {
|
|
9558
|
+
case 1:
|
|
9559
|
+
var value = /** @type {string} */ (reader.readString());
|
|
9560
|
+
msg.setName(value);
|
|
9561
|
+
break;
|
|
9562
|
+
case 2:
|
|
9563
|
+
var value = /** @type {string} */ (reader.readString());
|
|
9564
|
+
msg.setVersion(value);
|
|
9565
|
+
break;
|
|
9566
|
+
case 3:
|
|
9567
|
+
var value = /** @type {string} */ (reader.readString());
|
|
9568
|
+
msg.setDownloadUrl(value);
|
|
9569
|
+
break;
|
|
9570
|
+
case 4:
|
|
9571
|
+
var value = msg.getChecksumsMap();
|
|
9572
|
+
reader.readMessage(value, function(message, reader) {
|
|
9573
|
+
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readBytes, null, "", "");
|
|
9574
|
+
});
|
|
9575
|
+
break;
|
|
9576
|
+
case 5:
|
|
9577
|
+
var value = new proto.pulumirpc.Parameterization;
|
|
9578
|
+
reader.readMessage(value,proto.pulumirpc.Parameterization.deserializeBinaryFromReader);
|
|
9579
|
+
msg.setParameterization(value);
|
|
9580
|
+
break;
|
|
9581
|
+
default:
|
|
9582
|
+
reader.skipField();
|
|
9583
|
+
break;
|
|
9584
|
+
}
|
|
9585
|
+
}
|
|
9586
|
+
return msg;
|
|
9587
|
+
};
|
|
9588
|
+
|
|
9589
|
+
|
|
9590
|
+
/**
|
|
9591
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
9592
|
+
* @return {!Uint8Array}
|
|
9593
|
+
*/
|
|
9594
|
+
proto.pulumirpc.RegisterPackageRequest.prototype.serializeBinary = function() {
|
|
9595
|
+
var writer = new jspb.BinaryWriter();
|
|
9596
|
+
proto.pulumirpc.RegisterPackageRequest.serializeBinaryToWriter(this, writer);
|
|
9597
|
+
return writer.getResultBuffer();
|
|
9598
|
+
};
|
|
9599
|
+
|
|
9600
|
+
|
|
9601
|
+
/**
|
|
9602
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
9603
|
+
* format), writing to the given BinaryWriter.
|
|
9604
|
+
* @param {!proto.pulumirpc.RegisterPackageRequest} message
|
|
9605
|
+
* @param {!jspb.BinaryWriter} writer
|
|
9606
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
9607
|
+
*/
|
|
9608
|
+
proto.pulumirpc.RegisterPackageRequest.serializeBinaryToWriter = function(message, writer) {
|
|
9609
|
+
var f = undefined;
|
|
9610
|
+
f = message.getName();
|
|
9611
|
+
if (f.length > 0) {
|
|
9612
|
+
writer.writeString(
|
|
9613
|
+
1,
|
|
9614
|
+
f
|
|
9615
|
+
);
|
|
9616
|
+
}
|
|
9617
|
+
f = message.getVersion();
|
|
9618
|
+
if (f.length > 0) {
|
|
9619
|
+
writer.writeString(
|
|
9620
|
+
2,
|
|
9621
|
+
f
|
|
9622
|
+
);
|
|
9623
|
+
}
|
|
9624
|
+
f = message.getDownloadUrl();
|
|
9625
|
+
if (f.length > 0) {
|
|
9626
|
+
writer.writeString(
|
|
9627
|
+
3,
|
|
9628
|
+
f
|
|
9629
|
+
);
|
|
9630
|
+
}
|
|
9631
|
+
f = message.getChecksumsMap(true);
|
|
9632
|
+
if (f && f.getLength() > 0) {
|
|
9633
|
+
f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeBytes);
|
|
9634
|
+
}
|
|
9635
|
+
f = message.getParameterization();
|
|
9636
|
+
if (f != null) {
|
|
9637
|
+
writer.writeMessage(
|
|
9638
|
+
5,
|
|
9639
|
+
f,
|
|
9640
|
+
proto.pulumirpc.Parameterization.serializeBinaryToWriter
|
|
9641
|
+
);
|
|
9642
|
+
}
|
|
9643
|
+
};
|
|
9644
|
+
|
|
9645
|
+
|
|
9646
|
+
/**
|
|
9647
|
+
* optional string name = 1;
|
|
9648
|
+
* @return {string}
|
|
9649
|
+
*/
|
|
9650
|
+
proto.pulumirpc.RegisterPackageRequest.prototype.getName = function() {
|
|
9651
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
9652
|
+
};
|
|
9653
|
+
|
|
9654
|
+
|
|
9655
|
+
/**
|
|
9656
|
+
* @param {string} value
|
|
9657
|
+
* @return {!proto.pulumirpc.RegisterPackageRequest} returns this
|
|
9658
|
+
*/
|
|
9659
|
+
proto.pulumirpc.RegisterPackageRequest.prototype.setName = function(value) {
|
|
9660
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
9661
|
+
};
|
|
9662
|
+
|
|
9663
|
+
|
|
9664
|
+
/**
|
|
9665
|
+
* optional string version = 2;
|
|
9666
|
+
* @return {string}
|
|
9667
|
+
*/
|
|
9668
|
+
proto.pulumirpc.RegisterPackageRequest.prototype.getVersion = function() {
|
|
9669
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
9670
|
+
};
|
|
9671
|
+
|
|
9672
|
+
|
|
9673
|
+
/**
|
|
9674
|
+
* @param {string} value
|
|
9675
|
+
* @return {!proto.pulumirpc.RegisterPackageRequest} returns this
|
|
9676
|
+
*/
|
|
9677
|
+
proto.pulumirpc.RegisterPackageRequest.prototype.setVersion = function(value) {
|
|
9678
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
9679
|
+
};
|
|
9680
|
+
|
|
9681
|
+
|
|
9682
|
+
/**
|
|
9683
|
+
* optional string download_url = 3;
|
|
9684
|
+
* @return {string}
|
|
9685
|
+
*/
|
|
9686
|
+
proto.pulumirpc.RegisterPackageRequest.prototype.getDownloadUrl = function() {
|
|
9687
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
9688
|
+
};
|
|
9689
|
+
|
|
9690
|
+
|
|
9691
|
+
/**
|
|
9692
|
+
* @param {string} value
|
|
9693
|
+
* @return {!proto.pulumirpc.RegisterPackageRequest} returns this
|
|
9694
|
+
*/
|
|
9695
|
+
proto.pulumirpc.RegisterPackageRequest.prototype.setDownloadUrl = function(value) {
|
|
9696
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
9697
|
+
};
|
|
9698
|
+
|
|
9699
|
+
|
|
9700
|
+
/**
|
|
9701
|
+
* map<string, bytes> checksums = 4;
|
|
9702
|
+
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
9703
|
+
* empty, instead returning `undefined`
|
|
9704
|
+
* @return {!jspb.Map<string,!(string|Uint8Array)>}
|
|
9705
|
+
*/
|
|
9706
|
+
proto.pulumirpc.RegisterPackageRequest.prototype.getChecksumsMap = function(opt_noLazyCreate) {
|
|
9707
|
+
return /** @type {!jspb.Map<string,!(string|Uint8Array)>} */ (
|
|
9708
|
+
jspb.Message.getMapField(this, 4, opt_noLazyCreate,
|
|
9709
|
+
null));
|
|
9710
|
+
};
|
|
9711
|
+
|
|
9712
|
+
|
|
9713
|
+
/**
|
|
9714
|
+
* Clears values from the map. The map will be non-null.
|
|
9715
|
+
* @return {!proto.pulumirpc.RegisterPackageRequest} returns this
|
|
9716
|
+
*/
|
|
9717
|
+
proto.pulumirpc.RegisterPackageRequest.prototype.clearChecksumsMap = function() {
|
|
9718
|
+
this.getChecksumsMap().clear();
|
|
9719
|
+
return this;
|
|
9720
|
+
};
|
|
9721
|
+
|
|
9722
|
+
|
|
9723
|
+
/**
|
|
9724
|
+
* optional Parameterization parameterization = 5;
|
|
9725
|
+
* @return {?proto.pulumirpc.Parameterization}
|
|
9726
|
+
*/
|
|
8942
9727
|
proto.pulumirpc.RegisterPackageRequest.prototype.getParameterization = function() {
|
|
8943
9728
|
return /** @type{?proto.pulumirpc.Parameterization} */ (
|
|
8944
9729
|
jspb.Message.getWrapperField(this, proto.pulumirpc.Parameterization, 5));
|
|
@@ -9527,6 +10312,187 @@ proto.pulumirpc.RegisterResourceHookRequest.prototype.setOnDryRun = function(val
|
|
|
9527
10312
|
};
|
|
9528
10313
|
|
|
9529
10314
|
|
|
10315
|
+
|
|
10316
|
+
|
|
10317
|
+
|
|
10318
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
10319
|
+
/**
|
|
10320
|
+
* Creates an object representation of this proto.
|
|
10321
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
10322
|
+
* Optional fields that are not set will be set to undefined.
|
|
10323
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
10324
|
+
* For the list of reserved names please see:
|
|
10325
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
10326
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
10327
|
+
* JSPB instance for transitional soy proto support:
|
|
10328
|
+
* http://goto/soy-param-migration
|
|
10329
|
+
* @return {!Object}
|
|
10330
|
+
*/
|
|
10331
|
+
proto.pulumirpc.RegisterErrorHookRequest.prototype.toObject = function(opt_includeInstance) {
|
|
10332
|
+
return proto.pulumirpc.RegisterErrorHookRequest.toObject(opt_includeInstance, this);
|
|
10333
|
+
};
|
|
10334
|
+
|
|
10335
|
+
|
|
10336
|
+
/**
|
|
10337
|
+
* Static version of the {@see toObject} method.
|
|
10338
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
10339
|
+
* the JSPB instance for transitional soy proto support:
|
|
10340
|
+
* http://goto/soy-param-migration
|
|
10341
|
+
* @param {!proto.pulumirpc.RegisterErrorHookRequest} msg The msg instance to transform.
|
|
10342
|
+
* @return {!Object}
|
|
10343
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
10344
|
+
*/
|
|
10345
|
+
proto.pulumirpc.RegisterErrorHookRequest.toObject = function(includeInstance, msg) {
|
|
10346
|
+
var f, obj = {
|
|
10347
|
+
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
10348
|
+
callback: (f = msg.getCallback()) && pulumi_callback_pb.Callback.toObject(includeInstance, f)
|
|
10349
|
+
};
|
|
10350
|
+
|
|
10351
|
+
if (includeInstance) {
|
|
10352
|
+
obj.$jspbMessageInstance = msg;
|
|
10353
|
+
}
|
|
10354
|
+
return obj;
|
|
10355
|
+
};
|
|
10356
|
+
}
|
|
10357
|
+
|
|
10358
|
+
|
|
10359
|
+
/**
|
|
10360
|
+
* Deserializes binary data (in protobuf wire format).
|
|
10361
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
10362
|
+
* @return {!proto.pulumirpc.RegisterErrorHookRequest}
|
|
10363
|
+
*/
|
|
10364
|
+
proto.pulumirpc.RegisterErrorHookRequest.deserializeBinary = function(bytes) {
|
|
10365
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
10366
|
+
var msg = new proto.pulumirpc.RegisterErrorHookRequest;
|
|
10367
|
+
return proto.pulumirpc.RegisterErrorHookRequest.deserializeBinaryFromReader(msg, reader);
|
|
10368
|
+
};
|
|
10369
|
+
|
|
10370
|
+
|
|
10371
|
+
/**
|
|
10372
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
10373
|
+
* given reader into the given message object.
|
|
10374
|
+
* @param {!proto.pulumirpc.RegisterErrorHookRequest} msg The message object to deserialize into.
|
|
10375
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
10376
|
+
* @return {!proto.pulumirpc.RegisterErrorHookRequest}
|
|
10377
|
+
*/
|
|
10378
|
+
proto.pulumirpc.RegisterErrorHookRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
10379
|
+
while (reader.nextField()) {
|
|
10380
|
+
if (reader.isEndGroup()) {
|
|
10381
|
+
break;
|
|
10382
|
+
}
|
|
10383
|
+
var field = reader.getFieldNumber();
|
|
10384
|
+
switch (field) {
|
|
10385
|
+
case 1:
|
|
10386
|
+
var value = /** @type {string} */ (reader.readString());
|
|
10387
|
+
msg.setName(value);
|
|
10388
|
+
break;
|
|
10389
|
+
case 2:
|
|
10390
|
+
var value = new pulumi_callback_pb.Callback;
|
|
10391
|
+
reader.readMessage(value,pulumi_callback_pb.Callback.deserializeBinaryFromReader);
|
|
10392
|
+
msg.setCallback(value);
|
|
10393
|
+
break;
|
|
10394
|
+
default:
|
|
10395
|
+
reader.skipField();
|
|
10396
|
+
break;
|
|
10397
|
+
}
|
|
10398
|
+
}
|
|
10399
|
+
return msg;
|
|
10400
|
+
};
|
|
10401
|
+
|
|
10402
|
+
|
|
10403
|
+
/**
|
|
10404
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
10405
|
+
* @return {!Uint8Array}
|
|
10406
|
+
*/
|
|
10407
|
+
proto.pulumirpc.RegisterErrorHookRequest.prototype.serializeBinary = function() {
|
|
10408
|
+
var writer = new jspb.BinaryWriter();
|
|
10409
|
+
proto.pulumirpc.RegisterErrorHookRequest.serializeBinaryToWriter(this, writer);
|
|
10410
|
+
return writer.getResultBuffer();
|
|
10411
|
+
};
|
|
10412
|
+
|
|
10413
|
+
|
|
10414
|
+
/**
|
|
10415
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
10416
|
+
* format), writing to the given BinaryWriter.
|
|
10417
|
+
* @param {!proto.pulumirpc.RegisterErrorHookRequest} message
|
|
10418
|
+
* @param {!jspb.BinaryWriter} writer
|
|
10419
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
10420
|
+
*/
|
|
10421
|
+
proto.pulumirpc.RegisterErrorHookRequest.serializeBinaryToWriter = function(message, writer) {
|
|
10422
|
+
var f = undefined;
|
|
10423
|
+
f = message.getName();
|
|
10424
|
+
if (f.length > 0) {
|
|
10425
|
+
writer.writeString(
|
|
10426
|
+
1,
|
|
10427
|
+
f
|
|
10428
|
+
);
|
|
10429
|
+
}
|
|
10430
|
+
f = message.getCallback();
|
|
10431
|
+
if (f != null) {
|
|
10432
|
+
writer.writeMessage(
|
|
10433
|
+
2,
|
|
10434
|
+
f,
|
|
10435
|
+
pulumi_callback_pb.Callback.serializeBinaryToWriter
|
|
10436
|
+
);
|
|
10437
|
+
}
|
|
10438
|
+
};
|
|
10439
|
+
|
|
10440
|
+
|
|
10441
|
+
/**
|
|
10442
|
+
* optional string name = 1;
|
|
10443
|
+
* @return {string}
|
|
10444
|
+
*/
|
|
10445
|
+
proto.pulumirpc.RegisterErrorHookRequest.prototype.getName = function() {
|
|
10446
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
10447
|
+
};
|
|
10448
|
+
|
|
10449
|
+
|
|
10450
|
+
/**
|
|
10451
|
+
* @param {string} value
|
|
10452
|
+
* @return {!proto.pulumirpc.RegisterErrorHookRequest} returns this
|
|
10453
|
+
*/
|
|
10454
|
+
proto.pulumirpc.RegisterErrorHookRequest.prototype.setName = function(value) {
|
|
10455
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
10456
|
+
};
|
|
10457
|
+
|
|
10458
|
+
|
|
10459
|
+
/**
|
|
10460
|
+
* optional Callback callback = 2;
|
|
10461
|
+
* @return {?proto.pulumirpc.Callback}
|
|
10462
|
+
*/
|
|
10463
|
+
proto.pulumirpc.RegisterErrorHookRequest.prototype.getCallback = function() {
|
|
10464
|
+
return /** @type{?proto.pulumirpc.Callback} */ (
|
|
10465
|
+
jspb.Message.getWrapperField(this, pulumi_callback_pb.Callback, 2));
|
|
10466
|
+
};
|
|
10467
|
+
|
|
10468
|
+
|
|
10469
|
+
/**
|
|
10470
|
+
* @param {?proto.pulumirpc.Callback|undefined} value
|
|
10471
|
+
* @return {!proto.pulumirpc.RegisterErrorHookRequest} returns this
|
|
10472
|
+
*/
|
|
10473
|
+
proto.pulumirpc.RegisterErrorHookRequest.prototype.setCallback = function(value) {
|
|
10474
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
10475
|
+
};
|
|
10476
|
+
|
|
10477
|
+
|
|
10478
|
+
/**
|
|
10479
|
+
* Clears the message field making it undefined.
|
|
10480
|
+
* @return {!proto.pulumirpc.RegisterErrorHookRequest} returns this
|
|
10481
|
+
*/
|
|
10482
|
+
proto.pulumirpc.RegisterErrorHookRequest.prototype.clearCallback = function() {
|
|
10483
|
+
return this.setCallback(undefined);
|
|
10484
|
+
};
|
|
10485
|
+
|
|
10486
|
+
|
|
10487
|
+
/**
|
|
10488
|
+
* Returns whether this field is set.
|
|
10489
|
+
* @return {boolean}
|
|
10490
|
+
*/
|
|
10491
|
+
proto.pulumirpc.RegisterErrorHookRequest.prototype.hasCallback = function() {
|
|
10492
|
+
return jspb.Message.getField(this, 2) != null;
|
|
10493
|
+
};
|
|
10494
|
+
|
|
10495
|
+
|
|
9530
10496
|
/**
|
|
9531
10497
|
* @enum {number}
|
|
9532
10498
|
*/
|