@google-cloud/spanner 5.16.1 → 5.17.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 +35 -0
- package/README.md +16 -18
- package/build/protos/google/spanner/admin/database/v1/backup.proto +4 -1
- package/build/protos/google/spanner/admin/database/v1/common.proto +14 -1
- package/build/protos/google/spanner/admin/database/v1/spanner_database_admin.proto +14 -4
- package/build/protos/google/spanner/admin/instance/v1/spanner_instance_admin.proto +8 -5
- package/build/protos/google/spanner/v1/commit_response.proto +3 -3
- package/build/protos/google/spanner/v1/keys.proto +1 -1
- package/build/protos/google/spanner/v1/mutation.proto +6 -5
- package/build/protos/google/spanner/v1/query_plan.proto +19 -19
- package/build/protos/google/spanner/v1/result_set.proto +2 -1
- package/build/protos/google/spanner/v1/spanner.proto +21 -19
- package/build/protos/google/spanner/v1/transaction.proto +20 -32
- package/build/protos/google/spanner/v1/type.proto +34 -7
- package/build/protos/protos.d.ts +382 -345
- package/build/protos/protos.js +1022 -837
- package/build/protos/protos.json +168 -108
- package/build/src/codec.js +2 -1
- package/build/src/database.d.ts +1 -1
- package/build/src/database.js +2 -2
- package/build/src/index.d.ts +3 -3
- package/build/src/index.js +7 -7
- package/build/src/instance.d.ts +4 -4
- package/build/src/instance.js +6 -5
- package/build/src/partial-result-stream.d.ts +1 -1
- package/build/src/partial-result-stream.js +5 -1
- package/build/src/session-pool.d.ts +4 -4
- package/build/src/session-pool.js +6 -6
- package/build/src/transaction.js +1 -1
- package/build/src/v1/database_admin_client.d.ts +9 -4
- package/build/src/v1/database_admin_client.js +7 -7
- package/build/src/v1/instance_admin_client.js +2 -3
- package/build/src/v1/spanner_client.d.ts +1 -31
- package/build/src/v1/spanner_client.js +11 -9
- package/package.json +4 -4
package/build/protos/protos.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2022 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -13978,6 +13978,7 @@
|
|
|
13978
13978
|
* @property {google.spanner.admin.database.v1.Backup.State|null} [state] Backup state
|
|
13979
13979
|
* @property {Array.<string>|null} [referencingDatabases] Backup referencingDatabases
|
|
13980
13980
|
* @property {google.spanner.admin.database.v1.IEncryptionInfo|null} [encryptionInfo] Backup encryptionInfo
|
|
13981
|
+
* @property {google.spanner.admin.database.v1.DatabaseDialect|null} [databaseDialect] Backup databaseDialect
|
|
13981
13982
|
*/
|
|
13982
13983
|
|
|
13983
13984
|
/**
|
|
@@ -14068,6 +14069,14 @@
|
|
|
14068
14069
|
*/
|
|
14069
14070
|
Backup.prototype.encryptionInfo = null;
|
|
14070
14071
|
|
|
14072
|
+
/**
|
|
14073
|
+
* Backup databaseDialect.
|
|
14074
|
+
* @member {google.spanner.admin.database.v1.DatabaseDialect} databaseDialect
|
|
14075
|
+
* @memberof google.spanner.admin.database.v1.Backup
|
|
14076
|
+
* @instance
|
|
14077
|
+
*/
|
|
14078
|
+
Backup.prototype.databaseDialect = 0;
|
|
14079
|
+
|
|
14071
14080
|
/**
|
|
14072
14081
|
* Creates a new Backup instance using the specified properties.
|
|
14073
14082
|
* @function create
|
|
@@ -14111,6 +14120,8 @@
|
|
|
14111
14120
|
$root.google.spanner.admin.database.v1.EncryptionInfo.encode(message.encryptionInfo, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
14112
14121
|
if (message.versionTime != null && Object.hasOwnProperty.call(message, "versionTime"))
|
|
14113
14122
|
$root.google.protobuf.Timestamp.encode(message.versionTime, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
14123
|
+
if (message.databaseDialect != null && Object.hasOwnProperty.call(message, "databaseDialect"))
|
|
14124
|
+
writer.uint32(/* id 10, wireType 0 =*/80).int32(message.databaseDialect);
|
|
14114
14125
|
return writer;
|
|
14115
14126
|
};
|
|
14116
14127
|
|
|
@@ -14174,6 +14185,9 @@
|
|
|
14174
14185
|
case 8:
|
|
14175
14186
|
message.encryptionInfo = $root.google.spanner.admin.database.v1.EncryptionInfo.decode(reader, reader.uint32());
|
|
14176
14187
|
break;
|
|
14188
|
+
case 10:
|
|
14189
|
+
message.databaseDialect = reader.int32();
|
|
14190
|
+
break;
|
|
14177
14191
|
default:
|
|
14178
14192
|
reader.skipType(tag & 7);
|
|
14179
14193
|
break;
|
|
@@ -14254,6 +14268,15 @@
|
|
|
14254
14268
|
if (error)
|
|
14255
14269
|
return "encryptionInfo." + error;
|
|
14256
14270
|
}
|
|
14271
|
+
if (message.databaseDialect != null && message.hasOwnProperty("databaseDialect"))
|
|
14272
|
+
switch (message.databaseDialect) {
|
|
14273
|
+
default:
|
|
14274
|
+
return "databaseDialect: enum value expected";
|
|
14275
|
+
case 0:
|
|
14276
|
+
case 1:
|
|
14277
|
+
case 2:
|
|
14278
|
+
break;
|
|
14279
|
+
}
|
|
14257
14280
|
return null;
|
|
14258
14281
|
};
|
|
14259
14282
|
|
|
@@ -14323,6 +14346,20 @@
|
|
|
14323
14346
|
throw TypeError(".google.spanner.admin.database.v1.Backup.encryptionInfo: object expected");
|
|
14324
14347
|
message.encryptionInfo = $root.google.spanner.admin.database.v1.EncryptionInfo.fromObject(object.encryptionInfo);
|
|
14325
14348
|
}
|
|
14349
|
+
switch (object.databaseDialect) {
|
|
14350
|
+
case "DATABASE_DIALECT_UNSPECIFIED":
|
|
14351
|
+
case 0:
|
|
14352
|
+
message.databaseDialect = 0;
|
|
14353
|
+
break;
|
|
14354
|
+
case "GOOGLE_STANDARD_SQL":
|
|
14355
|
+
case 1:
|
|
14356
|
+
message.databaseDialect = 1;
|
|
14357
|
+
break;
|
|
14358
|
+
case "POSTGRESQL":
|
|
14359
|
+
case 2:
|
|
14360
|
+
message.databaseDialect = 2;
|
|
14361
|
+
break;
|
|
14362
|
+
}
|
|
14326
14363
|
return message;
|
|
14327
14364
|
};
|
|
14328
14365
|
|
|
@@ -14354,6 +14391,7 @@
|
|
|
14354
14391
|
object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
|
|
14355
14392
|
object.encryptionInfo = null;
|
|
14356
14393
|
object.versionTime = null;
|
|
14394
|
+
object.databaseDialect = options.enums === String ? "DATABASE_DIALECT_UNSPECIFIED" : 0;
|
|
14357
14395
|
}
|
|
14358
14396
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
14359
14397
|
object.name = message.name;
|
|
@@ -14379,6 +14417,8 @@
|
|
|
14379
14417
|
object.encryptionInfo = $root.google.spanner.admin.database.v1.EncryptionInfo.toObject(message.encryptionInfo, options);
|
|
14380
14418
|
if (message.versionTime != null && message.hasOwnProperty("versionTime"))
|
|
14381
14419
|
object.versionTime = $root.google.protobuf.Timestamp.toObject(message.versionTime, options);
|
|
14420
|
+
if (message.databaseDialect != null && message.hasOwnProperty("databaseDialect"))
|
|
14421
|
+
object.databaseDialect = options.enums === String ? $root.google.spanner.admin.database.v1.DatabaseDialect[message.databaseDialect] : message.databaseDialect;
|
|
14382
14422
|
return object;
|
|
14383
14423
|
};
|
|
14384
14424
|
|
|
@@ -17719,6 +17759,22 @@
|
|
|
17719
17759
|
return EncryptionInfo;
|
|
17720
17760
|
})();
|
|
17721
17761
|
|
|
17762
|
+
/**
|
|
17763
|
+
* DatabaseDialect enum.
|
|
17764
|
+
* @name google.spanner.admin.database.v1.DatabaseDialect
|
|
17765
|
+
* @enum {number}
|
|
17766
|
+
* @property {number} DATABASE_DIALECT_UNSPECIFIED=0 DATABASE_DIALECT_UNSPECIFIED value
|
|
17767
|
+
* @property {number} GOOGLE_STANDARD_SQL=1 GOOGLE_STANDARD_SQL value
|
|
17768
|
+
* @property {number} POSTGRESQL=2 POSTGRESQL value
|
|
17769
|
+
*/
|
|
17770
|
+
v1.DatabaseDialect = (function() {
|
|
17771
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
17772
|
+
values[valuesById[0] = "DATABASE_DIALECT_UNSPECIFIED"] = 0;
|
|
17773
|
+
values[valuesById[1] = "GOOGLE_STANDARD_SQL"] = 1;
|
|
17774
|
+
values[valuesById[2] = "POSTGRESQL"] = 2;
|
|
17775
|
+
return values;
|
|
17776
|
+
})();
|
|
17777
|
+
|
|
17722
17778
|
v1.DatabaseAdmin = (function() {
|
|
17723
17779
|
|
|
17724
17780
|
/**
|
|
@@ -17752,7 +17808,7 @@
|
|
|
17752
17808
|
};
|
|
17753
17809
|
|
|
17754
17810
|
/**
|
|
17755
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
17811
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|listDatabases}.
|
|
17756
17812
|
* @memberof google.spanner.admin.database.v1.DatabaseAdmin
|
|
17757
17813
|
* @typedef ListDatabasesCallback
|
|
17758
17814
|
* @type {function}
|
|
@@ -17785,7 +17841,7 @@
|
|
|
17785
17841
|
*/
|
|
17786
17842
|
|
|
17787
17843
|
/**
|
|
17788
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
17844
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|createDatabase}.
|
|
17789
17845
|
* @memberof google.spanner.admin.database.v1.DatabaseAdmin
|
|
17790
17846
|
* @typedef CreateDatabaseCallback
|
|
17791
17847
|
* @type {function}
|
|
@@ -17818,7 +17874,7 @@
|
|
|
17818
17874
|
*/
|
|
17819
17875
|
|
|
17820
17876
|
/**
|
|
17821
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
17877
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|getDatabase}.
|
|
17822
17878
|
* @memberof google.spanner.admin.database.v1.DatabaseAdmin
|
|
17823
17879
|
* @typedef GetDatabaseCallback
|
|
17824
17880
|
* @type {function}
|
|
@@ -17851,7 +17907,7 @@
|
|
|
17851
17907
|
*/
|
|
17852
17908
|
|
|
17853
17909
|
/**
|
|
17854
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
17910
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|updateDatabaseDdl}.
|
|
17855
17911
|
* @memberof google.spanner.admin.database.v1.DatabaseAdmin
|
|
17856
17912
|
* @typedef UpdateDatabaseDdlCallback
|
|
17857
17913
|
* @type {function}
|
|
@@ -17884,7 +17940,7 @@
|
|
|
17884
17940
|
*/
|
|
17885
17941
|
|
|
17886
17942
|
/**
|
|
17887
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
17943
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|dropDatabase}.
|
|
17888
17944
|
* @memberof google.spanner.admin.database.v1.DatabaseAdmin
|
|
17889
17945
|
* @typedef DropDatabaseCallback
|
|
17890
17946
|
* @type {function}
|
|
@@ -17917,7 +17973,7 @@
|
|
|
17917
17973
|
*/
|
|
17918
17974
|
|
|
17919
17975
|
/**
|
|
17920
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
17976
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|getDatabaseDdl}.
|
|
17921
17977
|
* @memberof google.spanner.admin.database.v1.DatabaseAdmin
|
|
17922
17978
|
* @typedef GetDatabaseDdlCallback
|
|
17923
17979
|
* @type {function}
|
|
@@ -17950,7 +18006,7 @@
|
|
|
17950
18006
|
*/
|
|
17951
18007
|
|
|
17952
18008
|
/**
|
|
17953
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
18009
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|setIamPolicy}.
|
|
17954
18010
|
* @memberof google.spanner.admin.database.v1.DatabaseAdmin
|
|
17955
18011
|
* @typedef SetIamPolicyCallback
|
|
17956
18012
|
* @type {function}
|
|
@@ -17983,7 +18039,7 @@
|
|
|
17983
18039
|
*/
|
|
17984
18040
|
|
|
17985
18041
|
/**
|
|
17986
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
18042
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|getIamPolicy}.
|
|
17987
18043
|
* @memberof google.spanner.admin.database.v1.DatabaseAdmin
|
|
17988
18044
|
* @typedef GetIamPolicyCallback
|
|
17989
18045
|
* @type {function}
|
|
@@ -18016,7 +18072,7 @@
|
|
|
18016
18072
|
*/
|
|
18017
18073
|
|
|
18018
18074
|
/**
|
|
18019
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
18075
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|testIamPermissions}.
|
|
18020
18076
|
* @memberof google.spanner.admin.database.v1.DatabaseAdmin
|
|
18021
18077
|
* @typedef TestIamPermissionsCallback
|
|
18022
18078
|
* @type {function}
|
|
@@ -18049,7 +18105,7 @@
|
|
|
18049
18105
|
*/
|
|
18050
18106
|
|
|
18051
18107
|
/**
|
|
18052
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
18108
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|createBackup}.
|
|
18053
18109
|
* @memberof google.spanner.admin.database.v1.DatabaseAdmin
|
|
18054
18110
|
* @typedef CreateBackupCallback
|
|
18055
18111
|
* @type {function}
|
|
@@ -18082,7 +18138,7 @@
|
|
|
18082
18138
|
*/
|
|
18083
18139
|
|
|
18084
18140
|
/**
|
|
18085
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
18141
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|getBackup}.
|
|
18086
18142
|
* @memberof google.spanner.admin.database.v1.DatabaseAdmin
|
|
18087
18143
|
* @typedef GetBackupCallback
|
|
18088
18144
|
* @type {function}
|
|
@@ -18115,7 +18171,7 @@
|
|
|
18115
18171
|
*/
|
|
18116
18172
|
|
|
18117
18173
|
/**
|
|
18118
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
18174
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|updateBackup}.
|
|
18119
18175
|
* @memberof google.spanner.admin.database.v1.DatabaseAdmin
|
|
18120
18176
|
* @typedef UpdateBackupCallback
|
|
18121
18177
|
* @type {function}
|
|
@@ -18148,7 +18204,7 @@
|
|
|
18148
18204
|
*/
|
|
18149
18205
|
|
|
18150
18206
|
/**
|
|
18151
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
18207
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|deleteBackup}.
|
|
18152
18208
|
* @memberof google.spanner.admin.database.v1.DatabaseAdmin
|
|
18153
18209
|
* @typedef DeleteBackupCallback
|
|
18154
18210
|
* @type {function}
|
|
@@ -18181,7 +18237,7 @@
|
|
|
18181
18237
|
*/
|
|
18182
18238
|
|
|
18183
18239
|
/**
|
|
18184
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
18240
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|listBackups}.
|
|
18185
18241
|
* @memberof google.spanner.admin.database.v1.DatabaseAdmin
|
|
18186
18242
|
* @typedef ListBackupsCallback
|
|
18187
18243
|
* @type {function}
|
|
@@ -18214,7 +18270,7 @@
|
|
|
18214
18270
|
*/
|
|
18215
18271
|
|
|
18216
18272
|
/**
|
|
18217
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
18273
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|restoreDatabase}.
|
|
18218
18274
|
* @memberof google.spanner.admin.database.v1.DatabaseAdmin
|
|
18219
18275
|
* @typedef RestoreDatabaseCallback
|
|
18220
18276
|
* @type {function}
|
|
@@ -18247,7 +18303,7 @@
|
|
|
18247
18303
|
*/
|
|
18248
18304
|
|
|
18249
18305
|
/**
|
|
18250
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
18306
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|listDatabaseOperations}.
|
|
18251
18307
|
* @memberof google.spanner.admin.database.v1.DatabaseAdmin
|
|
18252
18308
|
* @typedef ListDatabaseOperationsCallback
|
|
18253
18309
|
* @type {function}
|
|
@@ -18280,7 +18336,7 @@
|
|
|
18280
18336
|
*/
|
|
18281
18337
|
|
|
18282
18338
|
/**
|
|
18283
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
18339
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|listBackupOperations}.
|
|
18284
18340
|
* @memberof google.spanner.admin.database.v1.DatabaseAdmin
|
|
18285
18341
|
* @typedef ListBackupOperationsCallback
|
|
18286
18342
|
* @type {function}
|
|
@@ -18577,6 +18633,7 @@
|
|
|
18577
18633
|
* @property {string|null} [versionRetentionPeriod] Database versionRetentionPeriod
|
|
18578
18634
|
* @property {google.protobuf.ITimestamp|null} [earliestVersionTime] Database earliestVersionTime
|
|
18579
18635
|
* @property {string|null} [defaultLeader] Database defaultLeader
|
|
18636
|
+
* @property {google.spanner.admin.database.v1.DatabaseDialect|null} [databaseDialect] Database databaseDialect
|
|
18580
18637
|
*/
|
|
18581
18638
|
|
|
18582
18639
|
/**
|
|
@@ -18667,6 +18724,14 @@
|
|
|
18667
18724
|
*/
|
|
18668
18725
|
Database.prototype.defaultLeader = "";
|
|
18669
18726
|
|
|
18727
|
+
/**
|
|
18728
|
+
* Database databaseDialect.
|
|
18729
|
+
* @member {google.spanner.admin.database.v1.DatabaseDialect} databaseDialect
|
|
18730
|
+
* @memberof google.spanner.admin.database.v1.Database
|
|
18731
|
+
* @instance
|
|
18732
|
+
*/
|
|
18733
|
+
Database.prototype.databaseDialect = 0;
|
|
18734
|
+
|
|
18670
18735
|
/**
|
|
18671
18736
|
* Creates a new Database instance using the specified properties.
|
|
18672
18737
|
* @function create
|
|
@@ -18710,6 +18775,8 @@
|
|
|
18710
18775
|
$root.google.spanner.admin.database.v1.EncryptionInfo.encode(message.encryptionInfo[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
18711
18776
|
if (message.defaultLeader != null && Object.hasOwnProperty.call(message, "defaultLeader"))
|
|
18712
18777
|
writer.uint32(/* id 9, wireType 2 =*/74).string(message.defaultLeader);
|
|
18778
|
+
if (message.databaseDialect != null && Object.hasOwnProperty.call(message, "databaseDialect"))
|
|
18779
|
+
writer.uint32(/* id 10, wireType 0 =*/80).int32(message.databaseDialect);
|
|
18713
18780
|
return writer;
|
|
18714
18781
|
};
|
|
18715
18782
|
|
|
@@ -18773,6 +18840,9 @@
|
|
|
18773
18840
|
case 9:
|
|
18774
18841
|
message.defaultLeader = reader.string();
|
|
18775
18842
|
break;
|
|
18843
|
+
case 10:
|
|
18844
|
+
message.databaseDialect = reader.int32();
|
|
18845
|
+
break;
|
|
18776
18846
|
default:
|
|
18777
18847
|
reader.skipType(tag & 7);
|
|
18778
18848
|
break;
|
|
@@ -18856,6 +18926,15 @@
|
|
|
18856
18926
|
if (message.defaultLeader != null && message.hasOwnProperty("defaultLeader"))
|
|
18857
18927
|
if (!$util.isString(message.defaultLeader))
|
|
18858
18928
|
return "defaultLeader: string expected";
|
|
18929
|
+
if (message.databaseDialect != null && message.hasOwnProperty("databaseDialect"))
|
|
18930
|
+
switch (message.databaseDialect) {
|
|
18931
|
+
default:
|
|
18932
|
+
return "databaseDialect: enum value expected";
|
|
18933
|
+
case 0:
|
|
18934
|
+
case 1:
|
|
18935
|
+
case 2:
|
|
18936
|
+
break;
|
|
18937
|
+
}
|
|
18859
18938
|
return null;
|
|
18860
18939
|
};
|
|
18861
18940
|
|
|
@@ -18925,6 +19004,20 @@
|
|
|
18925
19004
|
}
|
|
18926
19005
|
if (object.defaultLeader != null)
|
|
18927
19006
|
message.defaultLeader = String(object.defaultLeader);
|
|
19007
|
+
switch (object.databaseDialect) {
|
|
19008
|
+
case "DATABASE_DIALECT_UNSPECIFIED":
|
|
19009
|
+
case 0:
|
|
19010
|
+
message.databaseDialect = 0;
|
|
19011
|
+
break;
|
|
19012
|
+
case "GOOGLE_STANDARD_SQL":
|
|
19013
|
+
case 1:
|
|
19014
|
+
message.databaseDialect = 1;
|
|
19015
|
+
break;
|
|
19016
|
+
case "POSTGRESQL":
|
|
19017
|
+
case 2:
|
|
19018
|
+
message.databaseDialect = 2;
|
|
19019
|
+
break;
|
|
19020
|
+
}
|
|
18928
19021
|
return message;
|
|
18929
19022
|
};
|
|
18930
19023
|
|
|
@@ -18952,6 +19045,7 @@
|
|
|
18952
19045
|
object.versionRetentionPeriod = "";
|
|
18953
19046
|
object.earliestVersionTime = null;
|
|
18954
19047
|
object.defaultLeader = "";
|
|
19048
|
+
object.databaseDialect = options.enums === String ? "DATABASE_DIALECT_UNSPECIFIED" : 0;
|
|
18955
19049
|
}
|
|
18956
19050
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
18957
19051
|
object.name = message.name;
|
|
@@ -18974,6 +19068,8 @@
|
|
|
18974
19068
|
}
|
|
18975
19069
|
if (message.defaultLeader != null && message.hasOwnProperty("defaultLeader"))
|
|
18976
19070
|
object.defaultLeader = message.defaultLeader;
|
|
19071
|
+
if (message.databaseDialect != null && message.hasOwnProperty("databaseDialect"))
|
|
19072
|
+
object.databaseDialect = options.enums === String ? $root.google.spanner.admin.database.v1.DatabaseDialect[message.databaseDialect] : message.databaseDialect;
|
|
18977
19073
|
return object;
|
|
18978
19074
|
};
|
|
18979
19075
|
|
|
@@ -19482,6 +19578,7 @@
|
|
|
19482
19578
|
* @property {string|null} [createStatement] CreateDatabaseRequest createStatement
|
|
19483
19579
|
* @property {Array.<string>|null} [extraStatements] CreateDatabaseRequest extraStatements
|
|
19484
19580
|
* @property {google.spanner.admin.database.v1.IEncryptionConfig|null} [encryptionConfig] CreateDatabaseRequest encryptionConfig
|
|
19581
|
+
* @property {google.spanner.admin.database.v1.DatabaseDialect|null} [databaseDialect] CreateDatabaseRequest databaseDialect
|
|
19485
19582
|
*/
|
|
19486
19583
|
|
|
19487
19584
|
/**
|
|
@@ -19532,6 +19629,14 @@
|
|
|
19532
19629
|
*/
|
|
19533
19630
|
CreateDatabaseRequest.prototype.encryptionConfig = null;
|
|
19534
19631
|
|
|
19632
|
+
/**
|
|
19633
|
+
* CreateDatabaseRequest databaseDialect.
|
|
19634
|
+
* @member {google.spanner.admin.database.v1.DatabaseDialect} databaseDialect
|
|
19635
|
+
* @memberof google.spanner.admin.database.v1.CreateDatabaseRequest
|
|
19636
|
+
* @instance
|
|
19637
|
+
*/
|
|
19638
|
+
CreateDatabaseRequest.prototype.databaseDialect = 0;
|
|
19639
|
+
|
|
19535
19640
|
/**
|
|
19536
19641
|
* Creates a new CreateDatabaseRequest instance using the specified properties.
|
|
19537
19642
|
* @function create
|
|
@@ -19565,6 +19670,8 @@
|
|
|
19565
19670
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.extraStatements[i]);
|
|
19566
19671
|
if (message.encryptionConfig != null && Object.hasOwnProperty.call(message, "encryptionConfig"))
|
|
19567
19672
|
$root.google.spanner.admin.database.v1.EncryptionConfig.encode(message.encryptionConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
19673
|
+
if (message.databaseDialect != null && Object.hasOwnProperty.call(message, "databaseDialect"))
|
|
19674
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.databaseDialect);
|
|
19568
19675
|
return writer;
|
|
19569
19676
|
};
|
|
19570
19677
|
|
|
@@ -19613,6 +19720,9 @@
|
|
|
19613
19720
|
case 4:
|
|
19614
19721
|
message.encryptionConfig = $root.google.spanner.admin.database.v1.EncryptionConfig.decode(reader, reader.uint32());
|
|
19615
19722
|
break;
|
|
19723
|
+
case 5:
|
|
19724
|
+
message.databaseDialect = reader.int32();
|
|
19725
|
+
break;
|
|
19616
19726
|
default:
|
|
19617
19727
|
reader.skipType(tag & 7);
|
|
19618
19728
|
break;
|
|
@@ -19666,6 +19776,15 @@
|
|
|
19666
19776
|
if (error)
|
|
19667
19777
|
return "encryptionConfig." + error;
|
|
19668
19778
|
}
|
|
19779
|
+
if (message.databaseDialect != null && message.hasOwnProperty("databaseDialect"))
|
|
19780
|
+
switch (message.databaseDialect) {
|
|
19781
|
+
default:
|
|
19782
|
+
return "databaseDialect: enum value expected";
|
|
19783
|
+
case 0:
|
|
19784
|
+
case 1:
|
|
19785
|
+
case 2:
|
|
19786
|
+
break;
|
|
19787
|
+
}
|
|
19669
19788
|
return null;
|
|
19670
19789
|
};
|
|
19671
19790
|
|
|
@@ -19697,6 +19816,20 @@
|
|
|
19697
19816
|
throw TypeError(".google.spanner.admin.database.v1.CreateDatabaseRequest.encryptionConfig: object expected");
|
|
19698
19817
|
message.encryptionConfig = $root.google.spanner.admin.database.v1.EncryptionConfig.fromObject(object.encryptionConfig);
|
|
19699
19818
|
}
|
|
19819
|
+
switch (object.databaseDialect) {
|
|
19820
|
+
case "DATABASE_DIALECT_UNSPECIFIED":
|
|
19821
|
+
case 0:
|
|
19822
|
+
message.databaseDialect = 0;
|
|
19823
|
+
break;
|
|
19824
|
+
case "GOOGLE_STANDARD_SQL":
|
|
19825
|
+
case 1:
|
|
19826
|
+
message.databaseDialect = 1;
|
|
19827
|
+
break;
|
|
19828
|
+
case "POSTGRESQL":
|
|
19829
|
+
case 2:
|
|
19830
|
+
message.databaseDialect = 2;
|
|
19831
|
+
break;
|
|
19832
|
+
}
|
|
19700
19833
|
return message;
|
|
19701
19834
|
};
|
|
19702
19835
|
|
|
@@ -19719,6 +19852,7 @@
|
|
|
19719
19852
|
object.parent = "";
|
|
19720
19853
|
object.createStatement = "";
|
|
19721
19854
|
object.encryptionConfig = null;
|
|
19855
|
+
object.databaseDialect = options.enums === String ? "DATABASE_DIALECT_UNSPECIFIED" : 0;
|
|
19722
19856
|
}
|
|
19723
19857
|
if (message.parent != null && message.hasOwnProperty("parent"))
|
|
19724
19858
|
object.parent = message.parent;
|
|
@@ -19731,6 +19865,8 @@
|
|
|
19731
19865
|
}
|
|
19732
19866
|
if (message.encryptionConfig != null && message.hasOwnProperty("encryptionConfig"))
|
|
19733
19867
|
object.encryptionConfig = $root.google.spanner.admin.database.v1.EncryptionConfig.toObject(message.encryptionConfig, options);
|
|
19868
|
+
if (message.databaseDialect != null && message.hasOwnProperty("databaseDialect"))
|
|
19869
|
+
object.databaseDialect = options.enums === String ? $root.google.spanner.admin.database.v1.DatabaseDialect[message.databaseDialect] : message.databaseDialect;
|
|
19734
19870
|
return object;
|
|
19735
19871
|
};
|
|
19736
19872
|
|
|
@@ -22930,7 +23066,7 @@
|
|
|
22930
23066
|
};
|
|
22931
23067
|
|
|
22932
23068
|
/**
|
|
22933
|
-
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin
|
|
23069
|
+
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|listInstanceConfigs}.
|
|
22934
23070
|
* @memberof google.spanner.admin.instance.v1.InstanceAdmin
|
|
22935
23071
|
* @typedef ListInstanceConfigsCallback
|
|
22936
23072
|
* @type {function}
|
|
@@ -22963,7 +23099,7 @@
|
|
|
22963
23099
|
*/
|
|
22964
23100
|
|
|
22965
23101
|
/**
|
|
22966
|
-
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin
|
|
23102
|
+
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|getInstanceConfig}.
|
|
22967
23103
|
* @memberof google.spanner.admin.instance.v1.InstanceAdmin
|
|
22968
23104
|
* @typedef GetInstanceConfigCallback
|
|
22969
23105
|
* @type {function}
|
|
@@ -22996,7 +23132,7 @@
|
|
|
22996
23132
|
*/
|
|
22997
23133
|
|
|
22998
23134
|
/**
|
|
22999
|
-
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin
|
|
23135
|
+
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|listInstances}.
|
|
23000
23136
|
* @memberof google.spanner.admin.instance.v1.InstanceAdmin
|
|
23001
23137
|
* @typedef ListInstancesCallback
|
|
23002
23138
|
* @type {function}
|
|
@@ -23029,7 +23165,7 @@
|
|
|
23029
23165
|
*/
|
|
23030
23166
|
|
|
23031
23167
|
/**
|
|
23032
|
-
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin
|
|
23168
|
+
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|getInstance}.
|
|
23033
23169
|
* @memberof google.spanner.admin.instance.v1.InstanceAdmin
|
|
23034
23170
|
* @typedef GetInstanceCallback
|
|
23035
23171
|
* @type {function}
|
|
@@ -23062,7 +23198,7 @@
|
|
|
23062
23198
|
*/
|
|
23063
23199
|
|
|
23064
23200
|
/**
|
|
23065
|
-
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin
|
|
23201
|
+
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|createInstance}.
|
|
23066
23202
|
* @memberof google.spanner.admin.instance.v1.InstanceAdmin
|
|
23067
23203
|
* @typedef CreateInstanceCallback
|
|
23068
23204
|
* @type {function}
|
|
@@ -23095,7 +23231,7 @@
|
|
|
23095
23231
|
*/
|
|
23096
23232
|
|
|
23097
23233
|
/**
|
|
23098
|
-
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin
|
|
23234
|
+
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|updateInstance}.
|
|
23099
23235
|
* @memberof google.spanner.admin.instance.v1.InstanceAdmin
|
|
23100
23236
|
* @typedef UpdateInstanceCallback
|
|
23101
23237
|
* @type {function}
|
|
@@ -23128,7 +23264,7 @@
|
|
|
23128
23264
|
*/
|
|
23129
23265
|
|
|
23130
23266
|
/**
|
|
23131
|
-
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin
|
|
23267
|
+
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|deleteInstance}.
|
|
23132
23268
|
* @memberof google.spanner.admin.instance.v1.InstanceAdmin
|
|
23133
23269
|
* @typedef DeleteInstanceCallback
|
|
23134
23270
|
* @type {function}
|
|
@@ -23161,7 +23297,7 @@
|
|
|
23161
23297
|
*/
|
|
23162
23298
|
|
|
23163
23299
|
/**
|
|
23164
|
-
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin
|
|
23300
|
+
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|setIamPolicy}.
|
|
23165
23301
|
* @memberof google.spanner.admin.instance.v1.InstanceAdmin
|
|
23166
23302
|
* @typedef SetIamPolicyCallback
|
|
23167
23303
|
* @type {function}
|
|
@@ -23194,7 +23330,7 @@
|
|
|
23194
23330
|
*/
|
|
23195
23331
|
|
|
23196
23332
|
/**
|
|
23197
|
-
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin
|
|
23333
|
+
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|getIamPolicy}.
|
|
23198
23334
|
* @memberof google.spanner.admin.instance.v1.InstanceAdmin
|
|
23199
23335
|
* @typedef GetIamPolicyCallback
|
|
23200
23336
|
* @type {function}
|
|
@@ -23227,7 +23363,7 @@
|
|
|
23227
23363
|
*/
|
|
23228
23364
|
|
|
23229
23365
|
/**
|
|
23230
|
-
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin
|
|
23366
|
+
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|testIamPermissions}.
|
|
23231
23367
|
* @memberof google.spanner.admin.instance.v1.InstanceAdmin
|
|
23232
23368
|
* @typedef TestIamPermissionsCallback
|
|
23233
23369
|
* @type {function}
|
|
@@ -29039,6 +29175,22 @@
|
|
|
29039
29175
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
29040
29176
|
};
|
|
29041
29177
|
|
|
29178
|
+
/**
|
|
29179
|
+
* Kind enum.
|
|
29180
|
+
* @name google.spanner.v1.PlanNode.Kind
|
|
29181
|
+
* @enum {number}
|
|
29182
|
+
* @property {number} KIND_UNSPECIFIED=0 KIND_UNSPECIFIED value
|
|
29183
|
+
* @property {number} RELATIONAL=1 RELATIONAL value
|
|
29184
|
+
* @property {number} SCALAR=2 SCALAR value
|
|
29185
|
+
*/
|
|
29186
|
+
PlanNode.Kind = (function() {
|
|
29187
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
29188
|
+
values[valuesById[0] = "KIND_UNSPECIFIED"] = 0;
|
|
29189
|
+
values[valuesById[1] = "RELATIONAL"] = 1;
|
|
29190
|
+
values[valuesById[2] = "SCALAR"] = 2;
|
|
29191
|
+
return values;
|
|
29192
|
+
})();
|
|
29193
|
+
|
|
29042
29194
|
PlanNode.ChildLink = (function() {
|
|
29043
29195
|
|
|
29044
29196
|
/**
|
|
@@ -29516,22 +29668,6 @@
|
|
|
29516
29668
|
return ShortRepresentation;
|
|
29517
29669
|
})();
|
|
29518
29670
|
|
|
29519
|
-
/**
|
|
29520
|
-
* Kind enum.
|
|
29521
|
-
* @name google.spanner.v1.PlanNode.Kind
|
|
29522
|
-
* @enum {number}
|
|
29523
|
-
* @property {number} KIND_UNSPECIFIED=0 KIND_UNSPECIFIED value
|
|
29524
|
-
* @property {number} RELATIONAL=1 RELATIONAL value
|
|
29525
|
-
* @property {number} SCALAR=2 SCALAR value
|
|
29526
|
-
*/
|
|
29527
|
-
PlanNode.Kind = (function() {
|
|
29528
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
29529
|
-
values[valuesById[0] = "KIND_UNSPECIFIED"] = 0;
|
|
29530
|
-
values[valuesById[1] = "RELATIONAL"] = 1;
|
|
29531
|
-
values[valuesById[2] = "SCALAR"] = 2;
|
|
29532
|
-
return values;
|
|
29533
|
-
})();
|
|
29534
|
-
|
|
29535
29671
|
return PlanNode;
|
|
29536
29672
|
})();
|
|
29537
29673
|
|
|
@@ -32325,6 +32461,7 @@
|
|
|
32325
32461
|
* @property {google.spanner.v1.TypeCode|null} [code] Type code
|
|
32326
32462
|
* @property {google.spanner.v1.IType|null} [arrayElementType] Type arrayElementType
|
|
32327
32463
|
* @property {google.spanner.v1.IStructType|null} [structType] Type structType
|
|
32464
|
+
* @property {google.spanner.v1.TypeAnnotationCode|null} [typeAnnotation] Type typeAnnotation
|
|
32328
32465
|
*/
|
|
32329
32466
|
|
|
32330
32467
|
/**
|
|
@@ -32366,6 +32503,14 @@
|
|
|
32366
32503
|
*/
|
|
32367
32504
|
Type.prototype.structType = null;
|
|
32368
32505
|
|
|
32506
|
+
/**
|
|
32507
|
+
* Type typeAnnotation.
|
|
32508
|
+
* @member {google.spanner.v1.TypeAnnotationCode} typeAnnotation
|
|
32509
|
+
* @memberof google.spanner.v1.Type
|
|
32510
|
+
* @instance
|
|
32511
|
+
*/
|
|
32512
|
+
Type.prototype.typeAnnotation = 0;
|
|
32513
|
+
|
|
32369
32514
|
/**
|
|
32370
32515
|
* Creates a new Type instance using the specified properties.
|
|
32371
32516
|
* @function create
|
|
@@ -32396,6 +32541,8 @@
|
|
|
32396
32541
|
$root.google.spanner.v1.Type.encode(message.arrayElementType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
32397
32542
|
if (message.structType != null && Object.hasOwnProperty.call(message, "structType"))
|
|
32398
32543
|
$root.google.spanner.v1.StructType.encode(message.structType, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
32544
|
+
if (message.typeAnnotation != null && Object.hasOwnProperty.call(message, "typeAnnotation"))
|
|
32545
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.typeAnnotation);
|
|
32399
32546
|
return writer;
|
|
32400
32547
|
};
|
|
32401
32548
|
|
|
@@ -32439,6 +32586,9 @@
|
|
|
32439
32586
|
case 3:
|
|
32440
32587
|
message.structType = $root.google.spanner.v1.StructType.decode(reader, reader.uint32());
|
|
32441
32588
|
break;
|
|
32589
|
+
case 4:
|
|
32590
|
+
message.typeAnnotation = reader.int32();
|
|
32591
|
+
break;
|
|
32442
32592
|
default:
|
|
32443
32593
|
reader.skipType(tag & 7);
|
|
32444
32594
|
break;
|
|
@@ -32502,6 +32652,14 @@
|
|
|
32502
32652
|
if (error)
|
|
32503
32653
|
return "structType." + error;
|
|
32504
32654
|
}
|
|
32655
|
+
if (message.typeAnnotation != null && message.hasOwnProperty("typeAnnotation"))
|
|
32656
|
+
switch (message.typeAnnotation) {
|
|
32657
|
+
default:
|
|
32658
|
+
return "typeAnnotation: enum value expected";
|
|
32659
|
+
case 0:
|
|
32660
|
+
case 2:
|
|
32661
|
+
break;
|
|
32662
|
+
}
|
|
32505
32663
|
return null;
|
|
32506
32664
|
};
|
|
32507
32665
|
|
|
@@ -32577,6 +32735,16 @@
|
|
|
32577
32735
|
throw TypeError(".google.spanner.v1.Type.structType: object expected");
|
|
32578
32736
|
message.structType = $root.google.spanner.v1.StructType.fromObject(object.structType);
|
|
32579
32737
|
}
|
|
32738
|
+
switch (object.typeAnnotation) {
|
|
32739
|
+
case "TYPE_ANNOTATION_CODE_UNSPECIFIED":
|
|
32740
|
+
case 0:
|
|
32741
|
+
message.typeAnnotation = 0;
|
|
32742
|
+
break;
|
|
32743
|
+
case "PG_NUMERIC":
|
|
32744
|
+
case 2:
|
|
32745
|
+
message.typeAnnotation = 2;
|
|
32746
|
+
break;
|
|
32747
|
+
}
|
|
32580
32748
|
return message;
|
|
32581
32749
|
};
|
|
32582
32750
|
|
|
@@ -32597,6 +32765,7 @@
|
|
|
32597
32765
|
object.code = options.enums === String ? "TYPE_CODE_UNSPECIFIED" : 0;
|
|
32598
32766
|
object.arrayElementType = null;
|
|
32599
32767
|
object.structType = null;
|
|
32768
|
+
object.typeAnnotation = options.enums === String ? "TYPE_ANNOTATION_CODE_UNSPECIFIED" : 0;
|
|
32600
32769
|
}
|
|
32601
32770
|
if (message.code != null && message.hasOwnProperty("code"))
|
|
32602
32771
|
object.code = options.enums === String ? $root.google.spanner.v1.TypeCode[message.code] : message.code;
|
|
@@ -32604,6 +32773,8 @@
|
|
|
32604
32773
|
object.arrayElementType = $root.google.spanner.v1.Type.toObject(message.arrayElementType, options);
|
|
32605
32774
|
if (message.structType != null && message.hasOwnProperty("structType"))
|
|
32606
32775
|
object.structType = $root.google.spanner.v1.StructType.toObject(message.structType, options);
|
|
32776
|
+
if (message.typeAnnotation != null && message.hasOwnProperty("typeAnnotation"))
|
|
32777
|
+
object.typeAnnotation = options.enums === String ? $root.google.spanner.v1.TypeAnnotationCode[message.typeAnnotation] : message.typeAnnotation;
|
|
32607
32778
|
return object;
|
|
32608
32779
|
};
|
|
32609
32780
|
|
|
@@ -33078,6 +33249,20 @@
|
|
|
33078
33249
|
return values;
|
|
33079
33250
|
})();
|
|
33080
33251
|
|
|
33252
|
+
/**
|
|
33253
|
+
* TypeAnnotationCode enum.
|
|
33254
|
+
* @name google.spanner.v1.TypeAnnotationCode
|
|
33255
|
+
* @enum {number}
|
|
33256
|
+
* @property {number} TYPE_ANNOTATION_CODE_UNSPECIFIED=0 TYPE_ANNOTATION_CODE_UNSPECIFIED value
|
|
33257
|
+
* @property {number} PG_NUMERIC=2 PG_NUMERIC value
|
|
33258
|
+
*/
|
|
33259
|
+
v1.TypeAnnotationCode = (function() {
|
|
33260
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
33261
|
+
values[valuesById[0] = "TYPE_ANNOTATION_CODE_UNSPECIFIED"] = 0;
|
|
33262
|
+
values[valuesById[2] = "PG_NUMERIC"] = 2;
|
|
33263
|
+
return values;
|
|
33264
|
+
})();
|
|
33265
|
+
|
|
33081
33266
|
v1.Spanner = (function() {
|
|
33082
33267
|
|
|
33083
33268
|
/**
|
|
@@ -33111,7 +33296,7 @@
|
|
|
33111
33296
|
};
|
|
33112
33297
|
|
|
33113
33298
|
/**
|
|
33114
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
33299
|
+
* Callback as used by {@link google.spanner.v1.Spanner|createSession}.
|
|
33115
33300
|
* @memberof google.spanner.v1.Spanner
|
|
33116
33301
|
* @typedef CreateSessionCallback
|
|
33117
33302
|
* @type {function}
|
|
@@ -33144,7 +33329,7 @@
|
|
|
33144
33329
|
*/
|
|
33145
33330
|
|
|
33146
33331
|
/**
|
|
33147
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
33332
|
+
* Callback as used by {@link google.spanner.v1.Spanner|batchCreateSessions}.
|
|
33148
33333
|
* @memberof google.spanner.v1.Spanner
|
|
33149
33334
|
* @typedef BatchCreateSessionsCallback
|
|
33150
33335
|
* @type {function}
|
|
@@ -33177,7 +33362,7 @@
|
|
|
33177
33362
|
*/
|
|
33178
33363
|
|
|
33179
33364
|
/**
|
|
33180
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
33365
|
+
* Callback as used by {@link google.spanner.v1.Spanner|getSession}.
|
|
33181
33366
|
* @memberof google.spanner.v1.Spanner
|
|
33182
33367
|
* @typedef GetSessionCallback
|
|
33183
33368
|
* @type {function}
|
|
@@ -33210,7 +33395,7 @@
|
|
|
33210
33395
|
*/
|
|
33211
33396
|
|
|
33212
33397
|
/**
|
|
33213
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
33398
|
+
* Callback as used by {@link google.spanner.v1.Spanner|listSessions}.
|
|
33214
33399
|
* @memberof google.spanner.v1.Spanner
|
|
33215
33400
|
* @typedef ListSessionsCallback
|
|
33216
33401
|
* @type {function}
|
|
@@ -33243,7 +33428,7 @@
|
|
|
33243
33428
|
*/
|
|
33244
33429
|
|
|
33245
33430
|
/**
|
|
33246
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
33431
|
+
* Callback as used by {@link google.spanner.v1.Spanner|deleteSession}.
|
|
33247
33432
|
* @memberof google.spanner.v1.Spanner
|
|
33248
33433
|
* @typedef DeleteSessionCallback
|
|
33249
33434
|
* @type {function}
|
|
@@ -33276,7 +33461,7 @@
|
|
|
33276
33461
|
*/
|
|
33277
33462
|
|
|
33278
33463
|
/**
|
|
33279
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
33464
|
+
* Callback as used by {@link google.spanner.v1.Spanner|executeSql}.
|
|
33280
33465
|
* @memberof google.spanner.v1.Spanner
|
|
33281
33466
|
* @typedef ExecuteSqlCallback
|
|
33282
33467
|
* @type {function}
|
|
@@ -33309,7 +33494,7 @@
|
|
|
33309
33494
|
*/
|
|
33310
33495
|
|
|
33311
33496
|
/**
|
|
33312
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
33497
|
+
* Callback as used by {@link google.spanner.v1.Spanner|executeStreamingSql}.
|
|
33313
33498
|
* @memberof google.spanner.v1.Spanner
|
|
33314
33499
|
* @typedef ExecuteStreamingSqlCallback
|
|
33315
33500
|
* @type {function}
|
|
@@ -33342,7 +33527,7 @@
|
|
|
33342
33527
|
*/
|
|
33343
33528
|
|
|
33344
33529
|
/**
|
|
33345
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
33530
|
+
* Callback as used by {@link google.spanner.v1.Spanner|executeBatchDml}.
|
|
33346
33531
|
* @memberof google.spanner.v1.Spanner
|
|
33347
33532
|
* @typedef ExecuteBatchDmlCallback
|
|
33348
33533
|
* @type {function}
|
|
@@ -33375,7 +33560,7 @@
|
|
|
33375
33560
|
*/
|
|
33376
33561
|
|
|
33377
33562
|
/**
|
|
33378
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
33563
|
+
* Callback as used by {@link google.spanner.v1.Spanner|read}.
|
|
33379
33564
|
* @memberof google.spanner.v1.Spanner
|
|
33380
33565
|
* @typedef ReadCallback
|
|
33381
33566
|
* @type {function}
|
|
@@ -33408,7 +33593,7 @@
|
|
|
33408
33593
|
*/
|
|
33409
33594
|
|
|
33410
33595
|
/**
|
|
33411
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
33596
|
+
* Callback as used by {@link google.spanner.v1.Spanner|streamingRead}.
|
|
33412
33597
|
* @memberof google.spanner.v1.Spanner
|
|
33413
33598
|
* @typedef StreamingReadCallback
|
|
33414
33599
|
* @type {function}
|
|
@@ -33441,7 +33626,7 @@
|
|
|
33441
33626
|
*/
|
|
33442
33627
|
|
|
33443
33628
|
/**
|
|
33444
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
33629
|
+
* Callback as used by {@link google.spanner.v1.Spanner|beginTransaction}.
|
|
33445
33630
|
* @memberof google.spanner.v1.Spanner
|
|
33446
33631
|
* @typedef BeginTransactionCallback
|
|
33447
33632
|
* @type {function}
|
|
@@ -33474,7 +33659,7 @@
|
|
|
33474
33659
|
*/
|
|
33475
33660
|
|
|
33476
33661
|
/**
|
|
33477
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
33662
|
+
* Callback as used by {@link google.spanner.v1.Spanner|commit}.
|
|
33478
33663
|
* @memberof google.spanner.v1.Spanner
|
|
33479
33664
|
* @typedef CommitCallback
|
|
33480
33665
|
* @type {function}
|
|
@@ -33507,7 +33692,7 @@
|
|
|
33507
33692
|
*/
|
|
33508
33693
|
|
|
33509
33694
|
/**
|
|
33510
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
33695
|
+
* Callback as used by {@link google.spanner.v1.Spanner|rollback}.
|
|
33511
33696
|
* @memberof google.spanner.v1.Spanner
|
|
33512
33697
|
* @typedef RollbackCallback
|
|
33513
33698
|
* @type {function}
|
|
@@ -33540,7 +33725,7 @@
|
|
|
33540
33725
|
*/
|
|
33541
33726
|
|
|
33542
33727
|
/**
|
|
33543
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
33728
|
+
* Callback as used by {@link google.spanner.v1.Spanner|partitionQuery}.
|
|
33544
33729
|
* @memberof google.spanner.v1.Spanner
|
|
33545
33730
|
* @typedef PartitionQueryCallback
|
|
33546
33731
|
* @type {function}
|
|
@@ -33573,7 +33758,7 @@
|
|
|
33573
33758
|
*/
|
|
33574
33759
|
|
|
33575
33760
|
/**
|
|
33576
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
33761
|
+
* Callback as used by {@link google.spanner.v1.Spanner|partitionRead}.
|
|
33577
33762
|
* @memberof google.spanner.v1.Spanner
|
|
33578
33763
|
* @typedef PartitionReadCallback
|
|
33579
33764
|
* @type {function}
|
|
@@ -36218,6 +36403,22 @@
|
|
|
36218
36403
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
36219
36404
|
};
|
|
36220
36405
|
|
|
36406
|
+
/**
|
|
36407
|
+
* QueryMode enum.
|
|
36408
|
+
* @name google.spanner.v1.ExecuteSqlRequest.QueryMode
|
|
36409
|
+
* @enum {number}
|
|
36410
|
+
* @property {number} NORMAL=0 NORMAL value
|
|
36411
|
+
* @property {number} PLAN=1 PLAN value
|
|
36412
|
+
* @property {number} PROFILE=2 PROFILE value
|
|
36413
|
+
*/
|
|
36414
|
+
ExecuteSqlRequest.QueryMode = (function() {
|
|
36415
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
36416
|
+
values[valuesById[0] = "NORMAL"] = 0;
|
|
36417
|
+
values[valuesById[1] = "PLAN"] = 1;
|
|
36418
|
+
values[valuesById[2] = "PROFILE"] = 2;
|
|
36419
|
+
return values;
|
|
36420
|
+
})();
|
|
36421
|
+
|
|
36221
36422
|
ExecuteSqlRequest.QueryOptions = (function() {
|
|
36222
36423
|
|
|
36223
36424
|
/**
|
|
@@ -36428,22 +36629,6 @@
|
|
|
36428
36629
|
return QueryOptions;
|
|
36429
36630
|
})();
|
|
36430
36631
|
|
|
36431
|
-
/**
|
|
36432
|
-
* QueryMode enum.
|
|
36433
|
-
* @name google.spanner.v1.ExecuteSqlRequest.QueryMode
|
|
36434
|
-
* @enum {number}
|
|
36435
|
-
* @property {number} NORMAL=0 NORMAL value
|
|
36436
|
-
* @property {number} PLAN=1 PLAN value
|
|
36437
|
-
* @property {number} PROFILE=2 PROFILE value
|
|
36438
|
-
*/
|
|
36439
|
-
ExecuteSqlRequest.QueryMode = (function() {
|
|
36440
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
36441
|
-
values[valuesById[0] = "NORMAL"] = 0;
|
|
36442
|
-
values[valuesById[1] = "PLAN"] = 1;
|
|
36443
|
-
values[valuesById[2] = "PROFILE"] = 2;
|
|
36444
|
-
return values;
|
|
36445
|
-
})();
|
|
36446
|
-
|
|
36447
36632
|
return ExecuteSqlRequest;
|
|
36448
36633
|
})();
|
|
36449
36634
|
|
|
@@ -39948,58 +40133,26 @@
|
|
|
39948
40133
|
*/
|
|
39949
40134
|
var api = {};
|
|
39950
40135
|
|
|
39951
|
-
|
|
39952
|
-
* FieldBehavior enum.
|
|
39953
|
-
* @name google.api.FieldBehavior
|
|
39954
|
-
* @enum {number}
|
|
39955
|
-
* @property {number} FIELD_BEHAVIOR_UNSPECIFIED=0 FIELD_BEHAVIOR_UNSPECIFIED value
|
|
39956
|
-
* @property {number} OPTIONAL=1 OPTIONAL value
|
|
39957
|
-
* @property {number} REQUIRED=2 REQUIRED value
|
|
39958
|
-
* @property {number} OUTPUT_ONLY=3 OUTPUT_ONLY value
|
|
39959
|
-
* @property {number} INPUT_ONLY=4 INPUT_ONLY value
|
|
39960
|
-
* @property {number} IMMUTABLE=5 IMMUTABLE value
|
|
39961
|
-
* @property {number} UNORDERED_LIST=6 UNORDERED_LIST value
|
|
39962
|
-
* @property {number} NON_EMPTY_DEFAULT=7 NON_EMPTY_DEFAULT value
|
|
39963
|
-
*/
|
|
39964
|
-
api.FieldBehavior = (function() {
|
|
39965
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
39966
|
-
values[valuesById[0] = "FIELD_BEHAVIOR_UNSPECIFIED"] = 0;
|
|
39967
|
-
values[valuesById[1] = "OPTIONAL"] = 1;
|
|
39968
|
-
values[valuesById[2] = "REQUIRED"] = 2;
|
|
39969
|
-
values[valuesById[3] = "OUTPUT_ONLY"] = 3;
|
|
39970
|
-
values[valuesById[4] = "INPUT_ONLY"] = 4;
|
|
39971
|
-
values[valuesById[5] = "IMMUTABLE"] = 5;
|
|
39972
|
-
values[valuesById[6] = "UNORDERED_LIST"] = 6;
|
|
39973
|
-
values[valuesById[7] = "NON_EMPTY_DEFAULT"] = 7;
|
|
39974
|
-
return values;
|
|
39975
|
-
})();
|
|
39976
|
-
|
|
39977
|
-
api.ResourceDescriptor = (function() {
|
|
40136
|
+
api.Http = (function() {
|
|
39978
40137
|
|
|
39979
40138
|
/**
|
|
39980
|
-
* Properties of a
|
|
40139
|
+
* Properties of a Http.
|
|
39981
40140
|
* @memberof google.api
|
|
39982
|
-
* @interface
|
|
39983
|
-
* @property {
|
|
39984
|
-
* @property {
|
|
39985
|
-
* @property {string|null} [nameField] ResourceDescriptor nameField
|
|
39986
|
-
* @property {google.api.ResourceDescriptor.History|null} [history] ResourceDescriptor history
|
|
39987
|
-
* @property {string|null} [plural] ResourceDescriptor plural
|
|
39988
|
-
* @property {string|null} [singular] ResourceDescriptor singular
|
|
39989
|
-
* @property {Array.<google.api.ResourceDescriptor.Style>|null} [style] ResourceDescriptor style
|
|
40141
|
+
* @interface IHttp
|
|
40142
|
+
* @property {Array.<google.api.IHttpRule>|null} [rules] Http rules
|
|
40143
|
+
* @property {boolean|null} [fullyDecodeReservedExpansion] Http fullyDecodeReservedExpansion
|
|
39990
40144
|
*/
|
|
39991
40145
|
|
|
39992
40146
|
/**
|
|
39993
|
-
* Constructs a new
|
|
40147
|
+
* Constructs a new Http.
|
|
39994
40148
|
* @memberof google.api
|
|
39995
|
-
* @classdesc Represents a
|
|
39996
|
-
* @implements
|
|
40149
|
+
* @classdesc Represents a Http.
|
|
40150
|
+
* @implements IHttp
|
|
39997
40151
|
* @constructor
|
|
39998
|
-
* @param {google.api.
|
|
40152
|
+
* @param {google.api.IHttp=} [properties] Properties to set
|
|
39999
40153
|
*/
|
|
40000
|
-
function
|
|
40001
|
-
this.
|
|
40002
|
-
this.style = [];
|
|
40154
|
+
function Http(properties) {
|
|
40155
|
+
this.rules = [];
|
|
40003
40156
|
if (properties)
|
|
40004
40157
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
40005
40158
|
if (properties[keys[i]] != null)
|
|
@@ -40007,167 +40160,91 @@
|
|
|
40007
40160
|
}
|
|
40008
40161
|
|
|
40009
40162
|
/**
|
|
40010
|
-
*
|
|
40011
|
-
* @member {
|
|
40012
|
-
* @memberof google.api.
|
|
40013
|
-
* @instance
|
|
40014
|
-
*/
|
|
40015
|
-
ResourceDescriptor.prototype.type = "";
|
|
40016
|
-
|
|
40017
|
-
/**
|
|
40018
|
-
* ResourceDescriptor pattern.
|
|
40019
|
-
* @member {Array.<string>} pattern
|
|
40020
|
-
* @memberof google.api.ResourceDescriptor
|
|
40021
|
-
* @instance
|
|
40022
|
-
*/
|
|
40023
|
-
ResourceDescriptor.prototype.pattern = $util.emptyArray;
|
|
40024
|
-
|
|
40025
|
-
/**
|
|
40026
|
-
* ResourceDescriptor nameField.
|
|
40027
|
-
* @member {string} nameField
|
|
40028
|
-
* @memberof google.api.ResourceDescriptor
|
|
40029
|
-
* @instance
|
|
40030
|
-
*/
|
|
40031
|
-
ResourceDescriptor.prototype.nameField = "";
|
|
40032
|
-
|
|
40033
|
-
/**
|
|
40034
|
-
* ResourceDescriptor history.
|
|
40035
|
-
* @member {google.api.ResourceDescriptor.History} history
|
|
40036
|
-
* @memberof google.api.ResourceDescriptor
|
|
40037
|
-
* @instance
|
|
40038
|
-
*/
|
|
40039
|
-
ResourceDescriptor.prototype.history = 0;
|
|
40040
|
-
|
|
40041
|
-
/**
|
|
40042
|
-
* ResourceDescriptor plural.
|
|
40043
|
-
* @member {string} plural
|
|
40044
|
-
* @memberof google.api.ResourceDescriptor
|
|
40045
|
-
* @instance
|
|
40046
|
-
*/
|
|
40047
|
-
ResourceDescriptor.prototype.plural = "";
|
|
40048
|
-
|
|
40049
|
-
/**
|
|
40050
|
-
* ResourceDescriptor singular.
|
|
40051
|
-
* @member {string} singular
|
|
40052
|
-
* @memberof google.api.ResourceDescriptor
|
|
40163
|
+
* Http rules.
|
|
40164
|
+
* @member {Array.<google.api.IHttpRule>} rules
|
|
40165
|
+
* @memberof google.api.Http
|
|
40053
40166
|
* @instance
|
|
40054
40167
|
*/
|
|
40055
|
-
|
|
40168
|
+
Http.prototype.rules = $util.emptyArray;
|
|
40056
40169
|
|
|
40057
40170
|
/**
|
|
40058
|
-
*
|
|
40059
|
-
* @member {
|
|
40060
|
-
* @memberof google.api.
|
|
40171
|
+
* Http fullyDecodeReservedExpansion.
|
|
40172
|
+
* @member {boolean} fullyDecodeReservedExpansion
|
|
40173
|
+
* @memberof google.api.Http
|
|
40061
40174
|
* @instance
|
|
40062
40175
|
*/
|
|
40063
|
-
|
|
40176
|
+
Http.prototype.fullyDecodeReservedExpansion = false;
|
|
40064
40177
|
|
|
40065
40178
|
/**
|
|
40066
|
-
* Creates a new
|
|
40179
|
+
* Creates a new Http instance using the specified properties.
|
|
40067
40180
|
* @function create
|
|
40068
|
-
* @memberof google.api.
|
|
40181
|
+
* @memberof google.api.Http
|
|
40069
40182
|
* @static
|
|
40070
|
-
* @param {google.api.
|
|
40071
|
-
* @returns {google.api.
|
|
40183
|
+
* @param {google.api.IHttp=} [properties] Properties to set
|
|
40184
|
+
* @returns {google.api.Http} Http instance
|
|
40072
40185
|
*/
|
|
40073
|
-
|
|
40074
|
-
return new
|
|
40186
|
+
Http.create = function create(properties) {
|
|
40187
|
+
return new Http(properties);
|
|
40075
40188
|
};
|
|
40076
40189
|
|
|
40077
40190
|
/**
|
|
40078
|
-
* Encodes the specified
|
|
40191
|
+
* Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
|
|
40079
40192
|
* @function encode
|
|
40080
|
-
* @memberof google.api.
|
|
40193
|
+
* @memberof google.api.Http
|
|
40081
40194
|
* @static
|
|
40082
|
-
* @param {google.api.
|
|
40195
|
+
* @param {google.api.IHttp} message Http message or plain object to encode
|
|
40083
40196
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40084
40197
|
* @returns {$protobuf.Writer} Writer
|
|
40085
40198
|
*/
|
|
40086
|
-
|
|
40199
|
+
Http.encode = function encode(message, writer) {
|
|
40087
40200
|
if (!writer)
|
|
40088
40201
|
writer = $Writer.create();
|
|
40089
|
-
if (message.
|
|
40090
|
-
|
|
40091
|
-
|
|
40092
|
-
|
|
40093
|
-
|
|
40094
|
-
if (message.nameField != null && Object.hasOwnProperty.call(message, "nameField"))
|
|
40095
|
-
writer.uint32(/* id 3, wireType 2 =*/26).string(message.nameField);
|
|
40096
|
-
if (message.history != null && Object.hasOwnProperty.call(message, "history"))
|
|
40097
|
-
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.history);
|
|
40098
|
-
if (message.plural != null && Object.hasOwnProperty.call(message, "plural"))
|
|
40099
|
-
writer.uint32(/* id 5, wireType 2 =*/42).string(message.plural);
|
|
40100
|
-
if (message.singular != null && Object.hasOwnProperty.call(message, "singular"))
|
|
40101
|
-
writer.uint32(/* id 6, wireType 2 =*/50).string(message.singular);
|
|
40102
|
-
if (message.style != null && message.style.length) {
|
|
40103
|
-
writer.uint32(/* id 10, wireType 2 =*/82).fork();
|
|
40104
|
-
for (var i = 0; i < message.style.length; ++i)
|
|
40105
|
-
writer.int32(message.style[i]);
|
|
40106
|
-
writer.ldelim();
|
|
40107
|
-
}
|
|
40202
|
+
if (message.rules != null && message.rules.length)
|
|
40203
|
+
for (var i = 0; i < message.rules.length; ++i)
|
|
40204
|
+
$root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
40205
|
+
if (message.fullyDecodeReservedExpansion != null && Object.hasOwnProperty.call(message, "fullyDecodeReservedExpansion"))
|
|
40206
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.fullyDecodeReservedExpansion);
|
|
40108
40207
|
return writer;
|
|
40109
40208
|
};
|
|
40110
40209
|
|
|
40111
40210
|
/**
|
|
40112
|
-
* Encodes the specified
|
|
40211
|
+
* Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
|
|
40113
40212
|
* @function encodeDelimited
|
|
40114
|
-
* @memberof google.api.
|
|
40213
|
+
* @memberof google.api.Http
|
|
40115
40214
|
* @static
|
|
40116
|
-
* @param {google.api.
|
|
40215
|
+
* @param {google.api.IHttp} message Http message or plain object to encode
|
|
40117
40216
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40118
40217
|
* @returns {$protobuf.Writer} Writer
|
|
40119
40218
|
*/
|
|
40120
|
-
|
|
40219
|
+
Http.encodeDelimited = function encodeDelimited(message, writer) {
|
|
40121
40220
|
return this.encode(message, writer).ldelim();
|
|
40122
40221
|
};
|
|
40123
40222
|
|
|
40124
40223
|
/**
|
|
40125
|
-
* Decodes a
|
|
40224
|
+
* Decodes a Http message from the specified reader or buffer.
|
|
40126
40225
|
* @function decode
|
|
40127
|
-
* @memberof google.api.
|
|
40226
|
+
* @memberof google.api.Http
|
|
40128
40227
|
* @static
|
|
40129
40228
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40130
40229
|
* @param {number} [length] Message length if known beforehand
|
|
40131
|
-
* @returns {google.api.
|
|
40230
|
+
* @returns {google.api.Http} Http
|
|
40132
40231
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40133
40232
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40134
40233
|
*/
|
|
40135
|
-
|
|
40234
|
+
Http.decode = function decode(reader, length) {
|
|
40136
40235
|
if (!(reader instanceof $Reader))
|
|
40137
40236
|
reader = $Reader.create(reader);
|
|
40138
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.
|
|
40237
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Http();
|
|
40139
40238
|
while (reader.pos < end) {
|
|
40140
40239
|
var tag = reader.uint32();
|
|
40141
40240
|
switch (tag >>> 3) {
|
|
40142
40241
|
case 1:
|
|
40143
|
-
message.
|
|
40242
|
+
if (!(message.rules && message.rules.length))
|
|
40243
|
+
message.rules = [];
|
|
40244
|
+
message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32()));
|
|
40144
40245
|
break;
|
|
40145
40246
|
case 2:
|
|
40146
|
-
|
|
40147
|
-
message.pattern = [];
|
|
40148
|
-
message.pattern.push(reader.string());
|
|
40149
|
-
break;
|
|
40150
|
-
case 3:
|
|
40151
|
-
message.nameField = reader.string();
|
|
40152
|
-
break;
|
|
40153
|
-
case 4:
|
|
40154
|
-
message.history = reader.int32();
|
|
40155
|
-
break;
|
|
40156
|
-
case 5:
|
|
40157
|
-
message.plural = reader.string();
|
|
40158
|
-
break;
|
|
40159
|
-
case 6:
|
|
40160
|
-
message.singular = reader.string();
|
|
40161
|
-
break;
|
|
40162
|
-
case 10:
|
|
40163
|
-
if (!(message.style && message.style.length))
|
|
40164
|
-
message.style = [];
|
|
40165
|
-
if ((tag & 7) === 2) {
|
|
40166
|
-
var end2 = reader.uint32() + reader.pos;
|
|
40167
|
-
while (reader.pos < end2)
|
|
40168
|
-
message.style.push(reader.int32());
|
|
40169
|
-
} else
|
|
40170
|
-
message.style.push(reader.int32());
|
|
40247
|
+
message.fullyDecodeReservedExpansion = reader.bool();
|
|
40171
40248
|
break;
|
|
40172
40249
|
default:
|
|
40173
40250
|
reader.skipType(tag & 7);
|
|
@@ -40178,648 +40255,95 @@
|
|
|
40178
40255
|
};
|
|
40179
40256
|
|
|
40180
40257
|
/**
|
|
40181
|
-
* Decodes a
|
|
40258
|
+
* Decodes a Http message from the specified reader or buffer, length delimited.
|
|
40182
40259
|
* @function decodeDelimited
|
|
40183
|
-
* @memberof google.api.
|
|
40260
|
+
* @memberof google.api.Http
|
|
40184
40261
|
* @static
|
|
40185
40262
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40186
|
-
* @returns {google.api.
|
|
40263
|
+
* @returns {google.api.Http} Http
|
|
40187
40264
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40188
40265
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40189
40266
|
*/
|
|
40190
|
-
|
|
40267
|
+
Http.decodeDelimited = function decodeDelimited(reader) {
|
|
40191
40268
|
if (!(reader instanceof $Reader))
|
|
40192
40269
|
reader = new $Reader(reader);
|
|
40193
40270
|
return this.decode(reader, reader.uint32());
|
|
40194
40271
|
};
|
|
40195
40272
|
|
|
40196
40273
|
/**
|
|
40197
|
-
* Verifies a
|
|
40274
|
+
* Verifies a Http message.
|
|
40198
40275
|
* @function verify
|
|
40199
|
-
* @memberof google.api.
|
|
40276
|
+
* @memberof google.api.Http
|
|
40200
40277
|
* @static
|
|
40201
40278
|
* @param {Object.<string,*>} message Plain object to verify
|
|
40202
40279
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
40203
40280
|
*/
|
|
40204
|
-
|
|
40281
|
+
Http.verify = function verify(message) {
|
|
40205
40282
|
if (typeof message !== "object" || message === null)
|
|
40206
40283
|
return "object expected";
|
|
40207
|
-
if (message.
|
|
40208
|
-
if (
|
|
40209
|
-
return "
|
|
40210
|
-
|
|
40211
|
-
|
|
40212
|
-
|
|
40213
|
-
|
|
40214
|
-
if (!$util.isString(message.pattern[i]))
|
|
40215
|
-
return "pattern: string[] expected";
|
|
40216
|
-
}
|
|
40217
|
-
if (message.nameField != null && message.hasOwnProperty("nameField"))
|
|
40218
|
-
if (!$util.isString(message.nameField))
|
|
40219
|
-
return "nameField: string expected";
|
|
40220
|
-
if (message.history != null && message.hasOwnProperty("history"))
|
|
40221
|
-
switch (message.history) {
|
|
40222
|
-
default:
|
|
40223
|
-
return "history: enum value expected";
|
|
40224
|
-
case 0:
|
|
40225
|
-
case 1:
|
|
40226
|
-
case 2:
|
|
40227
|
-
break;
|
|
40284
|
+
if (message.rules != null && message.hasOwnProperty("rules")) {
|
|
40285
|
+
if (!Array.isArray(message.rules))
|
|
40286
|
+
return "rules: array expected";
|
|
40287
|
+
for (var i = 0; i < message.rules.length; ++i) {
|
|
40288
|
+
var error = $root.google.api.HttpRule.verify(message.rules[i]);
|
|
40289
|
+
if (error)
|
|
40290
|
+
return "rules." + error;
|
|
40228
40291
|
}
|
|
40229
|
-
if (message.plural != null && message.hasOwnProperty("plural"))
|
|
40230
|
-
if (!$util.isString(message.plural))
|
|
40231
|
-
return "plural: string expected";
|
|
40232
|
-
if (message.singular != null && message.hasOwnProperty("singular"))
|
|
40233
|
-
if (!$util.isString(message.singular))
|
|
40234
|
-
return "singular: string expected";
|
|
40235
|
-
if (message.style != null && message.hasOwnProperty("style")) {
|
|
40236
|
-
if (!Array.isArray(message.style))
|
|
40237
|
-
return "style: array expected";
|
|
40238
|
-
for (var i = 0; i < message.style.length; ++i)
|
|
40239
|
-
switch (message.style[i]) {
|
|
40240
|
-
default:
|
|
40241
|
-
return "style: enum value[] expected";
|
|
40242
|
-
case 0:
|
|
40243
|
-
case 1:
|
|
40244
|
-
break;
|
|
40245
|
-
}
|
|
40246
40292
|
}
|
|
40293
|
+
if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion"))
|
|
40294
|
+
if (typeof message.fullyDecodeReservedExpansion !== "boolean")
|
|
40295
|
+
return "fullyDecodeReservedExpansion: boolean expected";
|
|
40247
40296
|
return null;
|
|
40248
40297
|
};
|
|
40249
40298
|
|
|
40250
40299
|
/**
|
|
40251
|
-
* Creates a
|
|
40300
|
+
* Creates a Http message from a plain object. Also converts values to their respective internal types.
|
|
40252
40301
|
* @function fromObject
|
|
40253
|
-
* @memberof google.api.
|
|
40302
|
+
* @memberof google.api.Http
|
|
40254
40303
|
* @static
|
|
40255
40304
|
* @param {Object.<string,*>} object Plain object
|
|
40256
|
-
* @returns {google.api.
|
|
40305
|
+
* @returns {google.api.Http} Http
|
|
40257
40306
|
*/
|
|
40258
|
-
|
|
40259
|
-
if (object instanceof $root.google.api.
|
|
40307
|
+
Http.fromObject = function fromObject(object) {
|
|
40308
|
+
if (object instanceof $root.google.api.Http)
|
|
40260
40309
|
return object;
|
|
40261
|
-
var message = new $root.google.api.
|
|
40262
|
-
if (object.
|
|
40263
|
-
|
|
40264
|
-
|
|
40265
|
-
|
|
40266
|
-
|
|
40267
|
-
|
|
40268
|
-
|
|
40269
|
-
message.
|
|
40270
|
-
|
|
40271
|
-
if (object.nameField != null)
|
|
40272
|
-
message.nameField = String(object.nameField);
|
|
40273
|
-
switch (object.history) {
|
|
40274
|
-
case "HISTORY_UNSPECIFIED":
|
|
40275
|
-
case 0:
|
|
40276
|
-
message.history = 0;
|
|
40277
|
-
break;
|
|
40278
|
-
case "ORIGINALLY_SINGLE_PATTERN":
|
|
40279
|
-
case 1:
|
|
40280
|
-
message.history = 1;
|
|
40281
|
-
break;
|
|
40282
|
-
case "FUTURE_MULTI_PATTERN":
|
|
40283
|
-
case 2:
|
|
40284
|
-
message.history = 2;
|
|
40285
|
-
break;
|
|
40286
|
-
}
|
|
40287
|
-
if (object.plural != null)
|
|
40288
|
-
message.plural = String(object.plural);
|
|
40289
|
-
if (object.singular != null)
|
|
40290
|
-
message.singular = String(object.singular);
|
|
40291
|
-
if (object.style) {
|
|
40292
|
-
if (!Array.isArray(object.style))
|
|
40293
|
-
throw TypeError(".google.api.ResourceDescriptor.style: array expected");
|
|
40294
|
-
message.style = [];
|
|
40295
|
-
for (var i = 0; i < object.style.length; ++i)
|
|
40296
|
-
switch (object.style[i]) {
|
|
40297
|
-
default:
|
|
40298
|
-
case "STYLE_UNSPECIFIED":
|
|
40299
|
-
case 0:
|
|
40300
|
-
message.style[i] = 0;
|
|
40301
|
-
break;
|
|
40302
|
-
case "DECLARATIVE_FRIENDLY":
|
|
40303
|
-
case 1:
|
|
40304
|
-
message.style[i] = 1;
|
|
40305
|
-
break;
|
|
40306
|
-
}
|
|
40310
|
+
var message = new $root.google.api.Http();
|
|
40311
|
+
if (object.rules) {
|
|
40312
|
+
if (!Array.isArray(object.rules))
|
|
40313
|
+
throw TypeError(".google.api.Http.rules: array expected");
|
|
40314
|
+
message.rules = [];
|
|
40315
|
+
for (var i = 0; i < object.rules.length; ++i) {
|
|
40316
|
+
if (typeof object.rules[i] !== "object")
|
|
40317
|
+
throw TypeError(".google.api.Http.rules: object expected");
|
|
40318
|
+
message.rules[i] = $root.google.api.HttpRule.fromObject(object.rules[i]);
|
|
40319
|
+
}
|
|
40307
40320
|
}
|
|
40321
|
+
if (object.fullyDecodeReservedExpansion != null)
|
|
40322
|
+
message.fullyDecodeReservedExpansion = Boolean(object.fullyDecodeReservedExpansion);
|
|
40308
40323
|
return message;
|
|
40309
40324
|
};
|
|
40310
40325
|
|
|
40311
40326
|
/**
|
|
40312
|
-
* Creates a plain object from a
|
|
40327
|
+
* Creates a plain object from a Http message. Also converts values to other types if specified.
|
|
40313
40328
|
* @function toObject
|
|
40314
|
-
* @memberof google.api.
|
|
40329
|
+
* @memberof google.api.Http
|
|
40315
40330
|
* @static
|
|
40316
|
-
* @param {google.api.
|
|
40331
|
+
* @param {google.api.Http} message Http
|
|
40317
40332
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
40318
40333
|
* @returns {Object.<string,*>} Plain object
|
|
40319
40334
|
*/
|
|
40320
|
-
|
|
40335
|
+
Http.toObject = function toObject(message, options) {
|
|
40321
40336
|
if (!options)
|
|
40322
40337
|
options = {};
|
|
40323
40338
|
var object = {};
|
|
40324
|
-
if (options.arrays || options.defaults)
|
|
40325
|
-
object.
|
|
40326
|
-
|
|
40327
|
-
|
|
40328
|
-
if (
|
|
40329
|
-
object.
|
|
40330
|
-
|
|
40331
|
-
|
|
40332
|
-
object.plural = "";
|
|
40333
|
-
object.singular = "";
|
|
40334
|
-
}
|
|
40335
|
-
if (message.type != null && message.hasOwnProperty("type"))
|
|
40336
|
-
object.type = message.type;
|
|
40337
|
-
if (message.pattern && message.pattern.length) {
|
|
40338
|
-
object.pattern = [];
|
|
40339
|
-
for (var j = 0; j < message.pattern.length; ++j)
|
|
40340
|
-
object.pattern[j] = message.pattern[j];
|
|
40341
|
-
}
|
|
40342
|
-
if (message.nameField != null && message.hasOwnProperty("nameField"))
|
|
40343
|
-
object.nameField = message.nameField;
|
|
40344
|
-
if (message.history != null && message.hasOwnProperty("history"))
|
|
40345
|
-
object.history = options.enums === String ? $root.google.api.ResourceDescriptor.History[message.history] : message.history;
|
|
40346
|
-
if (message.plural != null && message.hasOwnProperty("plural"))
|
|
40347
|
-
object.plural = message.plural;
|
|
40348
|
-
if (message.singular != null && message.hasOwnProperty("singular"))
|
|
40349
|
-
object.singular = message.singular;
|
|
40350
|
-
if (message.style && message.style.length) {
|
|
40351
|
-
object.style = [];
|
|
40352
|
-
for (var j = 0; j < message.style.length; ++j)
|
|
40353
|
-
object.style[j] = options.enums === String ? $root.google.api.ResourceDescriptor.Style[message.style[j]] : message.style[j];
|
|
40354
|
-
}
|
|
40355
|
-
return object;
|
|
40356
|
-
};
|
|
40357
|
-
|
|
40358
|
-
/**
|
|
40359
|
-
* Converts this ResourceDescriptor to JSON.
|
|
40360
|
-
* @function toJSON
|
|
40361
|
-
* @memberof google.api.ResourceDescriptor
|
|
40362
|
-
* @instance
|
|
40363
|
-
* @returns {Object.<string,*>} JSON object
|
|
40364
|
-
*/
|
|
40365
|
-
ResourceDescriptor.prototype.toJSON = function toJSON() {
|
|
40366
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
40367
|
-
};
|
|
40368
|
-
|
|
40369
|
-
/**
|
|
40370
|
-
* History enum.
|
|
40371
|
-
* @name google.api.ResourceDescriptor.History
|
|
40372
|
-
* @enum {number}
|
|
40373
|
-
* @property {number} HISTORY_UNSPECIFIED=0 HISTORY_UNSPECIFIED value
|
|
40374
|
-
* @property {number} ORIGINALLY_SINGLE_PATTERN=1 ORIGINALLY_SINGLE_PATTERN value
|
|
40375
|
-
* @property {number} FUTURE_MULTI_PATTERN=2 FUTURE_MULTI_PATTERN value
|
|
40376
|
-
*/
|
|
40377
|
-
ResourceDescriptor.History = (function() {
|
|
40378
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
40379
|
-
values[valuesById[0] = "HISTORY_UNSPECIFIED"] = 0;
|
|
40380
|
-
values[valuesById[1] = "ORIGINALLY_SINGLE_PATTERN"] = 1;
|
|
40381
|
-
values[valuesById[2] = "FUTURE_MULTI_PATTERN"] = 2;
|
|
40382
|
-
return values;
|
|
40383
|
-
})();
|
|
40384
|
-
|
|
40385
|
-
/**
|
|
40386
|
-
* Style enum.
|
|
40387
|
-
* @name google.api.ResourceDescriptor.Style
|
|
40388
|
-
* @enum {number}
|
|
40389
|
-
* @property {number} STYLE_UNSPECIFIED=0 STYLE_UNSPECIFIED value
|
|
40390
|
-
* @property {number} DECLARATIVE_FRIENDLY=1 DECLARATIVE_FRIENDLY value
|
|
40391
|
-
*/
|
|
40392
|
-
ResourceDescriptor.Style = (function() {
|
|
40393
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
40394
|
-
values[valuesById[0] = "STYLE_UNSPECIFIED"] = 0;
|
|
40395
|
-
values[valuesById[1] = "DECLARATIVE_FRIENDLY"] = 1;
|
|
40396
|
-
return values;
|
|
40397
|
-
})();
|
|
40398
|
-
|
|
40399
|
-
return ResourceDescriptor;
|
|
40400
|
-
})();
|
|
40401
|
-
|
|
40402
|
-
api.ResourceReference = (function() {
|
|
40403
|
-
|
|
40404
|
-
/**
|
|
40405
|
-
* Properties of a ResourceReference.
|
|
40406
|
-
* @memberof google.api
|
|
40407
|
-
* @interface IResourceReference
|
|
40408
|
-
* @property {string|null} [type] ResourceReference type
|
|
40409
|
-
* @property {string|null} [childType] ResourceReference childType
|
|
40410
|
-
*/
|
|
40411
|
-
|
|
40412
|
-
/**
|
|
40413
|
-
* Constructs a new ResourceReference.
|
|
40414
|
-
* @memberof google.api
|
|
40415
|
-
* @classdesc Represents a ResourceReference.
|
|
40416
|
-
* @implements IResourceReference
|
|
40417
|
-
* @constructor
|
|
40418
|
-
* @param {google.api.IResourceReference=} [properties] Properties to set
|
|
40419
|
-
*/
|
|
40420
|
-
function ResourceReference(properties) {
|
|
40421
|
-
if (properties)
|
|
40422
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
40423
|
-
if (properties[keys[i]] != null)
|
|
40424
|
-
this[keys[i]] = properties[keys[i]];
|
|
40425
|
-
}
|
|
40426
|
-
|
|
40427
|
-
/**
|
|
40428
|
-
* ResourceReference type.
|
|
40429
|
-
* @member {string} type
|
|
40430
|
-
* @memberof google.api.ResourceReference
|
|
40431
|
-
* @instance
|
|
40432
|
-
*/
|
|
40433
|
-
ResourceReference.prototype.type = "";
|
|
40434
|
-
|
|
40435
|
-
/**
|
|
40436
|
-
* ResourceReference childType.
|
|
40437
|
-
* @member {string} childType
|
|
40438
|
-
* @memberof google.api.ResourceReference
|
|
40439
|
-
* @instance
|
|
40440
|
-
*/
|
|
40441
|
-
ResourceReference.prototype.childType = "";
|
|
40442
|
-
|
|
40443
|
-
/**
|
|
40444
|
-
* Creates a new ResourceReference instance using the specified properties.
|
|
40445
|
-
* @function create
|
|
40446
|
-
* @memberof google.api.ResourceReference
|
|
40447
|
-
* @static
|
|
40448
|
-
* @param {google.api.IResourceReference=} [properties] Properties to set
|
|
40449
|
-
* @returns {google.api.ResourceReference} ResourceReference instance
|
|
40450
|
-
*/
|
|
40451
|
-
ResourceReference.create = function create(properties) {
|
|
40452
|
-
return new ResourceReference(properties);
|
|
40453
|
-
};
|
|
40454
|
-
|
|
40455
|
-
/**
|
|
40456
|
-
* Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
|
|
40457
|
-
* @function encode
|
|
40458
|
-
* @memberof google.api.ResourceReference
|
|
40459
|
-
* @static
|
|
40460
|
-
* @param {google.api.IResourceReference} message ResourceReference message or plain object to encode
|
|
40461
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40462
|
-
* @returns {$protobuf.Writer} Writer
|
|
40463
|
-
*/
|
|
40464
|
-
ResourceReference.encode = function encode(message, writer) {
|
|
40465
|
-
if (!writer)
|
|
40466
|
-
writer = $Writer.create();
|
|
40467
|
-
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
40468
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
|
|
40469
|
-
if (message.childType != null && Object.hasOwnProperty.call(message, "childType"))
|
|
40470
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.childType);
|
|
40471
|
-
return writer;
|
|
40472
|
-
};
|
|
40473
|
-
|
|
40474
|
-
/**
|
|
40475
|
-
* Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
|
|
40476
|
-
* @function encodeDelimited
|
|
40477
|
-
* @memberof google.api.ResourceReference
|
|
40478
|
-
* @static
|
|
40479
|
-
* @param {google.api.IResourceReference} message ResourceReference message or plain object to encode
|
|
40480
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40481
|
-
* @returns {$protobuf.Writer} Writer
|
|
40482
|
-
*/
|
|
40483
|
-
ResourceReference.encodeDelimited = function encodeDelimited(message, writer) {
|
|
40484
|
-
return this.encode(message, writer).ldelim();
|
|
40485
|
-
};
|
|
40486
|
-
|
|
40487
|
-
/**
|
|
40488
|
-
* Decodes a ResourceReference message from the specified reader or buffer.
|
|
40489
|
-
* @function decode
|
|
40490
|
-
* @memberof google.api.ResourceReference
|
|
40491
|
-
* @static
|
|
40492
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40493
|
-
* @param {number} [length] Message length if known beforehand
|
|
40494
|
-
* @returns {google.api.ResourceReference} ResourceReference
|
|
40495
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40496
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40497
|
-
*/
|
|
40498
|
-
ResourceReference.decode = function decode(reader, length) {
|
|
40499
|
-
if (!(reader instanceof $Reader))
|
|
40500
|
-
reader = $Reader.create(reader);
|
|
40501
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceReference();
|
|
40502
|
-
while (reader.pos < end) {
|
|
40503
|
-
var tag = reader.uint32();
|
|
40504
|
-
switch (tag >>> 3) {
|
|
40505
|
-
case 1:
|
|
40506
|
-
message.type = reader.string();
|
|
40507
|
-
break;
|
|
40508
|
-
case 2:
|
|
40509
|
-
message.childType = reader.string();
|
|
40510
|
-
break;
|
|
40511
|
-
default:
|
|
40512
|
-
reader.skipType(tag & 7);
|
|
40513
|
-
break;
|
|
40514
|
-
}
|
|
40515
|
-
}
|
|
40516
|
-
return message;
|
|
40517
|
-
};
|
|
40518
|
-
|
|
40519
|
-
/**
|
|
40520
|
-
* Decodes a ResourceReference message from the specified reader or buffer, length delimited.
|
|
40521
|
-
* @function decodeDelimited
|
|
40522
|
-
* @memberof google.api.ResourceReference
|
|
40523
|
-
* @static
|
|
40524
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40525
|
-
* @returns {google.api.ResourceReference} ResourceReference
|
|
40526
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40527
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40528
|
-
*/
|
|
40529
|
-
ResourceReference.decodeDelimited = function decodeDelimited(reader) {
|
|
40530
|
-
if (!(reader instanceof $Reader))
|
|
40531
|
-
reader = new $Reader(reader);
|
|
40532
|
-
return this.decode(reader, reader.uint32());
|
|
40533
|
-
};
|
|
40534
|
-
|
|
40535
|
-
/**
|
|
40536
|
-
* Verifies a ResourceReference message.
|
|
40537
|
-
* @function verify
|
|
40538
|
-
* @memberof google.api.ResourceReference
|
|
40539
|
-
* @static
|
|
40540
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
40541
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
40542
|
-
*/
|
|
40543
|
-
ResourceReference.verify = function verify(message) {
|
|
40544
|
-
if (typeof message !== "object" || message === null)
|
|
40545
|
-
return "object expected";
|
|
40546
|
-
if (message.type != null && message.hasOwnProperty("type"))
|
|
40547
|
-
if (!$util.isString(message.type))
|
|
40548
|
-
return "type: string expected";
|
|
40549
|
-
if (message.childType != null && message.hasOwnProperty("childType"))
|
|
40550
|
-
if (!$util.isString(message.childType))
|
|
40551
|
-
return "childType: string expected";
|
|
40552
|
-
return null;
|
|
40553
|
-
};
|
|
40554
|
-
|
|
40555
|
-
/**
|
|
40556
|
-
* Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.
|
|
40557
|
-
* @function fromObject
|
|
40558
|
-
* @memberof google.api.ResourceReference
|
|
40559
|
-
* @static
|
|
40560
|
-
* @param {Object.<string,*>} object Plain object
|
|
40561
|
-
* @returns {google.api.ResourceReference} ResourceReference
|
|
40562
|
-
*/
|
|
40563
|
-
ResourceReference.fromObject = function fromObject(object) {
|
|
40564
|
-
if (object instanceof $root.google.api.ResourceReference)
|
|
40565
|
-
return object;
|
|
40566
|
-
var message = new $root.google.api.ResourceReference();
|
|
40567
|
-
if (object.type != null)
|
|
40568
|
-
message.type = String(object.type);
|
|
40569
|
-
if (object.childType != null)
|
|
40570
|
-
message.childType = String(object.childType);
|
|
40571
|
-
return message;
|
|
40572
|
-
};
|
|
40573
|
-
|
|
40574
|
-
/**
|
|
40575
|
-
* Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
|
|
40576
|
-
* @function toObject
|
|
40577
|
-
* @memberof google.api.ResourceReference
|
|
40578
|
-
* @static
|
|
40579
|
-
* @param {google.api.ResourceReference} message ResourceReference
|
|
40580
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
40581
|
-
* @returns {Object.<string,*>} Plain object
|
|
40582
|
-
*/
|
|
40583
|
-
ResourceReference.toObject = function toObject(message, options) {
|
|
40584
|
-
if (!options)
|
|
40585
|
-
options = {};
|
|
40586
|
-
var object = {};
|
|
40587
|
-
if (options.defaults) {
|
|
40588
|
-
object.type = "";
|
|
40589
|
-
object.childType = "";
|
|
40590
|
-
}
|
|
40591
|
-
if (message.type != null && message.hasOwnProperty("type"))
|
|
40592
|
-
object.type = message.type;
|
|
40593
|
-
if (message.childType != null && message.hasOwnProperty("childType"))
|
|
40594
|
-
object.childType = message.childType;
|
|
40595
|
-
return object;
|
|
40596
|
-
};
|
|
40597
|
-
|
|
40598
|
-
/**
|
|
40599
|
-
* Converts this ResourceReference to JSON.
|
|
40600
|
-
* @function toJSON
|
|
40601
|
-
* @memberof google.api.ResourceReference
|
|
40602
|
-
* @instance
|
|
40603
|
-
* @returns {Object.<string,*>} JSON object
|
|
40604
|
-
*/
|
|
40605
|
-
ResourceReference.prototype.toJSON = function toJSON() {
|
|
40606
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
40607
|
-
};
|
|
40608
|
-
|
|
40609
|
-
return ResourceReference;
|
|
40610
|
-
})();
|
|
40611
|
-
|
|
40612
|
-
api.Http = (function() {
|
|
40613
|
-
|
|
40614
|
-
/**
|
|
40615
|
-
* Properties of a Http.
|
|
40616
|
-
* @memberof google.api
|
|
40617
|
-
* @interface IHttp
|
|
40618
|
-
* @property {Array.<google.api.IHttpRule>|null} [rules] Http rules
|
|
40619
|
-
* @property {boolean|null} [fullyDecodeReservedExpansion] Http fullyDecodeReservedExpansion
|
|
40620
|
-
*/
|
|
40621
|
-
|
|
40622
|
-
/**
|
|
40623
|
-
* Constructs a new Http.
|
|
40624
|
-
* @memberof google.api
|
|
40625
|
-
* @classdesc Represents a Http.
|
|
40626
|
-
* @implements IHttp
|
|
40627
|
-
* @constructor
|
|
40628
|
-
* @param {google.api.IHttp=} [properties] Properties to set
|
|
40629
|
-
*/
|
|
40630
|
-
function Http(properties) {
|
|
40631
|
-
this.rules = [];
|
|
40632
|
-
if (properties)
|
|
40633
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
40634
|
-
if (properties[keys[i]] != null)
|
|
40635
|
-
this[keys[i]] = properties[keys[i]];
|
|
40636
|
-
}
|
|
40637
|
-
|
|
40638
|
-
/**
|
|
40639
|
-
* Http rules.
|
|
40640
|
-
* @member {Array.<google.api.IHttpRule>} rules
|
|
40641
|
-
* @memberof google.api.Http
|
|
40642
|
-
* @instance
|
|
40643
|
-
*/
|
|
40644
|
-
Http.prototype.rules = $util.emptyArray;
|
|
40645
|
-
|
|
40646
|
-
/**
|
|
40647
|
-
* Http fullyDecodeReservedExpansion.
|
|
40648
|
-
* @member {boolean} fullyDecodeReservedExpansion
|
|
40649
|
-
* @memberof google.api.Http
|
|
40650
|
-
* @instance
|
|
40651
|
-
*/
|
|
40652
|
-
Http.prototype.fullyDecodeReservedExpansion = false;
|
|
40653
|
-
|
|
40654
|
-
/**
|
|
40655
|
-
* Creates a new Http instance using the specified properties.
|
|
40656
|
-
* @function create
|
|
40657
|
-
* @memberof google.api.Http
|
|
40658
|
-
* @static
|
|
40659
|
-
* @param {google.api.IHttp=} [properties] Properties to set
|
|
40660
|
-
* @returns {google.api.Http} Http instance
|
|
40661
|
-
*/
|
|
40662
|
-
Http.create = function create(properties) {
|
|
40663
|
-
return new Http(properties);
|
|
40664
|
-
};
|
|
40665
|
-
|
|
40666
|
-
/**
|
|
40667
|
-
* Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
|
|
40668
|
-
* @function encode
|
|
40669
|
-
* @memberof google.api.Http
|
|
40670
|
-
* @static
|
|
40671
|
-
* @param {google.api.IHttp} message Http message or plain object to encode
|
|
40672
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40673
|
-
* @returns {$protobuf.Writer} Writer
|
|
40674
|
-
*/
|
|
40675
|
-
Http.encode = function encode(message, writer) {
|
|
40676
|
-
if (!writer)
|
|
40677
|
-
writer = $Writer.create();
|
|
40678
|
-
if (message.rules != null && message.rules.length)
|
|
40679
|
-
for (var i = 0; i < message.rules.length; ++i)
|
|
40680
|
-
$root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
40681
|
-
if (message.fullyDecodeReservedExpansion != null && Object.hasOwnProperty.call(message, "fullyDecodeReservedExpansion"))
|
|
40682
|
-
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.fullyDecodeReservedExpansion);
|
|
40683
|
-
return writer;
|
|
40684
|
-
};
|
|
40685
|
-
|
|
40686
|
-
/**
|
|
40687
|
-
* Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
|
|
40688
|
-
* @function encodeDelimited
|
|
40689
|
-
* @memberof google.api.Http
|
|
40690
|
-
* @static
|
|
40691
|
-
* @param {google.api.IHttp} message Http message or plain object to encode
|
|
40692
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40693
|
-
* @returns {$protobuf.Writer} Writer
|
|
40694
|
-
*/
|
|
40695
|
-
Http.encodeDelimited = function encodeDelimited(message, writer) {
|
|
40696
|
-
return this.encode(message, writer).ldelim();
|
|
40697
|
-
};
|
|
40698
|
-
|
|
40699
|
-
/**
|
|
40700
|
-
* Decodes a Http message from the specified reader or buffer.
|
|
40701
|
-
* @function decode
|
|
40702
|
-
* @memberof google.api.Http
|
|
40703
|
-
* @static
|
|
40704
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40705
|
-
* @param {number} [length] Message length if known beforehand
|
|
40706
|
-
* @returns {google.api.Http} Http
|
|
40707
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40708
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40709
|
-
*/
|
|
40710
|
-
Http.decode = function decode(reader, length) {
|
|
40711
|
-
if (!(reader instanceof $Reader))
|
|
40712
|
-
reader = $Reader.create(reader);
|
|
40713
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Http();
|
|
40714
|
-
while (reader.pos < end) {
|
|
40715
|
-
var tag = reader.uint32();
|
|
40716
|
-
switch (tag >>> 3) {
|
|
40717
|
-
case 1:
|
|
40718
|
-
if (!(message.rules && message.rules.length))
|
|
40719
|
-
message.rules = [];
|
|
40720
|
-
message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32()));
|
|
40721
|
-
break;
|
|
40722
|
-
case 2:
|
|
40723
|
-
message.fullyDecodeReservedExpansion = reader.bool();
|
|
40724
|
-
break;
|
|
40725
|
-
default:
|
|
40726
|
-
reader.skipType(tag & 7);
|
|
40727
|
-
break;
|
|
40728
|
-
}
|
|
40729
|
-
}
|
|
40730
|
-
return message;
|
|
40731
|
-
};
|
|
40732
|
-
|
|
40733
|
-
/**
|
|
40734
|
-
* Decodes a Http message from the specified reader or buffer, length delimited.
|
|
40735
|
-
* @function decodeDelimited
|
|
40736
|
-
* @memberof google.api.Http
|
|
40737
|
-
* @static
|
|
40738
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40739
|
-
* @returns {google.api.Http} Http
|
|
40740
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40741
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40742
|
-
*/
|
|
40743
|
-
Http.decodeDelimited = function decodeDelimited(reader) {
|
|
40744
|
-
if (!(reader instanceof $Reader))
|
|
40745
|
-
reader = new $Reader(reader);
|
|
40746
|
-
return this.decode(reader, reader.uint32());
|
|
40747
|
-
};
|
|
40748
|
-
|
|
40749
|
-
/**
|
|
40750
|
-
* Verifies a Http message.
|
|
40751
|
-
* @function verify
|
|
40752
|
-
* @memberof google.api.Http
|
|
40753
|
-
* @static
|
|
40754
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
40755
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
40756
|
-
*/
|
|
40757
|
-
Http.verify = function verify(message) {
|
|
40758
|
-
if (typeof message !== "object" || message === null)
|
|
40759
|
-
return "object expected";
|
|
40760
|
-
if (message.rules != null && message.hasOwnProperty("rules")) {
|
|
40761
|
-
if (!Array.isArray(message.rules))
|
|
40762
|
-
return "rules: array expected";
|
|
40763
|
-
for (var i = 0; i < message.rules.length; ++i) {
|
|
40764
|
-
var error = $root.google.api.HttpRule.verify(message.rules[i]);
|
|
40765
|
-
if (error)
|
|
40766
|
-
return "rules." + error;
|
|
40767
|
-
}
|
|
40768
|
-
}
|
|
40769
|
-
if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion"))
|
|
40770
|
-
if (typeof message.fullyDecodeReservedExpansion !== "boolean")
|
|
40771
|
-
return "fullyDecodeReservedExpansion: boolean expected";
|
|
40772
|
-
return null;
|
|
40773
|
-
};
|
|
40774
|
-
|
|
40775
|
-
/**
|
|
40776
|
-
* Creates a Http message from a plain object. Also converts values to their respective internal types.
|
|
40777
|
-
* @function fromObject
|
|
40778
|
-
* @memberof google.api.Http
|
|
40779
|
-
* @static
|
|
40780
|
-
* @param {Object.<string,*>} object Plain object
|
|
40781
|
-
* @returns {google.api.Http} Http
|
|
40782
|
-
*/
|
|
40783
|
-
Http.fromObject = function fromObject(object) {
|
|
40784
|
-
if (object instanceof $root.google.api.Http)
|
|
40785
|
-
return object;
|
|
40786
|
-
var message = new $root.google.api.Http();
|
|
40787
|
-
if (object.rules) {
|
|
40788
|
-
if (!Array.isArray(object.rules))
|
|
40789
|
-
throw TypeError(".google.api.Http.rules: array expected");
|
|
40790
|
-
message.rules = [];
|
|
40791
|
-
for (var i = 0; i < object.rules.length; ++i) {
|
|
40792
|
-
if (typeof object.rules[i] !== "object")
|
|
40793
|
-
throw TypeError(".google.api.Http.rules: object expected");
|
|
40794
|
-
message.rules[i] = $root.google.api.HttpRule.fromObject(object.rules[i]);
|
|
40795
|
-
}
|
|
40796
|
-
}
|
|
40797
|
-
if (object.fullyDecodeReservedExpansion != null)
|
|
40798
|
-
message.fullyDecodeReservedExpansion = Boolean(object.fullyDecodeReservedExpansion);
|
|
40799
|
-
return message;
|
|
40800
|
-
};
|
|
40801
|
-
|
|
40802
|
-
/**
|
|
40803
|
-
* Creates a plain object from a Http message. Also converts values to other types if specified.
|
|
40804
|
-
* @function toObject
|
|
40805
|
-
* @memberof google.api.Http
|
|
40806
|
-
* @static
|
|
40807
|
-
* @param {google.api.Http} message Http
|
|
40808
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
40809
|
-
* @returns {Object.<string,*>} Plain object
|
|
40810
|
-
*/
|
|
40811
|
-
Http.toObject = function toObject(message, options) {
|
|
40812
|
-
if (!options)
|
|
40813
|
-
options = {};
|
|
40814
|
-
var object = {};
|
|
40815
|
-
if (options.arrays || options.defaults)
|
|
40816
|
-
object.rules = [];
|
|
40817
|
-
if (options.defaults)
|
|
40818
|
-
object.fullyDecodeReservedExpansion = false;
|
|
40819
|
-
if (message.rules && message.rules.length) {
|
|
40820
|
-
object.rules = [];
|
|
40821
|
-
for (var j = 0; j < message.rules.length; ++j)
|
|
40822
|
-
object.rules[j] = $root.google.api.HttpRule.toObject(message.rules[j], options);
|
|
40339
|
+
if (options.arrays || options.defaults)
|
|
40340
|
+
object.rules = [];
|
|
40341
|
+
if (options.defaults)
|
|
40342
|
+
object.fullyDecodeReservedExpansion = false;
|
|
40343
|
+
if (message.rules && message.rules.length) {
|
|
40344
|
+
object.rules = [];
|
|
40345
|
+
for (var j = 0; j < message.rules.length; ++j)
|
|
40346
|
+
object.rules[j] = $root.google.api.HttpRule.toObject(message.rules[j], options);
|
|
40823
40347
|
}
|
|
40824
40348
|
if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion"))
|
|
40825
40349
|
object.fullyDecodeReservedExpansion = message.fullyDecodeReservedExpansion;
|
|
@@ -41513,6 +41037,667 @@
|
|
|
41513
41037
|
return CustomHttpPattern;
|
|
41514
41038
|
})();
|
|
41515
41039
|
|
|
41040
|
+
/**
|
|
41041
|
+
* FieldBehavior enum.
|
|
41042
|
+
* @name google.api.FieldBehavior
|
|
41043
|
+
* @enum {number}
|
|
41044
|
+
* @property {number} FIELD_BEHAVIOR_UNSPECIFIED=0 FIELD_BEHAVIOR_UNSPECIFIED value
|
|
41045
|
+
* @property {number} OPTIONAL=1 OPTIONAL value
|
|
41046
|
+
* @property {number} REQUIRED=2 REQUIRED value
|
|
41047
|
+
* @property {number} OUTPUT_ONLY=3 OUTPUT_ONLY value
|
|
41048
|
+
* @property {number} INPUT_ONLY=4 INPUT_ONLY value
|
|
41049
|
+
* @property {number} IMMUTABLE=5 IMMUTABLE value
|
|
41050
|
+
* @property {number} UNORDERED_LIST=6 UNORDERED_LIST value
|
|
41051
|
+
* @property {number} NON_EMPTY_DEFAULT=7 NON_EMPTY_DEFAULT value
|
|
41052
|
+
*/
|
|
41053
|
+
api.FieldBehavior = (function() {
|
|
41054
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
41055
|
+
values[valuesById[0] = "FIELD_BEHAVIOR_UNSPECIFIED"] = 0;
|
|
41056
|
+
values[valuesById[1] = "OPTIONAL"] = 1;
|
|
41057
|
+
values[valuesById[2] = "REQUIRED"] = 2;
|
|
41058
|
+
values[valuesById[3] = "OUTPUT_ONLY"] = 3;
|
|
41059
|
+
values[valuesById[4] = "INPUT_ONLY"] = 4;
|
|
41060
|
+
values[valuesById[5] = "IMMUTABLE"] = 5;
|
|
41061
|
+
values[valuesById[6] = "UNORDERED_LIST"] = 6;
|
|
41062
|
+
values[valuesById[7] = "NON_EMPTY_DEFAULT"] = 7;
|
|
41063
|
+
return values;
|
|
41064
|
+
})();
|
|
41065
|
+
|
|
41066
|
+
api.ResourceDescriptor = (function() {
|
|
41067
|
+
|
|
41068
|
+
/**
|
|
41069
|
+
* Properties of a ResourceDescriptor.
|
|
41070
|
+
* @memberof google.api
|
|
41071
|
+
* @interface IResourceDescriptor
|
|
41072
|
+
* @property {string|null} [type] ResourceDescriptor type
|
|
41073
|
+
* @property {Array.<string>|null} [pattern] ResourceDescriptor pattern
|
|
41074
|
+
* @property {string|null} [nameField] ResourceDescriptor nameField
|
|
41075
|
+
* @property {google.api.ResourceDescriptor.History|null} [history] ResourceDescriptor history
|
|
41076
|
+
* @property {string|null} [plural] ResourceDescriptor plural
|
|
41077
|
+
* @property {string|null} [singular] ResourceDescriptor singular
|
|
41078
|
+
* @property {Array.<google.api.ResourceDescriptor.Style>|null} [style] ResourceDescriptor style
|
|
41079
|
+
*/
|
|
41080
|
+
|
|
41081
|
+
/**
|
|
41082
|
+
* Constructs a new ResourceDescriptor.
|
|
41083
|
+
* @memberof google.api
|
|
41084
|
+
* @classdesc Represents a ResourceDescriptor.
|
|
41085
|
+
* @implements IResourceDescriptor
|
|
41086
|
+
* @constructor
|
|
41087
|
+
* @param {google.api.IResourceDescriptor=} [properties] Properties to set
|
|
41088
|
+
*/
|
|
41089
|
+
function ResourceDescriptor(properties) {
|
|
41090
|
+
this.pattern = [];
|
|
41091
|
+
this.style = [];
|
|
41092
|
+
if (properties)
|
|
41093
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
41094
|
+
if (properties[keys[i]] != null)
|
|
41095
|
+
this[keys[i]] = properties[keys[i]];
|
|
41096
|
+
}
|
|
41097
|
+
|
|
41098
|
+
/**
|
|
41099
|
+
* ResourceDescriptor type.
|
|
41100
|
+
* @member {string} type
|
|
41101
|
+
* @memberof google.api.ResourceDescriptor
|
|
41102
|
+
* @instance
|
|
41103
|
+
*/
|
|
41104
|
+
ResourceDescriptor.prototype.type = "";
|
|
41105
|
+
|
|
41106
|
+
/**
|
|
41107
|
+
* ResourceDescriptor pattern.
|
|
41108
|
+
* @member {Array.<string>} pattern
|
|
41109
|
+
* @memberof google.api.ResourceDescriptor
|
|
41110
|
+
* @instance
|
|
41111
|
+
*/
|
|
41112
|
+
ResourceDescriptor.prototype.pattern = $util.emptyArray;
|
|
41113
|
+
|
|
41114
|
+
/**
|
|
41115
|
+
* ResourceDescriptor nameField.
|
|
41116
|
+
* @member {string} nameField
|
|
41117
|
+
* @memberof google.api.ResourceDescriptor
|
|
41118
|
+
* @instance
|
|
41119
|
+
*/
|
|
41120
|
+
ResourceDescriptor.prototype.nameField = "";
|
|
41121
|
+
|
|
41122
|
+
/**
|
|
41123
|
+
* ResourceDescriptor history.
|
|
41124
|
+
* @member {google.api.ResourceDescriptor.History} history
|
|
41125
|
+
* @memberof google.api.ResourceDescriptor
|
|
41126
|
+
* @instance
|
|
41127
|
+
*/
|
|
41128
|
+
ResourceDescriptor.prototype.history = 0;
|
|
41129
|
+
|
|
41130
|
+
/**
|
|
41131
|
+
* ResourceDescriptor plural.
|
|
41132
|
+
* @member {string} plural
|
|
41133
|
+
* @memberof google.api.ResourceDescriptor
|
|
41134
|
+
* @instance
|
|
41135
|
+
*/
|
|
41136
|
+
ResourceDescriptor.prototype.plural = "";
|
|
41137
|
+
|
|
41138
|
+
/**
|
|
41139
|
+
* ResourceDescriptor singular.
|
|
41140
|
+
* @member {string} singular
|
|
41141
|
+
* @memberof google.api.ResourceDescriptor
|
|
41142
|
+
* @instance
|
|
41143
|
+
*/
|
|
41144
|
+
ResourceDescriptor.prototype.singular = "";
|
|
41145
|
+
|
|
41146
|
+
/**
|
|
41147
|
+
* ResourceDescriptor style.
|
|
41148
|
+
* @member {Array.<google.api.ResourceDescriptor.Style>} style
|
|
41149
|
+
* @memberof google.api.ResourceDescriptor
|
|
41150
|
+
* @instance
|
|
41151
|
+
*/
|
|
41152
|
+
ResourceDescriptor.prototype.style = $util.emptyArray;
|
|
41153
|
+
|
|
41154
|
+
/**
|
|
41155
|
+
* Creates a new ResourceDescriptor instance using the specified properties.
|
|
41156
|
+
* @function create
|
|
41157
|
+
* @memberof google.api.ResourceDescriptor
|
|
41158
|
+
* @static
|
|
41159
|
+
* @param {google.api.IResourceDescriptor=} [properties] Properties to set
|
|
41160
|
+
* @returns {google.api.ResourceDescriptor} ResourceDescriptor instance
|
|
41161
|
+
*/
|
|
41162
|
+
ResourceDescriptor.create = function create(properties) {
|
|
41163
|
+
return new ResourceDescriptor(properties);
|
|
41164
|
+
};
|
|
41165
|
+
|
|
41166
|
+
/**
|
|
41167
|
+
* Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
|
|
41168
|
+
* @function encode
|
|
41169
|
+
* @memberof google.api.ResourceDescriptor
|
|
41170
|
+
* @static
|
|
41171
|
+
* @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode
|
|
41172
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
41173
|
+
* @returns {$protobuf.Writer} Writer
|
|
41174
|
+
*/
|
|
41175
|
+
ResourceDescriptor.encode = function encode(message, writer) {
|
|
41176
|
+
if (!writer)
|
|
41177
|
+
writer = $Writer.create();
|
|
41178
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
41179
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
|
|
41180
|
+
if (message.pattern != null && message.pattern.length)
|
|
41181
|
+
for (var i = 0; i < message.pattern.length; ++i)
|
|
41182
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.pattern[i]);
|
|
41183
|
+
if (message.nameField != null && Object.hasOwnProperty.call(message, "nameField"))
|
|
41184
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.nameField);
|
|
41185
|
+
if (message.history != null && Object.hasOwnProperty.call(message, "history"))
|
|
41186
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.history);
|
|
41187
|
+
if (message.plural != null && Object.hasOwnProperty.call(message, "plural"))
|
|
41188
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.plural);
|
|
41189
|
+
if (message.singular != null && Object.hasOwnProperty.call(message, "singular"))
|
|
41190
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.singular);
|
|
41191
|
+
if (message.style != null && message.style.length) {
|
|
41192
|
+
writer.uint32(/* id 10, wireType 2 =*/82).fork();
|
|
41193
|
+
for (var i = 0; i < message.style.length; ++i)
|
|
41194
|
+
writer.int32(message.style[i]);
|
|
41195
|
+
writer.ldelim();
|
|
41196
|
+
}
|
|
41197
|
+
return writer;
|
|
41198
|
+
};
|
|
41199
|
+
|
|
41200
|
+
/**
|
|
41201
|
+
* Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
|
|
41202
|
+
* @function encodeDelimited
|
|
41203
|
+
* @memberof google.api.ResourceDescriptor
|
|
41204
|
+
* @static
|
|
41205
|
+
* @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode
|
|
41206
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
41207
|
+
* @returns {$protobuf.Writer} Writer
|
|
41208
|
+
*/
|
|
41209
|
+
ResourceDescriptor.encodeDelimited = function encodeDelimited(message, writer) {
|
|
41210
|
+
return this.encode(message, writer).ldelim();
|
|
41211
|
+
};
|
|
41212
|
+
|
|
41213
|
+
/**
|
|
41214
|
+
* Decodes a ResourceDescriptor message from the specified reader or buffer.
|
|
41215
|
+
* @function decode
|
|
41216
|
+
* @memberof google.api.ResourceDescriptor
|
|
41217
|
+
* @static
|
|
41218
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
41219
|
+
* @param {number} [length] Message length if known beforehand
|
|
41220
|
+
* @returns {google.api.ResourceDescriptor} ResourceDescriptor
|
|
41221
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
41222
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
41223
|
+
*/
|
|
41224
|
+
ResourceDescriptor.decode = function decode(reader, length) {
|
|
41225
|
+
if (!(reader instanceof $Reader))
|
|
41226
|
+
reader = $Reader.create(reader);
|
|
41227
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceDescriptor();
|
|
41228
|
+
while (reader.pos < end) {
|
|
41229
|
+
var tag = reader.uint32();
|
|
41230
|
+
switch (tag >>> 3) {
|
|
41231
|
+
case 1:
|
|
41232
|
+
message.type = reader.string();
|
|
41233
|
+
break;
|
|
41234
|
+
case 2:
|
|
41235
|
+
if (!(message.pattern && message.pattern.length))
|
|
41236
|
+
message.pattern = [];
|
|
41237
|
+
message.pattern.push(reader.string());
|
|
41238
|
+
break;
|
|
41239
|
+
case 3:
|
|
41240
|
+
message.nameField = reader.string();
|
|
41241
|
+
break;
|
|
41242
|
+
case 4:
|
|
41243
|
+
message.history = reader.int32();
|
|
41244
|
+
break;
|
|
41245
|
+
case 5:
|
|
41246
|
+
message.plural = reader.string();
|
|
41247
|
+
break;
|
|
41248
|
+
case 6:
|
|
41249
|
+
message.singular = reader.string();
|
|
41250
|
+
break;
|
|
41251
|
+
case 10:
|
|
41252
|
+
if (!(message.style && message.style.length))
|
|
41253
|
+
message.style = [];
|
|
41254
|
+
if ((tag & 7) === 2) {
|
|
41255
|
+
var end2 = reader.uint32() + reader.pos;
|
|
41256
|
+
while (reader.pos < end2)
|
|
41257
|
+
message.style.push(reader.int32());
|
|
41258
|
+
} else
|
|
41259
|
+
message.style.push(reader.int32());
|
|
41260
|
+
break;
|
|
41261
|
+
default:
|
|
41262
|
+
reader.skipType(tag & 7);
|
|
41263
|
+
break;
|
|
41264
|
+
}
|
|
41265
|
+
}
|
|
41266
|
+
return message;
|
|
41267
|
+
};
|
|
41268
|
+
|
|
41269
|
+
/**
|
|
41270
|
+
* Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
|
|
41271
|
+
* @function decodeDelimited
|
|
41272
|
+
* @memberof google.api.ResourceDescriptor
|
|
41273
|
+
* @static
|
|
41274
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
41275
|
+
* @returns {google.api.ResourceDescriptor} ResourceDescriptor
|
|
41276
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
41277
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
41278
|
+
*/
|
|
41279
|
+
ResourceDescriptor.decodeDelimited = function decodeDelimited(reader) {
|
|
41280
|
+
if (!(reader instanceof $Reader))
|
|
41281
|
+
reader = new $Reader(reader);
|
|
41282
|
+
return this.decode(reader, reader.uint32());
|
|
41283
|
+
};
|
|
41284
|
+
|
|
41285
|
+
/**
|
|
41286
|
+
* Verifies a ResourceDescriptor message.
|
|
41287
|
+
* @function verify
|
|
41288
|
+
* @memberof google.api.ResourceDescriptor
|
|
41289
|
+
* @static
|
|
41290
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
41291
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
41292
|
+
*/
|
|
41293
|
+
ResourceDescriptor.verify = function verify(message) {
|
|
41294
|
+
if (typeof message !== "object" || message === null)
|
|
41295
|
+
return "object expected";
|
|
41296
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
41297
|
+
if (!$util.isString(message.type))
|
|
41298
|
+
return "type: string expected";
|
|
41299
|
+
if (message.pattern != null && message.hasOwnProperty("pattern")) {
|
|
41300
|
+
if (!Array.isArray(message.pattern))
|
|
41301
|
+
return "pattern: array expected";
|
|
41302
|
+
for (var i = 0; i < message.pattern.length; ++i)
|
|
41303
|
+
if (!$util.isString(message.pattern[i]))
|
|
41304
|
+
return "pattern: string[] expected";
|
|
41305
|
+
}
|
|
41306
|
+
if (message.nameField != null && message.hasOwnProperty("nameField"))
|
|
41307
|
+
if (!$util.isString(message.nameField))
|
|
41308
|
+
return "nameField: string expected";
|
|
41309
|
+
if (message.history != null && message.hasOwnProperty("history"))
|
|
41310
|
+
switch (message.history) {
|
|
41311
|
+
default:
|
|
41312
|
+
return "history: enum value expected";
|
|
41313
|
+
case 0:
|
|
41314
|
+
case 1:
|
|
41315
|
+
case 2:
|
|
41316
|
+
break;
|
|
41317
|
+
}
|
|
41318
|
+
if (message.plural != null && message.hasOwnProperty("plural"))
|
|
41319
|
+
if (!$util.isString(message.plural))
|
|
41320
|
+
return "plural: string expected";
|
|
41321
|
+
if (message.singular != null && message.hasOwnProperty("singular"))
|
|
41322
|
+
if (!$util.isString(message.singular))
|
|
41323
|
+
return "singular: string expected";
|
|
41324
|
+
if (message.style != null && message.hasOwnProperty("style")) {
|
|
41325
|
+
if (!Array.isArray(message.style))
|
|
41326
|
+
return "style: array expected";
|
|
41327
|
+
for (var i = 0; i < message.style.length; ++i)
|
|
41328
|
+
switch (message.style[i]) {
|
|
41329
|
+
default:
|
|
41330
|
+
return "style: enum value[] expected";
|
|
41331
|
+
case 0:
|
|
41332
|
+
case 1:
|
|
41333
|
+
break;
|
|
41334
|
+
}
|
|
41335
|
+
}
|
|
41336
|
+
return null;
|
|
41337
|
+
};
|
|
41338
|
+
|
|
41339
|
+
/**
|
|
41340
|
+
* Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
|
|
41341
|
+
* @function fromObject
|
|
41342
|
+
* @memberof google.api.ResourceDescriptor
|
|
41343
|
+
* @static
|
|
41344
|
+
* @param {Object.<string,*>} object Plain object
|
|
41345
|
+
* @returns {google.api.ResourceDescriptor} ResourceDescriptor
|
|
41346
|
+
*/
|
|
41347
|
+
ResourceDescriptor.fromObject = function fromObject(object) {
|
|
41348
|
+
if (object instanceof $root.google.api.ResourceDescriptor)
|
|
41349
|
+
return object;
|
|
41350
|
+
var message = new $root.google.api.ResourceDescriptor();
|
|
41351
|
+
if (object.type != null)
|
|
41352
|
+
message.type = String(object.type);
|
|
41353
|
+
if (object.pattern) {
|
|
41354
|
+
if (!Array.isArray(object.pattern))
|
|
41355
|
+
throw TypeError(".google.api.ResourceDescriptor.pattern: array expected");
|
|
41356
|
+
message.pattern = [];
|
|
41357
|
+
for (var i = 0; i < object.pattern.length; ++i)
|
|
41358
|
+
message.pattern[i] = String(object.pattern[i]);
|
|
41359
|
+
}
|
|
41360
|
+
if (object.nameField != null)
|
|
41361
|
+
message.nameField = String(object.nameField);
|
|
41362
|
+
switch (object.history) {
|
|
41363
|
+
case "HISTORY_UNSPECIFIED":
|
|
41364
|
+
case 0:
|
|
41365
|
+
message.history = 0;
|
|
41366
|
+
break;
|
|
41367
|
+
case "ORIGINALLY_SINGLE_PATTERN":
|
|
41368
|
+
case 1:
|
|
41369
|
+
message.history = 1;
|
|
41370
|
+
break;
|
|
41371
|
+
case "FUTURE_MULTI_PATTERN":
|
|
41372
|
+
case 2:
|
|
41373
|
+
message.history = 2;
|
|
41374
|
+
break;
|
|
41375
|
+
}
|
|
41376
|
+
if (object.plural != null)
|
|
41377
|
+
message.plural = String(object.plural);
|
|
41378
|
+
if (object.singular != null)
|
|
41379
|
+
message.singular = String(object.singular);
|
|
41380
|
+
if (object.style) {
|
|
41381
|
+
if (!Array.isArray(object.style))
|
|
41382
|
+
throw TypeError(".google.api.ResourceDescriptor.style: array expected");
|
|
41383
|
+
message.style = [];
|
|
41384
|
+
for (var i = 0; i < object.style.length; ++i)
|
|
41385
|
+
switch (object.style[i]) {
|
|
41386
|
+
default:
|
|
41387
|
+
case "STYLE_UNSPECIFIED":
|
|
41388
|
+
case 0:
|
|
41389
|
+
message.style[i] = 0;
|
|
41390
|
+
break;
|
|
41391
|
+
case "DECLARATIVE_FRIENDLY":
|
|
41392
|
+
case 1:
|
|
41393
|
+
message.style[i] = 1;
|
|
41394
|
+
break;
|
|
41395
|
+
}
|
|
41396
|
+
}
|
|
41397
|
+
return message;
|
|
41398
|
+
};
|
|
41399
|
+
|
|
41400
|
+
/**
|
|
41401
|
+
* Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
|
|
41402
|
+
* @function toObject
|
|
41403
|
+
* @memberof google.api.ResourceDescriptor
|
|
41404
|
+
* @static
|
|
41405
|
+
* @param {google.api.ResourceDescriptor} message ResourceDescriptor
|
|
41406
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
41407
|
+
* @returns {Object.<string,*>} Plain object
|
|
41408
|
+
*/
|
|
41409
|
+
ResourceDescriptor.toObject = function toObject(message, options) {
|
|
41410
|
+
if (!options)
|
|
41411
|
+
options = {};
|
|
41412
|
+
var object = {};
|
|
41413
|
+
if (options.arrays || options.defaults) {
|
|
41414
|
+
object.pattern = [];
|
|
41415
|
+
object.style = [];
|
|
41416
|
+
}
|
|
41417
|
+
if (options.defaults) {
|
|
41418
|
+
object.type = "";
|
|
41419
|
+
object.nameField = "";
|
|
41420
|
+
object.history = options.enums === String ? "HISTORY_UNSPECIFIED" : 0;
|
|
41421
|
+
object.plural = "";
|
|
41422
|
+
object.singular = "";
|
|
41423
|
+
}
|
|
41424
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
41425
|
+
object.type = message.type;
|
|
41426
|
+
if (message.pattern && message.pattern.length) {
|
|
41427
|
+
object.pattern = [];
|
|
41428
|
+
for (var j = 0; j < message.pattern.length; ++j)
|
|
41429
|
+
object.pattern[j] = message.pattern[j];
|
|
41430
|
+
}
|
|
41431
|
+
if (message.nameField != null && message.hasOwnProperty("nameField"))
|
|
41432
|
+
object.nameField = message.nameField;
|
|
41433
|
+
if (message.history != null && message.hasOwnProperty("history"))
|
|
41434
|
+
object.history = options.enums === String ? $root.google.api.ResourceDescriptor.History[message.history] : message.history;
|
|
41435
|
+
if (message.plural != null && message.hasOwnProperty("plural"))
|
|
41436
|
+
object.plural = message.plural;
|
|
41437
|
+
if (message.singular != null && message.hasOwnProperty("singular"))
|
|
41438
|
+
object.singular = message.singular;
|
|
41439
|
+
if (message.style && message.style.length) {
|
|
41440
|
+
object.style = [];
|
|
41441
|
+
for (var j = 0; j < message.style.length; ++j)
|
|
41442
|
+
object.style[j] = options.enums === String ? $root.google.api.ResourceDescriptor.Style[message.style[j]] : message.style[j];
|
|
41443
|
+
}
|
|
41444
|
+
return object;
|
|
41445
|
+
};
|
|
41446
|
+
|
|
41447
|
+
/**
|
|
41448
|
+
* Converts this ResourceDescriptor to JSON.
|
|
41449
|
+
* @function toJSON
|
|
41450
|
+
* @memberof google.api.ResourceDescriptor
|
|
41451
|
+
* @instance
|
|
41452
|
+
* @returns {Object.<string,*>} JSON object
|
|
41453
|
+
*/
|
|
41454
|
+
ResourceDescriptor.prototype.toJSON = function toJSON() {
|
|
41455
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
41456
|
+
};
|
|
41457
|
+
|
|
41458
|
+
/**
|
|
41459
|
+
* History enum.
|
|
41460
|
+
* @name google.api.ResourceDescriptor.History
|
|
41461
|
+
* @enum {number}
|
|
41462
|
+
* @property {number} HISTORY_UNSPECIFIED=0 HISTORY_UNSPECIFIED value
|
|
41463
|
+
* @property {number} ORIGINALLY_SINGLE_PATTERN=1 ORIGINALLY_SINGLE_PATTERN value
|
|
41464
|
+
* @property {number} FUTURE_MULTI_PATTERN=2 FUTURE_MULTI_PATTERN value
|
|
41465
|
+
*/
|
|
41466
|
+
ResourceDescriptor.History = (function() {
|
|
41467
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
41468
|
+
values[valuesById[0] = "HISTORY_UNSPECIFIED"] = 0;
|
|
41469
|
+
values[valuesById[1] = "ORIGINALLY_SINGLE_PATTERN"] = 1;
|
|
41470
|
+
values[valuesById[2] = "FUTURE_MULTI_PATTERN"] = 2;
|
|
41471
|
+
return values;
|
|
41472
|
+
})();
|
|
41473
|
+
|
|
41474
|
+
/**
|
|
41475
|
+
* Style enum.
|
|
41476
|
+
* @name google.api.ResourceDescriptor.Style
|
|
41477
|
+
* @enum {number}
|
|
41478
|
+
* @property {number} STYLE_UNSPECIFIED=0 STYLE_UNSPECIFIED value
|
|
41479
|
+
* @property {number} DECLARATIVE_FRIENDLY=1 DECLARATIVE_FRIENDLY value
|
|
41480
|
+
*/
|
|
41481
|
+
ResourceDescriptor.Style = (function() {
|
|
41482
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
41483
|
+
values[valuesById[0] = "STYLE_UNSPECIFIED"] = 0;
|
|
41484
|
+
values[valuesById[1] = "DECLARATIVE_FRIENDLY"] = 1;
|
|
41485
|
+
return values;
|
|
41486
|
+
})();
|
|
41487
|
+
|
|
41488
|
+
return ResourceDescriptor;
|
|
41489
|
+
})();
|
|
41490
|
+
|
|
41491
|
+
api.ResourceReference = (function() {
|
|
41492
|
+
|
|
41493
|
+
/**
|
|
41494
|
+
* Properties of a ResourceReference.
|
|
41495
|
+
* @memberof google.api
|
|
41496
|
+
* @interface IResourceReference
|
|
41497
|
+
* @property {string|null} [type] ResourceReference type
|
|
41498
|
+
* @property {string|null} [childType] ResourceReference childType
|
|
41499
|
+
*/
|
|
41500
|
+
|
|
41501
|
+
/**
|
|
41502
|
+
* Constructs a new ResourceReference.
|
|
41503
|
+
* @memberof google.api
|
|
41504
|
+
* @classdesc Represents a ResourceReference.
|
|
41505
|
+
* @implements IResourceReference
|
|
41506
|
+
* @constructor
|
|
41507
|
+
* @param {google.api.IResourceReference=} [properties] Properties to set
|
|
41508
|
+
*/
|
|
41509
|
+
function ResourceReference(properties) {
|
|
41510
|
+
if (properties)
|
|
41511
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
41512
|
+
if (properties[keys[i]] != null)
|
|
41513
|
+
this[keys[i]] = properties[keys[i]];
|
|
41514
|
+
}
|
|
41515
|
+
|
|
41516
|
+
/**
|
|
41517
|
+
* ResourceReference type.
|
|
41518
|
+
* @member {string} type
|
|
41519
|
+
* @memberof google.api.ResourceReference
|
|
41520
|
+
* @instance
|
|
41521
|
+
*/
|
|
41522
|
+
ResourceReference.prototype.type = "";
|
|
41523
|
+
|
|
41524
|
+
/**
|
|
41525
|
+
* ResourceReference childType.
|
|
41526
|
+
* @member {string} childType
|
|
41527
|
+
* @memberof google.api.ResourceReference
|
|
41528
|
+
* @instance
|
|
41529
|
+
*/
|
|
41530
|
+
ResourceReference.prototype.childType = "";
|
|
41531
|
+
|
|
41532
|
+
/**
|
|
41533
|
+
* Creates a new ResourceReference instance using the specified properties.
|
|
41534
|
+
* @function create
|
|
41535
|
+
* @memberof google.api.ResourceReference
|
|
41536
|
+
* @static
|
|
41537
|
+
* @param {google.api.IResourceReference=} [properties] Properties to set
|
|
41538
|
+
* @returns {google.api.ResourceReference} ResourceReference instance
|
|
41539
|
+
*/
|
|
41540
|
+
ResourceReference.create = function create(properties) {
|
|
41541
|
+
return new ResourceReference(properties);
|
|
41542
|
+
};
|
|
41543
|
+
|
|
41544
|
+
/**
|
|
41545
|
+
* Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
|
|
41546
|
+
* @function encode
|
|
41547
|
+
* @memberof google.api.ResourceReference
|
|
41548
|
+
* @static
|
|
41549
|
+
* @param {google.api.IResourceReference} message ResourceReference message or plain object to encode
|
|
41550
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
41551
|
+
* @returns {$protobuf.Writer} Writer
|
|
41552
|
+
*/
|
|
41553
|
+
ResourceReference.encode = function encode(message, writer) {
|
|
41554
|
+
if (!writer)
|
|
41555
|
+
writer = $Writer.create();
|
|
41556
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
41557
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
|
|
41558
|
+
if (message.childType != null && Object.hasOwnProperty.call(message, "childType"))
|
|
41559
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.childType);
|
|
41560
|
+
return writer;
|
|
41561
|
+
};
|
|
41562
|
+
|
|
41563
|
+
/**
|
|
41564
|
+
* Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
|
|
41565
|
+
* @function encodeDelimited
|
|
41566
|
+
* @memberof google.api.ResourceReference
|
|
41567
|
+
* @static
|
|
41568
|
+
* @param {google.api.IResourceReference} message ResourceReference message or plain object to encode
|
|
41569
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
41570
|
+
* @returns {$protobuf.Writer} Writer
|
|
41571
|
+
*/
|
|
41572
|
+
ResourceReference.encodeDelimited = function encodeDelimited(message, writer) {
|
|
41573
|
+
return this.encode(message, writer).ldelim();
|
|
41574
|
+
};
|
|
41575
|
+
|
|
41576
|
+
/**
|
|
41577
|
+
* Decodes a ResourceReference message from the specified reader or buffer.
|
|
41578
|
+
* @function decode
|
|
41579
|
+
* @memberof google.api.ResourceReference
|
|
41580
|
+
* @static
|
|
41581
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
41582
|
+
* @param {number} [length] Message length if known beforehand
|
|
41583
|
+
* @returns {google.api.ResourceReference} ResourceReference
|
|
41584
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
41585
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
41586
|
+
*/
|
|
41587
|
+
ResourceReference.decode = function decode(reader, length) {
|
|
41588
|
+
if (!(reader instanceof $Reader))
|
|
41589
|
+
reader = $Reader.create(reader);
|
|
41590
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceReference();
|
|
41591
|
+
while (reader.pos < end) {
|
|
41592
|
+
var tag = reader.uint32();
|
|
41593
|
+
switch (tag >>> 3) {
|
|
41594
|
+
case 1:
|
|
41595
|
+
message.type = reader.string();
|
|
41596
|
+
break;
|
|
41597
|
+
case 2:
|
|
41598
|
+
message.childType = reader.string();
|
|
41599
|
+
break;
|
|
41600
|
+
default:
|
|
41601
|
+
reader.skipType(tag & 7);
|
|
41602
|
+
break;
|
|
41603
|
+
}
|
|
41604
|
+
}
|
|
41605
|
+
return message;
|
|
41606
|
+
};
|
|
41607
|
+
|
|
41608
|
+
/**
|
|
41609
|
+
* Decodes a ResourceReference message from the specified reader or buffer, length delimited.
|
|
41610
|
+
* @function decodeDelimited
|
|
41611
|
+
* @memberof google.api.ResourceReference
|
|
41612
|
+
* @static
|
|
41613
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
41614
|
+
* @returns {google.api.ResourceReference} ResourceReference
|
|
41615
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
41616
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
41617
|
+
*/
|
|
41618
|
+
ResourceReference.decodeDelimited = function decodeDelimited(reader) {
|
|
41619
|
+
if (!(reader instanceof $Reader))
|
|
41620
|
+
reader = new $Reader(reader);
|
|
41621
|
+
return this.decode(reader, reader.uint32());
|
|
41622
|
+
};
|
|
41623
|
+
|
|
41624
|
+
/**
|
|
41625
|
+
* Verifies a ResourceReference message.
|
|
41626
|
+
* @function verify
|
|
41627
|
+
* @memberof google.api.ResourceReference
|
|
41628
|
+
* @static
|
|
41629
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
41630
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
41631
|
+
*/
|
|
41632
|
+
ResourceReference.verify = function verify(message) {
|
|
41633
|
+
if (typeof message !== "object" || message === null)
|
|
41634
|
+
return "object expected";
|
|
41635
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
41636
|
+
if (!$util.isString(message.type))
|
|
41637
|
+
return "type: string expected";
|
|
41638
|
+
if (message.childType != null && message.hasOwnProperty("childType"))
|
|
41639
|
+
if (!$util.isString(message.childType))
|
|
41640
|
+
return "childType: string expected";
|
|
41641
|
+
return null;
|
|
41642
|
+
};
|
|
41643
|
+
|
|
41644
|
+
/**
|
|
41645
|
+
* Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.
|
|
41646
|
+
* @function fromObject
|
|
41647
|
+
* @memberof google.api.ResourceReference
|
|
41648
|
+
* @static
|
|
41649
|
+
* @param {Object.<string,*>} object Plain object
|
|
41650
|
+
* @returns {google.api.ResourceReference} ResourceReference
|
|
41651
|
+
*/
|
|
41652
|
+
ResourceReference.fromObject = function fromObject(object) {
|
|
41653
|
+
if (object instanceof $root.google.api.ResourceReference)
|
|
41654
|
+
return object;
|
|
41655
|
+
var message = new $root.google.api.ResourceReference();
|
|
41656
|
+
if (object.type != null)
|
|
41657
|
+
message.type = String(object.type);
|
|
41658
|
+
if (object.childType != null)
|
|
41659
|
+
message.childType = String(object.childType);
|
|
41660
|
+
return message;
|
|
41661
|
+
};
|
|
41662
|
+
|
|
41663
|
+
/**
|
|
41664
|
+
* Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
|
|
41665
|
+
* @function toObject
|
|
41666
|
+
* @memberof google.api.ResourceReference
|
|
41667
|
+
* @static
|
|
41668
|
+
* @param {google.api.ResourceReference} message ResourceReference
|
|
41669
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
41670
|
+
* @returns {Object.<string,*>} Plain object
|
|
41671
|
+
*/
|
|
41672
|
+
ResourceReference.toObject = function toObject(message, options) {
|
|
41673
|
+
if (!options)
|
|
41674
|
+
options = {};
|
|
41675
|
+
var object = {};
|
|
41676
|
+
if (options.defaults) {
|
|
41677
|
+
object.type = "";
|
|
41678
|
+
object.childType = "";
|
|
41679
|
+
}
|
|
41680
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
41681
|
+
object.type = message.type;
|
|
41682
|
+
if (message.childType != null && message.hasOwnProperty("childType"))
|
|
41683
|
+
object.childType = message.childType;
|
|
41684
|
+
return object;
|
|
41685
|
+
};
|
|
41686
|
+
|
|
41687
|
+
/**
|
|
41688
|
+
* Converts this ResourceReference to JSON.
|
|
41689
|
+
* @function toJSON
|
|
41690
|
+
* @memberof google.api.ResourceReference
|
|
41691
|
+
* @instance
|
|
41692
|
+
* @returns {Object.<string,*>} JSON object
|
|
41693
|
+
*/
|
|
41694
|
+
ResourceReference.prototype.toJSON = function toJSON() {
|
|
41695
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
41696
|
+
};
|
|
41697
|
+
|
|
41698
|
+
return ResourceReference;
|
|
41699
|
+
})();
|
|
41700
|
+
|
|
41516
41701
|
return api;
|
|
41517
41702
|
})();
|
|
41518
41703
|
|
|
@@ -41558,7 +41743,7 @@
|
|
|
41558
41743
|
};
|
|
41559
41744
|
|
|
41560
41745
|
/**
|
|
41561
|
-
* Callback as used by {@link google.longrunning.Operations
|
|
41746
|
+
* Callback as used by {@link google.longrunning.Operations|listOperations}.
|
|
41562
41747
|
* @memberof google.longrunning.Operations
|
|
41563
41748
|
* @typedef ListOperationsCallback
|
|
41564
41749
|
* @type {function}
|
|
@@ -41591,7 +41776,7 @@
|
|
|
41591
41776
|
*/
|
|
41592
41777
|
|
|
41593
41778
|
/**
|
|
41594
|
-
* Callback as used by {@link google.longrunning.Operations
|
|
41779
|
+
* Callback as used by {@link google.longrunning.Operations|getOperation}.
|
|
41595
41780
|
* @memberof google.longrunning.Operations
|
|
41596
41781
|
* @typedef GetOperationCallback
|
|
41597
41782
|
* @type {function}
|
|
@@ -41624,7 +41809,7 @@
|
|
|
41624
41809
|
*/
|
|
41625
41810
|
|
|
41626
41811
|
/**
|
|
41627
|
-
* Callback as used by {@link google.longrunning.Operations
|
|
41812
|
+
* Callback as used by {@link google.longrunning.Operations|deleteOperation}.
|
|
41628
41813
|
* @memberof google.longrunning.Operations
|
|
41629
41814
|
* @typedef DeleteOperationCallback
|
|
41630
41815
|
* @type {function}
|
|
@@ -41657,7 +41842,7 @@
|
|
|
41657
41842
|
*/
|
|
41658
41843
|
|
|
41659
41844
|
/**
|
|
41660
|
-
* Callback as used by {@link google.longrunning.Operations
|
|
41845
|
+
* Callback as used by {@link google.longrunning.Operations|cancelOperation}.
|
|
41661
41846
|
* @memberof google.longrunning.Operations
|
|
41662
41847
|
* @typedef CancelOperationCallback
|
|
41663
41848
|
* @type {function}
|
|
@@ -41690,7 +41875,7 @@
|
|
|
41690
41875
|
*/
|
|
41691
41876
|
|
|
41692
41877
|
/**
|
|
41693
|
-
* Callback as used by {@link google.longrunning.Operations
|
|
41878
|
+
* Callback as used by {@link google.longrunning.Operations|waitOperation}.
|
|
41694
41879
|
* @memberof google.longrunning.Operations
|
|
41695
41880
|
* @typedef WaitOperationCallback
|
|
41696
41881
|
* @type {function}
|
|
@@ -43568,7 +43753,7 @@
|
|
|
43568
43753
|
};
|
|
43569
43754
|
|
|
43570
43755
|
/**
|
|
43571
|
-
* Callback as used by {@link google.iam.v1.IAMPolicy
|
|
43756
|
+
* Callback as used by {@link google.iam.v1.IAMPolicy|setIamPolicy}.
|
|
43572
43757
|
* @memberof google.iam.v1.IAMPolicy
|
|
43573
43758
|
* @typedef SetIamPolicyCallback
|
|
43574
43759
|
* @type {function}
|
|
@@ -43601,7 +43786,7 @@
|
|
|
43601
43786
|
*/
|
|
43602
43787
|
|
|
43603
43788
|
/**
|
|
43604
|
-
* Callback as used by {@link google.iam.v1.IAMPolicy
|
|
43789
|
+
* Callback as used by {@link google.iam.v1.IAMPolicy|getIamPolicy}.
|
|
43605
43790
|
* @memberof google.iam.v1.IAMPolicy
|
|
43606
43791
|
* @typedef GetIamPolicyCallback
|
|
43607
43792
|
* @type {function}
|
|
@@ -43634,7 +43819,7 @@
|
|
|
43634
43819
|
*/
|
|
43635
43820
|
|
|
43636
43821
|
/**
|
|
43637
|
-
* Callback as used by {@link google.iam.v1.IAMPolicy
|
|
43822
|
+
* Callback as used by {@link google.iam.v1.IAMPolicy|testIamPermissions}.
|
|
43638
43823
|
* @memberof google.iam.v1.IAMPolicy
|
|
43639
43824
|
* @typedef TestIamPermissionsCallback
|
|
43640
43825
|
* @type {function}
|