@google-cloud/spanner 7.2.0 → 7.3.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 +15 -0
- package/build/protos/google/spanner/admin/database/v1/spanner_database_admin.proto +40 -0
- package/build/protos/google/spanner/v1/spanner.proto +13 -3
- package/build/protos/google/spanner/v1/type.proto +18 -0
- package/build/protos/protos.d.ts +286 -29
- package/build/protos/protos.js +1133 -119
- package/build/protos/protos.json +116 -36
- package/build/src/index.js +2 -1
- package/build/src/transaction.d.ts +5 -1
- package/build/src/transaction.js +5 -1
- package/build/src/v1/database_admin_client.d.ts +42 -2
- package/build/src/v1/database_admin_client.js +37 -10
- package/build/src/v1/instance_admin_client.d.ts +11 -2
- package/build/src/v1/instance_admin_client.js +37 -10
- package/build/src/v1/spanner_client.d.ts +21 -5
- package/build/src/v1/spanner_client.js +43 -13
- package/package.json +5 -5
package/build/protos/protos.js
CHANGED
|
@@ -513,6 +513,38 @@
|
|
|
513
513
|
return FileDescriptorSet;
|
|
514
514
|
})();
|
|
515
515
|
|
|
516
|
+
/**
|
|
517
|
+
* Edition enum.
|
|
518
|
+
* @name google.protobuf.Edition
|
|
519
|
+
* @enum {number}
|
|
520
|
+
* @property {number} EDITION_UNKNOWN=0 EDITION_UNKNOWN value
|
|
521
|
+
* @property {number} EDITION_PROTO2=998 EDITION_PROTO2 value
|
|
522
|
+
* @property {number} EDITION_PROTO3=999 EDITION_PROTO3 value
|
|
523
|
+
* @property {number} EDITION_2023=1000 EDITION_2023 value
|
|
524
|
+
* @property {number} EDITION_2024=1001 EDITION_2024 value
|
|
525
|
+
* @property {number} EDITION_1_TEST_ONLY=1 EDITION_1_TEST_ONLY value
|
|
526
|
+
* @property {number} EDITION_2_TEST_ONLY=2 EDITION_2_TEST_ONLY value
|
|
527
|
+
* @property {number} EDITION_99997_TEST_ONLY=99997 EDITION_99997_TEST_ONLY value
|
|
528
|
+
* @property {number} EDITION_99998_TEST_ONLY=99998 EDITION_99998_TEST_ONLY value
|
|
529
|
+
* @property {number} EDITION_99999_TEST_ONLY=99999 EDITION_99999_TEST_ONLY value
|
|
530
|
+
* @property {number} EDITION_MAX=2147483647 EDITION_MAX value
|
|
531
|
+
*/
|
|
532
|
+
protobuf.Edition = (function() {
|
|
533
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
534
|
+
values[valuesById[0] = "EDITION_UNKNOWN"] = 0;
|
|
535
|
+
values[valuesById[998] = "EDITION_PROTO2"] = 998;
|
|
536
|
+
values[valuesById[999] = "EDITION_PROTO3"] = 999;
|
|
537
|
+
values[valuesById[1000] = "EDITION_2023"] = 1000;
|
|
538
|
+
values[valuesById[1001] = "EDITION_2024"] = 1001;
|
|
539
|
+
values[valuesById[1] = "EDITION_1_TEST_ONLY"] = 1;
|
|
540
|
+
values[valuesById[2] = "EDITION_2_TEST_ONLY"] = 2;
|
|
541
|
+
values[valuesById[99997] = "EDITION_99997_TEST_ONLY"] = 99997;
|
|
542
|
+
values[valuesById[99998] = "EDITION_99998_TEST_ONLY"] = 99998;
|
|
543
|
+
values[valuesById[99999] = "EDITION_99999_TEST_ONLY"] = 99999;
|
|
544
|
+
values[valuesById[2147483647] = "EDITION_MAX"] = 2147483647;
|
|
545
|
+
return values;
|
|
546
|
+
})();
|
|
547
|
+
|
|
516
548
|
protobuf.FileDescriptorProto = (function() {
|
|
517
549
|
|
|
518
550
|
/**
|
|
@@ -531,7 +563,7 @@
|
|
|
531
563
|
* @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options
|
|
532
564
|
* @property {google.protobuf.ISourceCodeInfo|null} [sourceCodeInfo] FileDescriptorProto sourceCodeInfo
|
|
533
565
|
* @property {string|null} [syntax] FileDescriptorProto syntax
|
|
534
|
-
* @property {
|
|
566
|
+
* @property {google.protobuf.Edition|null} [edition] FileDescriptorProto edition
|
|
535
567
|
*/
|
|
536
568
|
|
|
537
569
|
/**
|
|
@@ -654,11 +686,11 @@
|
|
|
654
686
|
|
|
655
687
|
/**
|
|
656
688
|
* FileDescriptorProto edition.
|
|
657
|
-
* @member {
|
|
689
|
+
* @member {google.protobuf.Edition} edition
|
|
658
690
|
* @memberof google.protobuf.FileDescriptorProto
|
|
659
691
|
* @instance
|
|
660
692
|
*/
|
|
661
|
-
FileDescriptorProto.prototype.edition =
|
|
693
|
+
FileDescriptorProto.prototype.edition = 0;
|
|
662
694
|
|
|
663
695
|
/**
|
|
664
696
|
* Creates a new FileDescriptorProto instance using the specified properties.
|
|
@@ -716,7 +748,7 @@
|
|
|
716
748
|
if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax"))
|
|
717
749
|
writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax);
|
|
718
750
|
if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
|
|
719
|
-
writer.uint32(/* id
|
|
751
|
+
writer.uint32(/* id 14, wireType 0 =*/112).int32(message.edition);
|
|
720
752
|
return writer;
|
|
721
753
|
};
|
|
722
754
|
|
|
@@ -823,8 +855,8 @@
|
|
|
823
855
|
message.syntax = reader.string();
|
|
824
856
|
break;
|
|
825
857
|
}
|
|
826
|
-
case
|
|
827
|
-
message.edition = reader.
|
|
858
|
+
case 14: {
|
|
859
|
+
message.edition = reader.int32();
|
|
828
860
|
break;
|
|
829
861
|
}
|
|
830
862
|
default:
|
|
@@ -939,8 +971,22 @@
|
|
|
939
971
|
if (!$util.isString(message.syntax))
|
|
940
972
|
return "syntax: string expected";
|
|
941
973
|
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
942
|
-
|
|
943
|
-
|
|
974
|
+
switch (message.edition) {
|
|
975
|
+
default:
|
|
976
|
+
return "edition: enum value expected";
|
|
977
|
+
case 0:
|
|
978
|
+
case 998:
|
|
979
|
+
case 999:
|
|
980
|
+
case 1000:
|
|
981
|
+
case 1001:
|
|
982
|
+
case 1:
|
|
983
|
+
case 2:
|
|
984
|
+
case 99997:
|
|
985
|
+
case 99998:
|
|
986
|
+
case 99999:
|
|
987
|
+
case 2147483647:
|
|
988
|
+
break;
|
|
989
|
+
}
|
|
944
990
|
return null;
|
|
945
991
|
};
|
|
946
992
|
|
|
@@ -1033,8 +1079,58 @@
|
|
|
1033
1079
|
}
|
|
1034
1080
|
if (object.syntax != null)
|
|
1035
1081
|
message.syntax = String(object.syntax);
|
|
1036
|
-
|
|
1037
|
-
|
|
1082
|
+
switch (object.edition) {
|
|
1083
|
+
default:
|
|
1084
|
+
if (typeof object.edition === "number") {
|
|
1085
|
+
message.edition = object.edition;
|
|
1086
|
+
break;
|
|
1087
|
+
}
|
|
1088
|
+
break;
|
|
1089
|
+
case "EDITION_UNKNOWN":
|
|
1090
|
+
case 0:
|
|
1091
|
+
message.edition = 0;
|
|
1092
|
+
break;
|
|
1093
|
+
case "EDITION_PROTO2":
|
|
1094
|
+
case 998:
|
|
1095
|
+
message.edition = 998;
|
|
1096
|
+
break;
|
|
1097
|
+
case "EDITION_PROTO3":
|
|
1098
|
+
case 999:
|
|
1099
|
+
message.edition = 999;
|
|
1100
|
+
break;
|
|
1101
|
+
case "EDITION_2023":
|
|
1102
|
+
case 1000:
|
|
1103
|
+
message.edition = 1000;
|
|
1104
|
+
break;
|
|
1105
|
+
case "EDITION_2024":
|
|
1106
|
+
case 1001:
|
|
1107
|
+
message.edition = 1001;
|
|
1108
|
+
break;
|
|
1109
|
+
case "EDITION_1_TEST_ONLY":
|
|
1110
|
+
case 1:
|
|
1111
|
+
message.edition = 1;
|
|
1112
|
+
break;
|
|
1113
|
+
case "EDITION_2_TEST_ONLY":
|
|
1114
|
+
case 2:
|
|
1115
|
+
message.edition = 2;
|
|
1116
|
+
break;
|
|
1117
|
+
case "EDITION_99997_TEST_ONLY":
|
|
1118
|
+
case 99997:
|
|
1119
|
+
message.edition = 99997;
|
|
1120
|
+
break;
|
|
1121
|
+
case "EDITION_99998_TEST_ONLY":
|
|
1122
|
+
case 99998:
|
|
1123
|
+
message.edition = 99998;
|
|
1124
|
+
break;
|
|
1125
|
+
case "EDITION_99999_TEST_ONLY":
|
|
1126
|
+
case 99999:
|
|
1127
|
+
message.edition = 99999;
|
|
1128
|
+
break;
|
|
1129
|
+
case "EDITION_MAX":
|
|
1130
|
+
case 2147483647:
|
|
1131
|
+
message.edition = 2147483647;
|
|
1132
|
+
break;
|
|
1133
|
+
}
|
|
1038
1134
|
return message;
|
|
1039
1135
|
};
|
|
1040
1136
|
|
|
@@ -1066,7 +1162,7 @@
|
|
|
1066
1162
|
object.options = null;
|
|
1067
1163
|
object.sourceCodeInfo = null;
|
|
1068
1164
|
object.syntax = "";
|
|
1069
|
-
object.edition = "";
|
|
1165
|
+
object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
|
1070
1166
|
}
|
|
1071
1167
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
1072
1168
|
object.name = message.name;
|
|
@@ -1114,7 +1210,7 @@
|
|
|
1114
1210
|
if (message.syntax != null && message.hasOwnProperty("syntax"))
|
|
1115
1211
|
object.syntax = message.syntax;
|
|
1116
1212
|
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
1117
|
-
object.edition = message.edition;
|
|
1213
|
+
object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
|
|
1118
1214
|
return object;
|
|
1119
1215
|
};
|
|
1120
1216
|
|
|
@@ -3153,8 +3249,8 @@
|
|
|
3153
3249
|
default:
|
|
3154
3250
|
return "label: enum value expected";
|
|
3155
3251
|
case 1:
|
|
3156
|
-
case 2:
|
|
3157
3252
|
case 3:
|
|
3253
|
+
case 2:
|
|
3158
3254
|
break;
|
|
3159
3255
|
}
|
|
3160
3256
|
if (message.type != null && message.hasOwnProperty("type"))
|
|
@@ -3234,14 +3330,14 @@
|
|
|
3234
3330
|
case 1:
|
|
3235
3331
|
message.label = 1;
|
|
3236
3332
|
break;
|
|
3237
|
-
case "LABEL_REQUIRED":
|
|
3238
|
-
case 2:
|
|
3239
|
-
message.label = 2;
|
|
3240
|
-
break;
|
|
3241
3333
|
case "LABEL_REPEATED":
|
|
3242
3334
|
case 3:
|
|
3243
3335
|
message.label = 3;
|
|
3244
3336
|
break;
|
|
3337
|
+
case "LABEL_REQUIRED":
|
|
3338
|
+
case 2:
|
|
3339
|
+
message.label = 2;
|
|
3340
|
+
break;
|
|
3245
3341
|
}
|
|
3246
3342
|
switch (object.type) {
|
|
3247
3343
|
default:
|
|
@@ -3471,14 +3567,14 @@
|
|
|
3471
3567
|
* @name google.protobuf.FieldDescriptorProto.Label
|
|
3472
3568
|
* @enum {number}
|
|
3473
3569
|
* @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value
|
|
3474
|
-
* @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value
|
|
3475
3570
|
* @property {number} LABEL_REPEATED=3 LABEL_REPEATED value
|
|
3571
|
+
* @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value
|
|
3476
3572
|
*/
|
|
3477
3573
|
FieldDescriptorProto.Label = (function() {
|
|
3478
3574
|
var valuesById = {}, values = Object.create(valuesById);
|
|
3479
3575
|
values[valuesById[1] = "LABEL_OPTIONAL"] = 1;
|
|
3480
|
-
values[valuesById[2] = "LABEL_REQUIRED"] = 2;
|
|
3481
3576
|
values[valuesById[3] = "LABEL_REPEATED"] = 3;
|
|
3577
|
+
values[valuesById[2] = "LABEL_REQUIRED"] = 2;
|
|
3482
3578
|
return values;
|
|
3483
3579
|
})();
|
|
3484
3580
|
|
|
@@ -5177,7 +5273,6 @@
|
|
|
5177
5273
|
* @property {boolean|null} [ccGenericServices] FileOptions ccGenericServices
|
|
5178
5274
|
* @property {boolean|null} [javaGenericServices] FileOptions javaGenericServices
|
|
5179
5275
|
* @property {boolean|null} [pyGenericServices] FileOptions pyGenericServices
|
|
5180
|
-
* @property {boolean|null} [phpGenericServices] FileOptions phpGenericServices
|
|
5181
5276
|
* @property {boolean|null} [deprecated] FileOptions deprecated
|
|
5182
5277
|
* @property {boolean|null} [ccEnableArenas] FileOptions ccEnableArenas
|
|
5183
5278
|
* @property {string|null} [objcClassPrefix] FileOptions objcClassPrefix
|
|
@@ -5289,14 +5384,6 @@
|
|
|
5289
5384
|
*/
|
|
5290
5385
|
FileOptions.prototype.pyGenericServices = false;
|
|
5291
5386
|
|
|
5292
|
-
/**
|
|
5293
|
-
* FileOptions phpGenericServices.
|
|
5294
|
-
* @member {boolean} phpGenericServices
|
|
5295
|
-
* @memberof google.protobuf.FileOptions
|
|
5296
|
-
* @instance
|
|
5297
|
-
*/
|
|
5298
|
-
FileOptions.prototype.phpGenericServices = false;
|
|
5299
|
-
|
|
5300
5387
|
/**
|
|
5301
5388
|
* FileOptions deprecated.
|
|
5302
5389
|
* @member {boolean} deprecated
|
|
@@ -5451,8 +5538,6 @@
|
|
|
5451
5538
|
writer.uint32(/* id 40, wireType 2 =*/322).string(message.phpClassPrefix);
|
|
5452
5539
|
if (message.phpNamespace != null && Object.hasOwnProperty.call(message, "phpNamespace"))
|
|
5453
5540
|
writer.uint32(/* id 41, wireType 2 =*/330).string(message.phpNamespace);
|
|
5454
|
-
if (message.phpGenericServices != null && Object.hasOwnProperty.call(message, "phpGenericServices"))
|
|
5455
|
-
writer.uint32(/* id 42, wireType 0 =*/336).bool(message.phpGenericServices);
|
|
5456
5541
|
if (message.phpMetadataNamespace != null && Object.hasOwnProperty.call(message, "phpMetadataNamespace"))
|
|
5457
5542
|
writer.uint32(/* id 44, wireType 2 =*/354).string(message.phpMetadataNamespace);
|
|
5458
5543
|
if (message.rubyPackage != null && Object.hasOwnProperty.call(message, "rubyPackage"))
|
|
@@ -5539,10 +5624,6 @@
|
|
|
5539
5624
|
message.pyGenericServices = reader.bool();
|
|
5540
5625
|
break;
|
|
5541
5626
|
}
|
|
5542
|
-
case 42: {
|
|
5543
|
-
message.phpGenericServices = reader.bool();
|
|
5544
|
-
break;
|
|
5545
|
-
}
|
|
5546
5627
|
case 23: {
|
|
5547
5628
|
message.deprecated = reader.bool();
|
|
5548
5629
|
break;
|
|
@@ -5666,9 +5747,6 @@
|
|
|
5666
5747
|
if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices"))
|
|
5667
5748
|
if (typeof message.pyGenericServices !== "boolean")
|
|
5668
5749
|
return "pyGenericServices: boolean expected";
|
|
5669
|
-
if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices"))
|
|
5670
|
-
if (typeof message.phpGenericServices !== "boolean")
|
|
5671
|
-
return "phpGenericServices: boolean expected";
|
|
5672
5750
|
if (message.deprecated != null && message.hasOwnProperty("deprecated"))
|
|
5673
5751
|
if (typeof message.deprecated !== "boolean")
|
|
5674
5752
|
return "deprecated: boolean expected";
|
|
@@ -5772,8 +5850,6 @@
|
|
|
5772
5850
|
message.javaGenericServices = Boolean(object.javaGenericServices);
|
|
5773
5851
|
if (object.pyGenericServices != null)
|
|
5774
5852
|
message.pyGenericServices = Boolean(object.pyGenericServices);
|
|
5775
|
-
if (object.phpGenericServices != null)
|
|
5776
|
-
message.phpGenericServices = Boolean(object.phpGenericServices);
|
|
5777
5853
|
if (object.deprecated != null)
|
|
5778
5854
|
message.deprecated = Boolean(object.deprecated);
|
|
5779
5855
|
if (object.ccEnableArenas != null)
|
|
@@ -5855,7 +5931,6 @@
|
|
|
5855
5931
|
object.swiftPrefix = "";
|
|
5856
5932
|
object.phpClassPrefix = "";
|
|
5857
5933
|
object.phpNamespace = "";
|
|
5858
|
-
object.phpGenericServices = false;
|
|
5859
5934
|
object.phpMetadataNamespace = "";
|
|
5860
5935
|
object.rubyPackage = "";
|
|
5861
5936
|
object.features = null;
|
|
@@ -5894,8 +5969,6 @@
|
|
|
5894
5969
|
object.phpClassPrefix = message.phpClassPrefix;
|
|
5895
5970
|
if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace"))
|
|
5896
5971
|
object.phpNamespace = message.phpNamespace;
|
|
5897
|
-
if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices"))
|
|
5898
|
-
object.phpGenericServices = message.phpGenericServices;
|
|
5899
5972
|
if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace"))
|
|
5900
5973
|
object.phpMetadataNamespace = message.phpMetadataNamespace;
|
|
5901
5974
|
if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage"))
|
|
@@ -6830,6 +6903,7 @@
|
|
|
6830
6903
|
case 5:
|
|
6831
6904
|
case 6:
|
|
6832
6905
|
case 7:
|
|
6906
|
+
case 8:
|
|
6833
6907
|
break;
|
|
6834
6908
|
}
|
|
6835
6909
|
}
|
|
@@ -7046,6 +7120,10 @@
|
|
|
7046
7120
|
case 7:
|
|
7047
7121
|
message[".google.api.fieldBehavior"][i] = 7;
|
|
7048
7122
|
break;
|
|
7123
|
+
case "IDENTIFIER":
|
|
7124
|
+
case 8:
|
|
7125
|
+
message[".google.api.fieldBehavior"][i] = 8;
|
|
7126
|
+
break;
|
|
7049
7127
|
}
|
|
7050
7128
|
}
|
|
7051
7129
|
if (object[".google.api.resourceReference"] != null) {
|
|
@@ -7243,7 +7321,7 @@
|
|
|
7243
7321
|
* Properties of an EditionDefault.
|
|
7244
7322
|
* @memberof google.protobuf.FieldOptions
|
|
7245
7323
|
* @interface IEditionDefault
|
|
7246
|
-
* @property {
|
|
7324
|
+
* @property {google.protobuf.Edition|null} [edition] EditionDefault edition
|
|
7247
7325
|
* @property {string|null} [value] EditionDefault value
|
|
7248
7326
|
*/
|
|
7249
7327
|
|
|
@@ -7264,11 +7342,11 @@
|
|
|
7264
7342
|
|
|
7265
7343
|
/**
|
|
7266
7344
|
* EditionDefault edition.
|
|
7267
|
-
* @member {
|
|
7345
|
+
* @member {google.protobuf.Edition} edition
|
|
7268
7346
|
* @memberof google.protobuf.FieldOptions.EditionDefault
|
|
7269
7347
|
* @instance
|
|
7270
7348
|
*/
|
|
7271
|
-
EditionDefault.prototype.edition =
|
|
7349
|
+
EditionDefault.prototype.edition = 0;
|
|
7272
7350
|
|
|
7273
7351
|
/**
|
|
7274
7352
|
* EditionDefault value.
|
|
@@ -7302,10 +7380,10 @@
|
|
|
7302
7380
|
EditionDefault.encode = function encode(message, writer) {
|
|
7303
7381
|
if (!writer)
|
|
7304
7382
|
writer = $Writer.create();
|
|
7305
|
-
if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
|
|
7306
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.edition);
|
|
7307
7383
|
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
7308
7384
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.value);
|
|
7385
|
+
if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
|
|
7386
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.edition);
|
|
7309
7387
|
return writer;
|
|
7310
7388
|
};
|
|
7311
7389
|
|
|
@@ -7340,8 +7418,8 @@
|
|
|
7340
7418
|
while (reader.pos < end) {
|
|
7341
7419
|
var tag = reader.uint32();
|
|
7342
7420
|
switch (tag >>> 3) {
|
|
7343
|
-
case
|
|
7344
|
-
message.edition = reader.
|
|
7421
|
+
case 3: {
|
|
7422
|
+
message.edition = reader.int32();
|
|
7345
7423
|
break;
|
|
7346
7424
|
}
|
|
7347
7425
|
case 2: {
|
|
@@ -7384,8 +7462,22 @@
|
|
|
7384
7462
|
if (typeof message !== "object" || message === null)
|
|
7385
7463
|
return "object expected";
|
|
7386
7464
|
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
7387
|
-
|
|
7388
|
-
|
|
7465
|
+
switch (message.edition) {
|
|
7466
|
+
default:
|
|
7467
|
+
return "edition: enum value expected";
|
|
7468
|
+
case 0:
|
|
7469
|
+
case 998:
|
|
7470
|
+
case 999:
|
|
7471
|
+
case 1000:
|
|
7472
|
+
case 1001:
|
|
7473
|
+
case 1:
|
|
7474
|
+
case 2:
|
|
7475
|
+
case 99997:
|
|
7476
|
+
case 99998:
|
|
7477
|
+
case 99999:
|
|
7478
|
+
case 2147483647:
|
|
7479
|
+
break;
|
|
7480
|
+
}
|
|
7389
7481
|
if (message.value != null && message.hasOwnProperty("value"))
|
|
7390
7482
|
if (!$util.isString(message.value))
|
|
7391
7483
|
return "value: string expected";
|
|
@@ -7404,8 +7496,58 @@
|
|
|
7404
7496
|
if (object instanceof $root.google.protobuf.FieldOptions.EditionDefault)
|
|
7405
7497
|
return object;
|
|
7406
7498
|
var message = new $root.google.protobuf.FieldOptions.EditionDefault();
|
|
7407
|
-
|
|
7408
|
-
|
|
7499
|
+
switch (object.edition) {
|
|
7500
|
+
default:
|
|
7501
|
+
if (typeof object.edition === "number") {
|
|
7502
|
+
message.edition = object.edition;
|
|
7503
|
+
break;
|
|
7504
|
+
}
|
|
7505
|
+
break;
|
|
7506
|
+
case "EDITION_UNKNOWN":
|
|
7507
|
+
case 0:
|
|
7508
|
+
message.edition = 0;
|
|
7509
|
+
break;
|
|
7510
|
+
case "EDITION_PROTO2":
|
|
7511
|
+
case 998:
|
|
7512
|
+
message.edition = 998;
|
|
7513
|
+
break;
|
|
7514
|
+
case "EDITION_PROTO3":
|
|
7515
|
+
case 999:
|
|
7516
|
+
message.edition = 999;
|
|
7517
|
+
break;
|
|
7518
|
+
case "EDITION_2023":
|
|
7519
|
+
case 1000:
|
|
7520
|
+
message.edition = 1000;
|
|
7521
|
+
break;
|
|
7522
|
+
case "EDITION_2024":
|
|
7523
|
+
case 1001:
|
|
7524
|
+
message.edition = 1001;
|
|
7525
|
+
break;
|
|
7526
|
+
case "EDITION_1_TEST_ONLY":
|
|
7527
|
+
case 1:
|
|
7528
|
+
message.edition = 1;
|
|
7529
|
+
break;
|
|
7530
|
+
case "EDITION_2_TEST_ONLY":
|
|
7531
|
+
case 2:
|
|
7532
|
+
message.edition = 2;
|
|
7533
|
+
break;
|
|
7534
|
+
case "EDITION_99997_TEST_ONLY":
|
|
7535
|
+
case 99997:
|
|
7536
|
+
message.edition = 99997;
|
|
7537
|
+
break;
|
|
7538
|
+
case "EDITION_99998_TEST_ONLY":
|
|
7539
|
+
case 99998:
|
|
7540
|
+
message.edition = 99998;
|
|
7541
|
+
break;
|
|
7542
|
+
case "EDITION_99999_TEST_ONLY":
|
|
7543
|
+
case 99999:
|
|
7544
|
+
message.edition = 99999;
|
|
7545
|
+
break;
|
|
7546
|
+
case "EDITION_MAX":
|
|
7547
|
+
case 2147483647:
|
|
7548
|
+
message.edition = 2147483647;
|
|
7549
|
+
break;
|
|
7550
|
+
}
|
|
7409
7551
|
if (object.value != null)
|
|
7410
7552
|
message.value = String(object.value);
|
|
7411
7553
|
return message;
|
|
@@ -7425,13 +7567,13 @@
|
|
|
7425
7567
|
options = {};
|
|
7426
7568
|
var object = {};
|
|
7427
7569
|
if (options.defaults) {
|
|
7428
|
-
object.edition = "";
|
|
7429
7570
|
object.value = "";
|
|
7571
|
+
object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
|
7430
7572
|
}
|
|
7431
|
-
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
7432
|
-
object.edition = message.edition;
|
|
7433
7573
|
if (message.value != null && message.hasOwnProperty("value"))
|
|
7434
7574
|
object.value = message.value;
|
|
7575
|
+
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
7576
|
+
object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
|
|
7435
7577
|
return object;
|
|
7436
7578
|
};
|
|
7437
7579
|
|
|
@@ -9739,10 +9881,9 @@
|
|
|
9739
9881
|
* @property {google.protobuf.FeatureSet.FieldPresence|null} [fieldPresence] FeatureSet fieldPresence
|
|
9740
9882
|
* @property {google.protobuf.FeatureSet.EnumType|null} [enumType] FeatureSet enumType
|
|
9741
9883
|
* @property {google.protobuf.FeatureSet.RepeatedFieldEncoding|null} [repeatedFieldEncoding] FeatureSet repeatedFieldEncoding
|
|
9742
|
-
* @property {google.protobuf.FeatureSet.
|
|
9884
|
+
* @property {google.protobuf.FeatureSet.Utf8Validation|null} [utf8Validation] FeatureSet utf8Validation
|
|
9743
9885
|
* @property {google.protobuf.FeatureSet.MessageEncoding|null} [messageEncoding] FeatureSet messageEncoding
|
|
9744
9886
|
* @property {google.protobuf.FeatureSet.JsonFormat|null} [jsonFormat] FeatureSet jsonFormat
|
|
9745
|
-
* @property {google.protobuf.IFeatureSet|null} [rawFeatures] FeatureSet rawFeatures
|
|
9746
9887
|
*/
|
|
9747
9888
|
|
|
9748
9889
|
/**
|
|
@@ -9785,12 +9926,12 @@
|
|
|
9785
9926
|
FeatureSet.prototype.repeatedFieldEncoding = 0;
|
|
9786
9927
|
|
|
9787
9928
|
/**
|
|
9788
|
-
* FeatureSet
|
|
9789
|
-
* @member {google.protobuf.FeatureSet.
|
|
9929
|
+
* FeatureSet utf8Validation.
|
|
9930
|
+
* @member {google.protobuf.FeatureSet.Utf8Validation} utf8Validation
|
|
9790
9931
|
* @memberof google.protobuf.FeatureSet
|
|
9791
9932
|
* @instance
|
|
9792
9933
|
*/
|
|
9793
|
-
FeatureSet.prototype.
|
|
9934
|
+
FeatureSet.prototype.utf8Validation = 0;
|
|
9794
9935
|
|
|
9795
9936
|
/**
|
|
9796
9937
|
* FeatureSet messageEncoding.
|
|
@@ -9808,14 +9949,6 @@
|
|
|
9808
9949
|
*/
|
|
9809
9950
|
FeatureSet.prototype.jsonFormat = 0;
|
|
9810
9951
|
|
|
9811
|
-
/**
|
|
9812
|
-
* FeatureSet rawFeatures.
|
|
9813
|
-
* @member {google.protobuf.IFeatureSet|null|undefined} rawFeatures
|
|
9814
|
-
* @memberof google.protobuf.FeatureSet
|
|
9815
|
-
* @instance
|
|
9816
|
-
*/
|
|
9817
|
-
FeatureSet.prototype.rawFeatures = null;
|
|
9818
|
-
|
|
9819
9952
|
/**
|
|
9820
9953
|
* Creates a new FeatureSet instance using the specified properties.
|
|
9821
9954
|
* @function create
|
|
@@ -9846,14 +9979,12 @@
|
|
|
9846
9979
|
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.enumType);
|
|
9847
9980
|
if (message.repeatedFieldEncoding != null && Object.hasOwnProperty.call(message, "repeatedFieldEncoding"))
|
|
9848
9981
|
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.repeatedFieldEncoding);
|
|
9849
|
-
if (message.
|
|
9850
|
-
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.
|
|
9982
|
+
if (message.utf8Validation != null && Object.hasOwnProperty.call(message, "utf8Validation"))
|
|
9983
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.utf8Validation);
|
|
9851
9984
|
if (message.messageEncoding != null && Object.hasOwnProperty.call(message, "messageEncoding"))
|
|
9852
9985
|
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.messageEncoding);
|
|
9853
9986
|
if (message.jsonFormat != null && Object.hasOwnProperty.call(message, "jsonFormat"))
|
|
9854
9987
|
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jsonFormat);
|
|
9855
|
-
if (message.rawFeatures != null && Object.hasOwnProperty.call(message, "rawFeatures"))
|
|
9856
|
-
$root.google.protobuf.FeatureSet.encode(message.rawFeatures, writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
|
|
9857
9988
|
return writer;
|
|
9858
9989
|
};
|
|
9859
9990
|
|
|
@@ -9901,7 +10032,7 @@
|
|
|
9901
10032
|
break;
|
|
9902
10033
|
}
|
|
9903
10034
|
case 4: {
|
|
9904
|
-
message.
|
|
10035
|
+
message.utf8Validation = reader.int32();
|
|
9905
10036
|
break;
|
|
9906
10037
|
}
|
|
9907
10038
|
case 5: {
|
|
@@ -9912,10 +10043,6 @@
|
|
|
9912
10043
|
message.jsonFormat = reader.int32();
|
|
9913
10044
|
break;
|
|
9914
10045
|
}
|
|
9915
|
-
case 999: {
|
|
9916
|
-
message.rawFeatures = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
|
9917
|
-
break;
|
|
9918
|
-
}
|
|
9919
10046
|
default:
|
|
9920
10047
|
reader.skipType(tag & 7);
|
|
9921
10048
|
break;
|
|
@@ -9979,12 +10106,11 @@
|
|
|
9979
10106
|
case 2:
|
|
9980
10107
|
break;
|
|
9981
10108
|
}
|
|
9982
|
-
if (message.
|
|
9983
|
-
switch (message.
|
|
10109
|
+
if (message.utf8Validation != null && message.hasOwnProperty("utf8Validation"))
|
|
10110
|
+
switch (message.utf8Validation) {
|
|
9984
10111
|
default:
|
|
9985
|
-
return "
|
|
10112
|
+
return "utf8Validation: enum value expected";
|
|
9986
10113
|
case 0:
|
|
9987
|
-
case 1:
|
|
9988
10114
|
case 2:
|
|
9989
10115
|
case 3:
|
|
9990
10116
|
break;
|
|
@@ -10007,11 +10133,6 @@
|
|
|
10007
10133
|
case 2:
|
|
10008
10134
|
break;
|
|
10009
10135
|
}
|
|
10010
|
-
if (message.rawFeatures != null && message.hasOwnProperty("rawFeatures")) {
|
|
10011
|
-
var error = $root.google.protobuf.FeatureSet.verify(message.rawFeatures);
|
|
10012
|
-
if (error)
|
|
10013
|
-
return "rawFeatures." + error;
|
|
10014
|
-
}
|
|
10015
10136
|
return null;
|
|
10016
10137
|
};
|
|
10017
10138
|
|
|
@@ -10091,28 +10212,24 @@
|
|
|
10091
10212
|
message.repeatedFieldEncoding = 2;
|
|
10092
10213
|
break;
|
|
10093
10214
|
}
|
|
10094
|
-
switch (object.
|
|
10215
|
+
switch (object.utf8Validation) {
|
|
10095
10216
|
default:
|
|
10096
|
-
if (typeof object.
|
|
10097
|
-
message.
|
|
10217
|
+
if (typeof object.utf8Validation === "number") {
|
|
10218
|
+
message.utf8Validation = object.utf8Validation;
|
|
10098
10219
|
break;
|
|
10099
10220
|
}
|
|
10100
10221
|
break;
|
|
10101
|
-
case "
|
|
10222
|
+
case "UTF8_VALIDATION_UNKNOWN":
|
|
10102
10223
|
case 0:
|
|
10103
|
-
message.
|
|
10224
|
+
message.utf8Validation = 0;
|
|
10104
10225
|
break;
|
|
10105
|
-
case "
|
|
10106
|
-
case 1:
|
|
10107
|
-
message.stringFieldValidation = 1;
|
|
10108
|
-
break;
|
|
10109
|
-
case "HINT":
|
|
10226
|
+
case "VERIFY":
|
|
10110
10227
|
case 2:
|
|
10111
|
-
message.
|
|
10228
|
+
message.utf8Validation = 2;
|
|
10112
10229
|
break;
|
|
10113
10230
|
case "NONE":
|
|
10114
10231
|
case 3:
|
|
10115
|
-
message.
|
|
10232
|
+
message.utf8Validation = 3;
|
|
10116
10233
|
break;
|
|
10117
10234
|
}
|
|
10118
10235
|
switch (object.messageEncoding) {
|
|
@@ -10155,11 +10272,6 @@
|
|
|
10155
10272
|
message.jsonFormat = 2;
|
|
10156
10273
|
break;
|
|
10157
10274
|
}
|
|
10158
|
-
if (object.rawFeatures != null) {
|
|
10159
|
-
if (typeof object.rawFeatures !== "object")
|
|
10160
|
-
throw TypeError(".google.protobuf.FeatureSet.rawFeatures: object expected");
|
|
10161
|
-
message.rawFeatures = $root.google.protobuf.FeatureSet.fromObject(object.rawFeatures);
|
|
10162
|
-
}
|
|
10163
10275
|
return message;
|
|
10164
10276
|
};
|
|
10165
10277
|
|
|
@@ -10180,10 +10292,9 @@
|
|
|
10180
10292
|
object.fieldPresence = options.enums === String ? "FIELD_PRESENCE_UNKNOWN" : 0;
|
|
10181
10293
|
object.enumType = options.enums === String ? "ENUM_TYPE_UNKNOWN" : 0;
|
|
10182
10294
|
object.repeatedFieldEncoding = options.enums === String ? "REPEATED_FIELD_ENCODING_UNKNOWN" : 0;
|
|
10183
|
-
object.
|
|
10295
|
+
object.utf8Validation = options.enums === String ? "UTF8_VALIDATION_UNKNOWN" : 0;
|
|
10184
10296
|
object.messageEncoding = options.enums === String ? "MESSAGE_ENCODING_UNKNOWN" : 0;
|
|
10185
10297
|
object.jsonFormat = options.enums === String ? "JSON_FORMAT_UNKNOWN" : 0;
|
|
10186
|
-
object.rawFeatures = null;
|
|
10187
10298
|
}
|
|
10188
10299
|
if (message.fieldPresence != null && message.hasOwnProperty("fieldPresence"))
|
|
10189
10300
|
object.fieldPresence = options.enums === String ? $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] === undefined ? message.fieldPresence : $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] : message.fieldPresence;
|
|
@@ -10191,14 +10302,12 @@
|
|
|
10191
10302
|
object.enumType = options.enums === String ? $root.google.protobuf.FeatureSet.EnumType[message.enumType] === undefined ? message.enumType : $root.google.protobuf.FeatureSet.EnumType[message.enumType] : message.enumType;
|
|
10192
10303
|
if (message.repeatedFieldEncoding != null && message.hasOwnProperty("repeatedFieldEncoding"))
|
|
10193
10304
|
object.repeatedFieldEncoding = options.enums === String ? $root.google.protobuf.FeatureSet.RepeatedFieldEncoding[message.repeatedFieldEncoding] === undefined ? message.repeatedFieldEncoding : $root.google.protobuf.FeatureSet.RepeatedFieldEncoding[message.repeatedFieldEncoding] : message.repeatedFieldEncoding;
|
|
10194
|
-
if (message.
|
|
10195
|
-
object.
|
|
10305
|
+
if (message.utf8Validation != null && message.hasOwnProperty("utf8Validation"))
|
|
10306
|
+
object.utf8Validation = options.enums === String ? $root.google.protobuf.FeatureSet.Utf8Validation[message.utf8Validation] === undefined ? message.utf8Validation : $root.google.protobuf.FeatureSet.Utf8Validation[message.utf8Validation] : message.utf8Validation;
|
|
10196
10307
|
if (message.messageEncoding != null && message.hasOwnProperty("messageEncoding"))
|
|
10197
10308
|
object.messageEncoding = options.enums === String ? $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] === undefined ? message.messageEncoding : $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] : message.messageEncoding;
|
|
10198
10309
|
if (message.jsonFormat != null && message.hasOwnProperty("jsonFormat"))
|
|
10199
10310
|
object.jsonFormat = options.enums === String ? $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] === undefined ? message.jsonFormat : $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] : message.jsonFormat;
|
|
10200
|
-
if (message.rawFeatures != null && message.hasOwnProperty("rawFeatures"))
|
|
10201
|
-
object.rawFeatures = $root.google.protobuf.FeatureSet.toObject(message.rawFeatures, options);
|
|
10202
10311
|
return object;
|
|
10203
10312
|
};
|
|
10204
10313
|
|
|
@@ -10279,19 +10388,17 @@
|
|
|
10279
10388
|
})();
|
|
10280
10389
|
|
|
10281
10390
|
/**
|
|
10282
|
-
*
|
|
10283
|
-
* @name google.protobuf.FeatureSet.
|
|
10391
|
+
* Utf8Validation enum.
|
|
10392
|
+
* @name google.protobuf.FeatureSet.Utf8Validation
|
|
10284
10393
|
* @enum {number}
|
|
10285
|
-
* @property {number}
|
|
10286
|
-
* @property {number}
|
|
10287
|
-
* @property {number} HINT=2 HINT value
|
|
10394
|
+
* @property {number} UTF8_VALIDATION_UNKNOWN=0 UTF8_VALIDATION_UNKNOWN value
|
|
10395
|
+
* @property {number} VERIFY=2 VERIFY value
|
|
10288
10396
|
* @property {number} NONE=3 NONE value
|
|
10289
10397
|
*/
|
|
10290
|
-
FeatureSet.
|
|
10398
|
+
FeatureSet.Utf8Validation = (function() {
|
|
10291
10399
|
var valuesById = {}, values = Object.create(valuesById);
|
|
10292
|
-
values[valuesById[0] = "
|
|
10293
|
-
values[valuesById[
|
|
10294
|
-
values[valuesById[2] = "HINT"] = 2;
|
|
10400
|
+
values[valuesById[0] = "UTF8_VALIDATION_UNKNOWN"] = 0;
|
|
10401
|
+
values[valuesById[2] = "VERIFY"] = 2;
|
|
10295
10402
|
values[valuesById[3] = "NONE"] = 3;
|
|
10296
10403
|
return values;
|
|
10297
10404
|
})();
|
|
@@ -10331,6 +10438,702 @@
|
|
|
10331
10438
|
return FeatureSet;
|
|
10332
10439
|
})();
|
|
10333
10440
|
|
|
10441
|
+
protobuf.FeatureSetDefaults = (function() {
|
|
10442
|
+
|
|
10443
|
+
/**
|
|
10444
|
+
* Properties of a FeatureSetDefaults.
|
|
10445
|
+
* @memberof google.protobuf
|
|
10446
|
+
* @interface IFeatureSetDefaults
|
|
10447
|
+
* @property {Array.<google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault>|null} [defaults] FeatureSetDefaults defaults
|
|
10448
|
+
* @property {google.protobuf.Edition|null} [minimumEdition] FeatureSetDefaults minimumEdition
|
|
10449
|
+
* @property {google.protobuf.Edition|null} [maximumEdition] FeatureSetDefaults maximumEdition
|
|
10450
|
+
*/
|
|
10451
|
+
|
|
10452
|
+
/**
|
|
10453
|
+
* Constructs a new FeatureSetDefaults.
|
|
10454
|
+
* @memberof google.protobuf
|
|
10455
|
+
* @classdesc Represents a FeatureSetDefaults.
|
|
10456
|
+
* @implements IFeatureSetDefaults
|
|
10457
|
+
* @constructor
|
|
10458
|
+
* @param {google.protobuf.IFeatureSetDefaults=} [properties] Properties to set
|
|
10459
|
+
*/
|
|
10460
|
+
function FeatureSetDefaults(properties) {
|
|
10461
|
+
this.defaults = [];
|
|
10462
|
+
if (properties)
|
|
10463
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
10464
|
+
if (properties[keys[i]] != null)
|
|
10465
|
+
this[keys[i]] = properties[keys[i]];
|
|
10466
|
+
}
|
|
10467
|
+
|
|
10468
|
+
/**
|
|
10469
|
+
* FeatureSetDefaults defaults.
|
|
10470
|
+
* @member {Array.<google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault>} defaults
|
|
10471
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
|
10472
|
+
* @instance
|
|
10473
|
+
*/
|
|
10474
|
+
FeatureSetDefaults.prototype.defaults = $util.emptyArray;
|
|
10475
|
+
|
|
10476
|
+
/**
|
|
10477
|
+
* FeatureSetDefaults minimumEdition.
|
|
10478
|
+
* @member {google.protobuf.Edition} minimumEdition
|
|
10479
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
|
10480
|
+
* @instance
|
|
10481
|
+
*/
|
|
10482
|
+
FeatureSetDefaults.prototype.minimumEdition = 0;
|
|
10483
|
+
|
|
10484
|
+
/**
|
|
10485
|
+
* FeatureSetDefaults maximumEdition.
|
|
10486
|
+
* @member {google.protobuf.Edition} maximumEdition
|
|
10487
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
|
10488
|
+
* @instance
|
|
10489
|
+
*/
|
|
10490
|
+
FeatureSetDefaults.prototype.maximumEdition = 0;
|
|
10491
|
+
|
|
10492
|
+
/**
|
|
10493
|
+
* Creates a new FeatureSetDefaults instance using the specified properties.
|
|
10494
|
+
* @function create
|
|
10495
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
|
10496
|
+
* @static
|
|
10497
|
+
* @param {google.protobuf.IFeatureSetDefaults=} [properties] Properties to set
|
|
10498
|
+
* @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults instance
|
|
10499
|
+
*/
|
|
10500
|
+
FeatureSetDefaults.create = function create(properties) {
|
|
10501
|
+
return new FeatureSetDefaults(properties);
|
|
10502
|
+
};
|
|
10503
|
+
|
|
10504
|
+
/**
|
|
10505
|
+
* Encodes the specified FeatureSetDefaults message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages.
|
|
10506
|
+
* @function encode
|
|
10507
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
|
10508
|
+
* @static
|
|
10509
|
+
* @param {google.protobuf.IFeatureSetDefaults} message FeatureSetDefaults message or plain object to encode
|
|
10510
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10511
|
+
* @returns {$protobuf.Writer} Writer
|
|
10512
|
+
*/
|
|
10513
|
+
FeatureSetDefaults.encode = function encode(message, writer) {
|
|
10514
|
+
if (!writer)
|
|
10515
|
+
writer = $Writer.create();
|
|
10516
|
+
if (message.defaults != null && message.defaults.length)
|
|
10517
|
+
for (var i = 0; i < message.defaults.length; ++i)
|
|
10518
|
+
$root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.encode(message.defaults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
10519
|
+
if (message.minimumEdition != null && Object.hasOwnProperty.call(message, "minimumEdition"))
|
|
10520
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.minimumEdition);
|
|
10521
|
+
if (message.maximumEdition != null && Object.hasOwnProperty.call(message, "maximumEdition"))
|
|
10522
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.maximumEdition);
|
|
10523
|
+
return writer;
|
|
10524
|
+
};
|
|
10525
|
+
|
|
10526
|
+
/**
|
|
10527
|
+
* Encodes the specified FeatureSetDefaults message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages.
|
|
10528
|
+
* @function encodeDelimited
|
|
10529
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
|
10530
|
+
* @static
|
|
10531
|
+
* @param {google.protobuf.IFeatureSetDefaults} message FeatureSetDefaults message or plain object to encode
|
|
10532
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10533
|
+
* @returns {$protobuf.Writer} Writer
|
|
10534
|
+
*/
|
|
10535
|
+
FeatureSetDefaults.encodeDelimited = function encodeDelimited(message, writer) {
|
|
10536
|
+
return this.encode(message, writer).ldelim();
|
|
10537
|
+
};
|
|
10538
|
+
|
|
10539
|
+
/**
|
|
10540
|
+
* Decodes a FeatureSetDefaults message from the specified reader or buffer.
|
|
10541
|
+
* @function decode
|
|
10542
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
|
10543
|
+
* @static
|
|
10544
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10545
|
+
* @param {number} [length] Message length if known beforehand
|
|
10546
|
+
* @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults
|
|
10547
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10548
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10549
|
+
*/
|
|
10550
|
+
FeatureSetDefaults.decode = function decode(reader, length) {
|
|
10551
|
+
if (!(reader instanceof $Reader))
|
|
10552
|
+
reader = $Reader.create(reader);
|
|
10553
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSetDefaults();
|
|
10554
|
+
while (reader.pos < end) {
|
|
10555
|
+
var tag = reader.uint32();
|
|
10556
|
+
switch (tag >>> 3) {
|
|
10557
|
+
case 1: {
|
|
10558
|
+
if (!(message.defaults && message.defaults.length))
|
|
10559
|
+
message.defaults = [];
|
|
10560
|
+
message.defaults.push($root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.decode(reader, reader.uint32()));
|
|
10561
|
+
break;
|
|
10562
|
+
}
|
|
10563
|
+
case 4: {
|
|
10564
|
+
message.minimumEdition = reader.int32();
|
|
10565
|
+
break;
|
|
10566
|
+
}
|
|
10567
|
+
case 5: {
|
|
10568
|
+
message.maximumEdition = reader.int32();
|
|
10569
|
+
break;
|
|
10570
|
+
}
|
|
10571
|
+
default:
|
|
10572
|
+
reader.skipType(tag & 7);
|
|
10573
|
+
break;
|
|
10574
|
+
}
|
|
10575
|
+
}
|
|
10576
|
+
return message;
|
|
10577
|
+
};
|
|
10578
|
+
|
|
10579
|
+
/**
|
|
10580
|
+
* Decodes a FeatureSetDefaults message from the specified reader or buffer, length delimited.
|
|
10581
|
+
* @function decodeDelimited
|
|
10582
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
|
10583
|
+
* @static
|
|
10584
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10585
|
+
* @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults
|
|
10586
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10587
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10588
|
+
*/
|
|
10589
|
+
FeatureSetDefaults.decodeDelimited = function decodeDelimited(reader) {
|
|
10590
|
+
if (!(reader instanceof $Reader))
|
|
10591
|
+
reader = new $Reader(reader);
|
|
10592
|
+
return this.decode(reader, reader.uint32());
|
|
10593
|
+
};
|
|
10594
|
+
|
|
10595
|
+
/**
|
|
10596
|
+
* Verifies a FeatureSetDefaults message.
|
|
10597
|
+
* @function verify
|
|
10598
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
|
10599
|
+
* @static
|
|
10600
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
10601
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
10602
|
+
*/
|
|
10603
|
+
FeatureSetDefaults.verify = function verify(message) {
|
|
10604
|
+
if (typeof message !== "object" || message === null)
|
|
10605
|
+
return "object expected";
|
|
10606
|
+
if (message.defaults != null && message.hasOwnProperty("defaults")) {
|
|
10607
|
+
if (!Array.isArray(message.defaults))
|
|
10608
|
+
return "defaults: array expected";
|
|
10609
|
+
for (var i = 0; i < message.defaults.length; ++i) {
|
|
10610
|
+
var error = $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify(message.defaults[i]);
|
|
10611
|
+
if (error)
|
|
10612
|
+
return "defaults." + error;
|
|
10613
|
+
}
|
|
10614
|
+
}
|
|
10615
|
+
if (message.minimumEdition != null && message.hasOwnProperty("minimumEdition"))
|
|
10616
|
+
switch (message.minimumEdition) {
|
|
10617
|
+
default:
|
|
10618
|
+
return "minimumEdition: enum value expected";
|
|
10619
|
+
case 0:
|
|
10620
|
+
case 998:
|
|
10621
|
+
case 999:
|
|
10622
|
+
case 1000:
|
|
10623
|
+
case 1001:
|
|
10624
|
+
case 1:
|
|
10625
|
+
case 2:
|
|
10626
|
+
case 99997:
|
|
10627
|
+
case 99998:
|
|
10628
|
+
case 99999:
|
|
10629
|
+
case 2147483647:
|
|
10630
|
+
break;
|
|
10631
|
+
}
|
|
10632
|
+
if (message.maximumEdition != null && message.hasOwnProperty("maximumEdition"))
|
|
10633
|
+
switch (message.maximumEdition) {
|
|
10634
|
+
default:
|
|
10635
|
+
return "maximumEdition: enum value expected";
|
|
10636
|
+
case 0:
|
|
10637
|
+
case 998:
|
|
10638
|
+
case 999:
|
|
10639
|
+
case 1000:
|
|
10640
|
+
case 1001:
|
|
10641
|
+
case 1:
|
|
10642
|
+
case 2:
|
|
10643
|
+
case 99997:
|
|
10644
|
+
case 99998:
|
|
10645
|
+
case 99999:
|
|
10646
|
+
case 2147483647:
|
|
10647
|
+
break;
|
|
10648
|
+
}
|
|
10649
|
+
return null;
|
|
10650
|
+
};
|
|
10651
|
+
|
|
10652
|
+
/**
|
|
10653
|
+
* Creates a FeatureSetDefaults message from a plain object. Also converts values to their respective internal types.
|
|
10654
|
+
* @function fromObject
|
|
10655
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
|
10656
|
+
* @static
|
|
10657
|
+
* @param {Object.<string,*>} object Plain object
|
|
10658
|
+
* @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults
|
|
10659
|
+
*/
|
|
10660
|
+
FeatureSetDefaults.fromObject = function fromObject(object) {
|
|
10661
|
+
if (object instanceof $root.google.protobuf.FeatureSetDefaults)
|
|
10662
|
+
return object;
|
|
10663
|
+
var message = new $root.google.protobuf.FeatureSetDefaults();
|
|
10664
|
+
if (object.defaults) {
|
|
10665
|
+
if (!Array.isArray(object.defaults))
|
|
10666
|
+
throw TypeError(".google.protobuf.FeatureSetDefaults.defaults: array expected");
|
|
10667
|
+
message.defaults = [];
|
|
10668
|
+
for (var i = 0; i < object.defaults.length; ++i) {
|
|
10669
|
+
if (typeof object.defaults[i] !== "object")
|
|
10670
|
+
throw TypeError(".google.protobuf.FeatureSetDefaults.defaults: object expected");
|
|
10671
|
+
message.defaults[i] = $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fromObject(object.defaults[i]);
|
|
10672
|
+
}
|
|
10673
|
+
}
|
|
10674
|
+
switch (object.minimumEdition) {
|
|
10675
|
+
default:
|
|
10676
|
+
if (typeof object.minimumEdition === "number") {
|
|
10677
|
+
message.minimumEdition = object.minimumEdition;
|
|
10678
|
+
break;
|
|
10679
|
+
}
|
|
10680
|
+
break;
|
|
10681
|
+
case "EDITION_UNKNOWN":
|
|
10682
|
+
case 0:
|
|
10683
|
+
message.minimumEdition = 0;
|
|
10684
|
+
break;
|
|
10685
|
+
case "EDITION_PROTO2":
|
|
10686
|
+
case 998:
|
|
10687
|
+
message.minimumEdition = 998;
|
|
10688
|
+
break;
|
|
10689
|
+
case "EDITION_PROTO3":
|
|
10690
|
+
case 999:
|
|
10691
|
+
message.minimumEdition = 999;
|
|
10692
|
+
break;
|
|
10693
|
+
case "EDITION_2023":
|
|
10694
|
+
case 1000:
|
|
10695
|
+
message.minimumEdition = 1000;
|
|
10696
|
+
break;
|
|
10697
|
+
case "EDITION_2024":
|
|
10698
|
+
case 1001:
|
|
10699
|
+
message.minimumEdition = 1001;
|
|
10700
|
+
break;
|
|
10701
|
+
case "EDITION_1_TEST_ONLY":
|
|
10702
|
+
case 1:
|
|
10703
|
+
message.minimumEdition = 1;
|
|
10704
|
+
break;
|
|
10705
|
+
case "EDITION_2_TEST_ONLY":
|
|
10706
|
+
case 2:
|
|
10707
|
+
message.minimumEdition = 2;
|
|
10708
|
+
break;
|
|
10709
|
+
case "EDITION_99997_TEST_ONLY":
|
|
10710
|
+
case 99997:
|
|
10711
|
+
message.minimumEdition = 99997;
|
|
10712
|
+
break;
|
|
10713
|
+
case "EDITION_99998_TEST_ONLY":
|
|
10714
|
+
case 99998:
|
|
10715
|
+
message.minimumEdition = 99998;
|
|
10716
|
+
break;
|
|
10717
|
+
case "EDITION_99999_TEST_ONLY":
|
|
10718
|
+
case 99999:
|
|
10719
|
+
message.minimumEdition = 99999;
|
|
10720
|
+
break;
|
|
10721
|
+
case "EDITION_MAX":
|
|
10722
|
+
case 2147483647:
|
|
10723
|
+
message.minimumEdition = 2147483647;
|
|
10724
|
+
break;
|
|
10725
|
+
}
|
|
10726
|
+
switch (object.maximumEdition) {
|
|
10727
|
+
default:
|
|
10728
|
+
if (typeof object.maximumEdition === "number") {
|
|
10729
|
+
message.maximumEdition = object.maximumEdition;
|
|
10730
|
+
break;
|
|
10731
|
+
}
|
|
10732
|
+
break;
|
|
10733
|
+
case "EDITION_UNKNOWN":
|
|
10734
|
+
case 0:
|
|
10735
|
+
message.maximumEdition = 0;
|
|
10736
|
+
break;
|
|
10737
|
+
case "EDITION_PROTO2":
|
|
10738
|
+
case 998:
|
|
10739
|
+
message.maximumEdition = 998;
|
|
10740
|
+
break;
|
|
10741
|
+
case "EDITION_PROTO3":
|
|
10742
|
+
case 999:
|
|
10743
|
+
message.maximumEdition = 999;
|
|
10744
|
+
break;
|
|
10745
|
+
case "EDITION_2023":
|
|
10746
|
+
case 1000:
|
|
10747
|
+
message.maximumEdition = 1000;
|
|
10748
|
+
break;
|
|
10749
|
+
case "EDITION_2024":
|
|
10750
|
+
case 1001:
|
|
10751
|
+
message.maximumEdition = 1001;
|
|
10752
|
+
break;
|
|
10753
|
+
case "EDITION_1_TEST_ONLY":
|
|
10754
|
+
case 1:
|
|
10755
|
+
message.maximumEdition = 1;
|
|
10756
|
+
break;
|
|
10757
|
+
case "EDITION_2_TEST_ONLY":
|
|
10758
|
+
case 2:
|
|
10759
|
+
message.maximumEdition = 2;
|
|
10760
|
+
break;
|
|
10761
|
+
case "EDITION_99997_TEST_ONLY":
|
|
10762
|
+
case 99997:
|
|
10763
|
+
message.maximumEdition = 99997;
|
|
10764
|
+
break;
|
|
10765
|
+
case "EDITION_99998_TEST_ONLY":
|
|
10766
|
+
case 99998:
|
|
10767
|
+
message.maximumEdition = 99998;
|
|
10768
|
+
break;
|
|
10769
|
+
case "EDITION_99999_TEST_ONLY":
|
|
10770
|
+
case 99999:
|
|
10771
|
+
message.maximumEdition = 99999;
|
|
10772
|
+
break;
|
|
10773
|
+
case "EDITION_MAX":
|
|
10774
|
+
case 2147483647:
|
|
10775
|
+
message.maximumEdition = 2147483647;
|
|
10776
|
+
break;
|
|
10777
|
+
}
|
|
10778
|
+
return message;
|
|
10779
|
+
};
|
|
10780
|
+
|
|
10781
|
+
/**
|
|
10782
|
+
* Creates a plain object from a FeatureSetDefaults message. Also converts values to other types if specified.
|
|
10783
|
+
* @function toObject
|
|
10784
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
|
10785
|
+
* @static
|
|
10786
|
+
* @param {google.protobuf.FeatureSetDefaults} message FeatureSetDefaults
|
|
10787
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
10788
|
+
* @returns {Object.<string,*>} Plain object
|
|
10789
|
+
*/
|
|
10790
|
+
FeatureSetDefaults.toObject = function toObject(message, options) {
|
|
10791
|
+
if (!options)
|
|
10792
|
+
options = {};
|
|
10793
|
+
var object = {};
|
|
10794
|
+
if (options.arrays || options.defaults)
|
|
10795
|
+
object.defaults = [];
|
|
10796
|
+
if (options.defaults) {
|
|
10797
|
+
object.minimumEdition = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
|
10798
|
+
object.maximumEdition = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
|
10799
|
+
}
|
|
10800
|
+
if (message.defaults && message.defaults.length) {
|
|
10801
|
+
object.defaults = [];
|
|
10802
|
+
for (var j = 0; j < message.defaults.length; ++j)
|
|
10803
|
+
object.defaults[j] = $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.toObject(message.defaults[j], options);
|
|
10804
|
+
}
|
|
10805
|
+
if (message.minimumEdition != null && message.hasOwnProperty("minimumEdition"))
|
|
10806
|
+
object.minimumEdition = options.enums === String ? $root.google.protobuf.Edition[message.minimumEdition] === undefined ? message.minimumEdition : $root.google.protobuf.Edition[message.minimumEdition] : message.minimumEdition;
|
|
10807
|
+
if (message.maximumEdition != null && message.hasOwnProperty("maximumEdition"))
|
|
10808
|
+
object.maximumEdition = options.enums === String ? $root.google.protobuf.Edition[message.maximumEdition] === undefined ? message.maximumEdition : $root.google.protobuf.Edition[message.maximumEdition] : message.maximumEdition;
|
|
10809
|
+
return object;
|
|
10810
|
+
};
|
|
10811
|
+
|
|
10812
|
+
/**
|
|
10813
|
+
* Converts this FeatureSetDefaults to JSON.
|
|
10814
|
+
* @function toJSON
|
|
10815
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
|
10816
|
+
* @instance
|
|
10817
|
+
* @returns {Object.<string,*>} JSON object
|
|
10818
|
+
*/
|
|
10819
|
+
FeatureSetDefaults.prototype.toJSON = function toJSON() {
|
|
10820
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
10821
|
+
};
|
|
10822
|
+
|
|
10823
|
+
/**
|
|
10824
|
+
* Gets the default type url for FeatureSetDefaults
|
|
10825
|
+
* @function getTypeUrl
|
|
10826
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
|
10827
|
+
* @static
|
|
10828
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
10829
|
+
* @returns {string} The default type url
|
|
10830
|
+
*/
|
|
10831
|
+
FeatureSetDefaults.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
10832
|
+
if (typeUrlPrefix === undefined) {
|
|
10833
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
10834
|
+
}
|
|
10835
|
+
return typeUrlPrefix + "/google.protobuf.FeatureSetDefaults";
|
|
10836
|
+
};
|
|
10837
|
+
|
|
10838
|
+
FeatureSetDefaults.FeatureSetEditionDefault = (function() {
|
|
10839
|
+
|
|
10840
|
+
/**
|
|
10841
|
+
* Properties of a FeatureSetEditionDefault.
|
|
10842
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
|
10843
|
+
* @interface IFeatureSetEditionDefault
|
|
10844
|
+
* @property {google.protobuf.Edition|null} [edition] FeatureSetEditionDefault edition
|
|
10845
|
+
* @property {google.protobuf.IFeatureSet|null} [features] FeatureSetEditionDefault features
|
|
10846
|
+
*/
|
|
10847
|
+
|
|
10848
|
+
/**
|
|
10849
|
+
* Constructs a new FeatureSetEditionDefault.
|
|
10850
|
+
* @memberof google.protobuf.FeatureSetDefaults
|
|
10851
|
+
* @classdesc Represents a FeatureSetEditionDefault.
|
|
10852
|
+
* @implements IFeatureSetEditionDefault
|
|
10853
|
+
* @constructor
|
|
10854
|
+
* @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault=} [properties] Properties to set
|
|
10855
|
+
*/
|
|
10856
|
+
function FeatureSetEditionDefault(properties) {
|
|
10857
|
+
if (properties)
|
|
10858
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
10859
|
+
if (properties[keys[i]] != null)
|
|
10860
|
+
this[keys[i]] = properties[keys[i]];
|
|
10861
|
+
}
|
|
10862
|
+
|
|
10863
|
+
/**
|
|
10864
|
+
* FeatureSetEditionDefault edition.
|
|
10865
|
+
* @member {google.protobuf.Edition} edition
|
|
10866
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
10867
|
+
* @instance
|
|
10868
|
+
*/
|
|
10869
|
+
FeatureSetEditionDefault.prototype.edition = 0;
|
|
10870
|
+
|
|
10871
|
+
/**
|
|
10872
|
+
* FeatureSetEditionDefault features.
|
|
10873
|
+
* @member {google.protobuf.IFeatureSet|null|undefined} features
|
|
10874
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
10875
|
+
* @instance
|
|
10876
|
+
*/
|
|
10877
|
+
FeatureSetEditionDefault.prototype.features = null;
|
|
10878
|
+
|
|
10879
|
+
/**
|
|
10880
|
+
* Creates a new FeatureSetEditionDefault instance using the specified properties.
|
|
10881
|
+
* @function create
|
|
10882
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
10883
|
+
* @static
|
|
10884
|
+
* @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault=} [properties] Properties to set
|
|
10885
|
+
* @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault instance
|
|
10886
|
+
*/
|
|
10887
|
+
FeatureSetEditionDefault.create = function create(properties) {
|
|
10888
|
+
return new FeatureSetEditionDefault(properties);
|
|
10889
|
+
};
|
|
10890
|
+
|
|
10891
|
+
/**
|
|
10892
|
+
* Encodes the specified FeatureSetEditionDefault message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages.
|
|
10893
|
+
* @function encode
|
|
10894
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
10895
|
+
* @static
|
|
10896
|
+
* @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault} message FeatureSetEditionDefault message or plain object to encode
|
|
10897
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10898
|
+
* @returns {$protobuf.Writer} Writer
|
|
10899
|
+
*/
|
|
10900
|
+
FeatureSetEditionDefault.encode = function encode(message, writer) {
|
|
10901
|
+
if (!writer)
|
|
10902
|
+
writer = $Writer.create();
|
|
10903
|
+
if (message.features != null && Object.hasOwnProperty.call(message, "features"))
|
|
10904
|
+
$root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
10905
|
+
if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
|
|
10906
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.edition);
|
|
10907
|
+
return writer;
|
|
10908
|
+
};
|
|
10909
|
+
|
|
10910
|
+
/**
|
|
10911
|
+
* Encodes the specified FeatureSetEditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages.
|
|
10912
|
+
* @function encodeDelimited
|
|
10913
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
10914
|
+
* @static
|
|
10915
|
+
* @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault} message FeatureSetEditionDefault message or plain object to encode
|
|
10916
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10917
|
+
* @returns {$protobuf.Writer} Writer
|
|
10918
|
+
*/
|
|
10919
|
+
FeatureSetEditionDefault.encodeDelimited = function encodeDelimited(message, writer) {
|
|
10920
|
+
return this.encode(message, writer).ldelim();
|
|
10921
|
+
};
|
|
10922
|
+
|
|
10923
|
+
/**
|
|
10924
|
+
* Decodes a FeatureSetEditionDefault message from the specified reader or buffer.
|
|
10925
|
+
* @function decode
|
|
10926
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
10927
|
+
* @static
|
|
10928
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10929
|
+
* @param {number} [length] Message length if known beforehand
|
|
10930
|
+
* @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault
|
|
10931
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10932
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10933
|
+
*/
|
|
10934
|
+
FeatureSetEditionDefault.decode = function decode(reader, length) {
|
|
10935
|
+
if (!(reader instanceof $Reader))
|
|
10936
|
+
reader = $Reader.create(reader);
|
|
10937
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault();
|
|
10938
|
+
while (reader.pos < end) {
|
|
10939
|
+
var tag = reader.uint32();
|
|
10940
|
+
switch (tag >>> 3) {
|
|
10941
|
+
case 3: {
|
|
10942
|
+
message.edition = reader.int32();
|
|
10943
|
+
break;
|
|
10944
|
+
}
|
|
10945
|
+
case 2: {
|
|
10946
|
+
message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
|
10947
|
+
break;
|
|
10948
|
+
}
|
|
10949
|
+
default:
|
|
10950
|
+
reader.skipType(tag & 7);
|
|
10951
|
+
break;
|
|
10952
|
+
}
|
|
10953
|
+
}
|
|
10954
|
+
return message;
|
|
10955
|
+
};
|
|
10956
|
+
|
|
10957
|
+
/**
|
|
10958
|
+
* Decodes a FeatureSetEditionDefault message from the specified reader or buffer, length delimited.
|
|
10959
|
+
* @function decodeDelimited
|
|
10960
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
10961
|
+
* @static
|
|
10962
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10963
|
+
* @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault
|
|
10964
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10965
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10966
|
+
*/
|
|
10967
|
+
FeatureSetEditionDefault.decodeDelimited = function decodeDelimited(reader) {
|
|
10968
|
+
if (!(reader instanceof $Reader))
|
|
10969
|
+
reader = new $Reader(reader);
|
|
10970
|
+
return this.decode(reader, reader.uint32());
|
|
10971
|
+
};
|
|
10972
|
+
|
|
10973
|
+
/**
|
|
10974
|
+
* Verifies a FeatureSetEditionDefault message.
|
|
10975
|
+
* @function verify
|
|
10976
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
10977
|
+
* @static
|
|
10978
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
10979
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
10980
|
+
*/
|
|
10981
|
+
FeatureSetEditionDefault.verify = function verify(message) {
|
|
10982
|
+
if (typeof message !== "object" || message === null)
|
|
10983
|
+
return "object expected";
|
|
10984
|
+
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
10985
|
+
switch (message.edition) {
|
|
10986
|
+
default:
|
|
10987
|
+
return "edition: enum value expected";
|
|
10988
|
+
case 0:
|
|
10989
|
+
case 998:
|
|
10990
|
+
case 999:
|
|
10991
|
+
case 1000:
|
|
10992
|
+
case 1001:
|
|
10993
|
+
case 1:
|
|
10994
|
+
case 2:
|
|
10995
|
+
case 99997:
|
|
10996
|
+
case 99998:
|
|
10997
|
+
case 99999:
|
|
10998
|
+
case 2147483647:
|
|
10999
|
+
break;
|
|
11000
|
+
}
|
|
11001
|
+
if (message.features != null && message.hasOwnProperty("features")) {
|
|
11002
|
+
var error = $root.google.protobuf.FeatureSet.verify(message.features);
|
|
11003
|
+
if (error)
|
|
11004
|
+
return "features." + error;
|
|
11005
|
+
}
|
|
11006
|
+
return null;
|
|
11007
|
+
};
|
|
11008
|
+
|
|
11009
|
+
/**
|
|
11010
|
+
* Creates a FeatureSetEditionDefault message from a plain object. Also converts values to their respective internal types.
|
|
11011
|
+
* @function fromObject
|
|
11012
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
11013
|
+
* @static
|
|
11014
|
+
* @param {Object.<string,*>} object Plain object
|
|
11015
|
+
* @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault
|
|
11016
|
+
*/
|
|
11017
|
+
FeatureSetEditionDefault.fromObject = function fromObject(object) {
|
|
11018
|
+
if (object instanceof $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault)
|
|
11019
|
+
return object;
|
|
11020
|
+
var message = new $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault();
|
|
11021
|
+
switch (object.edition) {
|
|
11022
|
+
default:
|
|
11023
|
+
if (typeof object.edition === "number") {
|
|
11024
|
+
message.edition = object.edition;
|
|
11025
|
+
break;
|
|
11026
|
+
}
|
|
11027
|
+
break;
|
|
11028
|
+
case "EDITION_UNKNOWN":
|
|
11029
|
+
case 0:
|
|
11030
|
+
message.edition = 0;
|
|
11031
|
+
break;
|
|
11032
|
+
case "EDITION_PROTO2":
|
|
11033
|
+
case 998:
|
|
11034
|
+
message.edition = 998;
|
|
11035
|
+
break;
|
|
11036
|
+
case "EDITION_PROTO3":
|
|
11037
|
+
case 999:
|
|
11038
|
+
message.edition = 999;
|
|
11039
|
+
break;
|
|
11040
|
+
case "EDITION_2023":
|
|
11041
|
+
case 1000:
|
|
11042
|
+
message.edition = 1000;
|
|
11043
|
+
break;
|
|
11044
|
+
case "EDITION_2024":
|
|
11045
|
+
case 1001:
|
|
11046
|
+
message.edition = 1001;
|
|
11047
|
+
break;
|
|
11048
|
+
case "EDITION_1_TEST_ONLY":
|
|
11049
|
+
case 1:
|
|
11050
|
+
message.edition = 1;
|
|
11051
|
+
break;
|
|
11052
|
+
case "EDITION_2_TEST_ONLY":
|
|
11053
|
+
case 2:
|
|
11054
|
+
message.edition = 2;
|
|
11055
|
+
break;
|
|
11056
|
+
case "EDITION_99997_TEST_ONLY":
|
|
11057
|
+
case 99997:
|
|
11058
|
+
message.edition = 99997;
|
|
11059
|
+
break;
|
|
11060
|
+
case "EDITION_99998_TEST_ONLY":
|
|
11061
|
+
case 99998:
|
|
11062
|
+
message.edition = 99998;
|
|
11063
|
+
break;
|
|
11064
|
+
case "EDITION_99999_TEST_ONLY":
|
|
11065
|
+
case 99999:
|
|
11066
|
+
message.edition = 99999;
|
|
11067
|
+
break;
|
|
11068
|
+
case "EDITION_MAX":
|
|
11069
|
+
case 2147483647:
|
|
11070
|
+
message.edition = 2147483647;
|
|
11071
|
+
break;
|
|
11072
|
+
}
|
|
11073
|
+
if (object.features != null) {
|
|
11074
|
+
if (typeof object.features !== "object")
|
|
11075
|
+
throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.features: object expected");
|
|
11076
|
+
message.features = $root.google.protobuf.FeatureSet.fromObject(object.features);
|
|
11077
|
+
}
|
|
11078
|
+
return message;
|
|
11079
|
+
};
|
|
11080
|
+
|
|
11081
|
+
/**
|
|
11082
|
+
* Creates a plain object from a FeatureSetEditionDefault message. Also converts values to other types if specified.
|
|
11083
|
+
* @function toObject
|
|
11084
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
11085
|
+
* @static
|
|
11086
|
+
* @param {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} message FeatureSetEditionDefault
|
|
11087
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
11088
|
+
* @returns {Object.<string,*>} Plain object
|
|
11089
|
+
*/
|
|
11090
|
+
FeatureSetEditionDefault.toObject = function toObject(message, options) {
|
|
11091
|
+
if (!options)
|
|
11092
|
+
options = {};
|
|
11093
|
+
var object = {};
|
|
11094
|
+
if (options.defaults) {
|
|
11095
|
+
object.features = null;
|
|
11096
|
+
object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
|
|
11097
|
+
}
|
|
11098
|
+
if (message.features != null && message.hasOwnProperty("features"))
|
|
11099
|
+
object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options);
|
|
11100
|
+
if (message.edition != null && message.hasOwnProperty("edition"))
|
|
11101
|
+
object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
|
|
11102
|
+
return object;
|
|
11103
|
+
};
|
|
11104
|
+
|
|
11105
|
+
/**
|
|
11106
|
+
* Converts this FeatureSetEditionDefault to JSON.
|
|
11107
|
+
* @function toJSON
|
|
11108
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
11109
|
+
* @instance
|
|
11110
|
+
* @returns {Object.<string,*>} JSON object
|
|
11111
|
+
*/
|
|
11112
|
+
FeatureSetEditionDefault.prototype.toJSON = function toJSON() {
|
|
11113
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
11114
|
+
};
|
|
11115
|
+
|
|
11116
|
+
/**
|
|
11117
|
+
* Gets the default type url for FeatureSetEditionDefault
|
|
11118
|
+
* @function getTypeUrl
|
|
11119
|
+
* @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
|
|
11120
|
+
* @static
|
|
11121
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
11122
|
+
* @returns {string} The default type url
|
|
11123
|
+
*/
|
|
11124
|
+
FeatureSetEditionDefault.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
11125
|
+
if (typeUrlPrefix === undefined) {
|
|
11126
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
11127
|
+
}
|
|
11128
|
+
return typeUrlPrefix + "/google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault";
|
|
11129
|
+
};
|
|
11130
|
+
|
|
11131
|
+
return FeatureSetEditionDefault;
|
|
11132
|
+
})();
|
|
11133
|
+
|
|
11134
|
+
return FeatureSetDefaults;
|
|
11135
|
+
})();
|
|
11136
|
+
|
|
10334
11137
|
protobuf.SourceCodeInfo = (function() {
|
|
10335
11138
|
|
|
10336
11139
|
/**
|
|
@@ -23943,6 +24746,7 @@
|
|
|
23943
24746
|
* @property {Array.<string>|null} [extraStatements] CreateDatabaseRequest extraStatements
|
|
23944
24747
|
* @property {google.spanner.admin.database.v1.IEncryptionConfig|null} [encryptionConfig] CreateDatabaseRequest encryptionConfig
|
|
23945
24748
|
* @property {google.spanner.admin.database.v1.DatabaseDialect|null} [databaseDialect] CreateDatabaseRequest databaseDialect
|
|
24749
|
+
* @property {Uint8Array|null} [protoDescriptors] CreateDatabaseRequest protoDescriptors
|
|
23946
24750
|
*/
|
|
23947
24751
|
|
|
23948
24752
|
/**
|
|
@@ -24001,6 +24805,14 @@
|
|
|
24001
24805
|
*/
|
|
24002
24806
|
CreateDatabaseRequest.prototype.databaseDialect = 0;
|
|
24003
24807
|
|
|
24808
|
+
/**
|
|
24809
|
+
* CreateDatabaseRequest protoDescriptors.
|
|
24810
|
+
* @member {Uint8Array} protoDescriptors
|
|
24811
|
+
* @memberof google.spanner.admin.database.v1.CreateDatabaseRequest
|
|
24812
|
+
* @instance
|
|
24813
|
+
*/
|
|
24814
|
+
CreateDatabaseRequest.prototype.protoDescriptors = $util.newBuffer([]);
|
|
24815
|
+
|
|
24004
24816
|
/**
|
|
24005
24817
|
* Creates a new CreateDatabaseRequest instance using the specified properties.
|
|
24006
24818
|
* @function create
|
|
@@ -24036,6 +24848,8 @@
|
|
|
24036
24848
|
$root.google.spanner.admin.database.v1.EncryptionConfig.encode(message.encryptionConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
24037
24849
|
if (message.databaseDialect != null && Object.hasOwnProperty.call(message, "databaseDialect"))
|
|
24038
24850
|
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.databaseDialect);
|
|
24851
|
+
if (message.protoDescriptors != null && Object.hasOwnProperty.call(message, "protoDescriptors"))
|
|
24852
|
+
writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.protoDescriptors);
|
|
24039
24853
|
return writer;
|
|
24040
24854
|
};
|
|
24041
24855
|
|
|
@@ -24092,6 +24906,10 @@
|
|
|
24092
24906
|
message.databaseDialect = reader.int32();
|
|
24093
24907
|
break;
|
|
24094
24908
|
}
|
|
24909
|
+
case 6: {
|
|
24910
|
+
message.protoDescriptors = reader.bytes();
|
|
24911
|
+
break;
|
|
24912
|
+
}
|
|
24095
24913
|
default:
|
|
24096
24914
|
reader.skipType(tag & 7);
|
|
24097
24915
|
break;
|
|
@@ -24154,6 +24972,9 @@
|
|
|
24154
24972
|
case 2:
|
|
24155
24973
|
break;
|
|
24156
24974
|
}
|
|
24975
|
+
if (message.protoDescriptors != null && message.hasOwnProperty("protoDescriptors"))
|
|
24976
|
+
if (!(message.protoDescriptors && typeof message.protoDescriptors.length === "number" || $util.isString(message.protoDescriptors)))
|
|
24977
|
+
return "protoDescriptors: buffer expected";
|
|
24157
24978
|
return null;
|
|
24158
24979
|
};
|
|
24159
24980
|
|
|
@@ -24205,6 +25026,11 @@
|
|
|
24205
25026
|
message.databaseDialect = 2;
|
|
24206
25027
|
break;
|
|
24207
25028
|
}
|
|
25029
|
+
if (object.protoDescriptors != null)
|
|
25030
|
+
if (typeof object.protoDescriptors === "string")
|
|
25031
|
+
$util.base64.decode(object.protoDescriptors, message.protoDescriptors = $util.newBuffer($util.base64.length(object.protoDescriptors)), 0);
|
|
25032
|
+
else if (object.protoDescriptors.length >= 0)
|
|
25033
|
+
message.protoDescriptors = object.protoDescriptors;
|
|
24208
25034
|
return message;
|
|
24209
25035
|
};
|
|
24210
25036
|
|
|
@@ -24228,6 +25054,13 @@
|
|
|
24228
25054
|
object.createStatement = "";
|
|
24229
25055
|
object.encryptionConfig = null;
|
|
24230
25056
|
object.databaseDialect = options.enums === String ? "DATABASE_DIALECT_UNSPECIFIED" : 0;
|
|
25057
|
+
if (options.bytes === String)
|
|
25058
|
+
object.protoDescriptors = "";
|
|
25059
|
+
else {
|
|
25060
|
+
object.protoDescriptors = [];
|
|
25061
|
+
if (options.bytes !== Array)
|
|
25062
|
+
object.protoDescriptors = $util.newBuffer(object.protoDescriptors);
|
|
25063
|
+
}
|
|
24231
25064
|
}
|
|
24232
25065
|
if (message.parent != null && message.hasOwnProperty("parent"))
|
|
24233
25066
|
object.parent = message.parent;
|
|
@@ -24242,6 +25075,8 @@
|
|
|
24242
25075
|
object.encryptionConfig = $root.google.spanner.admin.database.v1.EncryptionConfig.toObject(message.encryptionConfig, options);
|
|
24243
25076
|
if (message.databaseDialect != null && message.hasOwnProperty("databaseDialect"))
|
|
24244
25077
|
object.databaseDialect = options.enums === String ? $root.google.spanner.admin.database.v1.DatabaseDialect[message.databaseDialect] === undefined ? message.databaseDialect : $root.google.spanner.admin.database.v1.DatabaseDialect[message.databaseDialect] : message.databaseDialect;
|
|
25078
|
+
if (message.protoDescriptors != null && message.hasOwnProperty("protoDescriptors"))
|
|
25079
|
+
object.protoDescriptors = options.bytes === String ? $util.base64.encode(message.protoDescriptors, 0, message.protoDescriptors.length) : options.bytes === Array ? Array.prototype.slice.call(message.protoDescriptors) : message.protoDescriptors;
|
|
24245
25080
|
return object;
|
|
24246
25081
|
};
|
|
24247
25082
|
|
|
@@ -25191,6 +26026,7 @@
|
|
|
25191
26026
|
* @property {string|null} [database] UpdateDatabaseDdlRequest database
|
|
25192
26027
|
* @property {Array.<string>|null} [statements] UpdateDatabaseDdlRequest statements
|
|
25193
26028
|
* @property {string|null} [operationId] UpdateDatabaseDdlRequest operationId
|
|
26029
|
+
* @property {Uint8Array|null} [protoDescriptors] UpdateDatabaseDdlRequest protoDescriptors
|
|
25194
26030
|
*/
|
|
25195
26031
|
|
|
25196
26032
|
/**
|
|
@@ -25233,6 +26069,14 @@
|
|
|
25233
26069
|
*/
|
|
25234
26070
|
UpdateDatabaseDdlRequest.prototype.operationId = "";
|
|
25235
26071
|
|
|
26072
|
+
/**
|
|
26073
|
+
* UpdateDatabaseDdlRequest protoDescriptors.
|
|
26074
|
+
* @member {Uint8Array} protoDescriptors
|
|
26075
|
+
* @memberof google.spanner.admin.database.v1.UpdateDatabaseDdlRequest
|
|
26076
|
+
* @instance
|
|
26077
|
+
*/
|
|
26078
|
+
UpdateDatabaseDdlRequest.prototype.protoDescriptors = $util.newBuffer([]);
|
|
26079
|
+
|
|
25236
26080
|
/**
|
|
25237
26081
|
* Creates a new UpdateDatabaseDdlRequest instance using the specified properties.
|
|
25238
26082
|
* @function create
|
|
@@ -25264,6 +26108,8 @@
|
|
|
25264
26108
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.statements[i]);
|
|
25265
26109
|
if (message.operationId != null && Object.hasOwnProperty.call(message, "operationId"))
|
|
25266
26110
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.operationId);
|
|
26111
|
+
if (message.protoDescriptors != null && Object.hasOwnProperty.call(message, "protoDescriptors"))
|
|
26112
|
+
writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.protoDescriptors);
|
|
25267
26113
|
return writer;
|
|
25268
26114
|
};
|
|
25269
26115
|
|
|
@@ -25312,6 +26158,10 @@
|
|
|
25312
26158
|
message.operationId = reader.string();
|
|
25313
26159
|
break;
|
|
25314
26160
|
}
|
|
26161
|
+
case 4: {
|
|
26162
|
+
message.protoDescriptors = reader.bytes();
|
|
26163
|
+
break;
|
|
26164
|
+
}
|
|
25315
26165
|
default:
|
|
25316
26166
|
reader.skipType(tag & 7);
|
|
25317
26167
|
break;
|
|
@@ -25360,6 +26210,9 @@
|
|
|
25360
26210
|
if (message.operationId != null && message.hasOwnProperty("operationId"))
|
|
25361
26211
|
if (!$util.isString(message.operationId))
|
|
25362
26212
|
return "operationId: string expected";
|
|
26213
|
+
if (message.protoDescriptors != null && message.hasOwnProperty("protoDescriptors"))
|
|
26214
|
+
if (!(message.protoDescriptors && typeof message.protoDescriptors.length === "number" || $util.isString(message.protoDescriptors)))
|
|
26215
|
+
return "protoDescriptors: buffer expected";
|
|
25363
26216
|
return null;
|
|
25364
26217
|
};
|
|
25365
26218
|
|
|
@@ -25386,6 +26239,11 @@
|
|
|
25386
26239
|
}
|
|
25387
26240
|
if (object.operationId != null)
|
|
25388
26241
|
message.operationId = String(object.operationId);
|
|
26242
|
+
if (object.protoDescriptors != null)
|
|
26243
|
+
if (typeof object.protoDescriptors === "string")
|
|
26244
|
+
$util.base64.decode(object.protoDescriptors, message.protoDescriptors = $util.newBuffer($util.base64.length(object.protoDescriptors)), 0);
|
|
26245
|
+
else if (object.protoDescriptors.length >= 0)
|
|
26246
|
+
message.protoDescriptors = object.protoDescriptors;
|
|
25389
26247
|
return message;
|
|
25390
26248
|
};
|
|
25391
26249
|
|
|
@@ -25407,6 +26265,13 @@
|
|
|
25407
26265
|
if (options.defaults) {
|
|
25408
26266
|
object.database = "";
|
|
25409
26267
|
object.operationId = "";
|
|
26268
|
+
if (options.bytes === String)
|
|
26269
|
+
object.protoDescriptors = "";
|
|
26270
|
+
else {
|
|
26271
|
+
object.protoDescriptors = [];
|
|
26272
|
+
if (options.bytes !== Array)
|
|
26273
|
+
object.protoDescriptors = $util.newBuffer(object.protoDescriptors);
|
|
26274
|
+
}
|
|
25410
26275
|
}
|
|
25411
26276
|
if (message.database != null && message.hasOwnProperty("database"))
|
|
25412
26277
|
object.database = message.database;
|
|
@@ -25417,6 +26282,8 @@
|
|
|
25417
26282
|
}
|
|
25418
26283
|
if (message.operationId != null && message.hasOwnProperty("operationId"))
|
|
25419
26284
|
object.operationId = message.operationId;
|
|
26285
|
+
if (message.protoDescriptors != null && message.hasOwnProperty("protoDescriptors"))
|
|
26286
|
+
object.protoDescriptors = options.bytes === String ? $util.base64.encode(message.protoDescriptors, 0, message.protoDescriptors.length) : options.bytes === Array ? Array.prototype.slice.call(message.protoDescriptors) : message.protoDescriptors;
|
|
25420
26287
|
return object;
|
|
25421
26288
|
};
|
|
25422
26289
|
|
|
@@ -26529,6 +27396,7 @@
|
|
|
26529
27396
|
* @memberof google.spanner.admin.database.v1
|
|
26530
27397
|
* @interface IGetDatabaseDdlResponse
|
|
26531
27398
|
* @property {Array.<string>|null} [statements] GetDatabaseDdlResponse statements
|
|
27399
|
+
* @property {Uint8Array|null} [protoDescriptors] GetDatabaseDdlResponse protoDescriptors
|
|
26532
27400
|
*/
|
|
26533
27401
|
|
|
26534
27402
|
/**
|
|
@@ -26555,6 +27423,14 @@
|
|
|
26555
27423
|
*/
|
|
26556
27424
|
GetDatabaseDdlResponse.prototype.statements = $util.emptyArray;
|
|
26557
27425
|
|
|
27426
|
+
/**
|
|
27427
|
+
* GetDatabaseDdlResponse protoDescriptors.
|
|
27428
|
+
* @member {Uint8Array} protoDescriptors
|
|
27429
|
+
* @memberof google.spanner.admin.database.v1.GetDatabaseDdlResponse
|
|
27430
|
+
* @instance
|
|
27431
|
+
*/
|
|
27432
|
+
GetDatabaseDdlResponse.prototype.protoDescriptors = $util.newBuffer([]);
|
|
27433
|
+
|
|
26558
27434
|
/**
|
|
26559
27435
|
* Creates a new GetDatabaseDdlResponse instance using the specified properties.
|
|
26560
27436
|
* @function create
|
|
@@ -26582,6 +27458,8 @@
|
|
|
26582
27458
|
if (message.statements != null && message.statements.length)
|
|
26583
27459
|
for (var i = 0; i < message.statements.length; ++i)
|
|
26584
27460
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.statements[i]);
|
|
27461
|
+
if (message.protoDescriptors != null && Object.hasOwnProperty.call(message, "protoDescriptors"))
|
|
27462
|
+
writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.protoDescriptors);
|
|
26585
27463
|
return writer;
|
|
26586
27464
|
};
|
|
26587
27465
|
|
|
@@ -26622,6 +27500,10 @@
|
|
|
26622
27500
|
message.statements.push(reader.string());
|
|
26623
27501
|
break;
|
|
26624
27502
|
}
|
|
27503
|
+
case 2: {
|
|
27504
|
+
message.protoDescriptors = reader.bytes();
|
|
27505
|
+
break;
|
|
27506
|
+
}
|
|
26625
27507
|
default:
|
|
26626
27508
|
reader.skipType(tag & 7);
|
|
26627
27509
|
break;
|
|
@@ -26664,6 +27546,9 @@
|
|
|
26664
27546
|
if (!$util.isString(message.statements[i]))
|
|
26665
27547
|
return "statements: string[] expected";
|
|
26666
27548
|
}
|
|
27549
|
+
if (message.protoDescriptors != null && message.hasOwnProperty("protoDescriptors"))
|
|
27550
|
+
if (!(message.protoDescriptors && typeof message.protoDescriptors.length === "number" || $util.isString(message.protoDescriptors)))
|
|
27551
|
+
return "protoDescriptors: buffer expected";
|
|
26667
27552
|
return null;
|
|
26668
27553
|
};
|
|
26669
27554
|
|
|
@@ -26686,6 +27571,11 @@
|
|
|
26686
27571
|
for (var i = 0; i < object.statements.length; ++i)
|
|
26687
27572
|
message.statements[i] = String(object.statements[i]);
|
|
26688
27573
|
}
|
|
27574
|
+
if (object.protoDescriptors != null)
|
|
27575
|
+
if (typeof object.protoDescriptors === "string")
|
|
27576
|
+
$util.base64.decode(object.protoDescriptors, message.protoDescriptors = $util.newBuffer($util.base64.length(object.protoDescriptors)), 0);
|
|
27577
|
+
else if (object.protoDescriptors.length >= 0)
|
|
27578
|
+
message.protoDescriptors = object.protoDescriptors;
|
|
26689
27579
|
return message;
|
|
26690
27580
|
};
|
|
26691
27581
|
|
|
@@ -26704,11 +27594,21 @@
|
|
|
26704
27594
|
var object = {};
|
|
26705
27595
|
if (options.arrays || options.defaults)
|
|
26706
27596
|
object.statements = [];
|
|
27597
|
+
if (options.defaults)
|
|
27598
|
+
if (options.bytes === String)
|
|
27599
|
+
object.protoDescriptors = "";
|
|
27600
|
+
else {
|
|
27601
|
+
object.protoDescriptors = [];
|
|
27602
|
+
if (options.bytes !== Array)
|
|
27603
|
+
object.protoDescriptors = $util.newBuffer(object.protoDescriptors);
|
|
27604
|
+
}
|
|
26707
27605
|
if (message.statements && message.statements.length) {
|
|
26708
27606
|
object.statements = [];
|
|
26709
27607
|
for (var j = 0; j < message.statements.length; ++j)
|
|
26710
27608
|
object.statements[j] = message.statements[j];
|
|
26711
27609
|
}
|
|
27610
|
+
if (message.protoDescriptors != null && message.hasOwnProperty("protoDescriptors"))
|
|
27611
|
+
object.protoDescriptors = options.bytes === String ? $util.base64.encode(message.protoDescriptors, 0, message.protoDescriptors.length) : options.bytes === Array ? Array.prototype.slice.call(message.protoDescriptors) : message.protoDescriptors;
|
|
26712
27612
|
return object;
|
|
26713
27613
|
};
|
|
26714
27614
|
|
|
@@ -42743,6 +43643,7 @@
|
|
|
42743
43643
|
* @property {google.spanner.v1.IType|null} [arrayElementType] Type arrayElementType
|
|
42744
43644
|
* @property {google.spanner.v1.IStructType|null} [structType] Type structType
|
|
42745
43645
|
* @property {google.spanner.v1.TypeAnnotationCode|null} [typeAnnotation] Type typeAnnotation
|
|
43646
|
+
* @property {string|null} [protoTypeFqn] Type protoTypeFqn
|
|
42746
43647
|
*/
|
|
42747
43648
|
|
|
42748
43649
|
/**
|
|
@@ -42792,6 +43693,14 @@
|
|
|
42792
43693
|
*/
|
|
42793
43694
|
Type.prototype.typeAnnotation = 0;
|
|
42794
43695
|
|
|
43696
|
+
/**
|
|
43697
|
+
* Type protoTypeFqn.
|
|
43698
|
+
* @member {string} protoTypeFqn
|
|
43699
|
+
* @memberof google.spanner.v1.Type
|
|
43700
|
+
* @instance
|
|
43701
|
+
*/
|
|
43702
|
+
Type.prototype.protoTypeFqn = "";
|
|
43703
|
+
|
|
42795
43704
|
/**
|
|
42796
43705
|
* Creates a new Type instance using the specified properties.
|
|
42797
43706
|
* @function create
|
|
@@ -42824,6 +43733,8 @@
|
|
|
42824
43733
|
$root.google.spanner.v1.StructType.encode(message.structType, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
42825
43734
|
if (message.typeAnnotation != null && Object.hasOwnProperty.call(message, "typeAnnotation"))
|
|
42826
43735
|
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.typeAnnotation);
|
|
43736
|
+
if (message.protoTypeFqn != null && Object.hasOwnProperty.call(message, "protoTypeFqn"))
|
|
43737
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.protoTypeFqn);
|
|
42827
43738
|
return writer;
|
|
42828
43739
|
};
|
|
42829
43740
|
|
|
@@ -42874,6 +43785,10 @@
|
|
|
42874
43785
|
message.typeAnnotation = reader.int32();
|
|
42875
43786
|
break;
|
|
42876
43787
|
}
|
|
43788
|
+
case 5: {
|
|
43789
|
+
message.protoTypeFqn = reader.string();
|
|
43790
|
+
break;
|
|
43791
|
+
}
|
|
42877
43792
|
default:
|
|
42878
43793
|
reader.skipType(tag & 7);
|
|
42879
43794
|
break;
|
|
@@ -42917,6 +43832,7 @@
|
|
|
42917
43832
|
case 1:
|
|
42918
43833
|
case 2:
|
|
42919
43834
|
case 3:
|
|
43835
|
+
case 15:
|
|
42920
43836
|
case 4:
|
|
42921
43837
|
case 5:
|
|
42922
43838
|
case 6:
|
|
@@ -42925,6 +43841,8 @@
|
|
|
42925
43841
|
case 9:
|
|
42926
43842
|
case 10:
|
|
42927
43843
|
case 11:
|
|
43844
|
+
case 13:
|
|
43845
|
+
case 14:
|
|
42928
43846
|
break;
|
|
42929
43847
|
}
|
|
42930
43848
|
if (message.arrayElementType != null && message.hasOwnProperty("arrayElementType")) {
|
|
@@ -42947,6 +43865,9 @@
|
|
|
42947
43865
|
case 4:
|
|
42948
43866
|
break;
|
|
42949
43867
|
}
|
|
43868
|
+
if (message.protoTypeFqn != null && message.hasOwnProperty("protoTypeFqn"))
|
|
43869
|
+
if (!$util.isString(message.protoTypeFqn))
|
|
43870
|
+
return "protoTypeFqn: string expected";
|
|
42950
43871
|
return null;
|
|
42951
43872
|
};
|
|
42952
43873
|
|
|
@@ -42985,6 +43906,10 @@
|
|
|
42985
43906
|
case 3:
|
|
42986
43907
|
message.code = 3;
|
|
42987
43908
|
break;
|
|
43909
|
+
case "FLOAT32":
|
|
43910
|
+
case 15:
|
|
43911
|
+
message.code = 15;
|
|
43912
|
+
break;
|
|
42988
43913
|
case "TIMESTAMP":
|
|
42989
43914
|
case 4:
|
|
42990
43915
|
message.code = 4;
|
|
@@ -43017,6 +43942,14 @@
|
|
|
43017
43942
|
case 11:
|
|
43018
43943
|
message.code = 11;
|
|
43019
43944
|
break;
|
|
43945
|
+
case "PROTO":
|
|
43946
|
+
case 13:
|
|
43947
|
+
message.code = 13;
|
|
43948
|
+
break;
|
|
43949
|
+
case "ENUM":
|
|
43950
|
+
case 14:
|
|
43951
|
+
message.code = 14;
|
|
43952
|
+
break;
|
|
43020
43953
|
}
|
|
43021
43954
|
if (object.arrayElementType != null) {
|
|
43022
43955
|
if (typeof object.arrayElementType !== "object")
|
|
@@ -43052,6 +43985,8 @@
|
|
|
43052
43985
|
message.typeAnnotation = 4;
|
|
43053
43986
|
break;
|
|
43054
43987
|
}
|
|
43988
|
+
if (object.protoTypeFqn != null)
|
|
43989
|
+
message.protoTypeFqn = String(object.protoTypeFqn);
|
|
43055
43990
|
return message;
|
|
43056
43991
|
};
|
|
43057
43992
|
|
|
@@ -43073,6 +44008,7 @@
|
|
|
43073
44008
|
object.arrayElementType = null;
|
|
43074
44009
|
object.structType = null;
|
|
43075
44010
|
object.typeAnnotation = options.enums === String ? "TYPE_ANNOTATION_CODE_UNSPECIFIED" : 0;
|
|
44011
|
+
object.protoTypeFqn = "";
|
|
43076
44012
|
}
|
|
43077
44013
|
if (message.code != null && message.hasOwnProperty("code"))
|
|
43078
44014
|
object.code = options.enums === String ? $root.google.spanner.v1.TypeCode[message.code] === undefined ? message.code : $root.google.spanner.v1.TypeCode[message.code] : message.code;
|
|
@@ -43082,6 +44018,8 @@
|
|
|
43082
44018
|
object.structType = $root.google.spanner.v1.StructType.toObject(message.structType, options);
|
|
43083
44019
|
if (message.typeAnnotation != null && message.hasOwnProperty("typeAnnotation"))
|
|
43084
44020
|
object.typeAnnotation = options.enums === String ? $root.google.spanner.v1.TypeAnnotationCode[message.typeAnnotation] === undefined ? message.typeAnnotation : $root.google.spanner.v1.TypeAnnotationCode[message.typeAnnotation] : message.typeAnnotation;
|
|
44021
|
+
if (message.protoTypeFqn != null && message.hasOwnProperty("protoTypeFqn"))
|
|
44022
|
+
object.protoTypeFqn = message.protoTypeFqn;
|
|
43085
44023
|
return object;
|
|
43086
44024
|
};
|
|
43087
44025
|
|
|
@@ -43578,6 +44516,7 @@
|
|
|
43578
44516
|
* @property {number} BOOL=1 BOOL value
|
|
43579
44517
|
* @property {number} INT64=2 INT64 value
|
|
43580
44518
|
* @property {number} FLOAT64=3 FLOAT64 value
|
|
44519
|
+
* @property {number} FLOAT32=15 FLOAT32 value
|
|
43581
44520
|
* @property {number} TIMESTAMP=4 TIMESTAMP value
|
|
43582
44521
|
* @property {number} DATE=5 DATE value
|
|
43583
44522
|
* @property {number} STRING=6 STRING value
|
|
@@ -43586,6 +44525,8 @@
|
|
|
43586
44525
|
* @property {number} STRUCT=9 STRUCT value
|
|
43587
44526
|
* @property {number} NUMERIC=10 NUMERIC value
|
|
43588
44527
|
* @property {number} JSON=11 JSON value
|
|
44528
|
+
* @property {number} PROTO=13 PROTO value
|
|
44529
|
+
* @property {number} ENUM=14 ENUM value
|
|
43589
44530
|
*/
|
|
43590
44531
|
v1.TypeCode = (function() {
|
|
43591
44532
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -43593,6 +44534,7 @@
|
|
|
43593
44534
|
values[valuesById[1] = "BOOL"] = 1;
|
|
43594
44535
|
values[valuesById[2] = "INT64"] = 2;
|
|
43595
44536
|
values[valuesById[3] = "FLOAT64"] = 3;
|
|
44537
|
+
values[valuesById[15] = "FLOAT32"] = 15;
|
|
43596
44538
|
values[valuesById[4] = "TIMESTAMP"] = 4;
|
|
43597
44539
|
values[valuesById[5] = "DATE"] = 5;
|
|
43598
44540
|
values[valuesById[6] = "STRING"] = 6;
|
|
@@ -43601,6 +44543,8 @@
|
|
|
43601
44543
|
values[valuesById[9] = "STRUCT"] = 9;
|
|
43602
44544
|
values[valuesById[10] = "NUMERIC"] = 10;
|
|
43603
44545
|
values[valuesById[11] = "JSON"] = 11;
|
|
44546
|
+
values[valuesById[13] = "PROTO"] = 13;
|
|
44547
|
+
values[valuesById[14] = "ENUM"] = 14;
|
|
43604
44548
|
return values;
|
|
43605
44549
|
})();
|
|
43606
44550
|
|
|
@@ -51471,6 +52415,7 @@
|
|
|
51471
52415
|
* @property {google.spanner.v1.ITransactionOptions|null} [singleUseTransaction] CommitRequest singleUseTransaction
|
|
51472
52416
|
* @property {Array.<google.spanner.v1.IMutation>|null} [mutations] CommitRequest mutations
|
|
51473
52417
|
* @property {boolean|null} [returnCommitStats] CommitRequest returnCommitStats
|
|
52418
|
+
* @property {google.protobuf.IDuration|null} [maxCommitDelay] CommitRequest maxCommitDelay
|
|
51474
52419
|
* @property {google.spanner.v1.IRequestOptions|null} [requestOptions] CommitRequest requestOptions
|
|
51475
52420
|
*/
|
|
51476
52421
|
|
|
@@ -51530,6 +52475,14 @@
|
|
|
51530
52475
|
*/
|
|
51531
52476
|
CommitRequest.prototype.returnCommitStats = false;
|
|
51532
52477
|
|
|
52478
|
+
/**
|
|
52479
|
+
* CommitRequest maxCommitDelay.
|
|
52480
|
+
* @member {google.protobuf.IDuration|null|undefined} maxCommitDelay
|
|
52481
|
+
* @memberof google.spanner.v1.CommitRequest
|
|
52482
|
+
* @instance
|
|
52483
|
+
*/
|
|
52484
|
+
CommitRequest.prototype.maxCommitDelay = null;
|
|
52485
|
+
|
|
51533
52486
|
/**
|
|
51534
52487
|
* CommitRequest requestOptions.
|
|
51535
52488
|
* @member {google.spanner.v1.IRequestOptions|null|undefined} requestOptions
|
|
@@ -51589,6 +52542,8 @@
|
|
|
51589
52542
|
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.returnCommitStats);
|
|
51590
52543
|
if (message.requestOptions != null && Object.hasOwnProperty.call(message, "requestOptions"))
|
|
51591
52544
|
$root.google.spanner.v1.RequestOptions.encode(message.requestOptions, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
52545
|
+
if (message.maxCommitDelay != null && Object.hasOwnProperty.call(message, "maxCommitDelay"))
|
|
52546
|
+
$root.google.protobuf.Duration.encode(message.maxCommitDelay, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
51592
52547
|
return writer;
|
|
51593
52548
|
};
|
|
51594
52549
|
|
|
@@ -51645,6 +52600,10 @@
|
|
|
51645
52600
|
message.returnCommitStats = reader.bool();
|
|
51646
52601
|
break;
|
|
51647
52602
|
}
|
|
52603
|
+
case 8: {
|
|
52604
|
+
message.maxCommitDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32());
|
|
52605
|
+
break;
|
|
52606
|
+
}
|
|
51648
52607
|
case 6: {
|
|
51649
52608
|
message.requestOptions = $root.google.spanner.v1.RequestOptions.decode(reader, reader.uint32());
|
|
51650
52609
|
break;
|
|
@@ -51715,6 +52674,11 @@
|
|
|
51715
52674
|
if (message.returnCommitStats != null && message.hasOwnProperty("returnCommitStats"))
|
|
51716
52675
|
if (typeof message.returnCommitStats !== "boolean")
|
|
51717
52676
|
return "returnCommitStats: boolean expected";
|
|
52677
|
+
if (message.maxCommitDelay != null && message.hasOwnProperty("maxCommitDelay")) {
|
|
52678
|
+
var error = $root.google.protobuf.Duration.verify(message.maxCommitDelay);
|
|
52679
|
+
if (error)
|
|
52680
|
+
return "maxCommitDelay." + error;
|
|
52681
|
+
}
|
|
51718
52682
|
if (message.requestOptions != null && message.hasOwnProperty("requestOptions")) {
|
|
51719
52683
|
var error = $root.google.spanner.v1.RequestOptions.verify(message.requestOptions);
|
|
51720
52684
|
if (error)
|
|
@@ -51759,6 +52723,11 @@
|
|
|
51759
52723
|
}
|
|
51760
52724
|
if (object.returnCommitStats != null)
|
|
51761
52725
|
message.returnCommitStats = Boolean(object.returnCommitStats);
|
|
52726
|
+
if (object.maxCommitDelay != null) {
|
|
52727
|
+
if (typeof object.maxCommitDelay !== "object")
|
|
52728
|
+
throw TypeError(".google.spanner.v1.CommitRequest.maxCommitDelay: object expected");
|
|
52729
|
+
message.maxCommitDelay = $root.google.protobuf.Duration.fromObject(object.maxCommitDelay);
|
|
52730
|
+
}
|
|
51762
52731
|
if (object.requestOptions != null) {
|
|
51763
52732
|
if (typeof object.requestOptions !== "object")
|
|
51764
52733
|
throw TypeError(".google.spanner.v1.CommitRequest.requestOptions: object expected");
|
|
@@ -51786,6 +52755,7 @@
|
|
|
51786
52755
|
object.session = "";
|
|
51787
52756
|
object.returnCommitStats = false;
|
|
51788
52757
|
object.requestOptions = null;
|
|
52758
|
+
object.maxCommitDelay = null;
|
|
51789
52759
|
}
|
|
51790
52760
|
if (message.session != null && message.hasOwnProperty("session"))
|
|
51791
52761
|
object.session = message.session;
|
|
@@ -51808,6 +52778,8 @@
|
|
|
51808
52778
|
object.returnCommitStats = message.returnCommitStats;
|
|
51809
52779
|
if (message.requestOptions != null && message.hasOwnProperty("requestOptions"))
|
|
51810
52780
|
object.requestOptions = $root.google.spanner.v1.RequestOptions.toObject(message.requestOptions, options);
|
|
52781
|
+
if (message.maxCommitDelay != null && message.hasOwnProperty("maxCommitDelay"))
|
|
52782
|
+
object.maxCommitDelay = $root.google.protobuf.Duration.toObject(message.maxCommitDelay, options);
|
|
51811
52783
|
return object;
|
|
51812
52784
|
};
|
|
51813
52785
|
|
|
@@ -52889,6 +53861,7 @@
|
|
|
52889
53861
|
* @property {number} IMMUTABLE=5 IMMUTABLE value
|
|
52890
53862
|
* @property {number} UNORDERED_LIST=6 UNORDERED_LIST value
|
|
52891
53863
|
* @property {number} NON_EMPTY_DEFAULT=7 NON_EMPTY_DEFAULT value
|
|
53864
|
+
* @property {number} IDENTIFIER=8 IDENTIFIER value
|
|
52892
53865
|
*/
|
|
52893
53866
|
api.FieldBehavior = (function() {
|
|
52894
53867
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -52900,6 +53873,7 @@
|
|
|
52900
53873
|
values[valuesById[5] = "IMMUTABLE"] = 5;
|
|
52901
53874
|
values[valuesById[6] = "UNORDERED_LIST"] = 6;
|
|
52902
53875
|
values[valuesById[7] = "NON_EMPTY_DEFAULT"] = 7;
|
|
53876
|
+
values[valuesById[8] = "IDENTIFIER"] = 8;
|
|
52903
53877
|
return values;
|
|
52904
53878
|
})();
|
|
52905
53879
|
|
|
@@ -57859,6 +58833,7 @@
|
|
|
57859
58833
|
* @interface IMethodSettings
|
|
57860
58834
|
* @property {string|null} [selector] MethodSettings selector
|
|
57861
58835
|
* @property {google.api.MethodSettings.ILongRunning|null} [longRunning] MethodSettings longRunning
|
|
58836
|
+
* @property {Array.<string>|null} [autoPopulatedFields] MethodSettings autoPopulatedFields
|
|
57862
58837
|
*/
|
|
57863
58838
|
|
|
57864
58839
|
/**
|
|
@@ -57870,6 +58845,7 @@
|
|
|
57870
58845
|
* @param {google.api.IMethodSettings=} [properties] Properties to set
|
|
57871
58846
|
*/
|
|
57872
58847
|
function MethodSettings(properties) {
|
|
58848
|
+
this.autoPopulatedFields = [];
|
|
57873
58849
|
if (properties)
|
|
57874
58850
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
57875
58851
|
if (properties[keys[i]] != null)
|
|
@@ -57892,6 +58868,14 @@
|
|
|
57892
58868
|
*/
|
|
57893
58869
|
MethodSettings.prototype.longRunning = null;
|
|
57894
58870
|
|
|
58871
|
+
/**
|
|
58872
|
+
* MethodSettings autoPopulatedFields.
|
|
58873
|
+
* @member {Array.<string>} autoPopulatedFields
|
|
58874
|
+
* @memberof google.api.MethodSettings
|
|
58875
|
+
* @instance
|
|
58876
|
+
*/
|
|
58877
|
+
MethodSettings.prototype.autoPopulatedFields = $util.emptyArray;
|
|
58878
|
+
|
|
57895
58879
|
/**
|
|
57896
58880
|
* Creates a new MethodSettings instance using the specified properties.
|
|
57897
58881
|
* @function create
|
|
@@ -57920,6 +58904,9 @@
|
|
|
57920
58904
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector);
|
|
57921
58905
|
if (message.longRunning != null && Object.hasOwnProperty.call(message, "longRunning"))
|
|
57922
58906
|
$root.google.api.MethodSettings.LongRunning.encode(message.longRunning, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
58907
|
+
if (message.autoPopulatedFields != null && message.autoPopulatedFields.length)
|
|
58908
|
+
for (var i = 0; i < message.autoPopulatedFields.length; ++i)
|
|
58909
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.autoPopulatedFields[i]);
|
|
57923
58910
|
return writer;
|
|
57924
58911
|
};
|
|
57925
58912
|
|
|
@@ -57962,6 +58949,12 @@
|
|
|
57962
58949
|
message.longRunning = $root.google.api.MethodSettings.LongRunning.decode(reader, reader.uint32());
|
|
57963
58950
|
break;
|
|
57964
58951
|
}
|
|
58952
|
+
case 3: {
|
|
58953
|
+
if (!(message.autoPopulatedFields && message.autoPopulatedFields.length))
|
|
58954
|
+
message.autoPopulatedFields = [];
|
|
58955
|
+
message.autoPopulatedFields.push(reader.string());
|
|
58956
|
+
break;
|
|
58957
|
+
}
|
|
57965
58958
|
default:
|
|
57966
58959
|
reader.skipType(tag & 7);
|
|
57967
58960
|
break;
|
|
@@ -58005,6 +58998,13 @@
|
|
|
58005
58998
|
if (error)
|
|
58006
58999
|
return "longRunning." + error;
|
|
58007
59000
|
}
|
|
59001
|
+
if (message.autoPopulatedFields != null && message.hasOwnProperty("autoPopulatedFields")) {
|
|
59002
|
+
if (!Array.isArray(message.autoPopulatedFields))
|
|
59003
|
+
return "autoPopulatedFields: array expected";
|
|
59004
|
+
for (var i = 0; i < message.autoPopulatedFields.length; ++i)
|
|
59005
|
+
if (!$util.isString(message.autoPopulatedFields[i]))
|
|
59006
|
+
return "autoPopulatedFields: string[] expected";
|
|
59007
|
+
}
|
|
58008
59008
|
return null;
|
|
58009
59009
|
};
|
|
58010
59010
|
|
|
@@ -58027,6 +59027,13 @@
|
|
|
58027
59027
|
throw TypeError(".google.api.MethodSettings.longRunning: object expected");
|
|
58028
59028
|
message.longRunning = $root.google.api.MethodSettings.LongRunning.fromObject(object.longRunning);
|
|
58029
59029
|
}
|
|
59030
|
+
if (object.autoPopulatedFields) {
|
|
59031
|
+
if (!Array.isArray(object.autoPopulatedFields))
|
|
59032
|
+
throw TypeError(".google.api.MethodSettings.autoPopulatedFields: array expected");
|
|
59033
|
+
message.autoPopulatedFields = [];
|
|
59034
|
+
for (var i = 0; i < object.autoPopulatedFields.length; ++i)
|
|
59035
|
+
message.autoPopulatedFields[i] = String(object.autoPopulatedFields[i]);
|
|
59036
|
+
}
|
|
58030
59037
|
return message;
|
|
58031
59038
|
};
|
|
58032
59039
|
|
|
@@ -58043,6 +59050,8 @@
|
|
|
58043
59050
|
if (!options)
|
|
58044
59051
|
options = {};
|
|
58045
59052
|
var object = {};
|
|
59053
|
+
if (options.arrays || options.defaults)
|
|
59054
|
+
object.autoPopulatedFields = [];
|
|
58046
59055
|
if (options.defaults) {
|
|
58047
59056
|
object.selector = "";
|
|
58048
59057
|
object.longRunning = null;
|
|
@@ -58051,6 +59060,11 @@
|
|
|
58051
59060
|
object.selector = message.selector;
|
|
58052
59061
|
if (message.longRunning != null && message.hasOwnProperty("longRunning"))
|
|
58053
59062
|
object.longRunning = $root.google.api.MethodSettings.LongRunning.toObject(message.longRunning, options);
|
|
59063
|
+
if (message.autoPopulatedFields && message.autoPopulatedFields.length) {
|
|
59064
|
+
object.autoPopulatedFields = [];
|
|
59065
|
+
for (var j = 0; j < message.autoPopulatedFields.length; ++j)
|
|
59066
|
+
object.autoPopulatedFields[j] = message.autoPopulatedFields[j];
|
|
59067
|
+
}
|
|
58054
59068
|
return object;
|
|
58055
59069
|
};
|
|
58056
59070
|
|