@google-cloud/spanner 5.16.3 → 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 +14 -0
- package/README.md +12 -12
- 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 +381 -344
- package/build/protos/protos.js +1165 -980
- package/build/protos/protos.json +168 -108
- package/build/src/instance.d.ts +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 +3 -3
package/build/protos/protos.js
CHANGED
|
@@ -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
|
|
40163
|
+
* Http rules.
|
|
40164
|
+
* @member {Array.<google.api.IHttpRule>} rules
|
|
40165
|
+
* @memberof google.api.Http
|
|
40021
40166
|
* @instance
|
|
40022
40167
|
*/
|
|
40023
|
-
|
|
40168
|
+
Http.prototype.rules = $util.emptyArray;
|
|
40024
40169
|
|
|
40025
40170
|
/**
|
|
40026
|
-
*
|
|
40027
|
-
* @member {
|
|
40028
|
-
* @memberof google.api.
|
|
40171
|
+
* Http fullyDecodeReservedExpansion.
|
|
40172
|
+
* @member {boolean} fullyDecodeReservedExpansion
|
|
40173
|
+
* @memberof google.api.Http
|
|
40029
40174
|
* @instance
|
|
40030
40175
|
*/
|
|
40031
|
-
|
|
40176
|
+
Http.prototype.fullyDecodeReservedExpansion = false;
|
|
40032
40177
|
|
|
40033
40178
|
/**
|
|
40034
|
-
*
|
|
40035
|
-
* @
|
|
40036
|
-
* @memberof google.api.
|
|
40037
|
-
* @
|
|
40179
|
+
* Creates a new Http instance using the specified properties.
|
|
40180
|
+
* @function create
|
|
40181
|
+
* @memberof google.api.Http
|
|
40182
|
+
* @static
|
|
40183
|
+
* @param {google.api.IHttp=} [properties] Properties to set
|
|
40184
|
+
* @returns {google.api.Http} Http instance
|
|
40038
40185
|
*/
|
|
40039
|
-
|
|
40186
|
+
Http.create = function create(properties) {
|
|
40187
|
+
return new Http(properties);
|
|
40188
|
+
};
|
|
40040
40189
|
|
|
40041
40190
|
/**
|
|
40042
|
-
*
|
|
40043
|
-
* @
|
|
40044
|
-
* @memberof google.api.
|
|
40045
|
-
* @
|
|
40191
|
+
* Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
|
|
40192
|
+
* @function encode
|
|
40193
|
+
* @memberof google.api.Http
|
|
40194
|
+
* @static
|
|
40195
|
+
* @param {google.api.IHttp} message Http message or plain object to encode
|
|
40196
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40197
|
+
* @returns {$protobuf.Writer} Writer
|
|
40046
40198
|
*/
|
|
40047
|
-
|
|
40048
|
-
|
|
40049
|
-
/**
|
|
40050
|
-
* ResourceDescriptor singular.
|
|
40051
|
-
* @member {string} singular
|
|
40052
|
-
* @memberof google.api.ResourceDescriptor
|
|
40053
|
-
* @instance
|
|
40054
|
-
*/
|
|
40055
|
-
ResourceDescriptor.prototype.singular = "";
|
|
40056
|
-
|
|
40057
|
-
/**
|
|
40058
|
-
* ResourceDescriptor style.
|
|
40059
|
-
* @member {Array.<google.api.ResourceDescriptor.Style>} style
|
|
40060
|
-
* @memberof google.api.ResourceDescriptor
|
|
40061
|
-
* @instance
|
|
40062
|
-
*/
|
|
40063
|
-
ResourceDescriptor.prototype.style = $util.emptyArray;
|
|
40064
|
-
|
|
40065
|
-
/**
|
|
40066
|
-
* Creates a new ResourceDescriptor instance using the specified properties.
|
|
40067
|
-
* @function create
|
|
40068
|
-
* @memberof google.api.ResourceDescriptor
|
|
40069
|
-
* @static
|
|
40070
|
-
* @param {google.api.IResourceDescriptor=} [properties] Properties to set
|
|
40071
|
-
* @returns {google.api.ResourceDescriptor} ResourceDescriptor instance
|
|
40072
|
-
*/
|
|
40073
|
-
ResourceDescriptor.create = function create(properties) {
|
|
40074
|
-
return new ResourceDescriptor(properties);
|
|
40075
|
-
};
|
|
40076
|
-
|
|
40077
|
-
/**
|
|
40078
|
-
* Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
|
|
40079
|
-
* @function encode
|
|
40080
|
-
* @memberof google.api.ResourceDescriptor
|
|
40081
|
-
* @static
|
|
40082
|
-
* @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode
|
|
40083
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40084
|
-
* @returns {$protobuf.Writer} Writer
|
|
40085
|
-
*/
|
|
40086
|
-
ResourceDescriptor.encode = function encode(message, writer) {
|
|
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,246 +40255,143 @@
|
|
|
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];
|
|
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);
|
|
40354
40347
|
}
|
|
40348
|
+
if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion"))
|
|
40349
|
+
object.fullyDecodeReservedExpansion = message.fullyDecodeReservedExpansion;
|
|
40355
40350
|
return object;
|
|
40356
40351
|
};
|
|
40357
40352
|
|
|
40358
40353
|
/**
|
|
40359
|
-
* Converts this
|
|
40354
|
+
* Converts this Http to JSON.
|
|
40360
40355
|
* @function toJSON
|
|
40361
|
-
* @memberof google.api.
|
|
40356
|
+
* @memberof google.api.Http
|
|
40362
40357
|
* @instance
|
|
40363
40358
|
* @returns {Object.<string,*>} JSON object
|
|
40364
40359
|
*/
|
|
40365
|
-
|
|
40360
|
+
Http.prototype.toJSON = function toJSON() {
|
|
40366
40361
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
40367
40362
|
};
|
|
40368
40363
|
|
|
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;
|
|
40364
|
+
return Http;
|
|
40400
40365
|
})();
|
|
40401
40366
|
|
|
40402
|
-
api.
|
|
40367
|
+
api.HttpRule = (function() {
|
|
40403
40368
|
|
|
40404
40369
|
/**
|
|
40405
|
-
* Properties of a
|
|
40370
|
+
* Properties of a HttpRule.
|
|
40406
40371
|
* @memberof google.api
|
|
40407
|
-
* @interface
|
|
40408
|
-
* @property {string|null} [
|
|
40409
|
-
* @property {string|null} [
|
|
40372
|
+
* @interface IHttpRule
|
|
40373
|
+
* @property {string|null} [selector] HttpRule selector
|
|
40374
|
+
* @property {string|null} [get] HttpRule get
|
|
40375
|
+
* @property {string|null} [put] HttpRule put
|
|
40376
|
+
* @property {string|null} [post] HttpRule post
|
|
40377
|
+
* @property {string|null} ["delete"] HttpRule delete
|
|
40378
|
+
* @property {string|null} [patch] HttpRule patch
|
|
40379
|
+
* @property {google.api.ICustomHttpPattern|null} [custom] HttpRule custom
|
|
40380
|
+
* @property {string|null} [body] HttpRule body
|
|
40381
|
+
* @property {string|null} [responseBody] HttpRule responseBody
|
|
40382
|
+
* @property {Array.<google.api.IHttpRule>|null} [additionalBindings] HttpRule additionalBindings
|
|
40410
40383
|
*/
|
|
40411
40384
|
|
|
40412
40385
|
/**
|
|
40413
|
-
* Constructs a new
|
|
40386
|
+
* Constructs a new HttpRule.
|
|
40414
40387
|
* @memberof google.api
|
|
40415
|
-
* @classdesc Represents a
|
|
40416
|
-
* @implements
|
|
40388
|
+
* @classdesc Represents a HttpRule.
|
|
40389
|
+
* @implements IHttpRule
|
|
40417
40390
|
* @constructor
|
|
40418
|
-
* @param {google.api.
|
|
40391
|
+
* @param {google.api.IHttpRule=} [properties] Properties to set
|
|
40419
40392
|
*/
|
|
40420
|
-
function
|
|
40393
|
+
function HttpRule(properties) {
|
|
40394
|
+
this.additionalBindings = [];
|
|
40421
40395
|
if (properties)
|
|
40422
40396
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
40423
40397
|
if (properties[keys[i]] != null)
|
|
@@ -40425,88 +40399,209 @@
|
|
|
40425
40399
|
}
|
|
40426
40400
|
|
|
40427
40401
|
/**
|
|
40428
|
-
*
|
|
40429
|
-
* @member {string}
|
|
40430
|
-
* @memberof google.api.
|
|
40402
|
+
* HttpRule selector.
|
|
40403
|
+
* @member {string} selector
|
|
40404
|
+
* @memberof google.api.HttpRule
|
|
40431
40405
|
* @instance
|
|
40432
40406
|
*/
|
|
40433
|
-
|
|
40407
|
+
HttpRule.prototype.selector = "";
|
|
40434
40408
|
|
|
40435
40409
|
/**
|
|
40436
|
-
*
|
|
40437
|
-
* @member {string}
|
|
40438
|
-
* @memberof google.api.
|
|
40410
|
+
* HttpRule get.
|
|
40411
|
+
* @member {string|null|undefined} get
|
|
40412
|
+
* @memberof google.api.HttpRule
|
|
40439
40413
|
* @instance
|
|
40440
40414
|
*/
|
|
40441
|
-
|
|
40415
|
+
HttpRule.prototype.get = null;
|
|
40442
40416
|
|
|
40443
40417
|
/**
|
|
40444
|
-
*
|
|
40418
|
+
* HttpRule put.
|
|
40419
|
+
* @member {string|null|undefined} put
|
|
40420
|
+
* @memberof google.api.HttpRule
|
|
40421
|
+
* @instance
|
|
40422
|
+
*/
|
|
40423
|
+
HttpRule.prototype.put = null;
|
|
40424
|
+
|
|
40425
|
+
/**
|
|
40426
|
+
* HttpRule post.
|
|
40427
|
+
* @member {string|null|undefined} post
|
|
40428
|
+
* @memberof google.api.HttpRule
|
|
40429
|
+
* @instance
|
|
40430
|
+
*/
|
|
40431
|
+
HttpRule.prototype.post = null;
|
|
40432
|
+
|
|
40433
|
+
/**
|
|
40434
|
+
* HttpRule delete.
|
|
40435
|
+
* @member {string|null|undefined} delete
|
|
40436
|
+
* @memberof google.api.HttpRule
|
|
40437
|
+
* @instance
|
|
40438
|
+
*/
|
|
40439
|
+
HttpRule.prototype["delete"] = null;
|
|
40440
|
+
|
|
40441
|
+
/**
|
|
40442
|
+
* HttpRule patch.
|
|
40443
|
+
* @member {string|null|undefined} patch
|
|
40444
|
+
* @memberof google.api.HttpRule
|
|
40445
|
+
* @instance
|
|
40446
|
+
*/
|
|
40447
|
+
HttpRule.prototype.patch = null;
|
|
40448
|
+
|
|
40449
|
+
/**
|
|
40450
|
+
* HttpRule custom.
|
|
40451
|
+
* @member {google.api.ICustomHttpPattern|null|undefined} custom
|
|
40452
|
+
* @memberof google.api.HttpRule
|
|
40453
|
+
* @instance
|
|
40454
|
+
*/
|
|
40455
|
+
HttpRule.prototype.custom = null;
|
|
40456
|
+
|
|
40457
|
+
/**
|
|
40458
|
+
* HttpRule body.
|
|
40459
|
+
* @member {string} body
|
|
40460
|
+
* @memberof google.api.HttpRule
|
|
40461
|
+
* @instance
|
|
40462
|
+
*/
|
|
40463
|
+
HttpRule.prototype.body = "";
|
|
40464
|
+
|
|
40465
|
+
/**
|
|
40466
|
+
* HttpRule responseBody.
|
|
40467
|
+
* @member {string} responseBody
|
|
40468
|
+
* @memberof google.api.HttpRule
|
|
40469
|
+
* @instance
|
|
40470
|
+
*/
|
|
40471
|
+
HttpRule.prototype.responseBody = "";
|
|
40472
|
+
|
|
40473
|
+
/**
|
|
40474
|
+
* HttpRule additionalBindings.
|
|
40475
|
+
* @member {Array.<google.api.IHttpRule>} additionalBindings
|
|
40476
|
+
* @memberof google.api.HttpRule
|
|
40477
|
+
* @instance
|
|
40478
|
+
*/
|
|
40479
|
+
HttpRule.prototype.additionalBindings = $util.emptyArray;
|
|
40480
|
+
|
|
40481
|
+
// OneOf field names bound to virtual getters and setters
|
|
40482
|
+
var $oneOfFields;
|
|
40483
|
+
|
|
40484
|
+
/**
|
|
40485
|
+
* HttpRule pattern.
|
|
40486
|
+
* @member {"get"|"put"|"post"|"delete"|"patch"|"custom"|undefined} pattern
|
|
40487
|
+
* @memberof google.api.HttpRule
|
|
40488
|
+
* @instance
|
|
40489
|
+
*/
|
|
40490
|
+
Object.defineProperty(HttpRule.prototype, "pattern", {
|
|
40491
|
+
get: $util.oneOfGetter($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"]),
|
|
40492
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
40493
|
+
});
|
|
40494
|
+
|
|
40495
|
+
/**
|
|
40496
|
+
* Creates a new HttpRule instance using the specified properties.
|
|
40445
40497
|
* @function create
|
|
40446
|
-
* @memberof google.api.
|
|
40498
|
+
* @memberof google.api.HttpRule
|
|
40447
40499
|
* @static
|
|
40448
|
-
* @param {google.api.
|
|
40449
|
-
* @returns {google.api.
|
|
40500
|
+
* @param {google.api.IHttpRule=} [properties] Properties to set
|
|
40501
|
+
* @returns {google.api.HttpRule} HttpRule instance
|
|
40450
40502
|
*/
|
|
40451
|
-
|
|
40452
|
-
return new
|
|
40503
|
+
HttpRule.create = function create(properties) {
|
|
40504
|
+
return new HttpRule(properties);
|
|
40453
40505
|
};
|
|
40454
40506
|
|
|
40455
40507
|
/**
|
|
40456
|
-
* Encodes the specified
|
|
40508
|
+
* Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
|
|
40457
40509
|
* @function encode
|
|
40458
|
-
* @memberof google.api.
|
|
40510
|
+
* @memberof google.api.HttpRule
|
|
40459
40511
|
* @static
|
|
40460
|
-
* @param {google.api.
|
|
40512
|
+
* @param {google.api.IHttpRule} message HttpRule message or plain object to encode
|
|
40461
40513
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40462
40514
|
* @returns {$protobuf.Writer} Writer
|
|
40463
40515
|
*/
|
|
40464
|
-
|
|
40516
|
+
HttpRule.encode = function encode(message, writer) {
|
|
40465
40517
|
if (!writer)
|
|
40466
40518
|
writer = $Writer.create();
|
|
40467
|
-
if (message.
|
|
40468
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.
|
|
40469
|
-
if (message.
|
|
40470
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.
|
|
40519
|
+
if (message.selector != null && Object.hasOwnProperty.call(message, "selector"))
|
|
40520
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector);
|
|
40521
|
+
if (message.get != null && Object.hasOwnProperty.call(message, "get"))
|
|
40522
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.get);
|
|
40523
|
+
if (message.put != null && Object.hasOwnProperty.call(message, "put"))
|
|
40524
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.put);
|
|
40525
|
+
if (message.post != null && Object.hasOwnProperty.call(message, "post"))
|
|
40526
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.post);
|
|
40527
|
+
if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete"))
|
|
40528
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message["delete"]);
|
|
40529
|
+
if (message.patch != null && Object.hasOwnProperty.call(message, "patch"))
|
|
40530
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.patch);
|
|
40531
|
+
if (message.body != null && Object.hasOwnProperty.call(message, "body"))
|
|
40532
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.body);
|
|
40533
|
+
if (message.custom != null && Object.hasOwnProperty.call(message, "custom"))
|
|
40534
|
+
$root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
40535
|
+
if (message.additionalBindings != null && message.additionalBindings.length)
|
|
40536
|
+
for (var i = 0; i < message.additionalBindings.length; ++i)
|
|
40537
|
+
$root.google.api.HttpRule.encode(message.additionalBindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
|
|
40538
|
+
if (message.responseBody != null && Object.hasOwnProperty.call(message, "responseBody"))
|
|
40539
|
+
writer.uint32(/* id 12, wireType 2 =*/98).string(message.responseBody);
|
|
40471
40540
|
return writer;
|
|
40472
40541
|
};
|
|
40473
40542
|
|
|
40474
40543
|
/**
|
|
40475
|
-
* Encodes the specified
|
|
40544
|
+
* Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
|
|
40476
40545
|
* @function encodeDelimited
|
|
40477
|
-
* @memberof google.api.
|
|
40546
|
+
* @memberof google.api.HttpRule
|
|
40478
40547
|
* @static
|
|
40479
|
-
* @param {google.api.
|
|
40548
|
+
* @param {google.api.IHttpRule} message HttpRule message or plain object to encode
|
|
40480
40549
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40481
40550
|
* @returns {$protobuf.Writer} Writer
|
|
40482
40551
|
*/
|
|
40483
|
-
|
|
40552
|
+
HttpRule.encodeDelimited = function encodeDelimited(message, writer) {
|
|
40484
40553
|
return this.encode(message, writer).ldelim();
|
|
40485
40554
|
};
|
|
40486
40555
|
|
|
40487
40556
|
/**
|
|
40488
|
-
* Decodes a
|
|
40557
|
+
* Decodes a HttpRule message from the specified reader or buffer.
|
|
40489
40558
|
* @function decode
|
|
40490
|
-
* @memberof google.api.
|
|
40559
|
+
* @memberof google.api.HttpRule
|
|
40491
40560
|
* @static
|
|
40492
40561
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40493
40562
|
* @param {number} [length] Message length if known beforehand
|
|
40494
|
-
* @returns {google.api.
|
|
40563
|
+
* @returns {google.api.HttpRule} HttpRule
|
|
40495
40564
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40496
40565
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40497
40566
|
*/
|
|
40498
|
-
|
|
40567
|
+
HttpRule.decode = function decode(reader, length) {
|
|
40499
40568
|
if (!(reader instanceof $Reader))
|
|
40500
40569
|
reader = $Reader.create(reader);
|
|
40501
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.
|
|
40570
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.HttpRule();
|
|
40502
40571
|
while (reader.pos < end) {
|
|
40503
40572
|
var tag = reader.uint32();
|
|
40504
40573
|
switch (tag >>> 3) {
|
|
40505
40574
|
case 1:
|
|
40506
|
-
message.
|
|
40575
|
+
message.selector = reader.string();
|
|
40507
40576
|
break;
|
|
40508
40577
|
case 2:
|
|
40509
|
-
message.
|
|
40578
|
+
message.get = reader.string();
|
|
40579
|
+
break;
|
|
40580
|
+
case 3:
|
|
40581
|
+
message.put = reader.string();
|
|
40582
|
+
break;
|
|
40583
|
+
case 4:
|
|
40584
|
+
message.post = reader.string();
|
|
40585
|
+
break;
|
|
40586
|
+
case 5:
|
|
40587
|
+
message["delete"] = reader.string();
|
|
40588
|
+
break;
|
|
40589
|
+
case 6:
|
|
40590
|
+
message.patch = reader.string();
|
|
40591
|
+
break;
|
|
40592
|
+
case 8:
|
|
40593
|
+
message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32());
|
|
40594
|
+
break;
|
|
40595
|
+
case 7:
|
|
40596
|
+
message.body = reader.string();
|
|
40597
|
+
break;
|
|
40598
|
+
case 12:
|
|
40599
|
+
message.responseBody = reader.string();
|
|
40600
|
+
break;
|
|
40601
|
+
case 11:
|
|
40602
|
+
if (!(message.additionalBindings && message.additionalBindings.length))
|
|
40603
|
+
message.additionalBindings = [];
|
|
40604
|
+
message.additionalBindings.push($root.google.api.HttpRule.decode(reader, reader.uint32()));
|
|
40510
40605
|
break;
|
|
40511
40606
|
default:
|
|
40512
40607
|
reader.skipType(tag & 7);
|
|
@@ -40517,118 +40612,240 @@
|
|
|
40517
40612
|
};
|
|
40518
40613
|
|
|
40519
40614
|
/**
|
|
40520
|
-
* Decodes a
|
|
40615
|
+
* Decodes a HttpRule message from the specified reader or buffer, length delimited.
|
|
40521
40616
|
* @function decodeDelimited
|
|
40522
|
-
* @memberof google.api.
|
|
40617
|
+
* @memberof google.api.HttpRule
|
|
40523
40618
|
* @static
|
|
40524
40619
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40525
|
-
* @returns {google.api.
|
|
40620
|
+
* @returns {google.api.HttpRule} HttpRule
|
|
40526
40621
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40527
40622
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40528
40623
|
*/
|
|
40529
|
-
|
|
40624
|
+
HttpRule.decodeDelimited = function decodeDelimited(reader) {
|
|
40530
40625
|
if (!(reader instanceof $Reader))
|
|
40531
40626
|
reader = new $Reader(reader);
|
|
40532
40627
|
return this.decode(reader, reader.uint32());
|
|
40533
40628
|
};
|
|
40534
40629
|
|
|
40535
40630
|
/**
|
|
40536
|
-
* Verifies a
|
|
40631
|
+
* Verifies a HttpRule message.
|
|
40537
40632
|
* @function verify
|
|
40538
|
-
* @memberof google.api.
|
|
40633
|
+
* @memberof google.api.HttpRule
|
|
40539
40634
|
* @static
|
|
40540
40635
|
* @param {Object.<string,*>} message Plain object to verify
|
|
40541
40636
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
40542
40637
|
*/
|
|
40543
|
-
|
|
40638
|
+
HttpRule.verify = function verify(message) {
|
|
40544
40639
|
if (typeof message !== "object" || message === null)
|
|
40545
40640
|
return "object expected";
|
|
40546
|
-
|
|
40547
|
-
|
|
40548
|
-
|
|
40549
|
-
|
|
40550
|
-
|
|
40551
|
-
|
|
40641
|
+
var properties = {};
|
|
40642
|
+
if (message.selector != null && message.hasOwnProperty("selector"))
|
|
40643
|
+
if (!$util.isString(message.selector))
|
|
40644
|
+
return "selector: string expected";
|
|
40645
|
+
if (message.get != null && message.hasOwnProperty("get")) {
|
|
40646
|
+
properties.pattern = 1;
|
|
40647
|
+
if (!$util.isString(message.get))
|
|
40648
|
+
return "get: string expected";
|
|
40649
|
+
}
|
|
40650
|
+
if (message.put != null && message.hasOwnProperty("put")) {
|
|
40651
|
+
if (properties.pattern === 1)
|
|
40652
|
+
return "pattern: multiple values";
|
|
40653
|
+
properties.pattern = 1;
|
|
40654
|
+
if (!$util.isString(message.put))
|
|
40655
|
+
return "put: string expected";
|
|
40656
|
+
}
|
|
40657
|
+
if (message.post != null && message.hasOwnProperty("post")) {
|
|
40658
|
+
if (properties.pattern === 1)
|
|
40659
|
+
return "pattern: multiple values";
|
|
40660
|
+
properties.pattern = 1;
|
|
40661
|
+
if (!$util.isString(message.post))
|
|
40662
|
+
return "post: string expected";
|
|
40663
|
+
}
|
|
40664
|
+
if (message["delete"] != null && message.hasOwnProperty("delete")) {
|
|
40665
|
+
if (properties.pattern === 1)
|
|
40666
|
+
return "pattern: multiple values";
|
|
40667
|
+
properties.pattern = 1;
|
|
40668
|
+
if (!$util.isString(message["delete"]))
|
|
40669
|
+
return "delete: string expected";
|
|
40670
|
+
}
|
|
40671
|
+
if (message.patch != null && message.hasOwnProperty("patch")) {
|
|
40672
|
+
if (properties.pattern === 1)
|
|
40673
|
+
return "pattern: multiple values";
|
|
40674
|
+
properties.pattern = 1;
|
|
40675
|
+
if (!$util.isString(message.patch))
|
|
40676
|
+
return "patch: string expected";
|
|
40677
|
+
}
|
|
40678
|
+
if (message.custom != null && message.hasOwnProperty("custom")) {
|
|
40679
|
+
if (properties.pattern === 1)
|
|
40680
|
+
return "pattern: multiple values";
|
|
40681
|
+
properties.pattern = 1;
|
|
40682
|
+
{
|
|
40683
|
+
var error = $root.google.api.CustomHttpPattern.verify(message.custom);
|
|
40684
|
+
if (error)
|
|
40685
|
+
return "custom." + error;
|
|
40686
|
+
}
|
|
40687
|
+
}
|
|
40688
|
+
if (message.body != null && message.hasOwnProperty("body"))
|
|
40689
|
+
if (!$util.isString(message.body))
|
|
40690
|
+
return "body: string expected";
|
|
40691
|
+
if (message.responseBody != null && message.hasOwnProperty("responseBody"))
|
|
40692
|
+
if (!$util.isString(message.responseBody))
|
|
40693
|
+
return "responseBody: string expected";
|
|
40694
|
+
if (message.additionalBindings != null && message.hasOwnProperty("additionalBindings")) {
|
|
40695
|
+
if (!Array.isArray(message.additionalBindings))
|
|
40696
|
+
return "additionalBindings: array expected";
|
|
40697
|
+
for (var i = 0; i < message.additionalBindings.length; ++i) {
|
|
40698
|
+
var error = $root.google.api.HttpRule.verify(message.additionalBindings[i]);
|
|
40699
|
+
if (error)
|
|
40700
|
+
return "additionalBindings." + error;
|
|
40701
|
+
}
|
|
40702
|
+
}
|
|
40552
40703
|
return null;
|
|
40553
40704
|
};
|
|
40554
40705
|
|
|
40555
40706
|
/**
|
|
40556
|
-
* Creates a
|
|
40707
|
+
* Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
|
|
40557
40708
|
* @function fromObject
|
|
40558
|
-
* @memberof google.api.
|
|
40709
|
+
* @memberof google.api.HttpRule
|
|
40559
40710
|
* @static
|
|
40560
40711
|
* @param {Object.<string,*>} object Plain object
|
|
40561
|
-
* @returns {google.api.
|
|
40712
|
+
* @returns {google.api.HttpRule} HttpRule
|
|
40562
40713
|
*/
|
|
40563
|
-
|
|
40564
|
-
if (object instanceof $root.google.api.
|
|
40714
|
+
HttpRule.fromObject = function fromObject(object) {
|
|
40715
|
+
if (object instanceof $root.google.api.HttpRule)
|
|
40565
40716
|
return object;
|
|
40566
|
-
var message = new $root.google.api.
|
|
40567
|
-
if (object.
|
|
40568
|
-
message.
|
|
40569
|
-
if (object.
|
|
40570
|
-
message.
|
|
40717
|
+
var message = new $root.google.api.HttpRule();
|
|
40718
|
+
if (object.selector != null)
|
|
40719
|
+
message.selector = String(object.selector);
|
|
40720
|
+
if (object.get != null)
|
|
40721
|
+
message.get = String(object.get);
|
|
40722
|
+
if (object.put != null)
|
|
40723
|
+
message.put = String(object.put);
|
|
40724
|
+
if (object.post != null)
|
|
40725
|
+
message.post = String(object.post);
|
|
40726
|
+
if (object["delete"] != null)
|
|
40727
|
+
message["delete"] = String(object["delete"]);
|
|
40728
|
+
if (object.patch != null)
|
|
40729
|
+
message.patch = String(object.patch);
|
|
40730
|
+
if (object.custom != null) {
|
|
40731
|
+
if (typeof object.custom !== "object")
|
|
40732
|
+
throw TypeError(".google.api.HttpRule.custom: object expected");
|
|
40733
|
+
message.custom = $root.google.api.CustomHttpPattern.fromObject(object.custom);
|
|
40734
|
+
}
|
|
40735
|
+
if (object.body != null)
|
|
40736
|
+
message.body = String(object.body);
|
|
40737
|
+
if (object.responseBody != null)
|
|
40738
|
+
message.responseBody = String(object.responseBody);
|
|
40739
|
+
if (object.additionalBindings) {
|
|
40740
|
+
if (!Array.isArray(object.additionalBindings))
|
|
40741
|
+
throw TypeError(".google.api.HttpRule.additionalBindings: array expected");
|
|
40742
|
+
message.additionalBindings = [];
|
|
40743
|
+
for (var i = 0; i < object.additionalBindings.length; ++i) {
|
|
40744
|
+
if (typeof object.additionalBindings[i] !== "object")
|
|
40745
|
+
throw TypeError(".google.api.HttpRule.additionalBindings: object expected");
|
|
40746
|
+
message.additionalBindings[i] = $root.google.api.HttpRule.fromObject(object.additionalBindings[i]);
|
|
40747
|
+
}
|
|
40748
|
+
}
|
|
40571
40749
|
return message;
|
|
40572
40750
|
};
|
|
40573
40751
|
|
|
40574
40752
|
/**
|
|
40575
|
-
* Creates a plain object from a
|
|
40753
|
+
* Creates a plain object from a HttpRule message. Also converts values to other types if specified.
|
|
40576
40754
|
* @function toObject
|
|
40577
|
-
* @memberof google.api.
|
|
40755
|
+
* @memberof google.api.HttpRule
|
|
40578
40756
|
* @static
|
|
40579
|
-
* @param {google.api.
|
|
40757
|
+
* @param {google.api.HttpRule} message HttpRule
|
|
40580
40758
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
40581
40759
|
* @returns {Object.<string,*>} Plain object
|
|
40582
40760
|
*/
|
|
40583
|
-
|
|
40761
|
+
HttpRule.toObject = function toObject(message, options) {
|
|
40584
40762
|
if (!options)
|
|
40585
40763
|
options = {};
|
|
40586
40764
|
var object = {};
|
|
40765
|
+
if (options.arrays || options.defaults)
|
|
40766
|
+
object.additionalBindings = [];
|
|
40587
40767
|
if (options.defaults) {
|
|
40588
|
-
object.
|
|
40589
|
-
object.
|
|
40768
|
+
object.selector = "";
|
|
40769
|
+
object.body = "";
|
|
40770
|
+
object.responseBody = "";
|
|
40590
40771
|
}
|
|
40591
|
-
if (message.
|
|
40592
|
-
object.
|
|
40593
|
-
if (message.
|
|
40594
|
-
object.
|
|
40772
|
+
if (message.selector != null && message.hasOwnProperty("selector"))
|
|
40773
|
+
object.selector = message.selector;
|
|
40774
|
+
if (message.get != null && message.hasOwnProperty("get")) {
|
|
40775
|
+
object.get = message.get;
|
|
40776
|
+
if (options.oneofs)
|
|
40777
|
+
object.pattern = "get";
|
|
40778
|
+
}
|
|
40779
|
+
if (message.put != null && message.hasOwnProperty("put")) {
|
|
40780
|
+
object.put = message.put;
|
|
40781
|
+
if (options.oneofs)
|
|
40782
|
+
object.pattern = "put";
|
|
40783
|
+
}
|
|
40784
|
+
if (message.post != null && message.hasOwnProperty("post")) {
|
|
40785
|
+
object.post = message.post;
|
|
40786
|
+
if (options.oneofs)
|
|
40787
|
+
object.pattern = "post";
|
|
40788
|
+
}
|
|
40789
|
+
if (message["delete"] != null && message.hasOwnProperty("delete")) {
|
|
40790
|
+
object["delete"] = message["delete"];
|
|
40791
|
+
if (options.oneofs)
|
|
40792
|
+
object.pattern = "delete";
|
|
40793
|
+
}
|
|
40794
|
+
if (message.patch != null && message.hasOwnProperty("patch")) {
|
|
40795
|
+
object.patch = message.patch;
|
|
40796
|
+
if (options.oneofs)
|
|
40797
|
+
object.pattern = "patch";
|
|
40798
|
+
}
|
|
40799
|
+
if (message.body != null && message.hasOwnProperty("body"))
|
|
40800
|
+
object.body = message.body;
|
|
40801
|
+
if (message.custom != null && message.hasOwnProperty("custom")) {
|
|
40802
|
+
object.custom = $root.google.api.CustomHttpPattern.toObject(message.custom, options);
|
|
40803
|
+
if (options.oneofs)
|
|
40804
|
+
object.pattern = "custom";
|
|
40805
|
+
}
|
|
40806
|
+
if (message.additionalBindings && message.additionalBindings.length) {
|
|
40807
|
+
object.additionalBindings = [];
|
|
40808
|
+
for (var j = 0; j < message.additionalBindings.length; ++j)
|
|
40809
|
+
object.additionalBindings[j] = $root.google.api.HttpRule.toObject(message.additionalBindings[j], options);
|
|
40810
|
+
}
|
|
40811
|
+
if (message.responseBody != null && message.hasOwnProperty("responseBody"))
|
|
40812
|
+
object.responseBody = message.responseBody;
|
|
40595
40813
|
return object;
|
|
40596
40814
|
};
|
|
40597
40815
|
|
|
40598
40816
|
/**
|
|
40599
|
-
* Converts this
|
|
40817
|
+
* Converts this HttpRule to JSON.
|
|
40600
40818
|
* @function toJSON
|
|
40601
|
-
* @memberof google.api.
|
|
40819
|
+
* @memberof google.api.HttpRule
|
|
40602
40820
|
* @instance
|
|
40603
40821
|
* @returns {Object.<string,*>} JSON object
|
|
40604
40822
|
*/
|
|
40605
|
-
|
|
40823
|
+
HttpRule.prototype.toJSON = function toJSON() {
|
|
40606
40824
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
40607
40825
|
};
|
|
40608
40826
|
|
|
40609
|
-
return
|
|
40827
|
+
return HttpRule;
|
|
40610
40828
|
})();
|
|
40611
40829
|
|
|
40612
|
-
api.
|
|
40830
|
+
api.CustomHttpPattern = (function() {
|
|
40613
40831
|
|
|
40614
40832
|
/**
|
|
40615
|
-
* Properties of a
|
|
40833
|
+
* Properties of a CustomHttpPattern.
|
|
40616
40834
|
* @memberof google.api
|
|
40617
|
-
* @interface
|
|
40618
|
-
* @property {
|
|
40619
|
-
* @property {
|
|
40835
|
+
* @interface ICustomHttpPattern
|
|
40836
|
+
* @property {string|null} [kind] CustomHttpPattern kind
|
|
40837
|
+
* @property {string|null} [path] CustomHttpPattern path
|
|
40620
40838
|
*/
|
|
40621
40839
|
|
|
40622
40840
|
/**
|
|
40623
|
-
* Constructs a new
|
|
40841
|
+
* Constructs a new CustomHttpPattern.
|
|
40624
40842
|
* @memberof google.api
|
|
40625
|
-
* @classdesc Represents a
|
|
40626
|
-
* @implements
|
|
40843
|
+
* @classdesc Represents a CustomHttpPattern.
|
|
40844
|
+
* @implements ICustomHttpPattern
|
|
40627
40845
|
* @constructor
|
|
40628
|
-
* @param {google.api.
|
|
40846
|
+
* @param {google.api.ICustomHttpPattern=} [properties] Properties to set
|
|
40629
40847
|
*/
|
|
40630
|
-
function
|
|
40631
|
-
this.rules = [];
|
|
40848
|
+
function CustomHttpPattern(properties) {
|
|
40632
40849
|
if (properties)
|
|
40633
40850
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
40634
40851
|
if (properties[keys[i]] != null)
|
|
@@ -40636,91 +40853,88 @@
|
|
|
40636
40853
|
}
|
|
40637
40854
|
|
|
40638
40855
|
/**
|
|
40639
|
-
*
|
|
40640
|
-
* @member {
|
|
40641
|
-
* @memberof google.api.
|
|
40642
|
-
* @instance
|
|
40643
|
-
*/
|
|
40644
|
-
|
|
40856
|
+
* CustomHttpPattern kind.
|
|
40857
|
+
* @member {string} kind
|
|
40858
|
+
* @memberof google.api.CustomHttpPattern
|
|
40859
|
+
* @instance
|
|
40860
|
+
*/
|
|
40861
|
+
CustomHttpPattern.prototype.kind = "";
|
|
40645
40862
|
|
|
40646
40863
|
/**
|
|
40647
|
-
*
|
|
40648
|
-
* @member {
|
|
40649
|
-
* @memberof google.api.
|
|
40864
|
+
* CustomHttpPattern path.
|
|
40865
|
+
* @member {string} path
|
|
40866
|
+
* @memberof google.api.CustomHttpPattern
|
|
40650
40867
|
* @instance
|
|
40651
40868
|
*/
|
|
40652
|
-
|
|
40869
|
+
CustomHttpPattern.prototype.path = "";
|
|
40653
40870
|
|
|
40654
40871
|
/**
|
|
40655
|
-
* Creates a new
|
|
40872
|
+
* Creates a new CustomHttpPattern instance using the specified properties.
|
|
40656
40873
|
* @function create
|
|
40657
|
-
* @memberof google.api.
|
|
40874
|
+
* @memberof google.api.CustomHttpPattern
|
|
40658
40875
|
* @static
|
|
40659
|
-
* @param {google.api.
|
|
40660
|
-
* @returns {google.api.
|
|
40876
|
+
* @param {google.api.ICustomHttpPattern=} [properties] Properties to set
|
|
40877
|
+
* @returns {google.api.CustomHttpPattern} CustomHttpPattern instance
|
|
40661
40878
|
*/
|
|
40662
|
-
|
|
40663
|
-
return new
|
|
40879
|
+
CustomHttpPattern.create = function create(properties) {
|
|
40880
|
+
return new CustomHttpPattern(properties);
|
|
40664
40881
|
};
|
|
40665
40882
|
|
|
40666
40883
|
/**
|
|
40667
|
-
* Encodes the specified
|
|
40884
|
+
* Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
|
|
40668
40885
|
* @function encode
|
|
40669
|
-
* @memberof google.api.
|
|
40886
|
+
* @memberof google.api.CustomHttpPattern
|
|
40670
40887
|
* @static
|
|
40671
|
-
* @param {google.api.
|
|
40888
|
+
* @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode
|
|
40672
40889
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40673
40890
|
* @returns {$protobuf.Writer} Writer
|
|
40674
40891
|
*/
|
|
40675
|
-
|
|
40892
|
+
CustomHttpPattern.encode = function encode(message, writer) {
|
|
40676
40893
|
if (!writer)
|
|
40677
40894
|
writer = $Writer.create();
|
|
40678
|
-
if (message.
|
|
40679
|
-
|
|
40680
|
-
|
|
40681
|
-
|
|
40682
|
-
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.fullyDecodeReservedExpansion);
|
|
40895
|
+
if (message.kind != null && Object.hasOwnProperty.call(message, "kind"))
|
|
40896
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind);
|
|
40897
|
+
if (message.path != null && Object.hasOwnProperty.call(message, "path"))
|
|
40898
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.path);
|
|
40683
40899
|
return writer;
|
|
40684
40900
|
};
|
|
40685
40901
|
|
|
40686
40902
|
/**
|
|
40687
|
-
* Encodes the specified
|
|
40903
|
+
* Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
|
|
40688
40904
|
* @function encodeDelimited
|
|
40689
|
-
* @memberof google.api.
|
|
40905
|
+
* @memberof google.api.CustomHttpPattern
|
|
40690
40906
|
* @static
|
|
40691
|
-
* @param {google.api.
|
|
40907
|
+
* @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode
|
|
40692
40908
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40693
40909
|
* @returns {$protobuf.Writer} Writer
|
|
40694
40910
|
*/
|
|
40695
|
-
|
|
40911
|
+
CustomHttpPattern.encodeDelimited = function encodeDelimited(message, writer) {
|
|
40696
40912
|
return this.encode(message, writer).ldelim();
|
|
40697
40913
|
};
|
|
40698
40914
|
|
|
40699
40915
|
/**
|
|
40700
|
-
* Decodes a
|
|
40916
|
+
* Decodes a CustomHttpPattern message from the specified reader or buffer.
|
|
40701
40917
|
* @function decode
|
|
40702
|
-
* @memberof google.api.
|
|
40918
|
+
* @memberof google.api.CustomHttpPattern
|
|
40703
40919
|
* @static
|
|
40704
40920
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40705
40921
|
* @param {number} [length] Message length if known beforehand
|
|
40706
|
-
* @returns {google.api.
|
|
40922
|
+
* @returns {google.api.CustomHttpPattern} CustomHttpPattern
|
|
40707
40923
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40708
40924
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40709
40925
|
*/
|
|
40710
|
-
|
|
40926
|
+
CustomHttpPattern.decode = function decode(reader, length) {
|
|
40711
40927
|
if (!(reader instanceof $Reader))
|
|
40712
40928
|
reader = $Reader.create(reader);
|
|
40713
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.
|
|
40929
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CustomHttpPattern();
|
|
40714
40930
|
while (reader.pos < end) {
|
|
40715
40931
|
var tag = reader.uint32();
|
|
40716
40932
|
switch (tag >>> 3) {
|
|
40717
40933
|
case 1:
|
|
40718
|
-
|
|
40719
|
-
message.rules = [];
|
|
40720
|
-
message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32()));
|
|
40934
|
+
message.kind = reader.string();
|
|
40721
40935
|
break;
|
|
40722
40936
|
case 2:
|
|
40723
|
-
message.
|
|
40937
|
+
message.path = reader.string();
|
|
40724
40938
|
break;
|
|
40725
40939
|
default:
|
|
40726
40940
|
reader.skipType(tag & 7);
|
|
@@ -40731,143 +40945,150 @@
|
|
|
40731
40945
|
};
|
|
40732
40946
|
|
|
40733
40947
|
/**
|
|
40734
|
-
* Decodes a
|
|
40948
|
+
* Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
|
|
40735
40949
|
* @function decodeDelimited
|
|
40736
|
-
* @memberof google.api.
|
|
40950
|
+
* @memberof google.api.CustomHttpPattern
|
|
40737
40951
|
* @static
|
|
40738
40952
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40739
|
-
* @returns {google.api.
|
|
40953
|
+
* @returns {google.api.CustomHttpPattern} CustomHttpPattern
|
|
40740
40954
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40741
40955
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40742
40956
|
*/
|
|
40743
|
-
|
|
40957
|
+
CustomHttpPattern.decodeDelimited = function decodeDelimited(reader) {
|
|
40744
40958
|
if (!(reader instanceof $Reader))
|
|
40745
40959
|
reader = new $Reader(reader);
|
|
40746
40960
|
return this.decode(reader, reader.uint32());
|
|
40747
40961
|
};
|
|
40748
40962
|
|
|
40749
40963
|
/**
|
|
40750
|
-
* Verifies a
|
|
40964
|
+
* Verifies a CustomHttpPattern message.
|
|
40751
40965
|
* @function verify
|
|
40752
|
-
* @memberof google.api.
|
|
40966
|
+
* @memberof google.api.CustomHttpPattern
|
|
40753
40967
|
* @static
|
|
40754
40968
|
* @param {Object.<string,*>} message Plain object to verify
|
|
40755
40969
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
40756
40970
|
*/
|
|
40757
|
-
|
|
40971
|
+
CustomHttpPattern.verify = function verify(message) {
|
|
40758
40972
|
if (typeof message !== "object" || message === null)
|
|
40759
40973
|
return "object expected";
|
|
40760
|
-
if (message.
|
|
40761
|
-
if (
|
|
40762
|
-
return "
|
|
40763
|
-
|
|
40764
|
-
|
|
40765
|
-
|
|
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";
|
|
40974
|
+
if (message.kind != null && message.hasOwnProperty("kind"))
|
|
40975
|
+
if (!$util.isString(message.kind))
|
|
40976
|
+
return "kind: string expected";
|
|
40977
|
+
if (message.path != null && message.hasOwnProperty("path"))
|
|
40978
|
+
if (!$util.isString(message.path))
|
|
40979
|
+
return "path: string expected";
|
|
40772
40980
|
return null;
|
|
40773
40981
|
};
|
|
40774
40982
|
|
|
40775
40983
|
/**
|
|
40776
|
-
* Creates a
|
|
40984
|
+
* Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
|
|
40777
40985
|
* @function fromObject
|
|
40778
|
-
* @memberof google.api.
|
|
40986
|
+
* @memberof google.api.CustomHttpPattern
|
|
40779
40987
|
* @static
|
|
40780
40988
|
* @param {Object.<string,*>} object Plain object
|
|
40781
|
-
* @returns {google.api.
|
|
40989
|
+
* @returns {google.api.CustomHttpPattern} CustomHttpPattern
|
|
40782
40990
|
*/
|
|
40783
|
-
|
|
40784
|
-
if (object instanceof $root.google.api.
|
|
40991
|
+
CustomHttpPattern.fromObject = function fromObject(object) {
|
|
40992
|
+
if (object instanceof $root.google.api.CustomHttpPattern)
|
|
40785
40993
|
return object;
|
|
40786
|
-
var message = new $root.google.api.
|
|
40787
|
-
if (object.
|
|
40788
|
-
|
|
40789
|
-
|
|
40790
|
-
message.
|
|
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);
|
|
40994
|
+
var message = new $root.google.api.CustomHttpPattern();
|
|
40995
|
+
if (object.kind != null)
|
|
40996
|
+
message.kind = String(object.kind);
|
|
40997
|
+
if (object.path != null)
|
|
40998
|
+
message.path = String(object.path);
|
|
40799
40999
|
return message;
|
|
40800
41000
|
};
|
|
40801
41001
|
|
|
40802
41002
|
/**
|
|
40803
|
-
* Creates a plain object from a
|
|
41003
|
+
* Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
|
|
40804
41004
|
* @function toObject
|
|
40805
|
-
* @memberof google.api.
|
|
41005
|
+
* @memberof google.api.CustomHttpPattern
|
|
40806
41006
|
* @static
|
|
40807
|
-
* @param {google.api.
|
|
41007
|
+
* @param {google.api.CustomHttpPattern} message CustomHttpPattern
|
|
40808
41008
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
40809
41009
|
* @returns {Object.<string,*>} Plain object
|
|
40810
41010
|
*/
|
|
40811
|
-
|
|
41011
|
+
CustomHttpPattern.toObject = function toObject(message, options) {
|
|
40812
41012
|
if (!options)
|
|
40813
41013
|
options = {};
|
|
40814
41014
|
var object = {};
|
|
40815
|
-
if (options.
|
|
40816
|
-
object.
|
|
40817
|
-
|
|
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);
|
|
41015
|
+
if (options.defaults) {
|
|
41016
|
+
object.kind = "";
|
|
41017
|
+
object.path = "";
|
|
40823
41018
|
}
|
|
40824
|
-
if (message.
|
|
40825
|
-
object.
|
|
41019
|
+
if (message.kind != null && message.hasOwnProperty("kind"))
|
|
41020
|
+
object.kind = message.kind;
|
|
41021
|
+
if (message.path != null && message.hasOwnProperty("path"))
|
|
41022
|
+
object.path = message.path;
|
|
40826
41023
|
return object;
|
|
40827
41024
|
};
|
|
40828
41025
|
|
|
40829
41026
|
/**
|
|
40830
|
-
* Converts this
|
|
41027
|
+
* Converts this CustomHttpPattern to JSON.
|
|
40831
41028
|
* @function toJSON
|
|
40832
|
-
* @memberof google.api.
|
|
41029
|
+
* @memberof google.api.CustomHttpPattern
|
|
40833
41030
|
* @instance
|
|
40834
41031
|
* @returns {Object.<string,*>} JSON object
|
|
40835
41032
|
*/
|
|
40836
|
-
|
|
41033
|
+
CustomHttpPattern.prototype.toJSON = function toJSON() {
|
|
40837
41034
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
40838
41035
|
};
|
|
40839
41036
|
|
|
40840
|
-
return
|
|
41037
|
+
return CustomHttpPattern;
|
|
40841
41038
|
})();
|
|
40842
41039
|
|
|
40843
|
-
|
|
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() {
|
|
40844
41067
|
|
|
40845
41068
|
/**
|
|
40846
|
-
* Properties of a
|
|
41069
|
+
* Properties of a ResourceDescriptor.
|
|
40847
41070
|
* @memberof google.api
|
|
40848
|
-
* @interface
|
|
40849
|
-
* @property {string|null} [
|
|
40850
|
-
* @property {string
|
|
40851
|
-
* @property {string|null} [
|
|
40852
|
-
* @property {
|
|
40853
|
-
* @property {string|null} [
|
|
40854
|
-
* @property {string|null} [
|
|
40855
|
-
* @property {google.api.
|
|
40856
|
-
* @property {string|null} [body] HttpRule body
|
|
40857
|
-
* @property {string|null} [responseBody] HttpRule responseBody
|
|
40858
|
-
* @property {Array.<google.api.IHttpRule>|null} [additionalBindings] HttpRule additionalBindings
|
|
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
|
|
40859
41079
|
*/
|
|
40860
41080
|
|
|
40861
41081
|
/**
|
|
40862
|
-
* Constructs a new
|
|
41082
|
+
* Constructs a new ResourceDescriptor.
|
|
40863
41083
|
* @memberof google.api
|
|
40864
|
-
* @classdesc Represents a
|
|
40865
|
-
* @implements
|
|
41084
|
+
* @classdesc Represents a ResourceDescriptor.
|
|
41085
|
+
* @implements IResourceDescriptor
|
|
40866
41086
|
* @constructor
|
|
40867
|
-
* @param {google.api.
|
|
41087
|
+
* @param {google.api.IResourceDescriptor=} [properties] Properties to set
|
|
40868
41088
|
*/
|
|
40869
|
-
function
|
|
40870
|
-
this.
|
|
41089
|
+
function ResourceDescriptor(properties) {
|
|
41090
|
+
this.pattern = [];
|
|
41091
|
+
this.style = [];
|
|
40871
41092
|
if (properties)
|
|
40872
41093
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
40873
41094
|
if (properties[keys[i]] != null)
|
|
@@ -40875,209 +41096,167 @@
|
|
|
40875
41096
|
}
|
|
40876
41097
|
|
|
40877
41098
|
/**
|
|
40878
|
-
*
|
|
40879
|
-
* @member {string}
|
|
40880
|
-
* @memberof google.api.
|
|
41099
|
+
* ResourceDescriptor type.
|
|
41100
|
+
* @member {string} type
|
|
41101
|
+
* @memberof google.api.ResourceDescriptor
|
|
40881
41102
|
* @instance
|
|
40882
41103
|
*/
|
|
40883
|
-
|
|
41104
|
+
ResourceDescriptor.prototype.type = "";
|
|
40884
41105
|
|
|
40885
41106
|
/**
|
|
40886
|
-
*
|
|
40887
|
-
* @member {string
|
|
40888
|
-
* @memberof google.api.
|
|
41107
|
+
* ResourceDescriptor pattern.
|
|
41108
|
+
* @member {Array.<string>} pattern
|
|
41109
|
+
* @memberof google.api.ResourceDescriptor
|
|
40889
41110
|
* @instance
|
|
40890
41111
|
*/
|
|
40891
|
-
|
|
41112
|
+
ResourceDescriptor.prototype.pattern = $util.emptyArray;
|
|
40892
41113
|
|
|
40893
41114
|
/**
|
|
40894
|
-
*
|
|
40895
|
-
* @member {string
|
|
40896
|
-
* @memberof google.api.
|
|
41115
|
+
* ResourceDescriptor nameField.
|
|
41116
|
+
* @member {string} nameField
|
|
41117
|
+
* @memberof google.api.ResourceDescriptor
|
|
40897
41118
|
* @instance
|
|
40898
41119
|
*/
|
|
40899
|
-
|
|
41120
|
+
ResourceDescriptor.prototype.nameField = "";
|
|
40900
41121
|
|
|
40901
41122
|
/**
|
|
40902
|
-
*
|
|
40903
|
-
* @member {
|
|
40904
|
-
* @memberof google.api.
|
|
41123
|
+
* ResourceDescriptor history.
|
|
41124
|
+
* @member {google.api.ResourceDescriptor.History} history
|
|
41125
|
+
* @memberof google.api.ResourceDescriptor
|
|
40905
41126
|
* @instance
|
|
40906
41127
|
*/
|
|
40907
|
-
|
|
41128
|
+
ResourceDescriptor.prototype.history = 0;
|
|
40908
41129
|
|
|
40909
41130
|
/**
|
|
40910
|
-
*
|
|
40911
|
-
* @member {string
|
|
40912
|
-
* @memberof google.api.
|
|
40913
|
-
* @instance
|
|
40914
|
-
*/
|
|
40915
|
-
HttpRule.prototype["delete"] = null;
|
|
40916
|
-
|
|
40917
|
-
/**
|
|
40918
|
-
* HttpRule patch.
|
|
40919
|
-
* @member {string|null|undefined} patch
|
|
40920
|
-
* @memberof google.api.HttpRule
|
|
40921
|
-
* @instance
|
|
40922
|
-
*/
|
|
40923
|
-
HttpRule.prototype.patch = null;
|
|
40924
|
-
|
|
40925
|
-
/**
|
|
40926
|
-
* HttpRule custom.
|
|
40927
|
-
* @member {google.api.ICustomHttpPattern|null|undefined} custom
|
|
40928
|
-
* @memberof google.api.HttpRule
|
|
40929
|
-
* @instance
|
|
40930
|
-
*/
|
|
40931
|
-
HttpRule.prototype.custom = null;
|
|
40932
|
-
|
|
40933
|
-
/**
|
|
40934
|
-
* HttpRule body.
|
|
40935
|
-
* @member {string} body
|
|
40936
|
-
* @memberof google.api.HttpRule
|
|
40937
|
-
* @instance
|
|
40938
|
-
*/
|
|
40939
|
-
HttpRule.prototype.body = "";
|
|
40940
|
-
|
|
40941
|
-
/**
|
|
40942
|
-
* HttpRule responseBody.
|
|
40943
|
-
* @member {string} responseBody
|
|
40944
|
-
* @memberof google.api.HttpRule
|
|
41131
|
+
* ResourceDescriptor plural.
|
|
41132
|
+
* @member {string} plural
|
|
41133
|
+
* @memberof google.api.ResourceDescriptor
|
|
40945
41134
|
* @instance
|
|
40946
41135
|
*/
|
|
40947
|
-
|
|
41136
|
+
ResourceDescriptor.prototype.plural = "";
|
|
40948
41137
|
|
|
40949
41138
|
/**
|
|
40950
|
-
*
|
|
40951
|
-
* @member {
|
|
40952
|
-
* @memberof google.api.
|
|
41139
|
+
* ResourceDescriptor singular.
|
|
41140
|
+
* @member {string} singular
|
|
41141
|
+
* @memberof google.api.ResourceDescriptor
|
|
40953
41142
|
* @instance
|
|
40954
41143
|
*/
|
|
40955
|
-
|
|
40956
|
-
|
|
40957
|
-
// OneOf field names bound to virtual getters and setters
|
|
40958
|
-
var $oneOfFields;
|
|
41144
|
+
ResourceDescriptor.prototype.singular = "";
|
|
40959
41145
|
|
|
40960
41146
|
/**
|
|
40961
|
-
*
|
|
40962
|
-
* @member {
|
|
40963
|
-
* @memberof google.api.
|
|
41147
|
+
* ResourceDescriptor style.
|
|
41148
|
+
* @member {Array.<google.api.ResourceDescriptor.Style>} style
|
|
41149
|
+
* @memberof google.api.ResourceDescriptor
|
|
40964
41150
|
* @instance
|
|
40965
41151
|
*/
|
|
40966
|
-
|
|
40967
|
-
get: $util.oneOfGetter($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"]),
|
|
40968
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
40969
|
-
});
|
|
41152
|
+
ResourceDescriptor.prototype.style = $util.emptyArray;
|
|
40970
41153
|
|
|
40971
41154
|
/**
|
|
40972
|
-
* Creates a new
|
|
41155
|
+
* Creates a new ResourceDescriptor instance using the specified properties.
|
|
40973
41156
|
* @function create
|
|
40974
|
-
* @memberof google.api.
|
|
41157
|
+
* @memberof google.api.ResourceDescriptor
|
|
40975
41158
|
* @static
|
|
40976
|
-
* @param {google.api.
|
|
40977
|
-
* @returns {google.api.
|
|
41159
|
+
* @param {google.api.IResourceDescriptor=} [properties] Properties to set
|
|
41160
|
+
* @returns {google.api.ResourceDescriptor} ResourceDescriptor instance
|
|
40978
41161
|
*/
|
|
40979
|
-
|
|
40980
|
-
return new
|
|
41162
|
+
ResourceDescriptor.create = function create(properties) {
|
|
41163
|
+
return new ResourceDescriptor(properties);
|
|
40981
41164
|
};
|
|
40982
41165
|
|
|
40983
41166
|
/**
|
|
40984
|
-
* Encodes the specified
|
|
41167
|
+
* Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
|
|
40985
41168
|
* @function encode
|
|
40986
|
-
* @memberof google.api.
|
|
41169
|
+
* @memberof google.api.ResourceDescriptor
|
|
40987
41170
|
* @static
|
|
40988
|
-
* @param {google.api.
|
|
41171
|
+
* @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode
|
|
40989
41172
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40990
41173
|
* @returns {$protobuf.Writer} Writer
|
|
40991
41174
|
*/
|
|
40992
|
-
|
|
41175
|
+
ResourceDescriptor.encode = function encode(message, writer) {
|
|
40993
41176
|
if (!writer)
|
|
40994
41177
|
writer = $Writer.create();
|
|
40995
|
-
if (message.
|
|
40996
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.
|
|
40997
|
-
if (message.
|
|
40998
|
-
|
|
40999
|
-
|
|
41000
|
-
|
|
41001
|
-
|
|
41002
|
-
|
|
41003
|
-
|
|
41004
|
-
|
|
41005
|
-
|
|
41006
|
-
|
|
41007
|
-
|
|
41008
|
-
|
|
41009
|
-
|
|
41010
|
-
|
|
41011
|
-
|
|
41012
|
-
|
|
41013
|
-
|
|
41014
|
-
if (message.responseBody != null && Object.hasOwnProperty.call(message, "responseBody"))
|
|
41015
|
-
writer.uint32(/* id 12, wireType 2 =*/98).string(message.responseBody);
|
|
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
|
+
}
|
|
41016
41197
|
return writer;
|
|
41017
41198
|
};
|
|
41018
41199
|
|
|
41019
41200
|
/**
|
|
41020
|
-
* Encodes the specified
|
|
41201
|
+
* Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
|
|
41021
41202
|
* @function encodeDelimited
|
|
41022
|
-
* @memberof google.api.
|
|
41203
|
+
* @memberof google.api.ResourceDescriptor
|
|
41023
41204
|
* @static
|
|
41024
|
-
* @param {google.api.
|
|
41205
|
+
* @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode
|
|
41025
41206
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
41026
41207
|
* @returns {$protobuf.Writer} Writer
|
|
41027
41208
|
*/
|
|
41028
|
-
|
|
41209
|
+
ResourceDescriptor.encodeDelimited = function encodeDelimited(message, writer) {
|
|
41029
41210
|
return this.encode(message, writer).ldelim();
|
|
41030
41211
|
};
|
|
41031
41212
|
|
|
41032
41213
|
/**
|
|
41033
|
-
* Decodes a
|
|
41214
|
+
* Decodes a ResourceDescriptor message from the specified reader or buffer.
|
|
41034
41215
|
* @function decode
|
|
41035
|
-
* @memberof google.api.
|
|
41216
|
+
* @memberof google.api.ResourceDescriptor
|
|
41036
41217
|
* @static
|
|
41037
41218
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
41038
41219
|
* @param {number} [length] Message length if known beforehand
|
|
41039
|
-
* @returns {google.api.
|
|
41220
|
+
* @returns {google.api.ResourceDescriptor} ResourceDescriptor
|
|
41040
41221
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
41041
41222
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
41042
41223
|
*/
|
|
41043
|
-
|
|
41224
|
+
ResourceDescriptor.decode = function decode(reader, length) {
|
|
41044
41225
|
if (!(reader instanceof $Reader))
|
|
41045
41226
|
reader = $Reader.create(reader);
|
|
41046
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.
|
|
41227
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceDescriptor();
|
|
41047
41228
|
while (reader.pos < end) {
|
|
41048
41229
|
var tag = reader.uint32();
|
|
41049
41230
|
switch (tag >>> 3) {
|
|
41050
41231
|
case 1:
|
|
41051
|
-
message.
|
|
41232
|
+
message.type = reader.string();
|
|
41052
41233
|
break;
|
|
41053
41234
|
case 2:
|
|
41054
|
-
message.
|
|
41235
|
+
if (!(message.pattern && message.pattern.length))
|
|
41236
|
+
message.pattern = [];
|
|
41237
|
+
message.pattern.push(reader.string());
|
|
41055
41238
|
break;
|
|
41056
41239
|
case 3:
|
|
41057
|
-
message.
|
|
41240
|
+
message.nameField = reader.string();
|
|
41058
41241
|
break;
|
|
41059
41242
|
case 4:
|
|
41060
|
-
message.
|
|
41243
|
+
message.history = reader.int32();
|
|
41061
41244
|
break;
|
|
41062
41245
|
case 5:
|
|
41063
|
-
message
|
|
41246
|
+
message.plural = reader.string();
|
|
41064
41247
|
break;
|
|
41065
41248
|
case 6:
|
|
41066
|
-
message.
|
|
41067
|
-
break;
|
|
41068
|
-
case 8:
|
|
41069
|
-
message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32());
|
|
41070
|
-
break;
|
|
41071
|
-
case 7:
|
|
41072
|
-
message.body = reader.string();
|
|
41073
|
-
break;
|
|
41074
|
-
case 12:
|
|
41075
|
-
message.responseBody = reader.string();
|
|
41249
|
+
message.singular = reader.string();
|
|
41076
41250
|
break;
|
|
41077
|
-
case
|
|
41078
|
-
if (!(message.
|
|
41079
|
-
message.
|
|
41080
|
-
|
|
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());
|
|
41081
41260
|
break;
|
|
41082
41261
|
default:
|
|
41083
41262
|
reader.skipType(tag & 7);
|
|
@@ -41088,240 +41267,246 @@
|
|
|
41088
41267
|
};
|
|
41089
41268
|
|
|
41090
41269
|
/**
|
|
41091
|
-
* Decodes a
|
|
41270
|
+
* Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
|
|
41092
41271
|
* @function decodeDelimited
|
|
41093
|
-
* @memberof google.api.
|
|
41272
|
+
* @memberof google.api.ResourceDescriptor
|
|
41094
41273
|
* @static
|
|
41095
41274
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
41096
|
-
* @returns {google.api.
|
|
41275
|
+
* @returns {google.api.ResourceDescriptor} ResourceDescriptor
|
|
41097
41276
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
41098
41277
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
41099
41278
|
*/
|
|
41100
|
-
|
|
41279
|
+
ResourceDescriptor.decodeDelimited = function decodeDelimited(reader) {
|
|
41101
41280
|
if (!(reader instanceof $Reader))
|
|
41102
41281
|
reader = new $Reader(reader);
|
|
41103
41282
|
return this.decode(reader, reader.uint32());
|
|
41104
41283
|
};
|
|
41105
41284
|
|
|
41106
41285
|
/**
|
|
41107
|
-
* Verifies a
|
|
41286
|
+
* Verifies a ResourceDescriptor message.
|
|
41108
41287
|
* @function verify
|
|
41109
|
-
* @memberof google.api.
|
|
41288
|
+
* @memberof google.api.ResourceDescriptor
|
|
41110
41289
|
* @static
|
|
41111
41290
|
* @param {Object.<string,*>} message Plain object to verify
|
|
41112
41291
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
41113
41292
|
*/
|
|
41114
|
-
|
|
41293
|
+
ResourceDescriptor.verify = function verify(message) {
|
|
41115
41294
|
if (typeof message !== "object" || message === null)
|
|
41116
41295
|
return "object expected";
|
|
41117
|
-
|
|
41118
|
-
|
|
41119
|
-
|
|
41120
|
-
|
|
41121
|
-
|
|
41122
|
-
|
|
41123
|
-
|
|
41124
|
-
|
|
41125
|
-
|
|
41126
|
-
if (message.put != null && message.hasOwnProperty("put")) {
|
|
41127
|
-
if (properties.pattern === 1)
|
|
41128
|
-
return "pattern: multiple values";
|
|
41129
|
-
properties.pattern = 1;
|
|
41130
|
-
if (!$util.isString(message.put))
|
|
41131
|
-
return "put: string expected";
|
|
41132
|
-
}
|
|
41133
|
-
if (message.post != null && message.hasOwnProperty("post")) {
|
|
41134
|
-
if (properties.pattern === 1)
|
|
41135
|
-
return "pattern: multiple values";
|
|
41136
|
-
properties.pattern = 1;
|
|
41137
|
-
if (!$util.isString(message.post))
|
|
41138
|
-
return "post: string expected";
|
|
41139
|
-
}
|
|
41140
|
-
if (message["delete"] != null && message.hasOwnProperty("delete")) {
|
|
41141
|
-
if (properties.pattern === 1)
|
|
41142
|
-
return "pattern: multiple values";
|
|
41143
|
-
properties.pattern = 1;
|
|
41144
|
-
if (!$util.isString(message["delete"]))
|
|
41145
|
-
return "delete: string expected";
|
|
41146
|
-
}
|
|
41147
|
-
if (message.patch != null && message.hasOwnProperty("patch")) {
|
|
41148
|
-
if (properties.pattern === 1)
|
|
41149
|
-
return "pattern: multiple values";
|
|
41150
|
-
properties.pattern = 1;
|
|
41151
|
-
if (!$util.isString(message.patch))
|
|
41152
|
-
return "patch: string expected";
|
|
41153
|
-
}
|
|
41154
|
-
if (message.custom != null && message.hasOwnProperty("custom")) {
|
|
41155
|
-
if (properties.pattern === 1)
|
|
41156
|
-
return "pattern: multiple values";
|
|
41157
|
-
properties.pattern = 1;
|
|
41158
|
-
{
|
|
41159
|
-
var error = $root.google.api.CustomHttpPattern.verify(message.custom);
|
|
41160
|
-
if (error)
|
|
41161
|
-
return "custom." + error;
|
|
41162
|
-
}
|
|
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";
|
|
41163
41305
|
}
|
|
41164
|
-
if (message.
|
|
41165
|
-
if (!$util.isString(message.
|
|
41166
|
-
return "
|
|
41167
|
-
if (message.
|
|
41168
|
-
|
|
41169
|
-
|
|
41170
|
-
|
|
41171
|
-
|
|
41172
|
-
|
|
41173
|
-
|
|
41174
|
-
|
|
41175
|
-
if (error)
|
|
41176
|
-
return "additionalBindings." + error;
|
|
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;
|
|
41177
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
|
+
}
|
|
41178
41335
|
}
|
|
41179
41336
|
return null;
|
|
41180
41337
|
};
|
|
41181
41338
|
|
|
41182
41339
|
/**
|
|
41183
|
-
* Creates a
|
|
41340
|
+
* Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
|
|
41184
41341
|
* @function fromObject
|
|
41185
|
-
* @memberof google.api.
|
|
41342
|
+
* @memberof google.api.ResourceDescriptor
|
|
41186
41343
|
* @static
|
|
41187
41344
|
* @param {Object.<string,*>} object Plain object
|
|
41188
|
-
* @returns {google.api.
|
|
41345
|
+
* @returns {google.api.ResourceDescriptor} ResourceDescriptor
|
|
41189
41346
|
*/
|
|
41190
|
-
|
|
41191
|
-
if (object instanceof $root.google.api.
|
|
41347
|
+
ResourceDescriptor.fromObject = function fromObject(object) {
|
|
41348
|
+
if (object instanceof $root.google.api.ResourceDescriptor)
|
|
41192
41349
|
return object;
|
|
41193
|
-
var message = new $root.google.api.
|
|
41194
|
-
if (object.
|
|
41195
|
-
message.
|
|
41196
|
-
if (object.
|
|
41197
|
-
|
|
41198
|
-
|
|
41199
|
-
message.
|
|
41200
|
-
|
|
41201
|
-
|
|
41202
|
-
if (object["delete"] != null)
|
|
41203
|
-
message["delete"] = String(object["delete"]);
|
|
41204
|
-
if (object.patch != null)
|
|
41205
|
-
message.patch = String(object.patch);
|
|
41206
|
-
if (object.custom != null) {
|
|
41207
|
-
if (typeof object.custom !== "object")
|
|
41208
|
-
throw TypeError(".google.api.HttpRule.custom: object expected");
|
|
41209
|
-
message.custom = $root.google.api.CustomHttpPattern.fromObject(object.custom);
|
|
41210
|
-
}
|
|
41211
|
-
if (object.body != null)
|
|
41212
|
-
message.body = String(object.body);
|
|
41213
|
-
if (object.responseBody != null)
|
|
41214
|
-
message.responseBody = String(object.responseBody);
|
|
41215
|
-
if (object.additionalBindings) {
|
|
41216
|
-
if (!Array.isArray(object.additionalBindings))
|
|
41217
|
-
throw TypeError(".google.api.HttpRule.additionalBindings: array expected");
|
|
41218
|
-
message.additionalBindings = [];
|
|
41219
|
-
for (var i = 0; i < object.additionalBindings.length; ++i) {
|
|
41220
|
-
if (typeof object.additionalBindings[i] !== "object")
|
|
41221
|
-
throw TypeError(".google.api.HttpRule.additionalBindings: object expected");
|
|
41222
|
-
message.additionalBindings[i] = $root.google.api.HttpRule.fromObject(object.additionalBindings[i]);
|
|
41223
|
-
}
|
|
41224
|
-
}
|
|
41225
|
-
return message;
|
|
41226
|
-
};
|
|
41227
|
-
|
|
41228
|
-
/**
|
|
41229
|
-
* Creates a plain object from a HttpRule message. Also converts values to other types if specified.
|
|
41230
|
-
* @function toObject
|
|
41231
|
-
* @memberof google.api.HttpRule
|
|
41232
|
-
* @static
|
|
41233
|
-
* @param {google.api.HttpRule} message HttpRule
|
|
41234
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
41235
|
-
* @returns {Object.<string,*>} Plain object
|
|
41236
|
-
*/
|
|
41237
|
-
HttpRule.toObject = function toObject(message, options) {
|
|
41238
|
-
if (!options)
|
|
41239
|
-
options = {};
|
|
41240
|
-
var object = {};
|
|
41241
|
-
if (options.arrays || options.defaults)
|
|
41242
|
-
object.additionalBindings = [];
|
|
41243
|
-
if (options.defaults) {
|
|
41244
|
-
object.selector = "";
|
|
41245
|
-
object.body = "";
|
|
41246
|
-
object.responseBody = "";
|
|
41247
|
-
}
|
|
41248
|
-
if (message.selector != null && message.hasOwnProperty("selector"))
|
|
41249
|
-
object.selector = message.selector;
|
|
41250
|
-
if (message.get != null && message.hasOwnProperty("get")) {
|
|
41251
|
-
object.get = message.get;
|
|
41252
|
-
if (options.oneofs)
|
|
41253
|
-
object.pattern = "get";
|
|
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]);
|
|
41254
41359
|
}
|
|
41255
|
-
if (
|
|
41256
|
-
|
|
41257
|
-
|
|
41258
|
-
|
|
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;
|
|
41259
41375
|
}
|
|
41260
|
-
if (
|
|
41261
|
-
|
|
41262
|
-
|
|
41263
|
-
|
|
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
|
+
}
|
|
41264
41396
|
}
|
|
41265
|
-
|
|
41266
|
-
|
|
41267
|
-
|
|
41268
|
-
|
|
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 = [];
|
|
41269
41416
|
}
|
|
41270
|
-
if (
|
|
41271
|
-
object.
|
|
41272
|
-
|
|
41273
|
-
|
|
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 = "";
|
|
41274
41423
|
}
|
|
41275
|
-
if (message.
|
|
41276
|
-
object.
|
|
41277
|
-
if (message.
|
|
41278
|
-
object.
|
|
41279
|
-
|
|
41280
|
-
object.pattern =
|
|
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];
|
|
41281
41430
|
}
|
|
41282
|
-
if (message.
|
|
41283
|
-
object.
|
|
41284
|
-
|
|
41285
|
-
|
|
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];
|
|
41286
41443
|
}
|
|
41287
|
-
if (message.responseBody != null && message.hasOwnProperty("responseBody"))
|
|
41288
|
-
object.responseBody = message.responseBody;
|
|
41289
41444
|
return object;
|
|
41290
41445
|
};
|
|
41291
41446
|
|
|
41292
41447
|
/**
|
|
41293
|
-
* Converts this
|
|
41448
|
+
* Converts this ResourceDescriptor to JSON.
|
|
41294
41449
|
* @function toJSON
|
|
41295
|
-
* @memberof google.api.
|
|
41450
|
+
* @memberof google.api.ResourceDescriptor
|
|
41296
41451
|
* @instance
|
|
41297
41452
|
* @returns {Object.<string,*>} JSON object
|
|
41298
41453
|
*/
|
|
41299
|
-
|
|
41454
|
+
ResourceDescriptor.prototype.toJSON = function toJSON() {
|
|
41300
41455
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
41301
41456
|
};
|
|
41302
41457
|
|
|
41303
|
-
|
|
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;
|
|
41304
41489
|
})();
|
|
41305
41490
|
|
|
41306
|
-
api.
|
|
41491
|
+
api.ResourceReference = (function() {
|
|
41307
41492
|
|
|
41308
41493
|
/**
|
|
41309
|
-
* Properties of a
|
|
41494
|
+
* Properties of a ResourceReference.
|
|
41310
41495
|
* @memberof google.api
|
|
41311
|
-
* @interface
|
|
41312
|
-
* @property {string|null} [
|
|
41313
|
-
* @property {string|null} [
|
|
41496
|
+
* @interface IResourceReference
|
|
41497
|
+
* @property {string|null} [type] ResourceReference type
|
|
41498
|
+
* @property {string|null} [childType] ResourceReference childType
|
|
41314
41499
|
*/
|
|
41315
41500
|
|
|
41316
41501
|
/**
|
|
41317
|
-
* Constructs a new
|
|
41502
|
+
* Constructs a new ResourceReference.
|
|
41318
41503
|
* @memberof google.api
|
|
41319
|
-
* @classdesc Represents a
|
|
41320
|
-
* @implements
|
|
41504
|
+
* @classdesc Represents a ResourceReference.
|
|
41505
|
+
* @implements IResourceReference
|
|
41321
41506
|
* @constructor
|
|
41322
|
-
* @param {google.api.
|
|
41507
|
+
* @param {google.api.IResourceReference=} [properties] Properties to set
|
|
41323
41508
|
*/
|
|
41324
|
-
function
|
|
41509
|
+
function ResourceReference(properties) {
|
|
41325
41510
|
if (properties)
|
|
41326
41511
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
41327
41512
|
if (properties[keys[i]] != null)
|
|
@@ -41329,88 +41514,88 @@
|
|
|
41329
41514
|
}
|
|
41330
41515
|
|
|
41331
41516
|
/**
|
|
41332
|
-
*
|
|
41333
|
-
* @member {string}
|
|
41334
|
-
* @memberof google.api.
|
|
41517
|
+
* ResourceReference type.
|
|
41518
|
+
* @member {string} type
|
|
41519
|
+
* @memberof google.api.ResourceReference
|
|
41335
41520
|
* @instance
|
|
41336
41521
|
*/
|
|
41337
|
-
|
|
41522
|
+
ResourceReference.prototype.type = "";
|
|
41338
41523
|
|
|
41339
41524
|
/**
|
|
41340
|
-
*
|
|
41341
|
-
* @member {string}
|
|
41342
|
-
* @memberof google.api.
|
|
41525
|
+
* ResourceReference childType.
|
|
41526
|
+
* @member {string} childType
|
|
41527
|
+
* @memberof google.api.ResourceReference
|
|
41343
41528
|
* @instance
|
|
41344
41529
|
*/
|
|
41345
|
-
|
|
41530
|
+
ResourceReference.prototype.childType = "";
|
|
41346
41531
|
|
|
41347
41532
|
/**
|
|
41348
|
-
* Creates a new
|
|
41533
|
+
* Creates a new ResourceReference instance using the specified properties.
|
|
41349
41534
|
* @function create
|
|
41350
|
-
* @memberof google.api.
|
|
41535
|
+
* @memberof google.api.ResourceReference
|
|
41351
41536
|
* @static
|
|
41352
|
-
* @param {google.api.
|
|
41353
|
-
* @returns {google.api.
|
|
41537
|
+
* @param {google.api.IResourceReference=} [properties] Properties to set
|
|
41538
|
+
* @returns {google.api.ResourceReference} ResourceReference instance
|
|
41354
41539
|
*/
|
|
41355
|
-
|
|
41356
|
-
return new
|
|
41540
|
+
ResourceReference.create = function create(properties) {
|
|
41541
|
+
return new ResourceReference(properties);
|
|
41357
41542
|
};
|
|
41358
41543
|
|
|
41359
41544
|
/**
|
|
41360
|
-
* Encodes the specified
|
|
41545
|
+
* Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
|
|
41361
41546
|
* @function encode
|
|
41362
|
-
* @memberof google.api.
|
|
41547
|
+
* @memberof google.api.ResourceReference
|
|
41363
41548
|
* @static
|
|
41364
|
-
* @param {google.api.
|
|
41549
|
+
* @param {google.api.IResourceReference} message ResourceReference message or plain object to encode
|
|
41365
41550
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
41366
41551
|
* @returns {$protobuf.Writer} Writer
|
|
41367
41552
|
*/
|
|
41368
|
-
|
|
41553
|
+
ResourceReference.encode = function encode(message, writer) {
|
|
41369
41554
|
if (!writer)
|
|
41370
41555
|
writer = $Writer.create();
|
|
41371
|
-
if (message.
|
|
41372
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.
|
|
41373
|
-
if (message.
|
|
41374
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.
|
|
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);
|
|
41375
41560
|
return writer;
|
|
41376
41561
|
};
|
|
41377
41562
|
|
|
41378
41563
|
/**
|
|
41379
|
-
* Encodes the specified
|
|
41564
|
+
* Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
|
|
41380
41565
|
* @function encodeDelimited
|
|
41381
|
-
* @memberof google.api.
|
|
41566
|
+
* @memberof google.api.ResourceReference
|
|
41382
41567
|
* @static
|
|
41383
|
-
* @param {google.api.
|
|
41568
|
+
* @param {google.api.IResourceReference} message ResourceReference message or plain object to encode
|
|
41384
41569
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
41385
41570
|
* @returns {$protobuf.Writer} Writer
|
|
41386
41571
|
*/
|
|
41387
|
-
|
|
41572
|
+
ResourceReference.encodeDelimited = function encodeDelimited(message, writer) {
|
|
41388
41573
|
return this.encode(message, writer).ldelim();
|
|
41389
41574
|
};
|
|
41390
41575
|
|
|
41391
41576
|
/**
|
|
41392
|
-
* Decodes a
|
|
41577
|
+
* Decodes a ResourceReference message from the specified reader or buffer.
|
|
41393
41578
|
* @function decode
|
|
41394
|
-
* @memberof google.api.
|
|
41579
|
+
* @memberof google.api.ResourceReference
|
|
41395
41580
|
* @static
|
|
41396
41581
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
41397
41582
|
* @param {number} [length] Message length if known beforehand
|
|
41398
|
-
* @returns {google.api.
|
|
41583
|
+
* @returns {google.api.ResourceReference} ResourceReference
|
|
41399
41584
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
41400
41585
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
41401
41586
|
*/
|
|
41402
|
-
|
|
41587
|
+
ResourceReference.decode = function decode(reader, length) {
|
|
41403
41588
|
if (!(reader instanceof $Reader))
|
|
41404
41589
|
reader = $Reader.create(reader);
|
|
41405
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.
|
|
41590
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceReference();
|
|
41406
41591
|
while (reader.pos < end) {
|
|
41407
41592
|
var tag = reader.uint32();
|
|
41408
41593
|
switch (tag >>> 3) {
|
|
41409
41594
|
case 1:
|
|
41410
|
-
message.
|
|
41595
|
+
message.type = reader.string();
|
|
41411
41596
|
break;
|
|
41412
41597
|
case 2:
|
|
41413
|
-
message.
|
|
41598
|
+
message.childType = reader.string();
|
|
41414
41599
|
break;
|
|
41415
41600
|
default:
|
|
41416
41601
|
reader.skipType(tag & 7);
|
|
@@ -41421,96 +41606,96 @@
|
|
|
41421
41606
|
};
|
|
41422
41607
|
|
|
41423
41608
|
/**
|
|
41424
|
-
* Decodes a
|
|
41609
|
+
* Decodes a ResourceReference message from the specified reader or buffer, length delimited.
|
|
41425
41610
|
* @function decodeDelimited
|
|
41426
|
-
* @memberof google.api.
|
|
41611
|
+
* @memberof google.api.ResourceReference
|
|
41427
41612
|
* @static
|
|
41428
41613
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
41429
|
-
* @returns {google.api.
|
|
41614
|
+
* @returns {google.api.ResourceReference} ResourceReference
|
|
41430
41615
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
41431
41616
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
41432
41617
|
*/
|
|
41433
|
-
|
|
41618
|
+
ResourceReference.decodeDelimited = function decodeDelimited(reader) {
|
|
41434
41619
|
if (!(reader instanceof $Reader))
|
|
41435
41620
|
reader = new $Reader(reader);
|
|
41436
41621
|
return this.decode(reader, reader.uint32());
|
|
41437
41622
|
};
|
|
41438
41623
|
|
|
41439
41624
|
/**
|
|
41440
|
-
* Verifies a
|
|
41625
|
+
* Verifies a ResourceReference message.
|
|
41441
41626
|
* @function verify
|
|
41442
|
-
* @memberof google.api.
|
|
41627
|
+
* @memberof google.api.ResourceReference
|
|
41443
41628
|
* @static
|
|
41444
41629
|
* @param {Object.<string,*>} message Plain object to verify
|
|
41445
41630
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
41446
41631
|
*/
|
|
41447
|
-
|
|
41632
|
+
ResourceReference.verify = function verify(message) {
|
|
41448
41633
|
if (typeof message !== "object" || message === null)
|
|
41449
41634
|
return "object expected";
|
|
41450
|
-
if (message.
|
|
41451
|
-
if (!$util.isString(message.
|
|
41452
|
-
return "
|
|
41453
|
-
if (message.
|
|
41454
|
-
if (!$util.isString(message.
|
|
41455
|
-
return "
|
|
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";
|
|
41456
41641
|
return null;
|
|
41457
41642
|
};
|
|
41458
41643
|
|
|
41459
41644
|
/**
|
|
41460
|
-
* Creates a
|
|
41645
|
+
* Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.
|
|
41461
41646
|
* @function fromObject
|
|
41462
|
-
* @memberof google.api.
|
|
41647
|
+
* @memberof google.api.ResourceReference
|
|
41463
41648
|
* @static
|
|
41464
41649
|
* @param {Object.<string,*>} object Plain object
|
|
41465
|
-
* @returns {google.api.
|
|
41650
|
+
* @returns {google.api.ResourceReference} ResourceReference
|
|
41466
41651
|
*/
|
|
41467
|
-
|
|
41468
|
-
if (object instanceof $root.google.api.
|
|
41652
|
+
ResourceReference.fromObject = function fromObject(object) {
|
|
41653
|
+
if (object instanceof $root.google.api.ResourceReference)
|
|
41469
41654
|
return object;
|
|
41470
|
-
var message = new $root.google.api.
|
|
41471
|
-
if (object.
|
|
41472
|
-
message.
|
|
41473
|
-
if (object.
|
|
41474
|
-
message.
|
|
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);
|
|
41475
41660
|
return message;
|
|
41476
41661
|
};
|
|
41477
41662
|
|
|
41478
41663
|
/**
|
|
41479
|
-
* Creates a plain object from a
|
|
41664
|
+
* Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
|
|
41480
41665
|
* @function toObject
|
|
41481
|
-
* @memberof google.api.
|
|
41666
|
+
* @memberof google.api.ResourceReference
|
|
41482
41667
|
* @static
|
|
41483
|
-
* @param {google.api.
|
|
41668
|
+
* @param {google.api.ResourceReference} message ResourceReference
|
|
41484
41669
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
41485
41670
|
* @returns {Object.<string,*>} Plain object
|
|
41486
41671
|
*/
|
|
41487
|
-
|
|
41672
|
+
ResourceReference.toObject = function toObject(message, options) {
|
|
41488
41673
|
if (!options)
|
|
41489
41674
|
options = {};
|
|
41490
41675
|
var object = {};
|
|
41491
41676
|
if (options.defaults) {
|
|
41492
|
-
object.
|
|
41493
|
-
object.
|
|
41677
|
+
object.type = "";
|
|
41678
|
+
object.childType = "";
|
|
41494
41679
|
}
|
|
41495
|
-
if (message.
|
|
41496
|
-
object.
|
|
41497
|
-
if (message.
|
|
41498
|
-
object.
|
|
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;
|
|
41499
41684
|
return object;
|
|
41500
41685
|
};
|
|
41501
41686
|
|
|
41502
41687
|
/**
|
|
41503
|
-
* Converts this
|
|
41688
|
+
* Converts this ResourceReference to JSON.
|
|
41504
41689
|
* @function toJSON
|
|
41505
|
-
* @memberof google.api.
|
|
41690
|
+
* @memberof google.api.ResourceReference
|
|
41506
41691
|
* @instance
|
|
41507
41692
|
* @returns {Object.<string,*>} JSON object
|
|
41508
41693
|
*/
|
|
41509
|
-
|
|
41694
|
+
ResourceReference.prototype.toJSON = function toJSON() {
|
|
41510
41695
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
41511
41696
|
};
|
|
41512
41697
|
|
|
41513
|
-
return
|
|
41698
|
+
return ResourceReference;
|
|
41514
41699
|
})();
|
|
41515
41700
|
|
|
41516
41701
|
return api;
|
|
@@ -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}
|