@google-cloud/spanner 7.2.0 → 7.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/build/protos/google/spanner/admin/database/v1/spanner_database_admin.proto +40 -0
- package/build/protos/google/spanner/v1/spanner.proto +42 -8
- package/build/protos/google/spanner/v1/transaction.proto +17 -1
- package/build/protos/google/spanner/v1/type.proto +18 -0
- package/build/protos/protos.d.ts +304 -29
- package/build/protos/protos.js +1203 -119
- package/build/protos/protos.json +134 -36
- package/build/src/codec.d.ts +10 -0
- package/build/src/codec.js +34 -4
- package/build/src/index.js +2 -1
- package/build/src/partial-result-stream.d.ts +1 -1
- package/build/src/partial-result-stream.js +4 -3
- package/build/src/transaction.d.ts +5 -1
- package/build/src/transaction.js +9 -2
- 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 +34 -5
- package/build/src/v1/spanner_client.js +56 -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
|
|
|
@@ -41107,6 +42007,7 @@
|
|
|
41107
42007
|
* @property {google.spanner.v1.TransactionOptions.IReadWrite|null} [readWrite] TransactionOptions readWrite
|
|
41108
42008
|
* @property {google.spanner.v1.TransactionOptions.IPartitionedDml|null} [partitionedDml] TransactionOptions partitionedDml
|
|
41109
42009
|
* @property {google.spanner.v1.TransactionOptions.IReadOnly|null} [readOnly] TransactionOptions readOnly
|
|
42010
|
+
* @property {boolean|null} [excludeTxnFromChangeStreams] TransactionOptions excludeTxnFromChangeStreams
|
|
41110
42011
|
*/
|
|
41111
42012
|
|
|
41112
42013
|
/**
|
|
@@ -41148,6 +42049,14 @@
|
|
|
41148
42049
|
*/
|
|
41149
42050
|
TransactionOptions.prototype.readOnly = null;
|
|
41150
42051
|
|
|
42052
|
+
/**
|
|
42053
|
+
* TransactionOptions excludeTxnFromChangeStreams.
|
|
42054
|
+
* @member {boolean} excludeTxnFromChangeStreams
|
|
42055
|
+
* @memberof google.spanner.v1.TransactionOptions
|
|
42056
|
+
* @instance
|
|
42057
|
+
*/
|
|
42058
|
+
TransactionOptions.prototype.excludeTxnFromChangeStreams = false;
|
|
42059
|
+
|
|
41151
42060
|
// OneOf field names bound to virtual getters and setters
|
|
41152
42061
|
var $oneOfFields;
|
|
41153
42062
|
|
|
@@ -41192,6 +42101,8 @@
|
|
|
41192
42101
|
$root.google.spanner.v1.TransactionOptions.ReadOnly.encode(message.readOnly, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
41193
42102
|
if (message.partitionedDml != null && Object.hasOwnProperty.call(message, "partitionedDml"))
|
|
41194
42103
|
$root.google.spanner.v1.TransactionOptions.PartitionedDml.encode(message.partitionedDml, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
42104
|
+
if (message.excludeTxnFromChangeStreams != null && Object.hasOwnProperty.call(message, "excludeTxnFromChangeStreams"))
|
|
42105
|
+
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.excludeTxnFromChangeStreams);
|
|
41195
42106
|
return writer;
|
|
41196
42107
|
};
|
|
41197
42108
|
|
|
@@ -41238,6 +42149,10 @@
|
|
|
41238
42149
|
message.readOnly = $root.google.spanner.v1.TransactionOptions.ReadOnly.decode(reader, reader.uint32());
|
|
41239
42150
|
break;
|
|
41240
42151
|
}
|
|
42152
|
+
case 5: {
|
|
42153
|
+
message.excludeTxnFromChangeStreams = reader.bool();
|
|
42154
|
+
break;
|
|
42155
|
+
}
|
|
41241
42156
|
default:
|
|
41242
42157
|
reader.skipType(tag & 7);
|
|
41243
42158
|
break;
|
|
@@ -41302,6 +42217,9 @@
|
|
|
41302
42217
|
return "readOnly." + error;
|
|
41303
42218
|
}
|
|
41304
42219
|
}
|
|
42220
|
+
if (message.excludeTxnFromChangeStreams != null && message.hasOwnProperty("excludeTxnFromChangeStreams"))
|
|
42221
|
+
if (typeof message.excludeTxnFromChangeStreams !== "boolean")
|
|
42222
|
+
return "excludeTxnFromChangeStreams: boolean expected";
|
|
41305
42223
|
return null;
|
|
41306
42224
|
};
|
|
41307
42225
|
|
|
@@ -41332,6 +42250,8 @@
|
|
|
41332
42250
|
throw TypeError(".google.spanner.v1.TransactionOptions.readOnly: object expected");
|
|
41333
42251
|
message.readOnly = $root.google.spanner.v1.TransactionOptions.ReadOnly.fromObject(object.readOnly);
|
|
41334
42252
|
}
|
|
42253
|
+
if (object.excludeTxnFromChangeStreams != null)
|
|
42254
|
+
message.excludeTxnFromChangeStreams = Boolean(object.excludeTxnFromChangeStreams);
|
|
41335
42255
|
return message;
|
|
41336
42256
|
};
|
|
41337
42257
|
|
|
@@ -41348,6 +42268,8 @@
|
|
|
41348
42268
|
if (!options)
|
|
41349
42269
|
options = {};
|
|
41350
42270
|
var object = {};
|
|
42271
|
+
if (options.defaults)
|
|
42272
|
+
object.excludeTxnFromChangeStreams = false;
|
|
41351
42273
|
if (message.readWrite != null && message.hasOwnProperty("readWrite")) {
|
|
41352
42274
|
object.readWrite = $root.google.spanner.v1.TransactionOptions.ReadWrite.toObject(message.readWrite, options);
|
|
41353
42275
|
if (options.oneofs)
|
|
@@ -41363,6 +42285,8 @@
|
|
|
41363
42285
|
if (options.oneofs)
|
|
41364
42286
|
object.mode = "partitionedDml";
|
|
41365
42287
|
}
|
|
42288
|
+
if (message.excludeTxnFromChangeStreams != null && message.hasOwnProperty("excludeTxnFromChangeStreams"))
|
|
42289
|
+
object.excludeTxnFromChangeStreams = message.excludeTxnFromChangeStreams;
|
|
41366
42290
|
return object;
|
|
41367
42291
|
};
|
|
41368
42292
|
|
|
@@ -42743,6 +43667,7 @@
|
|
|
42743
43667
|
* @property {google.spanner.v1.IType|null} [arrayElementType] Type arrayElementType
|
|
42744
43668
|
* @property {google.spanner.v1.IStructType|null} [structType] Type structType
|
|
42745
43669
|
* @property {google.spanner.v1.TypeAnnotationCode|null} [typeAnnotation] Type typeAnnotation
|
|
43670
|
+
* @property {string|null} [protoTypeFqn] Type protoTypeFqn
|
|
42746
43671
|
*/
|
|
42747
43672
|
|
|
42748
43673
|
/**
|
|
@@ -42792,6 +43717,14 @@
|
|
|
42792
43717
|
*/
|
|
42793
43718
|
Type.prototype.typeAnnotation = 0;
|
|
42794
43719
|
|
|
43720
|
+
/**
|
|
43721
|
+
* Type protoTypeFqn.
|
|
43722
|
+
* @member {string} protoTypeFqn
|
|
43723
|
+
* @memberof google.spanner.v1.Type
|
|
43724
|
+
* @instance
|
|
43725
|
+
*/
|
|
43726
|
+
Type.prototype.protoTypeFqn = "";
|
|
43727
|
+
|
|
42795
43728
|
/**
|
|
42796
43729
|
* Creates a new Type instance using the specified properties.
|
|
42797
43730
|
* @function create
|
|
@@ -42824,6 +43757,8 @@
|
|
|
42824
43757
|
$root.google.spanner.v1.StructType.encode(message.structType, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
42825
43758
|
if (message.typeAnnotation != null && Object.hasOwnProperty.call(message, "typeAnnotation"))
|
|
42826
43759
|
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.typeAnnotation);
|
|
43760
|
+
if (message.protoTypeFqn != null && Object.hasOwnProperty.call(message, "protoTypeFqn"))
|
|
43761
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.protoTypeFqn);
|
|
42827
43762
|
return writer;
|
|
42828
43763
|
};
|
|
42829
43764
|
|
|
@@ -42874,6 +43809,10 @@
|
|
|
42874
43809
|
message.typeAnnotation = reader.int32();
|
|
42875
43810
|
break;
|
|
42876
43811
|
}
|
|
43812
|
+
case 5: {
|
|
43813
|
+
message.protoTypeFqn = reader.string();
|
|
43814
|
+
break;
|
|
43815
|
+
}
|
|
42877
43816
|
default:
|
|
42878
43817
|
reader.skipType(tag & 7);
|
|
42879
43818
|
break;
|
|
@@ -42917,6 +43856,7 @@
|
|
|
42917
43856
|
case 1:
|
|
42918
43857
|
case 2:
|
|
42919
43858
|
case 3:
|
|
43859
|
+
case 15:
|
|
42920
43860
|
case 4:
|
|
42921
43861
|
case 5:
|
|
42922
43862
|
case 6:
|
|
@@ -42925,6 +43865,8 @@
|
|
|
42925
43865
|
case 9:
|
|
42926
43866
|
case 10:
|
|
42927
43867
|
case 11:
|
|
43868
|
+
case 13:
|
|
43869
|
+
case 14:
|
|
42928
43870
|
break;
|
|
42929
43871
|
}
|
|
42930
43872
|
if (message.arrayElementType != null && message.hasOwnProperty("arrayElementType")) {
|
|
@@ -42947,6 +43889,9 @@
|
|
|
42947
43889
|
case 4:
|
|
42948
43890
|
break;
|
|
42949
43891
|
}
|
|
43892
|
+
if (message.protoTypeFqn != null && message.hasOwnProperty("protoTypeFqn"))
|
|
43893
|
+
if (!$util.isString(message.protoTypeFqn))
|
|
43894
|
+
return "protoTypeFqn: string expected";
|
|
42950
43895
|
return null;
|
|
42951
43896
|
};
|
|
42952
43897
|
|
|
@@ -42985,6 +43930,10 @@
|
|
|
42985
43930
|
case 3:
|
|
42986
43931
|
message.code = 3;
|
|
42987
43932
|
break;
|
|
43933
|
+
case "FLOAT32":
|
|
43934
|
+
case 15:
|
|
43935
|
+
message.code = 15;
|
|
43936
|
+
break;
|
|
42988
43937
|
case "TIMESTAMP":
|
|
42989
43938
|
case 4:
|
|
42990
43939
|
message.code = 4;
|
|
@@ -43017,6 +43966,14 @@
|
|
|
43017
43966
|
case 11:
|
|
43018
43967
|
message.code = 11;
|
|
43019
43968
|
break;
|
|
43969
|
+
case "PROTO":
|
|
43970
|
+
case 13:
|
|
43971
|
+
message.code = 13;
|
|
43972
|
+
break;
|
|
43973
|
+
case "ENUM":
|
|
43974
|
+
case 14:
|
|
43975
|
+
message.code = 14;
|
|
43976
|
+
break;
|
|
43020
43977
|
}
|
|
43021
43978
|
if (object.arrayElementType != null) {
|
|
43022
43979
|
if (typeof object.arrayElementType !== "object")
|
|
@@ -43052,6 +44009,8 @@
|
|
|
43052
44009
|
message.typeAnnotation = 4;
|
|
43053
44010
|
break;
|
|
43054
44011
|
}
|
|
44012
|
+
if (object.protoTypeFqn != null)
|
|
44013
|
+
message.protoTypeFqn = String(object.protoTypeFqn);
|
|
43055
44014
|
return message;
|
|
43056
44015
|
};
|
|
43057
44016
|
|
|
@@ -43073,6 +44032,7 @@
|
|
|
43073
44032
|
object.arrayElementType = null;
|
|
43074
44033
|
object.structType = null;
|
|
43075
44034
|
object.typeAnnotation = options.enums === String ? "TYPE_ANNOTATION_CODE_UNSPECIFIED" : 0;
|
|
44035
|
+
object.protoTypeFqn = "";
|
|
43076
44036
|
}
|
|
43077
44037
|
if (message.code != null && message.hasOwnProperty("code"))
|
|
43078
44038
|
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 +44042,8 @@
|
|
|
43082
44042
|
object.structType = $root.google.spanner.v1.StructType.toObject(message.structType, options);
|
|
43083
44043
|
if (message.typeAnnotation != null && message.hasOwnProperty("typeAnnotation"))
|
|
43084
44044
|
object.typeAnnotation = options.enums === String ? $root.google.spanner.v1.TypeAnnotationCode[message.typeAnnotation] === undefined ? message.typeAnnotation : $root.google.spanner.v1.TypeAnnotationCode[message.typeAnnotation] : message.typeAnnotation;
|
|
44045
|
+
if (message.protoTypeFqn != null && message.hasOwnProperty("protoTypeFqn"))
|
|
44046
|
+
object.protoTypeFqn = message.protoTypeFqn;
|
|
43085
44047
|
return object;
|
|
43086
44048
|
};
|
|
43087
44049
|
|
|
@@ -43578,6 +44540,7 @@
|
|
|
43578
44540
|
* @property {number} BOOL=1 BOOL value
|
|
43579
44541
|
* @property {number} INT64=2 INT64 value
|
|
43580
44542
|
* @property {number} FLOAT64=3 FLOAT64 value
|
|
44543
|
+
* @property {number} FLOAT32=15 FLOAT32 value
|
|
43581
44544
|
* @property {number} TIMESTAMP=4 TIMESTAMP value
|
|
43582
44545
|
* @property {number} DATE=5 DATE value
|
|
43583
44546
|
* @property {number} STRING=6 STRING value
|
|
@@ -43586,6 +44549,8 @@
|
|
|
43586
44549
|
* @property {number} STRUCT=9 STRUCT value
|
|
43587
44550
|
* @property {number} NUMERIC=10 NUMERIC value
|
|
43588
44551
|
* @property {number} JSON=11 JSON value
|
|
44552
|
+
* @property {number} PROTO=13 PROTO value
|
|
44553
|
+
* @property {number} ENUM=14 ENUM value
|
|
43589
44554
|
*/
|
|
43590
44555
|
v1.TypeCode = (function() {
|
|
43591
44556
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -43593,6 +44558,7 @@
|
|
|
43593
44558
|
values[valuesById[1] = "BOOL"] = 1;
|
|
43594
44559
|
values[valuesById[2] = "INT64"] = 2;
|
|
43595
44560
|
values[valuesById[3] = "FLOAT64"] = 3;
|
|
44561
|
+
values[valuesById[15] = "FLOAT32"] = 15;
|
|
43596
44562
|
values[valuesById[4] = "TIMESTAMP"] = 4;
|
|
43597
44563
|
values[valuesById[5] = "DATE"] = 5;
|
|
43598
44564
|
values[valuesById[6] = "STRING"] = 6;
|
|
@@ -43601,6 +44567,8 @@
|
|
|
43601
44567
|
values[valuesById[9] = "STRUCT"] = 9;
|
|
43602
44568
|
values[valuesById[10] = "NUMERIC"] = 10;
|
|
43603
44569
|
values[valuesById[11] = "JSON"] = 11;
|
|
44570
|
+
values[valuesById[13] = "PROTO"] = 13;
|
|
44571
|
+
values[valuesById[14] = "ENUM"] = 14;
|
|
43604
44572
|
return values;
|
|
43605
44573
|
})();
|
|
43606
44574
|
|
|
@@ -44907,6 +45875,7 @@
|
|
|
44907
45875
|
* @property {google.protobuf.ITimestamp|null} [createTime] Session createTime
|
|
44908
45876
|
* @property {google.protobuf.ITimestamp|null} [approximateLastUseTime] Session approximateLastUseTime
|
|
44909
45877
|
* @property {string|null} [creatorRole] Session creatorRole
|
|
45878
|
+
* @property {boolean|null} [multiplexed] Session multiplexed
|
|
44910
45879
|
*/
|
|
44911
45880
|
|
|
44912
45881
|
/**
|
|
@@ -44965,6 +45934,14 @@
|
|
|
44965
45934
|
*/
|
|
44966
45935
|
Session.prototype.creatorRole = "";
|
|
44967
45936
|
|
|
45937
|
+
/**
|
|
45938
|
+
* Session multiplexed.
|
|
45939
|
+
* @member {boolean} multiplexed
|
|
45940
|
+
* @memberof google.spanner.v1.Session
|
|
45941
|
+
* @instance
|
|
45942
|
+
*/
|
|
45943
|
+
Session.prototype.multiplexed = false;
|
|
45944
|
+
|
|
44968
45945
|
/**
|
|
44969
45946
|
* Creates a new Session instance using the specified properties.
|
|
44970
45947
|
* @function create
|
|
@@ -45000,6 +45977,8 @@
|
|
|
45000
45977
|
$root.google.protobuf.Timestamp.encode(message.approximateLastUseTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
45001
45978
|
if (message.creatorRole != null && Object.hasOwnProperty.call(message, "creatorRole"))
|
|
45002
45979
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.creatorRole);
|
|
45980
|
+
if (message.multiplexed != null && Object.hasOwnProperty.call(message, "multiplexed"))
|
|
45981
|
+
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.multiplexed);
|
|
45003
45982
|
return writer;
|
|
45004
45983
|
};
|
|
45005
45984
|
|
|
@@ -45073,6 +46052,10 @@
|
|
|
45073
46052
|
message.creatorRole = reader.string();
|
|
45074
46053
|
break;
|
|
45075
46054
|
}
|
|
46055
|
+
case 6: {
|
|
46056
|
+
message.multiplexed = reader.bool();
|
|
46057
|
+
break;
|
|
46058
|
+
}
|
|
45076
46059
|
default:
|
|
45077
46060
|
reader.skipType(tag & 7);
|
|
45078
46061
|
break;
|
|
@@ -45132,6 +46115,9 @@
|
|
|
45132
46115
|
if (message.creatorRole != null && message.hasOwnProperty("creatorRole"))
|
|
45133
46116
|
if (!$util.isString(message.creatorRole))
|
|
45134
46117
|
return "creatorRole: string expected";
|
|
46118
|
+
if (message.multiplexed != null && message.hasOwnProperty("multiplexed"))
|
|
46119
|
+
if (typeof message.multiplexed !== "boolean")
|
|
46120
|
+
return "multiplexed: boolean expected";
|
|
45135
46121
|
return null;
|
|
45136
46122
|
};
|
|
45137
46123
|
|
|
@@ -45168,6 +46154,8 @@
|
|
|
45168
46154
|
}
|
|
45169
46155
|
if (object.creatorRole != null)
|
|
45170
46156
|
message.creatorRole = String(object.creatorRole);
|
|
46157
|
+
if (object.multiplexed != null)
|
|
46158
|
+
message.multiplexed = Boolean(object.multiplexed);
|
|
45171
46159
|
return message;
|
|
45172
46160
|
};
|
|
45173
46161
|
|
|
@@ -45191,6 +46179,7 @@
|
|
|
45191
46179
|
object.createTime = null;
|
|
45192
46180
|
object.approximateLastUseTime = null;
|
|
45193
46181
|
object.creatorRole = "";
|
|
46182
|
+
object.multiplexed = false;
|
|
45194
46183
|
}
|
|
45195
46184
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
45196
46185
|
object.name = message.name;
|
|
@@ -45206,6 +46195,8 @@
|
|
|
45206
46195
|
object.approximateLastUseTime = $root.google.protobuf.Timestamp.toObject(message.approximateLastUseTime, options);
|
|
45207
46196
|
if (message.creatorRole != null && message.hasOwnProperty("creatorRole"))
|
|
45208
46197
|
object.creatorRole = message.creatorRole;
|
|
46198
|
+
if (message.multiplexed != null && message.hasOwnProperty("multiplexed"))
|
|
46199
|
+
object.multiplexed = message.multiplexed;
|
|
45209
46200
|
return object;
|
|
45210
46201
|
};
|
|
45211
46202
|
|
|
@@ -51471,6 +52462,7 @@
|
|
|
51471
52462
|
* @property {google.spanner.v1.ITransactionOptions|null} [singleUseTransaction] CommitRequest singleUseTransaction
|
|
51472
52463
|
* @property {Array.<google.spanner.v1.IMutation>|null} [mutations] CommitRequest mutations
|
|
51473
52464
|
* @property {boolean|null} [returnCommitStats] CommitRequest returnCommitStats
|
|
52465
|
+
* @property {google.protobuf.IDuration|null} [maxCommitDelay] CommitRequest maxCommitDelay
|
|
51474
52466
|
* @property {google.spanner.v1.IRequestOptions|null} [requestOptions] CommitRequest requestOptions
|
|
51475
52467
|
*/
|
|
51476
52468
|
|
|
@@ -51530,6 +52522,14 @@
|
|
|
51530
52522
|
*/
|
|
51531
52523
|
CommitRequest.prototype.returnCommitStats = false;
|
|
51532
52524
|
|
|
52525
|
+
/**
|
|
52526
|
+
* CommitRequest maxCommitDelay.
|
|
52527
|
+
* @member {google.protobuf.IDuration|null|undefined} maxCommitDelay
|
|
52528
|
+
* @memberof google.spanner.v1.CommitRequest
|
|
52529
|
+
* @instance
|
|
52530
|
+
*/
|
|
52531
|
+
CommitRequest.prototype.maxCommitDelay = null;
|
|
52532
|
+
|
|
51533
52533
|
/**
|
|
51534
52534
|
* CommitRequest requestOptions.
|
|
51535
52535
|
* @member {google.spanner.v1.IRequestOptions|null|undefined} requestOptions
|
|
@@ -51589,6 +52589,8 @@
|
|
|
51589
52589
|
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.returnCommitStats);
|
|
51590
52590
|
if (message.requestOptions != null && Object.hasOwnProperty.call(message, "requestOptions"))
|
|
51591
52591
|
$root.google.spanner.v1.RequestOptions.encode(message.requestOptions, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
52592
|
+
if (message.maxCommitDelay != null && Object.hasOwnProperty.call(message, "maxCommitDelay"))
|
|
52593
|
+
$root.google.protobuf.Duration.encode(message.maxCommitDelay, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
51592
52594
|
return writer;
|
|
51593
52595
|
};
|
|
51594
52596
|
|
|
@@ -51645,6 +52647,10 @@
|
|
|
51645
52647
|
message.returnCommitStats = reader.bool();
|
|
51646
52648
|
break;
|
|
51647
52649
|
}
|
|
52650
|
+
case 8: {
|
|
52651
|
+
message.maxCommitDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32());
|
|
52652
|
+
break;
|
|
52653
|
+
}
|
|
51648
52654
|
case 6: {
|
|
51649
52655
|
message.requestOptions = $root.google.spanner.v1.RequestOptions.decode(reader, reader.uint32());
|
|
51650
52656
|
break;
|
|
@@ -51715,6 +52721,11 @@
|
|
|
51715
52721
|
if (message.returnCommitStats != null && message.hasOwnProperty("returnCommitStats"))
|
|
51716
52722
|
if (typeof message.returnCommitStats !== "boolean")
|
|
51717
52723
|
return "returnCommitStats: boolean expected";
|
|
52724
|
+
if (message.maxCommitDelay != null && message.hasOwnProperty("maxCommitDelay")) {
|
|
52725
|
+
var error = $root.google.protobuf.Duration.verify(message.maxCommitDelay);
|
|
52726
|
+
if (error)
|
|
52727
|
+
return "maxCommitDelay." + error;
|
|
52728
|
+
}
|
|
51718
52729
|
if (message.requestOptions != null && message.hasOwnProperty("requestOptions")) {
|
|
51719
52730
|
var error = $root.google.spanner.v1.RequestOptions.verify(message.requestOptions);
|
|
51720
52731
|
if (error)
|
|
@@ -51759,6 +52770,11 @@
|
|
|
51759
52770
|
}
|
|
51760
52771
|
if (object.returnCommitStats != null)
|
|
51761
52772
|
message.returnCommitStats = Boolean(object.returnCommitStats);
|
|
52773
|
+
if (object.maxCommitDelay != null) {
|
|
52774
|
+
if (typeof object.maxCommitDelay !== "object")
|
|
52775
|
+
throw TypeError(".google.spanner.v1.CommitRequest.maxCommitDelay: object expected");
|
|
52776
|
+
message.maxCommitDelay = $root.google.protobuf.Duration.fromObject(object.maxCommitDelay);
|
|
52777
|
+
}
|
|
51762
52778
|
if (object.requestOptions != null) {
|
|
51763
52779
|
if (typeof object.requestOptions !== "object")
|
|
51764
52780
|
throw TypeError(".google.spanner.v1.CommitRequest.requestOptions: object expected");
|
|
@@ -51786,6 +52802,7 @@
|
|
|
51786
52802
|
object.session = "";
|
|
51787
52803
|
object.returnCommitStats = false;
|
|
51788
52804
|
object.requestOptions = null;
|
|
52805
|
+
object.maxCommitDelay = null;
|
|
51789
52806
|
}
|
|
51790
52807
|
if (message.session != null && message.hasOwnProperty("session"))
|
|
51791
52808
|
object.session = message.session;
|
|
@@ -51808,6 +52825,8 @@
|
|
|
51808
52825
|
object.returnCommitStats = message.returnCommitStats;
|
|
51809
52826
|
if (message.requestOptions != null && message.hasOwnProperty("requestOptions"))
|
|
51810
52827
|
object.requestOptions = $root.google.spanner.v1.RequestOptions.toObject(message.requestOptions, options);
|
|
52828
|
+
if (message.maxCommitDelay != null && message.hasOwnProperty("maxCommitDelay"))
|
|
52829
|
+
object.maxCommitDelay = $root.google.protobuf.Duration.toObject(message.maxCommitDelay, options);
|
|
51811
52830
|
return object;
|
|
51812
52831
|
};
|
|
51813
52832
|
|
|
@@ -52085,6 +53104,7 @@
|
|
|
52085
53104
|
* @property {string|null} [session] BatchWriteRequest session
|
|
52086
53105
|
* @property {google.spanner.v1.IRequestOptions|null} [requestOptions] BatchWriteRequest requestOptions
|
|
52087
53106
|
* @property {Array.<google.spanner.v1.BatchWriteRequest.IMutationGroup>|null} [mutationGroups] BatchWriteRequest mutationGroups
|
|
53107
|
+
* @property {boolean|null} [excludeTxnFromChangeStreams] BatchWriteRequest excludeTxnFromChangeStreams
|
|
52088
53108
|
*/
|
|
52089
53109
|
|
|
52090
53110
|
/**
|
|
@@ -52127,6 +53147,14 @@
|
|
|
52127
53147
|
*/
|
|
52128
53148
|
BatchWriteRequest.prototype.mutationGroups = $util.emptyArray;
|
|
52129
53149
|
|
|
53150
|
+
/**
|
|
53151
|
+
* BatchWriteRequest excludeTxnFromChangeStreams.
|
|
53152
|
+
* @member {boolean} excludeTxnFromChangeStreams
|
|
53153
|
+
* @memberof google.spanner.v1.BatchWriteRequest
|
|
53154
|
+
* @instance
|
|
53155
|
+
*/
|
|
53156
|
+
BatchWriteRequest.prototype.excludeTxnFromChangeStreams = false;
|
|
53157
|
+
|
|
52130
53158
|
/**
|
|
52131
53159
|
* Creates a new BatchWriteRequest instance using the specified properties.
|
|
52132
53160
|
* @function create
|
|
@@ -52158,6 +53186,8 @@
|
|
|
52158
53186
|
if (message.mutationGroups != null && message.mutationGroups.length)
|
|
52159
53187
|
for (var i = 0; i < message.mutationGroups.length; ++i)
|
|
52160
53188
|
$root.google.spanner.v1.BatchWriteRequest.MutationGroup.encode(message.mutationGroups[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
53189
|
+
if (message.excludeTxnFromChangeStreams != null && Object.hasOwnProperty.call(message, "excludeTxnFromChangeStreams"))
|
|
53190
|
+
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.excludeTxnFromChangeStreams);
|
|
52161
53191
|
return writer;
|
|
52162
53192
|
};
|
|
52163
53193
|
|
|
@@ -52206,6 +53236,10 @@
|
|
|
52206
53236
|
message.mutationGroups.push($root.google.spanner.v1.BatchWriteRequest.MutationGroup.decode(reader, reader.uint32()));
|
|
52207
53237
|
break;
|
|
52208
53238
|
}
|
|
53239
|
+
case 5: {
|
|
53240
|
+
message.excludeTxnFromChangeStreams = reader.bool();
|
|
53241
|
+
break;
|
|
53242
|
+
}
|
|
52209
53243
|
default:
|
|
52210
53244
|
reader.skipType(tag & 7);
|
|
52211
53245
|
break;
|
|
@@ -52258,6 +53292,9 @@
|
|
|
52258
53292
|
return "mutationGroups." + error;
|
|
52259
53293
|
}
|
|
52260
53294
|
}
|
|
53295
|
+
if (message.excludeTxnFromChangeStreams != null && message.hasOwnProperty("excludeTxnFromChangeStreams"))
|
|
53296
|
+
if (typeof message.excludeTxnFromChangeStreams !== "boolean")
|
|
53297
|
+
return "excludeTxnFromChangeStreams: boolean expected";
|
|
52261
53298
|
return null;
|
|
52262
53299
|
};
|
|
52263
53300
|
|
|
@@ -52290,6 +53327,8 @@
|
|
|
52290
53327
|
message.mutationGroups[i] = $root.google.spanner.v1.BatchWriteRequest.MutationGroup.fromObject(object.mutationGroups[i]);
|
|
52291
53328
|
}
|
|
52292
53329
|
}
|
|
53330
|
+
if (object.excludeTxnFromChangeStreams != null)
|
|
53331
|
+
message.excludeTxnFromChangeStreams = Boolean(object.excludeTxnFromChangeStreams);
|
|
52293
53332
|
return message;
|
|
52294
53333
|
};
|
|
52295
53334
|
|
|
@@ -52311,6 +53350,7 @@
|
|
|
52311
53350
|
if (options.defaults) {
|
|
52312
53351
|
object.session = "";
|
|
52313
53352
|
object.requestOptions = null;
|
|
53353
|
+
object.excludeTxnFromChangeStreams = false;
|
|
52314
53354
|
}
|
|
52315
53355
|
if (message.session != null && message.hasOwnProperty("session"))
|
|
52316
53356
|
object.session = message.session;
|
|
@@ -52321,6 +53361,8 @@
|
|
|
52321
53361
|
for (var j = 0; j < message.mutationGroups.length; ++j)
|
|
52322
53362
|
object.mutationGroups[j] = $root.google.spanner.v1.BatchWriteRequest.MutationGroup.toObject(message.mutationGroups[j], options);
|
|
52323
53363
|
}
|
|
53364
|
+
if (message.excludeTxnFromChangeStreams != null && message.hasOwnProperty("excludeTxnFromChangeStreams"))
|
|
53365
|
+
object.excludeTxnFromChangeStreams = message.excludeTxnFromChangeStreams;
|
|
52324
53366
|
return object;
|
|
52325
53367
|
};
|
|
52326
53368
|
|
|
@@ -52889,6 +53931,7 @@
|
|
|
52889
53931
|
* @property {number} IMMUTABLE=5 IMMUTABLE value
|
|
52890
53932
|
* @property {number} UNORDERED_LIST=6 UNORDERED_LIST value
|
|
52891
53933
|
* @property {number} NON_EMPTY_DEFAULT=7 NON_EMPTY_DEFAULT value
|
|
53934
|
+
* @property {number} IDENTIFIER=8 IDENTIFIER value
|
|
52892
53935
|
*/
|
|
52893
53936
|
api.FieldBehavior = (function() {
|
|
52894
53937
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -52900,6 +53943,7 @@
|
|
|
52900
53943
|
values[valuesById[5] = "IMMUTABLE"] = 5;
|
|
52901
53944
|
values[valuesById[6] = "UNORDERED_LIST"] = 6;
|
|
52902
53945
|
values[valuesById[7] = "NON_EMPTY_DEFAULT"] = 7;
|
|
53946
|
+
values[valuesById[8] = "IDENTIFIER"] = 8;
|
|
52903
53947
|
return values;
|
|
52904
53948
|
})();
|
|
52905
53949
|
|
|
@@ -57859,6 +58903,7 @@
|
|
|
57859
58903
|
* @interface IMethodSettings
|
|
57860
58904
|
* @property {string|null} [selector] MethodSettings selector
|
|
57861
58905
|
* @property {google.api.MethodSettings.ILongRunning|null} [longRunning] MethodSettings longRunning
|
|
58906
|
+
* @property {Array.<string>|null} [autoPopulatedFields] MethodSettings autoPopulatedFields
|
|
57862
58907
|
*/
|
|
57863
58908
|
|
|
57864
58909
|
/**
|
|
@@ -57870,6 +58915,7 @@
|
|
|
57870
58915
|
* @param {google.api.IMethodSettings=} [properties] Properties to set
|
|
57871
58916
|
*/
|
|
57872
58917
|
function MethodSettings(properties) {
|
|
58918
|
+
this.autoPopulatedFields = [];
|
|
57873
58919
|
if (properties)
|
|
57874
58920
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
57875
58921
|
if (properties[keys[i]] != null)
|
|
@@ -57892,6 +58938,14 @@
|
|
|
57892
58938
|
*/
|
|
57893
58939
|
MethodSettings.prototype.longRunning = null;
|
|
57894
58940
|
|
|
58941
|
+
/**
|
|
58942
|
+
* MethodSettings autoPopulatedFields.
|
|
58943
|
+
* @member {Array.<string>} autoPopulatedFields
|
|
58944
|
+
* @memberof google.api.MethodSettings
|
|
58945
|
+
* @instance
|
|
58946
|
+
*/
|
|
58947
|
+
MethodSettings.prototype.autoPopulatedFields = $util.emptyArray;
|
|
58948
|
+
|
|
57895
58949
|
/**
|
|
57896
58950
|
* Creates a new MethodSettings instance using the specified properties.
|
|
57897
58951
|
* @function create
|
|
@@ -57920,6 +58974,9 @@
|
|
|
57920
58974
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector);
|
|
57921
58975
|
if (message.longRunning != null && Object.hasOwnProperty.call(message, "longRunning"))
|
|
57922
58976
|
$root.google.api.MethodSettings.LongRunning.encode(message.longRunning, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
58977
|
+
if (message.autoPopulatedFields != null && message.autoPopulatedFields.length)
|
|
58978
|
+
for (var i = 0; i < message.autoPopulatedFields.length; ++i)
|
|
58979
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.autoPopulatedFields[i]);
|
|
57923
58980
|
return writer;
|
|
57924
58981
|
};
|
|
57925
58982
|
|
|
@@ -57962,6 +59019,12 @@
|
|
|
57962
59019
|
message.longRunning = $root.google.api.MethodSettings.LongRunning.decode(reader, reader.uint32());
|
|
57963
59020
|
break;
|
|
57964
59021
|
}
|
|
59022
|
+
case 3: {
|
|
59023
|
+
if (!(message.autoPopulatedFields && message.autoPopulatedFields.length))
|
|
59024
|
+
message.autoPopulatedFields = [];
|
|
59025
|
+
message.autoPopulatedFields.push(reader.string());
|
|
59026
|
+
break;
|
|
59027
|
+
}
|
|
57965
59028
|
default:
|
|
57966
59029
|
reader.skipType(tag & 7);
|
|
57967
59030
|
break;
|
|
@@ -58005,6 +59068,13 @@
|
|
|
58005
59068
|
if (error)
|
|
58006
59069
|
return "longRunning." + error;
|
|
58007
59070
|
}
|
|
59071
|
+
if (message.autoPopulatedFields != null && message.hasOwnProperty("autoPopulatedFields")) {
|
|
59072
|
+
if (!Array.isArray(message.autoPopulatedFields))
|
|
59073
|
+
return "autoPopulatedFields: array expected";
|
|
59074
|
+
for (var i = 0; i < message.autoPopulatedFields.length; ++i)
|
|
59075
|
+
if (!$util.isString(message.autoPopulatedFields[i]))
|
|
59076
|
+
return "autoPopulatedFields: string[] expected";
|
|
59077
|
+
}
|
|
58008
59078
|
return null;
|
|
58009
59079
|
};
|
|
58010
59080
|
|
|
@@ -58027,6 +59097,13 @@
|
|
|
58027
59097
|
throw TypeError(".google.api.MethodSettings.longRunning: object expected");
|
|
58028
59098
|
message.longRunning = $root.google.api.MethodSettings.LongRunning.fromObject(object.longRunning);
|
|
58029
59099
|
}
|
|
59100
|
+
if (object.autoPopulatedFields) {
|
|
59101
|
+
if (!Array.isArray(object.autoPopulatedFields))
|
|
59102
|
+
throw TypeError(".google.api.MethodSettings.autoPopulatedFields: array expected");
|
|
59103
|
+
message.autoPopulatedFields = [];
|
|
59104
|
+
for (var i = 0; i < object.autoPopulatedFields.length; ++i)
|
|
59105
|
+
message.autoPopulatedFields[i] = String(object.autoPopulatedFields[i]);
|
|
59106
|
+
}
|
|
58030
59107
|
return message;
|
|
58031
59108
|
};
|
|
58032
59109
|
|
|
@@ -58043,6 +59120,8 @@
|
|
|
58043
59120
|
if (!options)
|
|
58044
59121
|
options = {};
|
|
58045
59122
|
var object = {};
|
|
59123
|
+
if (options.arrays || options.defaults)
|
|
59124
|
+
object.autoPopulatedFields = [];
|
|
58046
59125
|
if (options.defaults) {
|
|
58047
59126
|
object.selector = "";
|
|
58048
59127
|
object.longRunning = null;
|
|
@@ -58051,6 +59130,11 @@
|
|
|
58051
59130
|
object.selector = message.selector;
|
|
58052
59131
|
if (message.longRunning != null && message.hasOwnProperty("longRunning"))
|
|
58053
59132
|
object.longRunning = $root.google.api.MethodSettings.LongRunning.toObject(message.longRunning, options);
|
|
59133
|
+
if (message.autoPopulatedFields && message.autoPopulatedFields.length) {
|
|
59134
|
+
object.autoPopulatedFields = [];
|
|
59135
|
+
for (var j = 0; j < message.autoPopulatedFields.length; ++j)
|
|
59136
|
+
object.autoPopulatedFields[j] = message.autoPopulatedFields[j];
|
|
59137
|
+
}
|
|
58054
59138
|
return object;
|
|
58055
59139
|
};
|
|
58056
59140
|
|