@google-cloud/dlp 3.3.0 → 3.4.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.
- package/CHANGELOG.md +7 -0
- package/README.md +17 -17
- package/build/protos/google/privacy/dlp/v2/dlp.proto +27 -19
- package/build/protos/google/privacy/dlp/v2/storage.proto +82 -72
- package/build/protos/protos.d.ts +365 -361
- package/build/protos/protos.js +1027 -999
- package/build/protos/protos.json +122 -118
- package/build/src/v2/dlp_service_client.js +2 -3
- package/build/src/v2/dlp_service_client.js.map +1 -1
- package/build/src/v2/index.js +1 -1
- package/package.json +3 -3
package/build/protos/protos.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2022 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
};
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
|
-
* Callback as used by {@link google.privacy.dlp.v2.DlpService
|
|
102
|
+
* Callback as used by {@link google.privacy.dlp.v2.DlpService|inspectContent}.
|
|
103
103
|
* @memberof google.privacy.dlp.v2.DlpService
|
|
104
104
|
* @typedef InspectContentCallback
|
|
105
105
|
* @type {function}
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
*/
|
|
133
133
|
|
|
134
134
|
/**
|
|
135
|
-
* Callback as used by {@link google.privacy.dlp.v2.DlpService
|
|
135
|
+
* Callback as used by {@link google.privacy.dlp.v2.DlpService|redactImage}.
|
|
136
136
|
* @memberof google.privacy.dlp.v2.DlpService
|
|
137
137
|
* @typedef RedactImageCallback
|
|
138
138
|
* @type {function}
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
*/
|
|
166
166
|
|
|
167
167
|
/**
|
|
168
|
-
* Callback as used by {@link google.privacy.dlp.v2.DlpService
|
|
168
|
+
* Callback as used by {@link google.privacy.dlp.v2.DlpService|deidentifyContent}.
|
|
169
169
|
* @memberof google.privacy.dlp.v2.DlpService
|
|
170
170
|
* @typedef DeidentifyContentCallback
|
|
171
171
|
* @type {function}
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
*/
|
|
199
199
|
|
|
200
200
|
/**
|
|
201
|
-
* Callback as used by {@link google.privacy.dlp.v2.DlpService
|
|
201
|
+
* Callback as used by {@link google.privacy.dlp.v2.DlpService|reidentifyContent}.
|
|
202
202
|
* @memberof google.privacy.dlp.v2.DlpService
|
|
203
203
|
* @typedef ReidentifyContentCallback
|
|
204
204
|
* @type {function}
|
|
@@ -231,7 +231,7 @@
|
|
|
231
231
|
*/
|
|
232
232
|
|
|
233
233
|
/**
|
|
234
|
-
* Callback as used by {@link google.privacy.dlp.v2.DlpService
|
|
234
|
+
* Callback as used by {@link google.privacy.dlp.v2.DlpService|listInfoTypes}.
|
|
235
235
|
* @memberof google.privacy.dlp.v2.DlpService
|
|
236
236
|
* @typedef ListInfoTypesCallback
|
|
237
237
|
* @type {function}
|
|
@@ -264,7 +264,7 @@
|
|
|
264
264
|
*/
|
|
265
265
|
|
|
266
266
|
/**
|
|
267
|
-
* Callback as used by {@link google.privacy.dlp.v2.DlpService
|
|
267
|
+
* Callback as used by {@link google.privacy.dlp.v2.DlpService|createInspectTemplate}.
|
|
268
268
|
* @memberof google.privacy.dlp.v2.DlpService
|
|
269
269
|
* @typedef CreateInspectTemplateCallback
|
|
270
270
|
* @type {function}
|
|
@@ -297,7 +297,7 @@
|
|
|
297
297
|
*/
|
|
298
298
|
|
|
299
299
|
/**
|
|
300
|
-
* Callback as used by {@link google.privacy.dlp.v2.DlpService
|
|
300
|
+
* Callback as used by {@link google.privacy.dlp.v2.DlpService|updateInspectTemplate}.
|
|
301
301
|
* @memberof google.privacy.dlp.v2.DlpService
|
|
302
302
|
* @typedef UpdateInspectTemplateCallback
|
|
303
303
|
* @type {function}
|
|
@@ -330,7 +330,7 @@
|
|
|
330
330
|
*/
|
|
331
331
|
|
|
332
332
|
/**
|
|
333
|
-
* Callback as used by {@link google.privacy.dlp.v2.DlpService
|
|
333
|
+
* Callback as used by {@link google.privacy.dlp.v2.DlpService|getInspectTemplate}.
|
|
334
334
|
* @memberof google.privacy.dlp.v2.DlpService
|
|
335
335
|
* @typedef GetInspectTemplateCallback
|
|
336
336
|
* @type {function}
|
|
@@ -363,7 +363,7 @@
|
|
|
363
363
|
*/
|
|
364
364
|
|
|
365
365
|
/**
|
|
366
|
-
* Callback as used by {@link google.privacy.dlp.v2.DlpService
|
|
366
|
+
* Callback as used by {@link google.privacy.dlp.v2.DlpService|listInspectTemplates}.
|
|
367
367
|
* @memberof google.privacy.dlp.v2.DlpService
|
|
368
368
|
* @typedef ListInspectTemplatesCallback
|
|
369
369
|
* @type {function}
|
|
@@ -396,7 +396,7 @@
|
|
|
396
396
|
*/
|
|
397
397
|
|
|
398
398
|
/**
|
|
399
|
-
* Callback as used by {@link google.privacy.dlp.v2.DlpService
|
|
399
|
+
* Callback as used by {@link google.privacy.dlp.v2.DlpService|deleteInspectTemplate}.
|
|
400
400
|
* @memberof google.privacy.dlp.v2.DlpService
|
|
401
401
|
* @typedef DeleteInspectTemplateCallback
|
|
402
402
|
* @type {function}
|
|
@@ -429,7 +429,7 @@
|
|
|
429
429
|
*/
|
|
430
430
|
|
|
431
431
|
/**
|
|
432
|
-
* Callback as used by {@link google.privacy.dlp.v2.DlpService
|
|
432
|
+
* Callback as used by {@link google.privacy.dlp.v2.DlpService|createDeidentifyTemplate}.
|
|
433
433
|
* @memberof google.privacy.dlp.v2.DlpService
|
|
434
434
|
* @typedef CreateDeidentifyTemplateCallback
|
|
435
435
|
* @type {function}
|
|
@@ -462,7 +462,7 @@
|
|
|
462
462
|
*/
|
|
463
463
|
|
|
464
464
|
/**
|
|
465
|
-
* Callback as used by {@link google.privacy.dlp.v2.DlpService
|
|
465
|
+
* Callback as used by {@link google.privacy.dlp.v2.DlpService|updateDeidentifyTemplate}.
|
|
466
466
|
* @memberof google.privacy.dlp.v2.DlpService
|
|
467
467
|
* @typedef UpdateDeidentifyTemplateCallback
|
|
468
468
|
* @type {function}
|
|
@@ -495,7 +495,7 @@
|
|
|
495
495
|
*/
|
|
496
496
|
|
|
497
497
|
/**
|
|
498
|
-
* Callback as used by {@link google.privacy.dlp.v2.DlpService
|
|
498
|
+
* Callback as used by {@link google.privacy.dlp.v2.DlpService|getDeidentifyTemplate}.
|
|
499
499
|
* @memberof google.privacy.dlp.v2.DlpService
|
|
500
500
|
* @typedef GetDeidentifyTemplateCallback
|
|
501
501
|
* @type {function}
|
|
@@ -528,7 +528,7 @@
|
|
|
528
528
|
*/
|
|
529
529
|
|
|
530
530
|
/**
|
|
531
|
-
* Callback as used by {@link google.privacy.dlp.v2.DlpService
|
|
531
|
+
* Callback as used by {@link google.privacy.dlp.v2.DlpService|listDeidentifyTemplates}.
|
|
532
532
|
* @memberof google.privacy.dlp.v2.DlpService
|
|
533
533
|
* @typedef ListDeidentifyTemplatesCallback
|
|
534
534
|
* @type {function}
|
|
@@ -561,7 +561,7 @@
|
|
|
561
561
|
*/
|
|
562
562
|
|
|
563
563
|
/**
|
|
564
|
-
* Callback as used by {@link google.privacy.dlp.v2.DlpService
|
|
564
|
+
* Callback as used by {@link google.privacy.dlp.v2.DlpService|deleteDeidentifyTemplate}.
|
|
565
565
|
* @memberof google.privacy.dlp.v2.DlpService
|
|
566
566
|
* @typedef DeleteDeidentifyTemplateCallback
|
|
567
567
|
* @type {function}
|
|
@@ -594,7 +594,7 @@
|
|
|
594
594
|
*/
|
|
595
595
|
|
|
596
596
|
/**
|
|
597
|
-
* Callback as used by {@link google.privacy.dlp.v2.DlpService
|
|
597
|
+
* Callback as used by {@link google.privacy.dlp.v2.DlpService|createJobTrigger}.
|
|
598
598
|
* @memberof google.privacy.dlp.v2.DlpService
|
|
599
599
|
* @typedef CreateJobTriggerCallback
|
|
600
600
|
* @type {function}
|
|
@@ -627,7 +627,7 @@
|
|
|
627
627
|
*/
|
|
628
628
|
|
|
629
629
|
/**
|
|
630
|
-
* Callback as used by {@link google.privacy.dlp.v2.DlpService
|
|
630
|
+
* Callback as used by {@link google.privacy.dlp.v2.DlpService|updateJobTrigger}.
|
|
631
631
|
* @memberof google.privacy.dlp.v2.DlpService
|
|
632
632
|
* @typedef UpdateJobTriggerCallback
|
|
633
633
|
* @type {function}
|
|
@@ -660,7 +660,7 @@
|
|
|
660
660
|
*/
|
|
661
661
|
|
|
662
662
|
/**
|
|
663
|
-
* Callback as used by {@link google.privacy.dlp.v2.DlpService
|
|
663
|
+
* Callback as used by {@link google.privacy.dlp.v2.DlpService|hybridInspectJobTrigger}.
|
|
664
664
|
* @memberof google.privacy.dlp.v2.DlpService
|
|
665
665
|
* @typedef HybridInspectJobTriggerCallback
|
|
666
666
|
* @type {function}
|
|
@@ -693,7 +693,7 @@
|
|
|
693
693
|
*/
|
|
694
694
|
|
|
695
695
|
/**
|
|
696
|
-
* Callback as used by {@link google.privacy.dlp.v2.DlpService
|
|
696
|
+
* Callback as used by {@link google.privacy.dlp.v2.DlpService|getJobTrigger}.
|
|
697
697
|
* @memberof google.privacy.dlp.v2.DlpService
|
|
698
698
|
* @typedef GetJobTriggerCallback
|
|
699
699
|
* @type {function}
|
|
@@ -726,7 +726,7 @@
|
|
|
726
726
|
*/
|
|
727
727
|
|
|
728
728
|
/**
|
|
729
|
-
* Callback as used by {@link google.privacy.dlp.v2.DlpService
|
|
729
|
+
* Callback as used by {@link google.privacy.dlp.v2.DlpService|listJobTriggers}.
|
|
730
730
|
* @memberof google.privacy.dlp.v2.DlpService
|
|
731
731
|
* @typedef ListJobTriggersCallback
|
|
732
732
|
* @type {function}
|
|
@@ -759,7 +759,7 @@
|
|
|
759
759
|
*/
|
|
760
760
|
|
|
761
761
|
/**
|
|
762
|
-
* Callback as used by {@link google.privacy.dlp.v2.DlpService
|
|
762
|
+
* Callback as used by {@link google.privacy.dlp.v2.DlpService|deleteJobTrigger}.
|
|
763
763
|
* @memberof google.privacy.dlp.v2.DlpService
|
|
764
764
|
* @typedef DeleteJobTriggerCallback
|
|
765
765
|
* @type {function}
|
|
@@ -792,7 +792,7 @@
|
|
|
792
792
|
*/
|
|
793
793
|
|
|
794
794
|
/**
|
|
795
|
-
* Callback as used by {@link google.privacy.dlp.v2.DlpService
|
|
795
|
+
* Callback as used by {@link google.privacy.dlp.v2.DlpService|activateJobTrigger}.
|
|
796
796
|
* @memberof google.privacy.dlp.v2.DlpService
|
|
797
797
|
* @typedef ActivateJobTriggerCallback
|
|
798
798
|
* @type {function}
|
|
@@ -825,7 +825,7 @@
|
|
|
825
825
|
*/
|
|
826
826
|
|
|
827
827
|
/**
|
|
828
|
-
* Callback as used by {@link google.privacy.dlp.v2.DlpService
|
|
828
|
+
* Callback as used by {@link google.privacy.dlp.v2.DlpService|createDlpJob}.
|
|
829
829
|
* @memberof google.privacy.dlp.v2.DlpService
|
|
830
830
|
* @typedef CreateDlpJobCallback
|
|
831
831
|
* @type {function}
|
|
@@ -858,7 +858,7 @@
|
|
|
858
858
|
*/
|
|
859
859
|
|
|
860
860
|
/**
|
|
861
|
-
* Callback as used by {@link google.privacy.dlp.v2.DlpService
|
|
861
|
+
* Callback as used by {@link google.privacy.dlp.v2.DlpService|listDlpJobs}.
|
|
862
862
|
* @memberof google.privacy.dlp.v2.DlpService
|
|
863
863
|
* @typedef ListDlpJobsCallback
|
|
864
864
|
* @type {function}
|
|
@@ -891,7 +891,7 @@
|
|
|
891
891
|
*/
|
|
892
892
|
|
|
893
893
|
/**
|
|
894
|
-
* Callback as used by {@link google.privacy.dlp.v2.DlpService
|
|
894
|
+
* Callback as used by {@link google.privacy.dlp.v2.DlpService|getDlpJob}.
|
|
895
895
|
* @memberof google.privacy.dlp.v2.DlpService
|
|
896
896
|
* @typedef GetDlpJobCallback
|
|
897
897
|
* @type {function}
|
|
@@ -924,7 +924,7 @@
|
|
|
924
924
|
*/
|
|
925
925
|
|
|
926
926
|
/**
|
|
927
|
-
* Callback as used by {@link google.privacy.dlp.v2.DlpService
|
|
927
|
+
* Callback as used by {@link google.privacy.dlp.v2.DlpService|deleteDlpJob}.
|
|
928
928
|
* @memberof google.privacy.dlp.v2.DlpService
|
|
929
929
|
* @typedef DeleteDlpJobCallback
|
|
930
930
|
* @type {function}
|
|
@@ -957,7 +957,7 @@
|
|
|
957
957
|
*/
|
|
958
958
|
|
|
959
959
|
/**
|
|
960
|
-
* Callback as used by {@link google.privacy.dlp.v2.DlpService
|
|
960
|
+
* Callback as used by {@link google.privacy.dlp.v2.DlpService|cancelDlpJob}.
|
|
961
961
|
* @memberof google.privacy.dlp.v2.DlpService
|
|
962
962
|
* @typedef CancelDlpJobCallback
|
|
963
963
|
* @type {function}
|
|
@@ -990,7 +990,7 @@
|
|
|
990
990
|
*/
|
|
991
991
|
|
|
992
992
|
/**
|
|
993
|
-
* Callback as used by {@link google.privacy.dlp.v2.DlpService
|
|
993
|
+
* Callback as used by {@link google.privacy.dlp.v2.DlpService|createStoredInfoType}.
|
|
994
994
|
* @memberof google.privacy.dlp.v2.DlpService
|
|
995
995
|
* @typedef CreateStoredInfoTypeCallback
|
|
996
996
|
* @type {function}
|
|
@@ -1023,7 +1023,7 @@
|
|
|
1023
1023
|
*/
|
|
1024
1024
|
|
|
1025
1025
|
/**
|
|
1026
|
-
* Callback as used by {@link google.privacy.dlp.v2.DlpService
|
|
1026
|
+
* Callback as used by {@link google.privacy.dlp.v2.DlpService|updateStoredInfoType}.
|
|
1027
1027
|
* @memberof google.privacy.dlp.v2.DlpService
|
|
1028
1028
|
* @typedef UpdateStoredInfoTypeCallback
|
|
1029
1029
|
* @type {function}
|
|
@@ -1056,7 +1056,7 @@
|
|
|
1056
1056
|
*/
|
|
1057
1057
|
|
|
1058
1058
|
/**
|
|
1059
|
-
* Callback as used by {@link google.privacy.dlp.v2.DlpService
|
|
1059
|
+
* Callback as used by {@link google.privacy.dlp.v2.DlpService|getStoredInfoType}.
|
|
1060
1060
|
* @memberof google.privacy.dlp.v2.DlpService
|
|
1061
1061
|
* @typedef GetStoredInfoTypeCallback
|
|
1062
1062
|
* @type {function}
|
|
@@ -1089,7 +1089,7 @@
|
|
|
1089
1089
|
*/
|
|
1090
1090
|
|
|
1091
1091
|
/**
|
|
1092
|
-
* Callback as used by {@link google.privacy.dlp.v2.DlpService
|
|
1092
|
+
* Callback as used by {@link google.privacy.dlp.v2.DlpService|listStoredInfoTypes}.
|
|
1093
1093
|
* @memberof google.privacy.dlp.v2.DlpService
|
|
1094
1094
|
* @typedef ListStoredInfoTypesCallback
|
|
1095
1095
|
* @type {function}
|
|
@@ -1122,7 +1122,7 @@
|
|
|
1122
1122
|
*/
|
|
1123
1123
|
|
|
1124
1124
|
/**
|
|
1125
|
-
* Callback as used by {@link google.privacy.dlp.v2.DlpService
|
|
1125
|
+
* Callback as used by {@link google.privacy.dlp.v2.DlpService|deleteStoredInfoType}.
|
|
1126
1126
|
* @memberof google.privacy.dlp.v2.DlpService
|
|
1127
1127
|
* @typedef DeleteStoredInfoTypeCallback
|
|
1128
1128
|
* @type {function}
|
|
@@ -1155,7 +1155,7 @@
|
|
|
1155
1155
|
*/
|
|
1156
1156
|
|
|
1157
1157
|
/**
|
|
1158
|
-
* Callback as used by {@link google.privacy.dlp.v2.DlpService
|
|
1158
|
+
* Callback as used by {@link google.privacy.dlp.v2.DlpService|hybridInspectDlpJob}.
|
|
1159
1159
|
* @memberof google.privacy.dlp.v2.DlpService
|
|
1160
1160
|
* @typedef HybridInspectDlpJobCallback
|
|
1161
1161
|
* @type {function}
|
|
@@ -1188,7 +1188,7 @@
|
|
|
1188
1188
|
*/
|
|
1189
1189
|
|
|
1190
1190
|
/**
|
|
1191
|
-
* Callback as used by {@link google.privacy.dlp.v2.DlpService
|
|
1191
|
+
* Callback as used by {@link google.privacy.dlp.v2.DlpService|finishDlpJob}.
|
|
1192
1192
|
* @memberof google.privacy.dlp.v2.DlpService
|
|
1193
1193
|
* @typedef FinishDlpJobCallback
|
|
1194
1194
|
* @type {function}
|
|
@@ -3368,6 +3368,8 @@
|
|
|
3368
3368
|
case 5:
|
|
3369
3369
|
case 7:
|
|
3370
3370
|
case 8:
|
|
3371
|
+
case 9:
|
|
3372
|
+
case 10:
|
|
3371
3373
|
case 11:
|
|
3372
3374
|
case 12:
|
|
3373
3375
|
case 13:
|
|
@@ -3428,6 +3430,14 @@
|
|
|
3428
3430
|
case 8:
|
|
3429
3431
|
message.type = 8;
|
|
3430
3432
|
break;
|
|
3433
|
+
case "POWERPOINT_DOCUMENT":
|
|
3434
|
+
case 9:
|
|
3435
|
+
message.type = 9;
|
|
3436
|
+
break;
|
|
3437
|
+
case "EXCEL_DOCUMENT":
|
|
3438
|
+
case 10:
|
|
3439
|
+
message.type = 10;
|
|
3440
|
+
break;
|
|
3431
3441
|
case "AVRO":
|
|
3432
3442
|
case 11:
|
|
3433
3443
|
message.type = 11;
|
|
@@ -3503,6 +3513,8 @@
|
|
|
3503
3513
|
* @property {number} TEXT_UTF8=5 TEXT_UTF8 value
|
|
3504
3514
|
* @property {number} WORD_DOCUMENT=7 WORD_DOCUMENT value
|
|
3505
3515
|
* @property {number} PDF=8 PDF value
|
|
3516
|
+
* @property {number} POWERPOINT_DOCUMENT=9 POWERPOINT_DOCUMENT value
|
|
3517
|
+
* @property {number} EXCEL_DOCUMENT=10 EXCEL_DOCUMENT value
|
|
3506
3518
|
* @property {number} AVRO=11 AVRO value
|
|
3507
3519
|
* @property {number} CSV=12 CSV value
|
|
3508
3520
|
* @property {number} TSV=13 TSV value
|
|
@@ -3518,6 +3530,8 @@
|
|
|
3518
3530
|
values[valuesById[5] = "TEXT_UTF8"] = 5;
|
|
3519
3531
|
values[valuesById[7] = "WORD_DOCUMENT"] = 7;
|
|
3520
3532
|
values[valuesById[8] = "PDF"] = 8;
|
|
3533
|
+
values[valuesById[9] = "POWERPOINT_DOCUMENT"] = 9;
|
|
3534
|
+
values[valuesById[10] = "EXCEL_DOCUMENT"] = 10;
|
|
3521
3535
|
values[valuesById[11] = "AVRO"] = 11;
|
|
3522
3536
|
values[valuesById[12] = "CSV"] = 12;
|
|
3523
3537
|
values[valuesById[13] = "TSV"] = 13;
|
|
@@ -31001,6 +31015,22 @@
|
|
|
31001
31015
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
31002
31016
|
};
|
|
31003
31017
|
|
|
31018
|
+
/**
|
|
31019
|
+
* TransformationResultCode enum.
|
|
31020
|
+
* @name google.privacy.dlp.v2.TransformationSummary.TransformationResultCode
|
|
31021
|
+
* @enum {number}
|
|
31022
|
+
* @property {number} TRANSFORMATION_RESULT_CODE_UNSPECIFIED=0 TRANSFORMATION_RESULT_CODE_UNSPECIFIED value
|
|
31023
|
+
* @property {number} SUCCESS=1 SUCCESS value
|
|
31024
|
+
* @property {number} ERROR=2 ERROR value
|
|
31025
|
+
*/
|
|
31026
|
+
TransformationSummary.TransformationResultCode = (function() {
|
|
31027
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
31028
|
+
values[valuesById[0] = "TRANSFORMATION_RESULT_CODE_UNSPECIFIED"] = 0;
|
|
31029
|
+
values[valuesById[1] = "SUCCESS"] = 1;
|
|
31030
|
+
values[valuesById[2] = "ERROR"] = 2;
|
|
31031
|
+
return values;
|
|
31032
|
+
})();
|
|
31033
|
+
|
|
31004
31034
|
TransformationSummary.SummaryResult = (function() {
|
|
31005
31035
|
|
|
31006
31036
|
/**
|
|
@@ -31265,22 +31295,6 @@
|
|
|
31265
31295
|
return SummaryResult;
|
|
31266
31296
|
})();
|
|
31267
31297
|
|
|
31268
|
-
/**
|
|
31269
|
-
* TransformationResultCode enum.
|
|
31270
|
-
* @name google.privacy.dlp.v2.TransformationSummary.TransformationResultCode
|
|
31271
|
-
* @enum {number}
|
|
31272
|
-
* @property {number} TRANSFORMATION_RESULT_CODE_UNSPECIFIED=0 TRANSFORMATION_RESULT_CODE_UNSPECIFIED value
|
|
31273
|
-
* @property {number} SUCCESS=1 SUCCESS value
|
|
31274
|
-
* @property {number} ERROR=2 ERROR value
|
|
31275
|
-
*/
|
|
31276
|
-
TransformationSummary.TransformationResultCode = (function() {
|
|
31277
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
31278
|
-
values[valuesById[0] = "TRANSFORMATION_RESULT_CODE_UNSPECIFIED"] = 0;
|
|
31279
|
-
values[valuesById[1] = "SUCCESS"] = 1;
|
|
31280
|
-
values[valuesById[2] = "ERROR"] = 2;
|
|
31281
|
-
return values;
|
|
31282
|
-
})();
|
|
31283
|
-
|
|
31284
31298
|
return TransformationSummary;
|
|
31285
31299
|
})();
|
|
31286
31300
|
|
|
@@ -46012,6 +46026,28 @@
|
|
|
46012
46026
|
return InfoType;
|
|
46013
46027
|
})();
|
|
46014
46028
|
|
|
46029
|
+
/**
|
|
46030
|
+
* Likelihood enum.
|
|
46031
|
+
* @name google.privacy.dlp.v2.Likelihood
|
|
46032
|
+
* @enum {number}
|
|
46033
|
+
* @property {number} LIKELIHOOD_UNSPECIFIED=0 LIKELIHOOD_UNSPECIFIED value
|
|
46034
|
+
* @property {number} VERY_UNLIKELY=1 VERY_UNLIKELY value
|
|
46035
|
+
* @property {number} UNLIKELY=2 UNLIKELY value
|
|
46036
|
+
* @property {number} POSSIBLE=3 POSSIBLE value
|
|
46037
|
+
* @property {number} LIKELY=4 LIKELY value
|
|
46038
|
+
* @property {number} VERY_LIKELY=5 VERY_LIKELY value
|
|
46039
|
+
*/
|
|
46040
|
+
v2.Likelihood = (function() {
|
|
46041
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
46042
|
+
values[valuesById[0] = "LIKELIHOOD_UNSPECIFIED"] = 0;
|
|
46043
|
+
values[valuesById[1] = "VERY_UNLIKELY"] = 1;
|
|
46044
|
+
values[valuesById[2] = "UNLIKELY"] = 2;
|
|
46045
|
+
values[valuesById[3] = "POSSIBLE"] = 3;
|
|
46046
|
+
values[valuesById[4] = "LIKELY"] = 4;
|
|
46047
|
+
values[valuesById[5] = "VERY_LIKELY"] = 5;
|
|
46048
|
+
return values;
|
|
46049
|
+
})();
|
|
46050
|
+
|
|
46015
46051
|
v2.StoredType = (function() {
|
|
46016
46052
|
|
|
46017
46053
|
/**
|
|
@@ -46227,28 +46263,6 @@
|
|
|
46227
46263
|
return StoredType;
|
|
46228
46264
|
})();
|
|
46229
46265
|
|
|
46230
|
-
/**
|
|
46231
|
-
* Likelihood enum.
|
|
46232
|
-
* @name google.privacy.dlp.v2.Likelihood
|
|
46233
|
-
* @enum {number}
|
|
46234
|
-
* @property {number} LIKELIHOOD_UNSPECIFIED=0 LIKELIHOOD_UNSPECIFIED value
|
|
46235
|
-
* @property {number} VERY_UNLIKELY=1 VERY_UNLIKELY value
|
|
46236
|
-
* @property {number} UNLIKELY=2 UNLIKELY value
|
|
46237
|
-
* @property {number} POSSIBLE=3 POSSIBLE value
|
|
46238
|
-
* @property {number} LIKELY=4 LIKELY value
|
|
46239
|
-
* @property {number} VERY_LIKELY=5 VERY_LIKELY value
|
|
46240
|
-
*/
|
|
46241
|
-
v2.Likelihood = (function() {
|
|
46242
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
46243
|
-
values[valuesById[0] = "LIKELIHOOD_UNSPECIFIED"] = 0;
|
|
46244
|
-
values[valuesById[1] = "VERY_UNLIKELY"] = 1;
|
|
46245
|
-
values[valuesById[2] = "UNLIKELY"] = 2;
|
|
46246
|
-
values[valuesById[3] = "POSSIBLE"] = 3;
|
|
46247
|
-
values[valuesById[4] = "LIKELY"] = 4;
|
|
46248
|
-
values[valuesById[5] = "VERY_LIKELY"] = 5;
|
|
46249
|
-
return values;
|
|
46250
|
-
})();
|
|
46251
|
-
|
|
46252
46266
|
v2.CustomInfoType = (function() {
|
|
46253
46267
|
|
|
46254
46268
|
/**
|
|
@@ -49319,6 +49333,38 @@
|
|
|
49319
49333
|
return DatastoreOptions;
|
|
49320
49334
|
})();
|
|
49321
49335
|
|
|
49336
|
+
/**
|
|
49337
|
+
* FileType enum.
|
|
49338
|
+
* @name google.privacy.dlp.v2.FileType
|
|
49339
|
+
* @enum {number}
|
|
49340
|
+
* @property {number} FILE_TYPE_UNSPECIFIED=0 FILE_TYPE_UNSPECIFIED value
|
|
49341
|
+
* @property {number} BINARY_FILE=1 BINARY_FILE value
|
|
49342
|
+
* @property {number} TEXT_FILE=2 TEXT_FILE value
|
|
49343
|
+
* @property {number} IMAGE=3 IMAGE value
|
|
49344
|
+
* @property {number} WORD=5 WORD value
|
|
49345
|
+
* @property {number} PDF=6 PDF value
|
|
49346
|
+
* @property {number} AVRO=7 AVRO value
|
|
49347
|
+
* @property {number} CSV=8 CSV value
|
|
49348
|
+
* @property {number} TSV=9 TSV value
|
|
49349
|
+
* @property {number} POWERPOINT=11 POWERPOINT value
|
|
49350
|
+
* @property {number} EXCEL=12 EXCEL value
|
|
49351
|
+
*/
|
|
49352
|
+
v2.FileType = (function() {
|
|
49353
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
49354
|
+
values[valuesById[0] = "FILE_TYPE_UNSPECIFIED"] = 0;
|
|
49355
|
+
values[valuesById[1] = "BINARY_FILE"] = 1;
|
|
49356
|
+
values[valuesById[2] = "TEXT_FILE"] = 2;
|
|
49357
|
+
values[valuesById[3] = "IMAGE"] = 3;
|
|
49358
|
+
values[valuesById[5] = "WORD"] = 5;
|
|
49359
|
+
values[valuesById[6] = "PDF"] = 6;
|
|
49360
|
+
values[valuesById[7] = "AVRO"] = 7;
|
|
49361
|
+
values[valuesById[8] = "CSV"] = 8;
|
|
49362
|
+
values[valuesById[9] = "TSV"] = 9;
|
|
49363
|
+
values[valuesById[11] = "POWERPOINT"] = 11;
|
|
49364
|
+
values[valuesById[12] = "EXCEL"] = 12;
|
|
49365
|
+
return values;
|
|
49366
|
+
})();
|
|
49367
|
+
|
|
49322
49368
|
v2.CloudStorageRegexFileSet = (function() {
|
|
49323
49369
|
|
|
49324
49370
|
/**
|
|
@@ -49823,6 +49869,8 @@
|
|
|
49823
49869
|
case 7:
|
|
49824
49870
|
case 8:
|
|
49825
49871
|
case 9:
|
|
49872
|
+
case 11:
|
|
49873
|
+
case 12:
|
|
49826
49874
|
break;
|
|
49827
49875
|
}
|
|
49828
49876
|
}
|
|
@@ -49912,6 +49960,14 @@
|
|
|
49912
49960
|
case 9:
|
|
49913
49961
|
message.fileTypes[i] = 9;
|
|
49914
49962
|
break;
|
|
49963
|
+
case "POWERPOINT":
|
|
49964
|
+
case 11:
|
|
49965
|
+
message.fileTypes[i] = 11;
|
|
49966
|
+
break;
|
|
49967
|
+
case "EXCEL":
|
|
49968
|
+
case 12:
|
|
49969
|
+
message.fileTypes[i] = 12;
|
|
49970
|
+
break;
|
|
49915
49971
|
}
|
|
49916
49972
|
}
|
|
49917
49973
|
switch (object.sampleMethod) {
|
|
@@ -51647,34 +51703,6 @@
|
|
|
51647
51703
|
return StorageConfig;
|
|
51648
51704
|
})();
|
|
51649
51705
|
|
|
51650
|
-
/**
|
|
51651
|
-
* FileType enum.
|
|
51652
|
-
* @name google.privacy.dlp.v2.FileType
|
|
51653
|
-
* @enum {number}
|
|
51654
|
-
* @property {number} FILE_TYPE_UNSPECIFIED=0 FILE_TYPE_UNSPECIFIED value
|
|
51655
|
-
* @property {number} BINARY_FILE=1 BINARY_FILE value
|
|
51656
|
-
* @property {number} TEXT_FILE=2 TEXT_FILE value
|
|
51657
|
-
* @property {number} IMAGE=3 IMAGE value
|
|
51658
|
-
* @property {number} WORD=5 WORD value
|
|
51659
|
-
* @property {number} PDF=6 PDF value
|
|
51660
|
-
* @property {number} AVRO=7 AVRO value
|
|
51661
|
-
* @property {number} CSV=8 CSV value
|
|
51662
|
-
* @property {number} TSV=9 TSV value
|
|
51663
|
-
*/
|
|
51664
|
-
v2.FileType = (function() {
|
|
51665
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
51666
|
-
values[valuesById[0] = "FILE_TYPE_UNSPECIFIED"] = 0;
|
|
51667
|
-
values[valuesById[1] = "BINARY_FILE"] = 1;
|
|
51668
|
-
values[valuesById[2] = "TEXT_FILE"] = 2;
|
|
51669
|
-
values[valuesById[3] = "IMAGE"] = 3;
|
|
51670
|
-
values[valuesById[5] = "WORD"] = 5;
|
|
51671
|
-
values[valuesById[6] = "PDF"] = 6;
|
|
51672
|
-
values[valuesById[7] = "AVRO"] = 7;
|
|
51673
|
-
values[valuesById[8] = "CSV"] = 8;
|
|
51674
|
-
values[valuesById[9] = "TSV"] = 9;
|
|
51675
|
-
return values;
|
|
51676
|
-
})();
|
|
51677
|
-
|
|
51678
51706
|
v2.HybridOptions = (function() {
|
|
51679
51707
|
|
|
51680
51708
|
/**
|
|
@@ -54064,58 +54092,26 @@
|
|
|
54064
54092
|
*/
|
|
54065
54093
|
var api = {};
|
|
54066
54094
|
|
|
54067
|
-
|
|
54068
|
-
* FieldBehavior enum.
|
|
54069
|
-
* @name google.api.FieldBehavior
|
|
54070
|
-
* @enum {number}
|
|
54071
|
-
* @property {number} FIELD_BEHAVIOR_UNSPECIFIED=0 FIELD_BEHAVIOR_UNSPECIFIED value
|
|
54072
|
-
* @property {number} OPTIONAL=1 OPTIONAL value
|
|
54073
|
-
* @property {number} REQUIRED=2 REQUIRED value
|
|
54074
|
-
* @property {number} OUTPUT_ONLY=3 OUTPUT_ONLY value
|
|
54075
|
-
* @property {number} INPUT_ONLY=4 INPUT_ONLY value
|
|
54076
|
-
* @property {number} IMMUTABLE=5 IMMUTABLE value
|
|
54077
|
-
* @property {number} UNORDERED_LIST=6 UNORDERED_LIST value
|
|
54078
|
-
* @property {number} NON_EMPTY_DEFAULT=7 NON_EMPTY_DEFAULT value
|
|
54079
|
-
*/
|
|
54080
|
-
api.FieldBehavior = (function() {
|
|
54081
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
54082
|
-
values[valuesById[0] = "FIELD_BEHAVIOR_UNSPECIFIED"] = 0;
|
|
54083
|
-
values[valuesById[1] = "OPTIONAL"] = 1;
|
|
54084
|
-
values[valuesById[2] = "REQUIRED"] = 2;
|
|
54085
|
-
values[valuesById[3] = "OUTPUT_ONLY"] = 3;
|
|
54086
|
-
values[valuesById[4] = "INPUT_ONLY"] = 4;
|
|
54087
|
-
values[valuesById[5] = "IMMUTABLE"] = 5;
|
|
54088
|
-
values[valuesById[6] = "UNORDERED_LIST"] = 6;
|
|
54089
|
-
values[valuesById[7] = "NON_EMPTY_DEFAULT"] = 7;
|
|
54090
|
-
return values;
|
|
54091
|
-
})();
|
|
54092
|
-
|
|
54093
|
-
api.ResourceDescriptor = (function() {
|
|
54095
|
+
api.Http = (function() {
|
|
54094
54096
|
|
|
54095
54097
|
/**
|
|
54096
|
-
* Properties of a
|
|
54098
|
+
* Properties of a Http.
|
|
54097
54099
|
* @memberof google.api
|
|
54098
|
-
* @interface
|
|
54099
|
-
* @property {
|
|
54100
|
-
* @property {
|
|
54101
|
-
* @property {string|null} [nameField] ResourceDescriptor nameField
|
|
54102
|
-
* @property {google.api.ResourceDescriptor.History|null} [history] ResourceDescriptor history
|
|
54103
|
-
* @property {string|null} [plural] ResourceDescriptor plural
|
|
54104
|
-
* @property {string|null} [singular] ResourceDescriptor singular
|
|
54105
|
-
* @property {Array.<google.api.ResourceDescriptor.Style>|null} [style] ResourceDescriptor style
|
|
54100
|
+
* @interface IHttp
|
|
54101
|
+
* @property {Array.<google.api.IHttpRule>|null} [rules] Http rules
|
|
54102
|
+
* @property {boolean|null} [fullyDecodeReservedExpansion] Http fullyDecodeReservedExpansion
|
|
54106
54103
|
*/
|
|
54107
54104
|
|
|
54108
54105
|
/**
|
|
54109
|
-
* Constructs a new
|
|
54106
|
+
* Constructs a new Http.
|
|
54110
54107
|
* @memberof google.api
|
|
54111
|
-
* @classdesc Represents a
|
|
54112
|
-
* @implements
|
|
54108
|
+
* @classdesc Represents a Http.
|
|
54109
|
+
* @implements IHttp
|
|
54113
54110
|
* @constructor
|
|
54114
|
-
* @param {google.api.
|
|
54111
|
+
* @param {google.api.IHttp=} [properties] Properties to set
|
|
54115
54112
|
*/
|
|
54116
|
-
function
|
|
54117
|
-
this.
|
|
54118
|
-
this.style = [];
|
|
54113
|
+
function Http(properties) {
|
|
54114
|
+
this.rules = [];
|
|
54119
54115
|
if (properties)
|
|
54120
54116
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
54121
54117
|
if (properties[keys[i]] != null)
|
|
@@ -54123,167 +54119,91 @@
|
|
|
54123
54119
|
}
|
|
54124
54120
|
|
|
54125
54121
|
/**
|
|
54126
|
-
*
|
|
54127
|
-
* @member {
|
|
54128
|
-
* @memberof google.api.
|
|
54129
|
-
* @instance
|
|
54130
|
-
*/
|
|
54131
|
-
ResourceDescriptor.prototype.type = "";
|
|
54132
|
-
|
|
54133
|
-
/**
|
|
54134
|
-
* ResourceDescriptor pattern.
|
|
54135
|
-
* @member {Array.<string>} pattern
|
|
54136
|
-
* @memberof google.api.ResourceDescriptor
|
|
54137
|
-
* @instance
|
|
54138
|
-
*/
|
|
54139
|
-
ResourceDescriptor.prototype.pattern = $util.emptyArray;
|
|
54140
|
-
|
|
54141
|
-
/**
|
|
54142
|
-
* ResourceDescriptor nameField.
|
|
54143
|
-
* @member {string} nameField
|
|
54144
|
-
* @memberof google.api.ResourceDescriptor
|
|
54145
|
-
* @instance
|
|
54146
|
-
*/
|
|
54147
|
-
ResourceDescriptor.prototype.nameField = "";
|
|
54148
|
-
|
|
54149
|
-
/**
|
|
54150
|
-
* ResourceDescriptor history.
|
|
54151
|
-
* @member {google.api.ResourceDescriptor.History} history
|
|
54152
|
-
* @memberof google.api.ResourceDescriptor
|
|
54153
|
-
* @instance
|
|
54154
|
-
*/
|
|
54155
|
-
ResourceDescriptor.prototype.history = 0;
|
|
54156
|
-
|
|
54157
|
-
/**
|
|
54158
|
-
* ResourceDescriptor plural.
|
|
54159
|
-
* @member {string} plural
|
|
54160
|
-
* @memberof google.api.ResourceDescriptor
|
|
54161
|
-
* @instance
|
|
54162
|
-
*/
|
|
54163
|
-
ResourceDescriptor.prototype.plural = "";
|
|
54164
|
-
|
|
54165
|
-
/**
|
|
54166
|
-
* ResourceDescriptor singular.
|
|
54167
|
-
* @member {string} singular
|
|
54168
|
-
* @memberof google.api.ResourceDescriptor
|
|
54122
|
+
* Http rules.
|
|
54123
|
+
* @member {Array.<google.api.IHttpRule>} rules
|
|
54124
|
+
* @memberof google.api.Http
|
|
54169
54125
|
* @instance
|
|
54170
54126
|
*/
|
|
54171
|
-
|
|
54127
|
+
Http.prototype.rules = $util.emptyArray;
|
|
54172
54128
|
|
|
54173
54129
|
/**
|
|
54174
|
-
*
|
|
54175
|
-
* @member {
|
|
54176
|
-
* @memberof google.api.
|
|
54130
|
+
* Http fullyDecodeReservedExpansion.
|
|
54131
|
+
* @member {boolean} fullyDecodeReservedExpansion
|
|
54132
|
+
* @memberof google.api.Http
|
|
54177
54133
|
* @instance
|
|
54178
54134
|
*/
|
|
54179
|
-
|
|
54135
|
+
Http.prototype.fullyDecodeReservedExpansion = false;
|
|
54180
54136
|
|
|
54181
54137
|
/**
|
|
54182
|
-
* Creates a new
|
|
54138
|
+
* Creates a new Http instance using the specified properties.
|
|
54183
54139
|
* @function create
|
|
54184
|
-
* @memberof google.api.
|
|
54140
|
+
* @memberof google.api.Http
|
|
54185
54141
|
* @static
|
|
54186
|
-
* @param {google.api.
|
|
54187
|
-
* @returns {google.api.
|
|
54142
|
+
* @param {google.api.IHttp=} [properties] Properties to set
|
|
54143
|
+
* @returns {google.api.Http} Http instance
|
|
54188
54144
|
*/
|
|
54189
|
-
|
|
54190
|
-
return new
|
|
54145
|
+
Http.create = function create(properties) {
|
|
54146
|
+
return new Http(properties);
|
|
54191
54147
|
};
|
|
54192
54148
|
|
|
54193
54149
|
/**
|
|
54194
|
-
* Encodes the specified
|
|
54150
|
+
* Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
|
|
54195
54151
|
* @function encode
|
|
54196
|
-
* @memberof google.api.
|
|
54152
|
+
* @memberof google.api.Http
|
|
54197
54153
|
* @static
|
|
54198
|
-
* @param {google.api.
|
|
54154
|
+
* @param {google.api.IHttp} message Http message or plain object to encode
|
|
54199
54155
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
54200
54156
|
* @returns {$protobuf.Writer} Writer
|
|
54201
54157
|
*/
|
|
54202
|
-
|
|
54158
|
+
Http.encode = function encode(message, writer) {
|
|
54203
54159
|
if (!writer)
|
|
54204
54160
|
writer = $Writer.create();
|
|
54205
|
-
if (message.
|
|
54206
|
-
|
|
54207
|
-
|
|
54208
|
-
|
|
54209
|
-
|
|
54210
|
-
if (message.nameField != null && Object.hasOwnProperty.call(message, "nameField"))
|
|
54211
|
-
writer.uint32(/* id 3, wireType 2 =*/26).string(message.nameField);
|
|
54212
|
-
if (message.history != null && Object.hasOwnProperty.call(message, "history"))
|
|
54213
|
-
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.history);
|
|
54214
|
-
if (message.plural != null && Object.hasOwnProperty.call(message, "plural"))
|
|
54215
|
-
writer.uint32(/* id 5, wireType 2 =*/42).string(message.plural);
|
|
54216
|
-
if (message.singular != null && Object.hasOwnProperty.call(message, "singular"))
|
|
54217
|
-
writer.uint32(/* id 6, wireType 2 =*/50).string(message.singular);
|
|
54218
|
-
if (message.style != null && message.style.length) {
|
|
54219
|
-
writer.uint32(/* id 10, wireType 2 =*/82).fork();
|
|
54220
|
-
for (var i = 0; i < message.style.length; ++i)
|
|
54221
|
-
writer.int32(message.style[i]);
|
|
54222
|
-
writer.ldelim();
|
|
54223
|
-
}
|
|
54161
|
+
if (message.rules != null && message.rules.length)
|
|
54162
|
+
for (var i = 0; i < message.rules.length; ++i)
|
|
54163
|
+
$root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
54164
|
+
if (message.fullyDecodeReservedExpansion != null && Object.hasOwnProperty.call(message, "fullyDecodeReservedExpansion"))
|
|
54165
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.fullyDecodeReservedExpansion);
|
|
54224
54166
|
return writer;
|
|
54225
54167
|
};
|
|
54226
54168
|
|
|
54227
54169
|
/**
|
|
54228
|
-
* Encodes the specified
|
|
54170
|
+
* Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
|
|
54229
54171
|
* @function encodeDelimited
|
|
54230
|
-
* @memberof google.api.
|
|
54172
|
+
* @memberof google.api.Http
|
|
54231
54173
|
* @static
|
|
54232
|
-
* @param {google.api.
|
|
54174
|
+
* @param {google.api.IHttp} message Http message or plain object to encode
|
|
54233
54175
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
54234
54176
|
* @returns {$protobuf.Writer} Writer
|
|
54235
54177
|
*/
|
|
54236
|
-
|
|
54178
|
+
Http.encodeDelimited = function encodeDelimited(message, writer) {
|
|
54237
54179
|
return this.encode(message, writer).ldelim();
|
|
54238
54180
|
};
|
|
54239
54181
|
|
|
54240
54182
|
/**
|
|
54241
|
-
* Decodes a
|
|
54183
|
+
* Decodes a Http message from the specified reader or buffer.
|
|
54242
54184
|
* @function decode
|
|
54243
|
-
* @memberof google.api.
|
|
54185
|
+
* @memberof google.api.Http
|
|
54244
54186
|
* @static
|
|
54245
54187
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
54246
54188
|
* @param {number} [length] Message length if known beforehand
|
|
54247
|
-
* @returns {google.api.
|
|
54189
|
+
* @returns {google.api.Http} Http
|
|
54248
54190
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
54249
54191
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
54250
54192
|
*/
|
|
54251
|
-
|
|
54193
|
+
Http.decode = function decode(reader, length) {
|
|
54252
54194
|
if (!(reader instanceof $Reader))
|
|
54253
54195
|
reader = $Reader.create(reader);
|
|
54254
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.
|
|
54196
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Http();
|
|
54255
54197
|
while (reader.pos < end) {
|
|
54256
54198
|
var tag = reader.uint32();
|
|
54257
54199
|
switch (tag >>> 3) {
|
|
54258
54200
|
case 1:
|
|
54259
|
-
message.
|
|
54201
|
+
if (!(message.rules && message.rules.length))
|
|
54202
|
+
message.rules = [];
|
|
54203
|
+
message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32()));
|
|
54260
54204
|
break;
|
|
54261
54205
|
case 2:
|
|
54262
|
-
|
|
54263
|
-
message.pattern = [];
|
|
54264
|
-
message.pattern.push(reader.string());
|
|
54265
|
-
break;
|
|
54266
|
-
case 3:
|
|
54267
|
-
message.nameField = reader.string();
|
|
54268
|
-
break;
|
|
54269
|
-
case 4:
|
|
54270
|
-
message.history = reader.int32();
|
|
54271
|
-
break;
|
|
54272
|
-
case 5:
|
|
54273
|
-
message.plural = reader.string();
|
|
54274
|
-
break;
|
|
54275
|
-
case 6:
|
|
54276
|
-
message.singular = reader.string();
|
|
54277
|
-
break;
|
|
54278
|
-
case 10:
|
|
54279
|
-
if (!(message.style && message.style.length))
|
|
54280
|
-
message.style = [];
|
|
54281
|
-
if ((tag & 7) === 2) {
|
|
54282
|
-
var end2 = reader.uint32() + reader.pos;
|
|
54283
|
-
while (reader.pos < end2)
|
|
54284
|
-
message.style.push(reader.int32());
|
|
54285
|
-
} else
|
|
54286
|
-
message.style.push(reader.int32());
|
|
54206
|
+
message.fullyDecodeReservedExpansion = reader.bool();
|
|
54287
54207
|
break;
|
|
54288
54208
|
default:
|
|
54289
54209
|
reader.skipType(tag & 7);
|
|
@@ -54294,246 +54214,143 @@
|
|
|
54294
54214
|
};
|
|
54295
54215
|
|
|
54296
54216
|
/**
|
|
54297
|
-
* Decodes a
|
|
54217
|
+
* Decodes a Http message from the specified reader or buffer, length delimited.
|
|
54298
54218
|
* @function decodeDelimited
|
|
54299
|
-
* @memberof google.api.
|
|
54219
|
+
* @memberof google.api.Http
|
|
54300
54220
|
* @static
|
|
54301
54221
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
54302
|
-
* @returns {google.api.
|
|
54222
|
+
* @returns {google.api.Http} Http
|
|
54303
54223
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
54304
54224
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
54305
54225
|
*/
|
|
54306
|
-
|
|
54226
|
+
Http.decodeDelimited = function decodeDelimited(reader) {
|
|
54307
54227
|
if (!(reader instanceof $Reader))
|
|
54308
54228
|
reader = new $Reader(reader);
|
|
54309
54229
|
return this.decode(reader, reader.uint32());
|
|
54310
54230
|
};
|
|
54311
54231
|
|
|
54312
54232
|
/**
|
|
54313
|
-
* Verifies a
|
|
54233
|
+
* Verifies a Http message.
|
|
54314
54234
|
* @function verify
|
|
54315
|
-
* @memberof google.api.
|
|
54235
|
+
* @memberof google.api.Http
|
|
54316
54236
|
* @static
|
|
54317
54237
|
* @param {Object.<string,*>} message Plain object to verify
|
|
54318
54238
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
54319
54239
|
*/
|
|
54320
|
-
|
|
54240
|
+
Http.verify = function verify(message) {
|
|
54321
54241
|
if (typeof message !== "object" || message === null)
|
|
54322
54242
|
return "object expected";
|
|
54323
|
-
if (message.
|
|
54324
|
-
if (
|
|
54325
|
-
return "
|
|
54326
|
-
|
|
54327
|
-
|
|
54328
|
-
|
|
54329
|
-
|
|
54330
|
-
if (!$util.isString(message.pattern[i]))
|
|
54331
|
-
return "pattern: string[] expected";
|
|
54332
|
-
}
|
|
54333
|
-
if (message.nameField != null && message.hasOwnProperty("nameField"))
|
|
54334
|
-
if (!$util.isString(message.nameField))
|
|
54335
|
-
return "nameField: string expected";
|
|
54336
|
-
if (message.history != null && message.hasOwnProperty("history"))
|
|
54337
|
-
switch (message.history) {
|
|
54338
|
-
default:
|
|
54339
|
-
return "history: enum value expected";
|
|
54340
|
-
case 0:
|
|
54341
|
-
case 1:
|
|
54342
|
-
case 2:
|
|
54343
|
-
break;
|
|
54243
|
+
if (message.rules != null && message.hasOwnProperty("rules")) {
|
|
54244
|
+
if (!Array.isArray(message.rules))
|
|
54245
|
+
return "rules: array expected";
|
|
54246
|
+
for (var i = 0; i < message.rules.length; ++i) {
|
|
54247
|
+
var error = $root.google.api.HttpRule.verify(message.rules[i]);
|
|
54248
|
+
if (error)
|
|
54249
|
+
return "rules." + error;
|
|
54344
54250
|
}
|
|
54345
|
-
if (message.plural != null && message.hasOwnProperty("plural"))
|
|
54346
|
-
if (!$util.isString(message.plural))
|
|
54347
|
-
return "plural: string expected";
|
|
54348
|
-
if (message.singular != null && message.hasOwnProperty("singular"))
|
|
54349
|
-
if (!$util.isString(message.singular))
|
|
54350
|
-
return "singular: string expected";
|
|
54351
|
-
if (message.style != null && message.hasOwnProperty("style")) {
|
|
54352
|
-
if (!Array.isArray(message.style))
|
|
54353
|
-
return "style: array expected";
|
|
54354
|
-
for (var i = 0; i < message.style.length; ++i)
|
|
54355
|
-
switch (message.style[i]) {
|
|
54356
|
-
default:
|
|
54357
|
-
return "style: enum value[] expected";
|
|
54358
|
-
case 0:
|
|
54359
|
-
case 1:
|
|
54360
|
-
break;
|
|
54361
|
-
}
|
|
54362
54251
|
}
|
|
54252
|
+
if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion"))
|
|
54253
|
+
if (typeof message.fullyDecodeReservedExpansion !== "boolean")
|
|
54254
|
+
return "fullyDecodeReservedExpansion: boolean expected";
|
|
54363
54255
|
return null;
|
|
54364
54256
|
};
|
|
54365
54257
|
|
|
54366
54258
|
/**
|
|
54367
|
-
* Creates a
|
|
54259
|
+
* Creates a Http message from a plain object. Also converts values to their respective internal types.
|
|
54368
54260
|
* @function fromObject
|
|
54369
|
-
* @memberof google.api.
|
|
54261
|
+
* @memberof google.api.Http
|
|
54370
54262
|
* @static
|
|
54371
54263
|
* @param {Object.<string,*>} object Plain object
|
|
54372
|
-
* @returns {google.api.
|
|
54264
|
+
* @returns {google.api.Http} Http
|
|
54373
54265
|
*/
|
|
54374
|
-
|
|
54375
|
-
if (object instanceof $root.google.api.
|
|
54266
|
+
Http.fromObject = function fromObject(object) {
|
|
54267
|
+
if (object instanceof $root.google.api.Http)
|
|
54376
54268
|
return object;
|
|
54377
|
-
var message = new $root.google.api.
|
|
54378
|
-
if (object.
|
|
54379
|
-
|
|
54380
|
-
|
|
54381
|
-
|
|
54382
|
-
|
|
54383
|
-
|
|
54384
|
-
|
|
54385
|
-
message.
|
|
54386
|
-
|
|
54387
|
-
if (object.nameField != null)
|
|
54388
|
-
message.nameField = String(object.nameField);
|
|
54389
|
-
switch (object.history) {
|
|
54390
|
-
case "HISTORY_UNSPECIFIED":
|
|
54391
|
-
case 0:
|
|
54392
|
-
message.history = 0;
|
|
54393
|
-
break;
|
|
54394
|
-
case "ORIGINALLY_SINGLE_PATTERN":
|
|
54395
|
-
case 1:
|
|
54396
|
-
message.history = 1;
|
|
54397
|
-
break;
|
|
54398
|
-
case "FUTURE_MULTI_PATTERN":
|
|
54399
|
-
case 2:
|
|
54400
|
-
message.history = 2;
|
|
54401
|
-
break;
|
|
54402
|
-
}
|
|
54403
|
-
if (object.plural != null)
|
|
54404
|
-
message.plural = String(object.plural);
|
|
54405
|
-
if (object.singular != null)
|
|
54406
|
-
message.singular = String(object.singular);
|
|
54407
|
-
if (object.style) {
|
|
54408
|
-
if (!Array.isArray(object.style))
|
|
54409
|
-
throw TypeError(".google.api.ResourceDescriptor.style: array expected");
|
|
54410
|
-
message.style = [];
|
|
54411
|
-
for (var i = 0; i < object.style.length; ++i)
|
|
54412
|
-
switch (object.style[i]) {
|
|
54413
|
-
default:
|
|
54414
|
-
case "STYLE_UNSPECIFIED":
|
|
54415
|
-
case 0:
|
|
54416
|
-
message.style[i] = 0;
|
|
54417
|
-
break;
|
|
54418
|
-
case "DECLARATIVE_FRIENDLY":
|
|
54419
|
-
case 1:
|
|
54420
|
-
message.style[i] = 1;
|
|
54421
|
-
break;
|
|
54422
|
-
}
|
|
54269
|
+
var message = new $root.google.api.Http();
|
|
54270
|
+
if (object.rules) {
|
|
54271
|
+
if (!Array.isArray(object.rules))
|
|
54272
|
+
throw TypeError(".google.api.Http.rules: array expected");
|
|
54273
|
+
message.rules = [];
|
|
54274
|
+
for (var i = 0; i < object.rules.length; ++i) {
|
|
54275
|
+
if (typeof object.rules[i] !== "object")
|
|
54276
|
+
throw TypeError(".google.api.Http.rules: object expected");
|
|
54277
|
+
message.rules[i] = $root.google.api.HttpRule.fromObject(object.rules[i]);
|
|
54278
|
+
}
|
|
54423
54279
|
}
|
|
54280
|
+
if (object.fullyDecodeReservedExpansion != null)
|
|
54281
|
+
message.fullyDecodeReservedExpansion = Boolean(object.fullyDecodeReservedExpansion);
|
|
54424
54282
|
return message;
|
|
54425
54283
|
};
|
|
54426
54284
|
|
|
54427
54285
|
/**
|
|
54428
|
-
* Creates a plain object from a
|
|
54286
|
+
* Creates a plain object from a Http message. Also converts values to other types if specified.
|
|
54429
54287
|
* @function toObject
|
|
54430
|
-
* @memberof google.api.
|
|
54288
|
+
* @memberof google.api.Http
|
|
54431
54289
|
* @static
|
|
54432
|
-
* @param {google.api.
|
|
54290
|
+
* @param {google.api.Http} message Http
|
|
54433
54291
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
54434
54292
|
* @returns {Object.<string,*>} Plain object
|
|
54435
54293
|
*/
|
|
54436
|
-
|
|
54294
|
+
Http.toObject = function toObject(message, options) {
|
|
54437
54295
|
if (!options)
|
|
54438
54296
|
options = {};
|
|
54439
54297
|
var object = {};
|
|
54440
|
-
if (options.arrays || options.defaults)
|
|
54441
|
-
object.
|
|
54442
|
-
|
|
54443
|
-
|
|
54444
|
-
if (
|
|
54445
|
-
object.
|
|
54446
|
-
|
|
54447
|
-
|
|
54448
|
-
object.plural = "";
|
|
54449
|
-
object.singular = "";
|
|
54450
|
-
}
|
|
54451
|
-
if (message.type != null && message.hasOwnProperty("type"))
|
|
54452
|
-
object.type = message.type;
|
|
54453
|
-
if (message.pattern && message.pattern.length) {
|
|
54454
|
-
object.pattern = [];
|
|
54455
|
-
for (var j = 0; j < message.pattern.length; ++j)
|
|
54456
|
-
object.pattern[j] = message.pattern[j];
|
|
54457
|
-
}
|
|
54458
|
-
if (message.nameField != null && message.hasOwnProperty("nameField"))
|
|
54459
|
-
object.nameField = message.nameField;
|
|
54460
|
-
if (message.history != null && message.hasOwnProperty("history"))
|
|
54461
|
-
object.history = options.enums === String ? $root.google.api.ResourceDescriptor.History[message.history] : message.history;
|
|
54462
|
-
if (message.plural != null && message.hasOwnProperty("plural"))
|
|
54463
|
-
object.plural = message.plural;
|
|
54464
|
-
if (message.singular != null && message.hasOwnProperty("singular"))
|
|
54465
|
-
object.singular = message.singular;
|
|
54466
|
-
if (message.style && message.style.length) {
|
|
54467
|
-
object.style = [];
|
|
54468
|
-
for (var j = 0; j < message.style.length; ++j)
|
|
54469
|
-
object.style[j] = options.enums === String ? $root.google.api.ResourceDescriptor.Style[message.style[j]] : message.style[j];
|
|
54298
|
+
if (options.arrays || options.defaults)
|
|
54299
|
+
object.rules = [];
|
|
54300
|
+
if (options.defaults)
|
|
54301
|
+
object.fullyDecodeReservedExpansion = false;
|
|
54302
|
+
if (message.rules && message.rules.length) {
|
|
54303
|
+
object.rules = [];
|
|
54304
|
+
for (var j = 0; j < message.rules.length; ++j)
|
|
54305
|
+
object.rules[j] = $root.google.api.HttpRule.toObject(message.rules[j], options);
|
|
54470
54306
|
}
|
|
54307
|
+
if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion"))
|
|
54308
|
+
object.fullyDecodeReservedExpansion = message.fullyDecodeReservedExpansion;
|
|
54471
54309
|
return object;
|
|
54472
54310
|
};
|
|
54473
54311
|
|
|
54474
54312
|
/**
|
|
54475
|
-
* Converts this
|
|
54313
|
+
* Converts this Http to JSON.
|
|
54476
54314
|
* @function toJSON
|
|
54477
|
-
* @memberof google.api.
|
|
54315
|
+
* @memberof google.api.Http
|
|
54478
54316
|
* @instance
|
|
54479
54317
|
* @returns {Object.<string,*>} JSON object
|
|
54480
54318
|
*/
|
|
54481
|
-
|
|
54319
|
+
Http.prototype.toJSON = function toJSON() {
|
|
54482
54320
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
54483
54321
|
};
|
|
54484
54322
|
|
|
54485
|
-
|
|
54486
|
-
* History enum.
|
|
54487
|
-
* @name google.api.ResourceDescriptor.History
|
|
54488
|
-
* @enum {number}
|
|
54489
|
-
* @property {number} HISTORY_UNSPECIFIED=0 HISTORY_UNSPECIFIED value
|
|
54490
|
-
* @property {number} ORIGINALLY_SINGLE_PATTERN=1 ORIGINALLY_SINGLE_PATTERN value
|
|
54491
|
-
* @property {number} FUTURE_MULTI_PATTERN=2 FUTURE_MULTI_PATTERN value
|
|
54492
|
-
*/
|
|
54493
|
-
ResourceDescriptor.History = (function() {
|
|
54494
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
54495
|
-
values[valuesById[0] = "HISTORY_UNSPECIFIED"] = 0;
|
|
54496
|
-
values[valuesById[1] = "ORIGINALLY_SINGLE_PATTERN"] = 1;
|
|
54497
|
-
values[valuesById[2] = "FUTURE_MULTI_PATTERN"] = 2;
|
|
54498
|
-
return values;
|
|
54499
|
-
})();
|
|
54500
|
-
|
|
54501
|
-
/**
|
|
54502
|
-
* Style enum.
|
|
54503
|
-
* @name google.api.ResourceDescriptor.Style
|
|
54504
|
-
* @enum {number}
|
|
54505
|
-
* @property {number} STYLE_UNSPECIFIED=0 STYLE_UNSPECIFIED value
|
|
54506
|
-
* @property {number} DECLARATIVE_FRIENDLY=1 DECLARATIVE_FRIENDLY value
|
|
54507
|
-
*/
|
|
54508
|
-
ResourceDescriptor.Style = (function() {
|
|
54509
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
54510
|
-
values[valuesById[0] = "STYLE_UNSPECIFIED"] = 0;
|
|
54511
|
-
values[valuesById[1] = "DECLARATIVE_FRIENDLY"] = 1;
|
|
54512
|
-
return values;
|
|
54513
|
-
})();
|
|
54514
|
-
|
|
54515
|
-
return ResourceDescriptor;
|
|
54323
|
+
return Http;
|
|
54516
54324
|
})();
|
|
54517
54325
|
|
|
54518
|
-
api.
|
|
54326
|
+
api.HttpRule = (function() {
|
|
54519
54327
|
|
|
54520
54328
|
/**
|
|
54521
|
-
* Properties of a
|
|
54329
|
+
* Properties of a HttpRule.
|
|
54522
54330
|
* @memberof google.api
|
|
54523
|
-
* @interface
|
|
54524
|
-
* @property {string|null} [
|
|
54525
|
-
* @property {string|null} [
|
|
54331
|
+
* @interface IHttpRule
|
|
54332
|
+
* @property {string|null} [selector] HttpRule selector
|
|
54333
|
+
* @property {string|null} [get] HttpRule get
|
|
54334
|
+
* @property {string|null} [put] HttpRule put
|
|
54335
|
+
* @property {string|null} [post] HttpRule post
|
|
54336
|
+
* @property {string|null} ["delete"] HttpRule delete
|
|
54337
|
+
* @property {string|null} [patch] HttpRule patch
|
|
54338
|
+
* @property {google.api.ICustomHttpPattern|null} [custom] HttpRule custom
|
|
54339
|
+
* @property {string|null} [body] HttpRule body
|
|
54340
|
+
* @property {string|null} [responseBody] HttpRule responseBody
|
|
54341
|
+
* @property {Array.<google.api.IHttpRule>|null} [additionalBindings] HttpRule additionalBindings
|
|
54526
54342
|
*/
|
|
54527
54343
|
|
|
54528
54344
|
/**
|
|
54529
|
-
* Constructs a new
|
|
54345
|
+
* Constructs a new HttpRule.
|
|
54530
54346
|
* @memberof google.api
|
|
54531
|
-
* @classdesc Represents a
|
|
54532
|
-
* @implements
|
|
54347
|
+
* @classdesc Represents a HttpRule.
|
|
54348
|
+
* @implements IHttpRule
|
|
54533
54349
|
* @constructor
|
|
54534
|
-
* @param {google.api.
|
|
54350
|
+
* @param {google.api.IHttpRule=} [properties] Properties to set
|
|
54535
54351
|
*/
|
|
54536
|
-
function
|
|
54352
|
+
function HttpRule(properties) {
|
|
54353
|
+
this.additionalBindings = [];
|
|
54537
54354
|
if (properties)
|
|
54538
54355
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
54539
54356
|
if (properties[keys[i]] != null)
|
|
@@ -54541,88 +54358,209 @@
|
|
|
54541
54358
|
}
|
|
54542
54359
|
|
|
54543
54360
|
/**
|
|
54544
|
-
*
|
|
54545
|
-
* @member {string}
|
|
54546
|
-
* @memberof google.api.
|
|
54361
|
+
* HttpRule selector.
|
|
54362
|
+
* @member {string} selector
|
|
54363
|
+
* @memberof google.api.HttpRule
|
|
54547
54364
|
* @instance
|
|
54548
54365
|
*/
|
|
54549
|
-
|
|
54366
|
+
HttpRule.prototype.selector = "";
|
|
54550
54367
|
|
|
54551
54368
|
/**
|
|
54552
|
-
*
|
|
54553
|
-
* @member {string}
|
|
54554
|
-
* @memberof google.api.
|
|
54369
|
+
* HttpRule get.
|
|
54370
|
+
* @member {string|null|undefined} get
|
|
54371
|
+
* @memberof google.api.HttpRule
|
|
54555
54372
|
* @instance
|
|
54556
54373
|
*/
|
|
54557
|
-
|
|
54374
|
+
HttpRule.prototype.get = null;
|
|
54558
54375
|
|
|
54559
54376
|
/**
|
|
54560
|
-
*
|
|
54377
|
+
* HttpRule put.
|
|
54378
|
+
* @member {string|null|undefined} put
|
|
54379
|
+
* @memberof google.api.HttpRule
|
|
54380
|
+
* @instance
|
|
54381
|
+
*/
|
|
54382
|
+
HttpRule.prototype.put = null;
|
|
54383
|
+
|
|
54384
|
+
/**
|
|
54385
|
+
* HttpRule post.
|
|
54386
|
+
* @member {string|null|undefined} post
|
|
54387
|
+
* @memberof google.api.HttpRule
|
|
54388
|
+
* @instance
|
|
54389
|
+
*/
|
|
54390
|
+
HttpRule.prototype.post = null;
|
|
54391
|
+
|
|
54392
|
+
/**
|
|
54393
|
+
* HttpRule delete.
|
|
54394
|
+
* @member {string|null|undefined} delete
|
|
54395
|
+
* @memberof google.api.HttpRule
|
|
54396
|
+
* @instance
|
|
54397
|
+
*/
|
|
54398
|
+
HttpRule.prototype["delete"] = null;
|
|
54399
|
+
|
|
54400
|
+
/**
|
|
54401
|
+
* HttpRule patch.
|
|
54402
|
+
* @member {string|null|undefined} patch
|
|
54403
|
+
* @memberof google.api.HttpRule
|
|
54404
|
+
* @instance
|
|
54405
|
+
*/
|
|
54406
|
+
HttpRule.prototype.patch = null;
|
|
54407
|
+
|
|
54408
|
+
/**
|
|
54409
|
+
* HttpRule custom.
|
|
54410
|
+
* @member {google.api.ICustomHttpPattern|null|undefined} custom
|
|
54411
|
+
* @memberof google.api.HttpRule
|
|
54412
|
+
* @instance
|
|
54413
|
+
*/
|
|
54414
|
+
HttpRule.prototype.custom = null;
|
|
54415
|
+
|
|
54416
|
+
/**
|
|
54417
|
+
* HttpRule body.
|
|
54418
|
+
* @member {string} body
|
|
54419
|
+
* @memberof google.api.HttpRule
|
|
54420
|
+
* @instance
|
|
54421
|
+
*/
|
|
54422
|
+
HttpRule.prototype.body = "";
|
|
54423
|
+
|
|
54424
|
+
/**
|
|
54425
|
+
* HttpRule responseBody.
|
|
54426
|
+
* @member {string} responseBody
|
|
54427
|
+
* @memberof google.api.HttpRule
|
|
54428
|
+
* @instance
|
|
54429
|
+
*/
|
|
54430
|
+
HttpRule.prototype.responseBody = "";
|
|
54431
|
+
|
|
54432
|
+
/**
|
|
54433
|
+
* HttpRule additionalBindings.
|
|
54434
|
+
* @member {Array.<google.api.IHttpRule>} additionalBindings
|
|
54435
|
+
* @memberof google.api.HttpRule
|
|
54436
|
+
* @instance
|
|
54437
|
+
*/
|
|
54438
|
+
HttpRule.prototype.additionalBindings = $util.emptyArray;
|
|
54439
|
+
|
|
54440
|
+
// OneOf field names bound to virtual getters and setters
|
|
54441
|
+
var $oneOfFields;
|
|
54442
|
+
|
|
54443
|
+
/**
|
|
54444
|
+
* HttpRule pattern.
|
|
54445
|
+
* @member {"get"|"put"|"post"|"delete"|"patch"|"custom"|undefined} pattern
|
|
54446
|
+
* @memberof google.api.HttpRule
|
|
54447
|
+
* @instance
|
|
54448
|
+
*/
|
|
54449
|
+
Object.defineProperty(HttpRule.prototype, "pattern", {
|
|
54450
|
+
get: $util.oneOfGetter($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"]),
|
|
54451
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
54452
|
+
});
|
|
54453
|
+
|
|
54454
|
+
/**
|
|
54455
|
+
* Creates a new HttpRule instance using the specified properties.
|
|
54561
54456
|
* @function create
|
|
54562
|
-
* @memberof google.api.
|
|
54457
|
+
* @memberof google.api.HttpRule
|
|
54563
54458
|
* @static
|
|
54564
|
-
* @param {google.api.
|
|
54565
|
-
* @returns {google.api.
|
|
54459
|
+
* @param {google.api.IHttpRule=} [properties] Properties to set
|
|
54460
|
+
* @returns {google.api.HttpRule} HttpRule instance
|
|
54566
54461
|
*/
|
|
54567
|
-
|
|
54568
|
-
return new
|
|
54462
|
+
HttpRule.create = function create(properties) {
|
|
54463
|
+
return new HttpRule(properties);
|
|
54569
54464
|
};
|
|
54570
54465
|
|
|
54571
54466
|
/**
|
|
54572
|
-
* Encodes the specified
|
|
54467
|
+
* Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
|
|
54573
54468
|
* @function encode
|
|
54574
|
-
* @memberof google.api.
|
|
54469
|
+
* @memberof google.api.HttpRule
|
|
54575
54470
|
* @static
|
|
54576
|
-
* @param {google.api.
|
|
54471
|
+
* @param {google.api.IHttpRule} message HttpRule message or plain object to encode
|
|
54577
54472
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
54578
54473
|
* @returns {$protobuf.Writer} Writer
|
|
54579
54474
|
*/
|
|
54580
|
-
|
|
54475
|
+
HttpRule.encode = function encode(message, writer) {
|
|
54581
54476
|
if (!writer)
|
|
54582
54477
|
writer = $Writer.create();
|
|
54583
|
-
if (message.
|
|
54584
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.
|
|
54585
|
-
if (message.
|
|
54586
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.
|
|
54478
|
+
if (message.selector != null && Object.hasOwnProperty.call(message, "selector"))
|
|
54479
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector);
|
|
54480
|
+
if (message.get != null && Object.hasOwnProperty.call(message, "get"))
|
|
54481
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.get);
|
|
54482
|
+
if (message.put != null && Object.hasOwnProperty.call(message, "put"))
|
|
54483
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.put);
|
|
54484
|
+
if (message.post != null && Object.hasOwnProperty.call(message, "post"))
|
|
54485
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.post);
|
|
54486
|
+
if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete"))
|
|
54487
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message["delete"]);
|
|
54488
|
+
if (message.patch != null && Object.hasOwnProperty.call(message, "patch"))
|
|
54489
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.patch);
|
|
54490
|
+
if (message.body != null && Object.hasOwnProperty.call(message, "body"))
|
|
54491
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.body);
|
|
54492
|
+
if (message.custom != null && Object.hasOwnProperty.call(message, "custom"))
|
|
54493
|
+
$root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
54494
|
+
if (message.additionalBindings != null && message.additionalBindings.length)
|
|
54495
|
+
for (var i = 0; i < message.additionalBindings.length; ++i)
|
|
54496
|
+
$root.google.api.HttpRule.encode(message.additionalBindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
|
|
54497
|
+
if (message.responseBody != null && Object.hasOwnProperty.call(message, "responseBody"))
|
|
54498
|
+
writer.uint32(/* id 12, wireType 2 =*/98).string(message.responseBody);
|
|
54587
54499
|
return writer;
|
|
54588
54500
|
};
|
|
54589
54501
|
|
|
54590
54502
|
/**
|
|
54591
|
-
* Encodes the specified
|
|
54503
|
+
* Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
|
|
54592
54504
|
* @function encodeDelimited
|
|
54593
|
-
* @memberof google.api.
|
|
54505
|
+
* @memberof google.api.HttpRule
|
|
54594
54506
|
* @static
|
|
54595
|
-
* @param {google.api.
|
|
54507
|
+
* @param {google.api.IHttpRule} message HttpRule message or plain object to encode
|
|
54596
54508
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
54597
54509
|
* @returns {$protobuf.Writer} Writer
|
|
54598
54510
|
*/
|
|
54599
|
-
|
|
54511
|
+
HttpRule.encodeDelimited = function encodeDelimited(message, writer) {
|
|
54600
54512
|
return this.encode(message, writer).ldelim();
|
|
54601
54513
|
};
|
|
54602
54514
|
|
|
54603
54515
|
/**
|
|
54604
|
-
* Decodes a
|
|
54516
|
+
* Decodes a HttpRule message from the specified reader or buffer.
|
|
54605
54517
|
* @function decode
|
|
54606
|
-
* @memberof google.api.
|
|
54518
|
+
* @memberof google.api.HttpRule
|
|
54607
54519
|
* @static
|
|
54608
54520
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
54609
54521
|
* @param {number} [length] Message length if known beforehand
|
|
54610
|
-
* @returns {google.api.
|
|
54522
|
+
* @returns {google.api.HttpRule} HttpRule
|
|
54611
54523
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
54612
54524
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
54613
54525
|
*/
|
|
54614
|
-
|
|
54526
|
+
HttpRule.decode = function decode(reader, length) {
|
|
54615
54527
|
if (!(reader instanceof $Reader))
|
|
54616
54528
|
reader = $Reader.create(reader);
|
|
54617
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.
|
|
54529
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.HttpRule();
|
|
54618
54530
|
while (reader.pos < end) {
|
|
54619
54531
|
var tag = reader.uint32();
|
|
54620
54532
|
switch (tag >>> 3) {
|
|
54621
54533
|
case 1:
|
|
54622
|
-
message.
|
|
54534
|
+
message.selector = reader.string();
|
|
54623
54535
|
break;
|
|
54624
54536
|
case 2:
|
|
54625
|
-
message.
|
|
54537
|
+
message.get = reader.string();
|
|
54538
|
+
break;
|
|
54539
|
+
case 3:
|
|
54540
|
+
message.put = reader.string();
|
|
54541
|
+
break;
|
|
54542
|
+
case 4:
|
|
54543
|
+
message.post = reader.string();
|
|
54544
|
+
break;
|
|
54545
|
+
case 5:
|
|
54546
|
+
message["delete"] = reader.string();
|
|
54547
|
+
break;
|
|
54548
|
+
case 6:
|
|
54549
|
+
message.patch = reader.string();
|
|
54550
|
+
break;
|
|
54551
|
+
case 8:
|
|
54552
|
+
message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32());
|
|
54553
|
+
break;
|
|
54554
|
+
case 7:
|
|
54555
|
+
message.body = reader.string();
|
|
54556
|
+
break;
|
|
54557
|
+
case 12:
|
|
54558
|
+
message.responseBody = reader.string();
|
|
54559
|
+
break;
|
|
54560
|
+
case 11:
|
|
54561
|
+
if (!(message.additionalBindings && message.additionalBindings.length))
|
|
54562
|
+
message.additionalBindings = [];
|
|
54563
|
+
message.additionalBindings.push($root.google.api.HttpRule.decode(reader, reader.uint32()));
|
|
54626
54564
|
break;
|
|
54627
54565
|
default:
|
|
54628
54566
|
reader.skipType(tag & 7);
|
|
@@ -54633,118 +54571,240 @@
|
|
|
54633
54571
|
};
|
|
54634
54572
|
|
|
54635
54573
|
/**
|
|
54636
|
-
* Decodes a
|
|
54574
|
+
* Decodes a HttpRule message from the specified reader or buffer, length delimited.
|
|
54637
54575
|
* @function decodeDelimited
|
|
54638
|
-
* @memberof google.api.
|
|
54576
|
+
* @memberof google.api.HttpRule
|
|
54639
54577
|
* @static
|
|
54640
54578
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
54641
|
-
* @returns {google.api.
|
|
54579
|
+
* @returns {google.api.HttpRule} HttpRule
|
|
54642
54580
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
54643
54581
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
54644
54582
|
*/
|
|
54645
|
-
|
|
54583
|
+
HttpRule.decodeDelimited = function decodeDelimited(reader) {
|
|
54646
54584
|
if (!(reader instanceof $Reader))
|
|
54647
54585
|
reader = new $Reader(reader);
|
|
54648
54586
|
return this.decode(reader, reader.uint32());
|
|
54649
54587
|
};
|
|
54650
54588
|
|
|
54651
54589
|
/**
|
|
54652
|
-
* Verifies a
|
|
54590
|
+
* Verifies a HttpRule message.
|
|
54653
54591
|
* @function verify
|
|
54654
|
-
* @memberof google.api.
|
|
54592
|
+
* @memberof google.api.HttpRule
|
|
54655
54593
|
* @static
|
|
54656
54594
|
* @param {Object.<string,*>} message Plain object to verify
|
|
54657
54595
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
54658
54596
|
*/
|
|
54659
|
-
|
|
54597
|
+
HttpRule.verify = function verify(message) {
|
|
54660
54598
|
if (typeof message !== "object" || message === null)
|
|
54661
54599
|
return "object expected";
|
|
54662
|
-
|
|
54663
|
-
|
|
54664
|
-
|
|
54665
|
-
|
|
54666
|
-
|
|
54667
|
-
|
|
54600
|
+
var properties = {};
|
|
54601
|
+
if (message.selector != null && message.hasOwnProperty("selector"))
|
|
54602
|
+
if (!$util.isString(message.selector))
|
|
54603
|
+
return "selector: string expected";
|
|
54604
|
+
if (message.get != null && message.hasOwnProperty("get")) {
|
|
54605
|
+
properties.pattern = 1;
|
|
54606
|
+
if (!$util.isString(message.get))
|
|
54607
|
+
return "get: string expected";
|
|
54608
|
+
}
|
|
54609
|
+
if (message.put != null && message.hasOwnProperty("put")) {
|
|
54610
|
+
if (properties.pattern === 1)
|
|
54611
|
+
return "pattern: multiple values";
|
|
54612
|
+
properties.pattern = 1;
|
|
54613
|
+
if (!$util.isString(message.put))
|
|
54614
|
+
return "put: string expected";
|
|
54615
|
+
}
|
|
54616
|
+
if (message.post != null && message.hasOwnProperty("post")) {
|
|
54617
|
+
if (properties.pattern === 1)
|
|
54618
|
+
return "pattern: multiple values";
|
|
54619
|
+
properties.pattern = 1;
|
|
54620
|
+
if (!$util.isString(message.post))
|
|
54621
|
+
return "post: string expected";
|
|
54622
|
+
}
|
|
54623
|
+
if (message["delete"] != null && message.hasOwnProperty("delete")) {
|
|
54624
|
+
if (properties.pattern === 1)
|
|
54625
|
+
return "pattern: multiple values";
|
|
54626
|
+
properties.pattern = 1;
|
|
54627
|
+
if (!$util.isString(message["delete"]))
|
|
54628
|
+
return "delete: string expected";
|
|
54629
|
+
}
|
|
54630
|
+
if (message.patch != null && message.hasOwnProperty("patch")) {
|
|
54631
|
+
if (properties.pattern === 1)
|
|
54632
|
+
return "pattern: multiple values";
|
|
54633
|
+
properties.pattern = 1;
|
|
54634
|
+
if (!$util.isString(message.patch))
|
|
54635
|
+
return "patch: string expected";
|
|
54636
|
+
}
|
|
54637
|
+
if (message.custom != null && message.hasOwnProperty("custom")) {
|
|
54638
|
+
if (properties.pattern === 1)
|
|
54639
|
+
return "pattern: multiple values";
|
|
54640
|
+
properties.pattern = 1;
|
|
54641
|
+
{
|
|
54642
|
+
var error = $root.google.api.CustomHttpPattern.verify(message.custom);
|
|
54643
|
+
if (error)
|
|
54644
|
+
return "custom." + error;
|
|
54645
|
+
}
|
|
54646
|
+
}
|
|
54647
|
+
if (message.body != null && message.hasOwnProperty("body"))
|
|
54648
|
+
if (!$util.isString(message.body))
|
|
54649
|
+
return "body: string expected";
|
|
54650
|
+
if (message.responseBody != null && message.hasOwnProperty("responseBody"))
|
|
54651
|
+
if (!$util.isString(message.responseBody))
|
|
54652
|
+
return "responseBody: string expected";
|
|
54653
|
+
if (message.additionalBindings != null && message.hasOwnProperty("additionalBindings")) {
|
|
54654
|
+
if (!Array.isArray(message.additionalBindings))
|
|
54655
|
+
return "additionalBindings: array expected";
|
|
54656
|
+
for (var i = 0; i < message.additionalBindings.length; ++i) {
|
|
54657
|
+
var error = $root.google.api.HttpRule.verify(message.additionalBindings[i]);
|
|
54658
|
+
if (error)
|
|
54659
|
+
return "additionalBindings." + error;
|
|
54660
|
+
}
|
|
54661
|
+
}
|
|
54668
54662
|
return null;
|
|
54669
54663
|
};
|
|
54670
54664
|
|
|
54671
54665
|
/**
|
|
54672
|
-
* Creates a
|
|
54666
|
+
* Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
|
|
54673
54667
|
* @function fromObject
|
|
54674
|
-
* @memberof google.api.
|
|
54668
|
+
* @memberof google.api.HttpRule
|
|
54675
54669
|
* @static
|
|
54676
54670
|
* @param {Object.<string,*>} object Plain object
|
|
54677
|
-
* @returns {google.api.
|
|
54671
|
+
* @returns {google.api.HttpRule} HttpRule
|
|
54678
54672
|
*/
|
|
54679
|
-
|
|
54680
|
-
if (object instanceof $root.google.api.
|
|
54673
|
+
HttpRule.fromObject = function fromObject(object) {
|
|
54674
|
+
if (object instanceof $root.google.api.HttpRule)
|
|
54681
54675
|
return object;
|
|
54682
|
-
var message = new $root.google.api.
|
|
54683
|
-
if (object.
|
|
54684
|
-
message.
|
|
54685
|
-
if (object.
|
|
54686
|
-
message.
|
|
54676
|
+
var message = new $root.google.api.HttpRule();
|
|
54677
|
+
if (object.selector != null)
|
|
54678
|
+
message.selector = String(object.selector);
|
|
54679
|
+
if (object.get != null)
|
|
54680
|
+
message.get = String(object.get);
|
|
54681
|
+
if (object.put != null)
|
|
54682
|
+
message.put = String(object.put);
|
|
54683
|
+
if (object.post != null)
|
|
54684
|
+
message.post = String(object.post);
|
|
54685
|
+
if (object["delete"] != null)
|
|
54686
|
+
message["delete"] = String(object["delete"]);
|
|
54687
|
+
if (object.patch != null)
|
|
54688
|
+
message.patch = String(object.patch);
|
|
54689
|
+
if (object.custom != null) {
|
|
54690
|
+
if (typeof object.custom !== "object")
|
|
54691
|
+
throw TypeError(".google.api.HttpRule.custom: object expected");
|
|
54692
|
+
message.custom = $root.google.api.CustomHttpPattern.fromObject(object.custom);
|
|
54693
|
+
}
|
|
54694
|
+
if (object.body != null)
|
|
54695
|
+
message.body = String(object.body);
|
|
54696
|
+
if (object.responseBody != null)
|
|
54697
|
+
message.responseBody = String(object.responseBody);
|
|
54698
|
+
if (object.additionalBindings) {
|
|
54699
|
+
if (!Array.isArray(object.additionalBindings))
|
|
54700
|
+
throw TypeError(".google.api.HttpRule.additionalBindings: array expected");
|
|
54701
|
+
message.additionalBindings = [];
|
|
54702
|
+
for (var i = 0; i < object.additionalBindings.length; ++i) {
|
|
54703
|
+
if (typeof object.additionalBindings[i] !== "object")
|
|
54704
|
+
throw TypeError(".google.api.HttpRule.additionalBindings: object expected");
|
|
54705
|
+
message.additionalBindings[i] = $root.google.api.HttpRule.fromObject(object.additionalBindings[i]);
|
|
54706
|
+
}
|
|
54707
|
+
}
|
|
54687
54708
|
return message;
|
|
54688
54709
|
};
|
|
54689
54710
|
|
|
54690
54711
|
/**
|
|
54691
|
-
* Creates a plain object from a
|
|
54712
|
+
* Creates a plain object from a HttpRule message. Also converts values to other types if specified.
|
|
54692
54713
|
* @function toObject
|
|
54693
|
-
* @memberof google.api.
|
|
54714
|
+
* @memberof google.api.HttpRule
|
|
54694
54715
|
* @static
|
|
54695
|
-
* @param {google.api.
|
|
54716
|
+
* @param {google.api.HttpRule} message HttpRule
|
|
54696
54717
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
54697
54718
|
* @returns {Object.<string,*>} Plain object
|
|
54698
54719
|
*/
|
|
54699
|
-
|
|
54720
|
+
HttpRule.toObject = function toObject(message, options) {
|
|
54700
54721
|
if (!options)
|
|
54701
54722
|
options = {};
|
|
54702
54723
|
var object = {};
|
|
54724
|
+
if (options.arrays || options.defaults)
|
|
54725
|
+
object.additionalBindings = [];
|
|
54703
54726
|
if (options.defaults) {
|
|
54704
|
-
object.
|
|
54705
|
-
object.
|
|
54727
|
+
object.selector = "";
|
|
54728
|
+
object.body = "";
|
|
54729
|
+
object.responseBody = "";
|
|
54706
54730
|
}
|
|
54707
|
-
if (message.
|
|
54708
|
-
object.
|
|
54709
|
-
if (message.
|
|
54710
|
-
object.
|
|
54731
|
+
if (message.selector != null && message.hasOwnProperty("selector"))
|
|
54732
|
+
object.selector = message.selector;
|
|
54733
|
+
if (message.get != null && message.hasOwnProperty("get")) {
|
|
54734
|
+
object.get = message.get;
|
|
54735
|
+
if (options.oneofs)
|
|
54736
|
+
object.pattern = "get";
|
|
54737
|
+
}
|
|
54738
|
+
if (message.put != null && message.hasOwnProperty("put")) {
|
|
54739
|
+
object.put = message.put;
|
|
54740
|
+
if (options.oneofs)
|
|
54741
|
+
object.pattern = "put";
|
|
54742
|
+
}
|
|
54743
|
+
if (message.post != null && message.hasOwnProperty("post")) {
|
|
54744
|
+
object.post = message.post;
|
|
54745
|
+
if (options.oneofs)
|
|
54746
|
+
object.pattern = "post";
|
|
54747
|
+
}
|
|
54748
|
+
if (message["delete"] != null && message.hasOwnProperty("delete")) {
|
|
54749
|
+
object["delete"] = message["delete"];
|
|
54750
|
+
if (options.oneofs)
|
|
54751
|
+
object.pattern = "delete";
|
|
54752
|
+
}
|
|
54753
|
+
if (message.patch != null && message.hasOwnProperty("patch")) {
|
|
54754
|
+
object.patch = message.patch;
|
|
54755
|
+
if (options.oneofs)
|
|
54756
|
+
object.pattern = "patch";
|
|
54757
|
+
}
|
|
54758
|
+
if (message.body != null && message.hasOwnProperty("body"))
|
|
54759
|
+
object.body = message.body;
|
|
54760
|
+
if (message.custom != null && message.hasOwnProperty("custom")) {
|
|
54761
|
+
object.custom = $root.google.api.CustomHttpPattern.toObject(message.custom, options);
|
|
54762
|
+
if (options.oneofs)
|
|
54763
|
+
object.pattern = "custom";
|
|
54764
|
+
}
|
|
54765
|
+
if (message.additionalBindings && message.additionalBindings.length) {
|
|
54766
|
+
object.additionalBindings = [];
|
|
54767
|
+
for (var j = 0; j < message.additionalBindings.length; ++j)
|
|
54768
|
+
object.additionalBindings[j] = $root.google.api.HttpRule.toObject(message.additionalBindings[j], options);
|
|
54769
|
+
}
|
|
54770
|
+
if (message.responseBody != null && message.hasOwnProperty("responseBody"))
|
|
54771
|
+
object.responseBody = message.responseBody;
|
|
54711
54772
|
return object;
|
|
54712
54773
|
};
|
|
54713
54774
|
|
|
54714
54775
|
/**
|
|
54715
|
-
* Converts this
|
|
54776
|
+
* Converts this HttpRule to JSON.
|
|
54716
54777
|
* @function toJSON
|
|
54717
|
-
* @memberof google.api.
|
|
54778
|
+
* @memberof google.api.HttpRule
|
|
54718
54779
|
* @instance
|
|
54719
54780
|
* @returns {Object.<string,*>} JSON object
|
|
54720
54781
|
*/
|
|
54721
|
-
|
|
54782
|
+
HttpRule.prototype.toJSON = function toJSON() {
|
|
54722
54783
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
54723
54784
|
};
|
|
54724
54785
|
|
|
54725
|
-
return
|
|
54786
|
+
return HttpRule;
|
|
54726
54787
|
})();
|
|
54727
54788
|
|
|
54728
|
-
api.
|
|
54789
|
+
api.CustomHttpPattern = (function() {
|
|
54729
54790
|
|
|
54730
54791
|
/**
|
|
54731
|
-
* Properties of a
|
|
54792
|
+
* Properties of a CustomHttpPattern.
|
|
54732
54793
|
* @memberof google.api
|
|
54733
|
-
* @interface
|
|
54734
|
-
* @property {
|
|
54735
|
-
* @property {
|
|
54794
|
+
* @interface ICustomHttpPattern
|
|
54795
|
+
* @property {string|null} [kind] CustomHttpPattern kind
|
|
54796
|
+
* @property {string|null} [path] CustomHttpPattern path
|
|
54736
54797
|
*/
|
|
54737
54798
|
|
|
54738
54799
|
/**
|
|
54739
|
-
* Constructs a new
|
|
54800
|
+
* Constructs a new CustomHttpPattern.
|
|
54740
54801
|
* @memberof google.api
|
|
54741
|
-
* @classdesc Represents a
|
|
54742
|
-
* @implements
|
|
54802
|
+
* @classdesc Represents a CustomHttpPattern.
|
|
54803
|
+
* @implements ICustomHttpPattern
|
|
54743
54804
|
* @constructor
|
|
54744
|
-
* @param {google.api.
|
|
54805
|
+
* @param {google.api.ICustomHttpPattern=} [properties] Properties to set
|
|
54745
54806
|
*/
|
|
54746
|
-
function
|
|
54747
|
-
this.rules = [];
|
|
54807
|
+
function CustomHttpPattern(properties) {
|
|
54748
54808
|
if (properties)
|
|
54749
54809
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
54750
54810
|
if (properties[keys[i]] != null)
|
|
@@ -54752,91 +54812,88 @@
|
|
|
54752
54812
|
}
|
|
54753
54813
|
|
|
54754
54814
|
/**
|
|
54755
|
-
*
|
|
54756
|
-
* @member {
|
|
54757
|
-
* @memberof google.api.
|
|
54815
|
+
* CustomHttpPattern kind.
|
|
54816
|
+
* @member {string} kind
|
|
54817
|
+
* @memberof google.api.CustomHttpPattern
|
|
54758
54818
|
* @instance
|
|
54759
54819
|
*/
|
|
54760
|
-
|
|
54820
|
+
CustomHttpPattern.prototype.kind = "";
|
|
54761
54821
|
|
|
54762
54822
|
/**
|
|
54763
|
-
*
|
|
54764
|
-
* @member {
|
|
54765
|
-
* @memberof google.api.
|
|
54823
|
+
* CustomHttpPattern path.
|
|
54824
|
+
* @member {string} path
|
|
54825
|
+
* @memberof google.api.CustomHttpPattern
|
|
54766
54826
|
* @instance
|
|
54767
54827
|
*/
|
|
54768
|
-
|
|
54828
|
+
CustomHttpPattern.prototype.path = "";
|
|
54769
54829
|
|
|
54770
54830
|
/**
|
|
54771
|
-
* Creates a new
|
|
54831
|
+
* Creates a new CustomHttpPattern instance using the specified properties.
|
|
54772
54832
|
* @function create
|
|
54773
|
-
* @memberof google.api.
|
|
54833
|
+
* @memberof google.api.CustomHttpPattern
|
|
54774
54834
|
* @static
|
|
54775
|
-
* @param {google.api.
|
|
54776
|
-
* @returns {google.api.
|
|
54835
|
+
* @param {google.api.ICustomHttpPattern=} [properties] Properties to set
|
|
54836
|
+
* @returns {google.api.CustomHttpPattern} CustomHttpPattern instance
|
|
54777
54837
|
*/
|
|
54778
|
-
|
|
54779
|
-
return new
|
|
54838
|
+
CustomHttpPattern.create = function create(properties) {
|
|
54839
|
+
return new CustomHttpPattern(properties);
|
|
54780
54840
|
};
|
|
54781
54841
|
|
|
54782
54842
|
/**
|
|
54783
|
-
* Encodes the specified
|
|
54843
|
+
* Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
|
|
54784
54844
|
* @function encode
|
|
54785
|
-
* @memberof google.api.
|
|
54845
|
+
* @memberof google.api.CustomHttpPattern
|
|
54786
54846
|
* @static
|
|
54787
|
-
* @param {google.api.
|
|
54847
|
+
* @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode
|
|
54788
54848
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
54789
54849
|
* @returns {$protobuf.Writer} Writer
|
|
54790
54850
|
*/
|
|
54791
|
-
|
|
54851
|
+
CustomHttpPattern.encode = function encode(message, writer) {
|
|
54792
54852
|
if (!writer)
|
|
54793
54853
|
writer = $Writer.create();
|
|
54794
|
-
if (message.
|
|
54795
|
-
|
|
54796
|
-
|
|
54797
|
-
|
|
54798
|
-
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.fullyDecodeReservedExpansion);
|
|
54854
|
+
if (message.kind != null && Object.hasOwnProperty.call(message, "kind"))
|
|
54855
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind);
|
|
54856
|
+
if (message.path != null && Object.hasOwnProperty.call(message, "path"))
|
|
54857
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.path);
|
|
54799
54858
|
return writer;
|
|
54800
54859
|
};
|
|
54801
54860
|
|
|
54802
54861
|
/**
|
|
54803
|
-
* Encodes the specified
|
|
54862
|
+
* Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
|
|
54804
54863
|
* @function encodeDelimited
|
|
54805
|
-
* @memberof google.api.
|
|
54864
|
+
* @memberof google.api.CustomHttpPattern
|
|
54806
54865
|
* @static
|
|
54807
|
-
* @param {google.api.
|
|
54866
|
+
* @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode
|
|
54808
54867
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
54809
54868
|
* @returns {$protobuf.Writer} Writer
|
|
54810
54869
|
*/
|
|
54811
|
-
|
|
54870
|
+
CustomHttpPattern.encodeDelimited = function encodeDelimited(message, writer) {
|
|
54812
54871
|
return this.encode(message, writer).ldelim();
|
|
54813
54872
|
};
|
|
54814
54873
|
|
|
54815
54874
|
/**
|
|
54816
|
-
* Decodes a
|
|
54875
|
+
* Decodes a CustomHttpPattern message from the specified reader or buffer.
|
|
54817
54876
|
* @function decode
|
|
54818
|
-
* @memberof google.api.
|
|
54877
|
+
* @memberof google.api.CustomHttpPattern
|
|
54819
54878
|
* @static
|
|
54820
54879
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
54821
54880
|
* @param {number} [length] Message length if known beforehand
|
|
54822
|
-
* @returns {google.api.
|
|
54881
|
+
* @returns {google.api.CustomHttpPattern} CustomHttpPattern
|
|
54823
54882
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
54824
54883
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
54825
54884
|
*/
|
|
54826
|
-
|
|
54885
|
+
CustomHttpPattern.decode = function decode(reader, length) {
|
|
54827
54886
|
if (!(reader instanceof $Reader))
|
|
54828
54887
|
reader = $Reader.create(reader);
|
|
54829
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.
|
|
54888
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CustomHttpPattern();
|
|
54830
54889
|
while (reader.pos < end) {
|
|
54831
54890
|
var tag = reader.uint32();
|
|
54832
54891
|
switch (tag >>> 3) {
|
|
54833
54892
|
case 1:
|
|
54834
|
-
|
|
54835
|
-
message.rules = [];
|
|
54836
|
-
message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32()));
|
|
54893
|
+
message.kind = reader.string();
|
|
54837
54894
|
break;
|
|
54838
54895
|
case 2:
|
|
54839
|
-
message.
|
|
54896
|
+
message.path = reader.string();
|
|
54840
54897
|
break;
|
|
54841
54898
|
default:
|
|
54842
54899
|
reader.skipType(tag & 7);
|
|
@@ -54847,143 +54904,150 @@
|
|
|
54847
54904
|
};
|
|
54848
54905
|
|
|
54849
54906
|
/**
|
|
54850
|
-
* Decodes a
|
|
54907
|
+
* Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
|
|
54851
54908
|
* @function decodeDelimited
|
|
54852
|
-
* @memberof google.api.
|
|
54909
|
+
* @memberof google.api.CustomHttpPattern
|
|
54853
54910
|
* @static
|
|
54854
54911
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
54855
|
-
* @returns {google.api.
|
|
54912
|
+
* @returns {google.api.CustomHttpPattern} CustomHttpPattern
|
|
54856
54913
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
54857
54914
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
54858
54915
|
*/
|
|
54859
|
-
|
|
54916
|
+
CustomHttpPattern.decodeDelimited = function decodeDelimited(reader) {
|
|
54860
54917
|
if (!(reader instanceof $Reader))
|
|
54861
54918
|
reader = new $Reader(reader);
|
|
54862
54919
|
return this.decode(reader, reader.uint32());
|
|
54863
54920
|
};
|
|
54864
54921
|
|
|
54865
54922
|
/**
|
|
54866
|
-
* Verifies a
|
|
54923
|
+
* Verifies a CustomHttpPattern message.
|
|
54867
54924
|
* @function verify
|
|
54868
|
-
* @memberof google.api.
|
|
54925
|
+
* @memberof google.api.CustomHttpPattern
|
|
54869
54926
|
* @static
|
|
54870
54927
|
* @param {Object.<string,*>} message Plain object to verify
|
|
54871
54928
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
54872
54929
|
*/
|
|
54873
|
-
|
|
54930
|
+
CustomHttpPattern.verify = function verify(message) {
|
|
54874
54931
|
if (typeof message !== "object" || message === null)
|
|
54875
54932
|
return "object expected";
|
|
54876
|
-
if (message.
|
|
54877
|
-
if (
|
|
54878
|
-
return "
|
|
54879
|
-
|
|
54880
|
-
|
|
54881
|
-
|
|
54882
|
-
return "rules." + error;
|
|
54883
|
-
}
|
|
54884
|
-
}
|
|
54885
|
-
if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion"))
|
|
54886
|
-
if (typeof message.fullyDecodeReservedExpansion !== "boolean")
|
|
54887
|
-
return "fullyDecodeReservedExpansion: boolean expected";
|
|
54933
|
+
if (message.kind != null && message.hasOwnProperty("kind"))
|
|
54934
|
+
if (!$util.isString(message.kind))
|
|
54935
|
+
return "kind: string expected";
|
|
54936
|
+
if (message.path != null && message.hasOwnProperty("path"))
|
|
54937
|
+
if (!$util.isString(message.path))
|
|
54938
|
+
return "path: string expected";
|
|
54888
54939
|
return null;
|
|
54889
54940
|
};
|
|
54890
54941
|
|
|
54891
54942
|
/**
|
|
54892
|
-
* Creates a
|
|
54943
|
+
* Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
|
|
54893
54944
|
* @function fromObject
|
|
54894
|
-
* @memberof google.api.
|
|
54945
|
+
* @memberof google.api.CustomHttpPattern
|
|
54895
54946
|
* @static
|
|
54896
54947
|
* @param {Object.<string,*>} object Plain object
|
|
54897
|
-
* @returns {google.api.
|
|
54948
|
+
* @returns {google.api.CustomHttpPattern} CustomHttpPattern
|
|
54898
54949
|
*/
|
|
54899
|
-
|
|
54900
|
-
if (object instanceof $root.google.api.
|
|
54950
|
+
CustomHttpPattern.fromObject = function fromObject(object) {
|
|
54951
|
+
if (object instanceof $root.google.api.CustomHttpPattern)
|
|
54901
54952
|
return object;
|
|
54902
|
-
var message = new $root.google.api.
|
|
54903
|
-
if (object.
|
|
54904
|
-
|
|
54905
|
-
|
|
54906
|
-
message.
|
|
54907
|
-
for (var i = 0; i < object.rules.length; ++i) {
|
|
54908
|
-
if (typeof object.rules[i] !== "object")
|
|
54909
|
-
throw TypeError(".google.api.Http.rules: object expected");
|
|
54910
|
-
message.rules[i] = $root.google.api.HttpRule.fromObject(object.rules[i]);
|
|
54911
|
-
}
|
|
54912
|
-
}
|
|
54913
|
-
if (object.fullyDecodeReservedExpansion != null)
|
|
54914
|
-
message.fullyDecodeReservedExpansion = Boolean(object.fullyDecodeReservedExpansion);
|
|
54953
|
+
var message = new $root.google.api.CustomHttpPattern();
|
|
54954
|
+
if (object.kind != null)
|
|
54955
|
+
message.kind = String(object.kind);
|
|
54956
|
+
if (object.path != null)
|
|
54957
|
+
message.path = String(object.path);
|
|
54915
54958
|
return message;
|
|
54916
54959
|
};
|
|
54917
54960
|
|
|
54918
54961
|
/**
|
|
54919
|
-
* Creates a plain object from a
|
|
54962
|
+
* Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
|
|
54920
54963
|
* @function toObject
|
|
54921
|
-
* @memberof google.api.
|
|
54964
|
+
* @memberof google.api.CustomHttpPattern
|
|
54922
54965
|
* @static
|
|
54923
|
-
* @param {google.api.
|
|
54966
|
+
* @param {google.api.CustomHttpPattern} message CustomHttpPattern
|
|
54924
54967
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
54925
54968
|
* @returns {Object.<string,*>} Plain object
|
|
54926
54969
|
*/
|
|
54927
|
-
|
|
54970
|
+
CustomHttpPattern.toObject = function toObject(message, options) {
|
|
54928
54971
|
if (!options)
|
|
54929
54972
|
options = {};
|
|
54930
54973
|
var object = {};
|
|
54931
|
-
if (options.
|
|
54932
|
-
object.
|
|
54933
|
-
|
|
54934
|
-
object.fullyDecodeReservedExpansion = false;
|
|
54935
|
-
if (message.rules && message.rules.length) {
|
|
54936
|
-
object.rules = [];
|
|
54937
|
-
for (var j = 0; j < message.rules.length; ++j)
|
|
54938
|
-
object.rules[j] = $root.google.api.HttpRule.toObject(message.rules[j], options);
|
|
54974
|
+
if (options.defaults) {
|
|
54975
|
+
object.kind = "";
|
|
54976
|
+
object.path = "";
|
|
54939
54977
|
}
|
|
54940
|
-
if (message.
|
|
54941
|
-
object.
|
|
54978
|
+
if (message.kind != null && message.hasOwnProperty("kind"))
|
|
54979
|
+
object.kind = message.kind;
|
|
54980
|
+
if (message.path != null && message.hasOwnProperty("path"))
|
|
54981
|
+
object.path = message.path;
|
|
54942
54982
|
return object;
|
|
54943
54983
|
};
|
|
54944
54984
|
|
|
54945
54985
|
/**
|
|
54946
|
-
* Converts this
|
|
54986
|
+
* Converts this CustomHttpPattern to JSON.
|
|
54947
54987
|
* @function toJSON
|
|
54948
|
-
* @memberof google.api.
|
|
54988
|
+
* @memberof google.api.CustomHttpPattern
|
|
54949
54989
|
* @instance
|
|
54950
54990
|
* @returns {Object.<string,*>} JSON object
|
|
54951
54991
|
*/
|
|
54952
|
-
|
|
54992
|
+
CustomHttpPattern.prototype.toJSON = function toJSON() {
|
|
54953
54993
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
54954
54994
|
};
|
|
54955
54995
|
|
|
54956
|
-
return
|
|
54996
|
+
return CustomHttpPattern;
|
|
54957
54997
|
})();
|
|
54958
54998
|
|
|
54959
|
-
|
|
54999
|
+
/**
|
|
55000
|
+
* FieldBehavior enum.
|
|
55001
|
+
* @name google.api.FieldBehavior
|
|
55002
|
+
* @enum {number}
|
|
55003
|
+
* @property {number} FIELD_BEHAVIOR_UNSPECIFIED=0 FIELD_BEHAVIOR_UNSPECIFIED value
|
|
55004
|
+
* @property {number} OPTIONAL=1 OPTIONAL value
|
|
55005
|
+
* @property {number} REQUIRED=2 REQUIRED value
|
|
55006
|
+
* @property {number} OUTPUT_ONLY=3 OUTPUT_ONLY value
|
|
55007
|
+
* @property {number} INPUT_ONLY=4 INPUT_ONLY value
|
|
55008
|
+
* @property {number} IMMUTABLE=5 IMMUTABLE value
|
|
55009
|
+
* @property {number} UNORDERED_LIST=6 UNORDERED_LIST value
|
|
55010
|
+
* @property {number} NON_EMPTY_DEFAULT=7 NON_EMPTY_DEFAULT value
|
|
55011
|
+
*/
|
|
55012
|
+
api.FieldBehavior = (function() {
|
|
55013
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
55014
|
+
values[valuesById[0] = "FIELD_BEHAVIOR_UNSPECIFIED"] = 0;
|
|
55015
|
+
values[valuesById[1] = "OPTIONAL"] = 1;
|
|
55016
|
+
values[valuesById[2] = "REQUIRED"] = 2;
|
|
55017
|
+
values[valuesById[3] = "OUTPUT_ONLY"] = 3;
|
|
55018
|
+
values[valuesById[4] = "INPUT_ONLY"] = 4;
|
|
55019
|
+
values[valuesById[5] = "IMMUTABLE"] = 5;
|
|
55020
|
+
values[valuesById[6] = "UNORDERED_LIST"] = 6;
|
|
55021
|
+
values[valuesById[7] = "NON_EMPTY_DEFAULT"] = 7;
|
|
55022
|
+
return values;
|
|
55023
|
+
})();
|
|
55024
|
+
|
|
55025
|
+
api.ResourceDescriptor = (function() {
|
|
54960
55026
|
|
|
54961
55027
|
/**
|
|
54962
|
-
* Properties of a
|
|
55028
|
+
* Properties of a ResourceDescriptor.
|
|
54963
55029
|
* @memberof google.api
|
|
54964
|
-
* @interface
|
|
54965
|
-
* @property {string|null} [
|
|
54966
|
-
* @property {string
|
|
54967
|
-
* @property {string|null} [
|
|
54968
|
-
* @property {
|
|
54969
|
-
* @property {string|null} [
|
|
54970
|
-
* @property {string|null} [
|
|
54971
|
-
* @property {google.api.
|
|
54972
|
-
* @property {string|null} [body] HttpRule body
|
|
54973
|
-
* @property {string|null} [responseBody] HttpRule responseBody
|
|
54974
|
-
* @property {Array.<google.api.IHttpRule>|null} [additionalBindings] HttpRule additionalBindings
|
|
55030
|
+
* @interface IResourceDescriptor
|
|
55031
|
+
* @property {string|null} [type] ResourceDescriptor type
|
|
55032
|
+
* @property {Array.<string>|null} [pattern] ResourceDescriptor pattern
|
|
55033
|
+
* @property {string|null} [nameField] ResourceDescriptor nameField
|
|
55034
|
+
* @property {google.api.ResourceDescriptor.History|null} [history] ResourceDescriptor history
|
|
55035
|
+
* @property {string|null} [plural] ResourceDescriptor plural
|
|
55036
|
+
* @property {string|null} [singular] ResourceDescriptor singular
|
|
55037
|
+
* @property {Array.<google.api.ResourceDescriptor.Style>|null} [style] ResourceDescriptor style
|
|
54975
55038
|
*/
|
|
54976
55039
|
|
|
54977
55040
|
/**
|
|
54978
|
-
* Constructs a new
|
|
55041
|
+
* Constructs a new ResourceDescriptor.
|
|
54979
55042
|
* @memberof google.api
|
|
54980
|
-
* @classdesc Represents a
|
|
54981
|
-
* @implements
|
|
55043
|
+
* @classdesc Represents a ResourceDescriptor.
|
|
55044
|
+
* @implements IResourceDescriptor
|
|
54982
55045
|
* @constructor
|
|
54983
|
-
* @param {google.api.
|
|
55046
|
+
* @param {google.api.IResourceDescriptor=} [properties] Properties to set
|
|
54984
55047
|
*/
|
|
54985
|
-
function
|
|
54986
|
-
this.
|
|
55048
|
+
function ResourceDescriptor(properties) {
|
|
55049
|
+
this.pattern = [];
|
|
55050
|
+
this.style = [];
|
|
54987
55051
|
if (properties)
|
|
54988
55052
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
54989
55053
|
if (properties[keys[i]] != null)
|
|
@@ -54991,209 +55055,167 @@
|
|
|
54991
55055
|
}
|
|
54992
55056
|
|
|
54993
55057
|
/**
|
|
54994
|
-
*
|
|
54995
|
-
* @member {string}
|
|
54996
|
-
* @memberof google.api.
|
|
54997
|
-
* @instance
|
|
54998
|
-
*/
|
|
54999
|
-
HttpRule.prototype.selector = "";
|
|
55000
|
-
|
|
55001
|
-
/**
|
|
55002
|
-
* HttpRule get.
|
|
55003
|
-
* @member {string|null|undefined} get
|
|
55004
|
-
* @memberof google.api.HttpRule
|
|
55005
|
-
* @instance
|
|
55006
|
-
*/
|
|
55007
|
-
HttpRule.prototype.get = null;
|
|
55008
|
-
|
|
55009
|
-
/**
|
|
55010
|
-
* HttpRule put.
|
|
55011
|
-
* @member {string|null|undefined} put
|
|
55012
|
-
* @memberof google.api.HttpRule
|
|
55013
|
-
* @instance
|
|
55014
|
-
*/
|
|
55015
|
-
HttpRule.prototype.put = null;
|
|
55016
|
-
|
|
55017
|
-
/**
|
|
55018
|
-
* HttpRule post.
|
|
55019
|
-
* @member {string|null|undefined} post
|
|
55020
|
-
* @memberof google.api.HttpRule
|
|
55021
|
-
* @instance
|
|
55022
|
-
*/
|
|
55023
|
-
HttpRule.prototype.post = null;
|
|
55024
|
-
|
|
55025
|
-
/**
|
|
55026
|
-
* HttpRule delete.
|
|
55027
|
-
* @member {string|null|undefined} delete
|
|
55028
|
-
* @memberof google.api.HttpRule
|
|
55058
|
+
* ResourceDescriptor type.
|
|
55059
|
+
* @member {string} type
|
|
55060
|
+
* @memberof google.api.ResourceDescriptor
|
|
55029
55061
|
* @instance
|
|
55030
55062
|
*/
|
|
55031
|
-
|
|
55063
|
+
ResourceDescriptor.prototype.type = "";
|
|
55032
55064
|
|
|
55033
55065
|
/**
|
|
55034
|
-
*
|
|
55035
|
-
* @member {string
|
|
55036
|
-
* @memberof google.api.
|
|
55066
|
+
* ResourceDescriptor pattern.
|
|
55067
|
+
* @member {Array.<string>} pattern
|
|
55068
|
+
* @memberof google.api.ResourceDescriptor
|
|
55037
55069
|
* @instance
|
|
55038
55070
|
*/
|
|
55039
|
-
|
|
55071
|
+
ResourceDescriptor.prototype.pattern = $util.emptyArray;
|
|
55040
55072
|
|
|
55041
55073
|
/**
|
|
55042
|
-
*
|
|
55043
|
-
* @member {
|
|
55044
|
-
* @memberof google.api.
|
|
55074
|
+
* ResourceDescriptor nameField.
|
|
55075
|
+
* @member {string} nameField
|
|
55076
|
+
* @memberof google.api.ResourceDescriptor
|
|
55045
55077
|
* @instance
|
|
55046
55078
|
*/
|
|
55047
|
-
|
|
55079
|
+
ResourceDescriptor.prototype.nameField = "";
|
|
55048
55080
|
|
|
55049
55081
|
/**
|
|
55050
|
-
*
|
|
55051
|
-
* @member {
|
|
55052
|
-
* @memberof google.api.
|
|
55082
|
+
* ResourceDescriptor history.
|
|
55083
|
+
* @member {google.api.ResourceDescriptor.History} history
|
|
55084
|
+
* @memberof google.api.ResourceDescriptor
|
|
55053
55085
|
* @instance
|
|
55054
55086
|
*/
|
|
55055
|
-
|
|
55087
|
+
ResourceDescriptor.prototype.history = 0;
|
|
55056
55088
|
|
|
55057
55089
|
/**
|
|
55058
|
-
*
|
|
55059
|
-
* @member {string}
|
|
55060
|
-
* @memberof google.api.
|
|
55090
|
+
* ResourceDescriptor plural.
|
|
55091
|
+
* @member {string} plural
|
|
55092
|
+
* @memberof google.api.ResourceDescriptor
|
|
55061
55093
|
* @instance
|
|
55062
55094
|
*/
|
|
55063
|
-
|
|
55095
|
+
ResourceDescriptor.prototype.plural = "";
|
|
55064
55096
|
|
|
55065
55097
|
/**
|
|
55066
|
-
*
|
|
55067
|
-
* @member {
|
|
55068
|
-
* @memberof google.api.
|
|
55098
|
+
* ResourceDescriptor singular.
|
|
55099
|
+
* @member {string} singular
|
|
55100
|
+
* @memberof google.api.ResourceDescriptor
|
|
55069
55101
|
* @instance
|
|
55070
55102
|
*/
|
|
55071
|
-
|
|
55072
|
-
|
|
55073
|
-
// OneOf field names bound to virtual getters and setters
|
|
55074
|
-
var $oneOfFields;
|
|
55103
|
+
ResourceDescriptor.prototype.singular = "";
|
|
55075
55104
|
|
|
55076
55105
|
/**
|
|
55077
|
-
*
|
|
55078
|
-
* @member {
|
|
55079
|
-
* @memberof google.api.
|
|
55106
|
+
* ResourceDescriptor style.
|
|
55107
|
+
* @member {Array.<google.api.ResourceDescriptor.Style>} style
|
|
55108
|
+
* @memberof google.api.ResourceDescriptor
|
|
55080
55109
|
* @instance
|
|
55081
55110
|
*/
|
|
55082
|
-
|
|
55083
|
-
get: $util.oneOfGetter($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"]),
|
|
55084
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
55085
|
-
});
|
|
55111
|
+
ResourceDescriptor.prototype.style = $util.emptyArray;
|
|
55086
55112
|
|
|
55087
55113
|
/**
|
|
55088
|
-
* Creates a new
|
|
55114
|
+
* Creates a new ResourceDescriptor instance using the specified properties.
|
|
55089
55115
|
* @function create
|
|
55090
|
-
* @memberof google.api.
|
|
55116
|
+
* @memberof google.api.ResourceDescriptor
|
|
55091
55117
|
* @static
|
|
55092
|
-
* @param {google.api.
|
|
55093
|
-
* @returns {google.api.
|
|
55118
|
+
* @param {google.api.IResourceDescriptor=} [properties] Properties to set
|
|
55119
|
+
* @returns {google.api.ResourceDescriptor} ResourceDescriptor instance
|
|
55094
55120
|
*/
|
|
55095
|
-
|
|
55096
|
-
return new
|
|
55121
|
+
ResourceDescriptor.create = function create(properties) {
|
|
55122
|
+
return new ResourceDescriptor(properties);
|
|
55097
55123
|
};
|
|
55098
55124
|
|
|
55099
55125
|
/**
|
|
55100
|
-
* Encodes the specified
|
|
55126
|
+
* Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
|
|
55101
55127
|
* @function encode
|
|
55102
|
-
* @memberof google.api.
|
|
55128
|
+
* @memberof google.api.ResourceDescriptor
|
|
55103
55129
|
* @static
|
|
55104
|
-
* @param {google.api.
|
|
55130
|
+
* @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode
|
|
55105
55131
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
55106
55132
|
* @returns {$protobuf.Writer} Writer
|
|
55107
55133
|
*/
|
|
55108
|
-
|
|
55134
|
+
ResourceDescriptor.encode = function encode(message, writer) {
|
|
55109
55135
|
if (!writer)
|
|
55110
55136
|
writer = $Writer.create();
|
|
55111
|
-
if (message.
|
|
55112
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.
|
|
55113
|
-
if (message.
|
|
55114
|
-
|
|
55115
|
-
|
|
55116
|
-
|
|
55117
|
-
|
|
55118
|
-
|
|
55119
|
-
|
|
55120
|
-
|
|
55121
|
-
|
|
55122
|
-
|
|
55123
|
-
|
|
55124
|
-
|
|
55125
|
-
|
|
55126
|
-
|
|
55127
|
-
|
|
55128
|
-
|
|
55129
|
-
|
|
55130
|
-
if (message.responseBody != null && Object.hasOwnProperty.call(message, "responseBody"))
|
|
55131
|
-
writer.uint32(/* id 12, wireType 2 =*/98).string(message.responseBody);
|
|
55137
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
55138
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
|
|
55139
|
+
if (message.pattern != null && message.pattern.length)
|
|
55140
|
+
for (var i = 0; i < message.pattern.length; ++i)
|
|
55141
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.pattern[i]);
|
|
55142
|
+
if (message.nameField != null && Object.hasOwnProperty.call(message, "nameField"))
|
|
55143
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.nameField);
|
|
55144
|
+
if (message.history != null && Object.hasOwnProperty.call(message, "history"))
|
|
55145
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.history);
|
|
55146
|
+
if (message.plural != null && Object.hasOwnProperty.call(message, "plural"))
|
|
55147
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.plural);
|
|
55148
|
+
if (message.singular != null && Object.hasOwnProperty.call(message, "singular"))
|
|
55149
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.singular);
|
|
55150
|
+
if (message.style != null && message.style.length) {
|
|
55151
|
+
writer.uint32(/* id 10, wireType 2 =*/82).fork();
|
|
55152
|
+
for (var i = 0; i < message.style.length; ++i)
|
|
55153
|
+
writer.int32(message.style[i]);
|
|
55154
|
+
writer.ldelim();
|
|
55155
|
+
}
|
|
55132
55156
|
return writer;
|
|
55133
55157
|
};
|
|
55134
55158
|
|
|
55135
55159
|
/**
|
|
55136
|
-
* Encodes the specified
|
|
55160
|
+
* Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
|
|
55137
55161
|
* @function encodeDelimited
|
|
55138
|
-
* @memberof google.api.
|
|
55162
|
+
* @memberof google.api.ResourceDescriptor
|
|
55139
55163
|
* @static
|
|
55140
|
-
* @param {google.api.
|
|
55164
|
+
* @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode
|
|
55141
55165
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
55142
55166
|
* @returns {$protobuf.Writer} Writer
|
|
55143
55167
|
*/
|
|
55144
|
-
|
|
55168
|
+
ResourceDescriptor.encodeDelimited = function encodeDelimited(message, writer) {
|
|
55145
55169
|
return this.encode(message, writer).ldelim();
|
|
55146
55170
|
};
|
|
55147
55171
|
|
|
55148
55172
|
/**
|
|
55149
|
-
* Decodes a
|
|
55173
|
+
* Decodes a ResourceDescriptor message from the specified reader or buffer.
|
|
55150
55174
|
* @function decode
|
|
55151
|
-
* @memberof google.api.
|
|
55175
|
+
* @memberof google.api.ResourceDescriptor
|
|
55152
55176
|
* @static
|
|
55153
55177
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
55154
55178
|
* @param {number} [length] Message length if known beforehand
|
|
55155
|
-
* @returns {google.api.
|
|
55179
|
+
* @returns {google.api.ResourceDescriptor} ResourceDescriptor
|
|
55156
55180
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
55157
55181
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
55158
55182
|
*/
|
|
55159
|
-
|
|
55183
|
+
ResourceDescriptor.decode = function decode(reader, length) {
|
|
55160
55184
|
if (!(reader instanceof $Reader))
|
|
55161
55185
|
reader = $Reader.create(reader);
|
|
55162
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.
|
|
55186
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceDescriptor();
|
|
55163
55187
|
while (reader.pos < end) {
|
|
55164
55188
|
var tag = reader.uint32();
|
|
55165
55189
|
switch (tag >>> 3) {
|
|
55166
55190
|
case 1:
|
|
55167
|
-
message.
|
|
55191
|
+
message.type = reader.string();
|
|
55168
55192
|
break;
|
|
55169
55193
|
case 2:
|
|
55170
|
-
message.
|
|
55194
|
+
if (!(message.pattern && message.pattern.length))
|
|
55195
|
+
message.pattern = [];
|
|
55196
|
+
message.pattern.push(reader.string());
|
|
55171
55197
|
break;
|
|
55172
55198
|
case 3:
|
|
55173
|
-
message.
|
|
55199
|
+
message.nameField = reader.string();
|
|
55174
55200
|
break;
|
|
55175
55201
|
case 4:
|
|
55176
|
-
message.
|
|
55202
|
+
message.history = reader.int32();
|
|
55177
55203
|
break;
|
|
55178
55204
|
case 5:
|
|
55179
|
-
message
|
|
55205
|
+
message.plural = reader.string();
|
|
55180
55206
|
break;
|
|
55181
55207
|
case 6:
|
|
55182
|
-
message.
|
|
55183
|
-
break;
|
|
55184
|
-
case 8:
|
|
55185
|
-
message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32());
|
|
55186
|
-
break;
|
|
55187
|
-
case 7:
|
|
55188
|
-
message.body = reader.string();
|
|
55189
|
-
break;
|
|
55190
|
-
case 12:
|
|
55191
|
-
message.responseBody = reader.string();
|
|
55208
|
+
message.singular = reader.string();
|
|
55192
55209
|
break;
|
|
55193
|
-
case
|
|
55194
|
-
if (!(message.
|
|
55195
|
-
message.
|
|
55196
|
-
|
|
55210
|
+
case 10:
|
|
55211
|
+
if (!(message.style && message.style.length))
|
|
55212
|
+
message.style = [];
|
|
55213
|
+
if ((tag & 7) === 2) {
|
|
55214
|
+
var end2 = reader.uint32() + reader.pos;
|
|
55215
|
+
while (reader.pos < end2)
|
|
55216
|
+
message.style.push(reader.int32());
|
|
55217
|
+
} else
|
|
55218
|
+
message.style.push(reader.int32());
|
|
55197
55219
|
break;
|
|
55198
55220
|
default:
|
|
55199
55221
|
reader.skipType(tag & 7);
|
|
@@ -55204,240 +55226,246 @@
|
|
|
55204
55226
|
};
|
|
55205
55227
|
|
|
55206
55228
|
/**
|
|
55207
|
-
* Decodes a
|
|
55229
|
+
* Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
|
|
55208
55230
|
* @function decodeDelimited
|
|
55209
|
-
* @memberof google.api.
|
|
55231
|
+
* @memberof google.api.ResourceDescriptor
|
|
55210
55232
|
* @static
|
|
55211
55233
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
55212
|
-
* @returns {google.api.
|
|
55234
|
+
* @returns {google.api.ResourceDescriptor} ResourceDescriptor
|
|
55213
55235
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
55214
55236
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
55215
55237
|
*/
|
|
55216
|
-
|
|
55238
|
+
ResourceDescriptor.decodeDelimited = function decodeDelimited(reader) {
|
|
55217
55239
|
if (!(reader instanceof $Reader))
|
|
55218
55240
|
reader = new $Reader(reader);
|
|
55219
55241
|
return this.decode(reader, reader.uint32());
|
|
55220
55242
|
};
|
|
55221
55243
|
|
|
55222
55244
|
/**
|
|
55223
|
-
* Verifies a
|
|
55245
|
+
* Verifies a ResourceDescriptor message.
|
|
55224
55246
|
* @function verify
|
|
55225
|
-
* @memberof google.api.
|
|
55247
|
+
* @memberof google.api.ResourceDescriptor
|
|
55226
55248
|
* @static
|
|
55227
55249
|
* @param {Object.<string,*>} message Plain object to verify
|
|
55228
55250
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
55229
55251
|
*/
|
|
55230
|
-
|
|
55252
|
+
ResourceDescriptor.verify = function verify(message) {
|
|
55231
55253
|
if (typeof message !== "object" || message === null)
|
|
55232
55254
|
return "object expected";
|
|
55233
|
-
|
|
55234
|
-
|
|
55235
|
-
|
|
55236
|
-
|
|
55237
|
-
|
|
55238
|
-
|
|
55239
|
-
|
|
55240
|
-
|
|
55241
|
-
|
|
55242
|
-
if (message.put != null && message.hasOwnProperty("put")) {
|
|
55243
|
-
if (properties.pattern === 1)
|
|
55244
|
-
return "pattern: multiple values";
|
|
55245
|
-
properties.pattern = 1;
|
|
55246
|
-
if (!$util.isString(message.put))
|
|
55247
|
-
return "put: string expected";
|
|
55248
|
-
}
|
|
55249
|
-
if (message.post != null && message.hasOwnProperty("post")) {
|
|
55250
|
-
if (properties.pattern === 1)
|
|
55251
|
-
return "pattern: multiple values";
|
|
55252
|
-
properties.pattern = 1;
|
|
55253
|
-
if (!$util.isString(message.post))
|
|
55254
|
-
return "post: string expected";
|
|
55255
|
-
}
|
|
55256
|
-
if (message["delete"] != null && message.hasOwnProperty("delete")) {
|
|
55257
|
-
if (properties.pattern === 1)
|
|
55258
|
-
return "pattern: multiple values";
|
|
55259
|
-
properties.pattern = 1;
|
|
55260
|
-
if (!$util.isString(message["delete"]))
|
|
55261
|
-
return "delete: string expected";
|
|
55262
|
-
}
|
|
55263
|
-
if (message.patch != null && message.hasOwnProperty("patch")) {
|
|
55264
|
-
if (properties.pattern === 1)
|
|
55265
|
-
return "pattern: multiple values";
|
|
55266
|
-
properties.pattern = 1;
|
|
55267
|
-
if (!$util.isString(message.patch))
|
|
55268
|
-
return "patch: string expected";
|
|
55269
|
-
}
|
|
55270
|
-
if (message.custom != null && message.hasOwnProperty("custom")) {
|
|
55271
|
-
if (properties.pattern === 1)
|
|
55272
|
-
return "pattern: multiple values";
|
|
55273
|
-
properties.pattern = 1;
|
|
55274
|
-
{
|
|
55275
|
-
var error = $root.google.api.CustomHttpPattern.verify(message.custom);
|
|
55276
|
-
if (error)
|
|
55277
|
-
return "custom." + error;
|
|
55278
|
-
}
|
|
55255
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
55256
|
+
if (!$util.isString(message.type))
|
|
55257
|
+
return "type: string expected";
|
|
55258
|
+
if (message.pattern != null && message.hasOwnProperty("pattern")) {
|
|
55259
|
+
if (!Array.isArray(message.pattern))
|
|
55260
|
+
return "pattern: array expected";
|
|
55261
|
+
for (var i = 0; i < message.pattern.length; ++i)
|
|
55262
|
+
if (!$util.isString(message.pattern[i]))
|
|
55263
|
+
return "pattern: string[] expected";
|
|
55279
55264
|
}
|
|
55280
|
-
if (message.
|
|
55281
|
-
if (!$util.isString(message.
|
|
55282
|
-
return "
|
|
55283
|
-
if (message.
|
|
55284
|
-
|
|
55285
|
-
|
|
55286
|
-
|
|
55287
|
-
|
|
55288
|
-
|
|
55289
|
-
|
|
55290
|
-
|
|
55291
|
-
if (error)
|
|
55292
|
-
return "additionalBindings." + error;
|
|
55265
|
+
if (message.nameField != null && message.hasOwnProperty("nameField"))
|
|
55266
|
+
if (!$util.isString(message.nameField))
|
|
55267
|
+
return "nameField: string expected";
|
|
55268
|
+
if (message.history != null && message.hasOwnProperty("history"))
|
|
55269
|
+
switch (message.history) {
|
|
55270
|
+
default:
|
|
55271
|
+
return "history: enum value expected";
|
|
55272
|
+
case 0:
|
|
55273
|
+
case 1:
|
|
55274
|
+
case 2:
|
|
55275
|
+
break;
|
|
55293
55276
|
}
|
|
55277
|
+
if (message.plural != null && message.hasOwnProperty("plural"))
|
|
55278
|
+
if (!$util.isString(message.plural))
|
|
55279
|
+
return "plural: string expected";
|
|
55280
|
+
if (message.singular != null && message.hasOwnProperty("singular"))
|
|
55281
|
+
if (!$util.isString(message.singular))
|
|
55282
|
+
return "singular: string expected";
|
|
55283
|
+
if (message.style != null && message.hasOwnProperty("style")) {
|
|
55284
|
+
if (!Array.isArray(message.style))
|
|
55285
|
+
return "style: array expected";
|
|
55286
|
+
for (var i = 0; i < message.style.length; ++i)
|
|
55287
|
+
switch (message.style[i]) {
|
|
55288
|
+
default:
|
|
55289
|
+
return "style: enum value[] expected";
|
|
55290
|
+
case 0:
|
|
55291
|
+
case 1:
|
|
55292
|
+
break;
|
|
55293
|
+
}
|
|
55294
55294
|
}
|
|
55295
55295
|
return null;
|
|
55296
55296
|
};
|
|
55297
55297
|
|
|
55298
55298
|
/**
|
|
55299
|
-
* Creates a
|
|
55299
|
+
* Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
|
|
55300
55300
|
* @function fromObject
|
|
55301
|
-
* @memberof google.api.
|
|
55301
|
+
* @memberof google.api.ResourceDescriptor
|
|
55302
55302
|
* @static
|
|
55303
55303
|
* @param {Object.<string,*>} object Plain object
|
|
55304
|
-
* @returns {google.api.
|
|
55304
|
+
* @returns {google.api.ResourceDescriptor} ResourceDescriptor
|
|
55305
55305
|
*/
|
|
55306
|
-
|
|
55307
|
-
if (object instanceof $root.google.api.
|
|
55306
|
+
ResourceDescriptor.fromObject = function fromObject(object) {
|
|
55307
|
+
if (object instanceof $root.google.api.ResourceDescriptor)
|
|
55308
55308
|
return object;
|
|
55309
|
-
var message = new $root.google.api.
|
|
55310
|
-
if (object.
|
|
55311
|
-
message.
|
|
55312
|
-
if (object.
|
|
55313
|
-
|
|
55314
|
-
|
|
55315
|
-
message.
|
|
55316
|
-
|
|
55317
|
-
|
|
55318
|
-
if (object["delete"] != null)
|
|
55319
|
-
message["delete"] = String(object["delete"]);
|
|
55320
|
-
if (object.patch != null)
|
|
55321
|
-
message.patch = String(object.patch);
|
|
55322
|
-
if (object.custom != null) {
|
|
55323
|
-
if (typeof object.custom !== "object")
|
|
55324
|
-
throw TypeError(".google.api.HttpRule.custom: object expected");
|
|
55325
|
-
message.custom = $root.google.api.CustomHttpPattern.fromObject(object.custom);
|
|
55309
|
+
var message = new $root.google.api.ResourceDescriptor();
|
|
55310
|
+
if (object.type != null)
|
|
55311
|
+
message.type = String(object.type);
|
|
55312
|
+
if (object.pattern) {
|
|
55313
|
+
if (!Array.isArray(object.pattern))
|
|
55314
|
+
throw TypeError(".google.api.ResourceDescriptor.pattern: array expected");
|
|
55315
|
+
message.pattern = [];
|
|
55316
|
+
for (var i = 0; i < object.pattern.length; ++i)
|
|
55317
|
+
message.pattern[i] = String(object.pattern[i]);
|
|
55326
55318
|
}
|
|
55327
|
-
if (object.
|
|
55328
|
-
message.
|
|
55329
|
-
|
|
55330
|
-
|
|
55331
|
-
|
|
55332
|
-
|
|
55333
|
-
|
|
55334
|
-
|
|
55335
|
-
|
|
55336
|
-
|
|
55337
|
-
|
|
55338
|
-
|
|
55339
|
-
|
|
55319
|
+
if (object.nameField != null)
|
|
55320
|
+
message.nameField = String(object.nameField);
|
|
55321
|
+
switch (object.history) {
|
|
55322
|
+
case "HISTORY_UNSPECIFIED":
|
|
55323
|
+
case 0:
|
|
55324
|
+
message.history = 0;
|
|
55325
|
+
break;
|
|
55326
|
+
case "ORIGINALLY_SINGLE_PATTERN":
|
|
55327
|
+
case 1:
|
|
55328
|
+
message.history = 1;
|
|
55329
|
+
break;
|
|
55330
|
+
case "FUTURE_MULTI_PATTERN":
|
|
55331
|
+
case 2:
|
|
55332
|
+
message.history = 2;
|
|
55333
|
+
break;
|
|
55334
|
+
}
|
|
55335
|
+
if (object.plural != null)
|
|
55336
|
+
message.plural = String(object.plural);
|
|
55337
|
+
if (object.singular != null)
|
|
55338
|
+
message.singular = String(object.singular);
|
|
55339
|
+
if (object.style) {
|
|
55340
|
+
if (!Array.isArray(object.style))
|
|
55341
|
+
throw TypeError(".google.api.ResourceDescriptor.style: array expected");
|
|
55342
|
+
message.style = [];
|
|
55343
|
+
for (var i = 0; i < object.style.length; ++i)
|
|
55344
|
+
switch (object.style[i]) {
|
|
55345
|
+
default:
|
|
55346
|
+
case "STYLE_UNSPECIFIED":
|
|
55347
|
+
case 0:
|
|
55348
|
+
message.style[i] = 0;
|
|
55349
|
+
break;
|
|
55350
|
+
case "DECLARATIVE_FRIENDLY":
|
|
55351
|
+
case 1:
|
|
55352
|
+
message.style[i] = 1;
|
|
55353
|
+
break;
|
|
55354
|
+
}
|
|
55340
55355
|
}
|
|
55341
55356
|
return message;
|
|
55342
55357
|
};
|
|
55343
55358
|
|
|
55344
55359
|
/**
|
|
55345
|
-
* Creates a plain object from a
|
|
55360
|
+
* Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
|
|
55346
55361
|
* @function toObject
|
|
55347
|
-
* @memberof google.api.
|
|
55362
|
+
* @memberof google.api.ResourceDescriptor
|
|
55348
55363
|
* @static
|
|
55349
|
-
* @param {google.api.
|
|
55364
|
+
* @param {google.api.ResourceDescriptor} message ResourceDescriptor
|
|
55350
55365
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
55351
55366
|
* @returns {Object.<string,*>} Plain object
|
|
55352
55367
|
*/
|
|
55353
|
-
|
|
55368
|
+
ResourceDescriptor.toObject = function toObject(message, options) {
|
|
55354
55369
|
if (!options)
|
|
55355
55370
|
options = {};
|
|
55356
55371
|
var object = {};
|
|
55357
|
-
if (options.arrays || options.defaults)
|
|
55358
|
-
object.
|
|
55359
|
-
|
|
55360
|
-
object.selector = "";
|
|
55361
|
-
object.body = "";
|
|
55362
|
-
object.responseBody = "";
|
|
55363
|
-
}
|
|
55364
|
-
if (message.selector != null && message.hasOwnProperty("selector"))
|
|
55365
|
-
object.selector = message.selector;
|
|
55366
|
-
if (message.get != null && message.hasOwnProperty("get")) {
|
|
55367
|
-
object.get = message.get;
|
|
55368
|
-
if (options.oneofs)
|
|
55369
|
-
object.pattern = "get";
|
|
55370
|
-
}
|
|
55371
|
-
if (message.put != null && message.hasOwnProperty("put")) {
|
|
55372
|
-
object.put = message.put;
|
|
55373
|
-
if (options.oneofs)
|
|
55374
|
-
object.pattern = "put";
|
|
55375
|
-
}
|
|
55376
|
-
if (message.post != null && message.hasOwnProperty("post")) {
|
|
55377
|
-
object.post = message.post;
|
|
55378
|
-
if (options.oneofs)
|
|
55379
|
-
object.pattern = "post";
|
|
55380
|
-
}
|
|
55381
|
-
if (message["delete"] != null && message.hasOwnProperty("delete")) {
|
|
55382
|
-
object["delete"] = message["delete"];
|
|
55383
|
-
if (options.oneofs)
|
|
55384
|
-
object.pattern = "delete";
|
|
55372
|
+
if (options.arrays || options.defaults) {
|
|
55373
|
+
object.pattern = [];
|
|
55374
|
+
object.style = [];
|
|
55385
55375
|
}
|
|
55386
|
-
if (
|
|
55387
|
-
object.
|
|
55388
|
-
|
|
55389
|
-
|
|
55376
|
+
if (options.defaults) {
|
|
55377
|
+
object.type = "";
|
|
55378
|
+
object.nameField = "";
|
|
55379
|
+
object.history = options.enums === String ? "HISTORY_UNSPECIFIED" : 0;
|
|
55380
|
+
object.plural = "";
|
|
55381
|
+
object.singular = "";
|
|
55390
55382
|
}
|
|
55391
|
-
if (message.
|
|
55392
|
-
object.
|
|
55393
|
-
if (message.
|
|
55394
|
-
object.
|
|
55395
|
-
|
|
55396
|
-
object.pattern =
|
|
55383
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
55384
|
+
object.type = message.type;
|
|
55385
|
+
if (message.pattern && message.pattern.length) {
|
|
55386
|
+
object.pattern = [];
|
|
55387
|
+
for (var j = 0; j < message.pattern.length; ++j)
|
|
55388
|
+
object.pattern[j] = message.pattern[j];
|
|
55397
55389
|
}
|
|
55398
|
-
if (message.
|
|
55399
|
-
object.
|
|
55400
|
-
|
|
55401
|
-
|
|
55390
|
+
if (message.nameField != null && message.hasOwnProperty("nameField"))
|
|
55391
|
+
object.nameField = message.nameField;
|
|
55392
|
+
if (message.history != null && message.hasOwnProperty("history"))
|
|
55393
|
+
object.history = options.enums === String ? $root.google.api.ResourceDescriptor.History[message.history] : message.history;
|
|
55394
|
+
if (message.plural != null && message.hasOwnProperty("plural"))
|
|
55395
|
+
object.plural = message.plural;
|
|
55396
|
+
if (message.singular != null && message.hasOwnProperty("singular"))
|
|
55397
|
+
object.singular = message.singular;
|
|
55398
|
+
if (message.style && message.style.length) {
|
|
55399
|
+
object.style = [];
|
|
55400
|
+
for (var j = 0; j < message.style.length; ++j)
|
|
55401
|
+
object.style[j] = options.enums === String ? $root.google.api.ResourceDescriptor.Style[message.style[j]] : message.style[j];
|
|
55402
55402
|
}
|
|
55403
|
-
if (message.responseBody != null && message.hasOwnProperty("responseBody"))
|
|
55404
|
-
object.responseBody = message.responseBody;
|
|
55405
55403
|
return object;
|
|
55406
55404
|
};
|
|
55407
55405
|
|
|
55408
55406
|
/**
|
|
55409
|
-
* Converts this
|
|
55407
|
+
* Converts this ResourceDescriptor to JSON.
|
|
55410
55408
|
* @function toJSON
|
|
55411
|
-
* @memberof google.api.
|
|
55409
|
+
* @memberof google.api.ResourceDescriptor
|
|
55412
55410
|
* @instance
|
|
55413
55411
|
* @returns {Object.<string,*>} JSON object
|
|
55414
55412
|
*/
|
|
55415
|
-
|
|
55413
|
+
ResourceDescriptor.prototype.toJSON = function toJSON() {
|
|
55416
55414
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
55417
55415
|
};
|
|
55418
55416
|
|
|
55419
|
-
|
|
55417
|
+
/**
|
|
55418
|
+
* History enum.
|
|
55419
|
+
* @name google.api.ResourceDescriptor.History
|
|
55420
|
+
* @enum {number}
|
|
55421
|
+
* @property {number} HISTORY_UNSPECIFIED=0 HISTORY_UNSPECIFIED value
|
|
55422
|
+
* @property {number} ORIGINALLY_SINGLE_PATTERN=1 ORIGINALLY_SINGLE_PATTERN value
|
|
55423
|
+
* @property {number} FUTURE_MULTI_PATTERN=2 FUTURE_MULTI_PATTERN value
|
|
55424
|
+
*/
|
|
55425
|
+
ResourceDescriptor.History = (function() {
|
|
55426
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
55427
|
+
values[valuesById[0] = "HISTORY_UNSPECIFIED"] = 0;
|
|
55428
|
+
values[valuesById[1] = "ORIGINALLY_SINGLE_PATTERN"] = 1;
|
|
55429
|
+
values[valuesById[2] = "FUTURE_MULTI_PATTERN"] = 2;
|
|
55430
|
+
return values;
|
|
55431
|
+
})();
|
|
55432
|
+
|
|
55433
|
+
/**
|
|
55434
|
+
* Style enum.
|
|
55435
|
+
* @name google.api.ResourceDescriptor.Style
|
|
55436
|
+
* @enum {number}
|
|
55437
|
+
* @property {number} STYLE_UNSPECIFIED=0 STYLE_UNSPECIFIED value
|
|
55438
|
+
* @property {number} DECLARATIVE_FRIENDLY=1 DECLARATIVE_FRIENDLY value
|
|
55439
|
+
*/
|
|
55440
|
+
ResourceDescriptor.Style = (function() {
|
|
55441
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
55442
|
+
values[valuesById[0] = "STYLE_UNSPECIFIED"] = 0;
|
|
55443
|
+
values[valuesById[1] = "DECLARATIVE_FRIENDLY"] = 1;
|
|
55444
|
+
return values;
|
|
55445
|
+
})();
|
|
55446
|
+
|
|
55447
|
+
return ResourceDescriptor;
|
|
55420
55448
|
})();
|
|
55421
55449
|
|
|
55422
|
-
api.
|
|
55450
|
+
api.ResourceReference = (function() {
|
|
55423
55451
|
|
|
55424
55452
|
/**
|
|
55425
|
-
* Properties of a
|
|
55453
|
+
* Properties of a ResourceReference.
|
|
55426
55454
|
* @memberof google.api
|
|
55427
|
-
* @interface
|
|
55428
|
-
* @property {string|null} [
|
|
55429
|
-
* @property {string|null} [
|
|
55455
|
+
* @interface IResourceReference
|
|
55456
|
+
* @property {string|null} [type] ResourceReference type
|
|
55457
|
+
* @property {string|null} [childType] ResourceReference childType
|
|
55430
55458
|
*/
|
|
55431
55459
|
|
|
55432
55460
|
/**
|
|
55433
|
-
* Constructs a new
|
|
55461
|
+
* Constructs a new ResourceReference.
|
|
55434
55462
|
* @memberof google.api
|
|
55435
|
-
* @classdesc Represents a
|
|
55436
|
-
* @implements
|
|
55463
|
+
* @classdesc Represents a ResourceReference.
|
|
55464
|
+
* @implements IResourceReference
|
|
55437
55465
|
* @constructor
|
|
55438
|
-
* @param {google.api.
|
|
55466
|
+
* @param {google.api.IResourceReference=} [properties] Properties to set
|
|
55439
55467
|
*/
|
|
55440
|
-
function
|
|
55468
|
+
function ResourceReference(properties) {
|
|
55441
55469
|
if (properties)
|
|
55442
55470
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
55443
55471
|
if (properties[keys[i]] != null)
|
|
@@ -55445,88 +55473,88 @@
|
|
|
55445
55473
|
}
|
|
55446
55474
|
|
|
55447
55475
|
/**
|
|
55448
|
-
*
|
|
55449
|
-
* @member {string}
|
|
55450
|
-
* @memberof google.api.
|
|
55476
|
+
* ResourceReference type.
|
|
55477
|
+
* @member {string} type
|
|
55478
|
+
* @memberof google.api.ResourceReference
|
|
55451
55479
|
* @instance
|
|
55452
55480
|
*/
|
|
55453
|
-
|
|
55481
|
+
ResourceReference.prototype.type = "";
|
|
55454
55482
|
|
|
55455
55483
|
/**
|
|
55456
|
-
*
|
|
55457
|
-
* @member {string}
|
|
55458
|
-
* @memberof google.api.
|
|
55484
|
+
* ResourceReference childType.
|
|
55485
|
+
* @member {string} childType
|
|
55486
|
+
* @memberof google.api.ResourceReference
|
|
55459
55487
|
* @instance
|
|
55460
55488
|
*/
|
|
55461
|
-
|
|
55489
|
+
ResourceReference.prototype.childType = "";
|
|
55462
55490
|
|
|
55463
55491
|
/**
|
|
55464
|
-
* Creates a new
|
|
55492
|
+
* Creates a new ResourceReference instance using the specified properties.
|
|
55465
55493
|
* @function create
|
|
55466
|
-
* @memberof google.api.
|
|
55494
|
+
* @memberof google.api.ResourceReference
|
|
55467
55495
|
* @static
|
|
55468
|
-
* @param {google.api.
|
|
55469
|
-
* @returns {google.api.
|
|
55496
|
+
* @param {google.api.IResourceReference=} [properties] Properties to set
|
|
55497
|
+
* @returns {google.api.ResourceReference} ResourceReference instance
|
|
55470
55498
|
*/
|
|
55471
|
-
|
|
55472
|
-
return new
|
|
55499
|
+
ResourceReference.create = function create(properties) {
|
|
55500
|
+
return new ResourceReference(properties);
|
|
55473
55501
|
};
|
|
55474
55502
|
|
|
55475
55503
|
/**
|
|
55476
|
-
* Encodes the specified
|
|
55504
|
+
* Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
|
|
55477
55505
|
* @function encode
|
|
55478
|
-
* @memberof google.api.
|
|
55506
|
+
* @memberof google.api.ResourceReference
|
|
55479
55507
|
* @static
|
|
55480
|
-
* @param {google.api.
|
|
55508
|
+
* @param {google.api.IResourceReference} message ResourceReference message or plain object to encode
|
|
55481
55509
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
55482
55510
|
* @returns {$protobuf.Writer} Writer
|
|
55483
55511
|
*/
|
|
55484
|
-
|
|
55512
|
+
ResourceReference.encode = function encode(message, writer) {
|
|
55485
55513
|
if (!writer)
|
|
55486
55514
|
writer = $Writer.create();
|
|
55487
|
-
if (message.
|
|
55488
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.
|
|
55489
|
-
if (message.
|
|
55490
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.
|
|
55515
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
55516
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
|
|
55517
|
+
if (message.childType != null && Object.hasOwnProperty.call(message, "childType"))
|
|
55518
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.childType);
|
|
55491
55519
|
return writer;
|
|
55492
55520
|
};
|
|
55493
55521
|
|
|
55494
55522
|
/**
|
|
55495
|
-
* Encodes the specified
|
|
55523
|
+
* Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
|
|
55496
55524
|
* @function encodeDelimited
|
|
55497
|
-
* @memberof google.api.
|
|
55525
|
+
* @memberof google.api.ResourceReference
|
|
55498
55526
|
* @static
|
|
55499
|
-
* @param {google.api.
|
|
55527
|
+
* @param {google.api.IResourceReference} message ResourceReference message or plain object to encode
|
|
55500
55528
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
55501
55529
|
* @returns {$protobuf.Writer} Writer
|
|
55502
55530
|
*/
|
|
55503
|
-
|
|
55531
|
+
ResourceReference.encodeDelimited = function encodeDelimited(message, writer) {
|
|
55504
55532
|
return this.encode(message, writer).ldelim();
|
|
55505
55533
|
};
|
|
55506
55534
|
|
|
55507
55535
|
/**
|
|
55508
|
-
* Decodes a
|
|
55536
|
+
* Decodes a ResourceReference message from the specified reader or buffer.
|
|
55509
55537
|
* @function decode
|
|
55510
|
-
* @memberof google.api.
|
|
55538
|
+
* @memberof google.api.ResourceReference
|
|
55511
55539
|
* @static
|
|
55512
55540
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
55513
55541
|
* @param {number} [length] Message length if known beforehand
|
|
55514
|
-
* @returns {google.api.
|
|
55542
|
+
* @returns {google.api.ResourceReference} ResourceReference
|
|
55515
55543
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
55516
55544
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
55517
55545
|
*/
|
|
55518
|
-
|
|
55546
|
+
ResourceReference.decode = function decode(reader, length) {
|
|
55519
55547
|
if (!(reader instanceof $Reader))
|
|
55520
55548
|
reader = $Reader.create(reader);
|
|
55521
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.
|
|
55549
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceReference();
|
|
55522
55550
|
while (reader.pos < end) {
|
|
55523
55551
|
var tag = reader.uint32();
|
|
55524
55552
|
switch (tag >>> 3) {
|
|
55525
55553
|
case 1:
|
|
55526
|
-
message.
|
|
55554
|
+
message.type = reader.string();
|
|
55527
55555
|
break;
|
|
55528
55556
|
case 2:
|
|
55529
|
-
message.
|
|
55557
|
+
message.childType = reader.string();
|
|
55530
55558
|
break;
|
|
55531
55559
|
default:
|
|
55532
55560
|
reader.skipType(tag & 7);
|
|
@@ -55537,96 +55565,96 @@
|
|
|
55537
55565
|
};
|
|
55538
55566
|
|
|
55539
55567
|
/**
|
|
55540
|
-
* Decodes a
|
|
55568
|
+
* Decodes a ResourceReference message from the specified reader or buffer, length delimited.
|
|
55541
55569
|
* @function decodeDelimited
|
|
55542
|
-
* @memberof google.api.
|
|
55570
|
+
* @memberof google.api.ResourceReference
|
|
55543
55571
|
* @static
|
|
55544
55572
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
55545
|
-
* @returns {google.api.
|
|
55573
|
+
* @returns {google.api.ResourceReference} ResourceReference
|
|
55546
55574
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
55547
55575
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
55548
55576
|
*/
|
|
55549
|
-
|
|
55577
|
+
ResourceReference.decodeDelimited = function decodeDelimited(reader) {
|
|
55550
55578
|
if (!(reader instanceof $Reader))
|
|
55551
55579
|
reader = new $Reader(reader);
|
|
55552
55580
|
return this.decode(reader, reader.uint32());
|
|
55553
55581
|
};
|
|
55554
55582
|
|
|
55555
55583
|
/**
|
|
55556
|
-
* Verifies a
|
|
55584
|
+
* Verifies a ResourceReference message.
|
|
55557
55585
|
* @function verify
|
|
55558
|
-
* @memberof google.api.
|
|
55586
|
+
* @memberof google.api.ResourceReference
|
|
55559
55587
|
* @static
|
|
55560
55588
|
* @param {Object.<string,*>} message Plain object to verify
|
|
55561
55589
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
55562
55590
|
*/
|
|
55563
|
-
|
|
55591
|
+
ResourceReference.verify = function verify(message) {
|
|
55564
55592
|
if (typeof message !== "object" || message === null)
|
|
55565
55593
|
return "object expected";
|
|
55566
|
-
if (message.
|
|
55567
|
-
if (!$util.isString(message.
|
|
55568
|
-
return "
|
|
55569
|
-
if (message.
|
|
55570
|
-
if (!$util.isString(message.
|
|
55571
|
-
return "
|
|
55594
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
55595
|
+
if (!$util.isString(message.type))
|
|
55596
|
+
return "type: string expected";
|
|
55597
|
+
if (message.childType != null && message.hasOwnProperty("childType"))
|
|
55598
|
+
if (!$util.isString(message.childType))
|
|
55599
|
+
return "childType: string expected";
|
|
55572
55600
|
return null;
|
|
55573
55601
|
};
|
|
55574
55602
|
|
|
55575
55603
|
/**
|
|
55576
|
-
* Creates a
|
|
55604
|
+
* Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.
|
|
55577
55605
|
* @function fromObject
|
|
55578
|
-
* @memberof google.api.
|
|
55606
|
+
* @memberof google.api.ResourceReference
|
|
55579
55607
|
* @static
|
|
55580
55608
|
* @param {Object.<string,*>} object Plain object
|
|
55581
|
-
* @returns {google.api.
|
|
55609
|
+
* @returns {google.api.ResourceReference} ResourceReference
|
|
55582
55610
|
*/
|
|
55583
|
-
|
|
55584
|
-
if (object instanceof $root.google.api.
|
|
55611
|
+
ResourceReference.fromObject = function fromObject(object) {
|
|
55612
|
+
if (object instanceof $root.google.api.ResourceReference)
|
|
55585
55613
|
return object;
|
|
55586
|
-
var message = new $root.google.api.
|
|
55587
|
-
if (object.
|
|
55588
|
-
message.
|
|
55589
|
-
if (object.
|
|
55590
|
-
message.
|
|
55614
|
+
var message = new $root.google.api.ResourceReference();
|
|
55615
|
+
if (object.type != null)
|
|
55616
|
+
message.type = String(object.type);
|
|
55617
|
+
if (object.childType != null)
|
|
55618
|
+
message.childType = String(object.childType);
|
|
55591
55619
|
return message;
|
|
55592
55620
|
};
|
|
55593
55621
|
|
|
55594
55622
|
/**
|
|
55595
|
-
* Creates a plain object from a
|
|
55623
|
+
* Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
|
|
55596
55624
|
* @function toObject
|
|
55597
|
-
* @memberof google.api.
|
|
55625
|
+
* @memberof google.api.ResourceReference
|
|
55598
55626
|
* @static
|
|
55599
|
-
* @param {google.api.
|
|
55627
|
+
* @param {google.api.ResourceReference} message ResourceReference
|
|
55600
55628
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
55601
55629
|
* @returns {Object.<string,*>} Plain object
|
|
55602
55630
|
*/
|
|
55603
|
-
|
|
55631
|
+
ResourceReference.toObject = function toObject(message, options) {
|
|
55604
55632
|
if (!options)
|
|
55605
55633
|
options = {};
|
|
55606
55634
|
var object = {};
|
|
55607
55635
|
if (options.defaults) {
|
|
55608
|
-
object.
|
|
55609
|
-
object.
|
|
55636
|
+
object.type = "";
|
|
55637
|
+
object.childType = "";
|
|
55610
55638
|
}
|
|
55611
|
-
if (message.
|
|
55612
|
-
object.
|
|
55613
|
-
if (message.
|
|
55614
|
-
object.
|
|
55639
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
55640
|
+
object.type = message.type;
|
|
55641
|
+
if (message.childType != null && message.hasOwnProperty("childType"))
|
|
55642
|
+
object.childType = message.childType;
|
|
55615
55643
|
return object;
|
|
55616
55644
|
};
|
|
55617
55645
|
|
|
55618
55646
|
/**
|
|
55619
|
-
* Converts this
|
|
55647
|
+
* Converts this ResourceReference to JSON.
|
|
55620
55648
|
* @function toJSON
|
|
55621
|
-
* @memberof google.api.
|
|
55649
|
+
* @memberof google.api.ResourceReference
|
|
55622
55650
|
* @instance
|
|
55623
55651
|
* @returns {Object.<string,*>} JSON object
|
|
55624
55652
|
*/
|
|
55625
|
-
|
|
55653
|
+
ResourceReference.prototype.toJSON = function toJSON() {
|
|
55626
55654
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
55627
55655
|
};
|
|
55628
55656
|
|
|
55629
|
-
return
|
|
55657
|
+
return ResourceReference;
|
|
55630
55658
|
})();
|
|
55631
55659
|
|
|
55632
55660
|
return api;
|
|
@@ -62355,8 +62383,8 @@
|
|
|
62355
62383
|
* @property {boolean|null} [deprecated] MethodOptions deprecated
|
|
62356
62384
|
* @property {google.protobuf.MethodOptions.IdempotencyLevel|null} [idempotencyLevel] MethodOptions idempotencyLevel
|
|
62357
62385
|
* @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] MethodOptions uninterpretedOption
|
|
62358
|
-
* @property {Array.<string>|null} [".google.api.methodSignature"] MethodOptions .google.api.methodSignature
|
|
62359
62386
|
* @property {google.api.IHttpRule|null} [".google.api.http"] MethodOptions .google.api.http
|
|
62387
|
+
* @property {Array.<string>|null} [".google.api.methodSignature"] MethodOptions .google.api.methodSignature
|
|
62360
62388
|
*/
|
|
62361
62389
|
|
|
62362
62390
|
/**
|
|
@@ -62401,20 +62429,20 @@
|
|
|
62401
62429
|
MethodOptions.prototype.uninterpretedOption = $util.emptyArray;
|
|
62402
62430
|
|
|
62403
62431
|
/**
|
|
62404
|
-
* MethodOptions .google.api.
|
|
62405
|
-
* @member {
|
|
62432
|
+
* MethodOptions .google.api.http.
|
|
62433
|
+
* @member {google.api.IHttpRule|null|undefined} .google.api.http
|
|
62406
62434
|
* @memberof google.protobuf.MethodOptions
|
|
62407
62435
|
* @instance
|
|
62408
62436
|
*/
|
|
62409
|
-
MethodOptions.prototype[".google.api.
|
|
62437
|
+
MethodOptions.prototype[".google.api.http"] = null;
|
|
62410
62438
|
|
|
62411
62439
|
/**
|
|
62412
|
-
* MethodOptions .google.api.
|
|
62413
|
-
* @member {
|
|
62440
|
+
* MethodOptions .google.api.methodSignature.
|
|
62441
|
+
* @member {Array.<string>} .google.api.methodSignature
|
|
62414
62442
|
* @memberof google.protobuf.MethodOptions
|
|
62415
62443
|
* @instance
|
|
62416
62444
|
*/
|
|
62417
|
-
MethodOptions.prototype[".google.api.
|
|
62445
|
+
MethodOptions.prototype[".google.api.methodSignature"] = $util.emptyArray;
|
|
62418
62446
|
|
|
62419
62447
|
/**
|
|
62420
62448
|
* Creates a new MethodOptions instance using the specified properties.
|
|
@@ -62497,14 +62525,14 @@
|
|
|
62497
62525
|
message.uninterpretedOption = [];
|
|
62498
62526
|
message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32()));
|
|
62499
62527
|
break;
|
|
62528
|
+
case 72295728:
|
|
62529
|
+
message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32());
|
|
62530
|
+
break;
|
|
62500
62531
|
case 1051:
|
|
62501
62532
|
if (!(message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length))
|
|
62502
62533
|
message[".google.api.methodSignature"] = [];
|
|
62503
62534
|
message[".google.api.methodSignature"].push(reader.string());
|
|
62504
62535
|
break;
|
|
62505
|
-
case 72295728:
|
|
62506
|
-
message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32());
|
|
62507
|
-
break;
|
|
62508
62536
|
default:
|
|
62509
62537
|
reader.skipType(tag & 7);
|
|
62510
62538
|
break;
|
|
@@ -62561,6 +62589,11 @@
|
|
|
62561
62589
|
return "uninterpretedOption." + error;
|
|
62562
62590
|
}
|
|
62563
62591
|
}
|
|
62592
|
+
if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) {
|
|
62593
|
+
var error = $root.google.api.HttpRule.verify(message[".google.api.http"]);
|
|
62594
|
+
if (error)
|
|
62595
|
+
return ".google.api.http." + error;
|
|
62596
|
+
}
|
|
62564
62597
|
if (message[".google.api.methodSignature"] != null && message.hasOwnProperty(".google.api.methodSignature")) {
|
|
62565
62598
|
if (!Array.isArray(message[".google.api.methodSignature"]))
|
|
62566
62599
|
return ".google.api.methodSignature: array expected";
|
|
@@ -62568,11 +62601,6 @@
|
|
|
62568
62601
|
if (!$util.isString(message[".google.api.methodSignature"][i]))
|
|
62569
62602
|
return ".google.api.methodSignature: string[] expected";
|
|
62570
62603
|
}
|
|
62571
|
-
if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) {
|
|
62572
|
-
var error = $root.google.api.HttpRule.verify(message[".google.api.http"]);
|
|
62573
|
-
if (error)
|
|
62574
|
-
return ".google.api.http." + error;
|
|
62575
|
-
}
|
|
62576
62604
|
return null;
|
|
62577
62605
|
};
|
|
62578
62606
|
|
|
@@ -62614,6 +62642,11 @@
|
|
|
62614
62642
|
message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]);
|
|
62615
62643
|
}
|
|
62616
62644
|
}
|
|
62645
|
+
if (object[".google.api.http"] != null) {
|
|
62646
|
+
if (typeof object[".google.api.http"] !== "object")
|
|
62647
|
+
throw TypeError(".google.protobuf.MethodOptions..google.api.http: object expected");
|
|
62648
|
+
message[".google.api.http"] = $root.google.api.HttpRule.fromObject(object[".google.api.http"]);
|
|
62649
|
+
}
|
|
62617
62650
|
if (object[".google.api.methodSignature"]) {
|
|
62618
62651
|
if (!Array.isArray(object[".google.api.methodSignature"]))
|
|
62619
62652
|
throw TypeError(".google.protobuf.MethodOptions..google.api.methodSignature: array expected");
|
|
@@ -62621,11 +62654,6 @@
|
|
|
62621
62654
|
for (var i = 0; i < object[".google.api.methodSignature"].length; ++i)
|
|
62622
62655
|
message[".google.api.methodSignature"][i] = String(object[".google.api.methodSignature"][i]);
|
|
62623
62656
|
}
|
|
62624
|
-
if (object[".google.api.http"] != null) {
|
|
62625
|
-
if (typeof object[".google.api.http"] !== "object")
|
|
62626
|
-
throw TypeError(".google.protobuf.MethodOptions..google.api.http: object expected");
|
|
62627
|
-
message[".google.api.http"] = $root.google.api.HttpRule.fromObject(object[".google.api.http"]);
|
|
62628
|
-
}
|
|
62629
62657
|
return message;
|
|
62630
62658
|
};
|
|
62631
62659
|
|