@google-cloud/dlp 3.2.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 +21 -0
- package/README.md +17 -17
- package/build/protos/google/privacy/dlp/v2/dlp.proto +107 -59
- package/build/protos/google/privacy/dlp/v2/storage.proto +81 -66
- package/build/protos/protos.d.ts +476 -348
- package/build/protos/protos.js +1408 -1000
- package/build/protos/protos.json +232 -146
- package/build/src/v2/dlp_service_client.d.ts +1300 -44
- package/build/src/v2/dlp_service_client.js +84 -1364
- package/build/src/v2/dlp_service_client.js.map +1 -1
- package/build/src/v2/index.js +1 -1
- package/package.json +4 -4
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;
|
|
@@ -4509,6 +4523,7 @@
|
|
|
4509
4523
|
* @property {Object.<string,string>|null} [labels] Finding labels
|
|
4510
4524
|
* @property {google.protobuf.ITimestamp|null} [jobCreateTime] Finding jobCreateTime
|
|
4511
4525
|
* @property {string|null} [jobName] Finding jobName
|
|
4526
|
+
* @property {string|null} [findingId] Finding findingId
|
|
4512
4527
|
*/
|
|
4513
4528
|
|
|
4514
4529
|
/**
|
|
@@ -4623,6 +4638,14 @@
|
|
|
4623
4638
|
*/
|
|
4624
4639
|
Finding.prototype.jobName = "";
|
|
4625
4640
|
|
|
4641
|
+
/**
|
|
4642
|
+
* Finding findingId.
|
|
4643
|
+
* @member {string} findingId
|
|
4644
|
+
* @memberof google.privacy.dlp.v2.Finding
|
|
4645
|
+
* @instance
|
|
4646
|
+
*/
|
|
4647
|
+
Finding.prototype.findingId = "";
|
|
4648
|
+
|
|
4626
4649
|
/**
|
|
4627
4650
|
* Creates a new Finding instance using the specified properties.
|
|
4628
4651
|
* @function create
|
|
@@ -4672,6 +4695,8 @@
|
|
|
4672
4695
|
writer.uint32(/* id 13, wireType 2 =*/106).string(message.jobName);
|
|
4673
4696
|
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
4674
4697
|
writer.uint32(/* id 14, wireType 2 =*/114).string(message.name);
|
|
4698
|
+
if (message.findingId != null && Object.hasOwnProperty.call(message, "findingId"))
|
|
4699
|
+
writer.uint32(/* id 15, wireType 2 =*/122).string(message.findingId);
|
|
4675
4700
|
return writer;
|
|
4676
4701
|
};
|
|
4677
4702
|
|
|
@@ -4761,6 +4786,9 @@
|
|
|
4761
4786
|
case 13:
|
|
4762
4787
|
message.jobName = reader.string();
|
|
4763
4788
|
break;
|
|
4789
|
+
case 15:
|
|
4790
|
+
message.findingId = reader.string();
|
|
4791
|
+
break;
|
|
4764
4792
|
default:
|
|
4765
4793
|
reader.skipType(tag & 7);
|
|
4766
4794
|
break;
|
|
@@ -4856,6 +4884,9 @@
|
|
|
4856
4884
|
if (message.jobName != null && message.hasOwnProperty("jobName"))
|
|
4857
4885
|
if (!$util.isString(message.jobName))
|
|
4858
4886
|
return "jobName: string expected";
|
|
4887
|
+
if (message.findingId != null && message.hasOwnProperty("findingId"))
|
|
4888
|
+
if (!$util.isString(message.findingId))
|
|
4889
|
+
return "findingId: string expected";
|
|
4859
4890
|
return null;
|
|
4860
4891
|
};
|
|
4861
4892
|
|
|
@@ -4939,6 +4970,8 @@
|
|
|
4939
4970
|
}
|
|
4940
4971
|
if (object.jobName != null)
|
|
4941
4972
|
message.jobName = String(object.jobName);
|
|
4973
|
+
if (object.findingId != null)
|
|
4974
|
+
message.findingId = String(object.findingId);
|
|
4942
4975
|
return message;
|
|
4943
4976
|
};
|
|
4944
4977
|
|
|
@@ -4969,6 +5002,7 @@
|
|
|
4969
5002
|
object.jobCreateTime = null;
|
|
4970
5003
|
object.jobName = "";
|
|
4971
5004
|
object.name = "";
|
|
5005
|
+
object.findingId = "";
|
|
4972
5006
|
}
|
|
4973
5007
|
if (message.quote != null && message.hasOwnProperty("quote"))
|
|
4974
5008
|
object.quote = message.quote;
|
|
@@ -4998,6 +5032,8 @@
|
|
|
4998
5032
|
object.jobName = message.jobName;
|
|
4999
5033
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
5000
5034
|
object.name = message.name;
|
|
5035
|
+
if (message.findingId != null && message.hasOwnProperty("findingId"))
|
|
5036
|
+
object.findingId = message.findingId;
|
|
5001
5037
|
return object;
|
|
5002
5038
|
};
|
|
5003
5039
|
|
|
@@ -23391,6 +23427,7 @@
|
|
|
23391
23427
|
* @property {google.privacy.dlp.v2.ICryptoHashConfig|null} [cryptoHashConfig] PrimitiveTransformation cryptoHashConfig
|
|
23392
23428
|
* @property {google.privacy.dlp.v2.IDateShiftConfig|null} [dateShiftConfig] PrimitiveTransformation dateShiftConfig
|
|
23393
23429
|
* @property {google.privacy.dlp.v2.ICryptoDeterministicConfig|null} [cryptoDeterministicConfig] PrimitiveTransformation cryptoDeterministicConfig
|
|
23430
|
+
* @property {google.privacy.dlp.v2.IReplaceDictionaryConfig|null} [replaceDictionaryConfig] PrimitiveTransformation replaceDictionaryConfig
|
|
23394
23431
|
*/
|
|
23395
23432
|
|
|
23396
23433
|
/**
|
|
@@ -23496,17 +23533,25 @@
|
|
|
23496
23533
|
*/
|
|
23497
23534
|
PrimitiveTransformation.prototype.cryptoDeterministicConfig = null;
|
|
23498
23535
|
|
|
23536
|
+
/**
|
|
23537
|
+
* PrimitiveTransformation replaceDictionaryConfig.
|
|
23538
|
+
* @member {google.privacy.dlp.v2.IReplaceDictionaryConfig|null|undefined} replaceDictionaryConfig
|
|
23539
|
+
* @memberof google.privacy.dlp.v2.PrimitiveTransformation
|
|
23540
|
+
* @instance
|
|
23541
|
+
*/
|
|
23542
|
+
PrimitiveTransformation.prototype.replaceDictionaryConfig = null;
|
|
23543
|
+
|
|
23499
23544
|
// OneOf field names bound to virtual getters and setters
|
|
23500
23545
|
var $oneOfFields;
|
|
23501
23546
|
|
|
23502
23547
|
/**
|
|
23503
23548
|
* PrimitiveTransformation transformation.
|
|
23504
|
-
* @member {"replaceConfig"|"redactConfig"|"characterMaskConfig"|"cryptoReplaceFfxFpeConfig"|"fixedSizeBucketingConfig"|"bucketingConfig"|"replaceWithInfoTypeConfig"|"timePartConfig"|"cryptoHashConfig"|"dateShiftConfig"|"cryptoDeterministicConfig"|undefined} transformation
|
|
23549
|
+
* @member {"replaceConfig"|"redactConfig"|"characterMaskConfig"|"cryptoReplaceFfxFpeConfig"|"fixedSizeBucketingConfig"|"bucketingConfig"|"replaceWithInfoTypeConfig"|"timePartConfig"|"cryptoHashConfig"|"dateShiftConfig"|"cryptoDeterministicConfig"|"replaceDictionaryConfig"|undefined} transformation
|
|
23505
23550
|
* @memberof google.privacy.dlp.v2.PrimitiveTransformation
|
|
23506
23551
|
* @instance
|
|
23507
23552
|
*/
|
|
23508
23553
|
Object.defineProperty(PrimitiveTransformation.prototype, "transformation", {
|
|
23509
|
-
get: $util.oneOfGetter($oneOfFields = ["replaceConfig", "redactConfig", "characterMaskConfig", "cryptoReplaceFfxFpeConfig", "fixedSizeBucketingConfig", "bucketingConfig", "replaceWithInfoTypeConfig", "timePartConfig", "cryptoHashConfig", "dateShiftConfig", "cryptoDeterministicConfig"]),
|
|
23554
|
+
get: $util.oneOfGetter($oneOfFields = ["replaceConfig", "redactConfig", "characterMaskConfig", "cryptoReplaceFfxFpeConfig", "fixedSizeBucketingConfig", "bucketingConfig", "replaceWithInfoTypeConfig", "timePartConfig", "cryptoHashConfig", "dateShiftConfig", "cryptoDeterministicConfig", "replaceDictionaryConfig"]),
|
|
23510
23555
|
set: $util.oneOfSetter($oneOfFields)
|
|
23511
23556
|
});
|
|
23512
23557
|
|
|
@@ -23556,6 +23601,8 @@
|
|
|
23556
23601
|
$root.google.privacy.dlp.v2.DateShiftConfig.encode(message.dateShiftConfig, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
|
|
23557
23602
|
if (message.cryptoDeterministicConfig != null && Object.hasOwnProperty.call(message, "cryptoDeterministicConfig"))
|
|
23558
23603
|
$root.google.privacy.dlp.v2.CryptoDeterministicConfig.encode(message.cryptoDeterministicConfig, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
|
23604
|
+
if (message.replaceDictionaryConfig != null && Object.hasOwnProperty.call(message, "replaceDictionaryConfig"))
|
|
23605
|
+
$root.google.privacy.dlp.v2.ReplaceDictionaryConfig.encode(message.replaceDictionaryConfig, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
|
|
23559
23606
|
return writer;
|
|
23560
23607
|
};
|
|
23561
23608
|
|
|
@@ -23623,6 +23670,9 @@
|
|
|
23623
23670
|
case 12:
|
|
23624
23671
|
message.cryptoDeterministicConfig = $root.google.privacy.dlp.v2.CryptoDeterministicConfig.decode(reader, reader.uint32());
|
|
23625
23672
|
break;
|
|
23673
|
+
case 13:
|
|
23674
|
+
message.replaceDictionaryConfig = $root.google.privacy.dlp.v2.ReplaceDictionaryConfig.decode(reader, reader.uint32());
|
|
23675
|
+
break;
|
|
23626
23676
|
default:
|
|
23627
23677
|
reader.skipType(tag & 7);
|
|
23628
23678
|
break;
|
|
@@ -23767,6 +23817,16 @@
|
|
|
23767
23817
|
return "cryptoDeterministicConfig." + error;
|
|
23768
23818
|
}
|
|
23769
23819
|
}
|
|
23820
|
+
if (message.replaceDictionaryConfig != null && message.hasOwnProperty("replaceDictionaryConfig")) {
|
|
23821
|
+
if (properties.transformation === 1)
|
|
23822
|
+
return "transformation: multiple values";
|
|
23823
|
+
properties.transformation = 1;
|
|
23824
|
+
{
|
|
23825
|
+
var error = $root.google.privacy.dlp.v2.ReplaceDictionaryConfig.verify(message.replaceDictionaryConfig);
|
|
23826
|
+
if (error)
|
|
23827
|
+
return "replaceDictionaryConfig." + error;
|
|
23828
|
+
}
|
|
23829
|
+
}
|
|
23770
23830
|
return null;
|
|
23771
23831
|
};
|
|
23772
23832
|
|
|
@@ -23837,6 +23897,11 @@
|
|
|
23837
23897
|
throw TypeError(".google.privacy.dlp.v2.PrimitiveTransformation.cryptoDeterministicConfig: object expected");
|
|
23838
23898
|
message.cryptoDeterministicConfig = $root.google.privacy.dlp.v2.CryptoDeterministicConfig.fromObject(object.cryptoDeterministicConfig);
|
|
23839
23899
|
}
|
|
23900
|
+
if (object.replaceDictionaryConfig != null) {
|
|
23901
|
+
if (typeof object.replaceDictionaryConfig !== "object")
|
|
23902
|
+
throw TypeError(".google.privacy.dlp.v2.PrimitiveTransformation.replaceDictionaryConfig: object expected");
|
|
23903
|
+
message.replaceDictionaryConfig = $root.google.privacy.dlp.v2.ReplaceDictionaryConfig.fromObject(object.replaceDictionaryConfig);
|
|
23904
|
+
}
|
|
23840
23905
|
return message;
|
|
23841
23906
|
};
|
|
23842
23907
|
|
|
@@ -23908,6 +23973,11 @@
|
|
|
23908
23973
|
if (options.oneofs)
|
|
23909
23974
|
object.transformation = "cryptoDeterministicConfig";
|
|
23910
23975
|
}
|
|
23976
|
+
if (message.replaceDictionaryConfig != null && message.hasOwnProperty("replaceDictionaryConfig")) {
|
|
23977
|
+
object.replaceDictionaryConfig = $root.google.privacy.dlp.v2.ReplaceDictionaryConfig.toObject(message.replaceDictionaryConfig, options);
|
|
23978
|
+
if (options.oneofs)
|
|
23979
|
+
object.transformation = "replaceDictionaryConfig";
|
|
23980
|
+
}
|
|
23911
23981
|
return object;
|
|
23912
23982
|
};
|
|
23913
23983
|
|
|
@@ -24805,6 +24875,217 @@
|
|
|
24805
24875
|
return ReplaceValueConfig;
|
|
24806
24876
|
})();
|
|
24807
24877
|
|
|
24878
|
+
v2.ReplaceDictionaryConfig = (function() {
|
|
24879
|
+
|
|
24880
|
+
/**
|
|
24881
|
+
* Properties of a ReplaceDictionaryConfig.
|
|
24882
|
+
* @memberof google.privacy.dlp.v2
|
|
24883
|
+
* @interface IReplaceDictionaryConfig
|
|
24884
|
+
* @property {google.privacy.dlp.v2.CustomInfoType.Dictionary.IWordList|null} [wordList] ReplaceDictionaryConfig wordList
|
|
24885
|
+
*/
|
|
24886
|
+
|
|
24887
|
+
/**
|
|
24888
|
+
* Constructs a new ReplaceDictionaryConfig.
|
|
24889
|
+
* @memberof google.privacy.dlp.v2
|
|
24890
|
+
* @classdesc Represents a ReplaceDictionaryConfig.
|
|
24891
|
+
* @implements IReplaceDictionaryConfig
|
|
24892
|
+
* @constructor
|
|
24893
|
+
* @param {google.privacy.dlp.v2.IReplaceDictionaryConfig=} [properties] Properties to set
|
|
24894
|
+
*/
|
|
24895
|
+
function ReplaceDictionaryConfig(properties) {
|
|
24896
|
+
if (properties)
|
|
24897
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
24898
|
+
if (properties[keys[i]] != null)
|
|
24899
|
+
this[keys[i]] = properties[keys[i]];
|
|
24900
|
+
}
|
|
24901
|
+
|
|
24902
|
+
/**
|
|
24903
|
+
* ReplaceDictionaryConfig wordList.
|
|
24904
|
+
* @member {google.privacy.dlp.v2.CustomInfoType.Dictionary.IWordList|null|undefined} wordList
|
|
24905
|
+
* @memberof google.privacy.dlp.v2.ReplaceDictionaryConfig
|
|
24906
|
+
* @instance
|
|
24907
|
+
*/
|
|
24908
|
+
ReplaceDictionaryConfig.prototype.wordList = null;
|
|
24909
|
+
|
|
24910
|
+
// OneOf field names bound to virtual getters and setters
|
|
24911
|
+
var $oneOfFields;
|
|
24912
|
+
|
|
24913
|
+
/**
|
|
24914
|
+
* ReplaceDictionaryConfig type.
|
|
24915
|
+
* @member {"wordList"|undefined} type
|
|
24916
|
+
* @memberof google.privacy.dlp.v2.ReplaceDictionaryConfig
|
|
24917
|
+
* @instance
|
|
24918
|
+
*/
|
|
24919
|
+
Object.defineProperty(ReplaceDictionaryConfig.prototype, "type", {
|
|
24920
|
+
get: $util.oneOfGetter($oneOfFields = ["wordList"]),
|
|
24921
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
24922
|
+
});
|
|
24923
|
+
|
|
24924
|
+
/**
|
|
24925
|
+
* Creates a new ReplaceDictionaryConfig instance using the specified properties.
|
|
24926
|
+
* @function create
|
|
24927
|
+
* @memberof google.privacy.dlp.v2.ReplaceDictionaryConfig
|
|
24928
|
+
* @static
|
|
24929
|
+
* @param {google.privacy.dlp.v2.IReplaceDictionaryConfig=} [properties] Properties to set
|
|
24930
|
+
* @returns {google.privacy.dlp.v2.ReplaceDictionaryConfig} ReplaceDictionaryConfig instance
|
|
24931
|
+
*/
|
|
24932
|
+
ReplaceDictionaryConfig.create = function create(properties) {
|
|
24933
|
+
return new ReplaceDictionaryConfig(properties);
|
|
24934
|
+
};
|
|
24935
|
+
|
|
24936
|
+
/**
|
|
24937
|
+
* Encodes the specified ReplaceDictionaryConfig message. Does not implicitly {@link google.privacy.dlp.v2.ReplaceDictionaryConfig.verify|verify} messages.
|
|
24938
|
+
* @function encode
|
|
24939
|
+
* @memberof google.privacy.dlp.v2.ReplaceDictionaryConfig
|
|
24940
|
+
* @static
|
|
24941
|
+
* @param {google.privacy.dlp.v2.IReplaceDictionaryConfig} message ReplaceDictionaryConfig message or plain object to encode
|
|
24942
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
24943
|
+
* @returns {$protobuf.Writer} Writer
|
|
24944
|
+
*/
|
|
24945
|
+
ReplaceDictionaryConfig.encode = function encode(message, writer) {
|
|
24946
|
+
if (!writer)
|
|
24947
|
+
writer = $Writer.create();
|
|
24948
|
+
if (message.wordList != null && Object.hasOwnProperty.call(message, "wordList"))
|
|
24949
|
+
$root.google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList.encode(message.wordList, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
24950
|
+
return writer;
|
|
24951
|
+
};
|
|
24952
|
+
|
|
24953
|
+
/**
|
|
24954
|
+
* Encodes the specified ReplaceDictionaryConfig message, length delimited. Does not implicitly {@link google.privacy.dlp.v2.ReplaceDictionaryConfig.verify|verify} messages.
|
|
24955
|
+
* @function encodeDelimited
|
|
24956
|
+
* @memberof google.privacy.dlp.v2.ReplaceDictionaryConfig
|
|
24957
|
+
* @static
|
|
24958
|
+
* @param {google.privacy.dlp.v2.IReplaceDictionaryConfig} message ReplaceDictionaryConfig message or plain object to encode
|
|
24959
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
24960
|
+
* @returns {$protobuf.Writer} Writer
|
|
24961
|
+
*/
|
|
24962
|
+
ReplaceDictionaryConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
24963
|
+
return this.encode(message, writer).ldelim();
|
|
24964
|
+
};
|
|
24965
|
+
|
|
24966
|
+
/**
|
|
24967
|
+
* Decodes a ReplaceDictionaryConfig message from the specified reader or buffer.
|
|
24968
|
+
* @function decode
|
|
24969
|
+
* @memberof google.privacy.dlp.v2.ReplaceDictionaryConfig
|
|
24970
|
+
* @static
|
|
24971
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
24972
|
+
* @param {number} [length] Message length if known beforehand
|
|
24973
|
+
* @returns {google.privacy.dlp.v2.ReplaceDictionaryConfig} ReplaceDictionaryConfig
|
|
24974
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24975
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24976
|
+
*/
|
|
24977
|
+
ReplaceDictionaryConfig.decode = function decode(reader, length) {
|
|
24978
|
+
if (!(reader instanceof $Reader))
|
|
24979
|
+
reader = $Reader.create(reader);
|
|
24980
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.privacy.dlp.v2.ReplaceDictionaryConfig();
|
|
24981
|
+
while (reader.pos < end) {
|
|
24982
|
+
var tag = reader.uint32();
|
|
24983
|
+
switch (tag >>> 3) {
|
|
24984
|
+
case 1:
|
|
24985
|
+
message.wordList = $root.google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList.decode(reader, reader.uint32());
|
|
24986
|
+
break;
|
|
24987
|
+
default:
|
|
24988
|
+
reader.skipType(tag & 7);
|
|
24989
|
+
break;
|
|
24990
|
+
}
|
|
24991
|
+
}
|
|
24992
|
+
return message;
|
|
24993
|
+
};
|
|
24994
|
+
|
|
24995
|
+
/**
|
|
24996
|
+
* Decodes a ReplaceDictionaryConfig message from the specified reader or buffer, length delimited.
|
|
24997
|
+
* @function decodeDelimited
|
|
24998
|
+
* @memberof google.privacy.dlp.v2.ReplaceDictionaryConfig
|
|
24999
|
+
* @static
|
|
25000
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
25001
|
+
* @returns {google.privacy.dlp.v2.ReplaceDictionaryConfig} ReplaceDictionaryConfig
|
|
25002
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
25003
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
25004
|
+
*/
|
|
25005
|
+
ReplaceDictionaryConfig.decodeDelimited = function decodeDelimited(reader) {
|
|
25006
|
+
if (!(reader instanceof $Reader))
|
|
25007
|
+
reader = new $Reader(reader);
|
|
25008
|
+
return this.decode(reader, reader.uint32());
|
|
25009
|
+
};
|
|
25010
|
+
|
|
25011
|
+
/**
|
|
25012
|
+
* Verifies a ReplaceDictionaryConfig message.
|
|
25013
|
+
* @function verify
|
|
25014
|
+
* @memberof google.privacy.dlp.v2.ReplaceDictionaryConfig
|
|
25015
|
+
* @static
|
|
25016
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
25017
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
25018
|
+
*/
|
|
25019
|
+
ReplaceDictionaryConfig.verify = function verify(message) {
|
|
25020
|
+
if (typeof message !== "object" || message === null)
|
|
25021
|
+
return "object expected";
|
|
25022
|
+
var properties = {};
|
|
25023
|
+
if (message.wordList != null && message.hasOwnProperty("wordList")) {
|
|
25024
|
+
properties.type = 1;
|
|
25025
|
+
{
|
|
25026
|
+
var error = $root.google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList.verify(message.wordList);
|
|
25027
|
+
if (error)
|
|
25028
|
+
return "wordList." + error;
|
|
25029
|
+
}
|
|
25030
|
+
}
|
|
25031
|
+
return null;
|
|
25032
|
+
};
|
|
25033
|
+
|
|
25034
|
+
/**
|
|
25035
|
+
* Creates a ReplaceDictionaryConfig message from a plain object. Also converts values to their respective internal types.
|
|
25036
|
+
* @function fromObject
|
|
25037
|
+
* @memberof google.privacy.dlp.v2.ReplaceDictionaryConfig
|
|
25038
|
+
* @static
|
|
25039
|
+
* @param {Object.<string,*>} object Plain object
|
|
25040
|
+
* @returns {google.privacy.dlp.v2.ReplaceDictionaryConfig} ReplaceDictionaryConfig
|
|
25041
|
+
*/
|
|
25042
|
+
ReplaceDictionaryConfig.fromObject = function fromObject(object) {
|
|
25043
|
+
if (object instanceof $root.google.privacy.dlp.v2.ReplaceDictionaryConfig)
|
|
25044
|
+
return object;
|
|
25045
|
+
var message = new $root.google.privacy.dlp.v2.ReplaceDictionaryConfig();
|
|
25046
|
+
if (object.wordList != null) {
|
|
25047
|
+
if (typeof object.wordList !== "object")
|
|
25048
|
+
throw TypeError(".google.privacy.dlp.v2.ReplaceDictionaryConfig.wordList: object expected");
|
|
25049
|
+
message.wordList = $root.google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList.fromObject(object.wordList);
|
|
25050
|
+
}
|
|
25051
|
+
return message;
|
|
25052
|
+
};
|
|
25053
|
+
|
|
25054
|
+
/**
|
|
25055
|
+
* Creates a plain object from a ReplaceDictionaryConfig message. Also converts values to other types if specified.
|
|
25056
|
+
* @function toObject
|
|
25057
|
+
* @memberof google.privacy.dlp.v2.ReplaceDictionaryConfig
|
|
25058
|
+
* @static
|
|
25059
|
+
* @param {google.privacy.dlp.v2.ReplaceDictionaryConfig} message ReplaceDictionaryConfig
|
|
25060
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
25061
|
+
* @returns {Object.<string,*>} Plain object
|
|
25062
|
+
*/
|
|
25063
|
+
ReplaceDictionaryConfig.toObject = function toObject(message, options) {
|
|
25064
|
+
if (!options)
|
|
25065
|
+
options = {};
|
|
25066
|
+
var object = {};
|
|
25067
|
+
if (message.wordList != null && message.hasOwnProperty("wordList")) {
|
|
25068
|
+
object.wordList = $root.google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList.toObject(message.wordList, options);
|
|
25069
|
+
if (options.oneofs)
|
|
25070
|
+
object.type = "wordList";
|
|
25071
|
+
}
|
|
25072
|
+
return object;
|
|
25073
|
+
};
|
|
25074
|
+
|
|
25075
|
+
/**
|
|
25076
|
+
* Converts this ReplaceDictionaryConfig to JSON.
|
|
25077
|
+
* @function toJSON
|
|
25078
|
+
* @memberof google.privacy.dlp.v2.ReplaceDictionaryConfig
|
|
25079
|
+
* @instance
|
|
25080
|
+
* @returns {Object.<string,*>} JSON object
|
|
25081
|
+
*/
|
|
25082
|
+
ReplaceDictionaryConfig.prototype.toJSON = function toJSON() {
|
|
25083
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
25084
|
+
};
|
|
25085
|
+
|
|
25086
|
+
return ReplaceDictionaryConfig;
|
|
25087
|
+
})();
|
|
25088
|
+
|
|
24808
25089
|
v2.ReplaceWithInfoTypeConfig = (function() {
|
|
24809
25090
|
|
|
24810
25091
|
/**
|
|
@@ -30734,6 +31015,22 @@
|
|
|
30734
31015
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
30735
31016
|
};
|
|
30736
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
|
+
|
|
30737
31034
|
TransformationSummary.SummaryResult = (function() {
|
|
30738
31035
|
|
|
30739
31036
|
/**
|
|
@@ -30998,22 +31295,6 @@
|
|
|
30998
31295
|
return SummaryResult;
|
|
30999
31296
|
})();
|
|
31000
31297
|
|
|
31001
|
-
/**
|
|
31002
|
-
* TransformationResultCode enum.
|
|
31003
|
-
* @name google.privacy.dlp.v2.TransformationSummary.TransformationResultCode
|
|
31004
|
-
* @enum {number}
|
|
31005
|
-
* @property {number} TRANSFORMATION_RESULT_CODE_UNSPECIFIED=0 TRANSFORMATION_RESULT_CODE_UNSPECIFIED value
|
|
31006
|
-
* @property {number} SUCCESS=1 SUCCESS value
|
|
31007
|
-
* @property {number} ERROR=2 ERROR value
|
|
31008
|
-
*/
|
|
31009
|
-
TransformationSummary.TransformationResultCode = (function() {
|
|
31010
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
31011
|
-
values[valuesById[0] = "TRANSFORMATION_RESULT_CODE_UNSPECIFIED"] = 0;
|
|
31012
|
-
values[valuesById[1] = "SUCCESS"] = 1;
|
|
31013
|
-
values[valuesById[2] = "ERROR"] = 2;
|
|
31014
|
-
return values;
|
|
31015
|
-
})();
|
|
31016
|
-
|
|
31017
31298
|
return TransformationSummary;
|
|
31018
31299
|
})();
|
|
31019
31300
|
|
|
@@ -36987,6 +37268,7 @@
|
|
|
36987
37268
|
* @property {number|null} [pageSize] ListJobTriggersRequest pageSize
|
|
36988
37269
|
* @property {string|null} [orderBy] ListJobTriggersRequest orderBy
|
|
36989
37270
|
* @property {string|null} [filter] ListJobTriggersRequest filter
|
|
37271
|
+
* @property {google.privacy.dlp.v2.DlpJobType|null} [type] ListJobTriggersRequest type
|
|
36990
37272
|
* @property {string|null} [locationId] ListJobTriggersRequest locationId
|
|
36991
37273
|
*/
|
|
36992
37274
|
|
|
@@ -37045,6 +37327,14 @@
|
|
|
37045
37327
|
*/
|
|
37046
37328
|
ListJobTriggersRequest.prototype.filter = "";
|
|
37047
37329
|
|
|
37330
|
+
/**
|
|
37331
|
+
* ListJobTriggersRequest type.
|
|
37332
|
+
* @member {google.privacy.dlp.v2.DlpJobType} type
|
|
37333
|
+
* @memberof google.privacy.dlp.v2.ListJobTriggersRequest
|
|
37334
|
+
* @instance
|
|
37335
|
+
*/
|
|
37336
|
+
ListJobTriggersRequest.prototype.type = 0;
|
|
37337
|
+
|
|
37048
37338
|
/**
|
|
37049
37339
|
* ListJobTriggersRequest locationId.
|
|
37050
37340
|
* @member {string} locationId
|
|
@@ -37087,6 +37377,8 @@
|
|
|
37087
37377
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.orderBy);
|
|
37088
37378
|
if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
|
|
37089
37379
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.filter);
|
|
37380
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
37381
|
+
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.type);
|
|
37090
37382
|
if (message.locationId != null && Object.hasOwnProperty.call(message, "locationId"))
|
|
37091
37383
|
writer.uint32(/* id 7, wireType 2 =*/58).string(message.locationId);
|
|
37092
37384
|
return writer;
|
|
@@ -37138,6 +37430,9 @@
|
|
|
37138
37430
|
case 5:
|
|
37139
37431
|
message.filter = reader.string();
|
|
37140
37432
|
break;
|
|
37433
|
+
case 6:
|
|
37434
|
+
message.type = reader.int32();
|
|
37435
|
+
break;
|
|
37141
37436
|
case 7:
|
|
37142
37437
|
message.locationId = reader.string();
|
|
37143
37438
|
break;
|
|
@@ -37191,6 +37486,15 @@
|
|
|
37191
37486
|
if (message.filter != null && message.hasOwnProperty("filter"))
|
|
37192
37487
|
if (!$util.isString(message.filter))
|
|
37193
37488
|
return "filter: string expected";
|
|
37489
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
37490
|
+
switch (message.type) {
|
|
37491
|
+
default:
|
|
37492
|
+
return "type: enum value expected";
|
|
37493
|
+
case 0:
|
|
37494
|
+
case 1:
|
|
37495
|
+
case 2:
|
|
37496
|
+
break;
|
|
37497
|
+
}
|
|
37194
37498
|
if (message.locationId != null && message.hasOwnProperty("locationId"))
|
|
37195
37499
|
if (!$util.isString(message.locationId))
|
|
37196
37500
|
return "locationId: string expected";
|
|
@@ -37219,6 +37523,20 @@
|
|
|
37219
37523
|
message.orderBy = String(object.orderBy);
|
|
37220
37524
|
if (object.filter != null)
|
|
37221
37525
|
message.filter = String(object.filter);
|
|
37526
|
+
switch (object.type) {
|
|
37527
|
+
case "DLP_JOB_TYPE_UNSPECIFIED":
|
|
37528
|
+
case 0:
|
|
37529
|
+
message.type = 0;
|
|
37530
|
+
break;
|
|
37531
|
+
case "INSPECT_JOB":
|
|
37532
|
+
case 1:
|
|
37533
|
+
message.type = 1;
|
|
37534
|
+
break;
|
|
37535
|
+
case "RISK_ANALYSIS_JOB":
|
|
37536
|
+
case 2:
|
|
37537
|
+
message.type = 2;
|
|
37538
|
+
break;
|
|
37539
|
+
}
|
|
37222
37540
|
if (object.locationId != null)
|
|
37223
37541
|
message.locationId = String(object.locationId);
|
|
37224
37542
|
return message;
|
|
@@ -37243,6 +37561,7 @@
|
|
|
37243
37561
|
object.pageSize = 0;
|
|
37244
37562
|
object.orderBy = "";
|
|
37245
37563
|
object.filter = "";
|
|
37564
|
+
object.type = options.enums === String ? "DLP_JOB_TYPE_UNSPECIFIED" : 0;
|
|
37246
37565
|
object.locationId = "";
|
|
37247
37566
|
}
|
|
37248
37567
|
if (message.parent != null && message.hasOwnProperty("parent"))
|
|
@@ -37255,6 +37574,8 @@
|
|
|
37255
37574
|
object.orderBy = message.orderBy;
|
|
37256
37575
|
if (message.filter != null && message.hasOwnProperty("filter"))
|
|
37257
37576
|
object.filter = message.filter;
|
|
37577
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
37578
|
+
object.type = options.enums === String ? $root.google.privacy.dlp.v2.DlpJobType[message.type] : message.type;
|
|
37258
37579
|
if (message.locationId != null && message.hasOwnProperty("locationId"))
|
|
37259
37580
|
object.locationId = message.locationId;
|
|
37260
37581
|
return object;
|
|
@@ -45502,6 +45823,7 @@
|
|
|
45502
45823
|
* @memberof google.privacy.dlp.v2
|
|
45503
45824
|
* @interface IInfoType
|
|
45504
45825
|
* @property {string|null} [name] InfoType name
|
|
45826
|
+
* @property {string|null} [version] InfoType version
|
|
45505
45827
|
*/
|
|
45506
45828
|
|
|
45507
45829
|
/**
|
|
@@ -45527,6 +45849,14 @@
|
|
|
45527
45849
|
*/
|
|
45528
45850
|
InfoType.prototype.name = "";
|
|
45529
45851
|
|
|
45852
|
+
/**
|
|
45853
|
+
* InfoType version.
|
|
45854
|
+
* @member {string} version
|
|
45855
|
+
* @memberof google.privacy.dlp.v2.InfoType
|
|
45856
|
+
* @instance
|
|
45857
|
+
*/
|
|
45858
|
+
InfoType.prototype.version = "";
|
|
45859
|
+
|
|
45530
45860
|
/**
|
|
45531
45861
|
* Creates a new InfoType instance using the specified properties.
|
|
45532
45862
|
* @function create
|
|
@@ -45553,6 +45883,8 @@
|
|
|
45553
45883
|
writer = $Writer.create();
|
|
45554
45884
|
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
45555
45885
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
45886
|
+
if (message.version != null && Object.hasOwnProperty.call(message, "version"))
|
|
45887
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.version);
|
|
45556
45888
|
return writer;
|
|
45557
45889
|
};
|
|
45558
45890
|
|
|
@@ -45590,6 +45922,9 @@
|
|
|
45590
45922
|
case 1:
|
|
45591
45923
|
message.name = reader.string();
|
|
45592
45924
|
break;
|
|
45925
|
+
case 2:
|
|
45926
|
+
message.version = reader.string();
|
|
45927
|
+
break;
|
|
45593
45928
|
default:
|
|
45594
45929
|
reader.skipType(tag & 7);
|
|
45595
45930
|
break;
|
|
@@ -45628,6 +45963,9 @@
|
|
|
45628
45963
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
45629
45964
|
if (!$util.isString(message.name))
|
|
45630
45965
|
return "name: string expected";
|
|
45966
|
+
if (message.version != null && message.hasOwnProperty("version"))
|
|
45967
|
+
if (!$util.isString(message.version))
|
|
45968
|
+
return "version: string expected";
|
|
45631
45969
|
return null;
|
|
45632
45970
|
};
|
|
45633
45971
|
|
|
@@ -45645,6 +45983,8 @@
|
|
|
45645
45983
|
var message = new $root.google.privacy.dlp.v2.InfoType();
|
|
45646
45984
|
if (object.name != null)
|
|
45647
45985
|
message.name = String(object.name);
|
|
45986
|
+
if (object.version != null)
|
|
45987
|
+
message.version = String(object.version);
|
|
45648
45988
|
return message;
|
|
45649
45989
|
};
|
|
45650
45990
|
|
|
@@ -45661,10 +46001,14 @@
|
|
|
45661
46001
|
if (!options)
|
|
45662
46002
|
options = {};
|
|
45663
46003
|
var object = {};
|
|
45664
|
-
if (options.defaults)
|
|
46004
|
+
if (options.defaults) {
|
|
45665
46005
|
object.name = "";
|
|
46006
|
+
object.version = "";
|
|
46007
|
+
}
|
|
45666
46008
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
45667
46009
|
object.name = message.name;
|
|
46010
|
+
if (message.version != null && message.hasOwnProperty("version"))
|
|
46011
|
+
object.version = message.version;
|
|
45668
46012
|
return object;
|
|
45669
46013
|
};
|
|
45670
46014
|
|
|
@@ -45682,6 +46026,28 @@
|
|
|
45682
46026
|
return InfoType;
|
|
45683
46027
|
})();
|
|
45684
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
|
+
|
|
45685
46051
|
v2.StoredType = (function() {
|
|
45686
46052
|
|
|
45687
46053
|
/**
|
|
@@ -45897,28 +46263,6 @@
|
|
|
45897
46263
|
return StoredType;
|
|
45898
46264
|
})();
|
|
45899
46265
|
|
|
45900
|
-
/**
|
|
45901
|
-
* Likelihood enum.
|
|
45902
|
-
* @name google.privacy.dlp.v2.Likelihood
|
|
45903
|
-
* @enum {number}
|
|
45904
|
-
* @property {number} LIKELIHOOD_UNSPECIFIED=0 LIKELIHOOD_UNSPECIFIED value
|
|
45905
|
-
* @property {number} VERY_UNLIKELY=1 VERY_UNLIKELY value
|
|
45906
|
-
* @property {number} UNLIKELY=2 UNLIKELY value
|
|
45907
|
-
* @property {number} POSSIBLE=3 POSSIBLE value
|
|
45908
|
-
* @property {number} LIKELY=4 LIKELY value
|
|
45909
|
-
* @property {number} VERY_LIKELY=5 VERY_LIKELY value
|
|
45910
|
-
*/
|
|
45911
|
-
v2.Likelihood = (function() {
|
|
45912
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
45913
|
-
values[valuesById[0] = "LIKELIHOOD_UNSPECIFIED"] = 0;
|
|
45914
|
-
values[valuesById[1] = "VERY_UNLIKELY"] = 1;
|
|
45915
|
-
values[valuesById[2] = "UNLIKELY"] = 2;
|
|
45916
|
-
values[valuesById[3] = "POSSIBLE"] = 3;
|
|
45917
|
-
values[valuesById[4] = "LIKELY"] = 4;
|
|
45918
|
-
values[valuesById[5] = "VERY_LIKELY"] = 5;
|
|
45919
|
-
return values;
|
|
45920
|
-
})();
|
|
45921
|
-
|
|
45922
46266
|
v2.CustomInfoType = (function() {
|
|
45923
46267
|
|
|
45924
46268
|
/**
|
|
@@ -48989,6 +49333,38 @@
|
|
|
48989
49333
|
return DatastoreOptions;
|
|
48990
49334
|
})();
|
|
48991
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
|
+
|
|
48992
49368
|
v2.CloudStorageRegexFileSet = (function() {
|
|
48993
49369
|
|
|
48994
49370
|
/**
|
|
@@ -49493,6 +49869,8 @@
|
|
|
49493
49869
|
case 7:
|
|
49494
49870
|
case 8:
|
|
49495
49871
|
case 9:
|
|
49872
|
+
case 11:
|
|
49873
|
+
case 12:
|
|
49496
49874
|
break;
|
|
49497
49875
|
}
|
|
49498
49876
|
}
|
|
@@ -49582,6 +49960,14 @@
|
|
|
49582
49960
|
case 9:
|
|
49583
49961
|
message.fileTypes[i] = 9;
|
|
49584
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;
|
|
49585
49971
|
}
|
|
49586
49972
|
}
|
|
49587
49973
|
switch (object.sampleMethod) {
|
|
@@ -50281,6 +50667,7 @@
|
|
|
50281
50667
|
* @property {number|null} [rowsLimitPercent] BigQueryOptions rowsLimitPercent
|
|
50282
50668
|
* @property {google.privacy.dlp.v2.BigQueryOptions.SampleMethod|null} [sampleMethod] BigQueryOptions sampleMethod
|
|
50283
50669
|
* @property {Array.<google.privacy.dlp.v2.IFieldId>|null} [excludedFields] BigQueryOptions excludedFields
|
|
50670
|
+
* @property {Array.<google.privacy.dlp.v2.IFieldId>|null} [includedFields] BigQueryOptions includedFields
|
|
50284
50671
|
*/
|
|
50285
50672
|
|
|
50286
50673
|
/**
|
|
@@ -50294,6 +50681,7 @@
|
|
|
50294
50681
|
function BigQueryOptions(properties) {
|
|
50295
50682
|
this.identifyingFields = [];
|
|
50296
50683
|
this.excludedFields = [];
|
|
50684
|
+
this.includedFields = [];
|
|
50297
50685
|
if (properties)
|
|
50298
50686
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
50299
50687
|
if (properties[keys[i]] != null)
|
|
@@ -50348,6 +50736,14 @@
|
|
|
50348
50736
|
*/
|
|
50349
50737
|
BigQueryOptions.prototype.excludedFields = $util.emptyArray;
|
|
50350
50738
|
|
|
50739
|
+
/**
|
|
50740
|
+
* BigQueryOptions includedFields.
|
|
50741
|
+
* @member {Array.<google.privacy.dlp.v2.IFieldId>} includedFields
|
|
50742
|
+
* @memberof google.privacy.dlp.v2.BigQueryOptions
|
|
50743
|
+
* @instance
|
|
50744
|
+
*/
|
|
50745
|
+
BigQueryOptions.prototype.includedFields = $util.emptyArray;
|
|
50746
|
+
|
|
50351
50747
|
/**
|
|
50352
50748
|
* Creates a new BigQueryOptions instance using the specified properties.
|
|
50353
50749
|
* @function create
|
|
@@ -50386,6 +50782,9 @@
|
|
|
50386
50782
|
$root.google.privacy.dlp.v2.FieldId.encode(message.excludedFields[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
50387
50783
|
if (message.rowsLimitPercent != null && Object.hasOwnProperty.call(message, "rowsLimitPercent"))
|
|
50388
50784
|
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.rowsLimitPercent);
|
|
50785
|
+
if (message.includedFields != null && message.includedFields.length)
|
|
50786
|
+
for (var i = 0; i < message.includedFields.length; ++i)
|
|
50787
|
+
$root.google.privacy.dlp.v2.FieldId.encode(message.includedFields[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
50389
50788
|
return writer;
|
|
50390
50789
|
};
|
|
50391
50790
|
|
|
@@ -50442,6 +50841,11 @@
|
|
|
50442
50841
|
message.excludedFields = [];
|
|
50443
50842
|
message.excludedFields.push($root.google.privacy.dlp.v2.FieldId.decode(reader, reader.uint32()));
|
|
50444
50843
|
break;
|
|
50844
|
+
case 7:
|
|
50845
|
+
if (!(message.includedFields && message.includedFields.length))
|
|
50846
|
+
message.includedFields = [];
|
|
50847
|
+
message.includedFields.push($root.google.privacy.dlp.v2.FieldId.decode(reader, reader.uint32()));
|
|
50848
|
+
break;
|
|
50445
50849
|
default:
|
|
50446
50850
|
reader.skipType(tag & 7);
|
|
50447
50851
|
break;
|
|
@@ -50515,6 +50919,15 @@
|
|
|
50515
50919
|
return "excludedFields." + error;
|
|
50516
50920
|
}
|
|
50517
50921
|
}
|
|
50922
|
+
if (message.includedFields != null && message.hasOwnProperty("includedFields")) {
|
|
50923
|
+
if (!Array.isArray(message.includedFields))
|
|
50924
|
+
return "includedFields: array expected";
|
|
50925
|
+
for (var i = 0; i < message.includedFields.length; ++i) {
|
|
50926
|
+
var error = $root.google.privacy.dlp.v2.FieldId.verify(message.includedFields[i]);
|
|
50927
|
+
if (error)
|
|
50928
|
+
return "includedFields." + error;
|
|
50929
|
+
}
|
|
50930
|
+
}
|
|
50518
50931
|
return null;
|
|
50519
50932
|
};
|
|
50520
50933
|
|
|
@@ -50580,6 +50993,16 @@
|
|
|
50580
50993
|
message.excludedFields[i] = $root.google.privacy.dlp.v2.FieldId.fromObject(object.excludedFields[i]);
|
|
50581
50994
|
}
|
|
50582
50995
|
}
|
|
50996
|
+
if (object.includedFields) {
|
|
50997
|
+
if (!Array.isArray(object.includedFields))
|
|
50998
|
+
throw TypeError(".google.privacy.dlp.v2.BigQueryOptions.includedFields: array expected");
|
|
50999
|
+
message.includedFields = [];
|
|
51000
|
+
for (var i = 0; i < object.includedFields.length; ++i) {
|
|
51001
|
+
if (typeof object.includedFields[i] !== "object")
|
|
51002
|
+
throw TypeError(".google.privacy.dlp.v2.BigQueryOptions.includedFields: object expected");
|
|
51003
|
+
message.includedFields[i] = $root.google.privacy.dlp.v2.FieldId.fromObject(object.includedFields[i]);
|
|
51004
|
+
}
|
|
51005
|
+
}
|
|
50583
51006
|
return message;
|
|
50584
51007
|
};
|
|
50585
51008
|
|
|
@@ -50599,6 +51022,7 @@
|
|
|
50599
51022
|
if (options.arrays || options.defaults) {
|
|
50600
51023
|
object.identifyingFields = [];
|
|
50601
51024
|
object.excludedFields = [];
|
|
51025
|
+
object.includedFields = [];
|
|
50602
51026
|
}
|
|
50603
51027
|
if (options.defaults) {
|
|
50604
51028
|
object.tableReference = null;
|
|
@@ -50631,6 +51055,11 @@
|
|
|
50631
51055
|
}
|
|
50632
51056
|
if (message.rowsLimitPercent != null && message.hasOwnProperty("rowsLimitPercent"))
|
|
50633
51057
|
object.rowsLimitPercent = message.rowsLimitPercent;
|
|
51058
|
+
if (message.includedFields && message.includedFields.length) {
|
|
51059
|
+
object.includedFields = [];
|
|
51060
|
+
for (var j = 0; j < message.includedFields.length; ++j)
|
|
51061
|
+
object.includedFields[j] = $root.google.privacy.dlp.v2.FieldId.toObject(message.includedFields[j], options);
|
|
51062
|
+
}
|
|
50634
51063
|
return object;
|
|
50635
51064
|
};
|
|
50636
51065
|
|
|
@@ -51274,34 +51703,6 @@
|
|
|
51274
51703
|
return StorageConfig;
|
|
51275
51704
|
})();
|
|
51276
51705
|
|
|
51277
|
-
/**
|
|
51278
|
-
* FileType enum.
|
|
51279
|
-
* @name google.privacy.dlp.v2.FileType
|
|
51280
|
-
* @enum {number}
|
|
51281
|
-
* @property {number} FILE_TYPE_UNSPECIFIED=0 FILE_TYPE_UNSPECIFIED value
|
|
51282
|
-
* @property {number} BINARY_FILE=1 BINARY_FILE value
|
|
51283
|
-
* @property {number} TEXT_FILE=2 TEXT_FILE value
|
|
51284
|
-
* @property {number} IMAGE=3 IMAGE value
|
|
51285
|
-
* @property {number} WORD=5 WORD value
|
|
51286
|
-
* @property {number} PDF=6 PDF value
|
|
51287
|
-
* @property {number} AVRO=7 AVRO value
|
|
51288
|
-
* @property {number} CSV=8 CSV value
|
|
51289
|
-
* @property {number} TSV=9 TSV value
|
|
51290
|
-
*/
|
|
51291
|
-
v2.FileType = (function() {
|
|
51292
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
51293
|
-
values[valuesById[0] = "FILE_TYPE_UNSPECIFIED"] = 0;
|
|
51294
|
-
values[valuesById[1] = "BINARY_FILE"] = 1;
|
|
51295
|
-
values[valuesById[2] = "TEXT_FILE"] = 2;
|
|
51296
|
-
values[valuesById[3] = "IMAGE"] = 3;
|
|
51297
|
-
values[valuesById[5] = "WORD"] = 5;
|
|
51298
|
-
values[valuesById[6] = "PDF"] = 6;
|
|
51299
|
-
values[valuesById[7] = "AVRO"] = 7;
|
|
51300
|
-
values[valuesById[8] = "CSV"] = 8;
|
|
51301
|
-
values[valuesById[9] = "TSV"] = 9;
|
|
51302
|
-
return values;
|
|
51303
|
-
})();
|
|
51304
|
-
|
|
51305
51706
|
v2.HybridOptions = (function() {
|
|
51306
51707
|
|
|
51307
51708
|
/**
|
|
@@ -53691,56 +54092,26 @@
|
|
|
53691
54092
|
*/
|
|
53692
54093
|
var api = {};
|
|
53693
54094
|
|
|
53694
|
-
|
|
53695
|
-
* FieldBehavior enum.
|
|
53696
|
-
* @name google.api.FieldBehavior
|
|
53697
|
-
* @enum {number}
|
|
53698
|
-
* @property {number} FIELD_BEHAVIOR_UNSPECIFIED=0 FIELD_BEHAVIOR_UNSPECIFIED value
|
|
53699
|
-
* @property {number} OPTIONAL=1 OPTIONAL value
|
|
53700
|
-
* @property {number} REQUIRED=2 REQUIRED value
|
|
53701
|
-
* @property {number} OUTPUT_ONLY=3 OUTPUT_ONLY value
|
|
53702
|
-
* @property {number} INPUT_ONLY=4 INPUT_ONLY value
|
|
53703
|
-
* @property {number} IMMUTABLE=5 IMMUTABLE value
|
|
53704
|
-
* @property {number} UNORDERED_LIST=6 UNORDERED_LIST value
|
|
53705
|
-
*/
|
|
53706
|
-
api.FieldBehavior = (function() {
|
|
53707
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
53708
|
-
values[valuesById[0] = "FIELD_BEHAVIOR_UNSPECIFIED"] = 0;
|
|
53709
|
-
values[valuesById[1] = "OPTIONAL"] = 1;
|
|
53710
|
-
values[valuesById[2] = "REQUIRED"] = 2;
|
|
53711
|
-
values[valuesById[3] = "OUTPUT_ONLY"] = 3;
|
|
53712
|
-
values[valuesById[4] = "INPUT_ONLY"] = 4;
|
|
53713
|
-
values[valuesById[5] = "IMMUTABLE"] = 5;
|
|
53714
|
-
values[valuesById[6] = "UNORDERED_LIST"] = 6;
|
|
53715
|
-
return values;
|
|
53716
|
-
})();
|
|
53717
|
-
|
|
53718
|
-
api.ResourceDescriptor = (function() {
|
|
54095
|
+
api.Http = (function() {
|
|
53719
54096
|
|
|
53720
54097
|
/**
|
|
53721
|
-
* Properties of a
|
|
54098
|
+
* Properties of a Http.
|
|
53722
54099
|
* @memberof google.api
|
|
53723
|
-
* @interface
|
|
53724
|
-
* @property {
|
|
53725
|
-
* @property {
|
|
53726
|
-
* @property {string|null} [nameField] ResourceDescriptor nameField
|
|
53727
|
-
* @property {google.api.ResourceDescriptor.History|null} [history] ResourceDescriptor history
|
|
53728
|
-
* @property {string|null} [plural] ResourceDescriptor plural
|
|
53729
|
-
* @property {string|null} [singular] ResourceDescriptor singular
|
|
53730
|
-
* @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
|
|
53731
54103
|
*/
|
|
53732
54104
|
|
|
53733
54105
|
/**
|
|
53734
|
-
* Constructs a new
|
|
54106
|
+
* Constructs a new Http.
|
|
53735
54107
|
* @memberof google.api
|
|
53736
|
-
* @classdesc Represents a
|
|
53737
|
-
* @implements
|
|
54108
|
+
* @classdesc Represents a Http.
|
|
54109
|
+
* @implements IHttp
|
|
53738
54110
|
* @constructor
|
|
53739
|
-
* @param {google.api.
|
|
54111
|
+
* @param {google.api.IHttp=} [properties] Properties to set
|
|
53740
54112
|
*/
|
|
53741
|
-
function
|
|
53742
|
-
this.
|
|
53743
|
-
this.style = [];
|
|
54113
|
+
function Http(properties) {
|
|
54114
|
+
this.rules = [];
|
|
53744
54115
|
if (properties)
|
|
53745
54116
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
53746
54117
|
if (properties[keys[i]] != null)
|
|
@@ -53748,167 +54119,91 @@
|
|
|
53748
54119
|
}
|
|
53749
54120
|
|
|
53750
54121
|
/**
|
|
53751
|
-
*
|
|
53752
|
-
* @member {
|
|
53753
|
-
* @memberof google.api.
|
|
53754
|
-
* @instance
|
|
53755
|
-
*/
|
|
53756
|
-
ResourceDescriptor.prototype.type = "";
|
|
53757
|
-
|
|
53758
|
-
/**
|
|
53759
|
-
* ResourceDescriptor pattern.
|
|
53760
|
-
* @member {Array.<string>} pattern
|
|
53761
|
-
* @memberof google.api.ResourceDescriptor
|
|
53762
|
-
* @instance
|
|
53763
|
-
*/
|
|
53764
|
-
ResourceDescriptor.prototype.pattern = $util.emptyArray;
|
|
53765
|
-
|
|
53766
|
-
/**
|
|
53767
|
-
* ResourceDescriptor nameField.
|
|
53768
|
-
* @member {string} nameField
|
|
53769
|
-
* @memberof google.api.ResourceDescriptor
|
|
53770
|
-
* @instance
|
|
53771
|
-
*/
|
|
53772
|
-
ResourceDescriptor.prototype.nameField = "";
|
|
53773
|
-
|
|
53774
|
-
/**
|
|
53775
|
-
* ResourceDescriptor history.
|
|
53776
|
-
* @member {google.api.ResourceDescriptor.History} history
|
|
53777
|
-
* @memberof google.api.ResourceDescriptor
|
|
53778
|
-
* @instance
|
|
53779
|
-
*/
|
|
53780
|
-
ResourceDescriptor.prototype.history = 0;
|
|
53781
|
-
|
|
53782
|
-
/**
|
|
53783
|
-
* ResourceDescriptor plural.
|
|
53784
|
-
* @member {string} plural
|
|
53785
|
-
* @memberof google.api.ResourceDescriptor
|
|
53786
|
-
* @instance
|
|
53787
|
-
*/
|
|
53788
|
-
ResourceDescriptor.prototype.plural = "";
|
|
53789
|
-
|
|
53790
|
-
/**
|
|
53791
|
-
* ResourceDescriptor singular.
|
|
53792
|
-
* @member {string} singular
|
|
53793
|
-
* @memberof google.api.ResourceDescriptor
|
|
54122
|
+
* Http rules.
|
|
54123
|
+
* @member {Array.<google.api.IHttpRule>} rules
|
|
54124
|
+
* @memberof google.api.Http
|
|
53794
54125
|
* @instance
|
|
53795
54126
|
*/
|
|
53796
|
-
|
|
54127
|
+
Http.prototype.rules = $util.emptyArray;
|
|
53797
54128
|
|
|
53798
54129
|
/**
|
|
53799
|
-
*
|
|
53800
|
-
* @member {
|
|
53801
|
-
* @memberof google.api.
|
|
54130
|
+
* Http fullyDecodeReservedExpansion.
|
|
54131
|
+
* @member {boolean} fullyDecodeReservedExpansion
|
|
54132
|
+
* @memberof google.api.Http
|
|
53802
54133
|
* @instance
|
|
53803
54134
|
*/
|
|
53804
|
-
|
|
54135
|
+
Http.prototype.fullyDecodeReservedExpansion = false;
|
|
53805
54136
|
|
|
53806
54137
|
/**
|
|
53807
|
-
* Creates a new
|
|
54138
|
+
* Creates a new Http instance using the specified properties.
|
|
53808
54139
|
* @function create
|
|
53809
|
-
* @memberof google.api.
|
|
54140
|
+
* @memberof google.api.Http
|
|
53810
54141
|
* @static
|
|
53811
|
-
* @param {google.api.
|
|
53812
|
-
* @returns {google.api.
|
|
54142
|
+
* @param {google.api.IHttp=} [properties] Properties to set
|
|
54143
|
+
* @returns {google.api.Http} Http instance
|
|
53813
54144
|
*/
|
|
53814
|
-
|
|
53815
|
-
return new
|
|
54145
|
+
Http.create = function create(properties) {
|
|
54146
|
+
return new Http(properties);
|
|
53816
54147
|
};
|
|
53817
54148
|
|
|
53818
54149
|
/**
|
|
53819
|
-
* Encodes the specified
|
|
54150
|
+
* Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
|
|
53820
54151
|
* @function encode
|
|
53821
|
-
* @memberof google.api.
|
|
54152
|
+
* @memberof google.api.Http
|
|
53822
54153
|
* @static
|
|
53823
|
-
* @param {google.api.
|
|
54154
|
+
* @param {google.api.IHttp} message Http message or plain object to encode
|
|
53824
54155
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
53825
54156
|
* @returns {$protobuf.Writer} Writer
|
|
53826
54157
|
*/
|
|
53827
|
-
|
|
54158
|
+
Http.encode = function encode(message, writer) {
|
|
53828
54159
|
if (!writer)
|
|
53829
54160
|
writer = $Writer.create();
|
|
53830
|
-
if (message.
|
|
53831
|
-
|
|
53832
|
-
|
|
53833
|
-
|
|
53834
|
-
|
|
53835
|
-
if (message.nameField != null && Object.hasOwnProperty.call(message, "nameField"))
|
|
53836
|
-
writer.uint32(/* id 3, wireType 2 =*/26).string(message.nameField);
|
|
53837
|
-
if (message.history != null && Object.hasOwnProperty.call(message, "history"))
|
|
53838
|
-
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.history);
|
|
53839
|
-
if (message.plural != null && Object.hasOwnProperty.call(message, "plural"))
|
|
53840
|
-
writer.uint32(/* id 5, wireType 2 =*/42).string(message.plural);
|
|
53841
|
-
if (message.singular != null && Object.hasOwnProperty.call(message, "singular"))
|
|
53842
|
-
writer.uint32(/* id 6, wireType 2 =*/50).string(message.singular);
|
|
53843
|
-
if (message.style != null && message.style.length) {
|
|
53844
|
-
writer.uint32(/* id 10, wireType 2 =*/82).fork();
|
|
53845
|
-
for (var i = 0; i < message.style.length; ++i)
|
|
53846
|
-
writer.int32(message.style[i]);
|
|
53847
|
-
writer.ldelim();
|
|
53848
|
-
}
|
|
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);
|
|
53849
54166
|
return writer;
|
|
53850
54167
|
};
|
|
53851
54168
|
|
|
53852
54169
|
/**
|
|
53853
|
-
* Encodes the specified
|
|
54170
|
+
* Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
|
|
53854
54171
|
* @function encodeDelimited
|
|
53855
|
-
* @memberof google.api.
|
|
54172
|
+
* @memberof google.api.Http
|
|
53856
54173
|
* @static
|
|
53857
|
-
* @param {google.api.
|
|
54174
|
+
* @param {google.api.IHttp} message Http message or plain object to encode
|
|
53858
54175
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
53859
54176
|
* @returns {$protobuf.Writer} Writer
|
|
53860
54177
|
*/
|
|
53861
|
-
|
|
54178
|
+
Http.encodeDelimited = function encodeDelimited(message, writer) {
|
|
53862
54179
|
return this.encode(message, writer).ldelim();
|
|
53863
54180
|
};
|
|
53864
54181
|
|
|
53865
54182
|
/**
|
|
53866
|
-
* Decodes a
|
|
54183
|
+
* Decodes a Http message from the specified reader or buffer.
|
|
53867
54184
|
* @function decode
|
|
53868
|
-
* @memberof google.api.
|
|
54185
|
+
* @memberof google.api.Http
|
|
53869
54186
|
* @static
|
|
53870
54187
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
53871
54188
|
* @param {number} [length] Message length if known beforehand
|
|
53872
|
-
* @returns {google.api.
|
|
54189
|
+
* @returns {google.api.Http} Http
|
|
53873
54190
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
53874
54191
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
53875
54192
|
*/
|
|
53876
|
-
|
|
54193
|
+
Http.decode = function decode(reader, length) {
|
|
53877
54194
|
if (!(reader instanceof $Reader))
|
|
53878
54195
|
reader = $Reader.create(reader);
|
|
53879
|
-
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();
|
|
53880
54197
|
while (reader.pos < end) {
|
|
53881
54198
|
var tag = reader.uint32();
|
|
53882
54199
|
switch (tag >>> 3) {
|
|
53883
54200
|
case 1:
|
|
53884
|
-
message.
|
|
54201
|
+
if (!(message.rules && message.rules.length))
|
|
54202
|
+
message.rules = [];
|
|
54203
|
+
message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32()));
|
|
53885
54204
|
break;
|
|
53886
54205
|
case 2:
|
|
53887
|
-
|
|
53888
|
-
message.pattern = [];
|
|
53889
|
-
message.pattern.push(reader.string());
|
|
53890
|
-
break;
|
|
53891
|
-
case 3:
|
|
53892
|
-
message.nameField = reader.string();
|
|
53893
|
-
break;
|
|
53894
|
-
case 4:
|
|
53895
|
-
message.history = reader.int32();
|
|
53896
|
-
break;
|
|
53897
|
-
case 5:
|
|
53898
|
-
message.plural = reader.string();
|
|
53899
|
-
break;
|
|
53900
|
-
case 6:
|
|
53901
|
-
message.singular = reader.string();
|
|
53902
|
-
break;
|
|
53903
|
-
case 10:
|
|
53904
|
-
if (!(message.style && message.style.length))
|
|
53905
|
-
message.style = [];
|
|
53906
|
-
if ((tag & 7) === 2) {
|
|
53907
|
-
var end2 = reader.uint32() + reader.pos;
|
|
53908
|
-
while (reader.pos < end2)
|
|
53909
|
-
message.style.push(reader.int32());
|
|
53910
|
-
} else
|
|
53911
|
-
message.style.push(reader.int32());
|
|
54206
|
+
message.fullyDecodeReservedExpansion = reader.bool();
|
|
53912
54207
|
break;
|
|
53913
54208
|
default:
|
|
53914
54209
|
reader.skipType(tag & 7);
|
|
@@ -53919,246 +54214,143 @@
|
|
|
53919
54214
|
};
|
|
53920
54215
|
|
|
53921
54216
|
/**
|
|
53922
|
-
* Decodes a
|
|
54217
|
+
* Decodes a Http message from the specified reader or buffer, length delimited.
|
|
53923
54218
|
* @function decodeDelimited
|
|
53924
|
-
* @memberof google.api.
|
|
54219
|
+
* @memberof google.api.Http
|
|
53925
54220
|
* @static
|
|
53926
54221
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
53927
|
-
* @returns {google.api.
|
|
54222
|
+
* @returns {google.api.Http} Http
|
|
53928
54223
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
53929
54224
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
53930
54225
|
*/
|
|
53931
|
-
|
|
54226
|
+
Http.decodeDelimited = function decodeDelimited(reader) {
|
|
53932
54227
|
if (!(reader instanceof $Reader))
|
|
53933
54228
|
reader = new $Reader(reader);
|
|
53934
54229
|
return this.decode(reader, reader.uint32());
|
|
53935
54230
|
};
|
|
53936
54231
|
|
|
53937
54232
|
/**
|
|
53938
|
-
* Verifies a
|
|
54233
|
+
* Verifies a Http message.
|
|
53939
54234
|
* @function verify
|
|
53940
|
-
* @memberof google.api.
|
|
54235
|
+
* @memberof google.api.Http
|
|
53941
54236
|
* @static
|
|
53942
54237
|
* @param {Object.<string,*>} message Plain object to verify
|
|
53943
54238
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
53944
54239
|
*/
|
|
53945
|
-
|
|
54240
|
+
Http.verify = function verify(message) {
|
|
53946
54241
|
if (typeof message !== "object" || message === null)
|
|
53947
54242
|
return "object expected";
|
|
53948
|
-
if (message.
|
|
53949
|
-
if (
|
|
53950
|
-
return "
|
|
53951
|
-
|
|
53952
|
-
|
|
53953
|
-
|
|
53954
|
-
|
|
53955
|
-
if (!$util.isString(message.pattern[i]))
|
|
53956
|
-
return "pattern: string[] expected";
|
|
53957
|
-
}
|
|
53958
|
-
if (message.nameField != null && message.hasOwnProperty("nameField"))
|
|
53959
|
-
if (!$util.isString(message.nameField))
|
|
53960
|
-
return "nameField: string expected";
|
|
53961
|
-
if (message.history != null && message.hasOwnProperty("history"))
|
|
53962
|
-
switch (message.history) {
|
|
53963
|
-
default:
|
|
53964
|
-
return "history: enum value expected";
|
|
53965
|
-
case 0:
|
|
53966
|
-
case 1:
|
|
53967
|
-
case 2:
|
|
53968
|
-
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;
|
|
53969
54250
|
}
|
|
53970
|
-
if (message.plural != null && message.hasOwnProperty("plural"))
|
|
53971
|
-
if (!$util.isString(message.plural))
|
|
53972
|
-
return "plural: string expected";
|
|
53973
|
-
if (message.singular != null && message.hasOwnProperty("singular"))
|
|
53974
|
-
if (!$util.isString(message.singular))
|
|
53975
|
-
return "singular: string expected";
|
|
53976
|
-
if (message.style != null && message.hasOwnProperty("style")) {
|
|
53977
|
-
if (!Array.isArray(message.style))
|
|
53978
|
-
return "style: array expected";
|
|
53979
|
-
for (var i = 0; i < message.style.length; ++i)
|
|
53980
|
-
switch (message.style[i]) {
|
|
53981
|
-
default:
|
|
53982
|
-
return "style: enum value[] expected";
|
|
53983
|
-
case 0:
|
|
53984
|
-
case 1:
|
|
53985
|
-
break;
|
|
53986
|
-
}
|
|
53987
54251
|
}
|
|
54252
|
+
if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion"))
|
|
54253
|
+
if (typeof message.fullyDecodeReservedExpansion !== "boolean")
|
|
54254
|
+
return "fullyDecodeReservedExpansion: boolean expected";
|
|
53988
54255
|
return null;
|
|
53989
54256
|
};
|
|
53990
54257
|
|
|
53991
54258
|
/**
|
|
53992
|
-
* Creates a
|
|
54259
|
+
* Creates a Http message from a plain object. Also converts values to their respective internal types.
|
|
53993
54260
|
* @function fromObject
|
|
53994
|
-
* @memberof google.api.
|
|
54261
|
+
* @memberof google.api.Http
|
|
53995
54262
|
* @static
|
|
53996
54263
|
* @param {Object.<string,*>} object Plain object
|
|
53997
|
-
* @returns {google.api.
|
|
54264
|
+
* @returns {google.api.Http} Http
|
|
53998
54265
|
*/
|
|
53999
|
-
|
|
54000
|
-
if (object instanceof $root.google.api.
|
|
54266
|
+
Http.fromObject = function fromObject(object) {
|
|
54267
|
+
if (object instanceof $root.google.api.Http)
|
|
54001
54268
|
return object;
|
|
54002
|
-
var message = new $root.google.api.
|
|
54003
|
-
if (object.
|
|
54004
|
-
|
|
54005
|
-
|
|
54006
|
-
|
|
54007
|
-
|
|
54008
|
-
|
|
54009
|
-
|
|
54010
|
-
message.
|
|
54011
|
-
|
|
54012
|
-
if (object.nameField != null)
|
|
54013
|
-
message.nameField = String(object.nameField);
|
|
54014
|
-
switch (object.history) {
|
|
54015
|
-
case "HISTORY_UNSPECIFIED":
|
|
54016
|
-
case 0:
|
|
54017
|
-
message.history = 0;
|
|
54018
|
-
break;
|
|
54019
|
-
case "ORIGINALLY_SINGLE_PATTERN":
|
|
54020
|
-
case 1:
|
|
54021
|
-
message.history = 1;
|
|
54022
|
-
break;
|
|
54023
|
-
case "FUTURE_MULTI_PATTERN":
|
|
54024
|
-
case 2:
|
|
54025
|
-
message.history = 2;
|
|
54026
|
-
break;
|
|
54027
|
-
}
|
|
54028
|
-
if (object.plural != null)
|
|
54029
|
-
message.plural = String(object.plural);
|
|
54030
|
-
if (object.singular != null)
|
|
54031
|
-
message.singular = String(object.singular);
|
|
54032
|
-
if (object.style) {
|
|
54033
|
-
if (!Array.isArray(object.style))
|
|
54034
|
-
throw TypeError(".google.api.ResourceDescriptor.style: array expected");
|
|
54035
|
-
message.style = [];
|
|
54036
|
-
for (var i = 0; i < object.style.length; ++i)
|
|
54037
|
-
switch (object.style[i]) {
|
|
54038
|
-
default:
|
|
54039
|
-
case "STYLE_UNSPECIFIED":
|
|
54040
|
-
case 0:
|
|
54041
|
-
message.style[i] = 0;
|
|
54042
|
-
break;
|
|
54043
|
-
case "DECLARATIVE_FRIENDLY":
|
|
54044
|
-
case 1:
|
|
54045
|
-
message.style[i] = 1;
|
|
54046
|
-
break;
|
|
54047
|
-
}
|
|
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
|
+
}
|
|
54048
54279
|
}
|
|
54280
|
+
if (object.fullyDecodeReservedExpansion != null)
|
|
54281
|
+
message.fullyDecodeReservedExpansion = Boolean(object.fullyDecodeReservedExpansion);
|
|
54049
54282
|
return message;
|
|
54050
54283
|
};
|
|
54051
54284
|
|
|
54052
54285
|
/**
|
|
54053
|
-
* Creates a plain object from a
|
|
54286
|
+
* Creates a plain object from a Http message. Also converts values to other types if specified.
|
|
54054
54287
|
* @function toObject
|
|
54055
|
-
* @memberof google.api.
|
|
54288
|
+
* @memberof google.api.Http
|
|
54056
54289
|
* @static
|
|
54057
|
-
* @param {google.api.
|
|
54290
|
+
* @param {google.api.Http} message Http
|
|
54058
54291
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
54059
54292
|
* @returns {Object.<string,*>} Plain object
|
|
54060
54293
|
*/
|
|
54061
|
-
|
|
54294
|
+
Http.toObject = function toObject(message, options) {
|
|
54062
54295
|
if (!options)
|
|
54063
54296
|
options = {};
|
|
54064
54297
|
var object = {};
|
|
54065
|
-
if (options.arrays || options.defaults)
|
|
54066
|
-
object.
|
|
54067
|
-
|
|
54068
|
-
|
|
54069
|
-
if (
|
|
54070
|
-
object.
|
|
54071
|
-
|
|
54072
|
-
|
|
54073
|
-
object.plural = "";
|
|
54074
|
-
object.singular = "";
|
|
54075
|
-
}
|
|
54076
|
-
if (message.type != null && message.hasOwnProperty("type"))
|
|
54077
|
-
object.type = message.type;
|
|
54078
|
-
if (message.pattern && message.pattern.length) {
|
|
54079
|
-
object.pattern = [];
|
|
54080
|
-
for (var j = 0; j < message.pattern.length; ++j)
|
|
54081
|
-
object.pattern[j] = message.pattern[j];
|
|
54082
|
-
}
|
|
54083
|
-
if (message.nameField != null && message.hasOwnProperty("nameField"))
|
|
54084
|
-
object.nameField = message.nameField;
|
|
54085
|
-
if (message.history != null && message.hasOwnProperty("history"))
|
|
54086
|
-
object.history = options.enums === String ? $root.google.api.ResourceDescriptor.History[message.history] : message.history;
|
|
54087
|
-
if (message.plural != null && message.hasOwnProperty("plural"))
|
|
54088
|
-
object.plural = message.plural;
|
|
54089
|
-
if (message.singular != null && message.hasOwnProperty("singular"))
|
|
54090
|
-
object.singular = message.singular;
|
|
54091
|
-
if (message.style && message.style.length) {
|
|
54092
|
-
object.style = [];
|
|
54093
|
-
for (var j = 0; j < message.style.length; ++j)
|
|
54094
|
-
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);
|
|
54095
54306
|
}
|
|
54307
|
+
if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion"))
|
|
54308
|
+
object.fullyDecodeReservedExpansion = message.fullyDecodeReservedExpansion;
|
|
54096
54309
|
return object;
|
|
54097
54310
|
};
|
|
54098
54311
|
|
|
54099
54312
|
/**
|
|
54100
|
-
* Converts this
|
|
54313
|
+
* Converts this Http to JSON.
|
|
54101
54314
|
* @function toJSON
|
|
54102
|
-
* @memberof google.api.
|
|
54315
|
+
* @memberof google.api.Http
|
|
54103
54316
|
* @instance
|
|
54104
54317
|
* @returns {Object.<string,*>} JSON object
|
|
54105
54318
|
*/
|
|
54106
|
-
|
|
54319
|
+
Http.prototype.toJSON = function toJSON() {
|
|
54107
54320
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
54108
54321
|
};
|
|
54109
54322
|
|
|
54110
|
-
|
|
54111
|
-
* History enum.
|
|
54112
|
-
* @name google.api.ResourceDescriptor.History
|
|
54113
|
-
* @enum {number}
|
|
54114
|
-
* @property {number} HISTORY_UNSPECIFIED=0 HISTORY_UNSPECIFIED value
|
|
54115
|
-
* @property {number} ORIGINALLY_SINGLE_PATTERN=1 ORIGINALLY_SINGLE_PATTERN value
|
|
54116
|
-
* @property {number} FUTURE_MULTI_PATTERN=2 FUTURE_MULTI_PATTERN value
|
|
54117
|
-
*/
|
|
54118
|
-
ResourceDescriptor.History = (function() {
|
|
54119
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
54120
|
-
values[valuesById[0] = "HISTORY_UNSPECIFIED"] = 0;
|
|
54121
|
-
values[valuesById[1] = "ORIGINALLY_SINGLE_PATTERN"] = 1;
|
|
54122
|
-
values[valuesById[2] = "FUTURE_MULTI_PATTERN"] = 2;
|
|
54123
|
-
return values;
|
|
54124
|
-
})();
|
|
54125
|
-
|
|
54126
|
-
/**
|
|
54127
|
-
* Style enum.
|
|
54128
|
-
* @name google.api.ResourceDescriptor.Style
|
|
54129
|
-
* @enum {number}
|
|
54130
|
-
* @property {number} STYLE_UNSPECIFIED=0 STYLE_UNSPECIFIED value
|
|
54131
|
-
* @property {number} DECLARATIVE_FRIENDLY=1 DECLARATIVE_FRIENDLY value
|
|
54132
|
-
*/
|
|
54133
|
-
ResourceDescriptor.Style = (function() {
|
|
54134
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
54135
|
-
values[valuesById[0] = "STYLE_UNSPECIFIED"] = 0;
|
|
54136
|
-
values[valuesById[1] = "DECLARATIVE_FRIENDLY"] = 1;
|
|
54137
|
-
return values;
|
|
54138
|
-
})();
|
|
54139
|
-
|
|
54140
|
-
return ResourceDescriptor;
|
|
54323
|
+
return Http;
|
|
54141
54324
|
})();
|
|
54142
54325
|
|
|
54143
|
-
api.
|
|
54326
|
+
api.HttpRule = (function() {
|
|
54144
54327
|
|
|
54145
54328
|
/**
|
|
54146
|
-
* Properties of a
|
|
54329
|
+
* Properties of a HttpRule.
|
|
54147
54330
|
* @memberof google.api
|
|
54148
|
-
* @interface
|
|
54149
|
-
* @property {string|null} [
|
|
54150
|
-
* @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
|
|
54151
54342
|
*/
|
|
54152
54343
|
|
|
54153
54344
|
/**
|
|
54154
|
-
* Constructs a new
|
|
54345
|
+
* Constructs a new HttpRule.
|
|
54155
54346
|
* @memberof google.api
|
|
54156
|
-
* @classdesc Represents a
|
|
54157
|
-
* @implements
|
|
54347
|
+
* @classdesc Represents a HttpRule.
|
|
54348
|
+
* @implements IHttpRule
|
|
54158
54349
|
* @constructor
|
|
54159
|
-
* @param {google.api.
|
|
54350
|
+
* @param {google.api.IHttpRule=} [properties] Properties to set
|
|
54160
54351
|
*/
|
|
54161
|
-
function
|
|
54352
|
+
function HttpRule(properties) {
|
|
54353
|
+
this.additionalBindings = [];
|
|
54162
54354
|
if (properties)
|
|
54163
54355
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
54164
54356
|
if (properties[keys[i]] != null)
|
|
@@ -54166,88 +54358,209 @@
|
|
|
54166
54358
|
}
|
|
54167
54359
|
|
|
54168
54360
|
/**
|
|
54169
|
-
*
|
|
54170
|
-
* @member {string}
|
|
54171
|
-
* @memberof google.api.
|
|
54361
|
+
* HttpRule selector.
|
|
54362
|
+
* @member {string} selector
|
|
54363
|
+
* @memberof google.api.HttpRule
|
|
54172
54364
|
* @instance
|
|
54173
54365
|
*/
|
|
54174
|
-
|
|
54366
|
+
HttpRule.prototype.selector = "";
|
|
54175
54367
|
|
|
54176
54368
|
/**
|
|
54177
|
-
*
|
|
54178
|
-
* @member {string}
|
|
54179
|
-
* @memberof google.api.
|
|
54369
|
+
* HttpRule get.
|
|
54370
|
+
* @member {string|null|undefined} get
|
|
54371
|
+
* @memberof google.api.HttpRule
|
|
54180
54372
|
* @instance
|
|
54181
54373
|
*/
|
|
54182
|
-
|
|
54374
|
+
HttpRule.prototype.get = null;
|
|
54183
54375
|
|
|
54184
54376
|
/**
|
|
54185
|
-
*
|
|
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.
|
|
54186
54456
|
* @function create
|
|
54187
|
-
* @memberof google.api.
|
|
54457
|
+
* @memberof google.api.HttpRule
|
|
54188
54458
|
* @static
|
|
54189
|
-
* @param {google.api.
|
|
54190
|
-
* @returns {google.api.
|
|
54459
|
+
* @param {google.api.IHttpRule=} [properties] Properties to set
|
|
54460
|
+
* @returns {google.api.HttpRule} HttpRule instance
|
|
54191
54461
|
*/
|
|
54192
|
-
|
|
54193
|
-
return new
|
|
54462
|
+
HttpRule.create = function create(properties) {
|
|
54463
|
+
return new HttpRule(properties);
|
|
54194
54464
|
};
|
|
54195
54465
|
|
|
54196
54466
|
/**
|
|
54197
|
-
* Encodes the specified
|
|
54467
|
+
* Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
|
|
54198
54468
|
* @function encode
|
|
54199
|
-
* @memberof google.api.
|
|
54469
|
+
* @memberof google.api.HttpRule
|
|
54200
54470
|
* @static
|
|
54201
|
-
* @param {google.api.
|
|
54471
|
+
* @param {google.api.IHttpRule} message HttpRule message or plain object to encode
|
|
54202
54472
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
54203
54473
|
* @returns {$protobuf.Writer} Writer
|
|
54204
54474
|
*/
|
|
54205
|
-
|
|
54475
|
+
HttpRule.encode = function encode(message, writer) {
|
|
54206
54476
|
if (!writer)
|
|
54207
54477
|
writer = $Writer.create();
|
|
54208
|
-
if (message.
|
|
54209
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.
|
|
54210
|
-
if (message.
|
|
54211
|
-
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);
|
|
54212
54499
|
return writer;
|
|
54213
54500
|
};
|
|
54214
54501
|
|
|
54215
54502
|
/**
|
|
54216
|
-
* Encodes the specified
|
|
54503
|
+
* Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
|
|
54217
54504
|
* @function encodeDelimited
|
|
54218
|
-
* @memberof google.api.
|
|
54505
|
+
* @memberof google.api.HttpRule
|
|
54219
54506
|
* @static
|
|
54220
|
-
* @param {google.api.
|
|
54507
|
+
* @param {google.api.IHttpRule} message HttpRule message or plain object to encode
|
|
54221
54508
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
54222
54509
|
* @returns {$protobuf.Writer} Writer
|
|
54223
54510
|
*/
|
|
54224
|
-
|
|
54511
|
+
HttpRule.encodeDelimited = function encodeDelimited(message, writer) {
|
|
54225
54512
|
return this.encode(message, writer).ldelim();
|
|
54226
54513
|
};
|
|
54227
54514
|
|
|
54228
54515
|
/**
|
|
54229
|
-
* Decodes a
|
|
54516
|
+
* Decodes a HttpRule message from the specified reader or buffer.
|
|
54230
54517
|
* @function decode
|
|
54231
|
-
* @memberof google.api.
|
|
54518
|
+
* @memberof google.api.HttpRule
|
|
54232
54519
|
* @static
|
|
54233
54520
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
54234
54521
|
* @param {number} [length] Message length if known beforehand
|
|
54235
|
-
* @returns {google.api.
|
|
54522
|
+
* @returns {google.api.HttpRule} HttpRule
|
|
54236
54523
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
54237
54524
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
54238
54525
|
*/
|
|
54239
|
-
|
|
54526
|
+
HttpRule.decode = function decode(reader, length) {
|
|
54240
54527
|
if (!(reader instanceof $Reader))
|
|
54241
54528
|
reader = $Reader.create(reader);
|
|
54242
|
-
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();
|
|
54243
54530
|
while (reader.pos < end) {
|
|
54244
54531
|
var tag = reader.uint32();
|
|
54245
54532
|
switch (tag >>> 3) {
|
|
54246
54533
|
case 1:
|
|
54247
|
-
message.
|
|
54534
|
+
message.selector = reader.string();
|
|
54248
54535
|
break;
|
|
54249
54536
|
case 2:
|
|
54250
|
-
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()));
|
|
54251
54564
|
break;
|
|
54252
54565
|
default:
|
|
54253
54566
|
reader.skipType(tag & 7);
|
|
@@ -54258,118 +54571,240 @@
|
|
|
54258
54571
|
};
|
|
54259
54572
|
|
|
54260
54573
|
/**
|
|
54261
|
-
* Decodes a
|
|
54574
|
+
* Decodes a HttpRule message from the specified reader or buffer, length delimited.
|
|
54262
54575
|
* @function decodeDelimited
|
|
54263
|
-
* @memberof google.api.
|
|
54576
|
+
* @memberof google.api.HttpRule
|
|
54264
54577
|
* @static
|
|
54265
54578
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
54266
|
-
* @returns {google.api.
|
|
54579
|
+
* @returns {google.api.HttpRule} HttpRule
|
|
54267
54580
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
54268
54581
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
54269
54582
|
*/
|
|
54270
|
-
|
|
54583
|
+
HttpRule.decodeDelimited = function decodeDelimited(reader) {
|
|
54271
54584
|
if (!(reader instanceof $Reader))
|
|
54272
54585
|
reader = new $Reader(reader);
|
|
54273
54586
|
return this.decode(reader, reader.uint32());
|
|
54274
54587
|
};
|
|
54275
54588
|
|
|
54276
54589
|
/**
|
|
54277
|
-
* Verifies a
|
|
54590
|
+
* Verifies a HttpRule message.
|
|
54278
54591
|
* @function verify
|
|
54279
|
-
* @memberof google.api.
|
|
54592
|
+
* @memberof google.api.HttpRule
|
|
54280
54593
|
* @static
|
|
54281
54594
|
* @param {Object.<string,*>} message Plain object to verify
|
|
54282
54595
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
54283
54596
|
*/
|
|
54284
|
-
|
|
54597
|
+
HttpRule.verify = function verify(message) {
|
|
54285
54598
|
if (typeof message !== "object" || message === null)
|
|
54286
54599
|
return "object expected";
|
|
54287
|
-
|
|
54288
|
-
|
|
54289
|
-
|
|
54290
|
-
|
|
54291
|
-
|
|
54292
|
-
|
|
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
|
+
}
|
|
54293
54662
|
return null;
|
|
54294
54663
|
};
|
|
54295
54664
|
|
|
54296
54665
|
/**
|
|
54297
|
-
* Creates a
|
|
54666
|
+
* Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
|
|
54298
54667
|
* @function fromObject
|
|
54299
|
-
* @memberof google.api.
|
|
54668
|
+
* @memberof google.api.HttpRule
|
|
54300
54669
|
* @static
|
|
54301
54670
|
* @param {Object.<string,*>} object Plain object
|
|
54302
|
-
* @returns {google.api.
|
|
54671
|
+
* @returns {google.api.HttpRule} HttpRule
|
|
54303
54672
|
*/
|
|
54304
|
-
|
|
54305
|
-
if (object instanceof $root.google.api.
|
|
54673
|
+
HttpRule.fromObject = function fromObject(object) {
|
|
54674
|
+
if (object instanceof $root.google.api.HttpRule)
|
|
54306
54675
|
return object;
|
|
54307
|
-
var message = new $root.google.api.
|
|
54308
|
-
if (object.
|
|
54309
|
-
message.
|
|
54310
|
-
if (object.
|
|
54311
|
-
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
|
+
}
|
|
54312
54708
|
return message;
|
|
54313
54709
|
};
|
|
54314
54710
|
|
|
54315
54711
|
/**
|
|
54316
|
-
* Creates a plain object from a
|
|
54712
|
+
* Creates a plain object from a HttpRule message. Also converts values to other types if specified.
|
|
54317
54713
|
* @function toObject
|
|
54318
|
-
* @memberof google.api.
|
|
54714
|
+
* @memberof google.api.HttpRule
|
|
54319
54715
|
* @static
|
|
54320
|
-
* @param {google.api.
|
|
54716
|
+
* @param {google.api.HttpRule} message HttpRule
|
|
54321
54717
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
54322
54718
|
* @returns {Object.<string,*>} Plain object
|
|
54323
54719
|
*/
|
|
54324
|
-
|
|
54720
|
+
HttpRule.toObject = function toObject(message, options) {
|
|
54325
54721
|
if (!options)
|
|
54326
54722
|
options = {};
|
|
54327
54723
|
var object = {};
|
|
54724
|
+
if (options.arrays || options.defaults)
|
|
54725
|
+
object.additionalBindings = [];
|
|
54328
54726
|
if (options.defaults) {
|
|
54329
|
-
object.
|
|
54330
|
-
object.
|
|
54727
|
+
object.selector = "";
|
|
54728
|
+
object.body = "";
|
|
54729
|
+
object.responseBody = "";
|
|
54331
54730
|
}
|
|
54332
|
-
if (message.
|
|
54333
|
-
object.
|
|
54334
|
-
if (message.
|
|
54335
|
-
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;
|
|
54336
54772
|
return object;
|
|
54337
54773
|
};
|
|
54338
54774
|
|
|
54339
54775
|
/**
|
|
54340
|
-
* Converts this
|
|
54776
|
+
* Converts this HttpRule to JSON.
|
|
54341
54777
|
* @function toJSON
|
|
54342
|
-
* @memberof google.api.
|
|
54778
|
+
* @memberof google.api.HttpRule
|
|
54343
54779
|
* @instance
|
|
54344
54780
|
* @returns {Object.<string,*>} JSON object
|
|
54345
54781
|
*/
|
|
54346
|
-
|
|
54782
|
+
HttpRule.prototype.toJSON = function toJSON() {
|
|
54347
54783
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
54348
54784
|
};
|
|
54349
54785
|
|
|
54350
|
-
return
|
|
54786
|
+
return HttpRule;
|
|
54351
54787
|
})();
|
|
54352
54788
|
|
|
54353
|
-
api.
|
|
54789
|
+
api.CustomHttpPattern = (function() {
|
|
54354
54790
|
|
|
54355
54791
|
/**
|
|
54356
|
-
* Properties of a
|
|
54792
|
+
* Properties of a CustomHttpPattern.
|
|
54357
54793
|
* @memberof google.api
|
|
54358
|
-
* @interface
|
|
54359
|
-
* @property {
|
|
54360
|
-
* @property {
|
|
54794
|
+
* @interface ICustomHttpPattern
|
|
54795
|
+
* @property {string|null} [kind] CustomHttpPattern kind
|
|
54796
|
+
* @property {string|null} [path] CustomHttpPattern path
|
|
54361
54797
|
*/
|
|
54362
54798
|
|
|
54363
54799
|
/**
|
|
54364
|
-
* Constructs a new
|
|
54800
|
+
* Constructs a new CustomHttpPattern.
|
|
54365
54801
|
* @memberof google.api
|
|
54366
|
-
* @classdesc Represents a
|
|
54367
|
-
* @implements
|
|
54802
|
+
* @classdesc Represents a CustomHttpPattern.
|
|
54803
|
+
* @implements ICustomHttpPattern
|
|
54368
54804
|
* @constructor
|
|
54369
|
-
* @param {google.api.
|
|
54805
|
+
* @param {google.api.ICustomHttpPattern=} [properties] Properties to set
|
|
54370
54806
|
*/
|
|
54371
|
-
function
|
|
54372
|
-
this.rules = [];
|
|
54807
|
+
function CustomHttpPattern(properties) {
|
|
54373
54808
|
if (properties)
|
|
54374
54809
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
54375
54810
|
if (properties[keys[i]] != null)
|
|
@@ -54377,91 +54812,88 @@
|
|
|
54377
54812
|
}
|
|
54378
54813
|
|
|
54379
54814
|
/**
|
|
54380
|
-
*
|
|
54381
|
-
* @member {
|
|
54382
|
-
* @memberof google.api.
|
|
54815
|
+
* CustomHttpPattern kind.
|
|
54816
|
+
* @member {string} kind
|
|
54817
|
+
* @memberof google.api.CustomHttpPattern
|
|
54383
54818
|
* @instance
|
|
54384
54819
|
*/
|
|
54385
|
-
|
|
54820
|
+
CustomHttpPattern.prototype.kind = "";
|
|
54386
54821
|
|
|
54387
54822
|
/**
|
|
54388
|
-
*
|
|
54389
|
-
* @member {
|
|
54390
|
-
* @memberof google.api.
|
|
54823
|
+
* CustomHttpPattern path.
|
|
54824
|
+
* @member {string} path
|
|
54825
|
+
* @memberof google.api.CustomHttpPattern
|
|
54391
54826
|
* @instance
|
|
54392
54827
|
*/
|
|
54393
|
-
|
|
54828
|
+
CustomHttpPattern.prototype.path = "";
|
|
54394
54829
|
|
|
54395
54830
|
/**
|
|
54396
|
-
* Creates a new
|
|
54831
|
+
* Creates a new CustomHttpPattern instance using the specified properties.
|
|
54397
54832
|
* @function create
|
|
54398
|
-
* @memberof google.api.
|
|
54833
|
+
* @memberof google.api.CustomHttpPattern
|
|
54399
54834
|
* @static
|
|
54400
|
-
* @param {google.api.
|
|
54401
|
-
* @returns {google.api.
|
|
54835
|
+
* @param {google.api.ICustomHttpPattern=} [properties] Properties to set
|
|
54836
|
+
* @returns {google.api.CustomHttpPattern} CustomHttpPattern instance
|
|
54402
54837
|
*/
|
|
54403
|
-
|
|
54404
|
-
return new
|
|
54838
|
+
CustomHttpPattern.create = function create(properties) {
|
|
54839
|
+
return new CustomHttpPattern(properties);
|
|
54405
54840
|
};
|
|
54406
54841
|
|
|
54407
54842
|
/**
|
|
54408
|
-
* Encodes the specified
|
|
54843
|
+
* Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
|
|
54409
54844
|
* @function encode
|
|
54410
|
-
* @memberof google.api.
|
|
54845
|
+
* @memberof google.api.CustomHttpPattern
|
|
54411
54846
|
* @static
|
|
54412
|
-
* @param {google.api.
|
|
54847
|
+
* @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode
|
|
54413
54848
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
54414
54849
|
* @returns {$protobuf.Writer} Writer
|
|
54415
54850
|
*/
|
|
54416
|
-
|
|
54851
|
+
CustomHttpPattern.encode = function encode(message, writer) {
|
|
54417
54852
|
if (!writer)
|
|
54418
54853
|
writer = $Writer.create();
|
|
54419
|
-
if (message.
|
|
54420
|
-
|
|
54421
|
-
|
|
54422
|
-
|
|
54423
|
-
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);
|
|
54424
54858
|
return writer;
|
|
54425
54859
|
};
|
|
54426
54860
|
|
|
54427
54861
|
/**
|
|
54428
|
-
* Encodes the specified
|
|
54862
|
+
* Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
|
|
54429
54863
|
* @function encodeDelimited
|
|
54430
|
-
* @memberof google.api.
|
|
54864
|
+
* @memberof google.api.CustomHttpPattern
|
|
54431
54865
|
* @static
|
|
54432
|
-
* @param {google.api.
|
|
54866
|
+
* @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode
|
|
54433
54867
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
54434
54868
|
* @returns {$protobuf.Writer} Writer
|
|
54435
54869
|
*/
|
|
54436
|
-
|
|
54870
|
+
CustomHttpPattern.encodeDelimited = function encodeDelimited(message, writer) {
|
|
54437
54871
|
return this.encode(message, writer).ldelim();
|
|
54438
54872
|
};
|
|
54439
54873
|
|
|
54440
54874
|
/**
|
|
54441
|
-
* Decodes a
|
|
54875
|
+
* Decodes a CustomHttpPattern message from the specified reader or buffer.
|
|
54442
54876
|
* @function decode
|
|
54443
|
-
* @memberof google.api.
|
|
54877
|
+
* @memberof google.api.CustomHttpPattern
|
|
54444
54878
|
* @static
|
|
54445
54879
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
54446
54880
|
* @param {number} [length] Message length if known beforehand
|
|
54447
|
-
* @returns {google.api.
|
|
54881
|
+
* @returns {google.api.CustomHttpPattern} CustomHttpPattern
|
|
54448
54882
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
54449
54883
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
54450
54884
|
*/
|
|
54451
|
-
|
|
54885
|
+
CustomHttpPattern.decode = function decode(reader, length) {
|
|
54452
54886
|
if (!(reader instanceof $Reader))
|
|
54453
54887
|
reader = $Reader.create(reader);
|
|
54454
|
-
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();
|
|
54455
54889
|
while (reader.pos < end) {
|
|
54456
54890
|
var tag = reader.uint32();
|
|
54457
54891
|
switch (tag >>> 3) {
|
|
54458
54892
|
case 1:
|
|
54459
|
-
|
|
54460
|
-
message.rules = [];
|
|
54461
|
-
message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32()));
|
|
54893
|
+
message.kind = reader.string();
|
|
54462
54894
|
break;
|
|
54463
54895
|
case 2:
|
|
54464
|
-
message.
|
|
54896
|
+
message.path = reader.string();
|
|
54465
54897
|
break;
|
|
54466
54898
|
default:
|
|
54467
54899
|
reader.skipType(tag & 7);
|
|
@@ -54472,143 +54904,150 @@
|
|
|
54472
54904
|
};
|
|
54473
54905
|
|
|
54474
54906
|
/**
|
|
54475
|
-
* Decodes a
|
|
54907
|
+
* Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
|
|
54476
54908
|
* @function decodeDelimited
|
|
54477
|
-
* @memberof google.api.
|
|
54909
|
+
* @memberof google.api.CustomHttpPattern
|
|
54478
54910
|
* @static
|
|
54479
54911
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
54480
|
-
* @returns {google.api.
|
|
54912
|
+
* @returns {google.api.CustomHttpPattern} CustomHttpPattern
|
|
54481
54913
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
54482
54914
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
54483
54915
|
*/
|
|
54484
|
-
|
|
54916
|
+
CustomHttpPattern.decodeDelimited = function decodeDelimited(reader) {
|
|
54485
54917
|
if (!(reader instanceof $Reader))
|
|
54486
54918
|
reader = new $Reader(reader);
|
|
54487
54919
|
return this.decode(reader, reader.uint32());
|
|
54488
54920
|
};
|
|
54489
54921
|
|
|
54490
54922
|
/**
|
|
54491
|
-
* Verifies a
|
|
54923
|
+
* Verifies a CustomHttpPattern message.
|
|
54492
54924
|
* @function verify
|
|
54493
|
-
* @memberof google.api.
|
|
54925
|
+
* @memberof google.api.CustomHttpPattern
|
|
54494
54926
|
* @static
|
|
54495
54927
|
* @param {Object.<string,*>} message Plain object to verify
|
|
54496
54928
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
54497
54929
|
*/
|
|
54498
|
-
|
|
54930
|
+
CustomHttpPattern.verify = function verify(message) {
|
|
54499
54931
|
if (typeof message !== "object" || message === null)
|
|
54500
54932
|
return "object expected";
|
|
54501
|
-
if (message.
|
|
54502
|
-
if (
|
|
54503
|
-
return "
|
|
54504
|
-
|
|
54505
|
-
|
|
54506
|
-
|
|
54507
|
-
return "rules." + error;
|
|
54508
|
-
}
|
|
54509
|
-
}
|
|
54510
|
-
if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion"))
|
|
54511
|
-
if (typeof message.fullyDecodeReservedExpansion !== "boolean")
|
|
54512
|
-
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";
|
|
54513
54939
|
return null;
|
|
54514
54940
|
};
|
|
54515
54941
|
|
|
54516
54942
|
/**
|
|
54517
|
-
* Creates a
|
|
54943
|
+
* Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
|
|
54518
54944
|
* @function fromObject
|
|
54519
|
-
* @memberof google.api.
|
|
54945
|
+
* @memberof google.api.CustomHttpPattern
|
|
54520
54946
|
* @static
|
|
54521
54947
|
* @param {Object.<string,*>} object Plain object
|
|
54522
|
-
* @returns {google.api.
|
|
54948
|
+
* @returns {google.api.CustomHttpPattern} CustomHttpPattern
|
|
54523
54949
|
*/
|
|
54524
|
-
|
|
54525
|
-
if (object instanceof $root.google.api.
|
|
54950
|
+
CustomHttpPattern.fromObject = function fromObject(object) {
|
|
54951
|
+
if (object instanceof $root.google.api.CustomHttpPattern)
|
|
54526
54952
|
return object;
|
|
54527
|
-
var message = new $root.google.api.
|
|
54528
|
-
if (object.
|
|
54529
|
-
|
|
54530
|
-
|
|
54531
|
-
message.
|
|
54532
|
-
for (var i = 0; i < object.rules.length; ++i) {
|
|
54533
|
-
if (typeof object.rules[i] !== "object")
|
|
54534
|
-
throw TypeError(".google.api.Http.rules: object expected");
|
|
54535
|
-
message.rules[i] = $root.google.api.HttpRule.fromObject(object.rules[i]);
|
|
54536
|
-
}
|
|
54537
|
-
}
|
|
54538
|
-
if (object.fullyDecodeReservedExpansion != null)
|
|
54539
|
-
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);
|
|
54540
54958
|
return message;
|
|
54541
54959
|
};
|
|
54542
54960
|
|
|
54543
54961
|
/**
|
|
54544
|
-
* Creates a plain object from a
|
|
54962
|
+
* Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
|
|
54545
54963
|
* @function toObject
|
|
54546
|
-
* @memberof google.api.
|
|
54964
|
+
* @memberof google.api.CustomHttpPattern
|
|
54547
54965
|
* @static
|
|
54548
|
-
* @param {google.api.
|
|
54966
|
+
* @param {google.api.CustomHttpPattern} message CustomHttpPattern
|
|
54549
54967
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
54550
54968
|
* @returns {Object.<string,*>} Plain object
|
|
54551
54969
|
*/
|
|
54552
|
-
|
|
54970
|
+
CustomHttpPattern.toObject = function toObject(message, options) {
|
|
54553
54971
|
if (!options)
|
|
54554
54972
|
options = {};
|
|
54555
54973
|
var object = {};
|
|
54556
|
-
if (options.
|
|
54557
|
-
object.
|
|
54558
|
-
|
|
54559
|
-
object.fullyDecodeReservedExpansion = false;
|
|
54560
|
-
if (message.rules && message.rules.length) {
|
|
54561
|
-
object.rules = [];
|
|
54562
|
-
for (var j = 0; j < message.rules.length; ++j)
|
|
54563
|
-
object.rules[j] = $root.google.api.HttpRule.toObject(message.rules[j], options);
|
|
54974
|
+
if (options.defaults) {
|
|
54975
|
+
object.kind = "";
|
|
54976
|
+
object.path = "";
|
|
54564
54977
|
}
|
|
54565
|
-
if (message.
|
|
54566
|
-
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;
|
|
54567
54982
|
return object;
|
|
54568
54983
|
};
|
|
54569
54984
|
|
|
54570
54985
|
/**
|
|
54571
|
-
* Converts this
|
|
54986
|
+
* Converts this CustomHttpPattern to JSON.
|
|
54572
54987
|
* @function toJSON
|
|
54573
|
-
* @memberof google.api.
|
|
54988
|
+
* @memberof google.api.CustomHttpPattern
|
|
54574
54989
|
* @instance
|
|
54575
54990
|
* @returns {Object.<string,*>} JSON object
|
|
54576
54991
|
*/
|
|
54577
|
-
|
|
54992
|
+
CustomHttpPattern.prototype.toJSON = function toJSON() {
|
|
54578
54993
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
54579
54994
|
};
|
|
54580
54995
|
|
|
54581
|
-
return
|
|
54996
|
+
return CustomHttpPattern;
|
|
54582
54997
|
})();
|
|
54583
54998
|
|
|
54584
|
-
|
|
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() {
|
|
54585
55026
|
|
|
54586
55027
|
/**
|
|
54587
|
-
* Properties of a
|
|
55028
|
+
* Properties of a ResourceDescriptor.
|
|
54588
55029
|
* @memberof google.api
|
|
54589
|
-
* @interface
|
|
54590
|
-
* @property {string|null} [
|
|
54591
|
-
* @property {string
|
|
54592
|
-
* @property {string|null} [
|
|
54593
|
-
* @property {
|
|
54594
|
-
* @property {string|null} [
|
|
54595
|
-
* @property {string|null} [
|
|
54596
|
-
* @property {google.api.
|
|
54597
|
-
* @property {string|null} [body] HttpRule body
|
|
54598
|
-
* @property {string|null} [responseBody] HttpRule responseBody
|
|
54599
|
-
* @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
|
|
54600
55038
|
*/
|
|
54601
55039
|
|
|
54602
55040
|
/**
|
|
54603
|
-
* Constructs a new
|
|
55041
|
+
* Constructs a new ResourceDescriptor.
|
|
54604
55042
|
* @memberof google.api
|
|
54605
|
-
* @classdesc Represents a
|
|
54606
|
-
* @implements
|
|
55043
|
+
* @classdesc Represents a ResourceDescriptor.
|
|
55044
|
+
* @implements IResourceDescriptor
|
|
54607
55045
|
* @constructor
|
|
54608
|
-
* @param {google.api.
|
|
55046
|
+
* @param {google.api.IResourceDescriptor=} [properties] Properties to set
|
|
54609
55047
|
*/
|
|
54610
|
-
function
|
|
54611
|
-
this.
|
|
55048
|
+
function ResourceDescriptor(properties) {
|
|
55049
|
+
this.pattern = [];
|
|
55050
|
+
this.style = [];
|
|
54612
55051
|
if (properties)
|
|
54613
55052
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
54614
55053
|
if (properties[keys[i]] != null)
|
|
@@ -54616,209 +55055,167 @@
|
|
|
54616
55055
|
}
|
|
54617
55056
|
|
|
54618
55057
|
/**
|
|
54619
|
-
*
|
|
54620
|
-
* @member {string}
|
|
54621
|
-
* @memberof google.api.
|
|
54622
|
-
* @instance
|
|
54623
|
-
*/
|
|
54624
|
-
HttpRule.prototype.selector = "";
|
|
54625
|
-
|
|
54626
|
-
/**
|
|
54627
|
-
* HttpRule get.
|
|
54628
|
-
* @member {string|null|undefined} get
|
|
54629
|
-
* @memberof google.api.HttpRule
|
|
54630
|
-
* @instance
|
|
54631
|
-
*/
|
|
54632
|
-
HttpRule.prototype.get = null;
|
|
54633
|
-
|
|
54634
|
-
/**
|
|
54635
|
-
* HttpRule put.
|
|
54636
|
-
* @member {string|null|undefined} put
|
|
54637
|
-
* @memberof google.api.HttpRule
|
|
54638
|
-
* @instance
|
|
54639
|
-
*/
|
|
54640
|
-
HttpRule.prototype.put = null;
|
|
54641
|
-
|
|
54642
|
-
/**
|
|
54643
|
-
* HttpRule post.
|
|
54644
|
-
* @member {string|null|undefined} post
|
|
54645
|
-
* @memberof google.api.HttpRule
|
|
54646
|
-
* @instance
|
|
54647
|
-
*/
|
|
54648
|
-
HttpRule.prototype.post = null;
|
|
54649
|
-
|
|
54650
|
-
/**
|
|
54651
|
-
* HttpRule delete.
|
|
54652
|
-
* @member {string|null|undefined} delete
|
|
54653
|
-
* @memberof google.api.HttpRule
|
|
55058
|
+
* ResourceDescriptor type.
|
|
55059
|
+
* @member {string} type
|
|
55060
|
+
* @memberof google.api.ResourceDescriptor
|
|
54654
55061
|
* @instance
|
|
54655
55062
|
*/
|
|
54656
|
-
|
|
55063
|
+
ResourceDescriptor.prototype.type = "";
|
|
54657
55064
|
|
|
54658
55065
|
/**
|
|
54659
|
-
*
|
|
54660
|
-
* @member {string
|
|
54661
|
-
* @memberof google.api.
|
|
55066
|
+
* ResourceDescriptor pattern.
|
|
55067
|
+
* @member {Array.<string>} pattern
|
|
55068
|
+
* @memberof google.api.ResourceDescriptor
|
|
54662
55069
|
* @instance
|
|
54663
55070
|
*/
|
|
54664
|
-
|
|
55071
|
+
ResourceDescriptor.prototype.pattern = $util.emptyArray;
|
|
54665
55072
|
|
|
54666
55073
|
/**
|
|
54667
|
-
*
|
|
54668
|
-
* @member {
|
|
54669
|
-
* @memberof google.api.
|
|
55074
|
+
* ResourceDescriptor nameField.
|
|
55075
|
+
* @member {string} nameField
|
|
55076
|
+
* @memberof google.api.ResourceDescriptor
|
|
54670
55077
|
* @instance
|
|
54671
55078
|
*/
|
|
54672
|
-
|
|
55079
|
+
ResourceDescriptor.prototype.nameField = "";
|
|
54673
55080
|
|
|
54674
55081
|
/**
|
|
54675
|
-
*
|
|
54676
|
-
* @member {
|
|
54677
|
-
* @memberof google.api.
|
|
55082
|
+
* ResourceDescriptor history.
|
|
55083
|
+
* @member {google.api.ResourceDescriptor.History} history
|
|
55084
|
+
* @memberof google.api.ResourceDescriptor
|
|
54678
55085
|
* @instance
|
|
54679
55086
|
*/
|
|
54680
|
-
|
|
55087
|
+
ResourceDescriptor.prototype.history = 0;
|
|
54681
55088
|
|
|
54682
55089
|
/**
|
|
54683
|
-
*
|
|
54684
|
-
* @member {string}
|
|
54685
|
-
* @memberof google.api.
|
|
55090
|
+
* ResourceDescriptor plural.
|
|
55091
|
+
* @member {string} plural
|
|
55092
|
+
* @memberof google.api.ResourceDescriptor
|
|
54686
55093
|
* @instance
|
|
54687
55094
|
*/
|
|
54688
|
-
|
|
55095
|
+
ResourceDescriptor.prototype.plural = "";
|
|
54689
55096
|
|
|
54690
55097
|
/**
|
|
54691
|
-
*
|
|
54692
|
-
* @member {
|
|
54693
|
-
* @memberof google.api.
|
|
55098
|
+
* ResourceDescriptor singular.
|
|
55099
|
+
* @member {string} singular
|
|
55100
|
+
* @memberof google.api.ResourceDescriptor
|
|
54694
55101
|
* @instance
|
|
54695
55102
|
*/
|
|
54696
|
-
|
|
54697
|
-
|
|
54698
|
-
// OneOf field names bound to virtual getters and setters
|
|
54699
|
-
var $oneOfFields;
|
|
55103
|
+
ResourceDescriptor.prototype.singular = "";
|
|
54700
55104
|
|
|
54701
55105
|
/**
|
|
54702
|
-
*
|
|
54703
|
-
* @member {
|
|
54704
|
-
* @memberof google.api.
|
|
55106
|
+
* ResourceDescriptor style.
|
|
55107
|
+
* @member {Array.<google.api.ResourceDescriptor.Style>} style
|
|
55108
|
+
* @memberof google.api.ResourceDescriptor
|
|
54705
55109
|
* @instance
|
|
54706
55110
|
*/
|
|
54707
|
-
|
|
54708
|
-
get: $util.oneOfGetter($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"]),
|
|
54709
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
54710
|
-
});
|
|
55111
|
+
ResourceDescriptor.prototype.style = $util.emptyArray;
|
|
54711
55112
|
|
|
54712
55113
|
/**
|
|
54713
|
-
* Creates a new
|
|
55114
|
+
* Creates a new ResourceDescriptor instance using the specified properties.
|
|
54714
55115
|
* @function create
|
|
54715
|
-
* @memberof google.api.
|
|
55116
|
+
* @memberof google.api.ResourceDescriptor
|
|
54716
55117
|
* @static
|
|
54717
|
-
* @param {google.api.
|
|
54718
|
-
* @returns {google.api.
|
|
55118
|
+
* @param {google.api.IResourceDescriptor=} [properties] Properties to set
|
|
55119
|
+
* @returns {google.api.ResourceDescriptor} ResourceDescriptor instance
|
|
54719
55120
|
*/
|
|
54720
|
-
|
|
54721
|
-
return new
|
|
55121
|
+
ResourceDescriptor.create = function create(properties) {
|
|
55122
|
+
return new ResourceDescriptor(properties);
|
|
54722
55123
|
};
|
|
54723
55124
|
|
|
54724
55125
|
/**
|
|
54725
|
-
* Encodes the specified
|
|
55126
|
+
* Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
|
|
54726
55127
|
* @function encode
|
|
54727
|
-
* @memberof google.api.
|
|
55128
|
+
* @memberof google.api.ResourceDescriptor
|
|
54728
55129
|
* @static
|
|
54729
|
-
* @param {google.api.
|
|
55130
|
+
* @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode
|
|
54730
55131
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
54731
55132
|
* @returns {$protobuf.Writer} Writer
|
|
54732
55133
|
*/
|
|
54733
|
-
|
|
55134
|
+
ResourceDescriptor.encode = function encode(message, writer) {
|
|
54734
55135
|
if (!writer)
|
|
54735
55136
|
writer = $Writer.create();
|
|
54736
|
-
if (message.
|
|
54737
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.
|
|
54738
|
-
if (message.
|
|
54739
|
-
|
|
54740
|
-
|
|
54741
|
-
|
|
54742
|
-
|
|
54743
|
-
|
|
54744
|
-
|
|
54745
|
-
|
|
54746
|
-
|
|
54747
|
-
|
|
54748
|
-
|
|
54749
|
-
|
|
54750
|
-
|
|
54751
|
-
|
|
54752
|
-
|
|
54753
|
-
|
|
54754
|
-
|
|
54755
|
-
if (message.responseBody != null && Object.hasOwnProperty.call(message, "responseBody"))
|
|
54756
|
-
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
|
+
}
|
|
54757
55156
|
return writer;
|
|
54758
55157
|
};
|
|
54759
55158
|
|
|
54760
55159
|
/**
|
|
54761
|
-
* Encodes the specified
|
|
55160
|
+
* Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
|
|
54762
55161
|
* @function encodeDelimited
|
|
54763
|
-
* @memberof google.api.
|
|
55162
|
+
* @memberof google.api.ResourceDescriptor
|
|
54764
55163
|
* @static
|
|
54765
|
-
* @param {google.api.
|
|
55164
|
+
* @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode
|
|
54766
55165
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
54767
55166
|
* @returns {$protobuf.Writer} Writer
|
|
54768
55167
|
*/
|
|
54769
|
-
|
|
55168
|
+
ResourceDescriptor.encodeDelimited = function encodeDelimited(message, writer) {
|
|
54770
55169
|
return this.encode(message, writer).ldelim();
|
|
54771
55170
|
};
|
|
54772
55171
|
|
|
54773
55172
|
/**
|
|
54774
|
-
* Decodes a
|
|
55173
|
+
* Decodes a ResourceDescriptor message from the specified reader or buffer.
|
|
54775
55174
|
* @function decode
|
|
54776
|
-
* @memberof google.api.
|
|
55175
|
+
* @memberof google.api.ResourceDescriptor
|
|
54777
55176
|
* @static
|
|
54778
55177
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
54779
55178
|
* @param {number} [length] Message length if known beforehand
|
|
54780
|
-
* @returns {google.api.
|
|
55179
|
+
* @returns {google.api.ResourceDescriptor} ResourceDescriptor
|
|
54781
55180
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
54782
55181
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
54783
55182
|
*/
|
|
54784
|
-
|
|
55183
|
+
ResourceDescriptor.decode = function decode(reader, length) {
|
|
54785
55184
|
if (!(reader instanceof $Reader))
|
|
54786
55185
|
reader = $Reader.create(reader);
|
|
54787
|
-
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();
|
|
54788
55187
|
while (reader.pos < end) {
|
|
54789
55188
|
var tag = reader.uint32();
|
|
54790
55189
|
switch (tag >>> 3) {
|
|
54791
55190
|
case 1:
|
|
54792
|
-
message.
|
|
55191
|
+
message.type = reader.string();
|
|
54793
55192
|
break;
|
|
54794
55193
|
case 2:
|
|
54795
|
-
message.
|
|
55194
|
+
if (!(message.pattern && message.pattern.length))
|
|
55195
|
+
message.pattern = [];
|
|
55196
|
+
message.pattern.push(reader.string());
|
|
54796
55197
|
break;
|
|
54797
55198
|
case 3:
|
|
54798
|
-
message.
|
|
55199
|
+
message.nameField = reader.string();
|
|
54799
55200
|
break;
|
|
54800
55201
|
case 4:
|
|
54801
|
-
message.
|
|
55202
|
+
message.history = reader.int32();
|
|
54802
55203
|
break;
|
|
54803
55204
|
case 5:
|
|
54804
|
-
message
|
|
55205
|
+
message.plural = reader.string();
|
|
54805
55206
|
break;
|
|
54806
55207
|
case 6:
|
|
54807
|
-
message.
|
|
54808
|
-
break;
|
|
54809
|
-
case 8:
|
|
54810
|
-
message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32());
|
|
54811
|
-
break;
|
|
54812
|
-
case 7:
|
|
54813
|
-
message.body = reader.string();
|
|
54814
|
-
break;
|
|
54815
|
-
case 12:
|
|
54816
|
-
message.responseBody = reader.string();
|
|
55208
|
+
message.singular = reader.string();
|
|
54817
55209
|
break;
|
|
54818
|
-
case
|
|
54819
|
-
if (!(message.
|
|
54820
|
-
message.
|
|
54821
|
-
|
|
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());
|
|
54822
55219
|
break;
|
|
54823
55220
|
default:
|
|
54824
55221
|
reader.skipType(tag & 7);
|
|
@@ -54829,240 +55226,246 @@
|
|
|
54829
55226
|
};
|
|
54830
55227
|
|
|
54831
55228
|
/**
|
|
54832
|
-
* Decodes a
|
|
55229
|
+
* Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
|
|
54833
55230
|
* @function decodeDelimited
|
|
54834
|
-
* @memberof google.api.
|
|
55231
|
+
* @memberof google.api.ResourceDescriptor
|
|
54835
55232
|
* @static
|
|
54836
55233
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
54837
|
-
* @returns {google.api.
|
|
55234
|
+
* @returns {google.api.ResourceDescriptor} ResourceDescriptor
|
|
54838
55235
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
54839
55236
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
54840
55237
|
*/
|
|
54841
|
-
|
|
55238
|
+
ResourceDescriptor.decodeDelimited = function decodeDelimited(reader) {
|
|
54842
55239
|
if (!(reader instanceof $Reader))
|
|
54843
55240
|
reader = new $Reader(reader);
|
|
54844
55241
|
return this.decode(reader, reader.uint32());
|
|
54845
55242
|
};
|
|
54846
55243
|
|
|
54847
55244
|
/**
|
|
54848
|
-
* Verifies a
|
|
55245
|
+
* Verifies a ResourceDescriptor message.
|
|
54849
55246
|
* @function verify
|
|
54850
|
-
* @memberof google.api.
|
|
55247
|
+
* @memberof google.api.ResourceDescriptor
|
|
54851
55248
|
* @static
|
|
54852
55249
|
* @param {Object.<string,*>} message Plain object to verify
|
|
54853
55250
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
54854
55251
|
*/
|
|
54855
|
-
|
|
55252
|
+
ResourceDescriptor.verify = function verify(message) {
|
|
54856
55253
|
if (typeof message !== "object" || message === null)
|
|
54857
55254
|
return "object expected";
|
|
54858
|
-
|
|
54859
|
-
|
|
54860
|
-
|
|
54861
|
-
|
|
54862
|
-
|
|
54863
|
-
|
|
54864
|
-
|
|
54865
|
-
|
|
54866
|
-
|
|
54867
|
-
if (message.put != null && message.hasOwnProperty("put")) {
|
|
54868
|
-
if (properties.pattern === 1)
|
|
54869
|
-
return "pattern: multiple values";
|
|
54870
|
-
properties.pattern = 1;
|
|
54871
|
-
if (!$util.isString(message.put))
|
|
54872
|
-
return "put: string expected";
|
|
54873
|
-
}
|
|
54874
|
-
if (message.post != null && message.hasOwnProperty("post")) {
|
|
54875
|
-
if (properties.pattern === 1)
|
|
54876
|
-
return "pattern: multiple values";
|
|
54877
|
-
properties.pattern = 1;
|
|
54878
|
-
if (!$util.isString(message.post))
|
|
54879
|
-
return "post: string expected";
|
|
54880
|
-
}
|
|
54881
|
-
if (message["delete"] != null && message.hasOwnProperty("delete")) {
|
|
54882
|
-
if (properties.pattern === 1)
|
|
54883
|
-
return "pattern: multiple values";
|
|
54884
|
-
properties.pattern = 1;
|
|
54885
|
-
if (!$util.isString(message["delete"]))
|
|
54886
|
-
return "delete: string expected";
|
|
54887
|
-
}
|
|
54888
|
-
if (message.patch != null && message.hasOwnProperty("patch")) {
|
|
54889
|
-
if (properties.pattern === 1)
|
|
54890
|
-
return "pattern: multiple values";
|
|
54891
|
-
properties.pattern = 1;
|
|
54892
|
-
if (!$util.isString(message.patch))
|
|
54893
|
-
return "patch: string expected";
|
|
54894
|
-
}
|
|
54895
|
-
if (message.custom != null && message.hasOwnProperty("custom")) {
|
|
54896
|
-
if (properties.pattern === 1)
|
|
54897
|
-
return "pattern: multiple values";
|
|
54898
|
-
properties.pattern = 1;
|
|
54899
|
-
{
|
|
54900
|
-
var error = $root.google.api.CustomHttpPattern.verify(message.custom);
|
|
54901
|
-
if (error)
|
|
54902
|
-
return "custom." + error;
|
|
54903
|
-
}
|
|
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";
|
|
54904
55264
|
}
|
|
54905
|
-
if (message.
|
|
54906
|
-
if (!$util.isString(message.
|
|
54907
|
-
return "
|
|
54908
|
-
if (message.
|
|
54909
|
-
|
|
54910
|
-
|
|
54911
|
-
|
|
54912
|
-
|
|
54913
|
-
|
|
54914
|
-
|
|
54915
|
-
|
|
54916
|
-
if (error)
|
|
54917
|
-
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;
|
|
54918
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
|
+
}
|
|
54919
55294
|
}
|
|
54920
55295
|
return null;
|
|
54921
55296
|
};
|
|
54922
55297
|
|
|
54923
55298
|
/**
|
|
54924
|
-
* Creates a
|
|
55299
|
+
* Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
|
|
54925
55300
|
* @function fromObject
|
|
54926
|
-
* @memberof google.api.
|
|
55301
|
+
* @memberof google.api.ResourceDescriptor
|
|
54927
55302
|
* @static
|
|
54928
55303
|
* @param {Object.<string,*>} object Plain object
|
|
54929
|
-
* @returns {google.api.
|
|
55304
|
+
* @returns {google.api.ResourceDescriptor} ResourceDescriptor
|
|
54930
55305
|
*/
|
|
54931
|
-
|
|
54932
|
-
if (object instanceof $root.google.api.
|
|
55306
|
+
ResourceDescriptor.fromObject = function fromObject(object) {
|
|
55307
|
+
if (object instanceof $root.google.api.ResourceDescriptor)
|
|
54933
55308
|
return object;
|
|
54934
|
-
var message = new $root.google.api.
|
|
54935
|
-
if (object.
|
|
54936
|
-
message.
|
|
54937
|
-
if (object.
|
|
54938
|
-
|
|
54939
|
-
|
|
54940
|
-
message.
|
|
54941
|
-
|
|
54942
|
-
|
|
54943
|
-
if (object["delete"] != null)
|
|
54944
|
-
message["delete"] = String(object["delete"]);
|
|
54945
|
-
if (object.patch != null)
|
|
54946
|
-
message.patch = String(object.patch);
|
|
54947
|
-
if (object.custom != null) {
|
|
54948
|
-
if (typeof object.custom !== "object")
|
|
54949
|
-
throw TypeError(".google.api.HttpRule.custom: object expected");
|
|
54950
|
-
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]);
|
|
54951
55318
|
}
|
|
54952
|
-
if (object.
|
|
54953
|
-
message.
|
|
54954
|
-
|
|
54955
|
-
|
|
54956
|
-
|
|
54957
|
-
|
|
54958
|
-
|
|
54959
|
-
|
|
54960
|
-
|
|
54961
|
-
|
|
54962
|
-
|
|
54963
|
-
|
|
54964
|
-
|
|
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
|
+
}
|
|
54965
55355
|
}
|
|
54966
55356
|
return message;
|
|
54967
55357
|
};
|
|
54968
55358
|
|
|
54969
55359
|
/**
|
|
54970
|
-
* Creates a plain object from a
|
|
55360
|
+
* Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
|
|
54971
55361
|
* @function toObject
|
|
54972
|
-
* @memberof google.api.
|
|
55362
|
+
* @memberof google.api.ResourceDescriptor
|
|
54973
55363
|
* @static
|
|
54974
|
-
* @param {google.api.
|
|
55364
|
+
* @param {google.api.ResourceDescriptor} message ResourceDescriptor
|
|
54975
55365
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
54976
55366
|
* @returns {Object.<string,*>} Plain object
|
|
54977
55367
|
*/
|
|
54978
|
-
|
|
55368
|
+
ResourceDescriptor.toObject = function toObject(message, options) {
|
|
54979
55369
|
if (!options)
|
|
54980
55370
|
options = {};
|
|
54981
55371
|
var object = {};
|
|
54982
|
-
if (options.arrays || options.defaults)
|
|
54983
|
-
object.
|
|
54984
|
-
|
|
54985
|
-
object.selector = "";
|
|
54986
|
-
object.body = "";
|
|
54987
|
-
object.responseBody = "";
|
|
54988
|
-
}
|
|
54989
|
-
if (message.selector != null && message.hasOwnProperty("selector"))
|
|
54990
|
-
object.selector = message.selector;
|
|
54991
|
-
if (message.get != null && message.hasOwnProperty("get")) {
|
|
54992
|
-
object.get = message.get;
|
|
54993
|
-
if (options.oneofs)
|
|
54994
|
-
object.pattern = "get";
|
|
54995
|
-
}
|
|
54996
|
-
if (message.put != null && message.hasOwnProperty("put")) {
|
|
54997
|
-
object.put = message.put;
|
|
54998
|
-
if (options.oneofs)
|
|
54999
|
-
object.pattern = "put";
|
|
55000
|
-
}
|
|
55001
|
-
if (message.post != null && message.hasOwnProperty("post")) {
|
|
55002
|
-
object.post = message.post;
|
|
55003
|
-
if (options.oneofs)
|
|
55004
|
-
object.pattern = "post";
|
|
55005
|
-
}
|
|
55006
|
-
if (message["delete"] != null && message.hasOwnProperty("delete")) {
|
|
55007
|
-
object["delete"] = message["delete"];
|
|
55008
|
-
if (options.oneofs)
|
|
55009
|
-
object.pattern = "delete";
|
|
55372
|
+
if (options.arrays || options.defaults) {
|
|
55373
|
+
object.pattern = [];
|
|
55374
|
+
object.style = [];
|
|
55010
55375
|
}
|
|
55011
|
-
if (
|
|
55012
|
-
object.
|
|
55013
|
-
|
|
55014
|
-
|
|
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 = "";
|
|
55015
55382
|
}
|
|
55016
|
-
if (message.
|
|
55017
|
-
object.
|
|
55018
|
-
if (message.
|
|
55019
|
-
object.
|
|
55020
|
-
|
|
55021
|
-
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];
|
|
55022
55389
|
}
|
|
55023
|
-
if (message.
|
|
55024
|
-
object.
|
|
55025
|
-
|
|
55026
|
-
|
|
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];
|
|
55027
55402
|
}
|
|
55028
|
-
if (message.responseBody != null && message.hasOwnProperty("responseBody"))
|
|
55029
|
-
object.responseBody = message.responseBody;
|
|
55030
55403
|
return object;
|
|
55031
55404
|
};
|
|
55032
55405
|
|
|
55033
55406
|
/**
|
|
55034
|
-
* Converts this
|
|
55407
|
+
* Converts this ResourceDescriptor to JSON.
|
|
55035
55408
|
* @function toJSON
|
|
55036
|
-
* @memberof google.api.
|
|
55409
|
+
* @memberof google.api.ResourceDescriptor
|
|
55037
55410
|
* @instance
|
|
55038
55411
|
* @returns {Object.<string,*>} JSON object
|
|
55039
55412
|
*/
|
|
55040
|
-
|
|
55413
|
+
ResourceDescriptor.prototype.toJSON = function toJSON() {
|
|
55041
55414
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
55042
55415
|
};
|
|
55043
55416
|
|
|
55044
|
-
|
|
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;
|
|
55045
55448
|
})();
|
|
55046
55449
|
|
|
55047
|
-
api.
|
|
55450
|
+
api.ResourceReference = (function() {
|
|
55048
55451
|
|
|
55049
55452
|
/**
|
|
55050
|
-
* Properties of a
|
|
55453
|
+
* Properties of a ResourceReference.
|
|
55051
55454
|
* @memberof google.api
|
|
55052
|
-
* @interface
|
|
55053
|
-
* @property {string|null} [
|
|
55054
|
-
* @property {string|null} [
|
|
55455
|
+
* @interface IResourceReference
|
|
55456
|
+
* @property {string|null} [type] ResourceReference type
|
|
55457
|
+
* @property {string|null} [childType] ResourceReference childType
|
|
55055
55458
|
*/
|
|
55056
55459
|
|
|
55057
55460
|
/**
|
|
55058
|
-
* Constructs a new
|
|
55461
|
+
* Constructs a new ResourceReference.
|
|
55059
55462
|
* @memberof google.api
|
|
55060
|
-
* @classdesc Represents a
|
|
55061
|
-
* @implements
|
|
55463
|
+
* @classdesc Represents a ResourceReference.
|
|
55464
|
+
* @implements IResourceReference
|
|
55062
55465
|
* @constructor
|
|
55063
|
-
* @param {google.api.
|
|
55466
|
+
* @param {google.api.IResourceReference=} [properties] Properties to set
|
|
55064
55467
|
*/
|
|
55065
|
-
function
|
|
55468
|
+
function ResourceReference(properties) {
|
|
55066
55469
|
if (properties)
|
|
55067
55470
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
55068
55471
|
if (properties[keys[i]] != null)
|
|
@@ -55070,88 +55473,88 @@
|
|
|
55070
55473
|
}
|
|
55071
55474
|
|
|
55072
55475
|
/**
|
|
55073
|
-
*
|
|
55074
|
-
* @member {string}
|
|
55075
|
-
* @memberof google.api.
|
|
55476
|
+
* ResourceReference type.
|
|
55477
|
+
* @member {string} type
|
|
55478
|
+
* @memberof google.api.ResourceReference
|
|
55076
55479
|
* @instance
|
|
55077
55480
|
*/
|
|
55078
|
-
|
|
55481
|
+
ResourceReference.prototype.type = "";
|
|
55079
55482
|
|
|
55080
55483
|
/**
|
|
55081
|
-
*
|
|
55082
|
-
* @member {string}
|
|
55083
|
-
* @memberof google.api.
|
|
55484
|
+
* ResourceReference childType.
|
|
55485
|
+
* @member {string} childType
|
|
55486
|
+
* @memberof google.api.ResourceReference
|
|
55084
55487
|
* @instance
|
|
55085
55488
|
*/
|
|
55086
|
-
|
|
55489
|
+
ResourceReference.prototype.childType = "";
|
|
55087
55490
|
|
|
55088
55491
|
/**
|
|
55089
|
-
* Creates a new
|
|
55492
|
+
* Creates a new ResourceReference instance using the specified properties.
|
|
55090
55493
|
* @function create
|
|
55091
|
-
* @memberof google.api.
|
|
55494
|
+
* @memberof google.api.ResourceReference
|
|
55092
55495
|
* @static
|
|
55093
|
-
* @param {google.api.
|
|
55094
|
-
* @returns {google.api.
|
|
55496
|
+
* @param {google.api.IResourceReference=} [properties] Properties to set
|
|
55497
|
+
* @returns {google.api.ResourceReference} ResourceReference instance
|
|
55095
55498
|
*/
|
|
55096
|
-
|
|
55097
|
-
return new
|
|
55499
|
+
ResourceReference.create = function create(properties) {
|
|
55500
|
+
return new ResourceReference(properties);
|
|
55098
55501
|
};
|
|
55099
55502
|
|
|
55100
55503
|
/**
|
|
55101
|
-
* Encodes the specified
|
|
55504
|
+
* Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
|
|
55102
55505
|
* @function encode
|
|
55103
|
-
* @memberof google.api.
|
|
55506
|
+
* @memberof google.api.ResourceReference
|
|
55104
55507
|
* @static
|
|
55105
|
-
* @param {google.api.
|
|
55508
|
+
* @param {google.api.IResourceReference} message ResourceReference message or plain object to encode
|
|
55106
55509
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
55107
55510
|
* @returns {$protobuf.Writer} Writer
|
|
55108
55511
|
*/
|
|
55109
|
-
|
|
55512
|
+
ResourceReference.encode = function encode(message, writer) {
|
|
55110
55513
|
if (!writer)
|
|
55111
55514
|
writer = $Writer.create();
|
|
55112
|
-
if (message.
|
|
55113
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.
|
|
55114
|
-
if (message.
|
|
55115
|
-
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);
|
|
55116
55519
|
return writer;
|
|
55117
55520
|
};
|
|
55118
55521
|
|
|
55119
55522
|
/**
|
|
55120
|
-
* Encodes the specified
|
|
55523
|
+
* Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
|
|
55121
55524
|
* @function encodeDelimited
|
|
55122
|
-
* @memberof google.api.
|
|
55525
|
+
* @memberof google.api.ResourceReference
|
|
55123
55526
|
* @static
|
|
55124
|
-
* @param {google.api.
|
|
55527
|
+
* @param {google.api.IResourceReference} message ResourceReference message or plain object to encode
|
|
55125
55528
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
55126
55529
|
* @returns {$protobuf.Writer} Writer
|
|
55127
55530
|
*/
|
|
55128
|
-
|
|
55531
|
+
ResourceReference.encodeDelimited = function encodeDelimited(message, writer) {
|
|
55129
55532
|
return this.encode(message, writer).ldelim();
|
|
55130
55533
|
};
|
|
55131
55534
|
|
|
55132
55535
|
/**
|
|
55133
|
-
* Decodes a
|
|
55536
|
+
* Decodes a ResourceReference message from the specified reader or buffer.
|
|
55134
55537
|
* @function decode
|
|
55135
|
-
* @memberof google.api.
|
|
55538
|
+
* @memberof google.api.ResourceReference
|
|
55136
55539
|
* @static
|
|
55137
55540
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
55138
55541
|
* @param {number} [length] Message length if known beforehand
|
|
55139
|
-
* @returns {google.api.
|
|
55542
|
+
* @returns {google.api.ResourceReference} ResourceReference
|
|
55140
55543
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
55141
55544
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
55142
55545
|
*/
|
|
55143
|
-
|
|
55546
|
+
ResourceReference.decode = function decode(reader, length) {
|
|
55144
55547
|
if (!(reader instanceof $Reader))
|
|
55145
55548
|
reader = $Reader.create(reader);
|
|
55146
|
-
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();
|
|
55147
55550
|
while (reader.pos < end) {
|
|
55148
55551
|
var tag = reader.uint32();
|
|
55149
55552
|
switch (tag >>> 3) {
|
|
55150
55553
|
case 1:
|
|
55151
|
-
message.
|
|
55554
|
+
message.type = reader.string();
|
|
55152
55555
|
break;
|
|
55153
55556
|
case 2:
|
|
55154
|
-
message.
|
|
55557
|
+
message.childType = reader.string();
|
|
55155
55558
|
break;
|
|
55156
55559
|
default:
|
|
55157
55560
|
reader.skipType(tag & 7);
|
|
@@ -55162,96 +55565,96 @@
|
|
|
55162
55565
|
};
|
|
55163
55566
|
|
|
55164
55567
|
/**
|
|
55165
|
-
* Decodes a
|
|
55568
|
+
* Decodes a ResourceReference message from the specified reader or buffer, length delimited.
|
|
55166
55569
|
* @function decodeDelimited
|
|
55167
|
-
* @memberof google.api.
|
|
55570
|
+
* @memberof google.api.ResourceReference
|
|
55168
55571
|
* @static
|
|
55169
55572
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
55170
|
-
* @returns {google.api.
|
|
55573
|
+
* @returns {google.api.ResourceReference} ResourceReference
|
|
55171
55574
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
55172
55575
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
55173
55576
|
*/
|
|
55174
|
-
|
|
55577
|
+
ResourceReference.decodeDelimited = function decodeDelimited(reader) {
|
|
55175
55578
|
if (!(reader instanceof $Reader))
|
|
55176
55579
|
reader = new $Reader(reader);
|
|
55177
55580
|
return this.decode(reader, reader.uint32());
|
|
55178
55581
|
};
|
|
55179
55582
|
|
|
55180
55583
|
/**
|
|
55181
|
-
* Verifies a
|
|
55584
|
+
* Verifies a ResourceReference message.
|
|
55182
55585
|
* @function verify
|
|
55183
|
-
* @memberof google.api.
|
|
55586
|
+
* @memberof google.api.ResourceReference
|
|
55184
55587
|
* @static
|
|
55185
55588
|
* @param {Object.<string,*>} message Plain object to verify
|
|
55186
55589
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
55187
55590
|
*/
|
|
55188
|
-
|
|
55591
|
+
ResourceReference.verify = function verify(message) {
|
|
55189
55592
|
if (typeof message !== "object" || message === null)
|
|
55190
55593
|
return "object expected";
|
|
55191
|
-
if (message.
|
|
55192
|
-
if (!$util.isString(message.
|
|
55193
|
-
return "
|
|
55194
|
-
if (message.
|
|
55195
|
-
if (!$util.isString(message.
|
|
55196
|
-
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";
|
|
55197
55600
|
return null;
|
|
55198
55601
|
};
|
|
55199
55602
|
|
|
55200
55603
|
/**
|
|
55201
|
-
* Creates a
|
|
55604
|
+
* Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.
|
|
55202
55605
|
* @function fromObject
|
|
55203
|
-
* @memberof google.api.
|
|
55606
|
+
* @memberof google.api.ResourceReference
|
|
55204
55607
|
* @static
|
|
55205
55608
|
* @param {Object.<string,*>} object Plain object
|
|
55206
|
-
* @returns {google.api.
|
|
55609
|
+
* @returns {google.api.ResourceReference} ResourceReference
|
|
55207
55610
|
*/
|
|
55208
|
-
|
|
55209
|
-
if (object instanceof $root.google.api.
|
|
55611
|
+
ResourceReference.fromObject = function fromObject(object) {
|
|
55612
|
+
if (object instanceof $root.google.api.ResourceReference)
|
|
55210
55613
|
return object;
|
|
55211
|
-
var message = new $root.google.api.
|
|
55212
|
-
if (object.
|
|
55213
|
-
message.
|
|
55214
|
-
if (object.
|
|
55215
|
-
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);
|
|
55216
55619
|
return message;
|
|
55217
55620
|
};
|
|
55218
55621
|
|
|
55219
55622
|
/**
|
|
55220
|
-
* Creates a plain object from a
|
|
55623
|
+
* Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
|
|
55221
55624
|
* @function toObject
|
|
55222
|
-
* @memberof google.api.
|
|
55625
|
+
* @memberof google.api.ResourceReference
|
|
55223
55626
|
* @static
|
|
55224
|
-
* @param {google.api.
|
|
55627
|
+
* @param {google.api.ResourceReference} message ResourceReference
|
|
55225
55628
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
55226
55629
|
* @returns {Object.<string,*>} Plain object
|
|
55227
55630
|
*/
|
|
55228
|
-
|
|
55631
|
+
ResourceReference.toObject = function toObject(message, options) {
|
|
55229
55632
|
if (!options)
|
|
55230
55633
|
options = {};
|
|
55231
55634
|
var object = {};
|
|
55232
55635
|
if (options.defaults) {
|
|
55233
|
-
object.
|
|
55234
|
-
object.
|
|
55636
|
+
object.type = "";
|
|
55637
|
+
object.childType = "";
|
|
55235
55638
|
}
|
|
55236
|
-
if (message.
|
|
55237
|
-
object.
|
|
55238
|
-
if (message.
|
|
55239
|
-
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;
|
|
55240
55643
|
return object;
|
|
55241
55644
|
};
|
|
55242
55645
|
|
|
55243
55646
|
/**
|
|
55244
|
-
* Converts this
|
|
55647
|
+
* Converts this ResourceReference to JSON.
|
|
55245
55648
|
* @function toJSON
|
|
55246
|
-
* @memberof google.api.
|
|
55649
|
+
* @memberof google.api.ResourceReference
|
|
55247
55650
|
* @instance
|
|
55248
55651
|
* @returns {Object.<string,*>} JSON object
|
|
55249
55652
|
*/
|
|
55250
|
-
|
|
55653
|
+
ResourceReference.prototype.toJSON = function toJSON() {
|
|
55251
55654
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
55252
55655
|
};
|
|
55253
55656
|
|
|
55254
|
-
return
|
|
55657
|
+
return ResourceReference;
|
|
55255
55658
|
})();
|
|
55256
55659
|
|
|
55257
55660
|
return api;
|
|
@@ -60784,6 +61187,7 @@
|
|
|
60784
61187
|
case 4:
|
|
60785
61188
|
case 5:
|
|
60786
61189
|
case 6:
|
|
61190
|
+
case 7:
|
|
60787
61191
|
break;
|
|
60788
61192
|
}
|
|
60789
61193
|
}
|
|
@@ -60888,6 +61292,10 @@
|
|
|
60888
61292
|
case 6:
|
|
60889
61293
|
message[".google.api.fieldBehavior"][i] = 6;
|
|
60890
61294
|
break;
|
|
61295
|
+
case "NON_EMPTY_DEFAULT":
|
|
61296
|
+
case 7:
|
|
61297
|
+
message[".google.api.fieldBehavior"][i] = 7;
|
|
61298
|
+
break;
|
|
60891
61299
|
}
|
|
60892
61300
|
}
|
|
60893
61301
|
if (object[".google.api.resourceReference"] != null) {
|
|
@@ -61975,8 +62383,8 @@
|
|
|
61975
62383
|
* @property {boolean|null} [deprecated] MethodOptions deprecated
|
|
61976
62384
|
* @property {google.protobuf.MethodOptions.IdempotencyLevel|null} [idempotencyLevel] MethodOptions idempotencyLevel
|
|
61977
62385
|
* @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] MethodOptions uninterpretedOption
|
|
61978
|
-
* @property {Array.<string>|null} [".google.api.methodSignature"] MethodOptions .google.api.methodSignature
|
|
61979
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
|
|
61980
62388
|
*/
|
|
61981
62389
|
|
|
61982
62390
|
/**
|
|
@@ -62021,20 +62429,20 @@
|
|
|
62021
62429
|
MethodOptions.prototype.uninterpretedOption = $util.emptyArray;
|
|
62022
62430
|
|
|
62023
62431
|
/**
|
|
62024
|
-
* MethodOptions .google.api.
|
|
62025
|
-
* @member {
|
|
62432
|
+
* MethodOptions .google.api.http.
|
|
62433
|
+
* @member {google.api.IHttpRule|null|undefined} .google.api.http
|
|
62026
62434
|
* @memberof google.protobuf.MethodOptions
|
|
62027
62435
|
* @instance
|
|
62028
62436
|
*/
|
|
62029
|
-
MethodOptions.prototype[".google.api.
|
|
62437
|
+
MethodOptions.prototype[".google.api.http"] = null;
|
|
62030
62438
|
|
|
62031
62439
|
/**
|
|
62032
|
-
* MethodOptions .google.api.
|
|
62033
|
-
* @member {
|
|
62440
|
+
* MethodOptions .google.api.methodSignature.
|
|
62441
|
+
* @member {Array.<string>} .google.api.methodSignature
|
|
62034
62442
|
* @memberof google.protobuf.MethodOptions
|
|
62035
62443
|
* @instance
|
|
62036
62444
|
*/
|
|
62037
|
-
MethodOptions.prototype[".google.api.
|
|
62445
|
+
MethodOptions.prototype[".google.api.methodSignature"] = $util.emptyArray;
|
|
62038
62446
|
|
|
62039
62447
|
/**
|
|
62040
62448
|
* Creates a new MethodOptions instance using the specified properties.
|
|
@@ -62117,14 +62525,14 @@
|
|
|
62117
62525
|
message.uninterpretedOption = [];
|
|
62118
62526
|
message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32()));
|
|
62119
62527
|
break;
|
|
62528
|
+
case 72295728:
|
|
62529
|
+
message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32());
|
|
62530
|
+
break;
|
|
62120
62531
|
case 1051:
|
|
62121
62532
|
if (!(message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length))
|
|
62122
62533
|
message[".google.api.methodSignature"] = [];
|
|
62123
62534
|
message[".google.api.methodSignature"].push(reader.string());
|
|
62124
62535
|
break;
|
|
62125
|
-
case 72295728:
|
|
62126
|
-
message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32());
|
|
62127
|
-
break;
|
|
62128
62536
|
default:
|
|
62129
62537
|
reader.skipType(tag & 7);
|
|
62130
62538
|
break;
|
|
@@ -62181,6 +62589,11 @@
|
|
|
62181
62589
|
return "uninterpretedOption." + error;
|
|
62182
62590
|
}
|
|
62183
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
|
+
}
|
|
62184
62597
|
if (message[".google.api.methodSignature"] != null && message.hasOwnProperty(".google.api.methodSignature")) {
|
|
62185
62598
|
if (!Array.isArray(message[".google.api.methodSignature"]))
|
|
62186
62599
|
return ".google.api.methodSignature: array expected";
|
|
@@ -62188,11 +62601,6 @@
|
|
|
62188
62601
|
if (!$util.isString(message[".google.api.methodSignature"][i]))
|
|
62189
62602
|
return ".google.api.methodSignature: string[] expected";
|
|
62190
62603
|
}
|
|
62191
|
-
if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) {
|
|
62192
|
-
var error = $root.google.api.HttpRule.verify(message[".google.api.http"]);
|
|
62193
|
-
if (error)
|
|
62194
|
-
return ".google.api.http." + error;
|
|
62195
|
-
}
|
|
62196
62604
|
return null;
|
|
62197
62605
|
};
|
|
62198
62606
|
|
|
@@ -62234,6 +62642,11 @@
|
|
|
62234
62642
|
message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]);
|
|
62235
62643
|
}
|
|
62236
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
|
+
}
|
|
62237
62650
|
if (object[".google.api.methodSignature"]) {
|
|
62238
62651
|
if (!Array.isArray(object[".google.api.methodSignature"]))
|
|
62239
62652
|
throw TypeError(".google.protobuf.MethodOptions..google.api.methodSignature: array expected");
|
|
@@ -62241,11 +62654,6 @@
|
|
|
62241
62654
|
for (var i = 0; i < object[".google.api.methodSignature"].length; ++i)
|
|
62242
62655
|
message[".google.api.methodSignature"][i] = String(object[".google.api.methodSignature"][i]);
|
|
62243
62656
|
}
|
|
62244
|
-
if (object[".google.api.http"] != null) {
|
|
62245
|
-
if (typeof object[".google.api.http"] !== "object")
|
|
62246
|
-
throw TypeError(".google.protobuf.MethodOptions..google.api.http: object expected");
|
|
62247
|
-
message[".google.api.http"] = $root.google.api.HttpRule.fromObject(object[".google.api.http"]);
|
|
62248
|
-
}
|
|
62249
62657
|
return message;
|
|
62250
62658
|
};
|
|
62251
62659
|
|