@pulumi/pulumi 3.57.1 → 3.59.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,906 @@
1
+ // source: pulumi/converter.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var proto = { pulumirpc: {} }, global = proto;
17
+
18
+ var pulumi_plugin_pb = require('./plugin_pb.js');
19
+ goog.object.extend(proto, pulumi_plugin_pb);
20
+ var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
21
+ goog.object.extend(proto, google_protobuf_empty_pb);
22
+ var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js');
23
+ goog.object.extend(proto, google_protobuf_struct_pb);
24
+ goog.exportSymbol('proto.pulumirpc.ConvertProgramRequest', null, global);
25
+ goog.exportSymbol('proto.pulumirpc.ConvertProgramResponse', null, global);
26
+ goog.exportSymbol('proto.pulumirpc.ConvertStateRequest', null, global);
27
+ goog.exportSymbol('proto.pulumirpc.ConvertStateResponse', null, global);
28
+ goog.exportSymbol('proto.pulumirpc.ResourceImport', null, global);
29
+ /**
30
+ * Generated by JsPbCodeGenerator.
31
+ * @param {Array=} opt_data Optional initial data array, typically from a
32
+ * server response, or constructed directly in Javascript. The array is used
33
+ * in place and becomes part of the constructed object. It is not cloned.
34
+ * If no data is provided, the constructed object will be empty, but still
35
+ * valid.
36
+ * @extends {jspb.Message}
37
+ * @constructor
38
+ */
39
+ proto.pulumirpc.ConvertStateRequest = function(opt_data) {
40
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
41
+ };
42
+ goog.inherits(proto.pulumirpc.ConvertStateRequest, jspb.Message);
43
+ if (goog.DEBUG && !COMPILED) {
44
+ /**
45
+ * @public
46
+ * @override
47
+ */
48
+ proto.pulumirpc.ConvertStateRequest.displayName = 'proto.pulumirpc.ConvertStateRequest';
49
+ }
50
+ /**
51
+ * Generated by JsPbCodeGenerator.
52
+ * @param {Array=} opt_data Optional initial data array, typically from a
53
+ * server response, or constructed directly in Javascript. The array is used
54
+ * in place and becomes part of the constructed object. It is not cloned.
55
+ * If no data is provided, the constructed object will be empty, but still
56
+ * valid.
57
+ * @extends {jspb.Message}
58
+ * @constructor
59
+ */
60
+ proto.pulumirpc.ResourceImport = function(opt_data) {
61
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
62
+ };
63
+ goog.inherits(proto.pulumirpc.ResourceImport, jspb.Message);
64
+ if (goog.DEBUG && !COMPILED) {
65
+ /**
66
+ * @public
67
+ * @override
68
+ */
69
+ proto.pulumirpc.ResourceImport.displayName = 'proto.pulumirpc.ResourceImport';
70
+ }
71
+ /**
72
+ * Generated by JsPbCodeGenerator.
73
+ * @param {Array=} opt_data Optional initial data array, typically from a
74
+ * server response, or constructed directly in Javascript. The array is used
75
+ * in place and becomes part of the constructed object. It is not cloned.
76
+ * If no data is provided, the constructed object will be empty, but still
77
+ * valid.
78
+ * @extends {jspb.Message}
79
+ * @constructor
80
+ */
81
+ proto.pulumirpc.ConvertStateResponse = function(opt_data) {
82
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.ConvertStateResponse.repeatedFields_, null);
83
+ };
84
+ goog.inherits(proto.pulumirpc.ConvertStateResponse, jspb.Message);
85
+ if (goog.DEBUG && !COMPILED) {
86
+ /**
87
+ * @public
88
+ * @override
89
+ */
90
+ proto.pulumirpc.ConvertStateResponse.displayName = 'proto.pulumirpc.ConvertStateResponse';
91
+ }
92
+ /**
93
+ * Generated by JsPbCodeGenerator.
94
+ * @param {Array=} opt_data Optional initial data array, typically from a
95
+ * server response, or constructed directly in Javascript. The array is used
96
+ * in place and becomes part of the constructed object. It is not cloned.
97
+ * If no data is provided, the constructed object will be empty, but still
98
+ * valid.
99
+ * @extends {jspb.Message}
100
+ * @constructor
101
+ */
102
+ proto.pulumirpc.ConvertProgramRequest = function(opt_data) {
103
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
104
+ };
105
+ goog.inherits(proto.pulumirpc.ConvertProgramRequest, jspb.Message);
106
+ if (goog.DEBUG && !COMPILED) {
107
+ /**
108
+ * @public
109
+ * @override
110
+ */
111
+ proto.pulumirpc.ConvertProgramRequest.displayName = 'proto.pulumirpc.ConvertProgramRequest';
112
+ }
113
+ /**
114
+ * Generated by JsPbCodeGenerator.
115
+ * @param {Array=} opt_data Optional initial data array, typically from a
116
+ * server response, or constructed directly in Javascript. The array is used
117
+ * in place and becomes part of the constructed object. It is not cloned.
118
+ * If no data is provided, the constructed object will be empty, but still
119
+ * valid.
120
+ * @extends {jspb.Message}
121
+ * @constructor
122
+ */
123
+ proto.pulumirpc.ConvertProgramResponse = function(opt_data) {
124
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
125
+ };
126
+ goog.inherits(proto.pulumirpc.ConvertProgramResponse, jspb.Message);
127
+ if (goog.DEBUG && !COMPILED) {
128
+ /**
129
+ * @public
130
+ * @override
131
+ */
132
+ proto.pulumirpc.ConvertProgramResponse.displayName = 'proto.pulumirpc.ConvertProgramResponse';
133
+ }
134
+
135
+
136
+
137
+ if (jspb.Message.GENERATE_TO_OBJECT) {
138
+ /**
139
+ * Creates an object representation of this proto.
140
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
141
+ * Optional fields that are not set will be set to undefined.
142
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
143
+ * For the list of reserved names please see:
144
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
145
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
146
+ * JSPB instance for transitional soy proto support:
147
+ * http://goto/soy-param-migration
148
+ * @return {!Object}
149
+ */
150
+ proto.pulumirpc.ConvertStateRequest.prototype.toObject = function(opt_includeInstance) {
151
+ return proto.pulumirpc.ConvertStateRequest.toObject(opt_includeInstance, this);
152
+ };
153
+
154
+
155
+ /**
156
+ * Static version of the {@see toObject} method.
157
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
158
+ * the JSPB instance for transitional soy proto support:
159
+ * http://goto/soy-param-migration
160
+ * @param {!proto.pulumirpc.ConvertStateRequest} msg The msg instance to transform.
161
+ * @return {!Object}
162
+ * @suppress {unusedLocalVariables} f is only used for nested messages
163
+ */
164
+ proto.pulumirpc.ConvertStateRequest.toObject = function(includeInstance, msg) {
165
+ var f, obj = {
166
+
167
+ };
168
+
169
+ if (includeInstance) {
170
+ obj.$jspbMessageInstance = msg;
171
+ }
172
+ return obj;
173
+ };
174
+ }
175
+
176
+
177
+ /**
178
+ * Deserializes binary data (in protobuf wire format).
179
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
180
+ * @return {!proto.pulumirpc.ConvertStateRequest}
181
+ */
182
+ proto.pulumirpc.ConvertStateRequest.deserializeBinary = function(bytes) {
183
+ var reader = new jspb.BinaryReader(bytes);
184
+ var msg = new proto.pulumirpc.ConvertStateRequest;
185
+ return proto.pulumirpc.ConvertStateRequest.deserializeBinaryFromReader(msg, reader);
186
+ };
187
+
188
+
189
+ /**
190
+ * Deserializes binary data (in protobuf wire format) from the
191
+ * given reader into the given message object.
192
+ * @param {!proto.pulumirpc.ConvertStateRequest} msg The message object to deserialize into.
193
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
194
+ * @return {!proto.pulumirpc.ConvertStateRequest}
195
+ */
196
+ proto.pulumirpc.ConvertStateRequest.deserializeBinaryFromReader = function(msg, reader) {
197
+ while (reader.nextField()) {
198
+ if (reader.isEndGroup()) {
199
+ break;
200
+ }
201
+ var field = reader.getFieldNumber();
202
+ switch (field) {
203
+ default:
204
+ reader.skipField();
205
+ break;
206
+ }
207
+ }
208
+ return msg;
209
+ };
210
+
211
+
212
+ /**
213
+ * Serializes the message to binary data (in protobuf wire format).
214
+ * @return {!Uint8Array}
215
+ */
216
+ proto.pulumirpc.ConvertStateRequest.prototype.serializeBinary = function() {
217
+ var writer = new jspb.BinaryWriter();
218
+ proto.pulumirpc.ConvertStateRequest.serializeBinaryToWriter(this, writer);
219
+ return writer.getResultBuffer();
220
+ };
221
+
222
+
223
+ /**
224
+ * Serializes the given message to binary data (in protobuf wire
225
+ * format), writing to the given BinaryWriter.
226
+ * @param {!proto.pulumirpc.ConvertStateRequest} message
227
+ * @param {!jspb.BinaryWriter} writer
228
+ * @suppress {unusedLocalVariables} f is only used for nested messages
229
+ */
230
+ proto.pulumirpc.ConvertStateRequest.serializeBinaryToWriter = function(message, writer) {
231
+ var f = undefined;
232
+ };
233
+
234
+
235
+
236
+
237
+
238
+ if (jspb.Message.GENERATE_TO_OBJECT) {
239
+ /**
240
+ * Creates an object representation of this proto.
241
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
242
+ * Optional fields that are not set will be set to undefined.
243
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
244
+ * For the list of reserved names please see:
245
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
246
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
247
+ * JSPB instance for transitional soy proto support:
248
+ * http://goto/soy-param-migration
249
+ * @return {!Object}
250
+ */
251
+ proto.pulumirpc.ResourceImport.prototype.toObject = function(opt_includeInstance) {
252
+ return proto.pulumirpc.ResourceImport.toObject(opt_includeInstance, this);
253
+ };
254
+
255
+
256
+ /**
257
+ * Static version of the {@see toObject} method.
258
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
259
+ * the JSPB instance for transitional soy proto support:
260
+ * http://goto/soy-param-migration
261
+ * @param {!proto.pulumirpc.ResourceImport} msg The msg instance to transform.
262
+ * @return {!Object}
263
+ * @suppress {unusedLocalVariables} f is only used for nested messages
264
+ */
265
+ proto.pulumirpc.ResourceImport.toObject = function(includeInstance, msg) {
266
+ var f, obj = {
267
+ type: jspb.Message.getFieldWithDefault(msg, 1, ""),
268
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
269
+ id: jspb.Message.getFieldWithDefault(msg, 3, ""),
270
+ version: jspb.Message.getFieldWithDefault(msg, 4, ""),
271
+ plugindownloadurl: jspb.Message.getFieldWithDefault(msg, 5, "")
272
+ };
273
+
274
+ if (includeInstance) {
275
+ obj.$jspbMessageInstance = msg;
276
+ }
277
+ return obj;
278
+ };
279
+ }
280
+
281
+
282
+ /**
283
+ * Deserializes binary data (in protobuf wire format).
284
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
285
+ * @return {!proto.pulumirpc.ResourceImport}
286
+ */
287
+ proto.pulumirpc.ResourceImport.deserializeBinary = function(bytes) {
288
+ var reader = new jspb.BinaryReader(bytes);
289
+ var msg = new proto.pulumirpc.ResourceImport;
290
+ return proto.pulumirpc.ResourceImport.deserializeBinaryFromReader(msg, reader);
291
+ };
292
+
293
+
294
+ /**
295
+ * Deserializes binary data (in protobuf wire format) from the
296
+ * given reader into the given message object.
297
+ * @param {!proto.pulumirpc.ResourceImport} msg The message object to deserialize into.
298
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
299
+ * @return {!proto.pulumirpc.ResourceImport}
300
+ */
301
+ proto.pulumirpc.ResourceImport.deserializeBinaryFromReader = function(msg, reader) {
302
+ while (reader.nextField()) {
303
+ if (reader.isEndGroup()) {
304
+ break;
305
+ }
306
+ var field = reader.getFieldNumber();
307
+ switch (field) {
308
+ case 1:
309
+ var value = /** @type {string} */ (reader.readString());
310
+ msg.setType(value);
311
+ break;
312
+ case 2:
313
+ var value = /** @type {string} */ (reader.readString());
314
+ msg.setName(value);
315
+ break;
316
+ case 3:
317
+ var value = /** @type {string} */ (reader.readString());
318
+ msg.setId(value);
319
+ break;
320
+ case 4:
321
+ var value = /** @type {string} */ (reader.readString());
322
+ msg.setVersion(value);
323
+ break;
324
+ case 5:
325
+ var value = /** @type {string} */ (reader.readString());
326
+ msg.setPlugindownloadurl(value);
327
+ break;
328
+ default:
329
+ reader.skipField();
330
+ break;
331
+ }
332
+ }
333
+ return msg;
334
+ };
335
+
336
+
337
+ /**
338
+ * Serializes the message to binary data (in protobuf wire format).
339
+ * @return {!Uint8Array}
340
+ */
341
+ proto.pulumirpc.ResourceImport.prototype.serializeBinary = function() {
342
+ var writer = new jspb.BinaryWriter();
343
+ proto.pulumirpc.ResourceImport.serializeBinaryToWriter(this, writer);
344
+ return writer.getResultBuffer();
345
+ };
346
+
347
+
348
+ /**
349
+ * Serializes the given message to binary data (in protobuf wire
350
+ * format), writing to the given BinaryWriter.
351
+ * @param {!proto.pulumirpc.ResourceImport} message
352
+ * @param {!jspb.BinaryWriter} writer
353
+ * @suppress {unusedLocalVariables} f is only used for nested messages
354
+ */
355
+ proto.pulumirpc.ResourceImport.serializeBinaryToWriter = function(message, writer) {
356
+ var f = undefined;
357
+ f = message.getType();
358
+ if (f.length > 0) {
359
+ writer.writeString(
360
+ 1,
361
+ f
362
+ );
363
+ }
364
+ f = message.getName();
365
+ if (f.length > 0) {
366
+ writer.writeString(
367
+ 2,
368
+ f
369
+ );
370
+ }
371
+ f = message.getId();
372
+ if (f.length > 0) {
373
+ writer.writeString(
374
+ 3,
375
+ f
376
+ );
377
+ }
378
+ f = message.getVersion();
379
+ if (f.length > 0) {
380
+ writer.writeString(
381
+ 4,
382
+ f
383
+ );
384
+ }
385
+ f = message.getPlugindownloadurl();
386
+ if (f.length > 0) {
387
+ writer.writeString(
388
+ 5,
389
+ f
390
+ );
391
+ }
392
+ };
393
+
394
+
395
+ /**
396
+ * optional string type = 1;
397
+ * @return {string}
398
+ */
399
+ proto.pulumirpc.ResourceImport.prototype.getType = function() {
400
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
401
+ };
402
+
403
+
404
+ /**
405
+ * @param {string} value
406
+ * @return {!proto.pulumirpc.ResourceImport} returns this
407
+ */
408
+ proto.pulumirpc.ResourceImport.prototype.setType = function(value) {
409
+ return jspb.Message.setProto3StringField(this, 1, value);
410
+ };
411
+
412
+
413
+ /**
414
+ * optional string name = 2;
415
+ * @return {string}
416
+ */
417
+ proto.pulumirpc.ResourceImport.prototype.getName = function() {
418
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
419
+ };
420
+
421
+
422
+ /**
423
+ * @param {string} value
424
+ * @return {!proto.pulumirpc.ResourceImport} returns this
425
+ */
426
+ proto.pulumirpc.ResourceImport.prototype.setName = function(value) {
427
+ return jspb.Message.setProto3StringField(this, 2, value);
428
+ };
429
+
430
+
431
+ /**
432
+ * optional string id = 3;
433
+ * @return {string}
434
+ */
435
+ proto.pulumirpc.ResourceImport.prototype.getId = function() {
436
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
437
+ };
438
+
439
+
440
+ /**
441
+ * @param {string} value
442
+ * @return {!proto.pulumirpc.ResourceImport} returns this
443
+ */
444
+ proto.pulumirpc.ResourceImport.prototype.setId = function(value) {
445
+ return jspb.Message.setProto3StringField(this, 3, value);
446
+ };
447
+
448
+
449
+ /**
450
+ * optional string version = 4;
451
+ * @return {string}
452
+ */
453
+ proto.pulumirpc.ResourceImport.prototype.getVersion = function() {
454
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
455
+ };
456
+
457
+
458
+ /**
459
+ * @param {string} value
460
+ * @return {!proto.pulumirpc.ResourceImport} returns this
461
+ */
462
+ proto.pulumirpc.ResourceImport.prototype.setVersion = function(value) {
463
+ return jspb.Message.setProto3StringField(this, 4, value);
464
+ };
465
+
466
+
467
+ /**
468
+ * optional string pluginDownloadURL = 5;
469
+ * @return {string}
470
+ */
471
+ proto.pulumirpc.ResourceImport.prototype.getPlugindownloadurl = function() {
472
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
473
+ };
474
+
475
+
476
+ /**
477
+ * @param {string} value
478
+ * @return {!proto.pulumirpc.ResourceImport} returns this
479
+ */
480
+ proto.pulumirpc.ResourceImport.prototype.setPlugindownloadurl = function(value) {
481
+ return jspb.Message.setProto3StringField(this, 5, value);
482
+ };
483
+
484
+
485
+
486
+ /**
487
+ * List of repeated fields within this message type.
488
+ * @private {!Array<number>}
489
+ * @const
490
+ */
491
+ proto.pulumirpc.ConvertStateResponse.repeatedFields_ = [1];
492
+
493
+
494
+
495
+ if (jspb.Message.GENERATE_TO_OBJECT) {
496
+ /**
497
+ * Creates an object representation of this proto.
498
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
499
+ * Optional fields that are not set will be set to undefined.
500
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
501
+ * For the list of reserved names please see:
502
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
503
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
504
+ * JSPB instance for transitional soy proto support:
505
+ * http://goto/soy-param-migration
506
+ * @return {!Object}
507
+ */
508
+ proto.pulumirpc.ConvertStateResponse.prototype.toObject = function(opt_includeInstance) {
509
+ return proto.pulumirpc.ConvertStateResponse.toObject(opt_includeInstance, this);
510
+ };
511
+
512
+
513
+ /**
514
+ * Static version of the {@see toObject} method.
515
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
516
+ * the JSPB instance for transitional soy proto support:
517
+ * http://goto/soy-param-migration
518
+ * @param {!proto.pulumirpc.ConvertStateResponse} msg The msg instance to transform.
519
+ * @return {!Object}
520
+ * @suppress {unusedLocalVariables} f is only used for nested messages
521
+ */
522
+ proto.pulumirpc.ConvertStateResponse.toObject = function(includeInstance, msg) {
523
+ var f, obj = {
524
+ resourcesList: jspb.Message.toObjectList(msg.getResourcesList(),
525
+ proto.pulumirpc.ResourceImport.toObject, includeInstance)
526
+ };
527
+
528
+ if (includeInstance) {
529
+ obj.$jspbMessageInstance = msg;
530
+ }
531
+ return obj;
532
+ };
533
+ }
534
+
535
+
536
+ /**
537
+ * Deserializes binary data (in protobuf wire format).
538
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
539
+ * @return {!proto.pulumirpc.ConvertStateResponse}
540
+ */
541
+ proto.pulumirpc.ConvertStateResponse.deserializeBinary = function(bytes) {
542
+ var reader = new jspb.BinaryReader(bytes);
543
+ var msg = new proto.pulumirpc.ConvertStateResponse;
544
+ return proto.pulumirpc.ConvertStateResponse.deserializeBinaryFromReader(msg, reader);
545
+ };
546
+
547
+
548
+ /**
549
+ * Deserializes binary data (in protobuf wire format) from the
550
+ * given reader into the given message object.
551
+ * @param {!proto.pulumirpc.ConvertStateResponse} msg The message object to deserialize into.
552
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
553
+ * @return {!proto.pulumirpc.ConvertStateResponse}
554
+ */
555
+ proto.pulumirpc.ConvertStateResponse.deserializeBinaryFromReader = function(msg, reader) {
556
+ while (reader.nextField()) {
557
+ if (reader.isEndGroup()) {
558
+ break;
559
+ }
560
+ var field = reader.getFieldNumber();
561
+ switch (field) {
562
+ case 1:
563
+ var value = new proto.pulumirpc.ResourceImport;
564
+ reader.readMessage(value,proto.pulumirpc.ResourceImport.deserializeBinaryFromReader);
565
+ msg.addResources(value);
566
+ break;
567
+ default:
568
+ reader.skipField();
569
+ break;
570
+ }
571
+ }
572
+ return msg;
573
+ };
574
+
575
+
576
+ /**
577
+ * Serializes the message to binary data (in protobuf wire format).
578
+ * @return {!Uint8Array}
579
+ */
580
+ proto.pulumirpc.ConvertStateResponse.prototype.serializeBinary = function() {
581
+ var writer = new jspb.BinaryWriter();
582
+ proto.pulumirpc.ConvertStateResponse.serializeBinaryToWriter(this, writer);
583
+ return writer.getResultBuffer();
584
+ };
585
+
586
+
587
+ /**
588
+ * Serializes the given message to binary data (in protobuf wire
589
+ * format), writing to the given BinaryWriter.
590
+ * @param {!proto.pulumirpc.ConvertStateResponse} message
591
+ * @param {!jspb.BinaryWriter} writer
592
+ * @suppress {unusedLocalVariables} f is only used for nested messages
593
+ */
594
+ proto.pulumirpc.ConvertStateResponse.serializeBinaryToWriter = function(message, writer) {
595
+ var f = undefined;
596
+ f = message.getResourcesList();
597
+ if (f.length > 0) {
598
+ writer.writeRepeatedMessage(
599
+ 1,
600
+ f,
601
+ proto.pulumirpc.ResourceImport.serializeBinaryToWriter
602
+ );
603
+ }
604
+ };
605
+
606
+
607
+ /**
608
+ * repeated ResourceImport resources = 1;
609
+ * @return {!Array<!proto.pulumirpc.ResourceImport>}
610
+ */
611
+ proto.pulumirpc.ConvertStateResponse.prototype.getResourcesList = function() {
612
+ return /** @type{!Array<!proto.pulumirpc.ResourceImport>} */ (
613
+ jspb.Message.getRepeatedWrapperField(this, proto.pulumirpc.ResourceImport, 1));
614
+ };
615
+
616
+
617
+ /**
618
+ * @param {!Array<!proto.pulumirpc.ResourceImport>} value
619
+ * @return {!proto.pulumirpc.ConvertStateResponse} returns this
620
+ */
621
+ proto.pulumirpc.ConvertStateResponse.prototype.setResourcesList = function(value) {
622
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
623
+ };
624
+
625
+
626
+ /**
627
+ * @param {!proto.pulumirpc.ResourceImport=} opt_value
628
+ * @param {number=} opt_index
629
+ * @return {!proto.pulumirpc.ResourceImport}
630
+ */
631
+ proto.pulumirpc.ConvertStateResponse.prototype.addResources = function(opt_value, opt_index) {
632
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.pulumirpc.ResourceImport, opt_index);
633
+ };
634
+
635
+
636
+ /**
637
+ * Clears the list making it empty but non-null.
638
+ * @return {!proto.pulumirpc.ConvertStateResponse} returns this
639
+ */
640
+ proto.pulumirpc.ConvertStateResponse.prototype.clearResourcesList = function() {
641
+ return this.setResourcesList([]);
642
+ };
643
+
644
+
645
+
646
+
647
+
648
+ if (jspb.Message.GENERATE_TO_OBJECT) {
649
+ /**
650
+ * Creates an object representation of this proto.
651
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
652
+ * Optional fields that are not set will be set to undefined.
653
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
654
+ * For the list of reserved names please see:
655
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
656
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
657
+ * JSPB instance for transitional soy proto support:
658
+ * http://goto/soy-param-migration
659
+ * @return {!Object}
660
+ */
661
+ proto.pulumirpc.ConvertProgramRequest.prototype.toObject = function(opt_includeInstance) {
662
+ return proto.pulumirpc.ConvertProgramRequest.toObject(opt_includeInstance, this);
663
+ };
664
+
665
+
666
+ /**
667
+ * Static version of the {@see toObject} method.
668
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
669
+ * the JSPB instance for transitional soy proto support:
670
+ * http://goto/soy-param-migration
671
+ * @param {!proto.pulumirpc.ConvertProgramRequest} msg The msg instance to transform.
672
+ * @return {!Object}
673
+ * @suppress {unusedLocalVariables} f is only used for nested messages
674
+ */
675
+ proto.pulumirpc.ConvertProgramRequest.toObject = function(includeInstance, msg) {
676
+ var f, obj = {
677
+ sourceDirectory: jspb.Message.getFieldWithDefault(msg, 1, ""),
678
+ targetDirectory: jspb.Message.getFieldWithDefault(msg, 2, "")
679
+ };
680
+
681
+ if (includeInstance) {
682
+ obj.$jspbMessageInstance = msg;
683
+ }
684
+ return obj;
685
+ };
686
+ }
687
+
688
+
689
+ /**
690
+ * Deserializes binary data (in protobuf wire format).
691
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
692
+ * @return {!proto.pulumirpc.ConvertProgramRequest}
693
+ */
694
+ proto.pulumirpc.ConvertProgramRequest.deserializeBinary = function(bytes) {
695
+ var reader = new jspb.BinaryReader(bytes);
696
+ var msg = new proto.pulumirpc.ConvertProgramRequest;
697
+ return proto.pulumirpc.ConvertProgramRequest.deserializeBinaryFromReader(msg, reader);
698
+ };
699
+
700
+
701
+ /**
702
+ * Deserializes binary data (in protobuf wire format) from the
703
+ * given reader into the given message object.
704
+ * @param {!proto.pulumirpc.ConvertProgramRequest} msg The message object to deserialize into.
705
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
706
+ * @return {!proto.pulumirpc.ConvertProgramRequest}
707
+ */
708
+ proto.pulumirpc.ConvertProgramRequest.deserializeBinaryFromReader = function(msg, reader) {
709
+ while (reader.nextField()) {
710
+ if (reader.isEndGroup()) {
711
+ break;
712
+ }
713
+ var field = reader.getFieldNumber();
714
+ switch (field) {
715
+ case 1:
716
+ var value = /** @type {string} */ (reader.readString());
717
+ msg.setSourceDirectory(value);
718
+ break;
719
+ case 2:
720
+ var value = /** @type {string} */ (reader.readString());
721
+ msg.setTargetDirectory(value);
722
+ break;
723
+ default:
724
+ reader.skipField();
725
+ break;
726
+ }
727
+ }
728
+ return msg;
729
+ };
730
+
731
+
732
+ /**
733
+ * Serializes the message to binary data (in protobuf wire format).
734
+ * @return {!Uint8Array}
735
+ */
736
+ proto.pulumirpc.ConvertProgramRequest.prototype.serializeBinary = function() {
737
+ var writer = new jspb.BinaryWriter();
738
+ proto.pulumirpc.ConvertProgramRequest.serializeBinaryToWriter(this, writer);
739
+ return writer.getResultBuffer();
740
+ };
741
+
742
+
743
+ /**
744
+ * Serializes the given message to binary data (in protobuf wire
745
+ * format), writing to the given BinaryWriter.
746
+ * @param {!proto.pulumirpc.ConvertProgramRequest} message
747
+ * @param {!jspb.BinaryWriter} writer
748
+ * @suppress {unusedLocalVariables} f is only used for nested messages
749
+ */
750
+ proto.pulumirpc.ConvertProgramRequest.serializeBinaryToWriter = function(message, writer) {
751
+ var f = undefined;
752
+ f = message.getSourceDirectory();
753
+ if (f.length > 0) {
754
+ writer.writeString(
755
+ 1,
756
+ f
757
+ );
758
+ }
759
+ f = message.getTargetDirectory();
760
+ if (f.length > 0) {
761
+ writer.writeString(
762
+ 2,
763
+ f
764
+ );
765
+ }
766
+ };
767
+
768
+
769
+ /**
770
+ * optional string source_directory = 1;
771
+ * @return {string}
772
+ */
773
+ proto.pulumirpc.ConvertProgramRequest.prototype.getSourceDirectory = function() {
774
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
775
+ };
776
+
777
+
778
+ /**
779
+ * @param {string} value
780
+ * @return {!proto.pulumirpc.ConvertProgramRequest} returns this
781
+ */
782
+ proto.pulumirpc.ConvertProgramRequest.prototype.setSourceDirectory = function(value) {
783
+ return jspb.Message.setProto3StringField(this, 1, value);
784
+ };
785
+
786
+
787
+ /**
788
+ * optional string target_directory = 2;
789
+ * @return {string}
790
+ */
791
+ proto.pulumirpc.ConvertProgramRequest.prototype.getTargetDirectory = function() {
792
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
793
+ };
794
+
795
+
796
+ /**
797
+ * @param {string} value
798
+ * @return {!proto.pulumirpc.ConvertProgramRequest} returns this
799
+ */
800
+ proto.pulumirpc.ConvertProgramRequest.prototype.setTargetDirectory = function(value) {
801
+ return jspb.Message.setProto3StringField(this, 2, value);
802
+ };
803
+
804
+
805
+
806
+
807
+
808
+ if (jspb.Message.GENERATE_TO_OBJECT) {
809
+ /**
810
+ * Creates an object representation of this proto.
811
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
812
+ * Optional fields that are not set will be set to undefined.
813
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
814
+ * For the list of reserved names please see:
815
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
816
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
817
+ * JSPB instance for transitional soy proto support:
818
+ * http://goto/soy-param-migration
819
+ * @return {!Object}
820
+ */
821
+ proto.pulumirpc.ConvertProgramResponse.prototype.toObject = function(opt_includeInstance) {
822
+ return proto.pulumirpc.ConvertProgramResponse.toObject(opt_includeInstance, this);
823
+ };
824
+
825
+
826
+ /**
827
+ * Static version of the {@see toObject} method.
828
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
829
+ * the JSPB instance for transitional soy proto support:
830
+ * http://goto/soy-param-migration
831
+ * @param {!proto.pulumirpc.ConvertProgramResponse} msg The msg instance to transform.
832
+ * @return {!Object}
833
+ * @suppress {unusedLocalVariables} f is only used for nested messages
834
+ */
835
+ proto.pulumirpc.ConvertProgramResponse.toObject = function(includeInstance, msg) {
836
+ var f, obj = {
837
+
838
+ };
839
+
840
+ if (includeInstance) {
841
+ obj.$jspbMessageInstance = msg;
842
+ }
843
+ return obj;
844
+ };
845
+ }
846
+
847
+
848
+ /**
849
+ * Deserializes binary data (in protobuf wire format).
850
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
851
+ * @return {!proto.pulumirpc.ConvertProgramResponse}
852
+ */
853
+ proto.pulumirpc.ConvertProgramResponse.deserializeBinary = function(bytes) {
854
+ var reader = new jspb.BinaryReader(bytes);
855
+ var msg = new proto.pulumirpc.ConvertProgramResponse;
856
+ return proto.pulumirpc.ConvertProgramResponse.deserializeBinaryFromReader(msg, reader);
857
+ };
858
+
859
+
860
+ /**
861
+ * Deserializes binary data (in protobuf wire format) from the
862
+ * given reader into the given message object.
863
+ * @param {!proto.pulumirpc.ConvertProgramResponse} msg The message object to deserialize into.
864
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
865
+ * @return {!proto.pulumirpc.ConvertProgramResponse}
866
+ */
867
+ proto.pulumirpc.ConvertProgramResponse.deserializeBinaryFromReader = function(msg, reader) {
868
+ while (reader.nextField()) {
869
+ if (reader.isEndGroup()) {
870
+ break;
871
+ }
872
+ var field = reader.getFieldNumber();
873
+ switch (field) {
874
+ default:
875
+ reader.skipField();
876
+ break;
877
+ }
878
+ }
879
+ return msg;
880
+ };
881
+
882
+
883
+ /**
884
+ * Serializes the message to binary data (in protobuf wire format).
885
+ * @return {!Uint8Array}
886
+ */
887
+ proto.pulumirpc.ConvertProgramResponse.prototype.serializeBinary = function() {
888
+ var writer = new jspb.BinaryWriter();
889
+ proto.pulumirpc.ConvertProgramResponse.serializeBinaryToWriter(this, writer);
890
+ return writer.getResultBuffer();
891
+ };
892
+
893
+
894
+ /**
895
+ * Serializes the given message to binary data (in protobuf wire
896
+ * format), writing to the given BinaryWriter.
897
+ * @param {!proto.pulumirpc.ConvertProgramResponse} message
898
+ * @param {!jspb.BinaryWriter} writer
899
+ * @suppress {unusedLocalVariables} f is only used for nested messages
900
+ */
901
+ proto.pulumirpc.ConvertProgramResponse.serializeBinaryToWriter = function(message, writer) {
902
+ var f = undefined;
903
+ };
904
+
905
+
906
+ goog.object.extend(exports, proto.pulumirpc);